@fern-api/venus-api-sdk 3.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/dist/cjs/BaseClient.d.ts +8 -2
- package/dist/cjs/BaseClient.js +14 -2
- package/dist/cjs/Client.d.ts +10 -10
- package/dist/cjs/Client.js +13 -11
- package/dist/cjs/api/client/healthHealthGet.d.ts +5 -5
- package/dist/cjs/api/client/healthHealthGet.js +2 -2
- package/dist/cjs/api/client/metricsMetricsGet.d.ts +5 -5
- package/dist/cjs/api/client/metricsMetricsGet.js +2 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/apiKeys/client/Client.js +27 -22
- package/dist/cjs/api/resources/apiKeys/client/create.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/create.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +3 -3
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +8 -8
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +3 -3
- package/dist/cjs/api/resources/auth/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/auth/client/Client.js +17 -14
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.d.ts +8 -8
- package/dist/cjs/api/resources/auth/client/getAutopilotToken.js +3 -3
- package/dist/cjs/api/resources/auth/client/getJwt.d.ts +8 -8
- package/dist/cjs/api/resources/auth/client/getJwt.js +3 -3
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.d.ts +8 -8
- package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.js +3 -3
- package/dist/cjs/api/resources/organization/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/organization/client/Client.js +60 -48
- package/dist/cjs/api/resources/organization/client/addUser.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/addUser.js +3 -3
- package/dist/cjs/api/resources/organization/client/create.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/create.js +3 -3
- package/dist/cjs/api/resources/organization/client/delete.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/delete.js +3 -3
- package/dist/cjs/api/resources/organization/client/get.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/get.js +3 -3
- package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.js +3 -3
- package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.js +3 -3
- package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.d.ts +5 -5
- package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.js +2 -2
- package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.js +3 -3
- package/dist/cjs/api/resources/organization/client/inviteUser.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/inviteUser.js +3 -3
- package/dist/cjs/api/resources/organization/client/isMember.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/isMember.js +3 -3
- package/dist/cjs/api/resources/organization/client/removeUser.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/removeUser.js +3 -3
- package/dist/cjs/api/resources/organization/client/update.d.ts +8 -8
- package/dist/cjs/api/resources/organization/client/update.js +3 -3
- package/dist/cjs/api/resources/registry/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/registry/client/Client.js +17 -14
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.d.ts +8 -8
- package/dist/cjs/api/resources/registry/client/generateRegistryTokens.js +3 -3
- package/dist/cjs/api/resources/registry/client/hasRegistryPermission.d.ts +8 -8
- package/dist/cjs/api/resources/registry/client/hasRegistryPermission.js +3 -3
- package/dist/cjs/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
- package/dist/cjs/api/resources/registry/client/revokeToken.d.ts +8 -8
- package/dist/cjs/api/resources/registry/client/revokeToken.js +3 -3
- package/dist/cjs/api/resources/user/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/user/client/Client.js +15 -12
- package/dist/cjs/api/resources/user/client/getMyOrganizations.d.ts +8 -8
- package/dist/cjs/api/resources/user/client/getMyOrganizations.js +3 -3
- package/dist/cjs/api/resources/user/client/getMyself.d.ts +5 -5
- package/dist/cjs/api/resources/user/client/getMyself.js +2 -2
- package/dist/cjs/api/resources/user/client/linkAccounts.d.ts +8 -8
- package/dist/cjs/api/resources/user/client/linkAccounts.js +3 -3
- package/dist/cjs/api/types/HttpValidationError.d.ts +2 -2
- package/dist/cjs/api/types/Organization.d.ts +2 -2
- package/dist/cjs/api/types/RegistryToken.d.ts +5 -5
- package/dist/cjs/api/types/RegistryTokens.d.ts +4 -4
- package/dist/cjs/api/types/TokenMetadata.d.ts +2 -2
- package/dist/cjs/api/types/TokenStatus.d.ts +5 -5
- package/dist/cjs/api/types/ValidationError.d.ts +2 -2
- package/dist/cjs/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/cjs/auth/BearerAuthProvider.js +76 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +27 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
- package/dist/cjs/core/auth/BearerToken.js +16 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +5 -0
- package/dist/cjs/core/auth/index.js +9 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +2 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/user/client/requests/LinkAccountsRequest.d.ts +2 -2
- package/dist/cjs/serialization/types/Active.d.ts +2 -2
- package/dist/cjs/serialization/types/CreateOrganizationResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/CreateTokenResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/Expired.d.ts +2 -2
- package/dist/cjs/serialization/types/HttpValidationError.d.ts +2 -2
- package/dist/cjs/serialization/types/JwtResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/LightweightUser.d.ts +2 -2
- package/dist/cjs/serialization/types/LinkAccountsResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/Maven.d.ts +2 -2
- package/dist/cjs/serialization/types/MavenRegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/Npm.d.ts +2 -2
- package/dist/cjs/serialization/types/NpmRegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/Organization.d.ts +2 -2
- package/dist/cjs/serialization/types/OrganizationsPage.d.ts +2 -2
- package/dist/cjs/serialization/types/Pypi.d.ts +2 -2
- package/dist/cjs/serialization/types/PypiRegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/RegistryToken.d.ts +2 -2
- package/dist/cjs/serialization/types/RegistryTokens.d.ts +2 -2
- package/dist/cjs/serialization/types/Revoked.d.ts +2 -2
- package/dist/cjs/serialization/types/TokenMetadata.d.ts +2 -2
- package/dist/cjs/serialization/types/TokenStatus.d.ts +2 -2
- package/dist/cjs/serialization/types/User.d.ts +2 -2
- package/dist/cjs/serialization/types/ValidationError.d.ts +2 -2
- package/dist/cjs/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +8 -2
- package/dist/esm/BaseClient.mjs +13 -2
- package/dist/esm/Client.d.mts +10 -10
- package/dist/esm/Client.mjs +12 -10
- package/dist/esm/api/client/healthHealthGet.d.mts +5 -5
- package/dist/esm/api/client/healthHealthGet.mjs +2 -2
- package/dist/esm/api/client/metricsMetricsGet.d.mts +5 -5
- package/dist/esm/api/client/metricsMetricsGet.mjs +2 -2
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +28 -23
- package/dist/esm/api/resources/apiKeys/client/create.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/create.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +3 -3
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +8 -8
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +3 -3
- package/dist/esm/api/resources/auth/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/auth/client/Client.mjs +18 -15
- package/dist/esm/api/resources/auth/client/getAutopilotToken.d.mts +8 -8
- package/dist/esm/api/resources/auth/client/getAutopilotToken.mjs +3 -3
- package/dist/esm/api/resources/auth/client/getJwt.d.mts +8 -8
- package/dist/esm/api/resources/auth/client/getJwt.mjs +3 -3
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.d.mts +8 -8
- package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.mjs +3 -3
- package/dist/esm/api/resources/organization/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/organization/client/Client.mjs +61 -49
- package/dist/esm/api/resources/organization/client/addUser.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/addUser.mjs +3 -3
- package/dist/esm/api/resources/organization/client/create.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/create.mjs +3 -3
- package/dist/esm/api/resources/organization/client/delete.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/delete.mjs +3 -3
- package/dist/esm/api/resources/organization/client/get.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/get.mjs +3 -3
- package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.mjs +3 -3
- package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.mjs +3 -3
- package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.d.mts +5 -5
- package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.mjs +2 -2
- package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.mjs +3 -3
- package/dist/esm/api/resources/organization/client/inviteUser.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/inviteUser.mjs +3 -3
- package/dist/esm/api/resources/organization/client/isMember.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/isMember.mjs +3 -3
- package/dist/esm/api/resources/organization/client/removeUser.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/removeUser.mjs +3 -3
- package/dist/esm/api/resources/organization/client/update.d.mts +8 -8
- package/dist/esm/api/resources/organization/client/update.mjs +3 -3
- package/dist/esm/api/resources/registry/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/registry/client/Client.mjs +18 -15
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.d.mts +8 -8
- package/dist/esm/api/resources/registry/client/generateRegistryTokens.mjs +3 -3
- package/dist/esm/api/resources/registry/client/hasRegistryPermission.d.mts +8 -8
- package/dist/esm/api/resources/registry/client/hasRegistryPermission.mjs +3 -3
- package/dist/esm/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
- package/dist/esm/api/resources/registry/client/revokeToken.d.mts +8 -8
- package/dist/esm/api/resources/registry/client/revokeToken.mjs +3 -3
- package/dist/esm/api/resources/user/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/user/client/Client.mjs +16 -13
- package/dist/esm/api/resources/user/client/getMyOrganizations.d.mts +8 -8
- package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +3 -3
- package/dist/esm/api/resources/user/client/getMyself.d.mts +5 -5
- package/dist/esm/api/resources/user/client/getMyself.mjs +2 -2
- package/dist/esm/api/resources/user/client/linkAccounts.d.mts +8 -8
- package/dist/esm/api/resources/user/client/linkAccounts.mjs +3 -3
- package/dist/esm/api/types/HttpValidationError.d.mts +2 -2
- package/dist/esm/api/types/Organization.d.mts +2 -2
- package/dist/esm/api/types/RegistryToken.d.mts +5 -5
- package/dist/esm/api/types/RegistryTokens.d.mts +4 -4
- package/dist/esm/api/types/TokenMetadata.d.mts +2 -2
- package/dist/esm/api/types/TokenStatus.d.mts +5 -5
- package/dist/esm/api/types/ValidationError.d.mts +2 -2
- package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
- package/dist/esm/auth/BearerAuthProvider.mjs +39 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +24 -0
- package/dist/esm/core/auth/BearerToken.d.mts +7 -0
- package/dist/esm/core/auth/BearerToken.mjs +13 -0
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +5 -0
- package/dist/esm/core/auth/index.mjs +3 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +2 -2
- package/dist/esm/serialization/types/Active.d.mts +2 -2
- package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +2 -2
- package/dist/esm/serialization/types/CreateTokenResponse.d.mts +2 -2
- package/dist/esm/serialization/types/Expired.d.mts +2 -2
- package/dist/esm/serialization/types/HttpValidationError.d.mts +2 -2
- package/dist/esm/serialization/types/JwtResponse.d.mts +2 -2
- package/dist/esm/serialization/types/LightweightUser.d.mts +2 -2
- package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +2 -2
- package/dist/esm/serialization/types/Maven.d.mts +2 -2
- package/dist/esm/serialization/types/MavenRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/Npm.d.mts +2 -2
- package/dist/esm/serialization/types/NpmRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/Organization.d.mts +2 -2
- package/dist/esm/serialization/types/OrganizationsPage.d.mts +2 -2
- package/dist/esm/serialization/types/Pypi.d.mts +2 -2
- package/dist/esm/serialization/types/PypiRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/RegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/RegistryTokens.d.mts +2 -2
- package/dist/esm/serialization/types/Revoked.d.mts +2 -2
- package/dist/esm/serialization/types/TokenMetadata.d.mts +2 -2
- package/dist/esm/serialization/types/TokenStatus.d.mts +2 -2
- package/dist/esm/serialization/types/User.d.mts +2 -2
- package/dist/esm/serialization/types/ValidationError.d.mts +2 -2
- package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +54 -54
|
@@ -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
|
|
@@ -79,7 +79,8 @@ class OrganizationClient {
|
|
|
79
79
|
__create(request, requestOptions) {
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
82
|
-
const
|
|
82
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
83
|
+
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);
|
|
83
84
|
const _response = yield core.fetcher({
|
|
84
85
|
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/create"),
|
|
85
86
|
method: "POST",
|
|
@@ -120,7 +121,7 @@ class OrganizationClient {
|
|
|
120
121
|
return {
|
|
121
122
|
data: {
|
|
122
123
|
ok: false,
|
|
123
|
-
error:
|
|
124
|
+
error: FernVenusApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
124
125
|
unrecognizedObjectKeys: "passthrough",
|
|
125
126
|
allowUnrecognizedUnionMembers: true,
|
|
126
127
|
allowUnrecognizedEnumValues: true,
|
|
@@ -136,7 +137,7 @@ class OrganizationClient {
|
|
|
136
137
|
return {
|
|
137
138
|
data: {
|
|
138
139
|
ok: false,
|
|
139
|
-
error:
|
|
140
|
+
error: FernVenusApi.organization.create.Error._unknown(_response.error),
|
|
140
141
|
rawResponse: _response.rawResponse,
|
|
141
142
|
},
|
|
142
143
|
rawResponse: _response.rawResponse,
|
|
@@ -144,7 +145,7 @@ class OrganizationClient {
|
|
|
144
145
|
});
|
|
145
146
|
}
|
|
146
147
|
/**
|
|
147
|
-
* @param {
|
|
148
|
+
* @param {FernVenusApi.UpdateOrganizationRequest} request
|
|
148
149
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
150
|
*
|
|
150
151
|
* @example
|
|
@@ -159,7 +160,8 @@ class OrganizationClient {
|
|
|
159
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
161
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
161
162
|
const { orgId } = request, _body = __rest(request, ["orgId"]);
|
|
162
|
-
const
|
|
163
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
164
|
+
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);
|
|
163
165
|
const _response = yield core.fetcher({
|
|
164
166
|
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)}/update`),
|
|
165
167
|
method: "POST",
|
|
@@ -194,7 +196,7 @@ class OrganizationClient {
|
|
|
194
196
|
return {
|
|
195
197
|
data: {
|
|
196
198
|
ok: false,
|
|
197
|
-
error:
|
|
199
|
+
error: FernVenusApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
198
200
|
unrecognizedObjectKeys: "passthrough",
|
|
199
201
|
allowUnrecognizedUnionMembers: true,
|
|
200
202
|
allowUnrecognizedEnumValues: true,
|
|
@@ -210,7 +212,7 @@ class OrganizationClient {
|
|
|
210
212
|
return {
|
|
211
213
|
data: {
|
|
212
214
|
ok: false,
|
|
213
|
-
error:
|
|
215
|
+
error: FernVenusApi.organization.update.Error._unknown(_response.error),
|
|
214
216
|
rawResponse: _response.rawResponse,
|
|
215
217
|
},
|
|
216
218
|
rawResponse: _response.rawResponse,
|
|
@@ -218,7 +220,7 @@ class OrganizationClient {
|
|
|
218
220
|
});
|
|
219
221
|
}
|
|
220
222
|
/**
|
|
221
|
-
* @param {
|
|
223
|
+
* @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
|
|
222
224
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
223
225
|
*
|
|
224
226
|
* @example
|
|
@@ -236,7 +238,8 @@ class OrganizationClient {
|
|
|
236
238
|
const _queryParams = {
|
|
237
239
|
shouldIncludeFernUsers,
|
|
238
240
|
};
|
|
239
|
-
const
|
|
241
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
242
|
+
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
243
|
const _response = yield core.fetcher({
|
|
241
244
|
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
245
|
method: "GET",
|
|
@@ -271,7 +274,7 @@ class OrganizationClient {
|
|
|
271
274
|
return {
|
|
272
275
|
data: {
|
|
273
276
|
ok: false,
|
|
274
|
-
error:
|
|
277
|
+
error: FernVenusApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
275
278
|
unrecognizedObjectKeys: "passthrough",
|
|
276
279
|
allowUnrecognizedUnionMembers: true,
|
|
277
280
|
allowUnrecognizedEnumValues: true,
|
|
@@ -287,7 +290,7 @@ class OrganizationClient {
|
|
|
287
290
|
return {
|
|
288
291
|
data: {
|
|
289
292
|
ok: false,
|
|
290
|
-
error:
|
|
293
|
+
error: FernVenusApi.organization.get.Error._unknown(_response.error),
|
|
291
294
|
rawResponse: _response.rawResponse,
|
|
292
295
|
},
|
|
293
296
|
rawResponse: _response.rawResponse,
|
|
@@ -297,7 +300,7 @@ class OrganizationClient {
|
|
|
297
300
|
/**
|
|
298
301
|
* Deletes an organization. Only users with admin role can delete organizations.
|
|
299
302
|
*
|
|
300
|
-
* @param {
|
|
303
|
+
* @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
301
304
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
302
305
|
*
|
|
303
306
|
* @example
|
|
@@ -312,7 +315,8 @@ class OrganizationClient {
|
|
|
312
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
313
316
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
314
317
|
const { orgId } = request;
|
|
315
|
-
const
|
|
318
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
319
|
+
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);
|
|
316
320
|
const _response = yield core.fetcher({
|
|
317
321
|
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)}`),
|
|
318
322
|
method: "DELETE",
|
|
@@ -341,7 +345,7 @@ class OrganizationClient {
|
|
|
341
345
|
return {
|
|
342
346
|
data: {
|
|
343
347
|
ok: false,
|
|
344
|
-
error:
|
|
348
|
+
error: FernVenusApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
345
349
|
unrecognizedObjectKeys: "passthrough",
|
|
346
350
|
allowUnrecognizedUnionMembers: true,
|
|
347
351
|
allowUnrecognizedEnumValues: true,
|
|
@@ -357,7 +361,7 @@ class OrganizationClient {
|
|
|
357
361
|
return {
|
|
358
362
|
data: {
|
|
359
363
|
ok: false,
|
|
360
|
-
error:
|
|
364
|
+
error: FernVenusApi.organization.delete.Error._unknown(_response.error),
|
|
361
365
|
rawResponse: _response.rawResponse,
|
|
362
366
|
},
|
|
363
367
|
rawResponse: _response.rawResponse,
|
|
@@ -367,7 +371,7 @@ class OrganizationClient {
|
|
|
367
371
|
/**
|
|
368
372
|
* Look up an organization by its associated Postman team ID.
|
|
369
373
|
*
|
|
370
|
-
* @param {
|
|
374
|
+
* @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
|
|
371
375
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
372
376
|
*
|
|
373
377
|
* @example
|
|
@@ -382,7 +386,8 @@ class OrganizationClient {
|
|
|
382
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
387
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
384
388
|
const { postmanTeamId } = request;
|
|
385
|
-
const
|
|
389
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
390
|
+
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
391
|
const _response = yield core.fetcher({
|
|
387
392
|
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
393
|
method: "GET",
|
|
@@ -417,7 +422,7 @@ class OrganizationClient {
|
|
|
417
422
|
return {
|
|
418
423
|
data: {
|
|
419
424
|
ok: false,
|
|
420
|
-
error:
|
|
425
|
+
error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
421
426
|
unrecognizedObjectKeys: "passthrough",
|
|
422
427
|
allowUnrecognizedUnionMembers: true,
|
|
423
428
|
allowUnrecognizedEnumValues: true,
|
|
@@ -433,7 +438,7 @@ class OrganizationClient {
|
|
|
433
438
|
return {
|
|
434
439
|
data: {
|
|
435
440
|
ok: false,
|
|
436
|
-
error:
|
|
441
|
+
error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
|
|
437
442
|
rawResponse: _response.rawResponse,
|
|
438
443
|
},
|
|
439
444
|
rawResponse: _response.rawResponse,
|
|
@@ -443,7 +448,7 @@ class OrganizationClient {
|
|
|
443
448
|
/**
|
|
444
449
|
* Get the Postman team ID associated with an organization ID.
|
|
445
450
|
*
|
|
446
|
-
* @param {
|
|
451
|
+
* @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
|
|
447
452
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
448
453
|
*
|
|
449
454
|
* @example
|
|
@@ -458,7 +463,8 @@ class OrganizationClient {
|
|
|
458
463
|
return __awaiter(this, void 0, void 0, function* () {
|
|
459
464
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
460
465
|
const { orgId } = request;
|
|
461
|
-
const
|
|
466
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
467
|
+
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
468
|
const _response = yield core.fetcher({
|
|
463
469
|
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
470
|
method: "GET",
|
|
@@ -493,7 +499,7 @@ class OrganizationClient {
|
|
|
493
499
|
return {
|
|
494
500
|
data: {
|
|
495
501
|
ok: false,
|
|
496
|
-
error:
|
|
502
|
+
error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
497
503
|
unrecognizedObjectKeys: "passthrough",
|
|
498
504
|
allowUnrecognizedUnionMembers: true,
|
|
499
505
|
allowUnrecognizedEnumValues: true,
|
|
@@ -509,7 +515,7 @@ class OrganizationClient {
|
|
|
509
515
|
return {
|
|
510
516
|
data: {
|
|
511
517
|
ok: false,
|
|
512
|
-
error:
|
|
518
|
+
error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
|
|
513
519
|
rawResponse: _response.rawResponse,
|
|
514
520
|
},
|
|
515
521
|
rawResponse: _response.rawResponse,
|
|
@@ -517,7 +523,7 @@ class OrganizationClient {
|
|
|
517
523
|
});
|
|
518
524
|
}
|
|
519
525
|
/**
|
|
520
|
-
* @param {
|
|
526
|
+
* @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
|
|
521
527
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
522
528
|
*
|
|
523
529
|
* @example
|
|
@@ -532,7 +538,8 @@ class OrganizationClient {
|
|
|
532
538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
533
539
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
534
540
|
const { organizationId } = request;
|
|
535
|
-
const
|
|
541
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
542
|
+
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);
|
|
536
543
|
const _response = yield core.fetcher({
|
|
537
544
|
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/belongs-to-organization/${core.url.encodePathParam(organizationId)}`),
|
|
538
545
|
method: "POST",
|
|
@@ -567,7 +574,7 @@ class OrganizationClient {
|
|
|
567
574
|
return {
|
|
568
575
|
data: {
|
|
569
576
|
ok: false,
|
|
570
|
-
error:
|
|
577
|
+
error: FernVenusApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
571
578
|
unrecognizedObjectKeys: "passthrough",
|
|
572
579
|
allowUnrecognizedUnionMembers: true,
|
|
573
580
|
allowUnrecognizedEnumValues: true,
|
|
@@ -583,7 +590,7 @@ class OrganizationClient {
|
|
|
583
590
|
return {
|
|
584
591
|
data: {
|
|
585
592
|
ok: false,
|
|
586
|
-
error:
|
|
593
|
+
error: FernVenusApi.organization.isMember.Error._unknown(_response.error),
|
|
587
594
|
rawResponse: _response.rawResponse,
|
|
588
595
|
},
|
|
589
596
|
rawResponse: _response.rawResponse,
|
|
@@ -593,7 +600,7 @@ class OrganizationClient {
|
|
|
593
600
|
/**
|
|
594
601
|
* Returns the org for a scoped token. The token is limited to one organization.
|
|
595
602
|
*
|
|
596
|
-
* @param {
|
|
603
|
+
* @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
|
|
597
604
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
598
605
|
*
|
|
599
606
|
* @example
|
|
@@ -609,7 +616,8 @@ class OrganizationClient {
|
|
|
609
616
|
const _queryParams = {
|
|
610
617
|
shouldIncludeFernUsers,
|
|
611
618
|
};
|
|
612
|
-
const
|
|
619
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
620
|
+
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);
|
|
613
621
|
const _response = yield core.fetcher({
|
|
614
622
|
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/myself"),
|
|
615
623
|
method: "POST",
|
|
@@ -644,7 +652,7 @@ class OrganizationClient {
|
|
|
644
652
|
return {
|
|
645
653
|
data: {
|
|
646
654
|
ok: false,
|
|
647
|
-
error:
|
|
655
|
+
error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
648
656
|
unrecognizedObjectKeys: "passthrough",
|
|
649
657
|
allowUnrecognizedUnionMembers: true,
|
|
650
658
|
allowUnrecognizedEnumValues: true,
|
|
@@ -660,7 +668,7 @@ class OrganizationClient {
|
|
|
660
668
|
return {
|
|
661
669
|
data: {
|
|
662
670
|
ok: false,
|
|
663
|
-
error:
|
|
671
|
+
error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
|
|
664
672
|
rawResponse: _response.rawResponse,
|
|
665
673
|
},
|
|
666
674
|
rawResponse: _response.rawResponse,
|
|
@@ -679,7 +687,8 @@ class OrganizationClient {
|
|
|
679
687
|
__getOrgIdsFromToken(requestOptions) {
|
|
680
688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
681
689
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
682
|
-
const
|
|
690
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
691
|
+
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);
|
|
683
692
|
const _response = yield core.fetcher({
|
|
684
693
|
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"),
|
|
685
694
|
method: "POST",
|
|
@@ -711,7 +720,7 @@ class OrganizationClient {
|
|
|
711
720
|
return {
|
|
712
721
|
data: {
|
|
713
722
|
ok: false,
|
|
714
|
-
error:
|
|
723
|
+
error: FernVenusApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
|
|
715
724
|
rawResponse: _response.rawResponse,
|
|
716
725
|
},
|
|
717
726
|
rawResponse: _response.rawResponse,
|
|
@@ -719,7 +728,7 @@ class OrganizationClient {
|
|
|
719
728
|
});
|
|
720
729
|
}
|
|
721
730
|
/**
|
|
722
|
-
* @param {
|
|
731
|
+
* @param {FernVenusApi.AddUserToOrgRequest} request
|
|
723
732
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
724
733
|
*
|
|
725
734
|
* @example
|
|
@@ -734,7 +743,8 @@ class OrganizationClient {
|
|
|
734
743
|
__addUser(request, requestOptions) {
|
|
735
744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
736
745
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
737
|
-
const
|
|
746
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
747
|
+
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);
|
|
738
748
|
const _response = yield core.fetcher({
|
|
739
749
|
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/add-user"),
|
|
740
750
|
method: "POST",
|
|
@@ -769,7 +779,7 @@ class OrganizationClient {
|
|
|
769
779
|
return {
|
|
770
780
|
data: {
|
|
771
781
|
ok: false,
|
|
772
|
-
error:
|
|
782
|
+
error: FernVenusApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
773
783
|
unrecognizedObjectKeys: "passthrough",
|
|
774
784
|
allowUnrecognizedUnionMembers: true,
|
|
775
785
|
allowUnrecognizedEnumValues: true,
|
|
@@ -785,7 +795,7 @@ class OrganizationClient {
|
|
|
785
795
|
return {
|
|
786
796
|
data: {
|
|
787
797
|
ok: false,
|
|
788
|
-
error:
|
|
798
|
+
error: FernVenusApi.organization.addUser.Error._unknown(_response.error),
|
|
789
799
|
rawResponse: _response.rawResponse,
|
|
790
800
|
},
|
|
791
801
|
rawResponse: _response.rawResponse,
|
|
@@ -793,7 +803,7 @@ class OrganizationClient {
|
|
|
793
803
|
});
|
|
794
804
|
}
|
|
795
805
|
/**
|
|
796
|
-
* @param {
|
|
806
|
+
* @param {FernVenusApi.InviteUserToOrgRequest} request
|
|
797
807
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
798
808
|
*
|
|
799
809
|
* @example
|
|
@@ -808,7 +818,8 @@ class OrganizationClient {
|
|
|
808
818
|
__inviteUser(request, requestOptions) {
|
|
809
819
|
return __awaiter(this, void 0, void 0, function* () {
|
|
810
820
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
811
|
-
const
|
|
821
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
822
|
+
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);
|
|
812
823
|
const _response = yield core.fetcher({
|
|
813
824
|
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/invite"),
|
|
814
825
|
method: "POST",
|
|
@@ -843,7 +854,7 @@ class OrganizationClient {
|
|
|
843
854
|
return {
|
|
844
855
|
data: {
|
|
845
856
|
ok: false,
|
|
846
|
-
error:
|
|
857
|
+
error: FernVenusApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
847
858
|
unrecognizedObjectKeys: "passthrough",
|
|
848
859
|
allowUnrecognizedUnionMembers: true,
|
|
849
860
|
allowUnrecognizedEnumValues: true,
|
|
@@ -859,7 +870,7 @@ class OrganizationClient {
|
|
|
859
870
|
return {
|
|
860
871
|
data: {
|
|
861
872
|
ok: false,
|
|
862
|
-
error:
|
|
873
|
+
error: FernVenusApi.organization.inviteUser.Error._unknown(_response.error),
|
|
863
874
|
rawResponse: _response.rawResponse,
|
|
864
875
|
},
|
|
865
876
|
rawResponse: _response.rawResponse,
|
|
@@ -867,7 +878,7 @@ class OrganizationClient {
|
|
|
867
878
|
});
|
|
868
879
|
}
|
|
869
880
|
/**
|
|
870
|
-
* @param {
|
|
881
|
+
* @param {FernVenusApi.RemoveUserFromOrgRequest} request
|
|
871
882
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
872
883
|
*
|
|
873
884
|
* @example
|
|
@@ -882,7 +893,8 @@ class OrganizationClient {
|
|
|
882
893
|
__removeUser(request, requestOptions) {
|
|
883
894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
884
895
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
885
|
-
const
|
|
896
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
897
|
+
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);
|
|
886
898
|
const _response = yield core.fetcher({
|
|
887
899
|
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/user"),
|
|
888
900
|
method: "DELETE",
|
|
@@ -917,7 +929,7 @@ class OrganizationClient {
|
|
|
917
929
|
return {
|
|
918
930
|
data: {
|
|
919
931
|
ok: false,
|
|
920
|
-
error:
|
|
932
|
+
error: FernVenusApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
921
933
|
unrecognizedObjectKeys: "passthrough",
|
|
922
934
|
allowUnrecognizedUnionMembers: true,
|
|
923
935
|
allowUnrecognizedEnumValues: true,
|
|
@@ -933,7 +945,7 @@ class OrganizationClient {
|
|
|
933
945
|
return {
|
|
934
946
|
data: {
|
|
935
947
|
ok: false,
|
|
936
|
-
error:
|
|
948
|
+
error: FernVenusApi.organization.removeUser.Error._unknown(_response.error),
|
|
937
949
|
rawResponse: _response.rawResponse,
|
|
938
950
|
},
|
|
939
951
|
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
|
},
|
|
@@ -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.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
|
};
|
|
@@ -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.delete.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.delete.Error._visit(this, visitor);
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
},
|