@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
|
@@ -19,17 +19,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
import {
|
|
22
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
23
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
24
24
|
import * as core from "../../../../core/index.mjs";
|
|
25
25
|
import * as serializers from "../../../../serialization/index.mjs";
|
|
26
|
-
import * as
|
|
26
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
27
27
|
export class OrganizationClient {
|
|
28
28
|
constructor(options) {
|
|
29
|
-
this._options =
|
|
29
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {FernVenusApi.CreateOrganizationRequest} request
|
|
33
33
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
@@ -84,7 +84,7 @@ export class OrganizationClient {
|
|
|
84
84
|
return {
|
|
85
85
|
data: {
|
|
86
86
|
ok: false,
|
|
87
|
-
error:
|
|
87
|
+
error: FernVenusApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
88
88
|
unrecognizedObjectKeys: "passthrough",
|
|
89
89
|
allowUnrecognizedUnionMembers: true,
|
|
90
90
|
allowUnrecognizedEnumValues: true,
|
|
@@ -100,7 +100,7 @@ export class OrganizationClient {
|
|
|
100
100
|
return {
|
|
101
101
|
data: {
|
|
102
102
|
ok: false,
|
|
103
|
-
error:
|
|
103
|
+
error: FernVenusApi.organization.create.Error._unknown(_response.error),
|
|
104
104
|
rawResponse: _response.rawResponse,
|
|
105
105
|
},
|
|
106
106
|
rawResponse: _response.rawResponse,
|
|
@@ -108,7 +108,7 @@ export class OrganizationClient {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
|
-
* @param {
|
|
111
|
+
* @param {FernVenusApi.UpdateOrganizationRequest} request
|
|
112
112
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
113
|
*
|
|
114
114
|
* @example
|
|
@@ -158,7 +158,7 @@ export class OrganizationClient {
|
|
|
158
158
|
return {
|
|
159
159
|
data: {
|
|
160
160
|
ok: false,
|
|
161
|
-
error:
|
|
161
|
+
error: FernVenusApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
162
162
|
unrecognizedObjectKeys: "passthrough",
|
|
163
163
|
allowUnrecognizedUnionMembers: true,
|
|
164
164
|
allowUnrecognizedEnumValues: true,
|
|
@@ -174,7 +174,7 @@ export class OrganizationClient {
|
|
|
174
174
|
return {
|
|
175
175
|
data: {
|
|
176
176
|
ok: false,
|
|
177
|
-
error:
|
|
177
|
+
error: FernVenusApi.organization.update.Error._unknown(_response.error),
|
|
178
178
|
rawResponse: _response.rawResponse,
|
|
179
179
|
},
|
|
180
180
|
rawResponse: _response.rawResponse,
|
|
@@ -182,7 +182,7 @@ export class OrganizationClient {
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* @param {
|
|
185
|
+
* @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
|
|
186
186
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
187
187
|
*
|
|
188
188
|
* @example
|
|
@@ -200,7 +200,8 @@ export class OrganizationClient {
|
|
|
200
200
|
const _queryParams = {
|
|
201
201
|
shouldIncludeFernUsers,
|
|
202
202
|
};
|
|
203
|
-
const
|
|
203
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
204
|
+
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);
|
|
204
205
|
const _response = yield core.fetcher({
|
|
205
206
|
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)}`),
|
|
206
207
|
method: "GET",
|
|
@@ -235,7 +236,7 @@ export class OrganizationClient {
|
|
|
235
236
|
return {
|
|
236
237
|
data: {
|
|
237
238
|
ok: false,
|
|
238
|
-
error:
|
|
239
|
+
error: FernVenusApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
239
240
|
unrecognizedObjectKeys: "passthrough",
|
|
240
241
|
allowUnrecognizedUnionMembers: true,
|
|
241
242
|
allowUnrecognizedEnumValues: true,
|
|
@@ -251,7 +252,7 @@ export class OrganizationClient {
|
|
|
251
252
|
return {
|
|
252
253
|
data: {
|
|
253
254
|
ok: false,
|
|
254
|
-
error:
|
|
255
|
+
error: FernVenusApi.organization.get.Error._unknown(_response.error),
|
|
255
256
|
rawResponse: _response.rawResponse,
|
|
256
257
|
},
|
|
257
258
|
rawResponse: _response.rawResponse,
|
|
@@ -261,7 +262,7 @@ export class OrganizationClient {
|
|
|
261
262
|
/**
|
|
262
263
|
* Deletes an organization. Only users with admin role can delete organizations.
|
|
263
264
|
*
|
|
264
|
-
* @param {
|
|
265
|
+
* @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
265
266
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
266
267
|
*
|
|
267
268
|
* @example
|
|
@@ -305,7 +306,7 @@ export class OrganizationClient {
|
|
|
305
306
|
return {
|
|
306
307
|
data: {
|
|
307
308
|
ok: false,
|
|
308
|
-
error:
|
|
309
|
+
error: FernVenusApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
309
310
|
unrecognizedObjectKeys: "passthrough",
|
|
310
311
|
allowUnrecognizedUnionMembers: true,
|
|
311
312
|
allowUnrecognizedEnumValues: true,
|
|
@@ -321,7 +322,7 @@ export class OrganizationClient {
|
|
|
321
322
|
return {
|
|
322
323
|
data: {
|
|
323
324
|
ok: false,
|
|
324
|
-
error:
|
|
325
|
+
error: FernVenusApi.organization.delete.Error._unknown(_response.error),
|
|
325
326
|
rawResponse: _response.rawResponse,
|
|
326
327
|
},
|
|
327
328
|
rawResponse: _response.rawResponse,
|
|
@@ -331,7 +332,7 @@ export class OrganizationClient {
|
|
|
331
332
|
/**
|
|
332
333
|
* Look up an organization by its associated Postman team ID.
|
|
333
334
|
*
|
|
334
|
-
* @param {
|
|
335
|
+
* @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
|
|
335
336
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
336
337
|
*
|
|
337
338
|
* @example
|
|
@@ -346,7 +347,8 @@ export class OrganizationClient {
|
|
|
346
347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
348
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
348
349
|
const { postmanTeamId } = request;
|
|
349
|
-
const
|
|
350
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
351
|
+
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);
|
|
350
352
|
const _response = yield core.fetcher({
|
|
351
353
|
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)}`),
|
|
352
354
|
method: "GET",
|
|
@@ -381,7 +383,7 @@ export class OrganizationClient {
|
|
|
381
383
|
return {
|
|
382
384
|
data: {
|
|
383
385
|
ok: false,
|
|
384
|
-
error:
|
|
386
|
+
error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
385
387
|
unrecognizedObjectKeys: "passthrough",
|
|
386
388
|
allowUnrecognizedUnionMembers: true,
|
|
387
389
|
allowUnrecognizedEnumValues: true,
|
|
@@ -397,7 +399,7 @@ export class OrganizationClient {
|
|
|
397
399
|
return {
|
|
398
400
|
data: {
|
|
399
401
|
ok: false,
|
|
400
|
-
error:
|
|
402
|
+
error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
|
|
401
403
|
rawResponse: _response.rawResponse,
|
|
402
404
|
},
|
|
403
405
|
rawResponse: _response.rawResponse,
|
|
@@ -407,7 +409,7 @@ export class OrganizationClient {
|
|
|
407
409
|
/**
|
|
408
410
|
* Get the Postman team ID associated with an organization ID.
|
|
409
411
|
*
|
|
410
|
-
* @param {
|
|
412
|
+
* @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
|
|
411
413
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
412
414
|
*
|
|
413
415
|
* @example
|
|
@@ -422,7 +424,8 @@ export class OrganizationClient {
|
|
|
422
424
|
return __awaiter(this, void 0, void 0, function* () {
|
|
423
425
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
424
426
|
const { orgId } = request;
|
|
425
|
-
const
|
|
427
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
428
|
+
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);
|
|
426
429
|
const _response = yield core.fetcher({
|
|
427
430
|
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`),
|
|
428
431
|
method: "GET",
|
|
@@ -457,7 +460,7 @@ export class OrganizationClient {
|
|
|
457
460
|
return {
|
|
458
461
|
data: {
|
|
459
462
|
ok: false,
|
|
460
|
-
error:
|
|
463
|
+
error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
461
464
|
unrecognizedObjectKeys: "passthrough",
|
|
462
465
|
allowUnrecognizedUnionMembers: true,
|
|
463
466
|
allowUnrecognizedEnumValues: true,
|
|
@@ -473,7 +476,7 @@ export class OrganizationClient {
|
|
|
473
476
|
return {
|
|
474
477
|
data: {
|
|
475
478
|
ok: false,
|
|
476
|
-
error:
|
|
479
|
+
error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
|
|
477
480
|
rawResponse: _response.rawResponse,
|
|
478
481
|
},
|
|
479
482
|
rawResponse: _response.rawResponse,
|
|
@@ -481,7 +484,7 @@ export class OrganizationClient {
|
|
|
481
484
|
});
|
|
482
485
|
}
|
|
483
486
|
/**
|
|
484
|
-
* @param {
|
|
487
|
+
* @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
|
|
485
488
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
486
489
|
*
|
|
487
490
|
* @example
|
|
@@ -531,7 +534,7 @@ export class OrganizationClient {
|
|
|
531
534
|
return {
|
|
532
535
|
data: {
|
|
533
536
|
ok: false,
|
|
534
|
-
error:
|
|
537
|
+
error: FernVenusApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
535
538
|
unrecognizedObjectKeys: "passthrough",
|
|
536
539
|
allowUnrecognizedUnionMembers: true,
|
|
537
540
|
allowUnrecognizedEnumValues: true,
|
|
@@ -547,7 +550,7 @@ export class OrganizationClient {
|
|
|
547
550
|
return {
|
|
548
551
|
data: {
|
|
549
552
|
ok: false,
|
|
550
|
-
error:
|
|
553
|
+
error: FernVenusApi.organization.isMember.Error._unknown(_response.error),
|
|
551
554
|
rawResponse: _response.rawResponse,
|
|
552
555
|
},
|
|
553
556
|
rawResponse: _response.rawResponse,
|
|
@@ -557,7 +560,7 @@ export class OrganizationClient {
|
|
|
557
560
|
/**
|
|
558
561
|
* Returns the org for a scoped token. The token is limited to one organization.
|
|
559
562
|
*
|
|
560
|
-
* @param {
|
|
563
|
+
* @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
|
|
561
564
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
562
565
|
*
|
|
563
566
|
* @example
|
|
@@ -608,7 +611,7 @@ export class OrganizationClient {
|
|
|
608
611
|
return {
|
|
609
612
|
data: {
|
|
610
613
|
ok: false,
|
|
611
|
-
error:
|
|
614
|
+
error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
612
615
|
unrecognizedObjectKeys: "passthrough",
|
|
613
616
|
allowUnrecognizedUnionMembers: true,
|
|
614
617
|
allowUnrecognizedEnumValues: true,
|
|
@@ -624,7 +627,7 @@ export class OrganizationClient {
|
|
|
624
627
|
return {
|
|
625
628
|
data: {
|
|
626
629
|
ok: false,
|
|
627
|
-
error:
|
|
630
|
+
error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
|
|
628
631
|
rawResponse: _response.rawResponse,
|
|
629
632
|
},
|
|
630
633
|
rawResponse: _response.rawResponse,
|
|
@@ -675,7 +678,7 @@ export class OrganizationClient {
|
|
|
675
678
|
return {
|
|
676
679
|
data: {
|
|
677
680
|
ok: false,
|
|
678
|
-
error:
|
|
681
|
+
error: FernVenusApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
|
|
679
682
|
rawResponse: _response.rawResponse,
|
|
680
683
|
},
|
|
681
684
|
rawResponse: _response.rawResponse,
|
|
@@ -683,7 +686,7 @@ export class OrganizationClient {
|
|
|
683
686
|
});
|
|
684
687
|
}
|
|
685
688
|
/**
|
|
686
|
-
* @param {
|
|
689
|
+
* @param {FernVenusApi.AddUserToOrgRequest} request
|
|
687
690
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
688
691
|
*
|
|
689
692
|
* @example
|
|
@@ -733,7 +736,7 @@ export class OrganizationClient {
|
|
|
733
736
|
return {
|
|
734
737
|
data: {
|
|
735
738
|
ok: false,
|
|
736
|
-
error:
|
|
739
|
+
error: FernVenusApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
737
740
|
unrecognizedObjectKeys: "passthrough",
|
|
738
741
|
allowUnrecognizedUnionMembers: true,
|
|
739
742
|
allowUnrecognizedEnumValues: true,
|
|
@@ -749,7 +752,7 @@ export class OrganizationClient {
|
|
|
749
752
|
return {
|
|
750
753
|
data: {
|
|
751
754
|
ok: false,
|
|
752
|
-
error:
|
|
755
|
+
error: FernVenusApi.organization.addUser.Error._unknown(_response.error),
|
|
753
756
|
rawResponse: _response.rawResponse,
|
|
754
757
|
},
|
|
755
758
|
rawResponse: _response.rawResponse,
|
|
@@ -757,7 +760,7 @@ export class OrganizationClient {
|
|
|
757
760
|
});
|
|
758
761
|
}
|
|
759
762
|
/**
|
|
760
|
-
* @param {
|
|
763
|
+
* @param {FernVenusApi.InviteUserToOrgRequest} request
|
|
761
764
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
762
765
|
*
|
|
763
766
|
* @example
|
|
@@ -807,7 +810,7 @@ export class OrganizationClient {
|
|
|
807
810
|
return {
|
|
808
811
|
data: {
|
|
809
812
|
ok: false,
|
|
810
|
-
error:
|
|
813
|
+
error: FernVenusApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
811
814
|
unrecognizedObjectKeys: "passthrough",
|
|
812
815
|
allowUnrecognizedUnionMembers: true,
|
|
813
816
|
allowUnrecognizedEnumValues: true,
|
|
@@ -823,7 +826,7 @@ export class OrganizationClient {
|
|
|
823
826
|
return {
|
|
824
827
|
data: {
|
|
825
828
|
ok: false,
|
|
826
|
-
error:
|
|
829
|
+
error: FernVenusApi.organization.inviteUser.Error._unknown(_response.error),
|
|
827
830
|
rawResponse: _response.rawResponse,
|
|
828
831
|
},
|
|
829
832
|
rawResponse: _response.rawResponse,
|
|
@@ -831,7 +834,7 @@ export class OrganizationClient {
|
|
|
831
834
|
});
|
|
832
835
|
}
|
|
833
836
|
/**
|
|
834
|
-
* @param {
|
|
837
|
+
* @param {FernVenusApi.RemoveUserFromOrgRequest} request
|
|
835
838
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
836
839
|
*
|
|
837
840
|
* @example
|
|
@@ -881,7 +884,7 @@ export class OrganizationClient {
|
|
|
881
884
|
return {
|
|
882
885
|
data: {
|
|
883
886
|
ok: false,
|
|
884
|
-
error:
|
|
887
|
+
error: FernVenusApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
885
888
|
unrecognizedObjectKeys: "passthrough",
|
|
886
889
|
allowUnrecognizedUnionMembers: true,
|
|
887
890
|
allowUnrecognizedEnumValues: true,
|
|
@@ -897,7 +900,7 @@ export class OrganizationClient {
|
|
|
897
900
|
return {
|
|
898
901
|
data: {
|
|
899
902
|
ok: false,
|
|
900
|
-
error:
|
|
903
|
+
error: FernVenusApi.organization.removeUser.Error._unknown(_response.error),
|
|
901
904
|
rawResponse: _response.rawResponse,
|
|
902
905
|
},
|
|
903
906
|
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.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
|
};
|
|
@@ -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.organization.addUser.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.organization.addUser.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.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
|
};
|
|
@@ -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.organization.create.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -15,7 +15,7 @@ export const Error = {
|
|
|
15
15
|
statusCode: undefined,
|
|
16
16
|
content: fetcherError,
|
|
17
17
|
_visit: function (visitor) {
|
|
18
|
-
return
|
|
18
|
+
return FernVenusApi.organization.create.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type * as core from "../../../../core/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
3
|
+
export type Error = FernVenusApi.organization.delete.Error.UnprocessableEntityError | FernVenusApi.organization.delete.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.delete.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.delete.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.delete.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.delete.Error, visitor: FernVenusApi.organization.delete.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.organization.delete.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.organization.delete.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.organization.get.Error.UnprocessableEntityError | FernVenusApi.organization.get.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.get.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.get.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.get.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.get.Error, visitor: FernVenusApi.organization.get.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.organization.get.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.organization.get.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.organization.getMyOrganizationFromScopedToken.Error.UnprocessableEntityError | FernVenusApi.organization.getMyOrganizationFromScopedToken.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.getMyOrganizationFromScopedToken.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.getMyOrganizationFromScopedToken.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.getMyOrganizationFromScopedToken.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error, visitor: FernVenusApi.organization.getMyOrganizationFromScopedToken.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.organization.getMyOrganizationFromScopedToken.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.organization.getMyOrganizationFromScopedToken.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|