@fern-api/fdr-sdk 1.1.8-bc046fbf9f → 1.1.8-e95c6c87e3
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/dist/js/client/FdrClient.js +46 -23
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +46 -23
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +46 -23
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +46 -23
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +44 -22
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +44 -22
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client/FdrClient.d.ts +1 -0
- package/dist/types/client/FdrClient.d.ts.map +1 -1
- package/dist/types/orpc-client/api/client.d.ts +1 -0
- package/dist/types/orpc-client/api/client.d.ts.map +1 -1
- package/dist/types/orpc-client/client.d.ts +1 -0
- package/dist/types/orpc-client/client.d.ts.map +1 -1
- package/dist/types/orpc-client/dashboard/client.d.ts +1 -0
- package/dist/types/orpc-client/dashboard/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/client.d.ts +1 -0
- package/dist/types/orpc-client/docs/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v1/read/client.d.ts +1 -0
- package/dist/types/orpc-client/docs/v1/read/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v1/write/client.d.ts +1 -0
- package/dist/types/orpc-client/docs/v1/write/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/library-docs/client.d.ts +1 -0
- package/dist/types/orpc-client/docs/v2/library-docs/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/organization/client.d.ts +1 -0
- package/dist/types/orpc-client/docs/v2/organization/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/read/client.d.ts +1 -0
- package/dist/types/orpc-client/docs/v2/read/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/write/client.d.ts +1 -0
- package/dist/types/orpc-client/docs/v2/write/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-cache/client.d.ts +1 -0
- package/dist/types/orpc-client/docs-cache/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-deployment/client.d.ts +1 -0
- package/dist/types/orpc-client/docs-deployment/client.d.ts.map +1 -1
- package/dist/types/orpc-client/generators/cli/client.d.ts +1 -0
- package/dist/types/orpc-client/generators/cli/client.d.ts.map +1 -1
- package/dist/types/orpc-client/generators/client.d.ts +1 -0
- package/dist/types/orpc-client/generators/client.d.ts.map +1 -1
- package/dist/types/orpc-client/generators/versions/client.d.ts +1 -0
- package/dist/types/orpc-client/generators/versions/client.d.ts.map +1 -1
- package/dist/types/orpc-client/git/client.d.ts +1 -0
- package/dist/types/orpc-client/git/client.d.ts.map +1 -1
- package/dist/types/orpc-client/pdf-export/client.d.ts +1 -0
- package/dist/types/orpc-client/pdf-export/client.d.ts.map +1 -1
- package/dist/types/orpc-client/sdks/client.d.ts +1 -0
- package/dist/types/orpc-client/sdks/client.d.ts.map +1 -1
- package/dist/types/orpc-client/snippets/client.d.ts +1 -0
- package/dist/types/orpc-client/snippets/client.d.ts.map +1 -1
- package/dist/types/orpc-client/templates/client.d.ts +1 -0
- package/dist/types/orpc-client/templates/client.d.ts.map +1 -1
- package/dist/types/orpc-client/tokens/client.d.ts +1 -0
- package/dist/types/orpc-client/tokens/client.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/js/index.mjs
CHANGED
|
@@ -47194,19 +47194,22 @@ function createApiClient(options) {
|
|
|
47194
47194
|
const latestLink = new OpenAPILink(apiLatestContract, {
|
|
47195
47195
|
url: `${options.baseUrl}/registry/api/latest`,
|
|
47196
47196
|
headers: () => ({
|
|
47197
|
-
Authorization: `Bearer ${options.token}
|
|
47197
|
+
Authorization: `Bearer ${options.token}`,
|
|
47198
|
+
...options.headers
|
|
47198
47199
|
})
|
|
47199
47200
|
});
|
|
47200
47201
|
const readLink = new OpenAPILink(apiReadContract, {
|
|
47201
47202
|
url: `${options.baseUrl}/registry/api`,
|
|
47202
47203
|
headers: () => ({
|
|
47203
|
-
Authorization: `Bearer ${options.token}
|
|
47204
|
+
Authorization: `Bearer ${options.token}`,
|
|
47205
|
+
...options.headers
|
|
47204
47206
|
})
|
|
47205
47207
|
});
|
|
47206
47208
|
const registerLink = new OpenAPILink(apiRegisterContract, {
|
|
47207
47209
|
url: `${options.baseUrl}/registry/api`,
|
|
47208
47210
|
headers: () => ({
|
|
47209
|
-
Authorization: `Bearer ${options.token}
|
|
47211
|
+
Authorization: `Bearer ${options.token}`,
|
|
47212
|
+
...options.headers
|
|
47210
47213
|
})
|
|
47211
47214
|
});
|
|
47212
47215
|
return {
|
|
@@ -47246,7 +47249,8 @@ function createDashboardClient(options) {
|
|
|
47246
47249
|
const link = new OpenAPILink2(dashboardContract, {
|
|
47247
47250
|
url: `${options.baseUrl}/dashboard`,
|
|
47248
47251
|
headers: () => ({
|
|
47249
|
-
Authorization: `Bearer ${options.token}
|
|
47252
|
+
Authorization: `Bearer ${options.token}`,
|
|
47253
|
+
...options.headers
|
|
47250
47254
|
})
|
|
47251
47255
|
});
|
|
47252
47256
|
return createORPCClient2(link);
|
|
@@ -48010,7 +48014,8 @@ function createDocsV1ReadClient(options) {
|
|
|
48010
48014
|
const link = new OpenAPILink3(docsV1ReadContract, {
|
|
48011
48015
|
url: `${options.baseUrl}/registry/docs`,
|
|
48012
48016
|
headers: () => ({
|
|
48013
|
-
Authorization: `Bearer ${options.token}
|
|
48017
|
+
Authorization: `Bearer ${options.token}`,
|
|
48018
|
+
...options.headers
|
|
48014
48019
|
})
|
|
48015
48020
|
});
|
|
48016
48021
|
return createORPCClient3(link);
|
|
@@ -48047,7 +48052,8 @@ function createDocsV1WriteClient(options) {
|
|
|
48047
48052
|
const link = new OpenAPILink4(docsV1WriteContract, {
|
|
48048
48053
|
url: `${options.baseUrl}/registry/docs`,
|
|
48049
48054
|
headers: () => ({
|
|
48050
|
-
Authorization: `Bearer ${options.token}
|
|
48055
|
+
Authorization: `Bearer ${options.token}`,
|
|
48056
|
+
...options.headers
|
|
48051
48057
|
})
|
|
48052
48058
|
});
|
|
48053
48059
|
return createORPCClient4(link);
|
|
@@ -48143,7 +48149,8 @@ function createLibraryDocsClient(options) {
|
|
|
48143
48149
|
const link = new OpenAPILink5(libraryDocsContract, {
|
|
48144
48150
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48145
48151
|
headers: () => ({
|
|
48146
|
-
Authorization: `Bearer ${options.token}
|
|
48152
|
+
Authorization: `Bearer ${options.token}`,
|
|
48153
|
+
...options.headers
|
|
48147
48154
|
})
|
|
48148
48155
|
});
|
|
48149
48156
|
return createORPCClient5(link);
|
|
@@ -48168,7 +48175,8 @@ function createOrganizationClient(options) {
|
|
|
48168
48175
|
const link = new OpenAPILink6(organizationContract, {
|
|
48169
48176
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48170
48177
|
headers: () => ({
|
|
48171
|
-
Authorization: `Bearer ${options.token}
|
|
48178
|
+
Authorization: `Bearer ${options.token}`,
|
|
48179
|
+
...options.headers
|
|
48172
48180
|
})
|
|
48173
48181
|
});
|
|
48174
48182
|
return createORPCClient6(link);
|
|
@@ -48274,7 +48282,8 @@ function createDocsV2ReadClient(options) {
|
|
|
48274
48282
|
const link = new OpenAPILink7(docsV2ReadContract, {
|
|
48275
48283
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48276
48284
|
headers: () => ({
|
|
48277
|
-
Authorization: `Bearer ${options.token}
|
|
48285
|
+
Authorization: `Bearer ${options.token}`,
|
|
48286
|
+
...options.headers
|
|
48278
48287
|
})
|
|
48279
48288
|
});
|
|
48280
48289
|
return createORPCClient7(link);
|
|
@@ -48398,7 +48407,8 @@ function createDocsV2WriteClient(options) {
|
|
|
48398
48407
|
const link = new OpenAPILink8(docsV2WriteContract, {
|
|
48399
48408
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48400
48409
|
headers: () => ({
|
|
48401
|
-
Authorization: `Bearer ${options.token}
|
|
48410
|
+
Authorization: `Bearer ${options.token}`,
|
|
48411
|
+
...options.headers
|
|
48402
48412
|
})
|
|
48403
48413
|
});
|
|
48404
48414
|
return createORPCClient8(link);
|
|
@@ -48439,7 +48449,8 @@ function createDocsCacheClient(options) {
|
|
|
48439
48449
|
const link = new OpenAPILink9(docsCacheContract, {
|
|
48440
48450
|
url: `${options.baseUrl}/docs-cache`,
|
|
48441
48451
|
headers: () => ({
|
|
48442
|
-
Authorization: `Bearer ${options.token}
|
|
48452
|
+
Authorization: `Bearer ${options.token}`,
|
|
48453
|
+
...options.headers
|
|
48443
48454
|
})
|
|
48444
48455
|
});
|
|
48445
48456
|
return createORPCClient9(link);
|
|
@@ -48548,7 +48559,8 @@ function createDocsDeploymentClient(options) {
|
|
|
48548
48559
|
const link = new OpenAPILink10(docsDeploymentContract, {
|
|
48549
48560
|
url: `${options.baseUrl}/docs-deployment`,
|
|
48550
48561
|
headers: () => ({
|
|
48551
|
-
Authorization: `Bearer ${options.token}
|
|
48562
|
+
Authorization: `Bearer ${options.token}`,
|
|
48563
|
+
...options.headers
|
|
48552
48564
|
})
|
|
48553
48565
|
});
|
|
48554
48566
|
return createORPCClient10(link);
|
|
@@ -48750,7 +48762,8 @@ function createGeneratorCliClient(options) {
|
|
|
48750
48762
|
const link = new OpenAPILink11(generatorCliContract, {
|
|
48751
48763
|
url: `${options.baseUrl}/generators/cli`,
|
|
48752
48764
|
headers: () => ({
|
|
48753
|
-
Authorization: `Bearer ${options.token}
|
|
48765
|
+
Authorization: `Bearer ${options.token}`,
|
|
48766
|
+
...options.headers
|
|
48754
48767
|
})
|
|
48755
48768
|
});
|
|
48756
48769
|
return createORPCClient11(link);
|
|
@@ -48763,7 +48776,8 @@ function createGeneratorsRootClient(options) {
|
|
|
48763
48776
|
const link = new OpenAPILink12(generatorsContract, {
|
|
48764
48777
|
url: `${options.baseUrl}/generators`,
|
|
48765
48778
|
headers: () => ({
|
|
48766
|
-
Authorization: `Bearer ${options.token}
|
|
48779
|
+
Authorization: `Bearer ${options.token}`,
|
|
48780
|
+
...options.headers
|
|
48767
48781
|
})
|
|
48768
48782
|
});
|
|
48769
48783
|
return createORPCClient12(link);
|
|
@@ -48776,7 +48790,8 @@ function createGeneratorVersionsClient(options) {
|
|
|
48776
48790
|
const link = new OpenAPILink13(generatorVersionsContract, {
|
|
48777
48791
|
url: `${options.baseUrl}/generators/versions`,
|
|
48778
48792
|
headers: () => ({
|
|
48779
|
-
Authorization: `Bearer ${options.token}
|
|
48793
|
+
Authorization: `Bearer ${options.token}`,
|
|
48794
|
+
...options.headers
|
|
48780
48795
|
})
|
|
48781
48796
|
});
|
|
48782
48797
|
return createORPCClient13(link);
|
|
@@ -48913,7 +48928,8 @@ function createGitClient(options) {
|
|
|
48913
48928
|
const link = new OpenAPILink14(gitContract, {
|
|
48914
48929
|
url: `${options.baseUrl}/generators/github`,
|
|
48915
48930
|
headers: () => ({
|
|
48916
|
-
Authorization: `Bearer ${options.token}
|
|
48931
|
+
Authorization: `Bearer ${options.token}`,
|
|
48932
|
+
...options.headers
|
|
48917
48933
|
})
|
|
48918
48934
|
});
|
|
48919
48935
|
return createORPCClient14(link);
|
|
@@ -49012,7 +49028,8 @@ function createPdfExportClient(options) {
|
|
|
49012
49028
|
const link = new OpenAPILink15(pdfExportContract, {
|
|
49013
49029
|
url: `${options.baseUrl}/pdf-export`,
|
|
49014
49030
|
headers: () => ({
|
|
49015
|
-
Authorization: `Bearer ${options.token}
|
|
49031
|
+
Authorization: `Bearer ${options.token}`,
|
|
49032
|
+
...options.headers
|
|
49016
49033
|
})
|
|
49017
49034
|
});
|
|
49018
49035
|
return createORPCClient15(link);
|
|
@@ -49055,7 +49072,8 @@ function createSdksClient(options) {
|
|
|
49055
49072
|
const link = new OpenAPILink16(sdksContract, {
|
|
49056
49073
|
url: `${options.baseUrl}/sdks`,
|
|
49057
49074
|
headers: () => ({
|
|
49058
|
-
Authorization: `Bearer ${options.token}
|
|
49075
|
+
Authorization: `Bearer ${options.token}`,
|
|
49076
|
+
...options.headers
|
|
49059
49077
|
})
|
|
49060
49078
|
});
|
|
49061
49079
|
return createORPCClient16(link);
|
|
@@ -49179,7 +49197,8 @@ function createSnippetsFactoryClient(options) {
|
|
|
49179
49197
|
const link = new OpenAPILink17(snippetsFactoryContract, {
|
|
49180
49198
|
url: `${options.baseUrl}/snippets`,
|
|
49181
49199
|
headers: () => ({
|
|
49182
|
-
Authorization: `Bearer ${options.token}
|
|
49200
|
+
Authorization: `Bearer ${options.token}`,
|
|
49201
|
+
...options.headers
|
|
49183
49202
|
})
|
|
49184
49203
|
});
|
|
49185
49204
|
return createORPCClient17(link);
|
|
@@ -49188,7 +49207,8 @@ function createSnippetsClient(options) {
|
|
|
49188
49207
|
const link = new OpenAPILink17(snippetsContract, {
|
|
49189
49208
|
url: `${options.baseUrl}/snippets`,
|
|
49190
49209
|
headers: () => ({
|
|
49191
|
-
Authorization: `Bearer ${options.token}
|
|
49210
|
+
Authorization: `Bearer ${options.token}`,
|
|
49211
|
+
...options.headers
|
|
49192
49212
|
})
|
|
49193
49213
|
});
|
|
49194
49214
|
return createORPCClient17(link);
|
|
@@ -49249,7 +49269,8 @@ function createTemplatesClient(options) {
|
|
|
49249
49269
|
const link = new OpenAPILink18(templatesContract, {
|
|
49250
49270
|
url: `${options.baseUrl}/snippet-template`,
|
|
49251
49271
|
headers: () => ({
|
|
49252
|
-
Authorization: `Bearer ${options.token}
|
|
49272
|
+
Authorization: `Bearer ${options.token}`,
|
|
49273
|
+
...options.headers
|
|
49253
49274
|
})
|
|
49254
49275
|
});
|
|
49255
49276
|
return createORPCClient18(link);
|
|
@@ -49284,7 +49305,8 @@ function createTokensClient(options) {
|
|
|
49284
49305
|
const link = new OpenAPILink19(tokensContract, {
|
|
49285
49306
|
url: `${options.baseUrl}/tokens`,
|
|
49286
49307
|
headers: () => ({
|
|
49287
|
-
Authorization: `Bearer ${options.token}
|
|
49308
|
+
Authorization: `Bearer ${options.token}`,
|
|
49309
|
+
...options.headers
|
|
49288
49310
|
})
|
|
49289
49311
|
});
|
|
49290
49312
|
return createORPCClient19(link);
|
|
@@ -49323,7 +49345,8 @@ var FdrClient = class {
|
|
|
49323
49345
|
constructor(options = {}) {
|
|
49324
49346
|
this.client = createFdrORPCClient({
|
|
49325
49347
|
baseUrl: options.environment ?? "https://registry.buildwithfern.com",
|
|
49326
|
-
token: options.token ?? ""
|
|
49348
|
+
token: options.token ?? "",
|
|
49349
|
+
headers: options.headers
|
|
49327
49350
|
});
|
|
49328
49351
|
}
|
|
49329
49352
|
get api() {
|