@fern-api/dynamic-ir-sdk 53.17.0 → 53.20.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.
@@ -1,9 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as FernIr from "../../../../../index";
4
5
  /**
5
6
  * The user-facing response type containing the generated snippet.
7
+ *
8
+ * If there are any errors, the snippet will still sometimes represent a
9
+ * partial and/or valid result. This is useful for rendering a snippet alongside
10
+ * error messages the user can use to diagnose and resolve the problem.
6
11
  */
7
12
  export interface EndpointSnippetResponse {
8
13
  snippet: string;
14
+ errors: FernIr.dynamic.Error_[] | undefined;
9
15
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ErrorSeverity = "CRITICAL" | "WARNING";
5
+ export declare const ErrorSeverity: {
6
+ readonly Critical: "CRITICAL";
7
+ readonly Warning: "WARNING";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ErrorSeverity = void 0;
7
+ exports.ErrorSeverity = {
8
+ Critical: "CRITICAL",
9
+ Warning: "WARNING",
10
+ };
@@ -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 Error_ {
6
+ severity: FernIr.dynamic.ErrorSeverity;
7
+ message: string;
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 });
@@ -1,3 +1,5 @@
1
+ export * from "./ErrorSeverity";
2
+ export * from "./Error_";
1
3
  export * from "./Values";
2
4
  export * from "./EndpointSnippetRequest";
3
5
  export * from "./EndpointSnippetResponse";
@@ -14,6 +14,8 @@ 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("./ErrorSeverity"), exports);
18
+ __exportStar(require("./Error_"), exports);
17
19
  __exportStar(require("./Values"), exports);
18
20
  __exportStar(require("./EndpointSnippetRequest"), exports);
19
21
  __exportStar(require("./EndpointSnippetResponse"), exports);
@@ -1,9 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as FernIr from "../../../../../index";
4
5
  /**
5
6
  * The user-facing response type containing the generated snippet.
7
+ *
8
+ * If there are any errors, the snippet will still sometimes represent a
9
+ * partial and/or valid result. This is useful for rendering a snippet alongside
10
+ * error messages the user can use to diagnose and resolve the problem.
6
11
  */
7
12
  export interface EndpointSnippetResponse {
8
13
  snippet: string;
14
+ errors: FernIr.dynamic.Error_[] | undefined;
9
15
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ErrorSeverity = "CRITICAL" | "WARNING";
5
+ export declare const ErrorSeverity: {
6
+ readonly Critical: "CRITICAL";
7
+ readonly Warning: "WARNING";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ErrorSeverity = void 0;
7
+ exports.ErrorSeverity = {
8
+ Critical: "CRITICAL",
9
+ Warning: "WARNING",
10
+ };
@@ -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 Error_ {
6
+ severity: FernIr.dynamic.ErrorSeverity;
7
+ message: string;
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 });
@@ -1,3 +1,5 @@
1
+ export * from "./ErrorSeverity";
2
+ export * from "./Error_";
1
3
  export * from "./Values";
2
4
  export * from "./EndpointSnippetRequest";
3
5
  export * from "./EndpointSnippetResponse";
@@ -14,6 +14,8 @@ 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("./ErrorSeverity"), exports);
18
+ __exportStar(require("./Error_"), exports);
17
19
  __exportStar(require("./Values"), exports);
18
20
  __exportStar(require("./EndpointSnippetRequest"), exports);
19
21
  __exportStar(require("./EndpointSnippetResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/dynamic-ir-sdk",
3
- "version": "53.17.0",
3
+ "version": "53.20.0",
4
4
  "private": false,
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",