@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
|
@@ -48,13 +48,13 @@ const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
|
48
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
50
50
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
51
|
-
const
|
|
51
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
52
52
|
class RegistryClient {
|
|
53
53
|
constructor(options) {
|
|
54
|
-
this._options = (0, BaseClient_js_1.
|
|
54
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* @param {
|
|
57
|
+
* @param {FernVenusApi.GenerateRegistryTokensRequest} request
|
|
58
58
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
@@ -68,7 +68,8 @@ class RegistryClient {
|
|
|
68
68
|
__generateRegistryTokens(request, requestOptions) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
71
|
-
const
|
|
71
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
72
|
+
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);
|
|
72
73
|
const _response = yield core.fetcher({
|
|
73
74
|
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"),
|
|
74
75
|
method: "POST",
|
|
@@ -109,7 +110,7 @@ class RegistryClient {
|
|
|
109
110
|
return {
|
|
110
111
|
data: {
|
|
111
112
|
ok: false,
|
|
112
|
-
error:
|
|
113
|
+
error: FernVenusApi.registry.generateRegistryTokens.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
113
114
|
unrecognizedObjectKeys: "passthrough",
|
|
114
115
|
allowUnrecognizedUnionMembers: true,
|
|
115
116
|
allowUnrecognizedEnumValues: true,
|
|
@@ -125,7 +126,7 @@ class RegistryClient {
|
|
|
125
126
|
return {
|
|
126
127
|
data: {
|
|
127
128
|
ok: false,
|
|
128
|
-
error:
|
|
129
|
+
error: FernVenusApi.registry.generateRegistryTokens.Error._unknown(_response.error),
|
|
129
130
|
rawResponse: _response.rawResponse,
|
|
130
131
|
},
|
|
131
132
|
rawResponse: _response.rawResponse,
|
|
@@ -133,7 +134,7 @@ class RegistryClient {
|
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
136
|
/**
|
|
136
|
-
* @param {
|
|
137
|
+
* @param {FernVenusApi.CheckRegistryPermissionRequest} request
|
|
137
138
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
139
|
*
|
|
139
140
|
* @example
|
|
@@ -147,7 +148,8 @@ class RegistryClient {
|
|
|
147
148
|
__hasRegistryPermission(request, requestOptions) {
|
|
148
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
150
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
150
|
-
const
|
|
151
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
152
|
+
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);
|
|
151
153
|
const _response = yield core.fetcher({
|
|
152
154
|
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"),
|
|
153
155
|
method: "POST",
|
|
@@ -188,7 +190,7 @@ class RegistryClient {
|
|
|
188
190
|
return {
|
|
189
191
|
data: {
|
|
190
192
|
ok: false,
|
|
191
|
-
error:
|
|
193
|
+
error: FernVenusApi.registry.hasRegistryPermission.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
192
194
|
unrecognizedObjectKeys: "passthrough",
|
|
193
195
|
allowUnrecognizedUnionMembers: true,
|
|
194
196
|
allowUnrecognizedEnumValues: true,
|
|
@@ -204,7 +206,7 @@ class RegistryClient {
|
|
|
204
206
|
return {
|
|
205
207
|
data: {
|
|
206
208
|
ok: false,
|
|
207
|
-
error:
|
|
209
|
+
error: FernVenusApi.registry.hasRegistryPermission.Error._unknown(_response.error),
|
|
208
210
|
rawResponse: _response.rawResponse,
|
|
209
211
|
},
|
|
210
212
|
rawResponse: _response.rawResponse,
|
|
@@ -212,7 +214,7 @@ class RegistryClient {
|
|
|
212
214
|
});
|
|
213
215
|
}
|
|
214
216
|
/**
|
|
215
|
-
* @param {
|
|
217
|
+
* @param {FernVenusApi.RevokeTokenRequest} request
|
|
216
218
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
217
219
|
*
|
|
218
220
|
* @example
|
|
@@ -227,7 +229,8 @@ class RegistryClient {
|
|
|
227
229
|
__revokeToken(request, requestOptions) {
|
|
228
230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
231
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
230
|
-
const
|
|
232
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
233
|
+
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);
|
|
231
234
|
const _response = yield core.fetcher({
|
|
232
235
|
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"),
|
|
233
236
|
method: "POST",
|
|
@@ -262,7 +265,7 @@ class RegistryClient {
|
|
|
262
265
|
return {
|
|
263
266
|
data: {
|
|
264
267
|
ok: false,
|
|
265
|
-
error:
|
|
268
|
+
error: FernVenusApi.registry.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
266
269
|
unrecognizedObjectKeys: "passthrough",
|
|
267
270
|
allowUnrecognizedUnionMembers: true,
|
|
268
271
|
allowUnrecognizedEnumValues: true,
|
|
@@ -278,7 +281,7 @@ class RegistryClient {
|
|
|
278
281
|
return {
|
|
279
282
|
data: {
|
|
280
283
|
ok: false,
|
|
281
|
-
error:
|
|
284
|
+
error: FernVenusApi.registry.revokeToken.Error._unknown(_response.error),
|
|
282
285
|
rawResponse: _response.rawResponse,
|
|
283
286
|
},
|
|
284
287
|
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.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
|
};
|
|
@@ -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.registry.generateRegistryTokens.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.registry.generateRegistryTokens.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.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
|
};
|
|
@@ -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.registry.hasRegistryPermission.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.registry.hasRegistryPermission.Error._visit(this, visitor);
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as FernVenusApi from "../../../../index.js";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -7,5 +7,5 @@ import type * as FernApi from "../../../../index.js";
|
|
|
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.js";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../../../index.js";
|
|
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
|
};
|
|
@@ -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.registry.revokeToken.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.registry.revokeToken.Error._visit(this, visitor);
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as FernVenusApi from "../../../index.js";
|
|
5
5
|
export declare namespace 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
|
}
|
|
@@ -48,10 +48,10 @@ const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
|
48
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
50
50
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
51
|
-
const
|
|
51
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
52
52
|
class UserClient {
|
|
53
53
|
constructor(options) {
|
|
54
|
-
this._options = (0, BaseClient_js_1.
|
|
54
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,7 +65,8 @@ class UserClient {
|
|
|
65
65
|
__getMyself(requestOptions) {
|
|
66
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
67
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
68
|
-
const
|
|
68
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
69
|
+
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);
|
|
69
70
|
const _response = yield core.fetcher({
|
|
70
71
|
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"),
|
|
71
72
|
method: "GET",
|
|
@@ -97,7 +98,7 @@ class UserClient {
|
|
|
97
98
|
return {
|
|
98
99
|
data: {
|
|
99
100
|
ok: false,
|
|
100
|
-
error:
|
|
101
|
+
error: FernVenusApi.user.getMyself.Error._unknown(_response.error),
|
|
101
102
|
rawResponse: _response.rawResponse,
|
|
102
103
|
},
|
|
103
104
|
rawResponse: _response.rawResponse,
|
|
@@ -105,7 +106,7 @@ class UserClient {
|
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
/**
|
|
108
|
-
* @param {
|
|
109
|
+
* @param {FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
|
|
109
110
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
111
|
*
|
|
111
112
|
* @example
|
|
@@ -123,7 +124,8 @@ class UserClient {
|
|
|
123
124
|
const _queryParams = {
|
|
124
125
|
pageId,
|
|
125
126
|
};
|
|
126
|
-
const
|
|
127
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
128
|
+
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);
|
|
127
129
|
const _response = yield core.fetcher({
|
|
128
130
|
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"),
|
|
129
131
|
method: "GET",
|
|
@@ -158,7 +160,7 @@ class UserClient {
|
|
|
158
160
|
return {
|
|
159
161
|
data: {
|
|
160
162
|
ok: false,
|
|
161
|
-
error:
|
|
163
|
+
error: FernVenusApi.user.getMyOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
162
164
|
unrecognizedObjectKeys: "passthrough",
|
|
163
165
|
allowUnrecognizedUnionMembers: true,
|
|
164
166
|
allowUnrecognizedEnumValues: true,
|
|
@@ -174,7 +176,7 @@ class UserClient {
|
|
|
174
176
|
return {
|
|
175
177
|
data: {
|
|
176
178
|
ok: false,
|
|
177
|
-
error:
|
|
179
|
+
error: FernVenusApi.user.getMyOrganizations.Error._unknown(_response.error),
|
|
178
180
|
rawResponse: _response.rawResponse,
|
|
179
181
|
},
|
|
180
182
|
rawResponse: _response.rawResponse,
|
|
@@ -185,7 +187,7 @@ class UserClient {
|
|
|
185
187
|
* Link user accounts with the same verified email address.
|
|
186
188
|
* Requires admin token authentication.
|
|
187
189
|
*
|
|
188
|
-
* @param {
|
|
190
|
+
* @param {FernVenusApi.LinkAccountsRequest} request
|
|
189
191
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
192
|
*
|
|
191
193
|
* @example
|
|
@@ -199,7 +201,8 @@ class UserClient {
|
|
|
199
201
|
__linkAccounts(request, requestOptions) {
|
|
200
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
203
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
202
|
-
const
|
|
204
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
205
|
+
const _headers = (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);
|
|
203
206
|
const _response = yield core.fetcher({
|
|
204
207
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users/link-accounts"),
|
|
205
208
|
method: "POST",
|
|
@@ -240,7 +243,7 @@ class UserClient {
|
|
|
240
243
|
return {
|
|
241
244
|
data: {
|
|
242
245
|
ok: false,
|
|
243
|
-
error:
|
|
246
|
+
error: FernVenusApi.user.linkAccounts.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
244
247
|
unrecognizedObjectKeys: "passthrough",
|
|
245
248
|
allowUnrecognizedUnionMembers: true,
|
|
246
249
|
allowUnrecognizedEnumValues: true,
|
|
@@ -256,7 +259,7 @@ class UserClient {
|
|
|
256
259
|
return {
|
|
257
260
|
data: {
|
|
258
261
|
ok: false,
|
|
259
|
-
error:
|
|
262
|
+
error: FernVenusApi.user.linkAccounts.Error._unknown(_response.error),
|
|
260
263
|
rawResponse: _response.rawResponse,
|
|
261
264
|
},
|
|
262
265
|
rawResponse: _response.rawResponse,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type * as core from "../../../../core/index.js";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../../../index.js";
|
|
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
|
};
|
|
@@ -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.user.getMyOrganizations.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.user.getMyOrganizations.Error._visit(this, visitor);
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
},
|
|
@@ -1,19 +1,19 @@
|
|
|
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.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
|
};
|
|
@@ -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
|
_unknown: (fetcherError) => {
|
|
41
41
|
return {
|
|
42
42
|
statusCode: undefined,
|
|
43
43
|
content: fetcherError,
|
|
44
44
|
_visit: function (visitor) {
|
|
45
|
-
return
|
|
45
|
+
return FernVenusApi.user.getMyself.Error._visit(this, visitor);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
},
|
|
@@ -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.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
|
};
|