@fern-api/fdr-sdk 1.2.102-1e451b148c → 1.2.103-f004fc2c21
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/api-definition/index.js +33 -3
- package/dist/js/api-definition/index.js.map +1 -1
- package/dist/js/api-definition/index.mjs +32 -3
- package/dist/js/api-definition/index.mjs.map +1 -1
- package/dist/js/client/FdrClient.js +28 -1
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +28 -1
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/client/types.js.map +1 -1
- package/dist/js/client/types.mjs.map +1 -1
- package/dist/js/converters/index.js +120 -5
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +120 -5
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +148 -6
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +148 -6
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +120 -5
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +120 -5
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/navigation/ledger-root-builder.js +40 -1
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +40 -1
- package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
- package/dist/js/navigation/types/v1.js.map +1 -1
- package/dist/js/navigation/types/v1.mjs.map +1 -1
- package/dist/js/orpc-client.js +31 -1
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +30 -1
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/types/api-definition/__test__/type-back-references.test.d.ts +2 -0
- package/dist/types/api-definition/__test__/type-back-references.test.d.ts.map +1 -0
- package/dist/types/api-definition/index.d.ts +1 -0
- package/dist/types/api-definition/index.d.ts.map +1 -1
- package/dist/types/api-definition/prune.d.ts +3 -0
- package/dist/types/api-definition/prune.d.ts.map +1 -1
- package/dist/types/api-definition/type-back-references.d.ts +23 -0
- package/dist/types/api-definition/type-back-references.d.ts.map +1 -0
- package/dist/types/navigation/NodeCollector.d.ts +41 -0
- package/dist/types/navigation/NodeCollector.d.ts.map +1 -1
- package/dist/types/navigation/__test__/NodeCollector.graphqlTypeIndex.test.d.ts +2 -0
- package/dist/types/navigation/__test__/NodeCollector.graphqlTypeIndex.test.d.ts.map +1 -0
- package/dist/types/navigation/ledger-root-builder.d.ts +1 -1
- package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/types/navigation/migrators/__test__/graphqlType.test.d.ts +2 -0
- package/dist/types/navigation/migrators/__test__/graphqlType.test.d.ts.map +1 -0
- package/dist/types/navigation/migrators/v1ToV2.d.ts +1 -0
- package/dist/types/navigation/migrators/v1ToV2.d.ts.map +1 -1
- package/dist/types/navigation/types/v1.d.ts +14 -2
- package/dist/types/navigation/types/v1.d.ts.map +1 -1
- package/dist/types/navigation/versions/v1/NavigationNode.d.ts +1 -1
- package/dist/types/navigation/versions/v1/NavigationNode.d.ts.map +1 -1
- package/dist/types/navigation/versions/v1/NavigationNodeApiLeaf.d.ts +2 -2
- package/dist/types/navigation/versions/v1/NavigationNodeApiLeaf.d.ts.map +1 -1
- package/dist/types/navigation/versions/v1/followRedirect.d.ts.map +1 -1
- package/dist/types/navigation/versions/v1/getPageId.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +4258 -948
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +2792 -232
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4117,6 +4117,7 @@ var LedgerArtifactTypeSchema = z21.enum([
|
|
|
4117
4117
|
"webhook",
|
|
4118
4118
|
"grpc",
|
|
4119
4119
|
"graphql",
|
|
4120
|
+
"graphqlType",
|
|
4120
4121
|
"changelog",
|
|
4121
4122
|
"link",
|
|
4122
4123
|
"file",
|
|
@@ -4264,6 +4265,28 @@ var LedgerGraphQlMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
|
4264
4265
|
graphqlOperationId: z21.string(),
|
|
4265
4266
|
operationType: GraphQlOperationTypeSchema
|
|
4266
4267
|
});
|
|
4268
|
+
var LedgerGraphQlTypeMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4269
|
+
...ApiNodeMetadataFields,
|
|
4270
|
+
typeId: z21.string(),
|
|
4271
|
+
typeCategory: GraphQlTypeCategorySchema,
|
|
4272
|
+
/**
|
|
4273
|
+
* Ids of the types that reference this one directly, for the "referenced by"
|
|
4274
|
+
* section of a type page.
|
|
4275
|
+
*
|
|
4276
|
+
* Computed at publish, because it cannot be derived on the read side: a type
|
|
4277
|
+
* page's pruned definition contains what the type reaches, not what reaches
|
|
4278
|
+
* it, and the navigation tree carries no field-level type references.
|
|
4279
|
+
*
|
|
4280
|
+
* Types rather than operations: where a schema namespaces its operations
|
|
4281
|
+
* behind hub types, almost no operation names a leaf type directly, so an
|
|
4282
|
+
* operation-keyed list is empty for most types. The type graph has the edge
|
|
4283
|
+
* that exists, and it is small -- single digits for the large majority.
|
|
4284
|
+
*
|
|
4285
|
+
* Optional: absent on artifacts written before this field existed, and
|
|
4286
|
+
* omitted entirely when nothing references the type.
|
|
4287
|
+
*/
|
|
4288
|
+
referencedByTypeIds: z21.array(z21.string()).optional()
|
|
4289
|
+
});
|
|
4267
4290
|
var LedgerChangelogEntryMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4268
4291
|
...NodeMetadataFields,
|
|
4269
4292
|
pageId: z21.string(),
|
|
@@ -4308,6 +4331,7 @@ var LedgerArtifactMetadataSchema = z21.union([
|
|
|
4308
4331
|
LedgerWebhookMetadataSchema,
|
|
4309
4332
|
LedgerGrpcMetadataSchema,
|
|
4310
4333
|
LedgerGraphQlMetadataSchema,
|
|
4334
|
+
LedgerGraphQlTypeMetadataSchema,
|
|
4311
4335
|
LedgerChangelogEntryMetadataSchema,
|
|
4312
4336
|
LedgerLinkMetadataSchema,
|
|
4313
4337
|
LedgerFileArtifactMetadataSchema,
|
|
@@ -4321,6 +4345,7 @@ var LEDGER_ARTIFACT_METADATA_SCHEMAS = {
|
|
|
4321
4345
|
webhook: LedgerWebhookMetadataSchema,
|
|
4322
4346
|
grpc: LedgerGrpcMetadataSchema,
|
|
4323
4347
|
graphql: LedgerGraphQlMetadataSchema,
|
|
4348
|
+
graphqlType: LedgerGraphQlTypeMetadataSchema,
|
|
4324
4349
|
changelog: LedgerChangelogEntryMetadataSchema,
|
|
4325
4350
|
link: LedgerLinkMetadataSchema,
|
|
4326
4351
|
file: LedgerFileArtifactMetadataSchema,
|
|
@@ -4353,6 +4378,7 @@ var LedgerNavRouteSchema = z21.discriminatedUnion("type", [
|
|
|
4353
4378
|
navRouteVariant("webhook"),
|
|
4354
4379
|
navRouteVariant("grpc"),
|
|
4355
4380
|
navRouteVariant("graphql"),
|
|
4381
|
+
navRouteVariant("graphqlType"),
|
|
4356
4382
|
navRouteVariant("changelog"),
|
|
4357
4383
|
navRouteVariant("link"),
|
|
4358
4384
|
navRouteVariant("file"),
|
|
@@ -4668,6 +4694,7 @@ var RouteContextResponseSchema = z21.discriminatedUnion("artifactType", [
|
|
|
4668
4694
|
artifactTypeVariant(RouteContextResponseBaseSchema, "webhook"),
|
|
4669
4695
|
artifactTypeVariant(RouteContextResponseBaseSchema, "grpc"),
|
|
4670
4696
|
artifactTypeVariant(RouteContextResponseBaseSchema, "graphql"),
|
|
4697
|
+
artifactTypeVariant(RouteContextResponseBaseSchema, "graphqlType"),
|
|
4671
4698
|
artifactTypeVariant(RouteContextResponseBaseSchema, "changelog"),
|
|
4672
4699
|
artifactTypeVariant(RouteContextResponseBaseSchema, "link"),
|
|
4673
4700
|
artifactTypeVariant(RouteContextResponseBaseSchema, "file"),
|
|
@@ -4715,7 +4742,7 @@ var PrunedApiDefinitionInputSchema = z21.object({
|
|
|
4715
4742
|
deploymentId: z21.string(),
|
|
4716
4743
|
apiDefinitionId: z21.string(),
|
|
4717
4744
|
/** Discriminator matching PruningNodeType.type → artifact metadata field. */
|
|
4718
|
-
nodeType: z21.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql"]),
|
|
4745
|
+
nodeType: z21.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql", "graphqlType"]),
|
|
4719
4746
|
/** The node ID value (endpointId, webSocketId, etc.). */
|
|
4720
4747
|
nodeId: z21.string()
|
|
4721
4748
|
});
|