@fern-api/venus-api-sdk 3.0.0 → 5.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 +13 -11
- 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 +27 -22
- 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 +17 -14
- 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 +60 -48
- 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 +17 -14
- 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 +15 -12
- 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 +12 -10
- 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 +28 -23
- 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 +18 -15
- 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 +61 -49
- 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 +18 -15
- 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 +16 -13
- 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
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } 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 {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class AuthClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AuthClient.Options>;
|
|
12
12
|
constructor(options: AuthClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Look up the Fern organization ID for a GitHub owner.
|
|
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
|
}
|
|
@@ -8,21 +8,21 @@ 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 { normalizeClientOptionsWithAuth } 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
|
-
this._options =
|
|
18
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Look up the Fern organization ID for a GitHub owner.
|
|
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
|
|
@@ -37,7 +37,8 @@ export class AuthClient {
|
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
39
39
|
const { githubOwner } = request;
|
|
40
|
-
const
|
|
40
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
41
|
+
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);
|
|
41
42
|
const _response = yield core.fetcher({
|
|
42
43
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `auth/github-owner/${core.url.encodePathParam(githubOwner)}/org`),
|
|
43
44
|
method: "GET",
|
|
@@ -72,7 +73,7 @@ export class AuthClient {
|
|
|
72
73
|
return {
|
|
73
74
|
data: {
|
|
74
75
|
ok: false,
|
|
75
|
-
error:
|
|
76
|
+
error: FernVenusApi.auth.getOrgForGithubOwner.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
76
77
|
unrecognizedObjectKeys: "passthrough",
|
|
77
78
|
allowUnrecognizedUnionMembers: true,
|
|
78
79
|
allowUnrecognizedEnumValues: true,
|
|
@@ -88,7 +89,7 @@ export class AuthClient {
|
|
|
88
89
|
return {
|
|
89
90
|
data: {
|
|
90
91
|
ok: false,
|
|
91
|
-
error:
|
|
92
|
+
error: FernVenusApi.auth.getOrgForGithubOwner.Error._unknown(_response.error),
|
|
92
93
|
rawResponse: _response.rawResponse,
|
|
93
94
|
},
|
|
94
95
|
rawResponse: _response.rawResponse,
|
|
@@ -102,7 +103,7 @@ export class AuthClient {
|
|
|
102
103
|
* the organization ID must match the allowed org for that GitHub owner.
|
|
103
104
|
* The returned token is identical to tokens from getJwt and can be used the same way.
|
|
104
105
|
*
|
|
105
|
-
* @param {
|
|
106
|
+
* @param {FernVenusApi.GetAutopilotTokenRequest} request
|
|
106
107
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
108
|
*
|
|
108
109
|
* @example
|
|
@@ -116,7 +117,8 @@ export class AuthClient {
|
|
|
116
117
|
__getAutopilotToken(request, requestOptions) {
|
|
117
118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
119
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
119
|
-
const
|
|
120
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
121
|
+
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);
|
|
120
122
|
const _response = yield core.fetcher({
|
|
121
123
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "auth/autopilot-token"),
|
|
122
124
|
method: "POST",
|
|
@@ -157,7 +159,7 @@ export class AuthClient {
|
|
|
157
159
|
return {
|
|
158
160
|
data: {
|
|
159
161
|
ok: false,
|
|
160
|
-
error:
|
|
162
|
+
error: FernVenusApi.auth.getAutopilotToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
161
163
|
unrecognizedObjectKeys: "passthrough",
|
|
162
164
|
allowUnrecognizedUnionMembers: true,
|
|
163
165
|
allowUnrecognizedEnumValues: true,
|
|
@@ -173,7 +175,7 @@ export class AuthClient {
|
|
|
173
175
|
return {
|
|
174
176
|
data: {
|
|
175
177
|
ok: false,
|
|
176
|
-
error:
|
|
178
|
+
error: FernVenusApi.auth.getAutopilotToken.Error._unknown(_response.error),
|
|
177
179
|
rawResponse: _response.rawResponse,
|
|
178
180
|
},
|
|
179
181
|
rawResponse: _response.rawResponse,
|
|
@@ -185,7 +187,7 @@ export class AuthClient {
|
|
|
185
187
|
* The user must be a member of the specified organization.
|
|
186
188
|
* The JWT can be used to authenticate requests to other services.
|
|
187
189
|
*
|
|
188
|
-
* @param {
|
|
190
|
+
* @param {FernVenusApi.GetJwtRequest} request
|
|
189
191
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
192
|
*
|
|
191
193
|
* @example
|
|
@@ -199,7 +201,8 @@ export class AuthClient {
|
|
|
199
201
|
__getJwt(request, requestOptions) {
|
|
200
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
203
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
202
|
-
const
|
|
204
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
205
|
+
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);
|
|
203
206
|
const _response = yield core.fetcher({
|
|
204
207
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "auth/jwt"),
|
|
205
208
|
method: "POST",
|
|
@@ -240,7 +243,7 @@ export class AuthClient {
|
|
|
240
243
|
return {
|
|
241
244
|
data: {
|
|
242
245
|
ok: false,
|
|
243
|
-
error:
|
|
246
|
+
error: FernVenusApi.auth.getJwt.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
244
247
|
unrecognizedObjectKeys: "passthrough",
|
|
245
248
|
allowUnrecognizedUnionMembers: true,
|
|
246
249
|
allowUnrecognizedEnumValues: true,
|
|
@@ -256,7 +259,7 @@ export class AuthClient {
|
|
|
256
259
|
return {
|
|
257
260
|
data: {
|
|
258
261
|
ok: false,
|
|
259
|
-
error:
|
|
262
|
+
error: FernVenusApi.auth.getJwt.Error._unknown(_response.error),
|
|
260
263
|
rawResponse: _response.rawResponse,
|
|
261
264
|
},
|
|
262
265
|
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
|
};
|
|
@@ -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.auth.getAutopilotToken.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.auth.getAutopilotToken.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.auth.getJwt.Error.UnprocessableEntityError | FernVenusApi.auth.getJwt.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.getJwt.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.getJwt.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.auth.getJwt.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.auth.getJwt.Error, visitor: FernVenusApi.auth.getJwt.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.auth.getJwt.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.auth.getJwt.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.auth.getOrgForGithubOwner.Error.UnprocessableEntityError | FernVenusApi.auth.getOrgForGithubOwner.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.getOrgForGithubOwner.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.getOrgForGithubOwner.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.auth.getOrgForGithubOwner.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.auth.getOrgForGithubOwner.Error, visitor: FernVenusApi.auth.getOrgForGithubOwner.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.auth.getOrgForGithubOwner.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.auth.getOrgForGithubOwner.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } 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 OrganizationClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class OrganizationClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationClient.Options>;
|
|
12
12
|
constructor(options: OrganizationClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {FernVenusApi.CreateOrganizationRequest} request
|
|
15
15
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
@@ -19,10 +19,10 @@ export declare class OrganizationClient {
|
|
|
19
19
|
* organizationId: "organizationId"
|
|
20
20
|
* })
|
|
21
21
|
*/
|
|
22
|
-
create(request:
|
|
22
|
+
create(request: FernVenusApi.CreateOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.CreateOrganizationResponse, FernVenusApi.organization.create.Error>>;
|
|
23
23
|
private __create;
|
|
24
24
|
/**
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {FernVenusApi.UpdateOrganizationRequest} request
|
|
26
26
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
@@ -30,10 +30,10 @@ export declare class OrganizationClient {
|
|
|
30
30
|
* orgId: "org_id"
|
|
31
31
|
* })
|
|
32
32
|
*/
|
|
33
|
-
update(request:
|
|
33
|
+
update(request: FernVenusApi.UpdateOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.update.Error>>;
|
|
34
34
|
private __update;
|
|
35
35
|
/**
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
|
|
37
37
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
@@ -41,12 +41,12 @@ export declare class OrganizationClient {
|
|
|
41
41
|
* orgId: "org_id"
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
|
-
get(request:
|
|
44
|
+
get(request: FernVenusApi.GetOrganizationsOrgIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.get.Error>>;
|
|
45
45
|
private __get;
|
|
46
46
|
/**
|
|
47
47
|
* Deletes an organization. Only users with admin role can delete organizations.
|
|
48
48
|
*
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
50
50
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
@@ -54,12 +54,12 @@ export declare class OrganizationClient {
|
|
|
54
54
|
* orgId: "org_id"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
delete(request:
|
|
57
|
+
delete(request: FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.delete.Error>>;
|
|
58
58
|
private __delete;
|
|
59
59
|
/**
|
|
60
60
|
* Look up an organization by its associated Postman team ID.
|
|
61
61
|
*
|
|
62
|
-
* @param {
|
|
62
|
+
* @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
|
|
63
63
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
@@ -67,12 +67,12 @@ export declare class OrganizationClient {
|
|
|
67
67
|
* postmanTeamId: "postman_team_id"
|
|
68
68
|
* })
|
|
69
69
|
*/
|
|
70
|
-
getOrgIdsByPostmanTeamId(request:
|
|
70
|
+
getOrgIdsByPostmanTeamId(request: FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error>>;
|
|
71
71
|
private __getOrgIdsByPostmanTeamId;
|
|
72
72
|
/**
|
|
73
73
|
* Get the Postman team ID associated with an organization ID.
|
|
74
74
|
*
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
|
|
76
76
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
@@ -80,10 +80,10 @@ export declare class OrganizationClient {
|
|
|
80
80
|
* orgId: "org_id"
|
|
81
81
|
* })
|
|
82
82
|
*/
|
|
83
|
-
getPostmanTeamIdByOrgId(request:
|
|
83
|
+
getPostmanTeamIdByOrgId(request: FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string, FernVenusApi.organization.getPostmanTeamIdByOrgId.Error>>;
|
|
84
84
|
private __getPostmanTeamIdByOrgId;
|
|
85
85
|
/**
|
|
86
|
-
* @param {
|
|
86
|
+
* @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
|
|
87
87
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
88
|
*
|
|
89
89
|
* @example
|
|
@@ -91,18 +91,18 @@ export declare class OrganizationClient {
|
|
|
91
91
|
* organizationId: "organization_id"
|
|
92
92
|
* })
|
|
93
93
|
*/
|
|
94
|
-
isMember(request:
|
|
94
|
+
isMember(request: FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<boolean, FernVenusApi.organization.isMember.Error>>;
|
|
95
95
|
private __isMember;
|
|
96
96
|
/**
|
|
97
97
|
* Returns the org for a scoped token. The token is limited to one organization.
|
|
98
98
|
*
|
|
99
|
-
* @param {
|
|
99
|
+
* @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
|
|
100
100
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* await client.organization.getMyOrganizationFromScopedToken()
|
|
104
104
|
*/
|
|
105
|
-
getMyOrganizationFromScopedToken(request?:
|
|
105
|
+
getMyOrganizationFromScopedToken(request?: FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.getMyOrganizationFromScopedToken.Error>>;
|
|
106
106
|
private __getMyOrganizationFromScopedToken;
|
|
107
107
|
/**
|
|
108
108
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -110,10 +110,10 @@ export declare class OrganizationClient {
|
|
|
110
110
|
* @example
|
|
111
111
|
* await client.organization.getOrgIdsFromToken()
|
|
112
112
|
*/
|
|
113
|
-
getOrgIdsFromToken(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string[],
|
|
113
|
+
getOrgIdsFromToken(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string[], FernVenusApi.organization.getOrgIdsFromToken.Error>>;
|
|
114
114
|
private __getOrgIdsFromToken;
|
|
115
115
|
/**
|
|
116
|
-
* @param {
|
|
116
|
+
* @param {FernVenusApi.AddUserToOrgRequest} request
|
|
117
117
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
@@ -122,10 +122,10 @@ export declare class OrganizationClient {
|
|
|
122
122
|
* orgId: "orgId"
|
|
123
123
|
* })
|
|
124
124
|
*/
|
|
125
|
-
addUser(request:
|
|
125
|
+
addUser(request: FernVenusApi.AddUserToOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.addUser.Error>>;
|
|
126
126
|
private __addUser;
|
|
127
127
|
/**
|
|
128
|
-
* @param {
|
|
128
|
+
* @param {FernVenusApi.InviteUserToOrgRequest} request
|
|
129
129
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
@@ -134,10 +134,10 @@ export declare class OrganizationClient {
|
|
|
134
134
|
* auth0OrgId: "auth0OrgId"
|
|
135
135
|
* })
|
|
136
136
|
*/
|
|
137
|
-
inviteUser(request:
|
|
137
|
+
inviteUser(request: FernVenusApi.InviteUserToOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.inviteUser.Error>>;
|
|
138
138
|
private __inviteUser;
|
|
139
139
|
/**
|
|
140
|
-
* @param {
|
|
140
|
+
* @param {FernVenusApi.RemoveUserFromOrgRequest} request
|
|
141
141
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
142
|
*
|
|
143
143
|
* @example
|
|
@@ -146,6 +146,6 @@ export declare class OrganizationClient {
|
|
|
146
146
|
* auth0OrgId: "auth0OrgId"
|
|
147
147
|
* })
|
|
148
148
|
*/
|
|
149
|
-
removeUser(request:
|
|
149
|
+
removeUser(request: FernVenusApi.RemoveUserFromOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.removeUser.Error>>;
|
|
150
150
|
private __removeUser;
|
|
151
151
|
}
|