@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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as FernVenusApi from "../../../index.js";
|
|
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
|
}
|
|
@@ -59,13 +59,13 @@ const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
|
59
59
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
60
60
|
const core = __importStar(require("../../../../core/index.js"));
|
|
61
61
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
62
|
-
const
|
|
62
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
63
63
|
class OrganizationClient {
|
|
64
64
|
constructor(options) {
|
|
65
|
-
this._options = (0, BaseClient_js_1.
|
|
65
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
* @param {
|
|
68
|
+
* @param {FernVenusApi.CreateOrganizationRequest} request
|
|
69
69
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
@@ -120,7 +120,7 @@ class OrganizationClient {
|
|
|
120
120
|
return {
|
|
121
121
|
data: {
|
|
122
122
|
ok: false,
|
|
123
|
-
error:
|
|
123
|
+
error: FernVenusApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
124
124
|
unrecognizedObjectKeys: "passthrough",
|
|
125
125
|
allowUnrecognizedUnionMembers: true,
|
|
126
126
|
allowUnrecognizedEnumValues: true,
|
|
@@ -136,7 +136,7 @@ class OrganizationClient {
|
|
|
136
136
|
return {
|
|
137
137
|
data: {
|
|
138
138
|
ok: false,
|
|
139
|
-
error:
|
|
139
|
+
error: FernVenusApi.organization.create.Error._unknown(_response.error),
|
|
140
140
|
rawResponse: _response.rawResponse,
|
|
141
141
|
},
|
|
142
142
|
rawResponse: _response.rawResponse,
|
|
@@ -144,7 +144,7 @@ class OrganizationClient {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
-
* @param {
|
|
147
|
+
* @param {FernVenusApi.UpdateOrganizationRequest} request
|
|
148
148
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
149
|
*
|
|
150
150
|
* @example
|
|
@@ -194,7 +194,7 @@ class OrganizationClient {
|
|
|
194
194
|
return {
|
|
195
195
|
data: {
|
|
196
196
|
ok: false,
|
|
197
|
-
error:
|
|
197
|
+
error: FernVenusApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
198
198
|
unrecognizedObjectKeys: "passthrough",
|
|
199
199
|
allowUnrecognizedUnionMembers: true,
|
|
200
200
|
allowUnrecognizedEnumValues: true,
|
|
@@ -210,7 +210,7 @@ class OrganizationClient {
|
|
|
210
210
|
return {
|
|
211
211
|
data: {
|
|
212
212
|
ok: false,
|
|
213
|
-
error:
|
|
213
|
+
error: FernVenusApi.organization.update.Error._unknown(_response.error),
|
|
214
214
|
rawResponse: _response.rawResponse,
|
|
215
215
|
},
|
|
216
216
|
rawResponse: _response.rawResponse,
|
|
@@ -218,7 +218,7 @@ class OrganizationClient {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
|
-
* @param {
|
|
221
|
+
* @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
|
|
222
222
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
223
223
|
*
|
|
224
224
|
* @example
|
|
@@ -236,7 +236,8 @@ class OrganizationClient {
|
|
|
236
236
|
const _queryParams = {
|
|
237
237
|
shouldIncludeFernUsers,
|
|
238
238
|
};
|
|
239
|
-
const
|
|
239
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
240
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
240
241
|
const _response = yield core.fetcher({
|
|
241
242
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}`),
|
|
242
243
|
method: "GET",
|
|
@@ -271,7 +272,7 @@ class OrganizationClient {
|
|
|
271
272
|
return {
|
|
272
273
|
data: {
|
|
273
274
|
ok: false,
|
|
274
|
-
error:
|
|
275
|
+
error: FernVenusApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
275
276
|
unrecognizedObjectKeys: "passthrough",
|
|
276
277
|
allowUnrecognizedUnionMembers: true,
|
|
277
278
|
allowUnrecognizedEnumValues: true,
|
|
@@ -287,7 +288,7 @@ class OrganizationClient {
|
|
|
287
288
|
return {
|
|
288
289
|
data: {
|
|
289
290
|
ok: false,
|
|
290
|
-
error:
|
|
291
|
+
error: FernVenusApi.organization.get.Error._unknown(_response.error),
|
|
291
292
|
rawResponse: _response.rawResponse,
|
|
292
293
|
},
|
|
293
294
|
rawResponse: _response.rawResponse,
|
|
@@ -297,7 +298,7 @@ class OrganizationClient {
|
|
|
297
298
|
/**
|
|
298
299
|
* Deletes an organization. Only users with admin role can delete organizations.
|
|
299
300
|
*
|
|
300
|
-
* @param {
|
|
301
|
+
* @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
301
302
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
302
303
|
*
|
|
303
304
|
* @example
|
|
@@ -341,7 +342,7 @@ class OrganizationClient {
|
|
|
341
342
|
return {
|
|
342
343
|
data: {
|
|
343
344
|
ok: false,
|
|
344
|
-
error:
|
|
345
|
+
error: FernVenusApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
345
346
|
unrecognizedObjectKeys: "passthrough",
|
|
346
347
|
allowUnrecognizedUnionMembers: true,
|
|
347
348
|
allowUnrecognizedEnumValues: true,
|
|
@@ -357,7 +358,7 @@ class OrganizationClient {
|
|
|
357
358
|
return {
|
|
358
359
|
data: {
|
|
359
360
|
ok: false,
|
|
360
|
-
error:
|
|
361
|
+
error: FernVenusApi.organization.delete.Error._unknown(_response.error),
|
|
361
362
|
rawResponse: _response.rawResponse,
|
|
362
363
|
},
|
|
363
364
|
rawResponse: _response.rawResponse,
|
|
@@ -367,7 +368,7 @@ class OrganizationClient {
|
|
|
367
368
|
/**
|
|
368
369
|
* Look up an organization by its associated Postman team ID.
|
|
369
370
|
*
|
|
370
|
-
* @param {
|
|
371
|
+
* @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
|
|
371
372
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
372
373
|
*
|
|
373
374
|
* @example
|
|
@@ -382,7 +383,8 @@ class OrganizationClient {
|
|
|
382
383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
384
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
384
385
|
const { postmanTeamId } = request;
|
|
385
|
-
const
|
|
386
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
387
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
386
388
|
const _response = yield core.fetcher({
|
|
387
389
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/postman-team/${core.url.encodePathParam(postmanTeamId)}`),
|
|
388
390
|
method: "GET",
|
|
@@ -417,7 +419,7 @@ class OrganizationClient {
|
|
|
417
419
|
return {
|
|
418
420
|
data: {
|
|
419
421
|
ok: false,
|
|
420
|
-
error:
|
|
422
|
+
error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
421
423
|
unrecognizedObjectKeys: "passthrough",
|
|
422
424
|
allowUnrecognizedUnionMembers: true,
|
|
423
425
|
allowUnrecognizedEnumValues: true,
|
|
@@ -433,7 +435,7 @@ class OrganizationClient {
|
|
|
433
435
|
return {
|
|
434
436
|
data: {
|
|
435
437
|
ok: false,
|
|
436
|
-
error:
|
|
438
|
+
error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
|
|
437
439
|
rawResponse: _response.rawResponse,
|
|
438
440
|
},
|
|
439
441
|
rawResponse: _response.rawResponse,
|
|
@@ -443,7 +445,7 @@ class OrganizationClient {
|
|
|
443
445
|
/**
|
|
444
446
|
* Get the Postman team ID associated with an organization ID.
|
|
445
447
|
*
|
|
446
|
-
* @param {
|
|
448
|
+
* @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
|
|
447
449
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
448
450
|
*
|
|
449
451
|
* @example
|
|
@@ -458,7 +460,8 @@ class OrganizationClient {
|
|
|
458
460
|
return __awaiter(this, void 0, void 0, function* () {
|
|
459
461
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
460
462
|
const { orgId } = request;
|
|
461
|
-
const
|
|
463
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
464
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
462
465
|
const _response = yield core.fetcher({
|
|
463
466
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}/postman-team-id`),
|
|
464
467
|
method: "GET",
|
|
@@ -493,7 +496,7 @@ class OrganizationClient {
|
|
|
493
496
|
return {
|
|
494
497
|
data: {
|
|
495
498
|
ok: false,
|
|
496
|
-
error:
|
|
499
|
+
error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
497
500
|
unrecognizedObjectKeys: "passthrough",
|
|
498
501
|
allowUnrecognizedUnionMembers: true,
|
|
499
502
|
allowUnrecognizedEnumValues: true,
|
|
@@ -509,7 +512,7 @@ class OrganizationClient {
|
|
|
509
512
|
return {
|
|
510
513
|
data: {
|
|
511
514
|
ok: false,
|
|
512
|
-
error:
|
|
515
|
+
error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
|
|
513
516
|
rawResponse: _response.rawResponse,
|
|
514
517
|
},
|
|
515
518
|
rawResponse: _response.rawResponse,
|
|
@@ -517,7 +520,7 @@ class OrganizationClient {
|
|
|
517
520
|
});
|
|
518
521
|
}
|
|
519
522
|
/**
|
|
520
|
-
* @param {
|
|
523
|
+
* @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
|
|
521
524
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
522
525
|
*
|
|
523
526
|
* @example
|
|
@@ -567,7 +570,7 @@ class OrganizationClient {
|
|
|
567
570
|
return {
|
|
568
571
|
data: {
|
|
569
572
|
ok: false,
|
|
570
|
-
error:
|
|
573
|
+
error: FernVenusApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
571
574
|
unrecognizedObjectKeys: "passthrough",
|
|
572
575
|
allowUnrecognizedUnionMembers: true,
|
|
573
576
|
allowUnrecognizedEnumValues: true,
|
|
@@ -583,7 +586,7 @@ class OrganizationClient {
|
|
|
583
586
|
return {
|
|
584
587
|
data: {
|
|
585
588
|
ok: false,
|
|
586
|
-
error:
|
|
589
|
+
error: FernVenusApi.organization.isMember.Error._unknown(_response.error),
|
|
587
590
|
rawResponse: _response.rawResponse,
|
|
588
591
|
},
|
|
589
592
|
rawResponse: _response.rawResponse,
|
|
@@ -593,7 +596,7 @@ class OrganizationClient {
|
|
|
593
596
|
/**
|
|
594
597
|
* Returns the org for a scoped token. The token is limited to one organization.
|
|
595
598
|
*
|
|
596
|
-
* @param {
|
|
599
|
+
* @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
|
|
597
600
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
598
601
|
*
|
|
599
602
|
* @example
|
|
@@ -644,7 +647,7 @@ class OrganizationClient {
|
|
|
644
647
|
return {
|
|
645
648
|
data: {
|
|
646
649
|
ok: false,
|
|
647
|
-
error:
|
|
650
|
+
error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
648
651
|
unrecognizedObjectKeys: "passthrough",
|
|
649
652
|
allowUnrecognizedUnionMembers: true,
|
|
650
653
|
allowUnrecognizedEnumValues: true,
|
|
@@ -660,7 +663,7 @@ class OrganizationClient {
|
|
|
660
663
|
return {
|
|
661
664
|
data: {
|
|
662
665
|
ok: false,
|
|
663
|
-
error:
|
|
666
|
+
error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
|
|
664
667
|
rawResponse: _response.rawResponse,
|
|
665
668
|
},
|
|
666
669
|
rawResponse: _response.rawResponse,
|
|
@@ -711,7 +714,7 @@ class OrganizationClient {
|
|
|
711
714
|
return {
|
|
712
715
|
data: {
|
|
713
716
|
ok: false,
|
|
714
|
-
error:
|
|
717
|
+
error: FernVenusApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
|
|
715
718
|
rawResponse: _response.rawResponse,
|
|
716
719
|
},
|
|
717
720
|
rawResponse: _response.rawResponse,
|
|
@@ -719,7 +722,7 @@ class OrganizationClient {
|
|
|
719
722
|
});
|
|
720
723
|
}
|
|
721
724
|
/**
|
|
722
|
-
* @param {
|
|
725
|
+
* @param {FernVenusApi.AddUserToOrgRequest} request
|
|
723
726
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
724
727
|
*
|
|
725
728
|
* @example
|
|
@@ -769,7 +772,7 @@ class OrganizationClient {
|
|
|
769
772
|
return {
|
|
770
773
|
data: {
|
|
771
774
|
ok: false,
|
|
772
|
-
error:
|
|
775
|
+
error: FernVenusApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
773
776
|
unrecognizedObjectKeys: "passthrough",
|
|
774
777
|
allowUnrecognizedUnionMembers: true,
|
|
775
778
|
allowUnrecognizedEnumValues: true,
|
|
@@ -785,7 +788,7 @@ class OrganizationClient {
|
|
|
785
788
|
return {
|
|
786
789
|
data: {
|
|
787
790
|
ok: false,
|
|
788
|
-
error:
|
|
791
|
+
error: FernVenusApi.organization.addUser.Error._unknown(_response.error),
|
|
789
792
|
rawResponse: _response.rawResponse,
|
|
790
793
|
},
|
|
791
794
|
rawResponse: _response.rawResponse,
|
|
@@ -793,7 +796,7 @@ class OrganizationClient {
|
|
|
793
796
|
});
|
|
794
797
|
}
|
|
795
798
|
/**
|
|
796
|
-
* @param {
|
|
799
|
+
* @param {FernVenusApi.InviteUserToOrgRequest} request
|
|
797
800
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
798
801
|
*
|
|
799
802
|
* @example
|
|
@@ -843,7 +846,7 @@ class OrganizationClient {
|
|
|
843
846
|
return {
|
|
844
847
|
data: {
|
|
845
848
|
ok: false,
|
|
846
|
-
error:
|
|
849
|
+
error: FernVenusApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
847
850
|
unrecognizedObjectKeys: "passthrough",
|
|
848
851
|
allowUnrecognizedUnionMembers: true,
|
|
849
852
|
allowUnrecognizedEnumValues: true,
|
|
@@ -859,7 +862,7 @@ class OrganizationClient {
|
|
|
859
862
|
return {
|
|
860
863
|
data: {
|
|
861
864
|
ok: false,
|
|
862
|
-
error:
|
|
865
|
+
error: FernVenusApi.organization.inviteUser.Error._unknown(_response.error),
|
|
863
866
|
rawResponse: _response.rawResponse,
|
|
864
867
|
},
|
|
865
868
|
rawResponse: _response.rawResponse,
|
|
@@ -867,7 +870,7 @@ class OrganizationClient {
|
|
|
867
870
|
});
|
|
868
871
|
}
|
|
869
872
|
/**
|
|
870
|
-
* @param {
|
|
873
|
+
* @param {FernVenusApi.RemoveUserFromOrgRequest} request
|
|
871
874
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
872
875
|
*
|
|
873
876
|
* @example
|
|
@@ -917,7 +920,7 @@ class OrganizationClient {
|
|
|
917
920
|
return {
|
|
918
921
|
data: {
|
|
919
922
|
ok: false,
|
|
920
|
-
error:
|
|
923
|
+
error: FernVenusApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
921
924
|
unrecognizedObjectKeys: "passthrough",
|
|
922
925
|
allowUnrecognizedUnionMembers: true,
|
|
923
926
|
allowUnrecognizedEnumValues: true,
|
|
@@ -933,7 +936,7 @@ class OrganizationClient {
|
|
|
933
936
|
return {
|
|
934
937
|
data: {
|
|
935
938
|
ok: false,
|
|
936
|
-
error:
|
|
939
|
+
error: FernVenusApi.organization.removeUser.Error._unknown(_response.error),
|
|
937
940
|
rawResponse: _response.rawResponse,
|
|
938
941
|
},
|
|
939
942
|
rawResponse: _response.rawResponse,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type * as core from "../../../../core/index.js";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../../../index.js";
|
|
3
|
+
export type Error = FernVenusApi.organization.addUser.Error.UnprocessableEntityError | FernVenusApi.organization.addUser.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.organization.addUser.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.organization.addUser.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.addUser.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.addUser.Error, visitor: FernVenusApi.organization.addUser.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -35,14 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Error = void 0;
|
|
38
|
-
const
|
|
38
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
39
39
|
exports.Error = {
|
|
40
40
|
unprocessableEntityError: (value) => {
|
|
41
41
|
return {
|
|
42
42
|
content: value,
|
|
43
43
|
statusCode: 422,
|
|
44
44
|
_visit: function (visitor) {
|
|
45
|
-
return
|
|
45
|
+
return FernVenusApi.organization.addUser.Error._visit(this, visitor);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
},
|
|
@@ -51,7 +51,7 @@ exports.Error = {
|
|
|
51
51
|
statusCode: undefined,
|
|
52
52
|
content: fetcherError,
|
|
53
53
|
_visit: function (visitor) {
|
|
54
|
-
return
|
|
54
|
+
return FernVenusApi.organization.addUser.Error._visit(this, visitor);
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
},
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type * as core from "../../../../core/index.js";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../../../index.js";
|
|
3
|
+
export type Error = FernVenusApi.organization.create.Error.UnprocessableEntityError | FernVenusApi.organization.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.organization.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.organization.create.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.create.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.create.Error, visitor: FernVenusApi.organization.create.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -35,14 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Error = void 0;
|
|
38
|
-
const
|
|
38
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
39
39
|
exports.Error = {
|
|
40
40
|
unprocessableEntityError: (value) => {
|
|
41
41
|
return {
|
|
42
42
|
content: value,
|
|
43
43
|
statusCode: 422,
|
|
44
44
|
_visit: function (visitor) {
|
|
45
|
-
return
|
|
45
|
+
return FernVenusApi.organization.create.Error._visit(this, visitor);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
},
|
|
@@ -51,7 +51,7 @@ exports.Error = {
|
|
|
51
51
|
statusCode: undefined,
|
|
52
52
|
content: fetcherError,
|
|
53
53
|
_visit: function (visitor) {
|
|
54
|
-
return
|
|
54
|
+
return FernVenusApi.organization.create.Error._visit(this, visitor);
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
},
|