@fern-api/venus-api-sdk 2.1.0 → 4.0.0
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/README.md +12 -12
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +9 -9
- package/dist/cjs/Client.js +8 -8
- package/dist/cjs/api/client/healthHealthGet.d.ts +5 -5
- package/dist/cjs/api/client/healthHealthGet.js +2 -2
- package/dist/cjs/api/client/metricsMetricsGet.d.ts +5 -5
- package/dist/cjs/api/client/metricsMetricsGet.js +2 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/apiKeys/client/Client.js +22 -27
- package/dist/cjs/api/resources/apiKeys/client/create.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/create.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +3 -3
- package/dist/cjs/api/resources/auth/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/auth/client/Client.js +13 -15
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.d.ts +8 -8
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.js +3 -3
- package/dist/cjs/api/resources/auth/client/getJwt.d.ts +8 -8
- package/dist/cjs/api/resources/auth/client/getJwt.js +3 -3
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.d.ts +8 -8
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.js +3 -3
- package/dist/cjs/api/resources/organization/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/organization/client/Client.js +44 -53
- package/dist/cjs/api/resources/organization/client/addUser.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/addUser.js +3 -3
- package/dist/cjs/api/resources/organization/client/create.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/create.js +3 -3
- package/dist/cjs/api/resources/organization/client/delete.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/delete.js +3 -3
- package/dist/cjs/api/resources/organization/client/get.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/get.js +3 -3
- package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.js +3 -3
- package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.js +3 -3
- package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.d.ts +5 -5
- package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.js +2 -2
- package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.js +3 -3
- package/dist/cjs/api/resources/organization/client/inviteUser.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/inviteUser.js +3 -3
- package/dist/cjs/api/resources/organization/client/isMember.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/isMember.js +3 -3
- package/dist/cjs/api/resources/organization/client/removeUser.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/removeUser.js +3 -3
- package/dist/cjs/api/resources/organization/client/update.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/update.js +3 -3
- package/dist/cjs/api/resources/registry/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/registry/client/Client.js +13 -15
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.d.ts +8 -8
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.js +3 -3
- package/dist/cjs/api/resources/registry/client/hasRegistryPermission.d.ts +8 -8
- package/dist/cjs/api/resources/registry/client/hasRegistryPermission.js +3 -3
- package/dist/cjs/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
- package/dist/cjs/api/resources/registry/client/revokeToken.d.ts +8 -8
- package/dist/cjs/api/resources/registry/client/revokeToken.js +3 -3
- package/dist/cjs/api/resources/user/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/user/client/Client.js +12 -15
- package/dist/cjs/api/resources/user/client/getMyOrganizations.d.ts +8 -8
- package/dist/cjs/api/resources/user/client/getMyOrganizations.js +3 -3
- package/dist/cjs/api/resources/user/client/getMyself.d.ts +5 -5
- package/dist/cjs/api/resources/user/client/getMyself.js +2 -2
- package/dist/cjs/api/resources/user/client/linkAccounts.d.ts +8 -8
- package/dist/cjs/api/resources/user/client/linkAccounts.js +3 -3
- package/dist/cjs/api/types/HttpValidationError.d.ts +2 -2
- package/dist/cjs/api/types/Organization.d.ts +2 -2
- package/dist/cjs/api/types/RegistryToken.d.ts +5 -5
- package/dist/cjs/api/types/RegistryTokens.d.ts +4 -4
- package/dist/cjs/api/types/TokenMetadata.d.ts +2 -2
- package/dist/cjs/api/types/TokenStatus.d.ts +5 -5
- package/dist/cjs/api/types/ValidationError.d.ts +2 -2
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/user/client/requests/LinkAccountsRequest.d.ts +2 -2
- package/dist/cjs/serialization/types/Active.d.ts +2 -2
- package/dist/cjs/serialization/types/CreateOrganizationResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/CreateTokenResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/Expired.d.ts +2 -2
- package/dist/cjs/serialization/types/HttpValidationError.d.ts +2 -2
- package/dist/cjs/serialization/types/JwtResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/LightweightUser.d.ts +2 -2
- package/dist/cjs/serialization/types/LinkAccountsResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/Maven.d.ts +2 -2
- package/dist/cjs/serialization/types/MavenRegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/Npm.d.ts +2 -2
- package/dist/cjs/serialization/types/NpmRegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/Organization.d.ts +2 -2
- package/dist/cjs/serialization/types/OrganizationsPage.d.ts +2 -2
- package/dist/cjs/serialization/types/Pypi.d.ts +2 -2
- package/dist/cjs/serialization/types/PypiRegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/RegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/RegistryTokens.d.ts +2 -2
- package/dist/cjs/serialization/types/Revoked.d.ts +2 -2
- package/dist/cjs/serialization/types/TokenMetadata.d.ts +2 -2
- package/dist/cjs/serialization/types/TokenStatus.d.ts +2 -2
- package/dist/cjs/serialization/types/User.d.ts +2 -2
- package/dist/cjs/serialization/types/ValidationError.d.ts +2 -2
- package/dist/cjs/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +9 -9
- package/dist/esm/Client.mjs +6 -6
- package/dist/esm/api/client/healthHealthGet.d.mts +5 -5
- package/dist/esm/api/client/healthHealthGet.mjs +2 -2
- package/dist/esm/api/client/metricsMetricsGet.d.mts +5 -5
- package/dist/esm/api/client/metricsMetricsGet.mjs +2 -2
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +23 -28
- package/dist/esm/api/resources/apiKeys/client/create.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/create.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +3 -3
- package/dist/esm/api/resources/auth/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/auth/client/Client.mjs +14 -16
- package/dist/esm/api/resources/auth/client/getAutopilotToken.d.mts +8 -8
- package/dist/esm/api/resources/auth/client/getAutopilotToken.mjs +3 -3
- package/dist/esm/api/resources/auth/client/getJwt.d.mts +8 -8
- package/dist/esm/api/resources/auth/client/getJwt.mjs +3 -3
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.d.mts +8 -8
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.mjs +3 -3
- package/dist/esm/api/resources/organization/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/organization/client/Client.mjs +44 -53
- package/dist/esm/api/resources/organization/client/addUser.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/addUser.mjs +3 -3
- package/dist/esm/api/resources/organization/client/create.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/create.mjs +3 -3
- package/dist/esm/api/resources/organization/client/delete.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/delete.mjs +3 -3
- package/dist/esm/api/resources/organization/client/get.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/get.mjs +3 -3
- package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.mjs +3 -3
- package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.mjs +3 -3
- package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.d.mts +5 -5
- package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.mjs +2 -2
- package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.mjs +3 -3
- package/dist/esm/api/resources/organization/client/inviteUser.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/inviteUser.mjs +3 -3
- package/dist/esm/api/resources/organization/client/isMember.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/isMember.mjs +3 -3
- package/dist/esm/api/resources/organization/client/removeUser.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/removeUser.mjs +3 -3
- package/dist/esm/api/resources/organization/client/update.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/update.mjs +3 -3
- package/dist/esm/api/resources/registry/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/registry/client/Client.mjs +14 -16
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.d.mts +8 -8
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.mjs +3 -3
- package/dist/esm/api/resources/registry/client/hasRegistryPermission.d.mts +8 -8
- package/dist/esm/api/resources/registry/client/hasRegistryPermission.mjs +3 -3
- package/dist/esm/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
- package/dist/esm/api/resources/registry/client/revokeToken.d.mts +8 -8
- package/dist/esm/api/resources/registry/client/revokeToken.mjs +3 -3
- package/dist/esm/api/resources/user/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/user/client/Client.mjs +13 -16
- package/dist/esm/api/resources/user/client/getMyOrganizations.d.mts +8 -8
- package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +3 -3
- package/dist/esm/api/resources/user/client/getMyself.d.mts +5 -5
- package/dist/esm/api/resources/user/client/getMyself.mjs +2 -2
- package/dist/esm/api/resources/user/client/linkAccounts.d.mts +8 -8
- package/dist/esm/api/resources/user/client/linkAccounts.mjs +3 -3
- package/dist/esm/api/types/HttpValidationError.d.mts +2 -2
- package/dist/esm/api/types/Organization.d.mts +2 -2
- package/dist/esm/api/types/RegistryToken.d.mts +5 -5
- package/dist/esm/api/types/RegistryTokens.d.mts +4 -4
- package/dist/esm/api/types/TokenMetadata.d.mts +2 -2
- package/dist/esm/api/types/TokenStatus.d.mts +5 -5
- package/dist/esm/api/types/ValidationError.d.mts +2 -2
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +2 -2
- package/dist/esm/serialization/types/Active.d.mts +2 -2
- package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +2 -2
- package/dist/esm/serialization/types/CreateTokenResponse.d.mts +2 -2
- package/dist/esm/serialization/types/Expired.d.mts +2 -2
- package/dist/esm/serialization/types/HttpValidationError.d.mts +2 -2
- package/dist/esm/serialization/types/JwtResponse.d.mts +2 -2
- package/dist/esm/serialization/types/LightweightUser.d.mts +2 -2
- package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +2 -2
- package/dist/esm/serialization/types/Maven.d.mts +2 -2
- package/dist/esm/serialization/types/MavenRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/Npm.d.mts +2 -2
- package/dist/esm/serialization/types/NpmRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/Organization.d.mts +2 -2
- package/dist/esm/serialization/types/OrganizationsPage.d.mts +2 -2
- package/dist/esm/serialization/types/Pypi.d.mts +2 -2
- package/dist/esm/serialization/types/PypiRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/RegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/RegistryTokens.d.mts +2 -2
- package/dist/esm/serialization/types/Revoked.d.mts +2 -2
- package/dist/esm/serialization/types/TokenMetadata.d.mts +2 -2
- package/dist/esm/serialization/types/TokenStatus.d.mts +2 -2
- package/dist/esm/serialization/types/User.d.mts +2 -2
- package/dist/esm/serialization/types/ValidationError.d.mts +2 -2
- package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +54 -54
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
-
export declare const PypiRegistryToken: core.serialization.ObjectSchema<serializers.PypiRegistryToken.Raw,
|
|
4
|
+
export declare const PypiRegistryToken: core.serialization.ObjectSchema<serializers.PypiRegistryToken.Raw, FernVenusApi.PypiRegistryToken>;
|
|
5
5
|
export declare namespace PypiRegistryToken {
|
|
6
6
|
interface Raw {
|
|
7
7
|
username: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { Maven } from "./Maven.js";
|
|
5
5
|
import { Npm } from "./Npm.js";
|
|
6
6
|
import { Pypi } from "./Pypi.js";
|
|
7
|
-
export declare const RegistryToken: core.serialization.Schema<serializers.RegistryToken.Raw,
|
|
7
|
+
export declare const RegistryToken: core.serialization.Schema<serializers.RegistryToken.Raw, FernVenusApi.RegistryToken>;
|
|
8
8
|
export declare namespace RegistryToken {
|
|
9
9
|
type Raw = RegistryToken.Maven | RegistryToken.Npm | RegistryToken.Pypi;
|
|
10
10
|
interface Maven extends Maven.Raw {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { MavenRegistryToken } from "./MavenRegistryToken.js";
|
|
5
5
|
import { NpmRegistryToken } from "./NpmRegistryToken.js";
|
|
6
6
|
import { PypiRegistryToken } from "./PypiRegistryToken.js";
|
|
7
|
-
export declare const RegistryTokens: core.serialization.ObjectSchema<serializers.RegistryTokens.Raw,
|
|
7
|
+
export declare const RegistryTokens: core.serialization.ObjectSchema<serializers.RegistryTokens.Raw, FernVenusApi.RegistryTokens>;
|
|
8
8
|
export declare namespace RegistryTokens {
|
|
9
9
|
interface Raw {
|
|
10
10
|
npm: NpmRegistryToken.Raw;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
-
export declare const Revoked: core.serialization.ObjectSchema<serializers.Revoked.Raw,
|
|
4
|
+
export declare const Revoked: core.serialization.ObjectSchema<serializers.Revoked.Raw, FernVenusApi.Revoked>;
|
|
5
5
|
export declare namespace Revoked {
|
|
6
6
|
type Raw = {};
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { TokenStatus } from "./TokenStatus.js";
|
|
5
|
-
export declare const TokenMetadata: core.serialization.ObjectSchema<serializers.TokenMetadata.Raw,
|
|
5
|
+
export declare const TokenMetadata: core.serialization.ObjectSchema<serializers.TokenMetadata.Raw, FernVenusApi.TokenMetadata>;
|
|
6
6
|
export declare namespace TokenMetadata {
|
|
7
7
|
interface Raw {
|
|
8
8
|
tokenId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { Active } from "./Active.js";
|
|
5
5
|
import { Expired } from "./Expired.js";
|
|
6
6
|
import { Revoked } from "./Revoked.js";
|
|
7
|
-
export declare const TokenStatus: core.serialization.Schema<serializers.TokenStatus.Raw,
|
|
7
|
+
export declare const TokenStatus: core.serialization.Schema<serializers.TokenStatus.Raw, FernVenusApi.TokenStatus>;
|
|
8
8
|
export declare namespace TokenStatus {
|
|
9
9
|
type Raw = TokenStatus.Active | TokenStatus.Expired | TokenStatus.Revoked;
|
|
10
10
|
interface Active extends Active.Raw {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
-
export declare const User: core.serialization.ObjectSchema<serializers.User.Raw,
|
|
4
|
+
export declare const User: core.serialization.ObjectSchema<serializers.User.Raw, FernVenusApi.User>;
|
|
5
5
|
export declare namespace User {
|
|
6
6
|
interface Raw {
|
|
7
7
|
userId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { ValidationErrorLocItem } from "./ValidationErrorLocItem.js";
|
|
5
|
-
export declare const ValidationError: core.serialization.ObjectSchema<serializers.ValidationError.Raw,
|
|
5
|
+
export declare const ValidationError: core.serialization.ObjectSchema<serializers.ValidationError.Raw, FernVenusApi.ValidationError>;
|
|
6
6
|
export declare namespace ValidationError {
|
|
7
7
|
interface Raw {
|
|
8
8
|
loc: ValidationErrorLocItem.Raw[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
-
export declare const ValidationErrorLocItem: core.serialization.Schema<serializers.ValidationErrorLocItem.Raw,
|
|
4
|
+
export declare const ValidationErrorLocItem: core.serialization.Schema<serializers.ValidationErrorLocItem.Raw, FernVenusApi.ValidationErrorLocItem>;
|
|
5
5
|
export declare namespace ValidationErrorLocItem {
|
|
6
6
|
type Raw = string | number;
|
|
7
7
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "4.0.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "
|
|
10
|
-
"User-Agent": "@fern-api/venus-api-sdk/
|
|
9
|
+
"X-Fern-SDK-Version": "4.0.0",
|
|
10
|
+
"User-Agent": "@fern-api/venus-api-sdk/4.0.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as FernVenusApi from "./api/index.mjs";
|
|
2
2
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
3
3
|
import { AuthClient } from "./api/resources/auth/client/Client.mjs";
|
|
4
4
|
import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
|
|
@@ -7,19 +7,19 @@ import { UserClient } from "./api/resources/user/client/Client.mjs";
|
|
|
7
7
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
8
8
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
9
9
|
import * as core from "./core/index.mjs";
|
|
10
|
-
export declare namespace
|
|
10
|
+
export declare namespace FernVenusApiClient {
|
|
11
11
|
type Options = BaseClientOptions;
|
|
12
12
|
interface RequestOptions extends BaseRequestOptions {
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export declare class
|
|
16
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<
|
|
15
|
+
export declare class FernVenusApiClient {
|
|
16
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<FernVenusApiClient.Options>;
|
|
17
17
|
protected _apiKeys: ApiKeysClient | undefined;
|
|
18
18
|
protected _auth: AuthClient | undefined;
|
|
19
19
|
protected _organization: OrganizationClient | undefined;
|
|
20
20
|
protected _registry: RegistryClient | undefined;
|
|
21
21
|
protected _user: UserClient | undefined;
|
|
22
|
-
constructor(options:
|
|
22
|
+
constructor(options: FernVenusApiClient.Options);
|
|
23
23
|
get apiKeys(): ApiKeysClient;
|
|
24
24
|
get auth(): AuthClient;
|
|
25
25
|
get organization(): OrganizationClient;
|
|
@@ -28,19 +28,19 @@ export declare class FernApiClient {
|
|
|
28
28
|
/**
|
|
29
29
|
* Endpoint that serves Prometheus metrics.
|
|
30
30
|
*
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* await client.metricsMetricsGet()
|
|
35
35
|
*/
|
|
36
|
-
metricsMetricsGet(requestOptions?:
|
|
36
|
+
metricsMetricsGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.metricsMetricsGet.Error>>;
|
|
37
37
|
private __metricsMetricsGet;
|
|
38
38
|
/**
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* await client.healthHealthGet()
|
|
43
43
|
*/
|
|
44
|
-
healthHealthGet(requestOptions?:
|
|
44
|
+
healthHealthGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.healthHealthGet.Error>>;
|
|
45
45
|
private __healthHealthGet;
|
|
46
46
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import * as
|
|
11
|
+
import * as FernVenusApi from "./api/index.mjs";
|
|
12
12
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
13
13
|
import { AuthClient } from "./api/resources/auth/client/Client.mjs";
|
|
14
14
|
import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
|
|
@@ -17,7 +17,7 @@ import { UserClient } from "./api/resources/user/client/Client.mjs";
|
|
|
17
17
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
18
18
|
import { mergeHeaders } from "./core/headers.mjs";
|
|
19
19
|
import * as core from "./core/index.mjs";
|
|
20
|
-
export class
|
|
20
|
+
export class FernVenusApiClient {
|
|
21
21
|
constructor(options) {
|
|
22
22
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
23
23
|
}
|
|
@@ -44,7 +44,7 @@ export class FernApiClient {
|
|
|
44
44
|
/**
|
|
45
45
|
* Endpoint that serves Prometheus metrics.
|
|
46
46
|
*
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* await client.metricsMetricsGet()
|
|
@@ -81,7 +81,7 @@ export class FernApiClient {
|
|
|
81
81
|
return {
|
|
82
82
|
data: {
|
|
83
83
|
ok: false,
|
|
84
|
-
error:
|
|
84
|
+
error: FernVenusApi.metricsMetricsGet.Error._unknown(_response.error),
|
|
85
85
|
rawResponse: _response.rawResponse,
|
|
86
86
|
},
|
|
87
87
|
rawResponse: _response.rawResponse,
|
|
@@ -89,7 +89,7 @@ export class FernApiClient {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* @param {
|
|
92
|
+
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* await client.healthHealthGet()
|
|
@@ -126,7 +126,7 @@ export class FernApiClient {
|
|
|
126
126
|
return {
|
|
127
127
|
data: {
|
|
128
128
|
ok: false,
|
|
129
|
-
error:
|
|
129
|
+
error: FernVenusApi.healthHealthGet.Error._unknown(_response.error),
|
|
130
130
|
rawResponse: _response.rawResponse,
|
|
131
131
|
},
|
|
132
132
|
rawResponse: _response.rawResponse,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type * as core from "../../core/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../index.mjs";
|
|
3
|
+
export type Error = FernVenusApi.healthHealthGet.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface _Unknown extends _Utils {
|
|
6
6
|
statusCode: void;
|
|
7
7
|
content: core.Fetcher.Error;
|
|
8
8
|
}
|
|
9
9
|
interface _Utils {
|
|
10
|
-
_visit: <_Result>(visitor:
|
|
10
|
+
_visit: <_Result>(visitor: FernVenusApi.healthHealthGet.Error._Visitor<_Result>) => _Result;
|
|
11
11
|
}
|
|
12
12
|
interface _Visitor<_Result> {
|
|
13
13
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
export declare const Error: {
|
|
17
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
18
|
-
readonly _visit: <_Result>(value:
|
|
17
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.healthHealthGet.Error._Unknown;
|
|
18
|
+
readonly _visit: <_Result>(value: FernVenusApi.healthHealthGet.Error, visitor: FernVenusApi.healthHealthGet.Error._Visitor<_Result>) => _Result;
|
|
19
19
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as
|
|
2
|
+
import * as FernVenusApi from "../index.mjs";
|
|
3
3
|
export const Error = {
|
|
4
4
|
_unknown: (fetcherError) => {
|
|
5
5
|
return {
|
|
6
6
|
statusCode: undefined,
|
|
7
7
|
content: fetcherError,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.healthHealthGet.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type * as core from "../../core/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../index.mjs";
|
|
3
|
+
export type Error = FernVenusApi.metricsMetricsGet.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface _Unknown extends _Utils {
|
|
6
6
|
statusCode: void;
|
|
7
7
|
content: core.Fetcher.Error;
|
|
8
8
|
}
|
|
9
9
|
interface _Utils {
|
|
10
|
-
_visit: <_Result>(visitor:
|
|
10
|
+
_visit: <_Result>(visitor: FernVenusApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
|
|
11
11
|
}
|
|
12
12
|
interface _Visitor<_Result> {
|
|
13
13
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
export declare const Error: {
|
|
17
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
18
|
-
readonly _visit: <_Result>(value:
|
|
17
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.metricsMetricsGet.Error._Unknown;
|
|
18
|
+
readonly _visit: <_Result>(value: FernVenusApi.metricsMetricsGet.Error, visitor: FernVenusApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
|
|
19
19
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as
|
|
2
|
+
import * as FernVenusApi from "../index.mjs";
|
|
3
3
|
export const Error = {
|
|
4
4
|
_unknown: (fetcherError) => {
|
|
5
5
|
return {
|
|
6
6
|
statusCode: undefined,
|
|
7
7
|
content: fetcherError,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.metricsMetricsGet.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
5
|
export declare namespace ApiKeysClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class ApiKeysClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<ApiKeysClient.Options>;
|
|
12
12
|
constructor(options: ApiKeysClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {FernVenusApi.CreateApiKeyRequest} request
|
|
15
15
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
@@ -19,10 +19,10 @@ export declare class ApiKeysClient {
|
|
|
19
19
|
* organizationId: "organizationId"
|
|
20
20
|
* })
|
|
21
21
|
*/
|
|
22
|
-
create(request:
|
|
22
|
+
create(request: FernVenusApi.CreateApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.CreateTokenResponse, FernVenusApi.apiKeys.create.Error>>;
|
|
23
23
|
private __create;
|
|
24
24
|
/**
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {FernVenusApi.GetTokenMetadataRequest} request
|
|
26
26
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
@@ -30,10 +30,10 @@ export declare class ApiKeysClient {
|
|
|
30
30
|
* token: "token"
|
|
31
31
|
* })
|
|
32
32
|
*/
|
|
33
|
-
getTokenMetadata(request:
|
|
33
|
+
getTokenMetadata(request: FernVenusApi.GetTokenMetadataRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata, FernVenusApi.apiKeys.getTokenMetadata.Error>>;
|
|
34
34
|
private __getTokenMetadata;
|
|
35
35
|
/**
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {FernVenusApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest} request
|
|
37
37
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
@@ -41,10 +41,10 @@ export declare class ApiKeysClient {
|
|
|
41
41
|
* organizationId: "organization_id"
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
|
-
getTokensForOrganization(request:
|
|
44
|
+
getTokensForOrganization(request: FernVenusApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata[], FernVenusApi.apiKeys.getTokensForOrganization.Error>>;
|
|
45
45
|
private __getTokensForOrganization;
|
|
46
46
|
/**
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {FernVenusApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest} request
|
|
48
48
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
@@ -52,10 +52,10 @@ export declare class ApiKeysClient {
|
|
|
52
52
|
* tokenId: "token_id"
|
|
53
53
|
* })
|
|
54
54
|
*/
|
|
55
|
-
revokeTokenById(request:
|
|
55
|
+
revokeTokenById(request: FernVenusApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeTokenById.Error>>;
|
|
56
56
|
private __revokeTokenById;
|
|
57
57
|
/**
|
|
58
|
-
* @param {
|
|
58
|
+
* @param {FernVenusApi.RevokeApiKeyRequest} request
|
|
59
59
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
@@ -63,6 +63,6 @@ export declare class ApiKeysClient {
|
|
|
63
63
|
* token: "token"
|
|
64
64
|
* })
|
|
65
65
|
*/
|
|
66
|
-
revokeToken(request:
|
|
66
|
+
revokeToken(request: FernVenusApi.RevokeApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeToken.Error>>;
|
|
67
67
|
private __revokeToken;
|
|
68
68
|
}
|
|
@@ -8,17 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptions } from "../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
14
|
import * as serializers from "../../../../serialization/index.mjs";
|
|
15
|
-
import * as
|
|
15
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
16
16
|
export class ApiKeysClient {
|
|
17
17
|
constructor(options) {
|
|
18
|
-
this._options =
|
|
18
|
+
this._options = normalizeClientOptions(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {FernVenusApi.CreateApiKeyRequest} request
|
|
22
22
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
@@ -32,8 +32,7 @@ export class ApiKeysClient {
|
|
|
32
32
|
__create(request, requestOptions) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
35
|
-
const
|
|
36
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
35
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
36
|
const _response = yield core.fetcher({
|
|
38
37
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/create"),
|
|
39
38
|
method: "POST",
|
|
@@ -74,7 +73,7 @@ export class ApiKeysClient {
|
|
|
74
73
|
return {
|
|
75
74
|
data: {
|
|
76
75
|
ok: false,
|
|
77
|
-
error:
|
|
76
|
+
error: FernVenusApi.apiKeys.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
78
77
|
unrecognizedObjectKeys: "passthrough",
|
|
79
78
|
allowUnrecognizedUnionMembers: true,
|
|
80
79
|
allowUnrecognizedEnumValues: true,
|
|
@@ -90,7 +89,7 @@ export class ApiKeysClient {
|
|
|
90
89
|
return {
|
|
91
90
|
data: {
|
|
92
91
|
ok: false,
|
|
93
|
-
error:
|
|
92
|
+
error: FernVenusApi.apiKeys.create.Error._unknown(_response.error),
|
|
94
93
|
rawResponse: _response.rawResponse,
|
|
95
94
|
},
|
|
96
95
|
rawResponse: _response.rawResponse,
|
|
@@ -98,7 +97,7 @@ export class ApiKeysClient {
|
|
|
98
97
|
});
|
|
99
98
|
}
|
|
100
99
|
/**
|
|
101
|
-
* @param {
|
|
100
|
+
* @param {FernVenusApi.GetTokenMetadataRequest} request
|
|
102
101
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
102
|
*
|
|
104
103
|
* @example
|
|
@@ -112,8 +111,7 @@ export class ApiKeysClient {
|
|
|
112
111
|
__getTokenMetadata(request, requestOptions) {
|
|
113
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
113
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
115
|
-
const
|
|
116
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
114
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
117
115
|
const _response = yield core.fetcher({
|
|
118
116
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/metadata"),
|
|
119
117
|
method: "POST",
|
|
@@ -154,7 +152,7 @@ export class ApiKeysClient {
|
|
|
154
152
|
return {
|
|
155
153
|
data: {
|
|
156
154
|
ok: false,
|
|
157
|
-
error:
|
|
155
|
+
error: FernVenusApi.apiKeys.getTokenMetadata.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
158
156
|
unrecognizedObjectKeys: "passthrough",
|
|
159
157
|
allowUnrecognizedUnionMembers: true,
|
|
160
158
|
allowUnrecognizedEnumValues: true,
|
|
@@ -170,7 +168,7 @@ export class ApiKeysClient {
|
|
|
170
168
|
return {
|
|
171
169
|
data: {
|
|
172
170
|
ok: false,
|
|
173
|
-
error:
|
|
171
|
+
error: FernVenusApi.apiKeys.getTokenMetadata.Error._unknown(_response.error),
|
|
174
172
|
rawResponse: _response.rawResponse,
|
|
175
173
|
},
|
|
176
174
|
rawResponse: _response.rawResponse,
|
|
@@ -178,7 +176,7 @@ export class ApiKeysClient {
|
|
|
178
176
|
});
|
|
179
177
|
}
|
|
180
178
|
/**
|
|
181
|
-
* @param {
|
|
179
|
+
* @param {FernVenusApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest} request
|
|
182
180
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
181
|
*
|
|
184
182
|
* @example
|
|
@@ -193,8 +191,7 @@ export class ApiKeysClient {
|
|
|
193
191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
194
192
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
195
193
|
const { organizationId } = request;
|
|
196
|
-
const
|
|
197
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
194
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
198
195
|
const _response = yield core.fetcher({
|
|
199
196
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `api-keys/organization/${core.url.encodePathParam(organizationId)}`),
|
|
200
197
|
method: "GET",
|
|
@@ -229,7 +226,7 @@ export class ApiKeysClient {
|
|
|
229
226
|
return {
|
|
230
227
|
data: {
|
|
231
228
|
ok: false,
|
|
232
|
-
error:
|
|
229
|
+
error: FernVenusApi.apiKeys.getTokensForOrganization.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
233
230
|
unrecognizedObjectKeys: "passthrough",
|
|
234
231
|
allowUnrecognizedUnionMembers: true,
|
|
235
232
|
allowUnrecognizedEnumValues: true,
|
|
@@ -245,7 +242,7 @@ export class ApiKeysClient {
|
|
|
245
242
|
return {
|
|
246
243
|
data: {
|
|
247
244
|
ok: false,
|
|
248
|
-
error:
|
|
245
|
+
error: FernVenusApi.apiKeys.getTokensForOrganization.Error._unknown(_response.error),
|
|
249
246
|
rawResponse: _response.rawResponse,
|
|
250
247
|
},
|
|
251
248
|
rawResponse: _response.rawResponse,
|
|
@@ -253,7 +250,7 @@ export class ApiKeysClient {
|
|
|
253
250
|
});
|
|
254
251
|
}
|
|
255
252
|
/**
|
|
256
|
-
* @param {
|
|
253
|
+
* @param {FernVenusApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest} request
|
|
257
254
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
255
|
*
|
|
259
256
|
* @example
|
|
@@ -268,8 +265,7 @@ export class ApiKeysClient {
|
|
|
268
265
|
return __awaiter(this, void 0, void 0, function* () {
|
|
269
266
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
270
267
|
const { tokenId } = request;
|
|
271
|
-
const
|
|
272
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
268
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
273
269
|
const _response = yield core.fetcher({
|
|
274
270
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `api-keys/revoke/${core.url.encodePathParam(tokenId)}`),
|
|
275
271
|
method: "POST",
|
|
@@ -298,7 +294,7 @@ export class ApiKeysClient {
|
|
|
298
294
|
return {
|
|
299
295
|
data: {
|
|
300
296
|
ok: false,
|
|
301
|
-
error:
|
|
297
|
+
error: FernVenusApi.apiKeys.revokeTokenById.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
302
298
|
unrecognizedObjectKeys: "passthrough",
|
|
303
299
|
allowUnrecognizedUnionMembers: true,
|
|
304
300
|
allowUnrecognizedEnumValues: true,
|
|
@@ -314,7 +310,7 @@ export class ApiKeysClient {
|
|
|
314
310
|
return {
|
|
315
311
|
data: {
|
|
316
312
|
ok: false,
|
|
317
|
-
error:
|
|
313
|
+
error: FernVenusApi.apiKeys.revokeTokenById.Error._unknown(_response.error),
|
|
318
314
|
rawResponse: _response.rawResponse,
|
|
319
315
|
},
|
|
320
316
|
rawResponse: _response.rawResponse,
|
|
@@ -322,7 +318,7 @@ export class ApiKeysClient {
|
|
|
322
318
|
});
|
|
323
319
|
}
|
|
324
320
|
/**
|
|
325
|
-
* @param {
|
|
321
|
+
* @param {FernVenusApi.RevokeApiKeyRequest} request
|
|
326
322
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
327
323
|
*
|
|
328
324
|
* @example
|
|
@@ -336,8 +332,7 @@ export class ApiKeysClient {
|
|
|
336
332
|
__revokeToken(request, requestOptions) {
|
|
337
333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
338
334
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
339
|
-
const
|
|
340
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
335
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
341
336
|
const _response = yield core.fetcher({
|
|
342
337
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/revoke"),
|
|
343
338
|
method: "POST",
|
|
@@ -372,7 +367,7 @@ export class ApiKeysClient {
|
|
|
372
367
|
return {
|
|
373
368
|
data: {
|
|
374
369
|
ok: false,
|
|
375
|
-
error:
|
|
370
|
+
error: FernVenusApi.apiKeys.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
376
371
|
unrecognizedObjectKeys: "passthrough",
|
|
377
372
|
allowUnrecognizedUnionMembers: true,
|
|
378
373
|
allowUnrecognizedEnumValues: true,
|
|
@@ -388,7 +383,7 @@ export class ApiKeysClient {
|
|
|
388
383
|
return {
|
|
389
384
|
data: {
|
|
390
385
|
ok: false,
|
|
391
|
-
error:
|
|
386
|
+
error: FernVenusApi.apiKeys.revokeToken.Error._unknown(_response.error),
|
|
392
387
|
rawResponse: _response.rawResponse,
|
|
393
388
|
},
|
|
394
389
|
rawResponse: _response.rawResponse,
|