@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.
Files changed (58) hide show
  1. package/dist/js/client/FdrClient.js +46 -23
  2. package/dist/js/client/FdrClient.js.map +1 -1
  3. package/dist/js/client/FdrClient.mjs +46 -23
  4. package/dist/js/client/FdrClient.mjs.map +1 -1
  5. package/dist/js/index.js +46 -23
  6. package/dist/js/index.js.map +1 -1
  7. package/dist/js/index.mjs +46 -23
  8. package/dist/js/index.mjs.map +1 -1
  9. package/dist/js/orpc-client.js +44 -22
  10. package/dist/js/orpc-client.js.map +1 -1
  11. package/dist/js/orpc-client.mjs +44 -22
  12. package/dist/js/orpc-client.mjs.map +1 -1
  13. package/dist/tsconfig.tsbuildinfo +1 -1
  14. package/dist/types/client/FdrClient.d.ts +1 -0
  15. package/dist/types/client/FdrClient.d.ts.map +1 -1
  16. package/dist/types/orpc-client/api/client.d.ts +1 -0
  17. package/dist/types/orpc-client/api/client.d.ts.map +1 -1
  18. package/dist/types/orpc-client/client.d.ts +1 -0
  19. package/dist/types/orpc-client/client.d.ts.map +1 -1
  20. package/dist/types/orpc-client/dashboard/client.d.ts +1 -0
  21. package/dist/types/orpc-client/dashboard/client.d.ts.map +1 -1
  22. package/dist/types/orpc-client/docs/client.d.ts +1 -0
  23. package/dist/types/orpc-client/docs/client.d.ts.map +1 -1
  24. package/dist/types/orpc-client/docs/v1/read/client.d.ts +1 -0
  25. package/dist/types/orpc-client/docs/v1/read/client.d.ts.map +1 -1
  26. package/dist/types/orpc-client/docs/v1/write/client.d.ts +1 -0
  27. package/dist/types/orpc-client/docs/v1/write/client.d.ts.map +1 -1
  28. package/dist/types/orpc-client/docs/v2/library-docs/client.d.ts +1 -0
  29. package/dist/types/orpc-client/docs/v2/library-docs/client.d.ts.map +1 -1
  30. package/dist/types/orpc-client/docs/v2/organization/client.d.ts +1 -0
  31. package/dist/types/orpc-client/docs/v2/organization/client.d.ts.map +1 -1
  32. package/dist/types/orpc-client/docs/v2/read/client.d.ts +1 -0
  33. package/dist/types/orpc-client/docs/v2/read/client.d.ts.map +1 -1
  34. package/dist/types/orpc-client/docs/v2/write/client.d.ts +1 -0
  35. package/dist/types/orpc-client/docs/v2/write/client.d.ts.map +1 -1
  36. package/dist/types/orpc-client/docs-cache/client.d.ts +1 -0
  37. package/dist/types/orpc-client/docs-cache/client.d.ts.map +1 -1
  38. package/dist/types/orpc-client/docs-deployment/client.d.ts +1 -0
  39. package/dist/types/orpc-client/docs-deployment/client.d.ts.map +1 -1
  40. package/dist/types/orpc-client/generators/cli/client.d.ts +1 -0
  41. package/dist/types/orpc-client/generators/cli/client.d.ts.map +1 -1
  42. package/dist/types/orpc-client/generators/client.d.ts +1 -0
  43. package/dist/types/orpc-client/generators/client.d.ts.map +1 -1
  44. package/dist/types/orpc-client/generators/versions/client.d.ts +1 -0
  45. package/dist/types/orpc-client/generators/versions/client.d.ts.map +1 -1
  46. package/dist/types/orpc-client/git/client.d.ts +1 -0
  47. package/dist/types/orpc-client/git/client.d.ts.map +1 -1
  48. package/dist/types/orpc-client/pdf-export/client.d.ts +1 -0
  49. package/dist/types/orpc-client/pdf-export/client.d.ts.map +1 -1
  50. package/dist/types/orpc-client/sdks/client.d.ts +1 -0
  51. package/dist/types/orpc-client/sdks/client.d.ts.map +1 -1
  52. package/dist/types/orpc-client/snippets/client.d.ts +1 -0
  53. package/dist/types/orpc-client/snippets/client.d.ts.map +1 -1
  54. package/dist/types/orpc-client/templates/client.d.ts +1 -0
  55. package/dist/types/orpc-client/templates/client.d.ts.map +1 -1
  56. package/dist/types/orpc-client/tokens/client.d.ts +1 -0
  57. package/dist/types/orpc-client/tokens/client.d.ts.map +1 -1
  58. package/package.json +2 -2
