@fern-api/fdr-sdk 0.146.0-6f691efe2 → 0.146.0-7e6420c4f

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.
@@ -0,0 +1,14 @@
1
+ import { type PdfExportClient } from "./pdf-export/client.js";
2
+ export interface FdrORPCClient {
3
+ pdfExport: PdfExportClient;
4
+ }
5
+ export interface CreateFdrORPCClientOptions {
6
+ baseUrl: string;
7
+ token: string;
8
+ }
9
+ /**
10
+ * Creates a composed oRPC client with all FDR resources.
11
+ * New resource clients should be added here as they are migrated.
12
+ */
13
+ export declare function createFdrORPCClient(options: CreateFdrORPCClientOptions): FdrORPCClient;
14
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/orpc-client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAErF,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,eAAe,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,GAAG,aAAa,CAItF"}
@@ -1,2 +1,4 @@
1
+ export * from "./client.js";
1
2
  export * from "./pdf-export/index.js";
3
+ export * from "./shared.js";
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orpc-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orpc-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,105 @@
1
+ import * as z from "zod";
2
+ export declare const OrgIdSchema: z.ZodString;
3
+ export type OrgId = z.infer<typeof OrgIdSchema>;
4
+ export declare const ApiIdSchema: z.ZodString;
5
+ export type ApiId = z.infer<typeof ApiIdSchema>;
6
+ export declare const ApiDefinitionIdSchema: z.ZodString;
7
+ export type ApiDefinitionId = z.infer<typeof ApiDefinitionIdSchema>;
8
+ export declare const HttpMethodSchema: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"]>;
9
+ export type HttpMethod = z.infer<typeof HttpMethodSchema>;
10
+ export declare const UrlSchema: z.ZodString;
11
+ export type Url = z.infer<typeof UrlSchema>;
12
+ export declare const EndpointPathLiteralSchema: z.ZodString;
13
+ export type EndpointPathLiteral = z.infer<typeof EndpointPathLiteralSchema>;
14
+ export declare const EndpointIdentifierSchema: z.ZodObject<{
15
+ path: z.ZodString;
16
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"]>;
17
+ identifierOverride: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
20
+ path: string;
21
+ identifierOverride?: string | null | undefined;
22
+ }, {
23
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
24
+ path: string;
25
+ identifierOverride?: string | null | undefined;
26
+ }>;
27
+ export type EndpointIdentifier = z.infer<typeof EndpointIdentifierSchema>;
28
+ export declare const SdkRequestSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
29
+ type: z.ZodLiteral<"typescript">;
30
+ package: z.ZodString;
31
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: "typescript";
34
+ package: string;
35
+ version?: string | null | undefined;
36
+ }, {
37
+ type: "typescript";
38
+ package: string;
39
+ version?: string | null | undefined;
40
+ }>, z.ZodObject<{
41
+ type: z.ZodLiteral<"python">;
42
+ package: z.ZodString;
43
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ type: "python";
46
+ package: string;
47
+ version?: string | null | undefined;
48
+ }, {
49
+ type: "python";
50
+ package: string;
51
+ version?: string | null | undefined;
52
+ }>, z.ZodObject<{
53
+ type: z.ZodLiteral<"go">;
54
+ githubRepo: z.ZodString;
55
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: "go";
58
+ githubRepo: string;
59
+ version?: string | null | undefined;
60
+ }, {
61
+ type: "go";
62
+ githubRepo: string;
63
+ version?: string | null | undefined;
64
+ }>, z.ZodObject<{
65
+ type: z.ZodLiteral<"ruby">;
66
+ gem: z.ZodString;
67
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ type: "ruby";
70
+ gem: string;
71
+ version?: string | null | undefined;
72
+ }, {
73
+ type: "ruby";
74
+ gem: string;
75
+ version?: string | null | undefined;
76
+ }>, z.ZodObject<{
77
+ type: z.ZodLiteral<"java">;
78
+ group: z.ZodString;
79
+ artifact: z.ZodString;
80
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ type: "java";
83
+ group: string;
84
+ artifact: string;
85
+ version?: string | null | undefined;
86
+ }, {
87
+ type: "java";
88
+ group: string;
89
+ artifact: string;
90
+ version?: string | null | undefined;
91
+ }>, z.ZodObject<{
92
+ type: z.ZodLiteral<"csharp">;
93
+ package: z.ZodString;
94
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ type: "csharp";
97
+ package: string;
98
+ version?: string | null | undefined;
99
+ }, {
100
+ type: "csharp";
101
+ package: string;
102
+ version?: string | null | undefined;
103
+ }>]>;
104
+ export type SdkRequest = z.infer<typeof SdkRequestSchema>;
105
+ //# sour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@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/fdr-sdk",
3
- "version": "0.146.0-6f691efe2",
3
+ "version": "0.146.0-7e6420c4f",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern-platform.git",
@@ -99,7 +99,7 @@
99
99
  "ts-essentials": "^10.0.4",
100
100
  "url-join": "^5.0.0",
101
101
  "zod": "^3.25.49",
102
- "@fern-api/ui-core-utils": "0.146.0-6f691efe2"
102
+ "@fern-api/ui-core-utils": "0.146.0-7e6420c4f"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@babel/core": "^7.26.9",
@@ -112,8 +112,8 @@
112
112
  "tsup": "^8.5.1",
113
113
  "typescript": "^5",
114
114
  "vitest": "^3.2.4",
115
- "@fern-api/snippets": "0.0.1",
116
- "@fern-platform/configs": "0.1.0"
115
+ "@fern-platform/configs": "0.1.0",
116
+ "@fern-api/snippets": "0.0.1"
117
117
  },
118
118
  "scripts": {
119
119
  "clean": "rm -rf ./dist",