@fern-api/venus-api-sdk 2.1.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +9 -9
- package/dist/cjs/Client.js +8 -8
- 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 +22 -27
- 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 +13 -15
- 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 +24 -24
- package/dist/cjs/api/resources/organization/client/Client.js +44 -53
- 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 +13 -15
- 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 +12 -15
- 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/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.mjs +2 -2
- package/dist/esm/Client.d.mts +9 -9
- package/dist/esm/Client.mjs +6 -6
- 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 +23 -28
- 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 +14 -16
- 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 +24 -24
- package/dist/esm/api/resources/organization/client/Client.mjs +44 -53
- 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 +14 -16
- 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 +13 -16
- 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/index.d.mts +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +2 -2
- package/dist/esm/serialization/types/Active.d.mts +2 -2
- package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +2 -2
- package/dist/esm/serialization/types/CreateTokenResponse.d.mts +2 -2
- package/dist/esm/serialization/types/Expired.d.mts +2 -2
- package/dist/esm/serialization/types/HttpValidationError.d.mts +2 -2
- package/dist/esm/serialization/types/JwtResponse.d.mts +2 -2
- package/dist/esm/serialization/types/LightweightUser.d.mts +2 -2
- package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +2 -2
- package/dist/esm/serialization/types/Maven.d.mts +2 -2
- package/dist/esm/serialization/types/MavenRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/Npm.d.mts +2 -2
- package/dist/esm/serialization/types/NpmRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/Organization.d.mts +2 -2
- package/dist/esm/serialization/types/OrganizationsPage.d.mts +2 -2
- package/dist/esm/serialization/types/Pypi.d.mts +2 -2
- package/dist/esm/serialization/types/PypiRegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/RegistryToken.d.mts +2 -2
- package/dist/esm/serialization/types/RegistryTokens.d.mts +2 -2
- package/dist/esm/serialization/types/Revoked.d.mts +2 -2
- package/dist/esm/serialization/types/TokenMetadata.d.mts +2 -2
- package/dist/esm/serialization/types/TokenStatus.d.mts +2 -2
- package/dist/esm/serialization/types/User.d.mts +2 -2
- package/dist/esm/serialization/types/ValidationError.d.mts +2 -2
- package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +54 -54
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type * as core from "../../../../core/index.js";
|
|
2
|
-
import * as
|
|
3
|
-
export type Error =
|
|
2
|
+
import * as FernVenusApi from "../../../index.js";
|
|
3
|
+
export type Error = FernVenusApi.organization.update.Error.UnprocessableEntityError | FernVenusApi.organization.update.Error._Unknown;
|
|
4
4
|
export declare namespace Error {
|
|
5
5
|
interface UnprocessableEntityError extends _Utils {
|
|
6
6
|
statusCode: 422;
|
|
7
|
-
content:
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
8
|
}
|
|
9
9
|
interface _Unknown extends _Utils {
|
|
10
10
|
statusCode: void;
|
|
11
11
|
content: core.Fetcher.Error;
|
|
12
12
|
}
|
|
13
13
|
interface _Utils {
|
|
14
|
-
_visit: <_Result>(visitor:
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.organization.update.Error._Visitor<_Result>) => _Result;
|
|
15
15
|
}
|
|
16
16
|
interface _Visitor<_Result> {
|
|
17
|
-
unprocessableEntityError: (value:
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
18
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export declare const Error: {
|
|
22
|
-
readonly unprocessableEntityError: (value:
|
|
23
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) =>
|
|
24
|
-
readonly _visit: <_Result>(value:
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.update.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.update.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.update.Error, visitor: FernVenusApi.organization.update.Error._Visitor<_Result>) => _Result;
|
|
25
25
|
};
|
|
@@ -35,14 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Error = void 0;
|
|
38
|
-
const
|
|
38
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
39
39
|
exports.Error = {
|
|
40
40
|
unprocessableEntityError: (value) => {
|
|
41
41
|
return {
|
|
42
42
|
content: value,
|
|
43
43
|
statusCode: 422,
|
|
44
44
|
_visit: function (visitor) {
|
|
45
|
-
return
|
|
45
|
+
return FernVenusApi.organization.update.Error._visit(this, visitor);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
},
|
|
@@ -51,7 +51,7 @@ exports.Error = {
|
|
|
51
51
|
statusCode: undefined,
|
|
52
52
|
content: fetcherError,
|
|
53
53
|
_visit: function (visitor) {
|
|
54
|
-
return
|
|
54
|
+
return FernVenusApi.organization.update.Error._visit(this, visitor);
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
},
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptions } 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 RegistryClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class RegistryClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<RegistryClient.Options>;
|
|
12
12
|
constructor(options: RegistryClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {FernVenusApi.GenerateRegistryTokensRequest} request
|
|
15
15
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
@@ -19,10 +19,10 @@ export declare class RegistryClient {
|
|
|
19
19
|
* organizationId: "organizationId"
|
|
20
20
|
* })
|
|
21
21
|
*/
|
|
22
|
-
generateRegistryTokens(request:
|
|
22
|
+
generateRegistryTokens(request: FernVenusApi.GenerateRegistryTokensRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.RegistryTokens, FernVenusApi.registry.generateRegistryTokens.Error>>;
|
|
23
23
|
private __generateRegistryTokens;
|
|
24
24
|
/**
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {FernVenusApi.CheckRegistryPermissionRequest} request
|
|
26
26
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
@@ -30,10 +30,10 @@ export declare class RegistryClient {
|
|
|
30
30
|
* organizationId: "organizationId"
|
|
31
31
|
* })
|
|
32
32
|
*/
|
|
33
|
-
hasRegistryPermission(request:
|
|
33
|
+
hasRegistryPermission(request: FernVenusApi.CheckRegistryPermissionRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<boolean, FernVenusApi.registry.hasRegistryPermission.Error>>;
|
|
34
34
|
private __hasRegistryPermission;
|
|
35
35
|
/**
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {FernVenusApi.RevokeTokenRequest} request
|
|
37
37
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
@@ -42,6 +42,6 @@ export declare class RegistryClient {
|
|
|
42
42
|
* token: "token"
|
|
43
43
|
* })
|
|
44
44
|
*/
|
|
45
|
-
revokeToken(request:
|
|
45
|
+
revokeToken(request: FernVenusApi.RevokeTokenRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.registry.revokeToken.Error>>;
|
|
46
46
|
private __revokeToken;
|
|
47
47
|
}
|
|
@@ -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.normalizeClientOptions)(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,8 +68,7 @@ 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
|
|
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);
|
|
71
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
72
|
const _response = yield core.fetcher({
|
|
74
73
|
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"),
|
|
75
74
|
method: "POST",
|
|
@@ -110,7 +109,7 @@ class RegistryClient {
|
|
|
110
109
|
return {
|
|
111
110
|
data: {
|
|
112
111
|
ok: false,
|
|
113
|
-
error:
|
|
112
|
+
error: FernVenusApi.registry.generateRegistryTokens.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
114
113
|
unrecognizedObjectKeys: "passthrough",
|
|
115
114
|
allowUnrecognizedUnionMembers: true,
|
|
116
115
|
allowUnrecognizedEnumValues: true,
|
|
@@ -126,7 +125,7 @@ class RegistryClient {
|
|
|
126
125
|
return {
|
|
127
126
|
data: {
|
|
128
127
|
ok: false,
|
|
129
|
-
error:
|
|
128
|
+
error: FernVenusApi.registry.generateRegistryTokens.Error._unknown(_response.error),
|
|
130
129
|
rawResponse: _response.rawResponse,
|
|
131
130
|
},
|
|
132
131
|
rawResponse: _response.rawResponse,
|
|
@@ -134,7 +133,7 @@ class RegistryClient {
|
|
|
134
133
|
});
|
|
135
134
|
}
|
|
136
135
|
/**
|
|
137
|
-
* @param {
|
|
136
|
+
* @param {FernVenusApi.CheckRegistryPermissionRequest} request
|
|
138
137
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
138
|
*
|
|
140
139
|
* @example
|
|
@@ -189,7 +188,7 @@ class RegistryClient {
|
|
|
189
188
|
return {
|
|
190
189
|
data: {
|
|
191
190
|
ok: false,
|
|
192
|
-
error:
|
|
191
|
+
error: FernVenusApi.registry.hasRegistryPermission.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
193
192
|
unrecognizedObjectKeys: "passthrough",
|
|
194
193
|
allowUnrecognizedUnionMembers: true,
|
|
195
194
|
allowUnrecognizedEnumValues: true,
|
|
@@ -205,7 +204,7 @@ class RegistryClient {
|
|
|
205
204
|
return {
|
|
206
205
|
data: {
|
|
207
206
|
ok: false,
|
|
208
|
-
error:
|
|
207
|
+
error: FernVenusApi.registry.hasRegistryPermission.Error._unknown(_response.error),
|
|
209
208
|
rawResponse: _response.rawResponse,
|
|
210
209
|
},
|
|
211
210
|
rawResponse: _response.rawResponse,
|
|
@@ -213,7 +212,7 @@ class RegistryClient {
|
|
|
213
212
|
});
|
|
214
213
|
}
|
|
215
214
|
/**
|
|
216
|
-
* @param {
|
|
215
|
+
* @param {FernVenusApi.RevokeTokenRequest} request
|
|
217
216
|
* @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
218
217
|
*
|
|
219
218
|
* @example
|
|
@@ -228,8 +227,7 @@ class RegistryClient {
|
|
|
228
227
|
__revokeToken(request, requestOptions) {
|
|
229
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230
229
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
231
|
-
const
|
|
232
|
-
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);
|
|
230
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
233
231
|
const _response = yield core.fetcher({
|
|
234
232
|
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"),
|
|
235
233
|
method: "POST",
|
|
@@ -264,7 +262,7 @@ class RegistryClient {
|
|
|
264
262
|
return {
|
|
265
263
|
data: {
|
|
266
264
|
ok: false,
|
|
267
|
-
error:
|
|
265
|
+
error: FernVenusApi.registry.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
268
266
|
unrecognizedObjectKeys: "passthrough",
|
|
269
267
|
allowUnrecognizedUnionMembers: true,
|
|
270
268
|
allowUnrecognizedEnumValues: true,
|
|
@@ -280,7 +278,7 @@ class RegistryClient {
|
|
|
280
278
|
return {
|
|
281
279
|
data: {
|
|
282
280
|
ok: false,
|
|
283
|
-
error:
|
|
281
|
+
error: FernVenusApi.registry.revokeToken.Error._unknown(_response.error),
|
|
284
282
|
rawResponse: _response.rawResponse,
|
|
285
283
|
},
|
|
286
284
|
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 NormalizedClientOptions } 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: NormalizedClientOptions<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.normalizeClientOptions)(options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,8 +65,7 @@ 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
|
|
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);
|
|
68
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
70
69
|
const _response = yield core.fetcher({
|
|
71
70
|
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"),
|
|
72
71
|
method: "GET",
|
|
@@ -98,7 +97,7 @@ class UserClient {
|
|
|
98
97
|
return {
|
|
99
98
|
data: {
|
|
100
99
|
ok: false,
|
|
101
|
-
error:
|
|
100
|
+
error: FernVenusApi.user.getMyself.Error._unknown(_response.error),
|
|
102
101
|
rawResponse: _response.rawResponse,
|
|
103
102
|
},
|
|
104
103
|
rawResponse: _response.rawResponse,
|
|
@@ -106,7 +105,7 @@ class UserClient {
|
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
107
|
/**
|
|
109
|
-
* @param {
|
|
108
|
+
* @param {FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
|
|
110
109
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
110
|
*
|
|
112
111
|
* @example
|
|
@@ -124,8 +123,7 @@ class UserClient {
|
|
|
124
123
|
const _queryParams = {
|
|
125
124
|
pageId,
|
|
126
125
|
};
|
|
127
|
-
const
|
|
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);
|
|
126
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
129
127
|
const _response = yield core.fetcher({
|
|
130
128
|
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"),
|
|
131
129
|
method: "GET",
|
|
@@ -160,7 +158,7 @@ class UserClient {
|
|
|
160
158
|
return {
|
|
161
159
|
data: {
|
|
162
160
|
ok: false,
|
|
163
|
-
error:
|
|
161
|
+
error: FernVenusApi.user.getMyOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
164
162
|
unrecognizedObjectKeys: "passthrough",
|
|
165
163
|
allowUnrecognizedUnionMembers: true,
|
|
166
164
|
allowUnrecognizedEnumValues: true,
|
|
@@ -176,7 +174,7 @@ class UserClient {
|
|
|
176
174
|
return {
|
|
177
175
|
data: {
|
|
178
176
|
ok: false,
|
|
179
|
-
error:
|
|
177
|
+
error: FernVenusApi.user.getMyOrganizations.Error._unknown(_response.error),
|
|
180
178
|
rawResponse: _response.rawResponse,
|
|
181
179
|
},
|
|
182
180
|
rawResponse: _response.rawResponse,
|
|
@@ -187,7 +185,7 @@ class UserClient {
|
|
|
187
185
|
* Link user accounts with the same verified email address.
|
|
188
186
|
* Requires admin token authentication.
|
|
189
187
|
*
|
|
190
|
-
* @param {
|
|
188
|
+
* @param {FernVenusApi.LinkAccountsRequest} request
|
|
191
189
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
190
|
*
|
|
193
191
|
* @example
|
|
@@ -201,8 +199,7 @@ class UserClient {
|
|
|
201
199
|
__linkAccounts(request, requestOptions) {
|
|
202
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
203
201
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
204
|
-
const
|
|
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);
|
|
202
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
206
203
|
const _response = yield core.fetcher({
|
|
207
204
|
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"),
|
|
208
205
|
method: "POST",
|
|
@@ -243,7 +240,7 @@ class UserClient {
|
|
|
243
240
|
return {
|
|
244
241
|
data: {
|
|
245
242
|
ok: false,
|
|
246
|
-
error:
|
|
243
|
+
error: FernVenusApi.user.linkAccounts.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
247
244
|
unrecognizedObjectKeys: "passthrough",
|
|
248
245
|
allowUnrecognizedUnionMembers: true,
|
|
249
246
|
allowUnrecognizedEnumValues: true,
|
|
@@ -259,7 +256,7 @@ class UserClient {
|
|
|
259
256
|
return {
|
|
260
257
|
data: {
|
|
261
258
|
ok: false,
|
|
262
|
-
error:
|
|
259
|
+
error: FernVenusApi.user.linkAccounts.Error._unknown(_response.error),
|
|
263
260
|
rawResponse: _response.rawResponse,
|
|
264
261
|
},
|
|
265
262
|
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
|
};
|