@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.
- 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 +6 -6
|
@@ -4080,6 +4080,7 @@ var LedgerArtifactTypeSchema = z21.enum([
|
|
|
4080
4080
|
"webhook",
|
|
4081
4081
|
"grpc",
|
|
4082
4082
|
"graphql",
|
|
4083
|
+
"graphqlType",
|
|
4083
4084
|
"changelog",
|
|
4084
4085
|
"link",
|
|
4085
4086
|
"file",
|
|
@@ -4227,6 +4228,28 @@ var LedgerGraphQlMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
|
4227
4228
|
graphqlOperationId: z21.string(),
|
|
4228
4229
|
operationType: GraphQlOperationTypeSchema
|
|
4229
4230
|
});
|
|
4231
|
+
var LedgerGraphQlTypeMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4232
|
+
...ApiNodeMetadataFields,
|
|
4233
|
+
typeId: z21.string(),
|
|
4234
|
+
typeCategory: GraphQlTypeCategorySchema,
|
|
4235
|
+
/**
|
|
4236
|
+
* Ids of the types that reference this one directly, for the "referenced by"
|
|
4237
|
+
* section of a type page.
|
|
4238
|
+
*
|
|
4239
|
+
* Computed at publish, because it cannot be derived on the read side: a type
|
|
4240
|
+
* page's pruned definition contains what the type reaches, not what reaches
|
|
4241
|
+
* it, and the navigation tree carries no field-level type references.
|
|
4242
|
+
*
|
|
4243
|
+
* Types rather than operations: where a schema namespaces its operations
|
|
4244
|
+
* behind hub types, almost no operation names a leaf type directly, so an
|
|
4245
|
+
* operation-keyed list is empty for most types. The type graph has the edge
|
|
4246
|
+
* that exists, and it is small -- single digits for the large majority.
|
|
4247
|
+
*
|
|
4248
|
+
* Optional: absent on artifacts written before this field existed, and
|
|
4249
|
+
* omitted entirely when nothing references the type.
|
|
4250
|
+
*/
|
|
4251
|
+
referencedByTypeIds: z21.array(z21.string()).optional()
|
|
4252
|
+
});
|
|
4230
4253
|
var LedgerChangelogEntryMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4231
4254
|
...NodeMetadataFields,
|
|
4232
4255
|
pageId: z21.string(),
|
|
@@ -4271,6 +4294,7 @@ var LedgerArtifactMetadataSchema = z21.union([
|
|
|
4271
4294
|
LedgerWebhookMetadataSchema,
|
|
4272
4295
|
LedgerGrpcMetadataSchema,
|
|
4273
4296
|
LedgerGraphQlMetadataSchema,
|
|
4297
|
+
LedgerGraphQlTypeMetadataSchema,
|
|
4274
4298
|
LedgerChangelogEntryMetadataSchema,
|
|
4275
4299
|
LedgerLinkMetadataSchema,
|
|
4276
4300
|
LedgerFileArtifactMetadataSchema,
|
|
@@ -4284,6 +4308,7 @@ var LEDGER_ARTIFACT_METADATA_SCHEMAS = {
|
|
|
4284
4308
|
webhook: LedgerWebhookMetadataSchema,
|
|
4285
4309
|
grpc: LedgerGrpcMetadataSchema,
|
|
4286
4310
|
graphql: LedgerGraphQlMetadataSchema,
|
|
4311
|
+
graphqlType: LedgerGraphQlTypeMetadataSchema,
|
|
4287
4312
|
changelog: LedgerChangelogEntryMetadataSchema,
|
|
4288
4313
|
link: LedgerLinkMetadataSchema,
|
|
4289
4314
|
file: LedgerFileArtifactMetadataSchema,
|
|
@@ -4316,6 +4341,7 @@ var LedgerNavRouteSchema = z21.discriminatedUnion("type", [
|
|
|
4316
4341
|
navRouteVariant("webhook"),
|
|
4317
4342
|
navRouteVariant("grpc"),
|
|
4318
4343
|
navRouteVariant("graphql"),
|
|
4344
|
+
navRouteVariant("graphqlType"),
|
|
4319
4345
|
navRouteVariant("changelog"),
|
|
4320
4346
|
navRouteVariant("link"),
|
|
4321
4347
|
navRouteVariant("file"),
|
|
@@ -4631,6 +4657,7 @@ var RouteContextResponseSchema = z21.discriminatedUnion("artifactType", [
|
|
|
4631
4657
|
artifactTypeVariant(RouteContextResponseBaseSchema, "webhook"),
|
|
4632
4658
|
artifactTypeVariant(RouteContextResponseBaseSchema, "grpc"),
|
|
4633
4659
|
artifactTypeVariant(RouteContextResponseBaseSchema, "graphql"),
|
|
4660
|
+
artifactTypeVariant(RouteContextResponseBaseSchema, "graphqlType"),
|
|
4634
4661
|
artifactTypeVariant(RouteContextResponseBaseSchema, "changelog"),
|
|
4635
4662
|
artifactTypeVariant(RouteContextResponseBaseSchema, "link"),
|
|
4636
4663
|
artifactTypeVariant(RouteContextResponseBaseSchema, "file"),
|
|
@@ -4678,7 +4705,7 @@ var PrunedApiDefinitionInputSchema = z21.object({
|
|
|
4678
4705
|
deploymentId: z21.string(),
|
|
4679
4706
|
apiDefinitionId: z21.string(),
|
|
4680
4707
|
/** Discriminator matching PruningNodeType.type → artifact metadata field. */
|
|
4681
|
-
nodeType: z21.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql"]),
|
|
4708
|
+
nodeType: z21.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql", "graphqlType"]),
|
|
4682
4709
|
/** The node ID value (endpointId, webSocketId, etc.). */
|
|
4683
4710
|
nodeId: z21.string()
|
|
4684
4711
|
});
|