@fern-api/fdr-sdk 0.137.4-ba3831e27 → 0.138.0-5cf655fec
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/api-definition/snippets/backfill.test.d.ts +2 -0
- package/dist/api-definition/snippets/backfill.test.d.ts.map +1 -0
- package/dist/api-definition/snippets/backfill.test.js +129 -0
- package/dist/api-definition/snippets/get-har-request.d.ts.map +1 -1
- package/dist/api-definition/snippets/get-har-request.js +7 -5
- package/dist/client/generated/api/resources/api/resources/latest/client/Client.d.ts.map +1 -1
- package/dist/client/generated/api/resources/api/resources/latest/client/Client.js +1 -0
- package/dist/client/generated/api/resources/api/resources/latest/client/getApiLatest.d.ts +7 -1
- package/dist/client/generated/api/resources/api/resources/latest/client/getApiLatest.d.ts.map +1 -1
- package/dist/client/generated/api/resources/api/resources/latest/client/getApiLatest.js +8 -0
- package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/Client.d.ts.map +1 -1
- package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/Client.js +1 -0
- package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.d.ts +7 -1
- package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.d.ts.map +1 -1
- package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.js +8 -0
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.d.ts.map +1 -1
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.js +2 -0
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomain.d.ts +7 -1
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomain.d.ts.map +1 -1
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomain.js +8 -0
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomainLegacy.d.ts +7 -1
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomainLegacy.d.ts.map +1 -1
- package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomainLegacy.js +8 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backfill.test.d.ts","sourceRoot":"","sources":["../../../src/api-definition/snippets/backfill.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { ApiDefinitionId, EndpointId, EnvironmentId, } from "../latest";
|
|
3
|
+
import { backfillSnippets } from "./backfill";
|
|
4
|
+
describe("backfillSnippets", () => {
|
|
5
|
+
it("should backfill snippets for a search endpoint example", async () => {
|
|
6
|
+
const apiDefinition = {
|
|
7
|
+
id: ApiDefinitionId("test-api"),
|
|
8
|
+
endpoints: {
|
|
9
|
+
[EndpointId("search")]: {
|
|
10
|
+
id: EndpointId("search"),
|
|
11
|
+
method: "POST",
|
|
12
|
+
path: [{ type: "literal", value: "/" }],
|
|
13
|
+
displayName: undefined,
|
|
14
|
+
operationId: undefined,
|
|
15
|
+
auth: undefined,
|
|
16
|
+
defaultEnvironment: undefined,
|
|
17
|
+
environments: [
|
|
18
|
+
{
|
|
19
|
+
id: EnvironmentId("default"),
|
|
20
|
+
baseUrl: "https://api.example.com/v1",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
pathParameters: undefined,
|
|
24
|
+
queryParameters: undefined,
|
|
25
|
+
requestHeaders: undefined,
|
|
26
|
+
responseHeaders: undefined,
|
|
27
|
+
requests: undefined,
|
|
28
|
+
responses: undefined,
|
|
29
|
+
errors: undefined,
|
|
30
|
+
snippetTemplates: undefined,
|
|
31
|
+
protocol: undefined,
|
|
32
|
+
description: undefined,
|
|
33
|
+
availability: undefined,
|
|
34
|
+
namespace: undefined,
|
|
35
|
+
examples: [
|
|
36
|
+
{
|
|
37
|
+
name: "Basic Search",
|
|
38
|
+
description: "",
|
|
39
|
+
path: "/",
|
|
40
|
+
pathParameters: {},
|
|
41
|
+
queryParameters: {},
|
|
42
|
+
headers: {},
|
|
43
|
+
requestBody: {
|
|
44
|
+
type: "json",
|
|
45
|
+
value: {
|
|
46
|
+
RecordCount: 50,
|
|
47
|
+
DocumentSearchParams: {
|
|
48
|
+
SearchTerms: {
|
|
49
|
+
All: ["data security"],
|
|
50
|
+
Any: ["cyberattack", "breach"],
|
|
51
|
+
None: ["ransomware"],
|
|
52
|
+
},
|
|
53
|
+
DocumentDateRangeStart: "2023-01-01T00:00:00Z",
|
|
54
|
+
DocumentDateRangeEnd: "2023-12-31T23:59:59Z",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
responseStatusCode: 200,
|
|
59
|
+
responseBody: {
|
|
60
|
+
type: "json",
|
|
61
|
+
value: {
|
|
62
|
+
TotalDocumentCount: 833494,
|
|
63
|
+
NotReturnedDocumentCount: 0,
|
|
64
|
+
ReturnedDocumentCount: 2,
|
|
65
|
+
TruncatedDocumentCount: 0,
|
|
66
|
+
Documents: [
|
|
67
|
+
{
|
|
68
|
+
IsTruncated: false,
|
|
69
|
+
DocumentID: 77187402516,
|
|
70
|
+
DocumentType: "NEWS",
|
|
71
|
+
UploadDate: "2024-10-22T16:54:36Z",
|
|
72
|
+
DocumentDate: "2024-10-22T15:17:54Z",
|
|
73
|
+
DocumentName: "Wall Street Continues to See Recent Rally Cooling",
|
|
74
|
+
DocumentText: "U.S. stocks dropped again on Tuesday...",
|
|
75
|
+
AuthorName: "Natalie Venegas",
|
|
76
|
+
DocumentSourceURL: "https://www.newsweek.com/wall-street-continues-see-recent-rally-cooling-1972948",
|
|
77
|
+
DocumentImageURL: "https://d.newsweek.com/en/full/2501402/new-york-stock-exchange.jpg",
|
|
78
|
+
LanguageID: "en",
|
|
79
|
+
DocumentSentimentScore: "-13",
|
|
80
|
+
ContainsViolence: true,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
FavIcons: {
|
|
84
|
+
NEWS: "https://d1hgo075dbsz4i.cloudfront.net/21f4f43585ea45aa539034866e692e21/a/News/dsicon",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
snippets: undefined,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
auths: {},
|
|
94
|
+
websockets: {},
|
|
95
|
+
webhooks: {},
|
|
96
|
+
types: {},
|
|
97
|
+
globalHeaders: [],
|
|
98
|
+
subpackages: {},
|
|
99
|
+
snippetsConfiguration: undefined,
|
|
100
|
+
};
|
|
101
|
+
const flags = {
|
|
102
|
+
usesApplicationJsonInFormDataValue: false,
|
|
103
|
+
isHttpSnippetsEnabled: true,
|
|
104
|
+
alwaysEnableJavaScriptFetch: true,
|
|
105
|
+
};
|
|
106
|
+
const result = await backfillSnippets(apiDefinition, flags);
|
|
107
|
+
// Verify the result has the expected structure
|
|
108
|
+
const endpoint = result.endpoints[EndpointId("search")];
|
|
109
|
+
expect(endpoint).toBeDefined();
|
|
110
|
+
const examples = endpoint?.examples;
|
|
111
|
+
expect(examples).toHaveLength(1);
|
|
112
|
+
const example = examples?.[0];
|
|
113
|
+
expect(example).toBeDefined();
|
|
114
|
+
// Verify snippets were generated
|
|
115
|
+
const snippets = example?.snippets;
|
|
116
|
+
expect(snippets).toBeDefined();
|
|
117
|
+
const curlSnippets = snippets?.curl;
|
|
118
|
+
expect(curlSnippets).toBeDefined();
|
|
119
|
+
expect(curlSnippets).toHaveLength(1);
|
|
120
|
+
// Verify curl snippet contains expected content
|
|
121
|
+
const curlSnippet = curlSnippets?.[0];
|
|
122
|
+
expect(curlSnippet?.language).toBe("curl");
|
|
123
|
+
expect(curlSnippet?.code).toContain("curl");
|
|
124
|
+
expect(curlSnippet?.code).toContain("POST");
|
|
125
|
+
expect(curlSnippet?.code).toContain('"RecordCount": 50');
|
|
126
|
+
expect(curlSnippet?.code).toContain('"data security"');
|
|
127
|
+
expect(example?.snippets).toMatchSnapshot();
|
|
128
|
+
});
|
|
129
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-har-request.d.ts","sourceRoot":"","sources":["../../../src/api-definition/snippets/get-har-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAE5B,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,EACpC,WAAW,EAAE,sBAAsB,GAAG,SAAS,GAC9C,UAAU,
|
|
1
|
+
{"version":3,"file":"get-har-request.d.ts","sourceRoot":"","sources":["../../../src/api-definition/snippets/get-har-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAE5B,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,EACpC,WAAW,EAAE,sBAAsB,GAAG,SAAS,GAC9C,UAAU,CA+JZ"}
|
|
@@ -39,12 +39,14 @@ export function getHarRequest(endpoint, example, auths, requestBody) {
|
|
|
39
39
|
// filter out request parameters that have no value and are not an array
|
|
40
40
|
if (requestBody.value && typeof requestBody.value === "object") {
|
|
41
41
|
requestBody.value = Object.fromEntries(Object.entries(requestBody.value).filter(([_, valueObj]) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
// Keep arrays and primitive values
|
|
43
|
+
if (Array.isArray(valueObj) ||
|
|
44
|
+
typeof valueObj !== "object" ||
|
|
45
|
+
valueObj === null) {
|
|
46
|
+
return true;
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
+
// For objects, only filter out empty objects without a value property
|
|
49
|
+
return Object.keys(valueObj).length > 0;
|
|
48
50
|
}));
|
|
49
51
|
}
|
|
50
52
|
if (requestBody.type === "json") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/generated/api/resources/api/resources/latest/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAC;AAGrD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC5B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,uBAAuB,GAAG,MAAM,CAAC,CAAC;QAC3E,qDAAqD;QACrD,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;KACvD;IAED,UAAiB,cAAc;QAC3B,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED,qBAAa,MAAM;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO;gBAAxB,QAAQ,GAAE,MAAM,CAAC,OAAY;IAE5D;;;;;;OAMG;IACI,YAAY,CACf,eAAe,EAAE,YAAY,CAAC,eAAe,EAC7C,cAAc,CAAC,EAAE,MAAM,CAAC,cAAc,GACvC,IAAI,CAAC,mBAAmB,CACvB,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CACtG;YAIa,cAAc;
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/generated/api/resources/api/resources/latest/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAC;AAGrD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC5B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,uBAAuB,GAAG,MAAM,CAAC,CAAC;QAC3E,qDAAqD;QACrD,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;KACvD;IAED,UAAiB,cAAc;QAC3B,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED,qBAAa,MAAM;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO;gBAAxB,QAAQ,GAAE,MAAM,CAAC,OAAY;IAE5D;;;;;;OAMG;IACI,YAAY,CACf,eAAe,EAAE,YAAY,CAAC,eAAe,EAC7C,cAAc,CAAC,EAAE,MAAM,CAAC,cAAc,GACvC,IAAI,CAAC,mBAAmB,CACvB,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CACtG;YAIa,cAAc;cAkEZ,uBAAuB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAQzE"}
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernRegistry from "../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export type Error = FernRegistry.api.latest.getApiLatest.Error.ApiDoesNotExistError | FernRegistry.api.latest.getApiLatest.Error._Unknown;
|
|
6
|
+
export type Error = FernRegistry.api.latest.getApiLatest.Error.UnauthorizedError | FernRegistry.api.latest.getApiLatest.Error.ApiDoesNotExistError | FernRegistry.api.latest.getApiLatest.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
content: string;
|
|
11
|
+
}
|
|
8
12
|
interface ApiDoesNotExistError {
|
|
9
13
|
error: "ApiDoesNotExistError";
|
|
10
14
|
}
|
|
@@ -13,11 +17,13 @@ export declare namespace Error {
|
|
|
13
17
|
content: core.Fetcher.Error;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
unauthorizedError: (value: string) => _Result;
|
|
16
21
|
apiDoesNotExistError: () => _Result;
|
|
17
22
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
export declare const Error: {
|
|
26
|
+
readonly unauthorizedError: (value: string) => FernRegistry.api.latest.getApiLatest.Error.UnauthorizedError;
|
|
21
27
|
readonly apiDoesNotExistError: () => FernRegistry.api.latest.getApiLatest.Error.ApiDoesNotExistError;
|
|
22
28
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernRegistry.api.latest.getApiLatest.Error._Unknown;
|
|
23
29
|
readonly _visit: <_Result>(value: FernRegistry.api.latest.getApiLatest.Error, visitor: FernRegistry.api.latest.getApiLatest.Error._Visitor<_Result>) => _Result;
|
package/dist/client/generated/api/resources/api/resources/latest/client/getApiLatest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getApiLatest.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/generated/api/resources/api/resources/latest/client/getApiLatest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAE/C,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,oBAAoB,GAC/D,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC;AAE1D,yBAAiB,KAAK,CAAC;IACnB,UAAiB,oBAAoB;QACjC,KAAK,EAAE,sBAAsB,CAAC;KACjC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,oBAAoB,EAAE,MAAM,OAAO,CAAC;QACpC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;
|
|
1
|
+
{"version":3,"file":"getApiLatest.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/generated/api/resources/api/resources/latest/client/getApiLatest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAE/C,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,iBAAiB,GAC5D,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,oBAAoB,GAC/D,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC;AAE1D,yBAAiB,KAAK,CAAC;IACnB,UAAiB,iBAAiB;QAC9B,KAAK,EAAE,mBAAmB,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,oBAAoB;QACjC,KAAK,EAAE,sBAAsB,CAAC;KACjC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;QAC9C,oBAAoB,EAAE,MAAM,OAAO,CAAC;QACpC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;wCACa,MAAM,KAAG,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,iBAAiB;yCAOtE,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,oBAAoB;sCAMhE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAG,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ;sBAOxF,OAAO,SACL,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,WACxC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KACtE,OAAO;CAUJ,CAAC"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export const Error = {
|
|
5
|
+
unauthorizedError: (value) => {
|
|
6
|
+
return {
|
|
7
|
+
content: value,
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
};
|
|
10
|
+
},
|
|
5
11
|
apiDoesNotExistError: () => {
|
|
6
12
|
return {
|
|
7
13
|
error: "ApiDoesNotExistError",
|
|
@@ -15,6 +21,8 @@ export const Error = {
|
|
|
15
21
|
},
|
|
16
22
|
_visit: (value, visitor) => {
|
|
17
23
|
switch (value.error) {
|
|
24
|
+
case "UnauthorizedError":
|
|
25
|
+
return visitor.unauthorizedError(value.content);
|
|
18
26
|
case "ApiDoesNotExistError":
|
|
19
27
|
return visitor.apiDoesNotExistError();
|
|
20
28
|
default:
|
package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/Client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/api/resources/v1/resources/read/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC1B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,uBAAuB,GAAG,MAAM,CAAC,CAAC;QAC3E,qDAAqD;QACrD,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;KACvD;IAED,UAAiB,cAAc;QAC3B,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED,qBAAa,IAAI;IACD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBAAtB,QAAQ,GAAE,IAAI,CAAC,OAAY;IAE1D;;;;;;OAMG;IACI,MAAM,CACT,eAAe,EAAE,YAAY,CAAC,eAAe,EAC7C,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,IAAI,CAAC,mBAAmB,CACvB,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAClG;YAIa,QAAQ;
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/api/resources/v1/resources/read/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC1B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,uBAAuB,GAAG,MAAM,CAAC,CAAC;QAC3E,qDAAqD;QACrD,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;KACvD;IAED,UAAiB,cAAc;QAC3B,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED,qBAAa,IAAI;IACD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBAAtB,QAAQ,GAAE,IAAI,CAAC,OAAY;IAE1D;;;;;;OAMG;IACI,MAAM,CACT,eAAe,EAAE,YAAY,CAAC,eAAe,EAC7C,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,IAAI,CAAC,mBAAmB,CACvB,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAClG;YAIa,QAAQ;cAkEN,uBAAuB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAQzE"}
|
package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.d.ts
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernRegistry from "../../../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../../../core";
|
|
6
|
-
export type Error = FernRegistry.api.v1.read.getApi.Error.ApiDoesNotExistError | FernRegistry.api.v1.read.getApi.Error._Unknown;
|
|
6
|
+
export type Error = FernRegistry.api.v1.read.getApi.Error.UnauthorizedError | FernRegistry.api.v1.read.getApi.Error.ApiDoesNotExistError | FernRegistry.api.v1.read.getApi.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
content: string;
|
|
11
|
+
}
|
|
8
12
|
interface ApiDoesNotExistError {
|
|
9
13
|
error: "ApiDoesNotExistError";
|
|
10
14
|
}
|
|
@@ -13,11 +17,13 @@ export declare namespace Error {
|
|
|
13
17
|
content: core.Fetcher.Error;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
unauthorizedError: (value: string) => _Result;
|
|
16
21
|
apiDoesNotExistError: () => _Result;
|
|
17
22
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
export declare const Error: {
|
|
26
|
+
readonly unauthorizedError: (value: string) => FernRegistry.api.v1.read.getApi.Error.UnauthorizedError;
|
|
21
27
|
readonly apiDoesNotExistError: () => FernRegistry.api.v1.read.getApi.Error.ApiDoesNotExistError;
|
|
22
28
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernRegistry.api.v1.read.getApi.Error._Unknown;
|
|
23
29
|
readonly _visit: <_Result>(value: FernRegistry.api.v1.read.getApi.Error, visitor: FernRegistry.api.v1.read.getApi.Error._Visitor<_Result>) => _Result;
|
package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getApi.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAErD,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,GAC1D,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AAErD,yBAAiB,KAAK,CAAC;IACnB,UAAiB,oBAAoB;QACjC,KAAK,EAAE,sBAAsB,CAAC;KACjC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,oBAAoB,EAAE,MAAM,OAAO,CAAC;QACpC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;
|
|
1
|
+
{"version":3,"file":"getApi.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAErD,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB,GACvD,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,GAC1D,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AAErD,yBAAiB,KAAK,CAAC;IACnB,UAAiB,iBAAiB;QAC9B,KAAK,EAAE,mBAAmB,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,oBAAoB;QACjC,KAAK,EAAE,sBAAsB,CAAC;KACjC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;QAC9C,oBAAoB,EAAE,MAAM,OAAO,CAAC;QACpC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;wCACa,MAAM,KAAG,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB;yCAOjE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB;sCAM3D,IAAI,CAAC,OAAO,CAAC,KAAK,KAAG,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;sBAOnF,OAAO,SACL,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,WACnC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KACjE,OAAO;CAUJ,CAAC"}
|
package/dist/client/generated/api/resources/api/resources/v1/resources/read/client/getApi.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export const Error = {
|
|
5
|
+
unauthorizedError: (value) => {
|
|
6
|
+
return {
|
|
7
|
+
content: value,
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
};
|
|
10
|
+
},
|
|
5
11
|
apiDoesNotExistError: () => {
|
|
6
12
|
return {
|
|
7
13
|
error: "ApiDoesNotExistError",
|
|
@@ -15,6 +21,8 @@ export const Error = {
|
|
|
15
21
|
},
|
|
16
22
|
_visit: (value, visitor) => {
|
|
17
23
|
switch (value.error) {
|
|
24
|
+
case "UnauthorizedError":
|
|
25
|
+
return visitor.unauthorizedError(value.content);
|
|
18
26
|
case "ApiDoesNotExistError":
|
|
19
27
|
return visitor.apiDoesNotExistError();
|
|
20
28
|
default:
|
package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC1B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,uBAAuB,GAAG,MAAM,CAAC,CAAC;QAC3E,qDAAqD;QACrD,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;KACvD;IAED,UAAiB,cAAc;QAC3B,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED,qBAAa,IAAI;IACD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBAAtB,QAAQ,GAAE,IAAI,CAAC,OAAY;IAE1D;;;;;;OAMG;IACI,sBAAsB,CACzB,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,IAAI,CAAC,mBAAmB,CACvB,IAAI,CAAC,WAAW,CACZ,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EACxC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CACzD,CACJ;YAIa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC1B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,uBAAuB,GAAG,MAAM,CAAC,CAAC;QAC3E,qDAAqD;QACrD,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;KACvD;IAED,UAAiB,cAAc;QAC3B,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED,qBAAa,IAAI;IACD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBAAtB,QAAQ,GAAE,IAAI,CAAC,OAAY;IAE1D;;;;;;OAMG;IACI,sBAAsB,CACzB,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,IAAI,CAAC,mBAAmB,CACvB,IAAI,CAAC,WAAW,CACZ,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EACxC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CACzD,CACJ;YAIa,wBAAwB;IAqEtC;;;;;;;;OAQG;IACI,gBAAgB,CACnB,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,wBAAwB,EAC3D,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,IAAI,CAAC,mBAAmB,CACvB,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAC/G;YAIa,kBAAkB;cAmEhB,uBAAuB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAQzE"}
|
package/dist/client/generated/api/resources/docs/resources/v1/resources/read/client/Client.js
CHANGED
|
@@ -52,6 +52,7 @@ export class Read {
|
|
|
52
52
|
}
|
|
53
53
|
if (_response.error.reason === "status-code") {
|
|
54
54
|
switch (_response.error.body?.error) {
|
|
55
|
+
case "UnauthorizedError":
|
|
55
56
|
case "DomainNotRegisteredError":
|
|
56
57
|
return {
|
|
57
58
|
data: {
|
|
@@ -117,6 +118,7 @@ export class Read {
|
|
|
117
118
|
}
|
|
118
119
|
if (_response.error.reason === "status-code") {
|
|
119
120
|
switch (_response.error.body?.error) {
|
|
121
|
+
case "UnauthorizedError":
|
|
120
122
|
case "DomainNotRegisteredError":
|
|
121
123
|
return {
|
|
122
124
|
data: {
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernRegistry from "../../../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../../../core";
|
|
6
|
-
export type Error = FernRegistry.docs.v1.read.getDocsForDomain.Error.DomainNotRegisteredError | FernRegistry.docs.v1.read.getDocsForDomain.Error._Unknown;
|
|
6
|
+
export type Error = FernRegistry.docs.v1.read.getDocsForDomain.Error.UnauthorizedError | FernRegistry.docs.v1.read.getDocsForDomain.Error.DomainNotRegisteredError | FernRegistry.docs.v1.read.getDocsForDomain.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
content: string;
|
|
11
|
+
}
|
|
8
12
|
interface DomainNotRegisteredError {
|
|
9
13
|
error: "DomainNotRegisteredError";
|
|
10
14
|
}
|
|
@@ -13,11 +17,13 @@ export declare namespace Error {
|
|
|
13
17
|
content: core.Fetcher.Error;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
unauthorizedError: (value: string) => _Result;
|
|
16
21
|
domainNotRegisteredError: () => _Result;
|
|
17
22
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
export declare const Error: {
|
|
26
|
+
readonly unauthorizedError: (value: string) => FernRegistry.docs.v1.read.getDocsForDomain.Error.UnauthorizedError;
|
|
21
27
|
readonly domainNotRegisteredError: () => FernRegistry.docs.v1.read.getDocsForDomain.Error.DomainNotRegisteredError;
|
|
22
28
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernRegistry.docs.v1.read.getDocsForDomain.Error._Unknown;
|
|
23
29
|
readonly _visit: <_Result>(value: FernRegistry.docs.v1.read.getDocsForDomain.Error, visitor: FernRegistry.docs.v1.read.getDocsForDomain.Error._Visitor<_Result>) => _Result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDocsForDomain.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomain.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAErD,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,wBAAwB,GACzE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,CAAC;AAEhE,yBAAiB,KAAK,CAAC;IACnB,UAAiB,wBAAwB;QACrC,KAAK,EAAE,0BAA0B,CAAC;KACrC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,wBAAwB,EAAE,MAAM,OAAO,CAAC;QACxC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;
|
|
1
|
+
{"version":3,"file":"getDocsForDomain.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomain.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAErD,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,GAClE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,wBAAwB,GACzE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,CAAC;AAEhE,yBAAiB,KAAK,CAAC;IACnB,UAAiB,iBAAiB;QAC9B,KAAK,EAAE,mBAAmB,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,wBAAwB;QACrC,KAAK,EAAE,0BAA0B,CAAC;KACrC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;QAC9C,wBAAwB,EAAE,MAAM,OAAO,CAAC;QACxC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;wCACa,MAAM,KAAG,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,iBAAiB;6CAOxE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,wBAAwB;sCAM9E,IAAI,CAAC,OAAO,CAAC,KAAK,KAAG,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ;sBAO9F,OAAO,SACL,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,WAC9C,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAC5E,OAAO;CAUJ,CAAC"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export const Error = {
|
|
5
|
+
unauthorizedError: (value) => {
|
|
6
|
+
return {
|
|
7
|
+
content: value,
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
};
|
|
10
|
+
},
|
|
5
11
|
domainNotRegisteredError: () => {
|
|
6
12
|
return {
|
|
7
13
|
error: "DomainNotRegisteredError",
|
|
@@ -15,6 +21,8 @@ export const Error = {
|
|
|
15
21
|
},
|
|
16
22
|
_visit: (value, visitor) => {
|
|
17
23
|
switch (value.error) {
|
|
24
|
+
case "UnauthorizedError":
|
|
25
|
+
return visitor.unauthorizedError(value.content);
|
|
18
26
|
case "DomainNotRegisteredError":
|
|
19
27
|
return visitor.domainNotRegisteredError();
|
|
20
28
|
default:
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernRegistry from "../../../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../../../core";
|
|
6
|
-
export type Error = FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error.DomainNotRegisteredError | FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error._Unknown;
|
|
6
|
+
export type Error = FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error.UnauthorizedError | FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error.DomainNotRegisteredError | FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
content: string;
|
|
11
|
+
}
|
|
8
12
|
interface DomainNotRegisteredError {
|
|
9
13
|
error: "DomainNotRegisteredError";
|
|
10
14
|
}
|
|
@@ -13,11 +17,13 @@ export declare namespace Error {
|
|
|
13
17
|
content: core.Fetcher.Error;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
unauthorizedError: (value: string) => _Result;
|
|
16
21
|
domainNotRegisteredError: () => _Result;
|
|
17
22
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
export declare const Error: {
|
|
26
|
+
readonly unauthorizedError: (value: string) => FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error.UnauthorizedError;
|
|
21
27
|
readonly domainNotRegisteredError: () => FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error.DomainNotRegisteredError;
|
|
22
28
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error._Unknown;
|
|
23
29
|
readonly _visit: <_Result>(value: FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error, visitor: FernRegistry.docs.v1.read.getDocsForDomainLegacy.Error._Visitor<_Result>) => _Result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDocsForDomainLegacy.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomainLegacy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAErD,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,wBAAwB,GAC/E,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC;AAEtE,yBAAiB,KAAK,CAAC;IACnB,UAAiB,wBAAwB;QACrC,KAAK,EAAE,0BAA0B,CAAC;KACrC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,wBAAwB,EAAE,MAAM,OAAO,CAAC;QACxC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;
|
|
1
|
+
{"version":3,"file":"getDocsForDomainLegacy.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/generated/api/resources/docs/resources/v1/resources/read/client/getDocsForDomainLegacy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAErD,MAAM,MAAM,KAAK,GACX,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,iBAAiB,GACxE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,wBAAwB,GAC/E,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC;AAEtE,yBAAiB,KAAK,CAAC;IACnB,UAAiB,iBAAiB;QAC9B,KAAK,EAAE,mBAAmB,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,wBAAwB;QACrC,KAAK,EAAE,0BAA0B,CAAC;KACrC;IAED,UAAiB,QAAQ;QACrB,KAAK,EAAE,IAAI,CAAC;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B;IAED,UAAiB,QAAQ,CAAC,OAAO;QAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;QAC9C,wBAAwB,EAAE,MAAM,OAAO,CAAC;QACxC,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC;KAClD;CACJ;AAED,eAAO,MAAM,KAAK;wCACa,MAAM,KAAG,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,iBAAiB;6CAO9E,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,wBAAwB;sCAMpF,IAAI,CAAC,OAAO,CAAC,KAAK,KAAG,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,QAAQ;sBAOpG,OAAO,SACL,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,WACpD,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAClF,OAAO;CAUJ,CAAC"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export const Error = {
|
|
5
|
+
unauthorizedError: (value) => {
|
|
6
|
+
return {
|
|
7
|
+
content: value,
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
};
|
|
10
|
+
},
|
|
5
11
|
domainNotRegisteredError: () => {
|
|
6
12
|
return {
|
|
7
13
|
error: "DomainNotRegisteredError",
|
|
@@ -15,6 +21,8 @@ export const Error = {
|
|
|
15
21
|
},
|
|
16
22
|
_visit: (value, visitor) => {
|
|
17
23
|
switch (value.error) {
|
|
24
|
+
case "UnauthorizedError":
|
|
25
|
+
return visitor.unauthorizedError(value.content);
|
|
18
26
|
case "DomainNotRegisteredError":
|
|
19
27
|
return visitor.domainNotRegisteredError();
|
|
20
28
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fern-api/fdr-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.138.0-5cf655fec",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"test:update": "vitest --run --passWithNoTests --globals -u"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@fern-api/ui-core-utils": "0.
|
|
52
|
+
"@fern-api/ui-core-utils": "0.138.0-5cf655fec*",
|
|
53
53
|
"@ungap/structured-clone": "^1.2.0",
|
|
54
54
|
"dayjs": "^1.11.11",
|
|
55
55
|
"es-toolkit": "^1.32.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@babel/core": "^7.26.9",
|
|
69
69
|
"@babel/preset-env": "^7.26.0",
|
|
70
70
|
"@babel/preset-typescript": "^7.26.0",
|
|
71
|
-
"@fern-platform/configs": "0.
|
|
71
|
+
"@fern-platform/configs": "0.138.0-5cf655fec*",
|
|
72
72
|
"@types/node-fetch": "2.6.9",
|
|
73
73
|
"@types/qs": "6.9.14",
|
|
74
74
|
"@types/tinycolor2": "^1.4.6",
|