@fern-api/venus-api-sdk 0.19.9 → 0.19.10-1-gddcac32
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/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +12 -7
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +105 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.js +451 -0
- package/dist/cjs/api/resources/apiKeys/client/create.d.ts +32 -0
- package/dist/cjs/api/resources/apiKeys/client/create.js +77 -0
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +32 -0
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +77 -0
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +32 -0
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +77 -0
- package/dist/cjs/api/resources/apiKeys/client/index.d.ts +6 -0
- package/dist/cjs/api/resources/apiKeys/client/index.js +45 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +21 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.js +5 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +17 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.js +5 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +17 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.js +5 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +32 -0
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +77 -0
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +32 -0
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +77 -0
- package/dist/cjs/api/resources/apiKeys/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/index.js +18 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateTokenResponse.d.ts +15 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateTokenResponse.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/TokenId.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/types/TokenId.js +9 -0
- package/dist/cjs/api/resources/apiKeys/types/TokenMetadata.d.ts +22 -0
- package/dist/cjs/api/resources/apiKeys/types/TokenMetadata.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/TokenStatus.d.ts +32 -0
- package/dist/cjs/api/resources/apiKeys/types/TokenStatus.js +5 -0
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/index.js +20 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/serialization/resources/apiKeys/client/create.d.ts +16 -0
- package/dist/cjs/serialization/resources/apiKeys/client/create.js +71 -0
- package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.d.ts +16 -0
- package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.js +71 -0
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +21 -0
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.js +73 -0
- package/dist/cjs/serialization/resources/apiKeys/client/index.d.ts +6 -0
- package/dist/cjs/serialization/resources/apiKeys/client/index.js +45 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +15 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.js +46 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/apiKeys/client/requests/index.js +9 -0
- package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.d.ts +16 -0
- package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.js +71 -0
- package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.d.ts +16 -0
- package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.js +71 -0
- package/dist/cjs/serialization/resources/apiKeys/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/apiKeys/index.js +18 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateTokenResponse.d.ts +14 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateTokenResponse.js +45 -0
- package/dist/cjs/serialization/resources/apiKeys/types/TokenId.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/TokenId.js +47 -0
- package/dist/cjs/serialization/resources/apiKeys/types/TokenMetadata.d.ts +19 -0
- package/dist/cjs/serialization/resources/apiKeys/types/TokenMetadata.js +50 -0
- package/dist/cjs/serialization/resources/apiKeys/types/TokenStatus.d.ts +19 -0
- package/dist/cjs/serialization/resources/apiKeys/types/TokenStatus.js +50 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +20 -0
- package/dist/cjs/serialization/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/index.js +4 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +6 -1
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +105 -0
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +414 -0
- package/dist/esm/api/resources/apiKeys/client/create.d.mts +32 -0
- package/dist/esm/api/resources/apiKeys/client/create.mjs +41 -0
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +32 -0
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +41 -0
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +32 -0
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +41 -0
- package/dist/esm/api/resources/apiKeys/client/index.d.mts +6 -0
- package/dist/esm/api/resources/apiKeys/client/index.mjs +6 -0
- package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +21 -0
- package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +17 -0
- package/dist/esm/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +17 -0
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +32 -0
- package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +41 -0
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +32 -0
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +41 -0
- package/dist/esm/api/resources/apiKeys/index.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/index.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/CreateTokenResponse.d.mts +15 -0
- package/dist/esm/api/resources/apiKeys/types/CreateTokenResponse.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/types/TokenId.d.mts +12 -0
- package/dist/esm/api/resources/apiKeys/types/TokenId.mjs +6 -0
- package/dist/esm/api/resources/apiKeys/types/TokenMetadata.d.mts +22 -0
- package/dist/esm/api/resources/apiKeys/types/TokenMetadata.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/types/TokenStatus.d.mts +32 -0
- package/dist/esm/api/resources/apiKeys/types/TokenStatus.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/index.mjs +4 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/client/create.d.mts +16 -0
- package/dist/esm/serialization/resources/apiKeys/client/create.mjs +35 -0
- package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.d.mts +16 -0
- package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.mjs +35 -0
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +21 -0
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.mjs +37 -0
- package/dist/esm/serialization/resources/apiKeys/client/index.d.mts +6 -0
- package/dist/esm/serialization/resources/apiKeys/client/index.mjs +6 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +15 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +10 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/index.d.mts +3 -0
- package/dist/esm/serialization/resources/apiKeys/client/requests/index.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/client/revokeToken.d.mts +16 -0
- package/dist/esm/serialization/resources/apiKeys/client/revokeToken.mjs +35 -0
- package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.d.mts +16 -0
- package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.mjs +35 -0
- package/dist/esm/serialization/resources/apiKeys/index.d.mts +2 -0
- package/dist/esm/serialization/resources/apiKeys/index.mjs +2 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateTokenResponse.d.mts +14 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateTokenResponse.mjs +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/TokenId.d.mts +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/TokenId.mjs +11 -0
- package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.d.mts +19 -0
- package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.mjs +14 -0
- package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.d.mts +19 -0
- package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.mjs +14 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +4 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.mjs +4 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
export const Error = {
|
|
6
|
+
unauthorizedError: () => {
|
|
7
|
+
return {
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
_visit: function (visitor) {
|
|
10
|
+
return FernVenusApi.apiKeys.getTokenMetadata.Error._visit(this, visitor);
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
tokenNotFoundError: () => {
|
|
15
|
+
return {
|
|
16
|
+
error: "TokenNotFoundError",
|
|
17
|
+
_visit: function (visitor) {
|
|
18
|
+
return FernVenusApi.apiKeys.getTokenMetadata.Error._visit(this, visitor);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
_unknown: (fetcherError) => {
|
|
23
|
+
return {
|
|
24
|
+
error: undefined,
|
|
25
|
+
content: fetcherError,
|
|
26
|
+
_visit: function (visitor) {
|
|
27
|
+
return FernVenusApi.apiKeys.getTokenMetadata.Error._visit(this, visitor);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
_visit: (value, visitor) => {
|
|
32
|
+
switch (value.error) {
|
|
33
|
+
case "UnauthorizedError":
|
|
34
|
+
return visitor.unauthorizedError();
|
|
35
|
+
case "TokenNotFoundError":
|
|
36
|
+
return visitor.tokenNotFoundError();
|
|
37
|
+
default:
|
|
38
|
+
return visitor._other(value);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
export type Error = FernVenusApi.apiKeys.getTokensForOrganization.Error.UnauthorizedError | FernVenusApi.apiKeys.getTokensForOrganization.Error.OrganizationNotFoundError | FernVenusApi.apiKeys.getTokensForOrganization.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError extends _Utils {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
}
|
|
11
|
+
interface OrganizationNotFoundError extends _Utils {
|
|
12
|
+
error: "OrganizationNotFoundError";
|
|
13
|
+
}
|
|
14
|
+
interface _Unknown extends _Utils {
|
|
15
|
+
error: void;
|
|
16
|
+
content: core.Fetcher.Error;
|
|
17
|
+
}
|
|
18
|
+
interface _Utils {
|
|
19
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.getTokensForOrganization.Error._Visitor<_Result>) => _Result;
|
|
20
|
+
}
|
|
21
|
+
interface _Visitor<_Result> {
|
|
22
|
+
unauthorizedError: () => _Result;
|
|
23
|
+
organizationNotFoundError: () => _Result;
|
|
24
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export declare const Error: {
|
|
28
|
+
readonly unauthorizedError: () => FernVenusApi.apiKeys.getTokensForOrganization.Error.UnauthorizedError;
|
|
29
|
+
readonly organizationNotFoundError: () => FernVenusApi.apiKeys.getTokensForOrganization.Error.OrganizationNotFoundError;
|
|
30
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.getTokensForOrganization.Error._Unknown;
|
|
31
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.getTokensForOrganization.Error, visitor: FernVenusApi.apiKeys.getTokensForOrganization.Error._Visitor<_Result>) => _Result;
|
|
32
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
export const Error = {
|
|
6
|
+
unauthorizedError: () => {
|
|
7
|
+
return {
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
_visit: function (visitor) {
|
|
10
|
+
return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
organizationNotFoundError: () => {
|
|
15
|
+
return {
|
|
16
|
+
error: "OrganizationNotFoundError",
|
|
17
|
+
_visit: function (visitor) {
|
|
18
|
+
return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
_unknown: (fetcherError) => {
|
|
23
|
+
return {
|
|
24
|
+
error: undefined,
|
|
25
|
+
content: fetcherError,
|
|
26
|
+
_visit: function (visitor) {
|
|
27
|
+
return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
_visit: (value, visitor) => {
|
|
32
|
+
switch (value.error) {
|
|
33
|
+
case "UnauthorizedError":
|
|
34
|
+
return visitor.unauthorizedError();
|
|
35
|
+
case "OrganizationNotFoundError":
|
|
36
|
+
return visitor.organizationNotFoundError();
|
|
37
|
+
default:
|
|
38
|
+
return visitor._other(value);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as create from "./create.mjs";
|
|
2
|
+
export * as getTokenMetadata from "./getTokenMetadata.mjs";
|
|
3
|
+
export * as getTokensForOrganization from "./getTokensForOrganization.mjs";
|
|
4
|
+
export * as revokeTokenById from "./revokeTokenById.mjs";
|
|
5
|
+
export * as revokeToken from "./revokeToken.mjs";
|
|
6
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as create from "./create.mjs";
|
|
2
|
+
export * as getTokenMetadata from "./getTokenMetadata.mjs";
|
|
3
|
+
export * as getTokensForOrganization from "./getTokensForOrganization.mjs";
|
|
4
|
+
export * as revokeTokenById from "./revokeTokenById.mjs";
|
|
5
|
+
export * as revokeToken from "./revokeToken.mjs";
|
|
6
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* organizationId: FernVenusApi.OrganizationId("some-org-id")
|
|
9
|
+
* }
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* {
|
|
13
|
+
* organizationId: FernVenusApi.OrganizationId("missing-org-id")
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface CreateApiKeyRequest {
|
|
17
|
+
organizationId: FernVenusApi.OrganizationId;
|
|
18
|
+
/** If specified, the token will be <prefix>_<token> */
|
|
19
|
+
prefix?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* token: "token-value"
|
|
8
|
+
* }
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* {
|
|
12
|
+
* token: "missing-token-value"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface GetTokenMetadataRequest {
|
|
16
|
+
token: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* token: "some-token-value"
|
|
8
|
+
* }
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* {
|
|
12
|
+
* token: "missing-token-value"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface RevokeApiKeyRequest {
|
|
16
|
+
token: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
export type Error = FernVenusApi.apiKeys.revokeToken.Error.UnauthorizedError | FernVenusApi.apiKeys.revokeToken.Error.TokenNotFoundError | FernVenusApi.apiKeys.revokeToken.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError extends _Utils {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
}
|
|
11
|
+
interface TokenNotFoundError extends _Utils {
|
|
12
|
+
error: "TokenNotFoundError";
|
|
13
|
+
}
|
|
14
|
+
interface _Unknown extends _Utils {
|
|
15
|
+
error: void;
|
|
16
|
+
content: core.Fetcher.Error;
|
|
17
|
+
}
|
|
18
|
+
interface _Utils {
|
|
19
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.revokeToken.Error._Visitor<_Result>) => _Result;
|
|
20
|
+
}
|
|
21
|
+
interface _Visitor<_Result> {
|
|
22
|
+
unauthorizedError: () => _Result;
|
|
23
|
+
tokenNotFoundError: () => _Result;
|
|
24
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export declare const Error: {
|
|
28
|
+
readonly unauthorizedError: () => FernVenusApi.apiKeys.revokeToken.Error.UnauthorizedError;
|
|
29
|
+
readonly tokenNotFoundError: () => FernVenusApi.apiKeys.revokeToken.Error.TokenNotFoundError;
|
|
30
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.revokeToken.Error._Unknown;
|
|
31
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.revokeToken.Error, visitor: FernVenusApi.apiKeys.revokeToken.Error._Visitor<_Result>) => _Result;
|
|
32
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
export const Error = {
|
|
6
|
+
unauthorizedError: () => {
|
|
7
|
+
return {
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
_visit: function (visitor) {
|
|
10
|
+
return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
tokenNotFoundError: () => {
|
|
15
|
+
return {
|
|
16
|
+
error: "TokenNotFoundError",
|
|
17
|
+
_visit: function (visitor) {
|
|
18
|
+
return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
_unknown: (fetcherError) => {
|
|
23
|
+
return {
|
|
24
|
+
error: undefined,
|
|
25
|
+
content: fetcherError,
|
|
26
|
+
_visit: function (visitor) {
|
|
27
|
+
return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
_visit: (value, visitor) => {
|
|
32
|
+
switch (value.error) {
|
|
33
|
+
case "UnauthorizedError":
|
|
34
|
+
return visitor.unauthorizedError();
|
|
35
|
+
case "TokenNotFoundError":
|
|
36
|
+
return visitor.tokenNotFoundError();
|
|
37
|
+
default:
|
|
38
|
+
return visitor._other(value);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
export type Error = FernVenusApi.apiKeys.revokeTokenById.Error.UnauthorizedError | FernVenusApi.apiKeys.revokeTokenById.Error.TokenNotFoundError | FernVenusApi.apiKeys.revokeTokenById.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError extends _Utils {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
}
|
|
11
|
+
interface TokenNotFoundError extends _Utils {
|
|
12
|
+
error: "TokenNotFoundError";
|
|
13
|
+
}
|
|
14
|
+
interface _Unknown extends _Utils {
|
|
15
|
+
error: void;
|
|
16
|
+
content: core.Fetcher.Error;
|
|
17
|
+
}
|
|
18
|
+
interface _Utils {
|
|
19
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.revokeTokenById.Error._Visitor<_Result>) => _Result;
|
|
20
|
+
}
|
|
21
|
+
interface _Visitor<_Result> {
|
|
22
|
+
unauthorizedError: () => _Result;
|
|
23
|
+
tokenNotFoundError: () => _Result;
|
|
24
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export declare const Error: {
|
|
28
|
+
readonly unauthorizedError: () => FernVenusApi.apiKeys.revokeTokenById.Error.UnauthorizedError;
|
|
29
|
+
readonly tokenNotFoundError: () => FernVenusApi.apiKeys.revokeTokenById.Error.TokenNotFoundError;
|
|
30
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.revokeTokenById.Error._Unknown;
|
|
31
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.revokeTokenById.Error, visitor: FernVenusApi.apiKeys.revokeTokenById.Error._Visitor<_Result>) => _Result;
|
|
32
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
export const Error = {
|
|
6
|
+
unauthorizedError: () => {
|
|
7
|
+
return {
|
|
8
|
+
error: "UnauthorizedError",
|
|
9
|
+
_visit: function (visitor) {
|
|
10
|
+
return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
tokenNotFoundError: () => {
|
|
15
|
+
return {
|
|
16
|
+
error: "TokenNotFoundError",
|
|
17
|
+
_visit: function (visitor) {
|
|
18
|
+
return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
_unknown: (fetcherError) => {
|
|
23
|
+
return {
|
|
24
|
+
error: undefined,
|
|
25
|
+
content: fetcherError,
|
|
26
|
+
_visit: function (visitor) {
|
|
27
|
+
return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
_visit: (value, visitor) => {
|
|
32
|
+
switch (value.error) {
|
|
33
|
+
case "UnauthorizedError":
|
|
34
|
+
return visitor.unauthorizedError();
|
|
35
|
+
case "TokenNotFoundError":
|
|
36
|
+
return visitor.tokenNotFoundError();
|
|
37
|
+
default:
|
|
38
|
+
return visitor._other(value);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* token: "some-token-value",
|
|
9
|
+
* tokenId: FernVenusApi.TokenId("some-token-id")
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateTokenResponse {
|
|
13
|
+
token: string;
|
|
14
|
+
tokenId: FernVenusApi.TokenId;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* FernVenusApi.TokenId("some-token-id")
|
|
8
|
+
*/
|
|
9
|
+
export type TokenId = string & {
|
|
10
|
+
TokenId: void;
|
|
11
|
+
};
|
|
12
|
+
export declare function TokenId(value: string): FernVenusApi.TokenId;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* tokenId: FernVenusApi.TokenId("some-token-id"),
|
|
9
|
+
* organizationId: FernVenusApi.OrganizationId("some-org-id"),
|
|
10
|
+
* createdTime: new Date("2022-12-23T10:43:35.000Z"),
|
|
11
|
+
* status: {
|
|
12
|
+
* type: "active"
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface TokenMetadata {
|
|
17
|
+
tokenId: FernVenusApi.TokenId;
|
|
18
|
+
organizationId: FernVenusApi.OrganizationId;
|
|
19
|
+
description?: string;
|
|
20
|
+
createdTime: Date;
|
|
21
|
+
status: FernVenusApi.TokenStatus;
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* type: "active"
|
|
9
|
+
* }
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* {
|
|
13
|
+
* type: "expired"
|
|
14
|
+
* }
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* {
|
|
18
|
+
* type: "revoked"
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
export type TokenStatus = FernVenusApi.TokenStatus.Active | FernVenusApi.TokenStatus.Expired | FernVenusApi.TokenStatus.Revoked;
|
|
22
|
+
export declare namespace TokenStatus {
|
|
23
|
+
interface Active {
|
|
24
|
+
type: "active";
|
|
25
|
+
}
|
|
26
|
+
interface Expired {
|
|
27
|
+
type: "expired";
|
|
28
|
+
}
|
|
29
|
+
interface Revoked {
|
|
30
|
+
type: "revoked";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * as apiKeys from "./apiKeys/index.mjs";
|
|
2
|
+
export * from "./apiKeys/types/index.mjs";
|
|
1
3
|
export * as commons from "./commons/index.mjs";
|
|
2
4
|
export * from "./commons/types/index.mjs";
|
|
3
5
|
export * as organization from "./organization/index.mjs";
|
|
@@ -6,6 +8,7 @@ export * as registry from "./registry/index.mjs";
|
|
|
6
8
|
export * from "./registry/types/index.mjs";
|
|
7
9
|
export * as user from "./user/index.mjs";
|
|
8
10
|
export * from "./user/types/index.mjs";
|
|
11
|
+
export * from "./apiKeys/client/requests/index.mjs";
|
|
9
12
|
export * from "./organization/client/requests/index.mjs";
|
|
10
13
|
export * from "./registry/client/requests/index.mjs";
|
|
11
14
|
export * from "./user/client/requests/index.mjs";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * as apiKeys from "./apiKeys/index.mjs";
|
|
2
|
+
export * from "./apiKeys/types/index.mjs";
|
|
1
3
|
export * as commons from "./commons/index.mjs";
|
|
2
4
|
export * from "./commons/types/index.mjs";
|
|
3
5
|
export * as organization from "./organization/index.mjs";
|
|
@@ -6,6 +8,7 @@ export * as registry from "./registry/index.mjs";
|
|
|
6
8
|
export * from "./registry/types/index.mjs";
|
|
7
9
|
export * as user from "./user/index.mjs";
|
|
8
10
|
export * from "./user/types/index.mjs";
|
|
11
|
+
export * from "./apiKeys/client/requests/index.mjs";
|
|
9
12
|
export * from "./organization/client/requests/index.mjs";
|
|
10
13
|
export * from "./registry/client/requests/index.mjs";
|
|
11
14
|
export * from "./user/client/requests/index.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.apiKeys.create.Error.Raw, FernVenusApi.apiKeys.create.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
error: "UnauthorizedError";
|
|
12
|
+
}
|
|
13
|
+
interface OrganizationNotFoundError {
|
|
14
|
+
error: "OrganizationNotFoundError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
5
|
+
var t = {};
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
9
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
11
|
+
t[p[i]] = s[p[i]];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
import * as FernVenusApi from "../../../../api/index.mjs";
|
|
16
|
+
import * as core from "../../../../core/index.mjs";
|
|
17
|
+
export const Error = core.serialization
|
|
18
|
+
.union("error", {
|
|
19
|
+
UnauthorizedError: core.serialization.object({}),
|
|
20
|
+
OrganizationNotFoundError: core.serialization.object({}),
|
|
21
|
+
})
|
|
22
|
+
.transform({
|
|
23
|
+
transform: (value) => {
|
|
24
|
+
switch (value.error) {
|
|
25
|
+
case "UnauthorizedError":
|
|
26
|
+
return FernVenusApi.apiKeys.create.Error.unauthorizedError();
|
|
27
|
+
case "OrganizationNotFoundError":
|
|
28
|
+
return FernVenusApi.apiKeys.create.Error.organizationNotFoundError();
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
untransform: (_a) => {
|
|
32
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
33
|
+
return value;
|
|
34
|
+
},
|
|
35
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.apiKeys.getTokenMetadata.Error.Raw, FernVenusApi.apiKeys.getTokenMetadata.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError | Error.TokenNotFoundError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
error: "UnauthorizedError";
|
|
12
|
+
}
|
|
13
|
+
interface TokenNotFoundError {
|
|
14
|
+
error: "TokenNotFoundError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
5
|
+
var t = {};
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
9
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
11
|
+
t[p[i]] = s[p[i]];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
import * as FernVenusApi from "../../../../api/index.mjs";
|
|
16
|
+
import * as core from "../../../../core/index.mjs";
|
|
17
|
+
export const Error = core.serialization
|
|
18
|
+
.union("error", {
|
|
19
|
+
UnauthorizedError: core.serialization.object({}),
|
|
20
|
+
TokenNotFoundError: core.serialization.object({}),
|
|
21
|
+
})
|
|
22
|
+
.transform({
|
|
23
|
+
transform: (value) => {
|
|
24
|
+
switch (value.error) {
|
|
25
|
+
case "UnauthorizedError":
|
|
26
|
+
return FernVenusApi.apiKeys.getTokenMetadata.Error.unauthorizedError();
|
|
27
|
+
case "TokenNotFoundError":
|
|
28
|
+
return FernVenusApi.apiKeys.getTokenMetadata.Error.tokenNotFoundError();
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
untransform: (_a) => {
|
|
32
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
33
|
+
return value;
|
|
34
|
+
},
|
|
35
|
+
});
|