@@ -1698,19 +1698,22 @@ function createApiClient(options) {
1698
1698
  const latestLink = new import_fetch.OpenAPILink(apiLatestContract, {
1699
1699
  url: `${options.baseUrl}/registry/api/latest`,
1700
1700
  headers: () => ({
1701
- Authorization: `Bearer ${options.token}`
1701
+ Authorization: `Bearer ${options.token}`,
1702
+ ...options.headers
1702
1703
  })
1703
1704
  });
1704
1705
  const readLink = new import_fetch.OpenAPILink(apiReadContract, {
1705
1706
  url: `${options.baseUrl}/registry/api`,
1706
1707
  headers: () => ({
1707
- Authorization: `Bearer ${options.token}`
1708
+ Authorization: `Bearer ${options.token}`,
1709
+ ...options.headers
1708
1710
  })
1709
1711
  });
1710
1712
  const registerLink = new import_fetch.OpenAPILink(apiRegisterContract, {
1711
1713
  url: `${options.baseUrl}/registry/api`,
1712
1714
  headers: () => ({
1713
- Authorization: `Bearer ${options.token}`
1715
+ Authorization: `Bearer ${options.token}`,
1716
+ ...options.headers
1714
1717
  })
1715
1718
  });
1716
1719
  return {
@@ -1750,7 +1753,8 @@ function createDashboardClient(options) {
1750
1753
  const link = new import_fetch2.OpenAPILink(dashboardContract, {
1751
1754
  url: `${options.baseUrl}/dashboard`,
1752
1755
  headers: () => ({
1753
- Authorization: `Bearer ${options.token}`
1756
+ Authorization: `Bearer ${options.token}`,
1757
+ ...options.headers
1754
1758
  })
1755
1759
  });
1756
1760
  return (0, import_client2.createORPCClient)(link);
@@ -2480,7 +2484,8 @@ function createDocsV1ReadClient(options) {
2480
2484
  const link = new import_fetch3.OpenAPILink(docsV1ReadContract, {
2481
2485
  url: `${options.baseUrl}/registry/docs`,
2482
2486
  headers: () => ({
2483
- Authorization: `Bearer ${options.token}`
2487
+ Authorization: `Bearer ${options.token}`,
2488
+ ...options.headers
2484
2489
  })
2485
2490
  });
2486
2491
  return (0, import_client3.createORPCClient)(link);
@@ -2517,7 +2522,8 @@ function createDocsV1WriteClient(options) {
2517
2522
  const link = new import_fetch4.OpenAPILink(docsV1WriteContract, {
2518
2523
  url: `${options.baseUrl}/registry/docs`,
2519
2524
  headers: () => ({
2520
- Authorization: `Bearer ${options.token}`
2525
+ Authorization: `Bearer ${options.token}`,
2526
+ ...options.headers
2521
2527
  })
2522
2528
  });
2523
2529
  return (0, import_client4.createORPCClient)(link);
@@ -2613,7 +2619,8 @@ function createLibraryDocsClient(options) {
2613
2619
  const link = new import_fetch5.OpenAPILink(libraryDocsContract, {
2614
2620
  url: `${options.baseUrl}/v2/registry/docs`,
2615
2621
  headers: () => ({
2616
- Authorization: `Bearer ${options.token}`
2622
+ Authorization: `Bearer ${options.token}`,
2623
+ ...options.headers
2617
2624
  })
2618
2625
  });
2619
2626
  return (0, import_client5.createORPCClient)(link);
@@ -2638,7 +2645,8 @@ function createOrganizationClient(options) {
2638
2645
  const link = new import_fetch6.OpenAPILink(organizationContract, {
2639
2646
  url: `${options.baseUrl}/v2/registry/docs`,
2640
2647
  headers: () => ({
2641
- Authorization: `Bearer ${options.token}`
2648
+ Authorization: `Bearer ${options.token}`,
2649
+ ...options.headers
2642
2650
  })
2643
2651
  });
2644
2652
  return (0, import_client6.createORPCClient)(link);
@@ -2716,7 +2724,8 @@ function createDocsV2ReadClient(options) {
2716
2724
  const link = new import_fetch7.OpenAPILink(docsV2ReadContract, {
2717
2725
  url: `${options.baseUrl}/v2/registry/docs`,
2718
2726
  headers: () => ({
2719
- Authorization: `Bearer ${options.token}`
2727
+ Authorization: `Bearer ${options.token}`,
2728
+ ...options.headers
2720
2729
  })
2721
2730
  });
2722
2731
  return (0, import_client7.createORPCClient)(link);
@@ -2817,7 +2826,8 @@ function createDocsV2WriteClient(options) {
2817
2826
  const link = new import_fetch8.OpenAPILink(docsV2WriteContract, {
2818
2827
  url: `${options.baseUrl}/v2/registry/docs`,
2819
2828
  headers: () => ({
2820
- Authorization: `Bearer ${options.token}`
2829
+ Authorization: `Bearer ${options.token}`,
2830
+ ...options.headers
2821
2831
  })
2822
2832
  });
2823
2833
  return (0, import_client8.createORPCClient)(link);
@@ -2858,7 +2868,8 @@ function createDocsCacheClient(options) {
2858
2868
  const link = new import_fetch9.OpenAPILink(docsCacheContract, {
2859
2869
  url: `${options.baseUrl}/docs-cache`,
2860
2870
  headers: () => ({
2861
- Authorization: `Bearer ${options.token}`
2871
+ Authorization: `Bearer ${options.token}`,
2872
+ ...options.headers
2862
2873
  })
2863
2874
  });
2864
2875
  return (0, import_client15.createORPCClient)(link);
@@ -2967,7 +2978,8 @@ function createDocsDeploymentClient(options) {
2967
2978
  const link = new import_fetch10.OpenAPILink(docsDeploymentContract, {
2968
2979
  url: `${options.baseUrl}/docs-deployment`,
2969
2980
  headers: () => ({
2970
- Authorization: `Bearer ${options.token}`
2981
+ Authorization: `Bearer ${options.token}`,
2982
+ ...options.headers
2971
2983
  })
2972
2984
  });
2973
2985
  return (0, import_client16.createORPCClient)(link);
@@ -3169,7 +3181,8 @@ function createGeneratorCliClient(options) {
3169
3181
  const link = new import_fetch11.OpenAPILink(generatorCliContract, {
3170
3182
  url: `${options.baseUrl}/generators/cli`,
3171
3183
  headers: () => ({
3172
- Authorization: `Bearer ${options.token}`
3184
+ Authorization: `Bearer ${options.token}`,
3185
+ ...options.headers
3173
3186
  })
3174
3187
  });
3175
3188
  return (0, import_client17.createORPCClient)(link);
@@ -3182,7 +3195,8 @@ function createGeneratorsRootClient(options) {
3182
3195
  const link = new import_fetch12.OpenAPILink(generatorsContract, {
3183
3196
  url: `${options.baseUrl}/generators`,
3184
3197
  headers: () => ({
3185
- Authorization: `Bearer ${options.token}`
3198
+ Authorization: `Bearer ${options.token}`,
3199
+ ...options.headers
3186
3200
  })
3187
3201
  });
3188
3202
  return (0, import_client18.createORPCClient)(link);
@@ -3195,7 +3209,8 @@ function createGeneratorVersionsClient(options) {
3195
3209
  const link = new import_fetch13.OpenAPILink(generatorVersionsContract, {
3196
3210
  url: `${options.baseUrl}/generators/versions`,
3197
3211
  headers: () => ({
3198
- Authorization: `Bearer ${options.token}`
3212
+ Authorization: `Bearer ${options.token}`,
3213
+ ...options.headers
3199
3214
  })
3200
3215
  });
3201
3216
  return (0, import_client19.createORPCClient)(link);
@@ -3332,7 +3347,8 @@ function createGitClient(options) {
3332
3347
  const link = new import_fetch14.OpenAPILink(gitContract, {
3333
3348
  url: `${options.baseUrl}/generators/github`,
3334
3349
  headers: () => ({
3335
- Authorization: `Bearer ${options.token}`
3350
+ Authorization: `Bearer ${options.token}`,
3351
+ ...options.headers
3336
3352
  })
3337
3353
  });
3338
3354
  return (0, import_client20.createORPCClient)(link);
@@ -3431,7 +3447,8 @@ function createPdfExportClient(options) {
3431
3447
  const link = new import_fetch15.OpenAPILink(pdfExportContract, {
3432
3448
  url: `${options.baseUrl}/pdf-export`,
3433
3449
  headers: () => ({
3434
- Authorization: `Bearer ${options.token}`
3450
+ Authorization: `Bearer ${options.token}`,
3451
+ ...options.headers
3435
3452
  })
3436
3453
  });
3437
3454
  return (0, import_client21.createORPCClient)(link);
@@ -3474,7 +3491,8 @@ function createSdksClient(options) {
3474
3491
  const link = new import_fetch16.OpenAPILink(sdksContract, {
3475
3492
  url: `${options.baseUrl}/sdks`,
3476
3493
  headers: () => ({
3477
- Authorization: `Bearer ${options.token}`
3494
+ Authorization: `Bearer ${options.token}`,
3495
+ ...options.headers
3478
3496
  })
3479
3497
  });
3480
3498
  return (0, import_client22.createORPCClient)(link);
@@ -3591,7 +3609,8 @@ function createSnippetsFactoryClient(options) {
3591
3609
  const link = new import_fetch17.OpenAPILink(snippetsFactoryContract, {
3592
3610
  url: `${options.baseUrl}/snippets`,
3593
3611
  headers: () => ({
3594
- Authorization: `Bearer ${options.token}`
3612
+ Authorization: `Bearer ${options.token}`,
3613
+ ...options.headers
3595
3614
  })
3596
3615
  });
3597
3616
  return (0, import_client23.createORPCClient)(link);
@@ -3600,7 +3619,8 @@ function createSnippetsClient(options) {
3600
3619
  const link = new import_fetch17.OpenAPILink(snippetsContract, {
3601
3620
  url: `${options.baseUrl}/snippets`,
3602
3621
  headers: () => ({
3603
- Authorization: `Bearer ${options.token}`
3622
+ Authorization: `Bearer ${options.token}`,
3623
+ ...options.headers
3604
3624
  })
3605
3625
  });
3606
3626
  return (0, import_client23.createORPCClient)(link);
@@ -3661,7 +3681,8 @@ function createTemplatesClient(options) {
3661
3681
  const link = new import_fetch18.OpenAPILink(templatesContract, {
3662
3682
  url: `${options.baseUrl}/snippet-template`,
3663
3683
  headers: () => ({
3664
- Authorization: `Bearer ${options.token}`
3684
+ Authorization: `Bearer ${options.token}`,
3685
+ ...options.headers
3665
3686
  })
3666
3687
  });
3667
3688
  return (0, import_client24.createORPCClient)(link);
@@ -3696,7 +3717,8 @@ function createTokensClient(options) {
3696
3717
  const link = new import_fetch19.OpenAPILink(tokensContract, {
3697
3718
  url: `${options.baseUrl}/tokens`,
3698
3719
  headers: () => ({
3699
- Authorization: `Bearer ${options.token}`
3720
+ Authorization: `Bearer ${options.token}`,
3721
+ ...options.headers
3700
3722
  })
3701
3723
  });
3702
3724
  return (0, import_client25.createORPCClient)(link);
@@ -3735,7 +3757,8 @@ var FdrClient = class {
3735
3757
  constructor(options = {}) {
3736
3758
  this.client = createFdrORPCClient({
3737
3759
  baseUrl: options.environment ?? "https://registry.buildwithfern.com",
3738
- token: options.token ?? ""
3760
+ token: options.token ?? "",
3761
+ headers: options.headers
3739
3762
  });
3740
3763
  }
3741
3764
  get api() {