@fern-api/fdr-sdk 1.1.8-c2d2da3a47 → 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.js
CHANGED
|
@@ -47236,19 +47236,22 @@ function createApiClient(options) {
|
|
|
47236
47236
|
const latestLink = new import_fetch.OpenAPILink(apiLatestContract, {
|
|
47237
47237
|
url: `${options.baseUrl}/registry/api/latest`,
|
|
47238
47238
|
headers: () => ({
|
|
47239
|
-
Authorization: `Bearer ${options.token}
|
|
47239
|
+
Authorization: `Bearer ${options.token}`,
|
|
47240
|
+
...options.headers
|
|
47240
47241
|
})
|
|
47241
47242
|
});
|
|
47242
47243
|
const readLink = new import_fetch.OpenAPILink(apiReadContract, {
|
|
47243
47244
|
url: `${options.baseUrl}/registry/api`,
|
|
47244
47245
|
headers: () => ({
|
|
47245
|
-
Authorization: `Bearer ${options.token}
|
|
47246
|
+
Authorization: `Bearer ${options.token}`,
|
|
47247
|
+
...options.headers
|
|
47246
47248
|
})
|
|
47247
47249
|
});
|
|
47248
47250
|
const registerLink = new import_fetch.OpenAPILink(apiRegisterContract, {
|
|
47249
47251
|
url: `${options.baseUrl}/registry/api`,
|
|
47250
47252
|
headers: () => ({
|
|
47251
|
-
Authorization: `Bearer ${options.token}
|
|
47253
|
+
Authorization: `Bearer ${options.token}`,
|
|
47254
|
+
...options.headers
|
|
47252
47255
|
})
|
|
47253
47256
|
});
|
|
47254
47257
|
return {
|
|
@@ -47288,7 +47291,8 @@ function createDashboardClient(options) {
|
|
|
47288
47291
|
const link = new import_fetch2.OpenAPILink(dashboardContract, {
|
|
47289
47292
|
url: `${options.baseUrl}/dashboard`,
|
|
47290
47293
|
headers: () => ({
|
|
47291
|
-
Authorization: `Bearer ${options.token}
|
|
47294
|
+
Authorization: `Bearer ${options.token}`,
|
|
47295
|
+
...options.headers
|
|
47292
47296
|
})
|
|
47293
47297
|
});
|
|
47294
47298
|
return (0, import_client2.createORPCClient)(link);
|
|
@@ -48052,7 +48056,8 @@ function createDocsV1ReadClient(options) {
|
|
|
48052
48056
|
const link = new import_fetch3.OpenAPILink(docsV1ReadContract, {
|
|
48053
48057
|
url: `${options.baseUrl}/registry/docs`,
|
|
48054
48058
|
headers: () => ({
|
|
48055
|
-
Authorization: `Bearer ${options.token}
|
|
48059
|
+
Authorization: `Bearer ${options.token}`,
|
|
48060
|
+
...options.headers
|
|
48056
48061
|
})
|
|
48057
48062
|
});
|
|
48058
48063
|
return (0, import_client3.createORPCClient)(link);
|
|
@@ -48089,7 +48094,8 @@ function createDocsV1WriteClient(options) {
|
|
|
48089
48094
|
const link = new import_fetch4.OpenAPILink(docsV1WriteContract, {
|
|
48090
48095
|
url: `${options.baseUrl}/registry/docs`,
|
|
48091
48096
|
headers: () => ({
|
|
48092
|
-
Authorization: `Bearer ${options.token}
|
|
48097
|
+
Authorization: `Bearer ${options.token}`,
|
|
48098
|
+
...options.headers
|
|
48093
48099
|
})
|
|
48094
48100
|
});
|
|
48095
48101
|
return (0, import_client4.createORPCClient)(link);
|
|
@@ -48185,7 +48191,8 @@ function createLibraryDocsClient(options) {
|
|
|
48185
48191
|
const link = new import_fetch5.OpenAPILink(libraryDocsContract, {
|
|
48186
48192
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48187
48193
|
headers: () => ({
|
|
48188
|
-
Authorization: `Bearer ${options.token}
|
|
48194
|
+
Authorization: `Bearer ${options.token}`,
|
|
48195
|
+
...options.headers
|
|
48189
48196
|
})
|
|
48190
48197
|
});
|
|
48191
48198
|
return (0, import_client5.createORPCClient)(link);
|
|
@@ -48210,7 +48217,8 @@ function createOrganizationClient(options) {
|
|
|
48210
48217
|
const link = new import_fetch6.OpenAPILink(organizationContract, {
|
|
48211
48218
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48212
48219
|
headers: () => ({
|
|
48213
|
-
Authorization: `Bearer ${options.token}
|
|
48220
|
+
Authorization: `Bearer ${options.token}`,
|
|
48221
|
+
...options.headers
|
|
48214
48222
|
})
|
|
48215
48223
|
});
|
|
48216
48224
|
return (0, import_client6.createORPCClient)(link);
|
|
@@ -48316,7 +48324,8 @@ function createDocsV2ReadClient(options) {
|
|
|
48316
48324
|
const link = new import_fetch7.OpenAPILink(docsV2ReadContract, {
|
|
48317
48325
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48318
48326
|
headers: () => ({
|
|
48319
|
-
Authorization: `Bearer ${options.token}
|
|
48327
|
+
Authorization: `Bearer ${options.token}`,
|
|
48328
|
+
...options.headers
|
|
48320
48329
|
})
|
|
48321
48330
|
});
|
|
48322
48331
|
return (0, import_client7.createORPCClient)(link);
|
|
@@ -48440,7 +48449,8 @@ function createDocsV2WriteClient(options) {
|
|
|
48440
48449
|
const link = new import_fetch8.OpenAPILink(docsV2WriteContract, {
|
|
48441
48450
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
48442
48451
|
headers: () => ({
|
|
48443
|
-
Authorization: `Bearer ${options.token}
|
|
48452
|
+
Authorization: `Bearer ${options.token}`,
|
|
48453
|
+
...options.headers
|
|
48444
48454
|
})
|
|
48445
48455
|
});
|
|
48446
48456
|
return (0, import_client8.createORPCClient)(link);
|
|
@@ -48481,7 +48491,8 @@ function createDocsCacheClient(options) {
|
|
|
48481
48491
|
const link = new import_fetch9.OpenAPILink(docsCacheContract, {
|
|
48482
48492
|
url: `${options.baseUrl}/docs-cache`,
|
|
48483
48493
|
headers: () => ({
|
|
48484
|
-
Authorization: `Bearer ${options.token}
|
|
48494
|
+
Authorization: `Bearer ${options.token}`,
|
|
48495
|
+
...options.headers
|
|
48485
48496
|
})
|
|
48486
48497
|
});
|
|
48487
48498
|
return (0, import_client15.createORPCClient)(link);
|
|
@@ -48590,7 +48601,8 @@ function createDocsDeploymentClient(options) {
|
|
|
48590
48601
|
const link = new import_fetch10.OpenAPILink(docsDeploymentContract, {
|
|
48591
48602
|
url: `${options.baseUrl}/docs-deployment`,
|
|
48592
48603
|
headers: () => ({
|
|
48593
|
-
Authorization: `Bearer ${options.token}
|
|
48604
|
+
Authorization: `Bearer ${options.token}`,
|
|
48605
|
+
...options.headers
|
|
48594
48606
|
})
|
|
48595
48607
|
});
|
|
48596
48608
|
return (0, import_client16.createORPCClient)(link);
|
|
@@ -48792,7 +48804,8 @@ function createGeneratorCliClient(options) {
|
|
|
48792
48804
|
const link = new import_fetch11.OpenAPILink(generatorCliContract, {
|
|
48793
48805
|
url: `${options.baseUrl}/generators/cli`,
|
|
48794
48806
|
headers: () => ({
|
|
48795
|
-
Authorization: `Bearer ${options.token}
|
|
48807
|
+
Authorization: `Bearer ${options.token}`,
|
|
48808
|
+
...options.headers
|
|
48796
48809
|
})
|
|
48797
48810
|
});
|
|
48798
48811
|
return (0, import_client17.createORPCClient)(link);
|
|
@@ -48805,7 +48818,8 @@ function createGeneratorsRootClient(options) {
|
|
|
48805
48818
|
const link = new import_fetch12.OpenAPILink(generatorsContract, {
|
|
48806
48819
|
url: `${options.baseUrl}/generators`,
|
|
48807
48820
|
headers: () => ({
|
|
48808
|
-
Authorization: `Bearer ${options.token}
|
|
48821
|
+
Authorization: `Bearer ${options.token}`,
|
|
48822
|
+
...options.headers
|
|
48809
48823
|
})
|
|
48810
48824
|
});
|
|
48811
48825
|
return (0, import_client18.createORPCClient)(link);
|
|
@@ -48818,7 +48832,8 @@ function createGeneratorVersionsClient(options) {
|
|
|
48818
48832
|
const link = new import_fetch13.OpenAPILink(generatorVersionsContract, {
|
|
48819
48833
|
url: `${options.baseUrl}/generators/versions`,
|
|
48820
48834
|
headers: () => ({
|
|
48821
|
-
Authorization: `Bearer ${options.token}
|
|
48835
|
+
Authorization: `Bearer ${options.token}`,
|
|
48836
|
+
...options.headers
|
|
48822
48837
|
})
|
|
48823
48838
|
});
|
|
48824
48839
|
return (0, import_client19.createORPCClient)(link);
|
|
@@ -48955,7 +48970,8 @@ function createGitClient(options) {
|
|
|
48955
48970
|
const link = new import_fetch14.OpenAPILink(gitContract, {
|
|
48956
48971
|
url: `${options.baseUrl}/generators/github`,
|
|
48957
48972
|
headers: () => ({
|
|
48958
|
-
Authorization: `Bearer ${options.token}
|
|
48973
|
+
Authorization: `Bearer ${options.token}`,
|
|
48974
|
+
...options.headers
|
|
48959
48975
|
})
|
|
48960
48976
|
});
|
|
48961
48977
|
return (0, import_client20.createORPCClient)(link);
|
|
@@ -49054,7 +49070,8 @@ function createPdfExportClient(options) {
|
|
|
49054
49070
|
const link = new import_fetch15.OpenAPILink(pdfExportContract, {
|
|
49055
49071
|
url: `${options.baseUrl}/pdf-export`,
|
|
49056
49072
|
headers: () => ({
|
|
49057
|
-
Authorization: `Bearer ${options.token}
|
|
49073
|
+
Authorization: `Bearer ${options.token}`,
|
|
49074
|
+
...options.headers
|
|
49058
49075
|
})
|
|
49059
49076
|
});
|
|
49060
49077
|
return (0, import_client21.createORPCClient)(link);
|
|
@@ -49097,7 +49114,8 @@ function createSdksClient(options) {
|
|
|
49097
49114
|
const link = new import_fetch16.OpenAPILink(sdksContract, {
|
|
49098
49115
|
url: `${options.baseUrl}/sdks`,
|
|
49099
49116
|
headers: () => ({
|
|
49100
|
-
Authorization: `Bearer ${options.token}
|
|
49117
|
+
Authorization: `Bearer ${options.token}`,
|
|
49118
|
+
...options.headers
|
|
49101
49119
|
})
|
|
49102
49120
|
});
|
|
49103
49121
|
return (0, import_client22.createORPCClient)(link);
|
|
@@ -49221,7 +49239,8 @@ function createSnippetsFactoryClient(options) {
|
|
|
49221
49239
|
const link = new import_fetch17.OpenAPILink(snippetsFactoryContract, {
|
|
49222
49240
|
url: `${options.baseUrl}/snippets`,
|
|
49223
49241
|
headers: () => ({
|
|
49224
|
-
Authorization: `Bearer ${options.token}
|
|
49242
|
+
Authorization: `Bearer ${options.token}`,
|
|
49243
|
+
...options.headers
|
|
49225
49244
|
})
|
|
49226
49245
|
});
|
|
49227
49246
|
return (0, import_client23.createORPCClient)(link);
|
|
@@ -49230,7 +49249,8 @@ function createSnippetsClient(options) {
|
|
|
49230
49249
|
const link = new import_fetch17.OpenAPILink(snippetsContract, {
|
|
49231
49250
|
url: `${options.baseUrl}/snippets`,
|
|
49232
49251
|
headers: () => ({
|
|
49233
|
-
Authorization: `Bearer ${options.token}
|
|
49252
|
+
Authorization: `Bearer ${options.token}`,
|
|
49253
|
+
...options.headers
|
|
49234
49254
|
})
|
|
49235
49255
|
});
|
|
49236
49256
|
return (0, import_client23.createORPCClient)(link);
|
|
@@ -49291,7 +49311,8 @@ function createTemplatesClient(options) {
|
|
|
49291
49311
|
const link = new import_fetch18.OpenAPILink(templatesContract, {
|
|
49292
49312
|
url: `${options.baseUrl}/snippet-template`,
|
|
49293
49313
|
headers: () => ({
|
|
49294
|
-
Authorization: `Bearer ${options.token}
|
|
49314
|
+
Authorization: `Bearer ${options.token}`,
|
|
49315
|
+
...options.headers
|
|
49295
49316
|
})
|
|
49296
49317
|
});
|
|
49297
49318
|
return (0, import_client24.createORPCClient)(link);
|
|
@@ -49326,7 +49347,8 @@ function createTokensClient(options) {
|
|
|
49326
49347
|
const link = new import_fetch19.OpenAPILink(tokensContract, {
|
|
49327
49348
|
url: `${options.baseUrl}/tokens`,
|
|
49328
49349
|
headers: () => ({
|
|
49329
|
-
Authorization: `Bearer ${options.token}
|
|
49350
|
+
Authorization: `Bearer ${options.token}`,
|
|
49351
|
+
...options.headers
|
|
49330
49352
|
})
|
|
49331
49353
|
});
|
|
49332
49354
|
return (0, import_client25.createORPCClient)(link);
|
|
@@ -49365,7 +49387,8 @@ var FdrClient = class {
|
|
|
49365
49387
|
constructor(options = {}) {
|
|
49366
49388
|
this.client = createFdrORPCClient({
|
|
49367
49389
|
baseUrl: options.environment ?? "https://registry.buildwithfern.com",
|
|
49368
|
-
token: options.token ?? ""
|
|
49390
|
+
token: options.token ?? "",
|
|
49391
|
+
headers: options.headers
|
|
49369
49392
|
});
|
|
49370
49393
|
}
|
|
49371
49394
|
get api() {
|