@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
|
@@ -1661,19 +1661,22 @@ function createApiClient(options) {
|
|
|
1661
1661
|
const latestLink = new OpenAPILink(apiLatestContract, {
|
|
1662
1662
|
url: `${options.baseUrl}/registry/api/latest`,
|
|
1663
1663
|
headers: () => ({
|
|
1664
|
-
Authorization: `Bearer ${options.token}
|
|
1664
|
+
Authorization: `Bearer ${options.token}`,
|
|
1665
|
+
...options.headers
|
|
1665
1666
|
})
|
|
1666
1667
|
});
|
|
1667
1668
|
const readLink = new OpenAPILink(apiReadContract, {
|
|
1668
1669
|
url: `${options.baseUrl}/registry/api`,
|
|
1669
1670
|
headers: () => ({
|
|
1670
|
-
Authorization: `Bearer ${options.token}
|
|
1671
|
+
Authorization: `Bearer ${options.token}`,
|
|
1672
|
+
...options.headers
|
|
1671
1673
|
})
|
|
1672
1674
|
});
|
|
1673
1675
|
const registerLink = new OpenAPILink(apiRegisterContract, {
|
|
1674
1676
|
url: `${options.baseUrl}/registry/api`,
|
|
1675
1677
|
headers: () => ({
|
|
1676
|
-
Authorization: `Bearer ${options.token}
|
|
1678
|
+
Authorization: `Bearer ${options.token}`,
|
|
1679
|
+
...options.headers
|
|
1677
1680
|
})
|
|
1678
1681
|
});
|
|
1679
1682
|
return {
|
|
@@ -1713,7 +1716,8 @@ function createDashboardClient(options) {
|
|
|
1713
1716
|
const link = new OpenAPILink2(dashboardContract, {
|
|
1714
1717
|
url: `${options.baseUrl}/dashboard`,
|
|
1715
1718
|
headers: () => ({
|
|
1716
|
-
Authorization: `Bearer ${options.token}
|
|
1719
|
+
Authorization: `Bearer ${options.token}`,
|
|
1720
|
+
...options.headers
|
|
1717
1721
|
})
|
|
1718
1722
|
});
|
|
1719
1723
|
return createORPCClient2(link);
|
|
@@ -2443,7 +2447,8 @@ function createDocsV1ReadClient(options) {
|
|
|
2443
2447
|
const link = new OpenAPILink3(docsV1ReadContract, {
|
|
2444
2448
|
url: `${options.baseUrl}/registry/docs`,
|
|
2445
2449
|
headers: () => ({
|
|
2446
|
-
Authorization: `Bearer ${options.token}
|
|
2450
|
+
Authorization: `Bearer ${options.token}`,
|
|
2451
|
+
...options.headers
|
|
2447
2452
|
})
|
|
2448
2453
|
});
|
|
2449
2454
|
return createORPCClient3(link);
|
|
@@ -2480,7 +2485,8 @@ function createDocsV1WriteClient(options) {
|
|
|
2480
2485
|
const link = new OpenAPILink4(docsV1WriteContract, {
|
|
2481
2486
|
url: `${options.baseUrl}/registry/docs`,
|
|
2482
2487
|
headers: () => ({
|
|
2483
|
-
Authorization: `Bearer ${options.token}
|
|
2488
|
+
Authorization: `Bearer ${options.token}`,
|
|
2489
|
+
...options.headers
|
|
2484
2490
|
})
|
|
2485
2491
|
});
|
|
2486
2492
|
return createORPCClient4(link);
|
|
@@ -2576,7 +2582,8 @@ function createLibraryDocsClient(options) {
|
|
|
2576
2582
|
const link = new OpenAPILink5(libraryDocsContract, {
|
|
2577
2583
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
2578
2584
|
headers: () => ({
|
|
2579
|
-
Authorization: `Bearer ${options.token}
|
|
2585
|
+
Authorization: `Bearer ${options.token}`,
|
|
2586
|
+
...options.headers
|
|
2580
2587
|
})
|
|
2581
2588
|
});
|
|
2582
2589
|
return createORPCClient5(link);
|
|
@@ -2601,7 +2608,8 @@ function createOrganizationClient(options) {
|
|
|
2601
2608
|
const link = new OpenAPILink6(organizationContract, {
|
|
2602
2609
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
2603
2610
|
headers: () => ({
|
|
2604
|
-
Authorization: `Bearer ${options.token}
|
|
2611
|
+
Authorization: `Bearer ${options.token}`,
|
|
2612
|
+
...options.headers
|
|
2605
2613
|
})
|
|
2606
2614
|
});
|
|
2607
2615
|
return createORPCClient6(link);
|
|
@@ -2679,7 +2687,8 @@ function createDocsV2ReadClient(options) {
|
|
|
2679
2687
|
const link = new OpenAPILink7(docsV2ReadContract, {
|
|
2680
2688
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
2681
2689
|
headers: () => ({
|
|
2682
|
-
Authorization: `Bearer ${options.token}
|
|
2690
|
+
Authorization: `Bearer ${options.token}`,
|
|
2691
|
+
...options.headers
|
|
2683
2692
|
})
|
|
2684
2693
|
});
|
|
2685
2694
|
return createORPCClient7(link);
|
|
@@ -2780,7 +2789,8 @@ function createDocsV2WriteClient(options) {
|
|
|
2780
2789
|
const link = new OpenAPILink8(docsV2WriteContract, {
|
|
2781
2790
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
2782
2791
|
headers: () => ({
|
|
2783
|
-
Authorization: `Bearer ${options.token}
|
|
2792
|
+
Authorization: `Bearer ${options.token}`,
|
|
2793
|
+
...options.headers
|
|
2784
2794
|
})
|
|
2785
2795
|
});
|
|
2786
2796
|
return createORPCClient8(link);
|
|
@@ -2821,7 +2831,8 @@ function createDocsCacheClient(options) {
|
|
|
2821
2831
|
const link = new OpenAPILink9(docsCacheContract, {
|
|
2822
2832
|
url: `${options.baseUrl}/docs-cache`,
|
|
2823
2833
|
headers: () => ({
|
|
2824
|
-
Authorization: `Bearer ${options.token}
|
|
2834
|
+
Authorization: `Bearer ${options.token}`,
|
|
2835
|
+
...options.headers
|
|
2825
2836
|
})
|
|
2826
2837
|
});
|
|
2827
2838
|
return createORPCClient9(link);
|
|
@@ -2930,7 +2941,8 @@ function createDocsDeploymentClient(options) {
|
|
|
2930
2941
|
const link = new OpenAPILink10(docsDeploymentContract, {
|
|
2931
2942
|
url: `${options.baseUrl}/docs-deployment`,
|
|
2932
2943
|
headers: () => ({
|
|
2933
|
-
Authorization: `Bearer ${options.token}
|
|
2944
|
+
Authorization: `Bearer ${options.token}`,
|
|
2945
|
+
...options.headers
|
|
2934
2946
|
})
|
|
2935
2947
|
});
|
|
2936
2948
|
return createORPCClient10(link);
|
|
@@ -3132,7 +3144,8 @@ function createGeneratorCliClient(options) {
|
|
|
3132
3144
|
const link = new OpenAPILink11(generatorCliContract, {
|
|
3133
3145
|
url: `${options.baseUrl}/generators/cli`,
|
|
3134
3146
|
headers: () => ({
|
|
3135
|
-
Authorization: `Bearer ${options.token}
|
|
3147
|
+
Authorization: `Bearer ${options.token}`,
|
|
3148
|
+
...options.headers
|
|
3136
3149
|
})
|
|
3137
3150
|
});
|
|
3138
3151
|
return createORPCClient11(link);
|
|
@@ -3145,7 +3158,8 @@ function createGeneratorsRootClient(options) {
|
|
|
3145
3158
|
const link = new OpenAPILink12(generatorsContract, {
|
|
3146
3159
|
url: `${options.baseUrl}/generators`,
|
|
3147
3160
|
headers: () => ({
|
|
3148
|
-
Authorization: `Bearer ${options.token}
|
|
3161
|
+
Authorization: `Bearer ${options.token}`,
|
|
3162
|
+
...options.headers
|
|
3149
3163
|
})
|
|
3150
3164
|
});
|
|
3151
3165
|
return createORPCClient12(link);
|
|
@@ -3158,7 +3172,8 @@ function createGeneratorVersionsClient(options) {
|
|
|
3158
3172
|
const link = new OpenAPILink13(generatorVersionsContract, {
|
|
3159
3173
|
url: `${options.baseUrl}/generators/versions`,
|
|
3160
3174
|
headers: () => ({
|
|
3161
|
-
Authorization: `Bearer ${options.token}
|
|
3175
|
+
Authorization: `Bearer ${options.token}`,
|
|
3176
|
+
...options.headers
|
|
3162
3177
|
})
|
|
3163
3178
|
});
|
|
3164
3179
|
return createORPCClient13(link);
|
|
@@ -3295,7 +3310,8 @@ function createGitClient(options) {
|
|
|
3295
3310
|
const link = new OpenAPILink14(gitContract, {
|
|
3296
3311
|
url: `${options.baseUrl}/generators/github`,
|
|
3297
3312
|
headers: () => ({
|
|
3298
|
-
Authorization: `Bearer ${options.token}
|
|
3313
|
+
Authorization: `Bearer ${options.token}`,
|
|
3314
|
+
...options.headers
|
|
3299
3315
|
})
|
|
3300
3316
|
});
|
|
3301
3317
|
return createORPCClient14(link);
|
|
@@ -3394,7 +3410,8 @@ function createPdfExportClient(options) {
|
|
|
3394
3410
|
const link = new OpenAPILink15(pdfExportContract, {
|
|
3395
3411
|
url: `${options.baseUrl}/pdf-export`,
|
|
3396
3412
|
headers: () => ({
|
|
3397
|
-
Authorization: `Bearer ${options.token}
|
|
3413
|
+
Authorization: `Bearer ${options.token}`,
|
|
3414
|
+
...options.headers
|
|
3398
3415
|
})
|
|
3399
3416
|
});
|
|
3400
3417
|
return createORPCClient15(link);
|
|
@@ -3437,7 +3454,8 @@ function createSdksClient(options) {
|
|
|
3437
3454
|
const link = new OpenAPILink16(sdksContract, {
|
|
3438
3455
|
url: `${options.baseUrl}/sdks`,
|
|
3439
3456
|
headers: () => ({
|
|
3440
|
-
Authorization: `Bearer ${options.token}
|
|
3457
|
+
Authorization: `Bearer ${options.token}`,
|
|
3458
|
+
...options.headers
|
|
3441
3459
|
})
|
|
3442
3460
|
});
|
|
3443
3461
|
return createORPCClient16(link);
|
|
@@ -3554,7 +3572,8 @@ function createSnippetsFactoryClient(options) {
|
|
|
3554
3572
|
const link = new OpenAPILink17(snippetsFactoryContract, {
|
|
3555
3573
|
url: `${options.baseUrl}/snippets`,
|
|
3556
3574
|
headers: () => ({
|
|
3557
|
-
Authorization: `Bearer ${options.token}
|
|
3575
|
+
Authorization: `Bearer ${options.token}`,
|
|
3576
|
+
...options.headers
|
|
3558
3577
|
})
|
|
3559
3578
|
});
|
|
3560
3579
|
return createORPCClient17(link);
|
|
@@ -3563,7 +3582,8 @@ function createSnippetsClient(options) {
|
|
|
3563
3582
|
const link = new OpenAPILink17(snippetsContract, {
|
|
3564
3583
|
url: `${options.baseUrl}/snippets`,
|
|
3565
3584
|
headers: () => ({
|
|
3566
|
-
Authorization: `Bearer ${options.token}
|
|
3585
|
+
Authorization: `Bearer ${options.token}`,
|
|
3586
|
+
...options.headers
|
|
3567
3587
|
})
|
|
3568
3588
|
});
|
|
3569
3589
|
return createORPCClient17(link);
|
|
@@ -3624,7 +3644,8 @@ function createTemplatesClient(options) {
|
|
|
3624
3644
|
const link = new OpenAPILink18(templatesContract, {
|
|
3625
3645
|
url: `${options.baseUrl}/snippet-template`,
|
|
3626
3646
|
headers: () => ({
|
|
3627
|
-
Authorization: `Bearer ${options.token}
|
|
3647
|
+
Authorization: `Bearer ${options.token}`,
|
|
3648
|
+
...options.headers
|
|
3628
3649
|
})
|
|
3629
3650
|
});
|
|
3630
3651
|
return createORPCClient18(link);
|
|
@@ -3659,7 +3680,8 @@ function createTokensClient(options) {
|
|
|
3659
3680
|
const link = new OpenAPILink19(tokensContract, {
|
|
3660
3681
|
url: `${options.baseUrl}/tokens`,
|
|
3661
3682
|
headers: () => ({
|
|
3662
|
-
Authorization: `Bearer ${options.token}
|
|
3683
|
+
Authorization: `Bearer ${options.token}`,
|
|
3684
|
+
...options.headers
|
|
3663
3685
|
})
|
|
3664
3686
|
});
|
|
3665
3687
|
return createORPCClient19(link);
|
|
@@ -3698,7 +3720,8 @@ var FdrClient = class {
|
|
|
3698
3720
|
constructor(options = {}) {
|
|
3699
3721
|
this.client = createFdrORPCClient({
|
|
3700
3722
|
baseUrl: options.environment ?? "https://registry.buildwithfern.com",
|
|
3701
|
-
token: options.token ?? ""
|
|
3723
|
+
token: options.token ?? "",
|
|
3724
|
+
headers: options.headers
|
|
3702
3725
|
});
|
|
3703
3726
|
}
|
|
3704
3727
|
get api() {
|