@fern-api/venus-api-sdk 3.0.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.d.ts +8 -2
- package/dist/cjs/BaseClient.js +14 -2
- package/dist/cjs/Client.d.ts +10 -10
- package/dist/cjs/Client.js +9 -9
- 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 +11 -11
- package/dist/cjs/api/resources/apiKeys/client/Client.js +16 -16
- 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 +7 -7
- package/dist/cjs/api/resources/auth/client/Client.js +10 -10
- 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 +26 -26
- package/dist/cjs/api/resources/organization/client/Client.js +42 -39
- 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 +7 -7
- package/dist/cjs/api/resources/registry/client/Client.js +10 -10
- 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 +6 -6
- package/dist/cjs/api/resources/user/client/Client.js +8 -8
- 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/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/cjs/auth/BearerAuthProvider.js +76 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +27 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
- package/dist/cjs/core/auth/BearerToken.js +16 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +5 -0
- package/dist/cjs/core/auth/index.js +9 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +2 -0
- 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.d.mts +8 -2
- package/dist/esm/BaseClient.mjs +13 -2
- package/dist/esm/Client.d.mts +10 -10
- package/dist/esm/Client.mjs +8 -8
- 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 +11 -11
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +16 -16
- 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 +7 -7
- package/dist/esm/api/resources/auth/client/Client.mjs +10 -10
- 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 +26 -26
- package/dist/esm/api/resources/organization/client/Client.mjs +43 -40
- 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 +7 -7
- package/dist/esm/api/resources/registry/client/Client.mjs +10 -10
- 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 +6 -6
- package/dist/esm/api/resources/user/client/Client.mjs +8 -8
- 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/auth/BearerAuthProvider.d.mts +20 -0
- package/dist/esm/auth/BearerAuthProvider.mjs +39 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +24 -0
- package/dist/esm/core/auth/BearerToken.d.mts +7 -0
- package/dist/esm/core/auth/BearerToken.mjs +13 -0
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +5 -0
- package/dist/esm/core/auth/index.mjs +3 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- 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
|
@@ -12,13 +12,13 @@ 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
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
|
|
@@ -73,7 +73,7 @@ export class ApiKeysClient {
|
|
|
73
73
|
return {
|
|
74
74
|
data: {
|
|
75
75
|
ok: false,
|
|
76
|
-
error:
|
|
76
|
+
error: FernVenusApi.apiKeys.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
77
77
|
unrecognizedObjectKeys: "passthrough",
|
|
78
78
|
allowUnrecognizedUnionMembers: true,
|
|
79
79
|
allowUnrecognizedEnumValues: true,
|
|
@@ -89,7 +89,7 @@ export class ApiKeysClient {
|
|
|
89
89
|
return {
|
|
90
90
|
data: {
|
|
91
91
|
ok: false,
|
|
92
|
-
error:
|
|
92
|
+
error: FernVenusApi.apiKeys.create.Error._unknown(_response.error),
|
|
93
93
|
rawResponse: _response.rawResponse,
|
|
94
94
|
},
|
|
95
95
|
rawResponse: _response.rawResponse,
|
|
@@ -97,7 +97,7 @@ export class ApiKeysClient {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* @param {
|
|
100
|
+
* @param {FernVenusApi.GetTokenMetadataRequest} request
|
|
101
101
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
@@ -152,7 +152,7 @@ export class ApiKeysClient {
|
|
|
152
152
|
return {
|
|
153
153
|
data: {
|
|
154
154
|
ok: false,
|
|
155
|
-
error:
|
|
155
|
+
error: FernVenusApi.apiKeys.getTokenMetadata.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
156
156
|
unrecognizedObjectKeys: "passthrough",
|
|
157
157
|
allowUnrecognizedUnionMembers: true,
|
|
158
158
|
allowUnrecognizedEnumValues: true,
|
|
@@ -168,7 +168,7 @@ export class ApiKeysClient {
|
|
|
168
168
|
return {
|
|
169
169
|
data: {
|
|
170
170
|
ok: false,
|
|
171
|
-
error:
|
|
171
|
+
error: FernVenusApi.apiKeys.getTokenMetadata.Error._unknown(_response.error),
|
|
172
172
|
rawResponse: _response.rawResponse,
|
|
173
173
|
},
|
|
174
174
|
rawResponse: _response.rawResponse,
|
|
@@ -176,7 +176,7 @@ export class ApiKeysClient {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
|
-
* @param {
|
|
179
|
+
* @param {FernVenusApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest} request
|
|
180
180
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
181
|
*
|
|
182
182
|
* @example
|
|
@@ -226,7 +226,7 @@ export class ApiKeysClient {
|
|
|
226
226
|
return {
|
|
227
227
|
data: {
|
|
228
228
|
ok: false,
|
|
229
|
-
error:
|
|
229
|
+
error: FernVenusApi.apiKeys.getTokensForOrganization.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
230
230
|
unrecognizedObjectKeys: "passthrough",
|
|
231
231
|
allowUnrecognizedUnionMembers: true,
|
|
232
232
|
allowUnrecognizedEnumValues: true,
|
|
@@ -242,7 +242,7 @@ export class ApiKeysClient {
|
|
|
242
242
|
return {
|
|
243
243
|
data: {
|
|
244
244
|
ok: false,
|
|
245
|
-
error:
|
|
245
|
+
error: FernVenusApi.apiKeys.getTokensForOrganization.Error._unknown(_response.error),
|
|
246
246
|
rawResponse: _response.rawResponse,
|
|
247
247
|
},
|
|
248
248
|
rawResponse: _response.rawResponse,
|
|
@@ -250,7 +250,7 @@ export class ApiKeysClient {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
|
-
* @param {
|
|
253
|
+
* @param {FernVenusApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest} request
|
|
254
254
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
@@ -294,7 +294,7 @@ export class ApiKeysClient {
|
|
|
294
294
|
return {
|
|
295
295
|
data: {
|
|
296
296
|
ok: false,
|
|
297
|
-
error:
|
|
297
|
+
error: FernVenusApi.apiKeys.revokeTokenById.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
298
298
|
unrecognizedObjectKeys: "passthrough",
|
|
299
299
|
allowUnrecognizedUnionMembers: true,
|
|
300
300
|
allowUnrecognizedEnumValues: true,
|
|
@@ -310,7 +310,7 @@ export class ApiKeysClient {
|
|
|
310
310
|
return {
|
|
311
311
|
data: {
|
|
312
312
|
ok: false,
|
|
313
|
-
error:
|
|
313
|
+
error: FernVenusApi.apiKeys.revokeTokenById.Error._unknown(_response.error),
|
|
314
314
|
rawResponse: _response.rawResponse,
|
|
315
315
|
},
|
|
316
316
|
rawResponse: _response.rawResponse,
|
|
@@ -318,7 +318,7 @@ export class ApiKeysClient {
|
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
|
-
* @param {
|
|
321
|
+
* @param {FernVenusApi.RevokeApiKeyRequest} request
|
|
322
322
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
323
323
|
*
|
|
324
324
|
* @example
|
|
@@ -367,7 +367,7 @@ export class ApiKeysClient {
|
|
|
367
367
|
return {
|
|
368
368
|
data: {
|
|
369
369
|
ok: false,
|
|
370
|
-
error:
|
|
370
|
+
error: FernVenusApi.apiKeys.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
371
371
|
unrecognizedObjectKeys: "passthrough",
|
|
372
372
|
allowUnrecognizedUnionMembers: true,
|
|
373
373
|
allowUnrecognizedEnumValues: true,
|
|
@@ -383,7 +383,7 @@ export class ApiKeysClient {
|
|
|
383
383
|
return {
|
|
384
384
|
data: {
|
|
385
385
|
ok: false,
|
|
386
|
-
error:
|
|
386
|
+
error: FernVenusApi.apiKeys.revokeToken.Error._unknown(_response.error),
|
|
387
387
|
rawResponse: _response.rawResponse,
|
|
388
388
|
},
|
|
389
389
|
rawResponse: _response.rawResponse,
|
|
@@ -1,25 +1,25 @@
|
|
|
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.apiKeys.create.Error.UnprocessableEntityError | FernVenusApi.apiKeys.create.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.create.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.apiKeys.create.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.create.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.create.Error, visitor: FernVenusApi.apiKeys.create.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -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
|
unprocessableEntityError: (value) => {
|
|
5
5
|
return {
|
|
6
6
|
content: value,
|
|
7
7
|
statusCode: 422,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.apiKeys.create.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -15,7 +15,7 @@ export const Error = {
|
|
|
15
15
|
statusCode: undefined,
|
|
16
16
|
content: fetcherError,
|
|
17
17
|
_visit: function (visitor) {
|
|
18
|
-
return
|
|
18
|
+
return FernVenusApi.apiKeys.create.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,25 +1,25 @@
|
|
|
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.apiKeys.getTokenMetadata.Error.UnprocessableEntityError | FernVenusApi.apiKeys.getTokenMetadata.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.getTokenMetadata.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.apiKeys.getTokenMetadata.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.getTokenMetadata.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.getTokenMetadata.Error, visitor: FernVenusApi.apiKeys.getTokenMetadata.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -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
|
unprocessableEntityError: (value) => {
|
|
5
5
|
return {
|
|
6
6
|
content: value,
|
|
7
7
|
statusCode: 422,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.apiKeys.getTokenMetadata.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -15,7 +15,7 @@ export const Error = {
|
|
|
15
15
|
statusCode: undefined,
|
|
16
16
|
content: fetcherError,
|
|
17
17
|
_visit: function (visitor) {
|
|
18
|
-
return
|
|
18
|
+
return FernVenusApi.apiKeys.getTokenMetadata.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,25 +1,25 @@
|
|
|
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.apiKeys.getTokensForOrganization.Error.UnprocessableEntityError | FernVenusApi.apiKeys.getTokensForOrganization.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.getTokensForOrganization.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.apiKeys.getTokensForOrganization.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.getTokensForOrganization.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.getTokensForOrganization.Error, visitor: FernVenusApi.apiKeys.getTokensForOrganization.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -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
|
unprocessableEntityError: (value) => {
|
|
5
5
|
return {
|
|
6
6
|
content: value,
|
|
7
7
|
statusCode: 422,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -15,7 +15,7 @@ export const Error = {
|
|
|
15
15
|
statusCode: undefined,
|
|
16
16
|
content: fetcherError,
|
|
17
17
|
_visit: function (visitor) {
|
|
18
|
-
return
|
|
18
|
+
return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,25 +1,25 @@
|
|
|
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.apiKeys.revokeToken.Error.UnprocessableEntityError | FernVenusApi.apiKeys.revokeToken.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.revokeToken.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.apiKeys.revokeToken.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.revokeToken.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.revokeToken.Error, visitor: FernVenusApi.apiKeys.revokeToken.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -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
|
unprocessableEntityError: (value) => {
|
|
5
5
|
return {
|
|
6
6
|
content: value,
|
|
7
7
|
statusCode: 422,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -15,7 +15,7 @@ export const Error = {
|
|
|
15
15
|
statusCode: undefined,
|
|
16
16
|
content: fetcherError,
|
|
17
17
|
_visit: function (visitor) {
|
|
18
|
-
return
|
|
18
|
+
return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,25 +1,25 @@
|
|
|
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.apiKeys.revokeTokenById.Error.UnprocessableEntityError | FernVenusApi.apiKeys.revokeTokenById.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.apiKeys.revokeTokenById.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.apiKeys.revokeTokenById.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.revokeTokenById.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.apiKeys.revokeTokenById.Error, visitor: FernVenusApi.apiKeys.revokeTokenById.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -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
|
unprocessableEntityError: (value) => {
|
|
5
5
|
return {
|
|
6
6
|
content: value,
|
|
7
7
|
statusCode: 422,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -15,7 +15,7 @@ export const Error = {
|
|
|
15
15
|
statusCode: undefined,
|
|
16
16
|
content: fetcherError,
|
|
17
17
|
_visit: function (visitor) {
|
|
18
|
-
return
|
|
18
|
+
return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
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 AuthClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -15,7 +15,7 @@ export declare class AuthClient {
|
|
|
15
15
|
* This endpoint is unauthenticated and used by Fiddle to look up the
|
|
16
16
|
* centralized protected GitHub orgs mapping.
|
|
17
17
|
*
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {FernVenusApi.GetOrgForGithubOwnerAuthGithubOwnerGithubOwnerOrgGetRequest} request
|
|
19
19
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
@@ -23,7 +23,7 @@ export declare class AuthClient {
|
|
|
23
23
|
* githubOwner: "github_owner"
|
|
24
24
|
* })
|
|
25
25
|
*/
|
|
26
|
-
getOrgForGithubOwner(request:
|
|
26
|
+
getOrgForGithubOwner(request: FernVenusApi.GetOrgForGithubOwnerAuthGithubOwnerGithubOwnerOrgGetRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string | null, FernVenusApi.auth.getOrgForGithubOwner.Error>>;
|
|
27
27
|
private __getOrgForGithubOwner;
|
|
28
28
|
/**
|
|
29
29
|
* Exchange an autopilot token for a short-lived JWT scoped to an organization.
|
|
@@ -32,7 +32,7 @@ export declare class AuthClient {
|
|
|
32
32
|
* the organization ID must match the allowed org for that GitHub owner.
|
|
33
33
|
* The returned token is identical to tokens from getJwt and can be used the same way.
|
|
34
34
|
*
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {FernVenusApi.GetAutopilotTokenRequest} request
|
|
36
36
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
@@ -40,14 +40,14 @@ export declare class AuthClient {
|
|
|
40
40
|
* organizationId: "organizationId"
|
|
41
41
|
* })
|
|
42
42
|
*/
|
|
43
|
-
getAutopilotToken(request:
|
|
43
|
+
getAutopilotToken(request: FernVenusApi.GetAutopilotTokenRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.JwtResponse, FernVenusApi.auth.getAutopilotToken.Error>>;
|
|
44
44
|
private __getAutopilotToken;
|
|
45
45
|
/**
|
|
46
46
|
* Exchange a user token for a short-lived JWT scoped to an organization.
|
|
47
47
|
* The user must be a member of the specified organization.
|
|
48
48
|
* The JWT can be used to authenticate requests to other services.
|
|
49
49
|
*
|
|
50
|
-
* @param {
|
|
50
|
+
* @param {FernVenusApi.GetJwtRequest} request
|
|
51
51
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
@@ -55,6 +55,6 @@ export declare class AuthClient {
|
|
|
55
55
|
* organizationId: "organizationId"
|
|
56
56
|
* })
|
|
57
57
|
*/
|
|
58
|
-
getJwt(request:
|
|
58
|
+
getJwt(request: FernVenusApi.GetJwtRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.JwtResponse, FernVenusApi.auth.getJwt.Error>>;
|
|
59
59
|
private __getJwt;
|
|
60
60
|
}
|
|
@@ -12,7 +12,7 @@ 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 AuthClient {
|
|
17
17
|
constructor(options) {
|
|
18
18
|
this._options = normalizeClientOptions(options);
|
|
@@ -22,7 +22,7 @@ export class AuthClient {
|
|
|
22
22
|
* This endpoint is unauthenticated and used by Fiddle to look up the
|
|
23
23
|
* centralized protected GitHub orgs mapping.
|
|
24
24
|
*
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {FernVenusApi.GetOrgForGithubOwnerAuthGithubOwnerGithubOwnerOrgGetRequest} request
|
|
26
26
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
@@ -72,7 +72,7 @@ export class AuthClient {
|
|
|
72
72
|
return {
|
|
73
73
|
data: {
|
|
74
74
|
ok: false,
|
|
75
|
-
error:
|
|
75
|
+
error: FernVenusApi.auth.getOrgForGithubOwner.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
76
76
|
unrecognizedObjectKeys: "passthrough",
|
|
77
77
|
allowUnrecognizedUnionMembers: true,
|
|
78
78
|
allowUnrecognizedEnumValues: true,
|
|
@@ -88,7 +88,7 @@ export class AuthClient {
|
|
|
88
88
|
return {
|
|
89
89
|
data: {
|
|
90
90
|
ok: false,
|
|
91
|
-
error:
|
|
91
|
+
error: FernVenusApi.auth.getOrgForGithubOwner.Error._unknown(_response.error),
|
|
92
92
|
rawResponse: _response.rawResponse,
|
|
93
93
|
},
|
|
94
94
|
rawResponse: _response.rawResponse,
|
|
@@ -102,7 +102,7 @@ export class AuthClient {
|
|
|
102
102
|
* the organization ID must match the allowed org for that GitHub owner.
|
|
103
103
|
* The returned token is identical to tokens from getJwt and can be used the same way.
|
|
104
104
|
*
|
|
105
|
-
* @param {
|
|
105
|
+
* @param {FernVenusApi.GetAutopilotTokenRequest} request
|
|
106
106
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
@@ -157,7 +157,7 @@ export class AuthClient {
|
|
|
157
157
|
return {
|
|
158
158
|
data: {
|
|
159
159
|
ok: false,
|
|
160
|
-
error:
|
|
160
|
+
error: FernVenusApi.auth.getAutopilotToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
161
161
|
unrecognizedObjectKeys: "passthrough",
|
|
162
162
|
allowUnrecognizedUnionMembers: true,
|
|
163
163
|
allowUnrecognizedEnumValues: true,
|
|
@@ -173,7 +173,7 @@ export class AuthClient {
|
|
|
173
173
|
return {
|
|
174
174
|
data: {
|
|
175
175
|
ok: false,
|
|
176
|
-
error:
|
|
176
|
+
error: FernVenusApi.auth.getAutopilotToken.Error._unknown(_response.error),
|
|
177
177
|
rawResponse: _response.rawResponse,
|
|
178
178
|
},
|
|
179
179
|
rawResponse: _response.rawResponse,
|
|
@@ -185,7 +185,7 @@ export class AuthClient {
|
|
|
185
185
|
* The user must be a member of the specified organization.
|
|
186
186
|
* The JWT can be used to authenticate requests to other services.
|
|
187
187
|
*
|
|
188
|
-
* @param {
|
|
188
|
+
* @param {FernVenusApi.GetJwtRequest} request
|
|
189
189
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
190
|
*
|
|
191
191
|
* @example
|
|
@@ -240,7 +240,7 @@ export class AuthClient {
|
|
|
240
240
|
return {
|
|
241
241
|
data: {
|
|
242
242
|
ok: false,
|
|
243
|
-
error:
|
|
243
|
+
error: FernVenusApi.auth.getJwt.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
244
244
|
unrecognizedObjectKeys: "passthrough",
|
|
245
245
|
allowUnrecognizedUnionMembers: true,
|
|
246
246
|
allowUnrecognizedEnumValues: true,
|
|
@@ -256,7 +256,7 @@ export class AuthClient {
|
|
|
256
256
|
return {
|
|
257
257
|
data: {
|
|
258
258
|
ok: false,
|
|
259
|
-
error:
|
|
259
|
+
error: FernVenusApi.auth.getJwt.Error._unknown(_response.error),
|
|
260
260
|
rawResponse: _response.rawResponse,
|
|
261
261
|
},
|
|
262
262
|
rawResponse: _response.rawResponse,
|
|
@@ -1,25 +1,25 @@
|
|
|
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.auth.getAutopilotToken.Error.UnprocessableEntityError | FernVenusApi.auth.getAutopilotToken.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.auth.getAutopilotToken.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.auth.getAutopilotToken.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.auth.getAutopilotToken.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.auth.getAutopilotToken.Error, visitor: FernVenusApi.auth.getAutopilotToken.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|