@fern-api/fdr-sdk 1.2.102-1e451b148c → 1.2.103-6f6c57cd35

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 (63) hide show
  1. package/dist/js/api-definition/index.js +33 -3
  2. package/dist/js/api-definition/index.js.map +1 -1
  3. package/dist/js/api-definition/index.mjs +32 -3
  4. package/dist/js/api-definition/index.mjs.map +1 -1
  5. package/dist/js/client/FdrClient.js +28 -1
  6. package/dist/js/client/FdrClient.js.map +1 -1
  7. package/dist/js/client/FdrClient.mjs +28 -1
  8. package/dist/js/client/FdrClient.mjs.map +1 -1
  9. package/dist/js/client/types.js.map +1 -1
  10. package/dist/js/client/types.mjs.map +1 -1
  11. package/dist/js/converters/index.js +120 -5
  12. package/dist/js/converters/index.js.map +1 -1
  13. package/dist/js/converters/index.mjs +120 -5
  14. package/dist/js/converters/index.mjs.map +1 -1
  15. package/dist/js/index.js +148 -6
  16. package/dist/js/index.js.map +1 -1
  17. package/dist/js/index.mjs +148 -6
  18. package/dist/js/index.mjs.map +1 -1
  19. package/dist/js/navigation/index.js +120 -5
  20. package/dist/js/navigation/index.js.map +1 -1
  21. package/dist/js/navigation/index.mjs +120 -5
  22. package/dist/js/navigation/index.mjs.map +1 -1
  23. package/dist/js/navigation/ledger-root-builder.js +40 -1
  24. package/dist/js/navigation/ledger-root-builder.js.map +1 -1
  25. package/dist/js/navigation/ledger-root-builder.mjs +40 -1
  26. package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
  27. package/dist/js/navigation/types/v1.js.map +1 -1
  28. package/dist/js/navigation/types/v1.mjs.map +1 -1
  29. package/dist/js/orpc-client.js +31 -1
  30. package/dist/js/orpc-client.js.map +1 -1
  31. package/dist/js/orpc-client.mjs +30 -1
  32. package/dist/js/orpc-client.mjs.map +1 -1
  33. package/dist/types/api-definition/__test__/type-back-references.test.d.ts +2 -0
  34. package/dist/types/api-definition/__test__/type-back-references.test.d.ts.map +1 -0
  35. package/dist/types/api-definition/index.d.ts +1 -0
  36. package/dist/types/api-definition/index.d.ts.map +1 -1
  37. package/dist/types/api-definition/prune.d.ts +3 -0
  38. package/dist/types/api-definition/prune.d.ts.map +1 -1
  39. package/dist/types/api-definition/type-back-references.d.ts +23 -0
  40. package/dist/types/api-definition/type-back-references.d.ts.map +1 -0
  41. package/dist/types/navigation/NodeCollector.d.ts +41 -0
  42. package/dist/types/navigation/NodeCollector.d.ts.map +1 -1
  43. package/dist/types/navigation/__test__/NodeCollector.graphqlTypeIndex.test.d.ts +2 -0
  44. package/dist/types/navigation/__test__/NodeCollector.graphqlTypeIndex.test.d.ts.map +1 -0
  45. package/dist/types/navigation/ledger-root-builder.d.ts +1 -1
  46. package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
  47. package/dist/types/navigation/migrators/__test__/graphqlType.test.d.ts +2 -0
  48. package/dist/types/navigation/migrators/__test__/graphqlType.test.d.ts.map +1 -0
  49. package/dist/types/navigation/migrators/v1ToV2.d.ts +1 -0
  50. package/dist/types/navigation/migrators/v1ToV2.d.ts.map +1 -1
  51. package/dist/types/navigation/types/v1.d.ts +14 -2
  52. package/dist/types/navigation/types/v1.d.ts.map +1 -1
  53. package/dist/types/navigation/versions/v1/NavigationNode.d.ts +1 -1
  54. package/dist/types/navigation/versions/v1/NavigationNode.d.ts.map +1 -1
  55. package/dist/types/navigation/versions/v1/NavigationNodeApiLeaf.d.ts +2 -2
  56. package/dist/types/navigation/versions/v1/NavigationNodeApiLeaf.d.ts.map +1 -1
  57. package/dist/types/navigation/versions/v1/followRedirect.d.ts.map +1 -1
  58. package/dist/types/navigation/versions/v1/getPageId.d.ts.map +1 -1
  59. package/dist/types/orpc-client/docs-ledger/contract.d.ts +4258 -948
  60. package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
  61. package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +2792 -232
  62. package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
  63. package/package.json +6 -6
