Files
hashiccandZhihe Li b42ecbff36 Add api client for playwright e2e tests (#2901)
* chore: 🤖 add @openapitools/openapi-generator-cli

* chore: 🤖 Add @nestjs/core and @openapitools/openapi-generator-cli to ignoredBuiltDependencies

These packages use postinstall for a opencollective notice

* chore: 🤖 add package.json scripts for open-api client gen

* chore: 🤖 add openapi generated files

* chore: 🤖 add boundary api client fixture

* chore: 🤖 incorporate api client fixture with base fixture

* chore: 🤖 migrate existing test to use boundary api fixture

* refactor: 💡 remove org cleanup from test

* refactor: 💡 update sorting e2e test to use api client

* refactor: 💡 clean up api client resource clean up logging

* docs: ✏️ update jsdoc links for domain clients

* chore: 🤖 avoid adding copywright headers to generated api

* Add missing copyright headers

* chore: 🤖 remove fetch argument from api client class

The hope was to use request.fetch but playwright's fetch is a
non-standard fetch which causes the generated api client to fail when
using .clone() on the response

* chore: 🤖 add optional OPENAPI_SWAGGER_URL_OR_FILE for openapi-client
generation

The OPENAPI_SWAGGER_URL_OR_FILE env var can be used to specify the
-i flag the generate:api-client script with either:
* a relative path
* an absolute path
* a url like: https://raw.githubusercontent.com/hashicorp/boundary/refs/heads/main/internal/gen/controller.swagger.json

* refactor: 💡 clean up and refactor boundary-api-client fixture

* chore: 🤖 add extra doc links and delete methods

* test: 💍 add test to ensure that api-client fixture works

* test: 💍 update existing e2e test examples with api-client

* docs: ✏️ add comment for api-client e2e test

* docs: ✏️ add additional links to service docs for api clients

* refactor: 💡 cleanup api-client and corresponding test

* docs: ✏️ add api client fixture docs to e2e README

* fix: 🐛 fix regex

* remove unnecessary capture group
* add "-" to regex to allow for url segments like "storage-buckets" in
  "/v1/storage-buckets"

* docs: ✏️ comment potential edge case in e2e api client cleanup

* docs: ✏️ fix comment typo

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

* docs: ✏️ remove auth flag for generating e2e client

* docs: ✏️ add mention that java is required for generate:api

* chore: 🤖 implement pr feedback

* chore: 🤖 Clean up api client and add more extensive test

* chore: 🤖 fix casing in api-client test

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

---------

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
2025-08-12 18:08:35 -04:00

225 lines
14 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
export * from './ControllerApiResourcesAccountsV1Account';
export * from './ControllerApiResourcesAliasesV1Alias';
export * from './ControllerApiResourcesAuthmethodsV1AuthMethod';
export * from './ControllerApiResourcesAuthtokensV1AuthToken';
export * from './ControllerApiResourcesBillingV1ActiveUsers';
export * from './ControllerApiResourcesCredentiallibrariesV1CredentialLibrary';
export * from './ControllerApiResourcesCredentialsV1Credential';
export * from './ControllerApiResourcesCredentialstoresV1CredentialStore';
export * from './ControllerApiResourcesGroupsV1Group';
export * from './ControllerApiResourcesGroupsV1Member';
export * from './ControllerApiResourcesHostcatalogsV1HostCatalog';
export * from './ControllerApiResourcesHostsV1Host';
export * from './ControllerApiResourcesHostsetsV1HostSet';
export * from './ControllerApiResourcesManagedgroupsV1ManagedGroup';
export * from './ControllerApiResourcesPluginsV1PluginInfo';
export * from './ControllerApiResourcesPoliciesV1Policy';
export * from './ControllerApiResourcesRolesV1Grant';
export * from './ControllerApiResourcesRolesV1GrantJson';
export * from './ControllerApiResourcesRolesV1Principal';
export * from './ControllerApiResourcesRolesV1Role';
export * from './ControllerApiResourcesScopesV1Key';
export * from './ControllerApiResourcesScopesV1KeyVersion';
export * from './ControllerApiResourcesScopesV1KeyVersionDestructionJob';
export * from './ControllerApiResourcesScopesV1Scope';
export * from './ControllerApiResourcesScopesV1ScopeInfo';
export * from './ControllerApiResourcesSessionrecordingsV1ChannelRecording';
export * from './ControllerApiResourcesSessionrecordingsV1ConnectionRecording';
export * from './ControllerApiResourcesSessionrecordingsV1Credential';
export * from './ControllerApiResourcesSessionrecordingsV1CredentialLibrary';
export * from './ControllerApiResourcesSessionrecordingsV1CredentialStore';
export * from './ControllerApiResourcesSessionrecordingsV1Host';
export * from './ControllerApiResourcesSessionrecordingsV1HostCatalog';
export * from './ControllerApiResourcesSessionrecordingsV1SessionRecording';
export * from './ControllerApiResourcesSessionrecordingsV1Target';
export * from './ControllerApiResourcesSessionrecordingsV1User';
export * from './ControllerApiResourcesSessionrecordingsV1ValuesAtTime';
export * from './ControllerApiResourcesSessionsV1Connection';
export * from './ControllerApiResourcesSessionsV1Session';
export * from './ControllerApiResourcesSessionsV1SessionState';
export * from './ControllerApiResourcesStoragebucketsV1StorageBucket';
export * from './ControllerApiResourcesTargetsV1Alias';
export * from './ControllerApiResourcesTargetsV1AuthorizeSessionArguments';
export * from './ControllerApiResourcesTargetsV1CredentialSource';
export * from './ControllerApiResourcesTargetsV1HostSource';
export * from './ControllerApiResourcesTargetsV1SessionAuthorization';
export * from './ControllerApiResourcesTargetsV1SessionCredential';
export * from './ControllerApiResourcesTargetsV1SessionSecret';
export * from './ControllerApiResourcesTargetsV1Target';
export * from './ControllerApiResourcesTargetsV1TargetAliasAttributes';
export * from './ControllerApiResourcesUsersV1Account';
export * from './ControllerApiResourcesUsersV1User';
export * from './ControllerApiResourcesWorkersV1Certificate';
export * from './ControllerApiResourcesWorkersV1CertificateAuthority';
export * from './ControllerApiResourcesWorkersV1RemoteStoragePermissions';
export * from './ControllerApiResourcesWorkersV1RemoteStorageState';
export * from './ControllerApiResourcesWorkersV1Worker';
export * from './ControllerApiServicesV1AccountServiceChangePasswordBody';
export * from './ControllerApiServicesV1AccountServiceSetPasswordBody';
export * from './ControllerApiServicesV1AddGroupMembersResponse';
export * from './ControllerApiServicesV1AddHostSetHostsResponse';
export * from './ControllerApiServicesV1AddRoleGrantScopesResponse';
export * from './ControllerApiServicesV1AddRoleGrantsResponse';
export * from './ControllerApiServicesV1AddRolePrincipalsResponse';
export * from './ControllerApiServicesV1AddTargetCredentialSourcesResponse';
export * from './ControllerApiServicesV1AddTargetHostSourcesResponse';
export * from './ControllerApiServicesV1AddUserAccountsResponse';
export * from './ControllerApiServicesV1AddWorkerTagsResponse';
export * from './ControllerApiServicesV1AttachStoragePolicyResponse';
export * from './ControllerApiServicesV1AuthMethodServiceAuthenticateBody';
export * from './ControllerApiServicesV1AuthMethodServiceChangeStateBody';
export * from './ControllerApiServicesV1AuthenticateResponse';
export * from './ControllerApiServicesV1AuthorizeSessionResponse';
export * from './ControllerApiServicesV1CancelSessionResponse';
export * from './ControllerApiServicesV1ChangePasswordResponse';
export * from './ControllerApiServicesV1ChangeStateResponse';
export * from './ControllerApiServicesV1CreateAccountResponse';
export * from './ControllerApiServicesV1CreateAliasResponse';
export * from './ControllerApiServicesV1CreateAuthMethodResponse';
export * from './ControllerApiServicesV1CreateControllerLedResponse';
export * from './ControllerApiServicesV1CreateCredentialLibraryResponse';
export * from './ControllerApiServicesV1CreateCredentialResponse';
export * from './ControllerApiServicesV1CreateCredentialStoreResponse';
export * from './ControllerApiServicesV1CreateGroupResponse';
export * from './ControllerApiServicesV1CreateHostCatalogResponse';
export * from './ControllerApiServicesV1CreateHostResponse';
export * from './ControllerApiServicesV1CreateHostSetResponse';
export * from './ControllerApiServicesV1CreateManagedGroupResponse';
export * from './ControllerApiServicesV1CreatePolicyResponse';
export * from './ControllerApiServicesV1CreateRoleResponse';
export * from './ControllerApiServicesV1CreateScopeResponse';
export * from './ControllerApiServicesV1CreateStorageBucketResponse';
export * from './ControllerApiServicesV1CreateTargetResponse';
export * from './ControllerApiServicesV1CreateUserResponse';
export * from './ControllerApiServicesV1CreateWorkerLedResponse';
export * from './ControllerApiServicesV1DestroyKeyVersionRequest';
export * from './ControllerApiServicesV1DestroyKeyVersionResponse';
export * from './ControllerApiServicesV1DetachStoragePolicyResponse';
export * from './ControllerApiServicesV1GetAccountResponse';
export * from './ControllerApiServicesV1GetAliasResponse';
export * from './ControllerApiServicesV1GetAuthMethodResponse';
export * from './ControllerApiServicesV1GetAuthTokenResponse';
export * from './ControllerApiServicesV1GetCredentialLibraryResponse';
export * from './ControllerApiServicesV1GetCredentialResponse';
export * from './ControllerApiServicesV1GetCredentialStoreResponse';
export * from './ControllerApiServicesV1GetGroupResponse';
export * from './ControllerApiServicesV1GetHostCatalogResponse';
export * from './ControllerApiServicesV1GetHostResponse';
export * from './ControllerApiServicesV1GetHostSetResponse';
export * from './ControllerApiServicesV1GetManagedGroupResponse';
export * from './ControllerApiServicesV1GetPolicyResponse';
export * from './ControllerApiServicesV1GetRoleResponse';
export * from './ControllerApiServicesV1GetScopeResponse';
export * from './ControllerApiServicesV1GetSessionRecordingResponse';
export * from './ControllerApiServicesV1GetSessionResponse';
export * from './ControllerApiServicesV1GetStorageBucketResponse';
export * from './ControllerApiServicesV1GetTargetResponse';
export * from './ControllerApiServicesV1GetUserResponse';
export * from './ControllerApiServicesV1GetWorkerResponse';
export * from './ControllerApiServicesV1GroupServiceAddGroupMembersBody';
export * from './ControllerApiServicesV1GroupServiceRemoveGroupMembersBody';
export * from './ControllerApiServicesV1GroupServiceSetGroupMembersBody';
export * from './ControllerApiServicesV1HostSetServiceAddHostSetHostsBody';
export * from './ControllerApiServicesV1HostSetServiceRemoveHostSetHostsBody';
export * from './ControllerApiServicesV1HostSetServiceSetHostSetHostsBody';
export * from './ControllerApiServicesV1ListAccountsResponse';
export * from './ControllerApiServicesV1ListAliasesResponse';
export * from './ControllerApiServicesV1ListAuthMethodsResponse';
export * from './ControllerApiServicesV1ListAuthTokensResponse';
export * from './ControllerApiServicesV1ListCredentialLibrariesResponse';
export * from './ControllerApiServicesV1ListCredentialStoresResponse';
export * from './ControllerApiServicesV1ListCredentialsResponse';
export * from './ControllerApiServicesV1ListGroupsResponse';
export * from './ControllerApiServicesV1ListHostCatalogsResponse';
export * from './ControllerApiServicesV1ListHostSetsResponse';
export * from './ControllerApiServicesV1ListHostsResponse';
export * from './ControllerApiServicesV1ListKeyVersionDestructionJobsResponse';
export * from './ControllerApiServicesV1ListKeysResponse';
export * from './ControllerApiServicesV1ListManagedGroupsResponse';
export * from './ControllerApiServicesV1ListPoliciesResponse';
export * from './ControllerApiServicesV1ListResolvableAliasesResponse';
export * from './ControllerApiServicesV1ListRolesResponse';
export * from './ControllerApiServicesV1ListScopesResponse';
export * from './ControllerApiServicesV1ListSessionRecordingsResponse';
export * from './ControllerApiServicesV1ListSessionsResponse';
export * from './ControllerApiServicesV1ListStorageBucketsResponse';
export * from './ControllerApiServicesV1ListTargetsResponse';
export * from './ControllerApiServicesV1ListUsersResponse';
export * from './ControllerApiServicesV1ListWorkersResponse';
export * from './ControllerApiServicesV1MonthlyActiveUsersResponse';
export * from './ControllerApiServicesV1ReApplyStoragePolicyResponse';
export * from './ControllerApiServicesV1ReadCertificateAuthorityResponse';
export * from './ControllerApiServicesV1ReinitializeCertificateAuthorityResponse';
export * from './ControllerApiServicesV1RemoveGroupMembersResponse';
export * from './ControllerApiServicesV1RemoveHostSetHostsResponse';
export * from './ControllerApiServicesV1RemoveRoleGrantScopesResponse';
export * from './ControllerApiServicesV1RemoveRoleGrantsResponse';
export * from './ControllerApiServicesV1RemoveRolePrincipalsResponse';
export * from './ControllerApiServicesV1RemoveTargetCredentialSourcesResponse';
export * from './ControllerApiServicesV1RemoveTargetHostSourcesResponse';
export * from './ControllerApiServicesV1RemoveUserAccountsResponse';
export * from './ControllerApiServicesV1RemoveWorkerTagsResponse';
export * from './ControllerApiServicesV1RoleServiceAddRoleGrantScopesBody';
export * from './ControllerApiServicesV1RoleServiceAddRoleGrantsBody';
export * from './ControllerApiServicesV1RoleServiceAddRolePrincipalsBody';
export * from './ControllerApiServicesV1RoleServiceRemoveRoleGrantScopesBody';
export * from './ControllerApiServicesV1RoleServiceRemoveRoleGrantsBody';
export * from './ControllerApiServicesV1RoleServiceRemoveRolePrincipalsBody';
export * from './ControllerApiServicesV1RoleServiceSetRoleGrantScopesBody';
export * from './ControllerApiServicesV1RoleServiceSetRoleGrantsBody';
export * from './ControllerApiServicesV1RoleServiceSetRolePrincipalsBody';
export * from './ControllerApiServicesV1RotateKeysRequest';
export * from './ControllerApiServicesV1ScopeServiceAttachStoragePolicyBody';
export * from './ControllerApiServicesV1ScopeServiceDetachStoragePolicyBody';
export * from './ControllerApiServicesV1SessionServiceCancelSessionBody';
export * from './ControllerApiServicesV1SetGroupMembersResponse';
export * from './ControllerApiServicesV1SetHostSetHostsResponse';
export * from './ControllerApiServicesV1SetPasswordResponse';
export * from './ControllerApiServicesV1SetRoleGrantScopesResponse';
export * from './ControllerApiServicesV1SetRoleGrantsResponse';
export * from './ControllerApiServicesV1SetRolePrincipalsResponse';
export * from './ControllerApiServicesV1SetTargetCredentialSourcesResponse';
export * from './ControllerApiServicesV1SetTargetHostSourcesResponse';
export * from './ControllerApiServicesV1SetUserAccountsResponse';
export * from './ControllerApiServicesV1SetWorkerTagsResponse';
export * from './ControllerApiServicesV1TargetServiceAddTargetCredentialSourcesBody';
export * from './ControllerApiServicesV1TargetServiceAddTargetHostSourcesBody';
export * from './ControllerApiServicesV1TargetServiceAuthorizeSessionBody';
export * from './ControllerApiServicesV1TargetServiceRemoveTargetCredentialSourcesBody';
export * from './ControllerApiServicesV1TargetServiceRemoveTargetHostSourcesBody';
export * from './ControllerApiServicesV1TargetServiceSetTargetCredentialSourcesBody';
export * from './ControllerApiServicesV1TargetServiceSetTargetHostSourcesBody';
export * from './ControllerApiServicesV1UpdateAccountResponse';
export * from './ControllerApiServicesV1UpdateAliasResponse';
export * from './ControllerApiServicesV1UpdateAuthMethodResponse';
export * from './ControllerApiServicesV1UpdateCredentialLibraryResponse';
export * from './ControllerApiServicesV1UpdateCredentialResponse';
export * from './ControllerApiServicesV1UpdateCredentialStoreResponse';
export * from './ControllerApiServicesV1UpdateGroupResponse';
export * from './ControllerApiServicesV1UpdateHostCatalogResponse';
export * from './ControllerApiServicesV1UpdateHostResponse';
export * from './ControllerApiServicesV1UpdateHostSetResponse';
export * from './ControllerApiServicesV1UpdateManagedGroupResponse';
export * from './ControllerApiServicesV1UpdatePolicyResponse';
export * from './ControllerApiServicesV1UpdateRoleResponse';
export * from './ControllerApiServicesV1UpdateScopeResponse';
export * from './ControllerApiServicesV1UpdateStorageBucketResponse';
export * from './ControllerApiServicesV1UpdateTargetResponse';
export * from './ControllerApiServicesV1UpdateUserResponse';
export * from './ControllerApiServicesV1UpdateWorkerResponse';
export * from './ControllerApiServicesV1UserServiceAddUserAccountsBody';
export * from './ControllerApiServicesV1UserServiceRemoveUserAccountsBody';
export * from './ControllerApiServicesV1UserServiceSetUserAccountsBody';
export * from './ControllerApiServicesV1WorkerServiceAddWorkerTagsBody';
export * from './ControllerApiServicesV1WorkerServiceRemoveWorkerTagsBody';
export * from './ControllerApiServicesV1WorkerServiceSetWorkerTagsBody';
export * from './ControllerApiV1Error';
export * from './ControllerApiV1ErrorDetails';
export * from './ControllerApiV1FieldError';
export * from './ControllerApiV1WrappedError';
export * from './GoogleApiHttpBody';
export * from './GoogleProtobufAny';
export * from './GoogleProtobufNullValue';