Skip to content

Commit 336e303

Browse files
committed
SDK regeneration
1 parent 2a07b79 commit 336e303

13 files changed

+94
-47
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fern-api/sdk",
3-
"version": "0.11.2",
3+
"version": "0.12.0",
44
"private": false,
55
"repository": "https://github.com/fern-api/fern-typescript",
66
"license": "MIT",
@@ -19,7 +19,7 @@
1919
"node-fetch": "2.7.0",
2020
"qs": "6.11.2",
2121
"js-base64": "3.7.2",
22-
"@fern-api/template-resolver": "0.7.4"
22+
"@fern-api/template-resolver": "0.3.0"
2323
},
2424
"devDependencies": {
2525
"@types/url-join": "4.0.1",

src/api/resources/snippets/client/Client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class Snippets {
6262
Authorization: await this._getAuthorizationHeader(),
6363
"X-Fern-Language": "JavaScript",
6464
"X-Fern-SDK-Name": "@fern-api/sdk",
65-
"X-Fern-SDK-Version": "0.8.0",
65+
"X-Fern-SDK-Version": "0.12.0",
6666
"X-Fern-Runtime": core.RUNTIME.type,
6767
"X-Fern-Runtime-Version": core.RUNTIME.version,
6868
},
@@ -164,7 +164,7 @@ export class Snippets {
164164
Authorization: await this._getAuthorizationHeader(),
165165
"X-Fern-Language": "JavaScript",
166166
"X-Fern-SDK-Name": "@fern-api/sdk",
167-
"X-Fern-SDK-Version": "0.8.0",
167+
"X-Fern-SDK-Version": "0.12.0",
168168
"X-Fern-Runtime": core.RUNTIME.type,
169169
"X-Fern-Runtime-Version": core.RUNTIME.version,
170170
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Fern from "../../../index";
6+
7+
export type AuthPayload = Fern.AuthPayload.Bearer | Fern.AuthPayload.Basic;
8+
9+
export declare namespace AuthPayload {
10+
interface Bearer extends Fern.BearerTokenAuthPayload {
11+
type: "bearer";
12+
}
13+
14+
interface Basic extends Fern.BasicAuthPayload {
15+
type: "basic";
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface BasicAuthPayload {
6+
username: string;
7+
password: string;
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface BearerTokenAuthPayload {
6+
token: string;
7+
}

src/api/resources/snippets/types/CustomSnippetPayload.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ export interface CustomSnippetPayload {
99
pathParameters?: Fern.ParameterPayload[];
1010
queryParameters?: Fern.ParameterPayload[];
1111
requestBody?: unknown;
12+
auth?: Fern.AuthPayload;
1213
}

src/api/resources/snippets/types/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export * from "./RubySdk";
1212
export * from "./JavaSdk";
1313
export * from "./ParameterPayload";
1414
export * from "./CustomSnippetPayload";
15+
export * from "./AuthPayload";
16+
export * from "./BearerTokenAuthPayload";
17+
export * from "./BasicAuthPayload";
1518
export * from "./SnippetsPage";
1619
export * from "./SnippetsByEndpointMethod";
1720
export * from "./Snippet";

src/api/resources/templates/client/Client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class Templates {
9999
Authorization: await this._getAuthorizationHeader(),
100100
"X-Fern-Language": "JavaScript",
101101
"X-Fern-SDK-Name": "@fern-api/sdk",
102-
"X-Fern-SDK-Version": "0.8.0",
102+
"X-Fern-SDK-Version": "0.12.0",
103103
"X-Fern-Runtime": core.RUNTIME.type,
104104
"X-Fern-Runtime-Version": core.RUNTIME.version,
105105
},
@@ -210,7 +210,7 @@ export class Templates {
210210
Authorization: await this._getAuthorizationHeader(),
211211
"X-Fern-Language": "JavaScript",
212212
"X-Fern-SDK-Name": "@fern-api/sdk",
213-
"X-Fern-SDK-Version": "0.8.0",
213+
"X-Fern-SDK-Version": "0.12.0",
214214
"X-Fern-Runtime": core.RUNTIME.type,
215215
"X-Fern-Runtime-Version": core.RUNTIME.version,
216216
},
@@ -285,7 +285,7 @@ export class Templates {
285285
Authorization: await this._getAuthorizationHeader(),
286286
"X-Fern-Language": "JavaScript",
287287
"X-Fern-SDK-Name": "@fern-api/sdk",
288-
"X-Fern-SDK-Version": "0.8.0",
288+
"X-Fern-SDK-Version": "0.12.0",
289289
"X-Fern-Runtime": core.RUNTIME.type,
290290
"X-Fern-Runtime-Version": core.RUNTIME.version,
291291
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Fern from "../../../index";
6+
7+
export type ClientInstantiation = string | Fern.Template;

src/api/resources/templates/types/PayloadLocation.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
* Note that RELATIVE should be used for iterables primarily, so be
88
* able to specify the path to the field relative to the iterated on object
99
*/
10-
export type PayloadLocation = "BODY" | "QUERY" | "PATH" | "HEADERS" | "RELATIVE";
10+
export type PayloadLocation = "BODY" | "QUERY" | "PATH" | "HEADERS" | "RELATIVE" | "AUTH";
1111

1212
export const PayloadLocation = {
1313
Body: "BODY",
1414
Query: "QUERY",
1515
Path: "PATH",
1616
Headers: "HEADERS",
1717
Relative: "RELATIVE",
18+
Auth: "AUTH",
1819
} as const;

src/api/resources/templates/types/SnippetTemplate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
import * as Fern from "../../../index";
66

77
export interface SnippetTemplate {
8-
clientInstantiation: string;
8+
clientInstantiation: Fern.ClientInstantiation;
99
functionInvocation: Fern.Template;
1010
}

src/api/resources/templates/types/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export * from "./TemplateInput";
99
export * from "./PayloadLocation";
1010
export * from "./PayloadInput";
1111
export * from "./SnippetTemplate";
12+
export * from "./ClientInstantiation";
1213
export * from "./VersionedSnippetTemplate";
1314
export * from "./SnippetRegistryEntry";
1415
export * from "./EndpointSnippetTemplate";

yarn.lock

+40-38
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@
301301
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
302302
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
303303

304-
"@fern-api/template-resolver@0.7.4":
305-
version "0.7.4"
306-
resolved "https://registry.yarnpkg.com/@fern-api/template-resolver/-/template-resolver-0.7.4.tgz#0f71de0840ff6dfeed3f40658379c4ff92c47999"
307-
integrity sha512-nFJqD0WO1NRSbngNWYpHVMo5nBhxU+1eawqSuFsB9h0HxARG2vitbkIPZIZXIIT3su9KUBqcd41NlasOoEQadw==
304+
"@fern-api/template-resolver@0.3.0":
305+
version "0.3.0"
306+
resolved "https://registry.yarnpkg.com/@fern-api/template-resolver/-/template-resolver-0.3.0.tgz#29198be1d42e644bf16ab8370a370f4f09005156"
307+
integrity sha512-na7B2hVkRJnR0pMqJZK7ulAQQYUHYVXXYtIVlBHZBY6Ko43G2q70DPROcM4vMx2eE6vP7xRnHAww3g4YZboniA==
308308
dependencies:
309-
prettier "^2.8.8"
309+
lodash "^4.17.21"
310310

311311
"@istanbuljs/load-nyc-config@^1.0.0":
312312
version "1.1.0"
@@ -657,9 +657,9 @@
657657
form-data "^4.0.0"
658658

659659
"@types/node@*":
660-
version "20.14.2"
661-
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.2.tgz#a5f4d2bcb4b6a87bffcaa717718c5a0f208f4a18"
662-
integrity sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==
660+
version "20.14.5"
661+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.5.tgz#fe35e3022ebe58b8f201580eb24e1fcfc0f2487d"
662+
integrity sha512-aoRR+fJkZT2l0aGOJhuA8frnCSoNX6W7U2mpNq63+BxBIj5BQFt8rHy627kijCmm63ijdSdwvGgpUsU6MBsZZA==
663663
dependencies:
664664
undici-types "~5.26.4"
665665

@@ -714,14 +714,16 @@ acorn-globals@^7.0.0:
714714
acorn-walk "^8.0.2"
715715

716716
acorn-walk@^8.0.2:
717-
version "8.3.2"
718-
resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.2.tgz#7703af9415f1b6db9315d6895503862e231d34aa"
719-
integrity sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==
717+
version "8.3.3"
718+
resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e"
719+
integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==
720+
dependencies:
721+
acorn "^8.11.0"
720722

721-
acorn@^8.1.0, acorn@^8.8.1:
722-
version "8.11.3"
723-
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a"
724-
integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==
723+
acorn@^8.1.0, acorn@^8.11.0, acorn@^8.8.1:
724+
version "8.12.0"
725+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.0.tgz#1627bfa2e058148036133b8d9b51a700663c294c"
726+
integrity sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==
725727

726728
agent-base@6:
727729
version "6.0.2"
@@ -862,14 +864,14 @@ braces@^3.0.3:
862864
fill-range "^7.1.1"
863865

864866
browserslist@^4.22.2:
865-
version "4.23.0"
866-
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab"
867-
integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==
867+
version "4.23.1"
868+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96"
869+
integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==
868870
dependencies:
869-
caniuse-lite "^1.0.30001587"
870-
electron-to-chromium "^1.4.668"
871+
caniuse-lite "^1.0.30001629"
872+
electron-to-chromium "^1.4.796"
871873
node-releases "^2.0.14"
872-
update-browserslist-db "^1.0.13"
874+
update-browserslist-db "^1.0.16"
873875

874876
875877
version "0.2.6"
@@ -916,10 +918,10 @@ camelcase@^6.2.0:
916918
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
917919
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
918920

919-
caniuse-lite@^1.0.30001587:
920-
version "1.0.30001628"
921-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001628.tgz#90b6cd85ddc2e9f831de0225f4ca5a130c8d8222"
922-
integrity sha512-S3BnR4Kh26TBxbi5t5kpbcUlLJb9lhtDXISDPwOfI+JoC+ik0QksvkZtUVyikw3hjnkgkMPSJ8oIM9yMm9vflA==
921+
caniuse-lite@^1.0.30001629:
922+
version "1.0.30001636"
923+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001636.tgz#b15f52d2bdb95fad32c2f53c0b68032b85188a78"
924+
integrity sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==
923925

924926
chalk@^2.4.2:
925927
version "2.4.2"
@@ -1114,10 +1116,10 @@ domexception@^4.0.0:
11141116
dependencies:
11151117
webidl-conversions "^7.0.0"
11161118

1117-
electron-to-chromium@^1.4.668:
1118-
version "1.4.790"
1119-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.790.tgz#2a3a5509593745c5d65d8acd66b308f2a25da041"
1120-
integrity sha512-eVGeQxpaBYbomDBa/Mehrs28MdvCXfJmEFzaMFsv8jH/MJDLIylJN81eTJ5kvx7B7p18OiPK0BkC06lydEy63A==
1119+
electron-to-chromium@^1.4.796:
1120+
version "1.4.806"
1121+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.806.tgz#2cb046631cbabceb26fc72be68d273fa183e36bc"
1122+
integrity sha512-nkoEX2QIB8kwCOtvtgwhXWy2IHVcOLQZu9Qo36uaGB835mdX/h8uLRlosL6QIhLVUnAiicXRW00PwaPZC74Nrg==
11211123

11221124
emittery@^0.13.1:
11231125
version "0.13.1"
@@ -2001,6 +2003,11 @@ [email protected]:
20012003
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
20022004
integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==
20032005

2006+
lodash@^4.17.21:
2007+
version "4.17.21"
2008+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
2009+
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
2010+
20042011
lru-cache@^5.1.1:
20052012
version "5.1.1"
20062013
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
@@ -2217,11 +2224,6 @@ [email protected]:
22172224
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
22182225
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
22192226

2220-
prettier@^2.8.8:
2221-
version "2.8.8"
2222-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
2223-
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
2224-
22252227
pretty-format@^29.0.0, pretty-format@^29.7.0:
22262228
version "29.7.0"
22272229
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812"
@@ -2560,7 +2562,7 @@ universalify@^0.2.0:
25602562
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"
25612563
integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==
25622564

2563-
update-browserslist-db@^1.0.13:
2565+
update-browserslist-db@^1.0.16:
25642566
version "1.0.16"
25652567
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356"
25662568
integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==
@@ -2672,9 +2674,9 @@ write-file-atomic@^4.0.2:
26722674
signal-exit "^3.0.7"
26732675

26742676
ws@^8.11.0:
2675-
version "8.17.0"
2676-
resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.0.tgz#d145d18eca2ed25aaf791a183903f7be5e295fea"
2677-
integrity sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==
2677+
version "8.17.1"
2678+
resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b"
2679+
integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==
26782680

26792681
xml-name-validator@^4.0.0:
26802682
version "4.0.0"

0 commit comments

Comments
 (0)