@@ -4309,6 +4309,7 @@ var LedgerArtifactTypeSchema = z22.enum([
4309
4309
  "webhook",
4310
4310
  "grpc",
4311
4311
  "graphql",
4312
+ "graphqlType",
4312
4313
  "changelog",
4313
4314
  "link",
4314
4315
  "file",
@@ -4456,6 +4457,28 @@ var LedgerGraphQlMetadataSchema = LedgerMetadataBaseSchema.extend({
4456
4457
  graphqlOperationId: z22.string(),
4457
4458
  operationType: GraphQlOperationTypeSchema
4458
4459
  });
4460
+ var LedgerGraphQlTypeMetadataSchema = LedgerMetadataBaseSchema.extend({
4461
+ ...ApiNodeMetadataFields,
4462
+ typeId: z22.string(),
4463
+ typeCategory: GraphQlTypeCategorySchema,
4464
+ /**
4465
+ * Ids of the types that reference this one directly, for the "referenced by"
4466
+ * section of a type page.
4467
+ *
4468
+ * Computed at publish, because it cannot be derived on the read side: a type
4469
+ * page's pruned definition contains what the type reaches, not what reaches
4470
+ * it, and the navigation tree carries no field-level type references.
4471
+ *
4472
+ * Types rather than operations: where a schema namespaces its operations
4473
+ * behind hub types, almost no operation names a leaf type directly, so an
4474
+ * operation-keyed list is empty for most types. The type graph has the edge
4475
+ * that exists, and it is small -- single digits for the large majority.
4476
+ *
4477
+ * Optional: absent on artifacts written before this field existed, and
4478
+ * omitted entirely when nothing references the type.
4479
+ */
4480
+ referencedByTypeIds: z22.array(z22.string()).optional()
4481
+ });
4459
4482
  var LedgerChangelogEntryMetadataSchema = LedgerMetadataBaseSchema.extend({
4460
4483
  ...NodeMetadataFields,
4461
4484
  pageId: z22.string(),
@@ -4500,6 +4523,7 @@ var LedgerArtifactMetadataSchema = z22.union([
4500
4523
  LedgerWebhookMetadataSchema,
4501
4524
  LedgerGrpcMetadataSchema,
4502
4525
  LedgerGraphQlMetadataSchema,
4526
+ LedgerGraphQlTypeMetadataSchema,
4503
4527
  LedgerChangelogEntryMetadataSchema,
4504
4528
  LedgerLinkMetadataSchema,
4505
4529
  LedgerFileArtifactMetadataSchema,
@@ -4513,6 +4537,7 @@ var LEDGER_ARTIFACT_METADATA_SCHEMAS = {
4513
4537
  webhook: LedgerWebhookMetadataSchema,
4514
4538
  grpc: LedgerGrpcMetadataSchema,
4515
4539
  graphql: LedgerGraphQlMetadataSchema,
4540
+ graphqlType: LedgerGraphQlTypeMetadataSchema,
4516
4541
  changelog: LedgerChangelogEntryMetadataSchema,
4517
4542
  link: LedgerLinkMetadataSchema,
4518
4543
  file: LedgerFileArtifactMetadataSchema,
@@ -4545,6 +4570,7 @@ var LedgerNavRouteSchema = z22.discriminatedUnion("type", [
4545
4570
  navRouteVariant("webhook"),
4546
4571
  navRouteVariant("grpc"),
4547
4572
  navRouteVariant("graphql"),
4573
+ navRouteVariant("graphqlType"),
4548
4574
  navRouteVariant("changelog"),
4549
4575
  navRouteVariant("link"),
4550
4576
  navRouteVariant("file"),
@@ -4860,6 +4886,7 @@ var RouteContextResponseSchema = z22.discriminatedUnion("artifactType", [
4860
4886
  artifactTypeVariant(RouteContextResponseBaseSchema, "webhook"),
4861
4887
  artifactTypeVariant(RouteContextResponseBaseSchema, "grpc"),
4862
4888
  artifactTypeVariant(RouteContextResponseBaseSchema, "graphql"),
4889
+ artifactTypeVariant(RouteContextResponseBaseSchema, "graphqlType"),
4863
4890
  artifactTypeVariant(RouteContextResponseBaseSchema, "changelog"),
4864
4891
  artifactTypeVariant(RouteContextResponseBaseSchema, "link"),
4865
4892
  artifactTypeVariant(RouteContextResponseBaseSchema, "file"),
@@ -4907,7 +4934,7 @@ var PrunedApiDefinitionInputSchema = z22.object({
4907
4934
  deploymentId: z22.string(),
4908
4935
  apiDefinitionId: z22.string(),
4909
4936
  /** Discriminator matching PruningNodeType.type → artifact metadata field. */
4910
- nodeType: z22.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql"]),
4937
+ nodeType: z22.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql", "graphqlType"]),
4911
4938
  /** The node ID value (endpointId, webSocketId, etc.). */
4912
4939
  nodeId: z22.string()
4913
4940
  });
@@ -6203,6 +6230,7 @@ var ManifestRouteSchema = z34.discriminatedUnion("artifactType", [
6203
6230
  artifactTypeVariant(ManifestRouteBaseSchema, "webhook"),
6204
6231
  artifactTypeVariant(ManifestRouteBaseSchema, "grpc"),
6205
6232
  artifactTypeVariant(ManifestRouteBaseSchema, "graphql"),
6233
+ artifactTypeVariant(ManifestRouteBaseSchema, "graphqlType"),
6206
6234
  artifactTypeVariant(ManifestRouteBaseSchema, "changelog"),
6207
6235
  artifactTypeVariant(ManifestRouteBaseSchema, "link"),
6208
6236
  artifactTypeVariant(ManifestRouteBaseSchema, "file"),
@@ -6812,6 +6840,7 @@ export {
6812
6840
  LedgerConfigSchema,
6813
6841
  LedgerFileArtifactMetadataSchema,
6814
6842
  LedgerGraphQlMetadataSchema,
6843
+ LedgerGraphQlTypeMetadataSchema,
6815
6844
  LedgerGrpcMetadataSchema,
6816
6845
  LedgerLinkMetadataSchema,
6817
6846
  LedgerLocaleIndexSchema,