@fern-api/dynamic-ir-sdk 53.16.0 → 53.19.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.
- package/api/resources/dynamic/resources/auth/types/AuthValues.d.ts +16 -0
- package/api/resources/dynamic/resources/auth/types/AuthValues.js +5 -0
- package/api/resources/dynamic/resources/auth/types/BasicAuthValues.d.ts +7 -0
- package/api/resources/dynamic/resources/auth/types/BasicAuthValues.js +5 -0
- package/api/resources/dynamic/resources/auth/types/BearerAuthValues.d.ts +6 -0
- package/api/resources/dynamic/resources/auth/types/BearerAuthValues.js +5 -0
- package/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.ts +6 -0
- package/api/resources/dynamic/resources/auth/types/HeaderAuthValues.js +5 -0
- package/api/resources/dynamic/resources/auth/types/index.d.ts +4 -0
- package/api/resources/dynamic/resources/auth/types/index.js +4 -0
- package/api/resources/dynamic/resources/index.d.ts +2 -0
- package/api/resources/dynamic/resources/index.js +3 -1
- package/api/resources/dynamic/resources/snippets/index.d.ts +1 -0
- package/api/resources/dynamic/resources/snippets/index.js +17 -0
- package/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.ts +15 -0
- package/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.js +5 -0
- package/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.ts +15 -0
- package/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.js +5 -0
- package/api/resources/dynamic/resources/snippets/types/ErrorSeverity.d.ts +8 -0
- package/api/resources/dynamic/resources/snippets/types/ErrorSeverity.js +10 -0
- package/api/resources/dynamic/resources/snippets/types/Error_.d.ts +8 -0
- package/api/resources/dynamic/resources/snippets/types/Error_.js +5 -0
- package/api/resources/dynamic/resources/snippets/types/Values.d.ts +10 -0
- package/api/resources/dynamic/resources/snippets/types/Values.js +5 -0
- package/api/resources/dynamic/resources/snippets/types/index.d.ts +5 -0
- package/api/resources/dynamic/resources/snippets/types/index.js +21 -0
- package/dist/api/resources/dynamic/resources/auth/types/AuthValues.d.ts +16 -0
- package/dist/api/resources/dynamic/resources/auth/types/AuthValues.js +5 -0
- package/dist/api/resources/dynamic/resources/auth/types/BasicAuthValues.d.ts +7 -0
- package/dist/api/resources/dynamic/resources/auth/types/BasicAuthValues.js +5 -0
- package/dist/api/resources/dynamic/resources/auth/types/BearerAuthValues.d.ts +6 -0
- package/dist/api/resources/dynamic/resources/auth/types/BearerAuthValues.js +5 -0
- package/dist/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.ts +6 -0
- package/dist/api/resources/dynamic/resources/auth/types/HeaderAuthValues.js +5 -0
- package/dist/api/resources/dynamic/resources/auth/types/index.d.ts +4 -0
- package/dist/api/resources/dynamic/resources/auth/types/index.js +4 -0
- package/dist/api/resources/dynamic/resources/index.d.ts +2 -0
- package/dist/api/resources/dynamic/resources/index.js +3 -1
- package/dist/api/resources/dynamic/resources/snippets/index.d.ts +1 -0
- package/dist/api/resources/dynamic/resources/snippets/index.js +17 -0
- package/dist/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.ts +15 -0
- package/dist/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.js +5 -0
- package/dist/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.ts +15 -0
- package/dist/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.js +5 -0
- package/dist/api/resources/dynamic/resources/snippets/types/ErrorSeverity.d.ts +8 -0
- package/dist/api/resources/dynamic/resources/snippets/types/ErrorSeverity.js +10 -0
- package/dist/api/resources/dynamic/resources/snippets/types/Error_.d.ts +8 -0
- package/dist/api/resources/dynamic/resources/snippets/types/Error_.js +5 -0
- package/dist/api/resources/dynamic/resources/snippets/types/Values.d.ts +10 -0
- package/dist/api/resources/dynamic/resources/snippets/types/Values.js +5 -0
- package/dist/api/resources/dynamic/resources/snippets/types/index.d.ts +5 -0
- package/dist/api/resources/dynamic/resources/snippets/types/index.js +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernIr from "../../../../../index";
|
|
5
|
+
export declare type AuthValues = FernIr.dynamic.AuthValues.Basic | FernIr.dynamic.AuthValues.Bearer | FernIr.dynamic.AuthValues.Header;
|
|
6
|
+
export declare namespace AuthValues {
|
|
7
|
+
interface Basic extends FernIr.dynamic.BasicAuthValues {
|
|
8
|
+
type: "basic";
|
|
9
|
+
}
|
|
10
|
+
interface Bearer extends FernIr.dynamic.BearerAuthValues {
|
|
11
|
+
type: "bearer";
|
|
12
|
+
}
|
|
13
|
+
interface Header extends FernIr.dynamic.HeaderAuthValues {
|
|
14
|
+
type: "header";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -15,6 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Auth"), exports);
|
|
18
|
+
__exportStar(require("./AuthValues"), exports);
|
|
18
19
|
__exportStar(require("./BasicAuth"), exports);
|
|
20
|
+
__exportStar(require("./BasicAuthValues"), exports);
|
|
19
21
|
__exportStar(require("./BearerAuth"), exports);
|
|
22
|
+
__exportStar(require("./BearerAuthValues"), exports);
|
|
20
23
|
__exportStar(require("./HeaderAuth"), exports);
|
|
24
|
+
__exportStar(require("./HeaderAuthValues"), exports);
|
|
@@ -6,5 +6,7 @@ export * as endpoints from "./endpoints";
|
|
|
6
6
|
export * from "./endpoints/types";
|
|
7
7
|
export * as ir from "./ir";
|
|
8
8
|
export * from "./ir/types";
|
|
9
|
+
export * as snippets from "./snippets";
|
|
10
|
+
export * from "./snippets/types";
|
|
9
11
|
export * as types from "./types";
|
|
10
12
|
export * from "./types/types";
|
|
@@ -26,7 +26,7 @@ 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.ir = exports.endpoints = exports.declaration = exports.auth = void 0;
|
|
29
|
+
exports.types = exports.snippets = exports.ir = 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"));
|
|
@@ -35,5 +35,7 @@ exports.endpoints = __importStar(require("./endpoints"));
|
|
|
35
35
|
__exportStar(require("./endpoints/types"), exports);
|
|
36
36
|
exports.ir = __importStar(require("./ir"));
|
|
37
37
|
__exportStar(require("./ir/types"), exports);
|
|
38
|
+
exports.snippets = __importStar(require("./snippets"));
|
|
39
|
+
__exportStar(require("./snippets/types"), exports);
|
|
38
40
|
exports.types = __importStar(require("./types"));
|
|
39
41
|
__exportStar(require("./types/types"), 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,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernIr from "../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* The user-facing request type used to generate a dynamic snippet.
|
|
7
|
+
*/
|
|
8
|
+
export interface EndpointSnippetRequest {
|
|
9
|
+
endpoint: FernIr.dynamic.EndpointLocation;
|
|
10
|
+
auth: FernIr.dynamic.AuthValues | undefined;
|
|
11
|
+
pathParameters: FernIr.dynamic.Values | undefined;
|
|
12
|
+
queryParameters: FernIr.dynamic.Values | undefined;
|
|
13
|
+
headers: FernIr.dynamic.Values | undefined;
|
|
14
|
+
requestBody: unknown | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernIr from "../../../../../index";
|
|
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.
|
|
11
|
+
*/
|
|
12
|
+
export interface EndpointSnippetResponse {
|
|
13
|
+
snippet: string;
|
|
14
|
+
errors: FernIr.dynamic.Error_[] | undefined;
|
|
15
|
+
}
|
|
@@ -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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Snippet values are represented as arbitrary key, value
|
|
6
|
+
* pairs (i.e. JSON objects). The keys are expected to be
|
|
7
|
+
* in the parameter's wire representation. For path parameters,
|
|
8
|
+
* the name will match the parameter name.
|
|
9
|
+
*/
|
|
10
|
+
export declare type Values = Record<string, unknown>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./ErrorSeverity"), exports);
|
|
18
|
+
__exportStar(require("./Error_"), exports);
|
|
19
|
+
__exportStar(require("./Values"), exports);
|
|
20
|
+
__exportStar(require("./EndpointSnippetRequest"), exports);
|
|
21
|
+
__exportStar(require("./EndpointSnippetResponse"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernIr from "../../../../../index";
|
|
5
|
+
export declare type AuthValues = FernIr.dynamic.AuthValues.Basic | FernIr.dynamic.AuthValues.Bearer | FernIr.dynamic.AuthValues.Header;
|
|
6
|
+
export declare namespace AuthValues {
|
|
7
|
+
interface Basic extends FernIr.dynamic.BasicAuthValues {
|
|
8
|
+
type: "basic";
|
|
9
|
+
}
|
|
10
|
+
interface Bearer extends FernIr.dynamic.BearerAuthValues {
|
|
11
|
+
type: "bearer";
|
|
12
|
+
}
|
|
13
|
+
interface Header extends FernIr.dynamic.HeaderAuthValues {
|
|
14
|
+
type: "header";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -15,6 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Auth"), exports);
|
|
18
|
+
__exportStar(require("./AuthValues"), exports);
|
|
18
19
|
__exportStar(require("./BasicAuth"), exports);
|
|
20
|
+
__exportStar(require("./BasicAuthValues"), exports);
|
|
19
21
|
__exportStar(require("./BearerAuth"), exports);
|
|
22
|
+
__exportStar(require("./BearerAuthValues"), exports);
|
|
20
23
|
__exportStar(require("./HeaderAuth"), exports);
|
|
24
|
+
__exportStar(require("./HeaderAuthValues"), exports);
|
|
@@ -6,5 +6,7 @@ export * as endpoints from "./endpoints";
|
|
|
6
6
|
export * from "./endpoints/types";
|
|
7
7
|
export * as ir from "./ir";
|
|
8
8
|
export * from "./ir/types";
|
|
9
|
+
export * as snippets from "./snippets";
|
|
10
|
+
export * from "./snippets/types";
|
|
9
11
|
export * as types from "./types";
|
|
10
12
|
export * from "./types/types";
|
|
@@ -26,7 +26,7 @@ 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.ir = exports.endpoints = exports.declaration = exports.auth = void 0;
|
|
29
|
+
exports.types = exports.snippets = exports.ir = 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"));
|
|
@@ -35,5 +35,7 @@ exports.endpoints = __importStar(require("./endpoints"));
|
|
|
35
35
|
__exportStar(require("./endpoints/types"), exports);
|
|
36
36
|
exports.ir = __importStar(require("./ir"));
|
|
37
37
|
__exportStar(require("./ir/types"), exports);
|
|
38
|
+
exports.snippets = __importStar(require("./snippets"));
|
|
39
|
+
__exportStar(require("./snippets/types"), exports);
|
|
38
40
|
exports.types = __importStar(require("./types"));
|
|
39
41
|
__exportStar(require("./types/types"), 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,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernIr from "../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* The user-facing request type used to generate a dynamic snippet.
|
|
7
|
+
*/
|
|
8
|
+
export interface EndpointSnippetRequest {
|
|
9
|
+
endpoint: FernIr.dynamic.EndpointLocation;
|
|
10
|
+
auth: FernIr.dynamic.AuthValues | undefined;
|
|
11
|
+
pathParameters: FernIr.dynamic.Values | undefined;
|
|
12
|
+
queryParameters: FernIr.dynamic.Values | undefined;
|
|
13
|
+
headers: FernIr.dynamic.Values | undefined;
|
|
14
|
+
requestBody: unknown | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernIr from "../../../../../index";
|
|
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.
|
|
11
|
+
*/
|
|
12
|
+
export interface EndpointSnippetResponse {
|
|
13
|
+
snippet: string;
|
|
14
|
+
errors: FernIr.dynamic.Error_[] | undefined;
|
|
15
|
+
}
|
|
@@ -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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Snippet values are represented as arbitrary key, value
|
|
6
|
+
* pairs (i.e. JSON objects). The keys are expected to be
|
|
7
|
+
* in the parameter's wire representation. For path parameters,
|
|
8
|
+
* the name will match the parameter name.
|
|
9
|
+
*/
|
|
10
|
+
export declare type Values = Record<string, unknown>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./ErrorSeverity"), exports);
|
|
18
|
+
__exportStar(require("./Error_"), exports);
|
|
19
|
+
__exportStar(require("./Values"), exports);
|
|
20
|
+
__exportStar(require("./EndpointSnippetRequest"), exports);
|
|
21
|
+
__exportStar(require("./EndpointSnippetResponse"), exports);
|