Files
threshold-ui/e2e-tests/api-client/.openapi-generator/FILES
T
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

250 lines
13 KiB
Plaintext

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