@scaleway/sdk-lb 1.0.1 → 1.1.1

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.
@@ -379,6 +379,7 @@ const unmarshalRouteMatch = (data) => {
379
379
  return {
380
380
  hostHeader: data.host_header,
381
381
  matchSubdomains: data.match_subdomains,
382
+ pathBegin: data.path_begin,
382
383
  sni: data.sni
383
384
  };
384
385
  };
@@ -792,7 +793,8 @@ const marshalRouteMatch = (request, defaults) => ({
792
793
  match_subdomains: request.matchSubdomains,
793
794
  ...sdkClient.resolveOneOf([
794
795
  { param: "sni", value: request.sni },
795
- { param: "host_header", value: request.hostHeader }
796
+ { param: "host_header", value: request.hostHeader },
797
+ { param: "path_begin", value: request.pathBegin }
796
798
  ])
797
799
  });
798
800
  const marshalCreateRouteRequest = (request, defaults) => ({
@@ -377,6 +377,7 @@ const unmarshalRouteMatch = (data) => {
377
377
  return {
378
378
  hostHeader: data.host_header,
379
379
  matchSubdomains: data.match_subdomains,
380
+ pathBegin: data.path_begin,
380
381
  sni: data.sni
381
382
  };
382
383
  };
@@ -790,7 +791,8 @@ const marshalRouteMatch = (request, defaults) => ({
790
791
  match_subdomains: request.matchSubdomains,
791
792
  ...resolveOneOf([
792
793
  { param: "sni", value: request.sni },
793
- { param: "host_header", value: request.hostHeader }
794
+ { param: "host_header", value: request.hostHeader },
795
+ { param: "path_begin", value: request.pathBegin }
794
796
  ])
795
797
  });
796
798
  const marshalCreateRouteRequest = (request, defaults) => ({
@@ -615,19 +615,25 @@ export interface RouteMatch {
615
615
  /**
616
616
  * Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. This field should be set for routes on TCP Load Balancers.
617
617
  *
618
- * One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set.
618
+ * One-of ('matchType'): at most one of 'sni', 'hostHeader', 'pathBegin' could be set.
619
619
  */
620
620
  sni?: string;
621
621
  /**
622
622
  * Value to match in the HTTP Host request header from an incoming request. This field should be set for routes on HTTP Load Balancers.
623
623
  *
624
- * One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set.
624
+ * One-of ('matchType'): at most one of 'sni', 'hostHeader', 'pathBegin' could be set.
625
625
  */
626
626
  hostHeader?: string;
627
627
  /**
628
628
  * If true, all subdomains will match.
629
629
  */
630
630
  matchSubdomains: boolean;
631
+ /**
632
+ * Value to match in the URL beginning path from an incoming request.
633
+ *
634
+ * One-of ('matchType'): at most one of 'sni', 'hostHeader', 'pathBegin' could be set.
635
+ */
636
+ pathBegin?: string;
631
637
  }
632
638
  export interface CreateCertificateRequestCustomCertificate {
633
639
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-lb",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "Scaleway SDK lb",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -26,21 +26,18 @@
26
26
  "directory": "packages_generated/lb"
27
27
  },
28
28
  "engines": {
29
- "node": ">=20.18.3"
29
+ "node": ">=20.19.1"
30
30
  },
31
31
  "dependencies": {
32
32
  "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.0.1"
33
+ "@scaleway/sdk-std": "1.0.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.2.1"
36
+ "@scaleway/sdk-client": "^1.2.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.2.1"
39
+ "@scaleway/sdk-client": "^1.2.2"
40
40
  },
41
- "bundledDependencies": [
42
- "@scaleway/random-name"
43
- ],
44
41
  "scripts": {
45
42
  "package:check": "pnpm publint",
46
43
  "typecheck": "tsc --noEmit",