@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
|
@@ -8,17 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
14
|
import * as serializers from "../../../../serialization/index.mjs";
|
|
15
|
-
import * as
|
|
15
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
16
16
|
export class RegistryClient {
|
|
17
17
|
constructor(options) {
|
|
18
|
-
this._options =
|
|
18
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {FernVenusApi.GenerateRegistryTokensRequest} request
|
|
22
22
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
@@ -32,7 +32,8 @@ export class RegistryClient {
|
|
|
32
32
|
__generateRegistryTokens(request, requestOptions) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
35
|
-
const
|
|
35
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
36
|
+
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);
|
|
36
37
|
const _response = yield core.fetcher({
|
|
37
38
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "registry/generate-tokens"),
|
|
38
39
|
method: "POST",
|
|
@@ -73,7 +74,7 @@ export class RegistryClient {
|
|
|
73
74
|
return {
|
|
74
75
|
data: {
|
|
75
76
|
ok: false,
|
|
76
|
-
error:
|
|
77
|
+
error: FernVenusApi.registry.generateRegistryTokens.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
77
78
|
unrecognizedObjectKeys: "passthrough",
|
|
78
79
|
allowUnrecognizedUnionMembers: true,
|
|
79
80
|
allowUnrecognizedEnumValues: true,
|
|
@@ -89,7 +90,7 @@ export class RegistryClient {
|
|
|
89
90
|
return {
|
|
90
91
|
data: {
|
|
91
92
|
ok: false,
|
|
92
|
-
error:
|
|
93
|
+
error: FernVenusApi.registry.generateRegistryTokens.Error._unknown(_response.error),
|
|
93
94
|
rawResponse: _response.rawResponse,
|
|
94
95
|
},
|
|
95
96
|
rawResponse: _response.rawResponse,
|
|
@@ -97,7 +98,7 @@ export class RegistryClient {
|
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
100
|
/**
|
|
100
|
-
* @param {
|
|
101
|
+
* @param {FernVenusApi.CheckRegistryPermissionRequest} request
|
|
101
102
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
103
|
*
|
|
103
104
|
* @example
|
|
@@ -111,7 +112,8 @@ export class RegistryClient {
|
|
|
111
112
|
__hasRegistryPermission(request, requestOptions) {
|
|
112
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
114
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
114
|
-
const
|
|
115
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
116
|
+
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);
|
|
115
117
|
const _response = yield core.fetcher({
|
|
116
118
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "registry/check-permissions"),
|
|
117
119
|
method: "POST",
|
|
@@ -152,7 +154,7 @@ export class RegistryClient {
|
|
|
152
154
|
return {
|
|
153
155
|
data: {
|
|
154
156
|
ok: false,
|
|
155
|
-
error:
|
|
157
|
+
error: FernVenusApi.registry.hasRegistryPermission.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
156
158
|
unrecognizedObjectKeys: "passthrough",
|
|
157
159
|
allowUnrecognizedUnionMembers: true,
|
|
158
160
|
allowUnrecognizedEnumValues: true,
|
|
@@ -168,7 +170,7 @@ export class RegistryClient {
|
|
|
168
170
|
return {
|
|
169
171
|
data: {
|
|
170
172
|
ok: false,
|
|
171
|
-
error:
|
|
173
|
+
error: FernVenusApi.registry.hasRegistryPermission.Error._unknown(_response.error),
|
|
172
174
|
rawResponse: _response.rawResponse,
|
|
173
175
|
},
|
|
174
176
|
rawResponse: _response.rawResponse,
|
|
@@ -176,7 +178,7 @@ export class RegistryClient {
|
|
|
176
178
|
});
|
|
177
179
|
}
|
|
178
180
|
/**
|
|
179
|
-
* @param {
|
|
181
|
+
* @param {FernVenusApi.RevokeTokenRequest} request
|
|
180
182
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
183
|
*
|
|
182
184
|
* @example
|
|
@@ -191,7 +193,8 @@ export class RegistryClient {
|
|
|
191
193
|
__revokeToken(request, requestOptions) {
|
|
192
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
195
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
194
|
-
const
|
|
196
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
197
|
+
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);
|
|
195
198
|
const _response = yield core.fetcher({
|
|
196
199
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "registry/revoke-token"),
|
|
197
200
|
method: "POST",
|
|
@@ -226,7 +229,7 @@ export class RegistryClient {
|
|
|
226
229
|
return {
|
|
227
230
|
data: {
|
|
228
231
|
ok: false,
|
|
229
|
-
error:
|
|
232
|
+
error: FernVenusApi.registry.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
230
233
|
unrecognizedObjectKeys: "passthrough",
|
|
231
234
|
allowUnrecognizedUnionMembers: true,
|
|
232
235
|
allowUnrecognizedEnumValues: true,
|
|
@@ -242,7 +245,7 @@ export class RegistryClient {
|
|
|
242
245
|
return {
|
|
243
246
|
data: {
|
|
244
247
|
ok: false,
|
|
245
|
-
error:
|
|
248
|
+
error: FernVenusApi.registry.revokeToken.Error._unknown(_response.error),
|
|
246
249
|
rawResponse: _response.rawResponse,
|
|
247
250
|
},
|
|
248
251
|
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.registry.generateRegistryTokens.Error.UnprocessableEntityError | FernVenusApi.registry.generateRegistryTokens.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.registry.generateRegistryTokens.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.registry.generateRegistryTokens.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.registry.generateRegistryTokens.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.registry.generateRegistryTokens.Error, visitor: FernVenusApi.registry.generateRegistryTokens.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.registry.generateRegistryTokens.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.registry.generateRegistryTokens.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.registry.hasRegistryPermission.Error.UnprocessableEntityError | FernVenusApi.registry.hasRegistryPermission.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.registry.hasRegistryPermission.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.registry.hasRegistryPermission.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.registry.hasRegistryPermission.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.registry.hasRegistryPermission.Error, visitor: FernVenusApi.registry.hasRegistryPermission.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.registry.hasRegistryPermission.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.registry.hasRegistryPermission.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
package/dist/esm/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../../../index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -7,5 +7,5 @@ import type * as FernApi from "../../../../index.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface CheckRegistryPermissionRequest {
|
|
9
9
|
organizationId: string;
|
|
10
|
-
token?:
|
|
10
|
+
token?: FernVenusApi.RegistryToken | null;
|
|
11
11
|
}
|
|
@@ -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.registry.revokeToken.Error.UnprocessableEntityError | FernVenusApi.registry.revokeToken.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.registry.revokeToken.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.registry.revokeToken.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.registry.revokeToken.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.registry.revokeToken.Error, visitor: FernVenusApi.registry.revokeToken.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as
|
|
2
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
3
3
|
export const Error = {
|
|
4
4
|
unprocessableEntityError: (value) => {
|
|
5
5
|
return {
|
|
6
6
|
content: value,
|
|
7
7
|
statusCode: 422,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.registry.revokeToken.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -15,7 +15,7 @@ export const Error = {
|
|
|
15
15
|
statusCode: undefined,
|
|
16
16
|
content: fetcherError,
|
|
17
17
|
_visit: function (visitor) {
|
|
18
|
-
return
|
|
18
|
+
return FernVenusApi.registry.revokeToken.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
5
|
export declare namespace UserClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class UserClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<UserClient.Options>;
|
|
12
12
|
constructor(options: UserClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -16,10 +16,10 @@ export declare class UserClient {
|
|
|
16
16
|
* @example
|
|
17
17
|
* await client.user.getMyself()
|
|
18
18
|
*/
|
|
19
|
-
getMyself(requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<
|
|
19
|
+
getMyself(requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.User, FernVenusApi.user.getMyself.Error>>;
|
|
20
20
|
private __getMyself;
|
|
21
21
|
/**
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
|
|
23
23
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
@@ -27,13 +27,13 @@ export declare class UserClient {
|
|
|
27
27
|
* pageId: 1
|
|
28
28
|
* })
|
|
29
29
|
*/
|
|
30
|
-
getMyOrganizations(request:
|
|
30
|
+
getMyOrganizations(request: FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest, requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.OrganizationsPage, FernVenusApi.user.getMyOrganizations.Error>>;
|
|
31
31
|
private __getMyOrganizations;
|
|
32
32
|
/**
|
|
33
33
|
* Link user accounts with the same verified email address.
|
|
34
34
|
* Requires admin token authentication.
|
|
35
35
|
*
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {FernVenusApi.LinkAccountsRequest} request
|
|
37
37
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
@@ -41,6 +41,6 @@ export declare class UserClient {
|
|
|
41
41
|
* userId: "userId"
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
|
-
linkAccounts(request:
|
|
44
|
+
linkAccounts(request: FernVenusApi.LinkAccountsRequest, requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.LinkAccountsResponse, FernVenusApi.user.linkAccounts.Error>>;
|
|
45
45
|
private __linkAccounts;
|
|
46
46
|
}
|
|
@@ -8,14 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
14
|
import * as serializers from "../../../../serialization/index.mjs";
|
|
15
|
-
import * as
|
|
15
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
16
16
|
export class UserClient {
|
|
17
17
|
constructor(options) {
|
|
18
|
-
this._options =
|
|
18
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -29,7 +29,8 @@ export class UserClient {
|
|
|
29
29
|
__getMyself(requestOptions) {
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32
|
-
const
|
|
32
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
33
|
+
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);
|
|
33
34
|
const _response = yield core.fetcher({
|
|
34
35
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users"),
|
|
35
36
|
method: "GET",
|
|
@@ -61,7 +62,7 @@ export class UserClient {
|
|
|
61
62
|
return {
|
|
62
63
|
data: {
|
|
63
64
|
ok: false,
|
|
64
|
-
error:
|
|
65
|
+
error: FernVenusApi.user.getMyself.Error._unknown(_response.error),
|
|
65
66
|
rawResponse: _response.rawResponse,
|
|
66
67
|
},
|
|
67
68
|
rawResponse: _response.rawResponse,
|
|
@@ -69,7 +70,7 @@ export class UserClient {
|
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
|
-
* @param {
|
|
73
|
+
* @param {FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
|
|
73
74
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
75
|
*
|
|
75
76
|
* @example
|
|
@@ -87,7 +88,8 @@ export class UserClient {
|
|
|
87
88
|
const _queryParams = {
|
|
88
89
|
pageId,
|
|
89
90
|
};
|
|
90
|
-
const
|
|
91
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
92
|
+
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);
|
|
91
93
|
const _response = yield core.fetcher({
|
|
92
94
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users/organizations"),
|
|
93
95
|
method: "GET",
|
|
@@ -122,7 +124,7 @@ export class UserClient {
|
|
|
122
124
|
return {
|
|
123
125
|
data: {
|
|
124
126
|
ok: false,
|
|
125
|
-
error:
|
|
127
|
+
error: FernVenusApi.user.getMyOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
126
128
|
unrecognizedObjectKeys: "passthrough",
|
|
127
129
|
allowUnrecognizedUnionMembers: true,
|
|
128
130
|
allowUnrecognizedEnumValues: true,
|
|
@@ -138,7 +140,7 @@ export class UserClient {
|
|
|
138
140
|
return {
|
|
139
141
|
data: {
|
|
140
142
|
ok: false,
|
|
141
|
-
error:
|
|
143
|
+
error: FernVenusApi.user.getMyOrganizations.Error._unknown(_response.error),
|
|
142
144
|
rawResponse: _response.rawResponse,
|
|
143
145
|
},
|
|
144
146
|
rawResponse: _response.rawResponse,
|
|
@@ -149,7 +151,7 @@ export class UserClient {
|
|
|
149
151
|
* Link user accounts with the same verified email address.
|
|
150
152
|
* Requires admin token authentication.
|
|
151
153
|
*
|
|
152
|
-
* @param {
|
|
154
|
+
* @param {FernVenusApi.LinkAccountsRequest} request
|
|
153
155
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
154
156
|
*
|
|
155
157
|
* @example
|
|
@@ -163,7 +165,8 @@ export class UserClient {
|
|
|
163
165
|
__linkAccounts(request, requestOptions) {
|
|
164
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
167
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
166
|
-
const
|
|
168
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
169
|
+
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);
|
|
167
170
|
const _response = yield core.fetcher({
|
|
168
171
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users/link-accounts"),
|
|
169
172
|
method: "POST",
|
|
@@ -204,7 +207,7 @@ export class UserClient {
|
|
|
204
207
|
return {
|
|
205
208
|
data: {
|
|
206
209
|
ok: false,
|
|
207
|
-
error:
|
|
210
|
+
error: FernVenusApi.user.linkAccounts.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
208
211
|
unrecognizedObjectKeys: "passthrough",
|
|
209
212
|
allowUnrecognizedUnionMembers: true,
|
|
210
213
|
allowUnrecognizedEnumValues: true,
|
|
@@ -220,7 +223,7 @@ export class UserClient {
|
|
|
220
223
|
return {
|
|
221
224
|
data: {
|
|
222
225
|
ok: false,
|
|
223
|
-
error:
|
|
226
|
+
error: FernVenusApi.user.linkAccounts.Error._unknown(_response.error),
|
|
224
227
|
rawResponse: _response.rawResponse,
|
|
225
228
|
},
|
|
226
229
|
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.user.getMyOrganizations.Error.UnprocessableEntityError | FernVenusApi.user.getMyOrganizations.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.user.getMyOrganizations.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.user.getMyOrganizations.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.user.getMyOrganizations.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.user.getMyOrganizations.Error, visitor: FernVenusApi.user.getMyOrganizations.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.user.getMyOrganizations.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.user.getMyOrganizations.Error._visit(this, visitor);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
},
|
|
@@ -1,19 +1,19 @@
|
|
|
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.user.getMyself.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface _Unknown extends _Utils {
|
|
6
6
|
statusCode: void;
|
|
7
7
|
content: core.Fetcher.Error;
|
|
8
8
|
}
|
|
9
9
|
interface _Utils {
|
|
10
|
-
_visit: <_Result>(visitor:
|
|
10
|
+
_visit: <_Result>(visitor: FernVenusApi.user.getMyself.Error._Visitor<_Result>) => _Result;
|
|
11
11
|
}
|
|
12
12
|
interface _Visitor<_Result> {
|
|
13
13
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
export declare const Error: {
|
|
17
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
18
|
-
readonly _visit: <_Result>(value:
|
|
17
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.user.getMyself.Error._Unknown;
|
|
18
|
+
readonly _visit: <_Result>(value: FernVenusApi.user.getMyself.Error, visitor: FernVenusApi.user.getMyself.Error._Visitor<_Result>) => _Result;
|
|
19
19
|
};
|
|
@@ -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
|
_unknown: (fetcherError) => {
|
|
5
5
|
return {
|
|
6
6
|
statusCode: undefined,
|
|
7
7
|
content: fetcherError,
|
|
8
8
|
_visit: function (visitor) {
|
|
9
|
-
return
|
|
9
|
+
return FernVenusApi.user.getMyself.Error._visit(this, visitor);
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
},
|
|
@@ -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.user.linkAccounts.Error.UnprocessableEntityError | FernVenusApi.user.linkAccounts.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.user.linkAccounts.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.user.linkAccounts.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.user.linkAccounts.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.user.linkAccounts.Error, visitor: FernVenusApi.user.linkAccounts.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|