@fern-api/dynamic-ir-sdk 53.23.0 → 54.0.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 (85) hide show
  1. package/api/resources/commons/types/WithDocs.d.ts +6 -0
  2. package/api/resources/commons/types/WithDocs.js +5 -0
  3. package/api/resources/commons/types/index.d.ts +1 -0
  4. package/api/resources/commons/types/index.js +1 -0
  5. package/api/resources/dynamic/resources/environment/index.d.ts +1 -0
  6. package/api/resources/dynamic/resources/environment/index.js +17 -0
  7. package/api/resources/dynamic/resources/environment/types/EnvironmentValues.d.ts +17 -0
  8. package/api/resources/dynamic/resources/environment/types/EnvironmentValues.js +5 -0
  9. package/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.d.ts +5 -0
  10. package/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.js +5 -0
  11. package/api/resources/dynamic/resources/environment/types/index.d.ts +2 -0
  12. package/api/resources/dynamic/resources/environment/types/index.js +18 -0
  13. package/api/resources/dynamic/resources/index.d.ts +2 -0
  14. package/api/resources/dynamic/resources/index.js +3 -1
  15. package/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.ts +1 -0
  16. package/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.ts +2 -0
  17. package/api/resources/environment/index.d.ts +1 -0
  18. package/api/resources/environment/index.js +17 -0
  19. package/api/resources/environment/types/EnvironmentBaseUrlId.d.ts +4 -0
  20. package/api/resources/environment/types/EnvironmentBaseUrlId.js +5 -0
  21. package/api/resources/environment/types/EnvironmentBaseUrlWithId.d.ts +8 -0
  22. package/api/resources/environment/types/EnvironmentBaseUrlWithId.js +5 -0
  23. package/api/resources/environment/types/EnvironmentId.d.ts +4 -0
  24. package/api/resources/environment/types/EnvironmentId.js +5 -0
  25. package/api/resources/environment/types/EnvironmentUrl.d.ts +4 -0
  26. package/api/resources/environment/types/EnvironmentUrl.js +5 -0
  27. package/api/resources/environment/types/Environments.d.ts +13 -0
  28. package/api/resources/environment/types/Environments.js +5 -0
  29. package/api/resources/environment/types/EnvironmentsConfig.d.ts +8 -0
  30. package/api/resources/environment/types/EnvironmentsConfig.js +5 -0
  31. package/api/resources/environment/types/MultipleBaseUrlsEnvironment.d.ts +9 -0
  32. package/api/resources/environment/types/MultipleBaseUrlsEnvironment.js +5 -0
  33. package/api/resources/environment/types/MultipleBaseUrlsEnvironments.d.ts +8 -0
  34. package/api/resources/environment/types/MultipleBaseUrlsEnvironments.js +5 -0
  35. package/api/resources/environment/types/SingleBaseUrlEnvironment.d.ts +9 -0
  36. package/api/resources/environment/types/SingleBaseUrlEnvironment.js +5 -0
  37. package/api/resources/environment/types/SingleBaseUrlEnvironments.d.ts +7 -0
  38. package/api/resources/environment/types/SingleBaseUrlEnvironments.js +5 -0
  39. package/api/resources/environment/types/index.d.ts +10 -0
  40. package/api/resources/environment/types/index.js +26 -0
  41. package/api/resources/index.d.ts +2 -0
  42. package/api/resources/index.js +3 -1
  43. package/dist/api/resources/commons/types/WithDocs.d.ts +6 -0
  44. package/dist/api/resources/commons/types/WithDocs.js +5 -0
  45. package/dist/api/resources/commons/types/index.d.ts +1 -0
  46. package/dist/api/resources/commons/types/index.js +1 -0
  47. package/dist/api/resources/dynamic/resources/environment/index.d.ts +1 -0
  48. package/dist/api/resources/dynamic/resources/environment/index.js +17 -0
  49. package/dist/api/resources/dynamic/resources/environment/types/EnvironmentValues.d.ts +17 -0
  50. package/dist/api/resources/dynamic/resources/environment/types/EnvironmentValues.js +5 -0
  51. package/dist/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.d.ts +5 -0
  52. package/dist/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.js +5 -0
  53. package/dist/api/resources/dynamic/resources/environment/types/index.d.ts +2 -0
  54. package/dist/api/resources/dynamic/resources/environment/types/index.js +18 -0
  55. package/dist/api/resources/dynamic/resources/index.d.ts +2 -0
  56. package/dist/api/resources/dynamic/resources/index.js +3 -1
  57. package/dist/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.ts +1 -0
  58. package/dist/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.ts +2 -0
  59. package/dist/api/resources/environment/index.d.ts +1 -0
  60. package/dist/api/resources/environment/index.js +17 -0
  61. package/dist/api/resources/environment/types/EnvironmentBaseUrlId.d.ts +4 -0
  62. package/dist/api/resources/environment/types/EnvironmentBaseUrlId.js +5 -0
  63. package/dist/api/resources/environment/types/EnvironmentBaseUrlWithId.d.ts +8 -0
  64. package/dist/api/resources/environment/types/EnvironmentBaseUrlWithId.js +5 -0
  65. package/dist/api/resources/environment/types/EnvironmentId.d.ts +4 -0
  66. package/dist/api/resources/environment/types/EnvironmentId.js +5 -0
  67. package/dist/api/resources/environment/types/EnvironmentUrl.d.ts +4 -0
  68. package/dist/api/resources/environment/types/EnvironmentUrl.js +5 -0
  69. package/dist/api/resources/environment/types/Environments.d.ts +13 -0
  70. package/dist/api/resources/environment/types/Environments.js +5 -0
  71. package/dist/api/resources/environment/types/EnvironmentsConfig.d.ts +8 -0
  72. package/dist/api/resources/environment/types/EnvironmentsConfig.js +5 -0
  73. package/dist/api/resources/environment/types/MultipleBaseUrlsEnvironment.d.ts +9 -0
  74. package/dist/api/resources/environment/types/MultipleBaseUrlsEnvironment.js +5 -0
  75. package/dist/api/resources/environment/types/MultipleBaseUrlsEnvironments.d.ts +8 -0
  76. package/dist/api/resources/environment/types/MultipleBaseUrlsEnvironments.js +5 -0
  77. package/dist/api/resources/environment/types/SingleBaseUrlEnvironment.d.ts +9 -0
  78. package/dist/api/resources/environment/types/SingleBaseUrlEnvironment.js +5 -0
  79. package/dist/api/resources/environment/types/SingleBaseUrlEnvironments.d.ts +7 -0
  80. package/dist/api/resources/environment/types/SingleBaseUrlEnvironments.js +5 -0
  81. package/dist/api/resources/environment/types/index.d.ts +10 -0
  82. package/dist/api/resources/environment/types/index.js +26 -0
  83. package/dist/api/resources/index.d.ts +2 -0
  84. package/dist/api/resources/index.js +3 -1
  85. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WithDocs {
5
+ docs: string | undefined;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from "./WithDocs";
1
2
  export * from "./FernFilepath";
2
3
  export * from "./Name";
3
4
  export * from "./NameAndWireValue";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./WithDocs"), exports);
17
18
  __exportStar(require("./FernFilepath"), exports);
18
19
  __exportStar(require("./Name"), exports);
19
20
  __exportStar(require("./NameAndWireValue"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../../../index";
5
+ /**
6
+ * Represents the value to use for a specific environment. There are three cases:
7
+ *
8
+ * 1. When sent as an EnvironmentId string, the generator assumes the value matches the name of the
9
+ * environment (e.g. "Staging"), and returns an error otherwise.
10
+ *
11
+ * 2. If the API supports multiple environment URLs, send a map of URLs, e.g.
12
+ * {
13
+ * "ec2": "https://staging.ec2.aws.com",
14
+ * "s3": "https://staging.s3.aws.com"
15
+ * }
16
+ */
17
+ export declare type EnvironmentValues = FernIr.EnvironmentId | FernIr.dynamic.MultipleEnvironmentUrlValues;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../../../index";
5
+ export declare type MultipleEnvironmentUrlValues = Record<FernIr.EnvironmentBaseUrlId, FernIr.EnvironmentUrl>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./EnvironmentValues";
2
+ export * from "./MultipleEnvironmentUrlValues";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EnvironmentValues"), exports);
18
+ __exportStar(require("./MultipleEnvironmentUrlValues"), exports);
@@ -4,6 +4,8 @@ export * as declaration from "./declaration";
4
4
  export * from "./declaration/types";
5
5
  export * as endpoints from "./endpoints";
6
6
  export * from "./endpoints/types";
7
+ export * as environment from "./environment";
8
+ export * from "./environment/types";
7
9
  export * as ir from "./ir";
8
10
  export * from "./ir/types";
9
11
  export * as snippets from "./snippets";
@@ -26,13 +26,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.types = exports.snippets = exports.ir = exports.endpoints = exports.declaration = exports.auth = void 0;
29
+ exports.types = exports.snippets = exports.ir = exports.environment = exports.endpoints = exports.declaration = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  __exportStar(require("./auth/types"), exports);
32
32
  exports.declaration = __importStar(require("./declaration"));
33
33
  __exportStar(require("./declaration/types"), exports);
34
34
  exports.endpoints = __importStar(require("./endpoints"));
35
35
  __exportStar(require("./endpoints/types"), exports);
36
+ exports.environment = __importStar(require("./environment"));
37
+ __exportStar(require("./environment/types"), exports);
36
38
  exports.ir = __importStar(require("./ir"));
37
39
  __exportStar(require("./ir/types"), exports);
38
40
  exports.snippets = __importStar(require("./snippets"));
@@ -21,4 +21,5 @@ export interface DynamicIntermediateRepresentation {
21
21
  * are typically included in the SDK's client constructor.
22
22
  */
23
23
  headers: FernIr.dynamic.NamedParameter[] | undefined;
24
+ environments: FernIr.EnvironmentsConfig | undefined;
24
25
  }
@@ -7,6 +7,8 @@ import * as FernIr from "../../../../../index";
7
7
  */
8
8
  export interface EndpointSnippetRequest {
9
9
  endpoint: FernIr.dynamic.EndpointLocation;
10
+ baseURL: string | undefined;
11
+ environment: FernIr.dynamic.EnvironmentValues | undefined;
10
12
  auth: FernIr.dynamic.AuthValues | undefined;
11
13
  pathParameters: FernIr.dynamic.Values | undefined;
12
14
  queryParameters: FernIr.dynamic.Values | undefined;
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EnvironmentBaseUrlId = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface EnvironmentBaseUrlWithId {
6
+ id: FernIr.EnvironmentBaseUrlId;
7
+ name: FernIr.Name;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EnvironmentId = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EnvironmentUrl = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export declare type Environments = FernIr.Environments.SingleBaseUrl | FernIr.Environments.MultipleBaseUrls;
6
+ export declare namespace Environments {
7
+ interface SingleBaseUrl extends FernIr.SingleBaseUrlEnvironments {
8
+ type: "singleBaseUrl";
9
+ }
10
+ interface MultipleBaseUrls extends FernIr.MultipleBaseUrlsEnvironments {
11
+ type: "multipleBaseUrls";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface EnvironmentsConfig {
6
+ defaultEnvironment: FernIr.EnvironmentId | undefined;
7
+ environments: FernIr.Environments;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface MultipleBaseUrlsEnvironment extends FernIr.WithDocs {
6
+ id: FernIr.EnvironmentId;
7
+ name: FernIr.Name;
8
+ urls: Record<FernIr.EnvironmentBaseUrlId, FernIr.EnvironmentUrl>;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface MultipleBaseUrlsEnvironments {
6
+ baseUrls: FernIr.EnvironmentBaseUrlWithId[];
7
+ environments: FernIr.MultipleBaseUrlsEnvironment[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface SingleBaseUrlEnvironment extends FernIr.WithDocs {
6
+ id: FernIr.EnvironmentId;
7
+ name: FernIr.Name;
8
+ url: FernIr.EnvironmentUrl;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface SingleBaseUrlEnvironments {
6
+ environments: FernIr.SingleBaseUrlEnvironment[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export * from "./EnvironmentId";
2
+ export * from "./EnvironmentBaseUrlId";
3
+ export * from "./EnvironmentUrl";
4
+ export * from "./EnvironmentsConfig";
5
+ export * from "./Environments";
6
+ export * from "./SingleBaseUrlEnvironments";
7
+ export * from "./SingleBaseUrlEnvironment";
8
+ export * from "./MultipleBaseUrlsEnvironments";
9
+ export * from "./MultipleBaseUrlsEnvironment";
10
+ export * from "./EnvironmentBaseUrlWithId";
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EnvironmentId"), exports);
18
+ __exportStar(require("./EnvironmentBaseUrlId"), exports);
19
+ __exportStar(require("./EnvironmentUrl"), exports);
20
+ __exportStar(require("./EnvironmentsConfig"), exports);
21
+ __exportStar(require("./Environments"), exports);
22
+ __exportStar(require("./SingleBaseUrlEnvironments"), exports);
23
+ __exportStar(require("./SingleBaseUrlEnvironment"), exports);
24
+ __exportStar(require("./MultipleBaseUrlsEnvironments"), exports);
25
+ __exportStar(require("./MultipleBaseUrlsEnvironment"), exports);
26
+ __exportStar(require("./EnvironmentBaseUrlWithId"), exports);
@@ -1,6 +1,8 @@
1
1
  export * as commons from "./commons";
2
2
  export * from "./commons/types";
3
3
  export * as dynamic from "./dynamic";
4
+ export * as environment from "./environment";
5
+ export * from "./environment/types";
4
6
  export * as generatorExec from "./generatorExec";
5
7
  export * as http from "./http";
6
8
  export * from "./http/types";
@@ -26,10 +26,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.types = exports.http = exports.generatorExec = exports.dynamic = exports.commons = void 0;
29
+ exports.types = exports.http = exports.generatorExec = exports.environment = exports.dynamic = exports.commons = void 0;
30
30
  exports.commons = __importStar(require("./commons"));
31
31
  __exportStar(require("./commons/types"), exports);
32
32
  exports.dynamic = __importStar(require("./dynamic"));
33
+ exports.environment = __importStar(require("./environment"));
34
+ __exportStar(require("./environment/types"), exports);
33
35
  exports.generatorExec = __importStar(require("./generatorExec"));
34
36
  exports.http = __importStar(require("./http"));
35
37
  __exportStar(require("./http/types"), exports);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WithDocs {
5
+ docs: string | undefined;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from "./WithDocs";
1
2
  export * from "./FernFilepath";
2
3
  export * from "./Name";
3
4
  export * from "./NameAndWireValue";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./WithDocs"), exports);
17
18
  __exportStar(require("./FernFilepath"), exports);
18
19
  __exportStar(require("./Name"), exports);
19
20
  __exportStar(require("./NameAndWireValue"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../../../index";
5
+ /**
6
+ * Represents the value to use for a specific environment. There are three cases:
7
+ *
8
+ * 1. When sent as an EnvironmentId string, the generator assumes the value matches the name of the
9
+ * environment (e.g. "Staging"), and returns an error otherwise.
10
+ *
11
+ * 2. If the API supports multiple environment URLs, send a map of URLs, e.g.
12
+ * {
13
+ * "ec2": "https://staging.ec2.aws.com",
14
+ * "s3": "https://staging.s3.aws.com"
15
+ * }
16
+ */
17
+ export declare type EnvironmentValues = FernIr.EnvironmentId | FernIr.dynamic.MultipleEnvironmentUrlValues;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../../../index";
5
+ export declare type MultipleEnvironmentUrlValues = Record<FernIr.EnvironmentBaseUrlId, FernIr.EnvironmentUrl>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./EnvironmentValues";
2
+ export * from "./MultipleEnvironmentUrlValues";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EnvironmentValues"), exports);
18
+ __exportStar(require("./MultipleEnvironmentUrlValues"), exports);
@@ -4,6 +4,8 @@ export * as declaration from "./declaration";
4
4
  export * from "./declaration/types";
5
5
  export * as endpoints from "./endpoints";
6
6
  export * from "./endpoints/types";
7
+ export * as environment from "./environment";
8
+ export * from "./environment/types";
7
9
  export * as ir from "./ir";
8
10
  export * from "./ir/types";
9
11
  export * as snippets from "./snippets";
@@ -26,13 +26,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.types = exports.snippets = exports.ir = exports.endpoints = exports.declaration = exports.auth = void 0;
29
+ exports.types = exports.snippets = exports.ir = exports.environment = exports.endpoints = exports.declaration = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  __exportStar(require("./auth/types"), exports);
32
32
  exports.declaration = __importStar(require("./declaration"));
33
33
  __exportStar(require("./declaration/types"), exports);
34
34
  exports.endpoints = __importStar(require("./endpoints"));
35
35
  __exportStar(require("./endpoints/types"), exports);
36
+ exports.environment = __importStar(require("./environment"));
37
+ __exportStar(require("./environment/types"), exports);
36
38
  exports.ir = __importStar(require("./ir"));
37
39
  __exportStar(require("./ir/types"), exports);
38
40
  exports.snippets = __importStar(require("./snippets"));
@@ -21,4 +21,5 @@ export interface DynamicIntermediateRepresentation {
21
21
  * are typically included in the SDK's client constructor.
22
22
  */
23
23
  headers: FernIr.dynamic.NamedParameter[] | undefined;
24
+ environments: FernIr.EnvironmentsConfig | undefined;
24
25
  }
@@ -7,6 +7,8 @@ import * as FernIr from "../../../../../index";
7
7
  */
8
8
  export interface EndpointSnippetRequest {
9
9
  endpoint: FernIr.dynamic.EndpointLocation;
10
+ baseURL: string | undefined;
11
+ environment: FernIr.dynamic.EnvironmentValues | undefined;
10
12
  auth: FernIr.dynamic.AuthValues | undefined;
11
13
  pathParameters: FernIr.dynamic.Values | undefined;
12
14
  queryParameters: FernIr.dynamic.Values | undefined;
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EnvironmentBaseUrlId = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface EnvironmentBaseUrlWithId {
6
+ id: FernIr.EnvironmentBaseUrlId;
7
+ name: FernIr.Name;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EnvironmentId = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EnvironmentUrl = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export declare type Environments = FernIr.Environments.SingleBaseUrl | FernIr.Environments.MultipleBaseUrls;
6
+ export declare namespace Environments {
7
+ interface SingleBaseUrl extends FernIr.SingleBaseUrlEnvironments {
8
+ type: "singleBaseUrl";
9
+ }
10
+ interface MultipleBaseUrls extends FernIr.MultipleBaseUrlsEnvironments {
11
+ type: "multipleBaseUrls";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface EnvironmentsConfig {
6
+ defaultEnvironment: FernIr.EnvironmentId | undefined;
7
+ environments: FernIr.Environments;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface MultipleBaseUrlsEnvironment extends FernIr.WithDocs {
6
+ id: FernIr.EnvironmentId;
7
+ name: FernIr.Name;
8
+ urls: Record<FernIr.EnvironmentBaseUrlId, FernIr.EnvironmentUrl>;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface MultipleBaseUrlsEnvironments {
6
+ baseUrls: FernIr.EnvironmentBaseUrlWithId[];
7
+ environments: FernIr.MultipleBaseUrlsEnvironment[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface SingleBaseUrlEnvironment extends FernIr.WithDocs {
6
+ id: FernIr.EnvironmentId;
7
+ name: FernIr.Name;
8
+ url: FernIr.EnvironmentUrl;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as FernIr from "../../../index";
5
+ export interface SingleBaseUrlEnvironments {
6
+ environments: FernIr.SingleBaseUrlEnvironment[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export * from "./EnvironmentId";
2
+ export * from "./EnvironmentBaseUrlId";
3
+ export * from "./EnvironmentUrl";
4
+ export * from "./EnvironmentsConfig";
5
+ export * from "./Environments";
6
+ export * from "./SingleBaseUrlEnvironments";
7
+ export * from "./SingleBaseUrlEnvironment";
8
+ export * from "./MultipleBaseUrlsEnvironments";
9
+ export * from "./MultipleBaseUrlsEnvironment";
10
+ export * from "./EnvironmentBaseUrlWithId";
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EnvironmentId"), exports);
18
+ __exportStar(require("./EnvironmentBaseUrlId"), exports);
19
+ __exportStar(require("./EnvironmentUrl"), exports);
20
+ __exportStar(require("./EnvironmentsConfig"), exports);
21
+ __exportStar(require("./Environments"), exports);
22
+ __exportStar(require("./SingleBaseUrlEnvironments"), exports);
23
+ __exportStar(require("./SingleBaseUrlEnvironment"), exports);
24
+ __exportStar(require("./MultipleBaseUrlsEnvironments"), exports);
25
+ __exportStar(require("./MultipleBaseUrlsEnvironment"), exports);
26
+ __exportStar(require("./EnvironmentBaseUrlWithId"), exports);
@@ -1,6 +1,8 @@
1
1
  export * as commons from "./commons";
2
2
  export * from "./commons/types";
3
3
  export * as dynamic from "./dynamic";
4
+ export * as environment from "./environment";
5
+ export * from "./environment/types";
4
6
  export * as generatorExec from "./generatorExec";
5
7
  export * as http from "./http";
6
8
  export * from "./http/types";
@@ -26,10 +26,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.types = exports.http = exports.generatorExec = exports.dynamic = exports.commons = void 0;
29
+ exports.types = exports.http = exports.generatorExec = exports.environment = exports.dynamic = exports.commons = void 0;
30
30
  exports.commons = __importStar(require("./commons"));
31
31
  __exportStar(require("./commons/types"), exports);
32
32
  exports.dynamic = __importStar(require("./dynamic"));
33
+ exports.environment = __importStar(require("./environment"));
34
+ __exportStar(require("./environment/types"), exports);
33
35
  exports.generatorExec = __importStar(require("./generatorExec"));
34
36
  exports.http = __importStar(require("./http"));
35
37
  __exportStar(require("./http/types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/dynamic-ir-sdk",
3
- "version": "53.23.0",
3
+ "version": "54.0.0",
4
4
  "private": false,
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",