From 8296f3fb3152b5338bef28ee3e18859a634355f7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 27 Sep 2024 00:16:29 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.403.3 --- .speakeasy/gen.lock | 506 ++++++++++++- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +- README.md | 128 ++-- RELEASES.md | 12 +- USAGE.md | 7 +- composer.json | 2 +- ...Request.md => CheckGithubAccessRequest.md} | 2 +- .../Operations/CheckGithubAccessResponse.md | 10 + .../ConfigureCodeSamplesResponse.md | 12 - .../Operations/CreateFreeTrialResponse.md | 3 +- ...ponse.md => CreateOrganizationResponse.md} | 4 +- ...Response.md => CreateWorkspaceResponse.md} | 4 +- .../Operations/CreateWorkspaceTokenRequest.md | 9 + .../CreateWorkspaceTokenResponse.md | 10 + .../Operations/DeleteApiEndpointResponse.md | 3 +- docs/Models/Operations/DeleteApiResponse.md | 3 +- .../Models/Operations/DeleteSchemaResponse.md | 3 +- .../DeleteVersionMetadataResponse.md | 3 +- .../Operations/DeleteWorkspaceTokenRequest.md | 9 + .../DeleteWorkspaceTokenResponse.md | 10 + .../Operations/DownloadSchemaResponse.md | 5 +- .../DownloadSchemaRevisionResponse.md | 5 +- .../Operations/FetchPublishingPRsResponse.md | 12 - .../Operations/FindApiEndpointResponse.md | 3 +- ...nerateOpenApiSpecForApiEndpointResponse.md | 1 - .../Operations/GenerateOpenApiSpecResponse.md | 1 - ...PostmanCollectionForApiEndpointResponse.md | 1 - .../GeneratePostmanCollectionResponse.md | 1 - ...enerateRequestPostmanCollectionResponse.md | 1 - .../Operations/GetAccessTokenResponse.md | 3 +- docs/Models/Operations/GetActionResponse.md | 12 - .../Operations/GetAllApiEndpointsResponse.md | 3 +- .../Operations/GetAllApiVersionsResponse.md | 3 +- .../GetAllForVersionApiEndpointsResponse.md | 3 +- .../Operations/GetApiEndpointResponse.md | 3 +- docs/Models/Operations/GetApisResponse.md | 3 +- docs/Models/Operations/GetBlobResponse.md | 3 +- .../Operations/GetEmbedAccessTokenResponse.md | 3 +- ...onRequest.md => GetGitHubActionRequest.md} | 2 +- .../Operations/GetGitHubActionResponse.md | 11 + docs/Models/Operations/GetManifestResponse.md | 1 - .../Operations/GetNamespacesResponse.md | 1 - .../Operations/GetOrganizationResponse.md | 1 - .../GetOrganizationUsageResponse.md | 1 - .../Operations/GetOrganizationsResponse.md | 1 - .../GetRequestFromEventLogResponse.md | 1 - .../Models/Operations/GetRevisionsResponse.md | 1 - .../Operations/GetSchemaDiffResponse.md | 1 - docs/Models/Operations/GetSchemaResponse.md | 1 - .../Operations/GetSchemaRevisionResponse.md | 1 - docs/Models/Operations/GetSchemasResponse.md | 1 - docs/Models/Operations/GetTagsResponse.md | 1 - docs/Models/Operations/GetUserResponse.md | 1 - .../GetValidEmbedAccessTokensResponse.md | 3 +- .../Operations/GetVersionMetadataResponse.md | 1 - .../GetWorkspaceByContextResponse.md | 1 - .../GetWorkspaceEventsByTargetRequest.md | 6 +- .../GetWorkspaceFeatureFlagsRequest.md | 2 +- docs/Models/Operations/GetWorkspaceRequest.md | 2 +- .../Models/Operations/GetWorkspaceResponse.md | 1 - .../Operations/GetWorkspaceSettingsRequest.md | 8 + .../GetWorkspaceSettingsResponse.md | 11 + .../GetWorkspaceTargetsDeprecatedRequest.md | 9 + .../GetWorkspaceTargetsDeprecatedResponse.md | 11 + .../Operations/GetWorkspaceTargetsRequest.md | 3 +- .../Operations/GetWorkspaceTeamRequest.md | 8 + ...esponse.md => GetWorkspaceTeamResponse.md} | 4 +- .../Operations/GetWorkspaceTokensRequest.md | 8 + .../Operations/GetWorkspaceTokensResponse.md | 11 + ...ssResponse.md => GetWorkspacesResponse.md} | 4 +- ....md => GithubCheckPublishingPRsRequest.md} | 2 +- .../GithubCheckPublishingPRsResponse.md | 11 + .../GithubCheckPublishingSecretsResponse.md | 1 - .../GithubConfigureCodeSamplesResponse.md | 11 + .../GithubConfigureMintlifyRepoResponse.md | 10 + .../GithubConfigureTargetResponse.md | 10 + .../GithubStorePublishingSecretsResponse.md | 3 +- .../Operations/GithubTriggerActionResponse.md | 10 + .../GrantUserAccessToWorkspaceRequest.md | 9 + .../GrantUserAccessToWorkspaceResponse.md | 11 + .../InsertVersionMetadataResponse.md | 1 - docs/Models/Operations/PostTagsResponse.md | 3 +- .../Operations/PostWorkspaceEventsRequest.md | 2 +- docs/Models/Operations/PreflightResponse.md | 1 - .../Operations/QueryEventLogResponse.md | 3 +- .../Operations/RegisterSchemaResponse.md | 3 +- .../RevokeEmbedAccessTokenResponse.md | 3 +- .../RevokeUserAccessToWorkspaceRequest.md | 9 + .../RevokeUserAccessToWorkspaceResponse.md | 10 + .../SearchWorkspaceEventsRequest.md | 4 +- .../UpdateWorkspaceDetailsRequest.md | 9 + .../UpdateWorkspaceDetailsResponse.md | 10 + .../UpdateWorkspaceSettingsRequest.md | 9 + .../UpdateWorkspaceSettingsResponse.md | 10 + .../Operations/UpsertApiEndpointResponse.md | 3 +- docs/Models/Operations/UpsertApiResponse.md | 3 +- .../Operations/ValidateApiKeyResponse.md | 3 +- docs/Models/Shared/ApiEndpointInput.md | 15 + docs/Models/Shared/ApiInput.md | 13 + docs/Models/Shared/Organization.md | 8 +- docs/Models/Shared/Relationship.md | 9 + docs/Models/Shared/SSOMetadata.md | 11 + docs/Models/Shared/User.md | 2 +- docs/Models/Shared/VersionMetadataInput.md | 11 + docs/Models/Shared/WorkspaceInviteResponse.md | 11 + docs/Models/Shared/WorkspaceSettings.md | 9 + docs/Models/Shared/WorkspaceTeamResponse.md | 11 + docs/Models/Shared/WorkspaceToken.md | 18 + docs/sdks/apiendpoints/README.md | 115 +-- docs/sdks/apis/README.md | 71 +- docs/sdks/artifacts/README.md | 57 +- docs/sdks/auth/README.md | 92 +-- docs/sdks/embeds/README.md | 27 +- docs/sdks/events/README.md | 121 +++- docs/sdks/github/README.md | 207 +++--- docs/sdks/metadata/README.md | 37 +- docs/sdks/organizations/README.md | 120 ++- docs/sdks/reports/README.md | 22 +- docs/sdks/requests/README.md | 29 +- docs/sdks/schemas/README.md | 111 +-- docs/sdks/shorturls/README.md | 8 +- docs/sdks/suggest/README.md | 48 +- docs/sdks/workspaces/README.md | 682 +++++++++++++++++- src/ApiEndpoints.php | 146 ++-- src/Apis.php | 110 ++- src/Artifacts.php | 130 ++-- src/Auth.php | 136 ++-- src/Embeds.php | 54 +- src/Events.php | 68 +- src/Github.php | 366 +++++----- src/Metadata.php | 54 +- ...quest.php => CheckGithubAccessRequest.php} | 2 +- ...onse.php => CheckGithubAccessResponse.php} | 15 +- .../Operations/CreateFreeTrialResponse.php | 13 +- .../Operations/CreateOrganizationResponse.php | 55 ++ ...sponse.php => CreateWorkspaceResponse.php} | 24 +- .../CreateWorkspaceTokenRequest.php | 39 + .../CreateWorkspaceTokenResponse.php | 46 ++ .../Operations/DeleteApiEndpointResponse.php | 13 +- src/Models/Operations/DeleteApiResponse.php | 13 +- .../Operations/DeleteSchemaResponse.php | 13 +- .../DeleteVersionMetadataResponse.php | 13 +- .../DeleteWorkspaceTokenRequest.php | 39 + .../DeleteWorkspaceTokenResponse.php | 46 ++ .../Operations/DownloadSchemaResponse.php | 29 +- .../DownloadSchemaRevisionResponse.php | 29 +- .../Operations/FindApiEndpointResponse.php | 12 +- ...erateOpenApiSpecForApiEndpointResponse.php | 12 +- .../GenerateOpenApiSpecResponse.php | 12 +- ...ostmanCollectionForApiEndpointResponse.php | 13 +- .../GeneratePostmanCollectionResponse.php | 13 +- ...nerateRequestPostmanCollectionResponse.php | 13 +- .../Operations/GetAccessTokenResponse.php | 12 +- .../Operations/GetAllApiEndpointsResponse.php | 12 +- .../Operations/GetAllApiVersionsResponse.php | 12 +- .../GetAllForVersionApiEndpointsResponse.php | 12 +- .../Operations/GetApiEndpointResponse.php | 12 +- src/Models/Operations/GetApisResponse.php | 12 +- src/Models/Operations/GetBlobResponse.php | 13 +- .../GetEmbedAccessTokenResponse.php | 12 +- ...Request.php => GetGitHubActionRequest.php} | 2 +- ...sponse.php => GetGitHubActionResponse.php} | 14 +- src/Models/Operations/GetManifestResponse.php | 12 +- .../Operations/GetNamespacesResponse.php | 12 +- .../Operations/GetOrganizationResponse.php | 12 +- .../GetOrganizationUsageResponse.php | 12 +- .../Operations/GetOrganizationsResponse.php | 12 +- .../GetRequestFromEventLogResponse.php | 12 +- .../Operations/GetRevisionsResponse.php | 12 +- .../Operations/GetSchemaDiffResponse.php | 12 +- src/Models/Operations/GetSchemaResponse.php | 12 +- .../Operations/GetSchemaRevisionResponse.php | 12 +- src/Models/Operations/GetSchemasResponse.php | 12 +- src/Models/Operations/GetTagsResponse.php | 12 +- src/Models/Operations/GetUserResponse.php | 12 +- .../GetValidEmbedAccessTokensResponse.php | 12 +- .../Operations/GetVersionMetadataResponse.php | 12 +- .../GetWorkspaceByContextResponse.php | 12 +- .../GetWorkspaceEventsByTargetRequest.php | 22 +- .../GetWorkspaceFeatureFlagsRequest.php | 12 +- src/Models/Operations/GetWorkspaceRequest.php | 12 +- .../Operations/GetWorkspaceResponse.php | 12 +- .../GetWorkspaceSettingsRequest.php | 29 + .../GetWorkspaceSettingsResponse.php | 55 ++ .../GetWorkspaceTargetsDeprecatedRequest.php | 39 + .../GetWorkspaceTargetsDeprecatedResponse.php | 55 ++ .../Operations/GetWorkspaceTargetsRequest.php | 12 +- .../Operations/GetWorkspaceTeamRequest.php | 29 + .../Operations/GetWorkspaceTeamResponse.php | 55 ++ .../Operations/GetWorkspaceTokensRequest.php | 29 + ...nse.php => GetWorkspaceTokensResponse.php} | 24 +- ...Response.php => GetWorkspacesResponse.php} | 24 +- ...hp => GithubCheckPublishingPRsRequest.php} | 2 +- ...p => GithubCheckPublishingPRsResponse.php} | 14 +- .../GithubCheckPublishingSecretsResponse.php | 12 +- ...=> GithubConfigureCodeSamplesResponse.php} | 14 +- .../GithubConfigureMintlifyRepoResponse.php | 46 ++ .../GithubConfigureTargetResponse.php | 46 ++ .../GithubStorePublishingSecretsResponse.php | 13 +- .../GithubTriggerActionResponse.php | 46 ++ .../GrantUserAccessToWorkspaceRequest.php | 39 + .../GrantUserAccessToWorkspaceResponse.php | 55 ++ .../InsertVersionMetadataResponse.php | 12 +- src/Models/Operations/PostTagsResponse.php | 13 +- .../Operations/PostWorkspaceEventsRequest.php | 12 +- src/Models/Operations/PreflightResponse.php | 12 +- .../Operations/QueryEventLogResponse.php | 12 +- .../Operations/RegisterSchemaResponse.php | 13 +- .../RevokeEmbedAccessTokenResponse.php | 13 +- .../RevokeUserAccessToWorkspaceRequest.php | 39 + .../RevokeUserAccessToWorkspaceResponse.php | 46 ++ .../SearchWorkspaceEventsRequest.php | 12 +- .../UpdateWorkspaceDetailsRequest.php | 40 + .../UpdateWorkspaceDetailsResponse.php | 46 ++ .../UpdateWorkspaceSettingsRequest.php | 40 + .../UpdateWorkspaceSettingsResponse.php | 46 ++ .../Operations/UpsertApiEndpointResponse.php | 12 +- src/Models/Operations/UpsertApiResponse.php | 12 +- .../Operations/ValidateApiKeyResponse.php | 12 +- src/Models/Shared/Organization.php | 29 +- src/Models/Shared/Relationship.php | 37 + src/Models/Shared/SSOMetadata.php | 40 + src/Models/Shared/User.php | 11 +- src/Models/Shared/WorkspaceInviteResponse.php | 40 + src/Models/Shared/WorkspaceSettings.php | 38 + src/Models/Shared/WorkspaceTeamResponse.php | 43 ++ src/Models/Shared/WorkspaceToken.php | 105 +++ src/Organizations.php | 169 +++-- src/Reports.php | 6 +- src/Requests.php | 56 +- src/SDKConfiguration.php | 6 +- src/Schemas.php | 152 ++-- src/ShortURLs.php | 2 +- src/Suggest.php | 6 +- src/Workspaces.php | 592 ++++++++++++++- 236 files changed, 5030 insertions(+), 2189 deletions(-) rename docs/Models/Operations/{CheckAccessRequest.md => CheckGithubAccessRequest.md} (92%) create mode 100644 docs/Models/Operations/CheckGithubAccessResponse.md delete mode 100644 docs/Models/Operations/ConfigureCodeSamplesResponse.md rename docs/Models/Operations/{ConfigureMintlifyRepoResponse.md => CreateOrganizationResponse.md} (89%) rename docs/Models/Operations/{ConfigureTargetResponse.md => CreateWorkspaceResponse.md} (89%) create mode 100644 docs/Models/Operations/CreateWorkspaceTokenRequest.md create mode 100644 docs/Models/Operations/CreateWorkspaceTokenResponse.md create mode 100644 docs/Models/Operations/DeleteWorkspaceTokenRequest.md create mode 100644 docs/Models/Operations/DeleteWorkspaceTokenResponse.md delete mode 100644 docs/Models/Operations/FetchPublishingPRsResponse.md delete mode 100644 docs/Models/Operations/GetActionResponse.md rename docs/Models/Operations/{GetActionRequest.md => GetGitHubActionRequest.md} (97%) create mode 100644 docs/Models/Operations/GetGitHubActionResponse.md create mode 100644 docs/Models/Operations/GetWorkspaceSettingsRequest.md create mode 100644 docs/Models/Operations/GetWorkspaceSettingsResponse.md create mode 100644 docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md create mode 100644 docs/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.md create mode 100644 docs/Models/Operations/GetWorkspaceTeamRequest.md rename docs/Models/Operations/{TriggerActionResponse.md => GetWorkspaceTeamResponse.md} (89%) create mode 100644 docs/Models/Operations/GetWorkspaceTokensRequest.md create mode 100644 docs/Models/Operations/GetWorkspaceTokensResponse.md rename docs/Models/Operations/{CheckAccessResponse.md => GetWorkspacesResponse.md} (89%) rename docs/Models/Operations/{FetchPublishingPRsRequest.md => GithubCheckPublishingPRsRequest.md} (93%) create mode 100644 docs/Models/Operations/GithubCheckPublishingPRsResponse.md create mode 100644 docs/Models/Operations/GithubConfigureCodeSamplesResponse.md create mode 100644 docs/Models/Operations/GithubConfigureMintlifyRepoResponse.md create mode 100644 docs/Models/Operations/GithubConfigureTargetResponse.md create mode 100644 docs/Models/Operations/GithubTriggerActionResponse.md create mode 100644 docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md create mode 100644 docs/Models/Operations/GrantUserAccessToWorkspaceResponse.md create mode 100644 docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md create mode 100644 docs/Models/Operations/RevokeUserAccessToWorkspaceResponse.md create mode 100644 docs/Models/Operations/UpdateWorkspaceDetailsRequest.md create mode 100644 docs/Models/Operations/UpdateWorkspaceDetailsResponse.md create mode 100644 docs/Models/Operations/UpdateWorkspaceSettingsRequest.md create mode 100644 docs/Models/Operations/UpdateWorkspaceSettingsResponse.md create mode 100644 docs/Models/Shared/ApiEndpointInput.md create mode 100644 docs/Models/Shared/ApiInput.md create mode 100644 docs/Models/Shared/Relationship.md create mode 100644 docs/Models/Shared/SSOMetadata.md create mode 100644 docs/Models/Shared/VersionMetadataInput.md create mode 100644 docs/Models/Shared/WorkspaceInviteResponse.md create mode 100644 docs/Models/Shared/WorkspaceSettings.md create mode 100644 docs/Models/Shared/WorkspaceTeamResponse.md create mode 100644 docs/Models/Shared/WorkspaceToken.md rename src/Models/Operations/{CheckAccessRequest.php => CheckGithubAccessRequest.php} (95%) rename src/Models/Operations/{TriggerActionResponse.php => CheckGithubAccessResponse.php} (73%) create mode 100644 src/Models/Operations/CreateOrganizationResponse.php rename src/Models/Operations/{ConfigureMintlifyRepoResponse.php => CreateWorkspaceResponse.php} (74%) create mode 100644 src/Models/Operations/CreateWorkspaceTokenRequest.php create mode 100644 src/Models/Operations/CreateWorkspaceTokenResponse.php create mode 100644 src/Models/Operations/DeleteWorkspaceTokenRequest.php create mode 100644 src/Models/Operations/DeleteWorkspaceTokenResponse.php rename src/Models/Operations/{GetActionRequest.php => GetGitHubActionRequest.php} (97%) rename src/Models/Operations/{GetActionResponse.php => GetGitHubActionResponse.php} (76%) create mode 100644 src/Models/Operations/GetWorkspaceSettingsRequest.php create mode 100644 src/Models/Operations/GetWorkspaceSettingsResponse.php create mode 100644 src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php create mode 100644 src/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.php create mode 100644 src/Models/Operations/GetWorkspaceTeamRequest.php create mode 100644 src/Models/Operations/GetWorkspaceTeamResponse.php create mode 100644 src/Models/Operations/GetWorkspaceTokensRequest.php rename src/Models/Operations/{ConfigureTargetResponse.php => GetWorkspaceTokensResponse.php} (74%) rename src/Models/Operations/{CheckAccessResponse.php => GetWorkspacesResponse.php} (74%) rename src/Models/Operations/{FetchPublishingPRsRequest.php => GithubCheckPublishingPRsRequest.php} (96%) rename src/Models/Operations/{FetchPublishingPRsResponse.php => GithubCheckPublishingPRsResponse.php} (75%) rename src/Models/Operations/{ConfigureCodeSamplesResponse.php => GithubConfigureCodeSamplesResponse.php} (76%) create mode 100644 src/Models/Operations/GithubConfigureMintlifyRepoResponse.php create mode 100644 src/Models/Operations/GithubConfigureTargetResponse.php create mode 100644 src/Models/Operations/GithubTriggerActionResponse.php create mode 100644 src/Models/Operations/GrantUserAccessToWorkspaceRequest.php create mode 100644 src/Models/Operations/GrantUserAccessToWorkspaceResponse.php create mode 100644 src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php create mode 100644 src/Models/Operations/RevokeUserAccessToWorkspaceResponse.php create mode 100644 src/Models/Operations/UpdateWorkspaceDetailsRequest.php create mode 100644 src/Models/Operations/UpdateWorkspaceDetailsResponse.php create mode 100644 src/Models/Operations/UpdateWorkspaceSettingsRequest.php create mode 100644 src/Models/Operations/UpdateWorkspaceSettingsResponse.php create mode 100644 src/Models/Shared/Relationship.php create mode 100644 src/Models/Shared/SSOMetadata.php create mode 100644 src/Models/Shared/WorkspaceInviteResponse.php create mode 100644 src/Models/Shared/WorkspaceSettings.php create mode 100644 src/Models/Shared/WorkspaceTeamResponse.php create mode 100644 src/Models/Shared/WorkspaceToken.php diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a0528ca..f54cee3 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,26 @@ lockVersion: 2.0.0 id: db1bb4da-054f-485f-8c6e-d42db3f1da90 management: - docChecksum: d879ec64eec0ec08ccf22092442669ba + docChecksum: e29727191626d67f4c4c017fc13758fa docVersion: 0.4.0 . - speakeasyVersion: 1.402.1 - generationVersion: 2.422.6 - releaseVersion: 0.41.16 - configChecksum: 7e21870030b0b5b19ee1b79950b95406 + speakeasyVersion: 1.403.3 + generationVersion: 2.424.0 + releaseVersion: 0.42.0 + configChecksum: ca646b0a6941f3c2763ad88c171b3edd repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php published: true features: php: - core: 3.4.4 + core: 3.4.7 deprecations: 2.81.1 examples: 2.81.3 globalSecurity: 2.81.7 globalServerURLs: 2.82.1 globals: 2.82.2 inputOutputModels: 2.83.0 + nameOverrides: 2.81.2 nullables: 1.0.0 responseFormat: 0.1.0 serverIDs: 2.81.1 @@ -29,14 +30,15 @@ generatedFiles: - USAGE.md - composer.json - docs/Models/Errorors/Error.md - - docs/Models/Operations/CheckAccessRequest.md - - docs/Models/Operations/CheckAccessResponse.md - - docs/Models/Operations/ConfigureCodeSamplesResponse.md - - docs/Models/Operations/ConfigureMintlifyRepoResponse.md - - docs/Models/Operations/ConfigureTargetResponse.md + - docs/Models/Operations/CheckGithubAccessRequest.md + - docs/Models/Operations/CheckGithubAccessResponse.md - docs/Models/Operations/CreateFreeTrialResponse.md + - docs/Models/Operations/CreateOrganizationResponse.md - docs/Models/Operations/CreateRequestBody.md - docs/Models/Operations/CreateResponse.md + - docs/Models/Operations/CreateWorkspaceResponse.md + - docs/Models/Operations/CreateWorkspaceTokenRequest.md + - docs/Models/Operations/CreateWorkspaceTokenResponse.md - docs/Models/Operations/DeleteApiEndpointRequest.md - docs/Models/Operations/DeleteApiEndpointResponse.md - docs/Models/Operations/DeleteApiRequest.md @@ -45,12 +47,12 @@ generatedFiles: - docs/Models/Operations/DeleteSchemaResponse.md - docs/Models/Operations/DeleteVersionMetadataRequest.md - docs/Models/Operations/DeleteVersionMetadataResponse.md + - docs/Models/Operations/DeleteWorkspaceTokenRequest.md + - docs/Models/Operations/DeleteWorkspaceTokenResponse.md - docs/Models/Operations/DownloadSchemaRequest.md - docs/Models/Operations/DownloadSchemaResponse.md - docs/Models/Operations/DownloadSchemaRevisionRequest.md - docs/Models/Operations/DownloadSchemaRevisionResponse.md - - docs/Models/Operations/FetchPublishingPRsRequest.md - - docs/Models/Operations/FetchPublishingPRsResponse.md - docs/Models/Operations/File.md - docs/Models/Operations/FindApiEndpointRequest.md - docs/Models/Operations/FindApiEndpointResponse.md @@ -66,8 +68,6 @@ generatedFiles: - docs/Models/Operations/GenerateRequestPostmanCollectionResponse.md - docs/Models/Operations/GetAccessTokenRequest.md - docs/Models/Operations/GetAccessTokenResponse.md - - docs/Models/Operations/GetActionRequest.md - - docs/Models/Operations/GetActionResponse.md - docs/Models/Operations/GetAllApiEndpointsRequest.md - docs/Models/Operations/GetAllApiEndpointsResponse.md - docs/Models/Operations/GetAllApiVersionsRequest.md @@ -85,6 +85,8 @@ generatedFiles: - docs/Models/Operations/GetChangesReportSignedUrlSignedAccess.md - docs/Models/Operations/GetEmbedAccessTokenRequest.md - docs/Models/Operations/GetEmbedAccessTokenResponse.md + - docs/Models/Operations/GetGitHubActionRequest.md + - docs/Models/Operations/GetGitHubActionResponse.md - docs/Models/Operations/GetLintingReportSignedUrlRequest.md - docs/Models/Operations/GetLintingReportSignedUrlResponse.md - docs/Models/Operations/GetLintingReportSignedUrlSignedAccess.md @@ -122,11 +124,28 @@ generatedFiles: - docs/Models/Operations/GetWorkspaceFeatureFlagsResponse.md - docs/Models/Operations/GetWorkspaceRequest.md - docs/Models/Operations/GetWorkspaceResponse.md + - docs/Models/Operations/GetWorkspaceSettingsRequest.md + - docs/Models/Operations/GetWorkspaceSettingsResponse.md + - docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md + - docs/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.md - docs/Models/Operations/GetWorkspaceTargetsRequest.md - docs/Models/Operations/GetWorkspaceTargetsResponse.md + - docs/Models/Operations/GetWorkspaceTeamRequest.md + - docs/Models/Operations/GetWorkspaceTeamResponse.md + - docs/Models/Operations/GetWorkspaceTokensRequest.md + - docs/Models/Operations/GetWorkspaceTokensResponse.md + - docs/Models/Operations/GetWorkspacesResponse.md + - docs/Models/Operations/GithubCheckPublishingPRsRequest.md + - docs/Models/Operations/GithubCheckPublishingPRsResponse.md - docs/Models/Operations/GithubCheckPublishingSecretsRequest.md - docs/Models/Operations/GithubCheckPublishingSecretsResponse.md + - docs/Models/Operations/GithubConfigureCodeSamplesResponse.md + - docs/Models/Operations/GithubConfigureMintlifyRepoResponse.md + - docs/Models/Operations/GithubConfigureTargetResponse.md - docs/Models/Operations/GithubStorePublishingSecretsResponse.md + - docs/Models/Operations/GithubTriggerActionResponse.md + - docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md + - docs/Models/Operations/GrantUserAccessToWorkspaceResponse.md - docs/Models/Operations/InsertVersionMetadataRequest.md - docs/Models/Operations/InsertVersionMetadataResponse.md - docs/Models/Operations/Op.md @@ -144,6 +163,8 @@ generatedFiles: - docs/Models/Operations/RegisterSchemaResponse.md - docs/Models/Operations/RevokeEmbedAccessTokenRequest.md - docs/Models/Operations/RevokeEmbedAccessTokenResponse.md + - docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md + - docs/Models/Operations/RevokeUserAccessToWorkspaceResponse.md - docs/Models/Operations/Schema.md - docs/Models/Operations/SearchWorkspaceEventsRequest.md - docs/Models/Operations/SearchWorkspaceEventsResponse.md @@ -154,7 +175,10 @@ generatedFiles: - docs/Models/Operations/SuggestOpenAPIResponse.md - docs/Models/Operations/SuggestRequest.md - docs/Models/Operations/SuggestResponse.md - - docs/Models/Operations/TriggerActionResponse.md + - docs/Models/Operations/UpdateWorkspaceDetailsRequest.md + - docs/Models/Operations/UpdateWorkspaceDetailsResponse.md + - docs/Models/Operations/UpdateWorkspaceSettingsRequest.md + - docs/Models/Operations/UpdateWorkspaceSettingsResponse.md - docs/Models/Operations/UploadReportRequestBody.md - docs/Models/Operations/UploadReportResponse.md - docs/Models/Operations/UploadReportUploadedReport.md @@ -171,6 +195,8 @@ generatedFiles: - docs/Models/Shared/Annotations.md - docs/Models/Shared/Api.md - docs/Models/Shared/ApiEndpoint.md + - docs/Models/Shared/ApiEndpointInput.md + - docs/Models/Shared/ApiInput.md - docs/Models/Shared/ApiKeyDetails.md - docs/Models/Shared/Auth.md - docs/Models/Shared/BoundedRequest.md @@ -210,9 +236,11 @@ generatedFiles: - docs/Models/Shared/OrganizationUsageResponse.md - docs/Models/Shared/PreflightRequest.md - docs/Models/Shared/PreflightToken.md + - docs/Models/Shared/Relationship.md - docs/Models/Shared/Report.md - docs/Models/Shared/RequestMetadata.md - docs/Models/Shared/Revision.md + - docs/Models/Shared/SSOMetadata.md - docs/Models/Shared/Schema.md - docs/Models/Shared/SchemaDiff.md - docs/Models/Shared/Security.md @@ -229,10 +257,15 @@ generatedFiles: - docs/Models/Shared/V2Descriptor.md - docs/Models/Shared/ValueChange.md - docs/Models/Shared/VersionMetadata.md + - docs/Models/Shared/VersionMetadataInput.md - docs/Models/Shared/WorkflowDocument.md - docs/Models/Shared/Workspace.md - docs/Models/Shared/WorkspaceAndOrganization.md - docs/Models/Shared/WorkspaceFeatureFlagResponse.md + - docs/Models/Shared/WorkspaceInviteResponse.md + - docs/Models/Shared/WorkspaceSettings.md + - docs/Models/Shared/WorkspaceTeamResponse.md + - docs/Models/Shared/WorkspaceToken.md - docs/Models/Shared/Workspaces.md - docs/sdks/apiendpoints/README.md - docs/sdks/apis/README.md @@ -265,14 +298,15 @@ generatedFiles: - src/Models/Errorors/Error.php - src/Models/Errorors/ErrorThrowable.php - src/Models/Errorors/SDKException.php - - src/Models/Operations/CheckAccessRequest.php - - src/Models/Operations/CheckAccessResponse.php - - src/Models/Operations/ConfigureCodeSamplesResponse.php - - src/Models/Operations/ConfigureMintlifyRepoResponse.php - - src/Models/Operations/ConfigureTargetResponse.php + - src/Models/Operations/CheckGithubAccessRequest.php + - src/Models/Operations/CheckGithubAccessResponse.php - src/Models/Operations/CreateFreeTrialResponse.php + - src/Models/Operations/CreateOrganizationResponse.php - src/Models/Operations/CreateRequestBody.php - src/Models/Operations/CreateResponse.php + - src/Models/Operations/CreateWorkspaceResponse.php + - src/Models/Operations/CreateWorkspaceTokenRequest.php + - src/Models/Operations/CreateWorkspaceTokenResponse.php - src/Models/Operations/DeleteApiEndpointRequest.php - src/Models/Operations/DeleteApiEndpointResponse.php - src/Models/Operations/DeleteApiRequest.php @@ -281,12 +315,12 @@ generatedFiles: - src/Models/Operations/DeleteSchemaResponse.php - src/Models/Operations/DeleteVersionMetadataRequest.php - src/Models/Operations/DeleteVersionMetadataResponse.php + - src/Models/Operations/DeleteWorkspaceTokenRequest.php + - src/Models/Operations/DeleteWorkspaceTokenResponse.php - src/Models/Operations/DownloadSchemaRequest.php - src/Models/Operations/DownloadSchemaResponse.php - src/Models/Operations/DownloadSchemaRevisionRequest.php - src/Models/Operations/DownloadSchemaRevisionResponse.php - - src/Models/Operations/FetchPublishingPRsRequest.php - - src/Models/Operations/FetchPublishingPRsResponse.php - src/Models/Operations/File.php - src/Models/Operations/FindApiEndpointRequest.php - src/Models/Operations/FindApiEndpointResponse.php @@ -302,8 +336,6 @@ generatedFiles: - src/Models/Operations/GenerateRequestPostmanCollectionResponse.php - src/Models/Operations/GetAccessTokenRequest.php - src/Models/Operations/GetAccessTokenResponse.php - - src/Models/Operations/GetActionRequest.php - - src/Models/Operations/GetActionResponse.php - src/Models/Operations/GetAllApiEndpointsRequest.php - src/Models/Operations/GetAllApiEndpointsResponse.php - src/Models/Operations/GetAllApiVersionsRequest.php @@ -321,6 +353,8 @@ generatedFiles: - src/Models/Operations/GetChangesReportSignedUrlSignedAccess.php - src/Models/Operations/GetEmbedAccessTokenRequest.php - src/Models/Operations/GetEmbedAccessTokenResponse.php + - src/Models/Operations/GetGitHubActionRequest.php + - src/Models/Operations/GetGitHubActionResponse.php - src/Models/Operations/GetLintingReportSignedUrlRequest.php - src/Models/Operations/GetLintingReportSignedUrlResponse.php - src/Models/Operations/GetLintingReportSignedUrlSignedAccess.php @@ -358,11 +392,28 @@ generatedFiles: - src/Models/Operations/GetWorkspaceFeatureFlagsResponse.php - src/Models/Operations/GetWorkspaceRequest.php - src/Models/Operations/GetWorkspaceResponse.php + - src/Models/Operations/GetWorkspaceSettingsRequest.php + - src/Models/Operations/GetWorkspaceSettingsResponse.php + - src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php + - src/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.php - src/Models/Operations/GetWorkspaceTargetsRequest.php - src/Models/Operations/GetWorkspaceTargetsResponse.php + - src/Models/Operations/GetWorkspaceTeamRequest.php + - src/Models/Operations/GetWorkspaceTeamResponse.php + - src/Models/Operations/GetWorkspaceTokensRequest.php + - src/Models/Operations/GetWorkspaceTokensResponse.php + - src/Models/Operations/GetWorkspacesResponse.php + - src/Models/Operations/GithubCheckPublishingPRsRequest.php + - src/Models/Operations/GithubCheckPublishingPRsResponse.php - src/Models/Operations/GithubCheckPublishingSecretsRequest.php - src/Models/Operations/GithubCheckPublishingSecretsResponse.php + - src/Models/Operations/GithubConfigureCodeSamplesResponse.php + - src/Models/Operations/GithubConfigureMintlifyRepoResponse.php + - src/Models/Operations/GithubConfigureTargetResponse.php - src/Models/Operations/GithubStorePublishingSecretsResponse.php + - src/Models/Operations/GithubTriggerActionResponse.php + - src/Models/Operations/GrantUserAccessToWorkspaceRequest.php + - src/Models/Operations/GrantUserAccessToWorkspaceResponse.php - src/Models/Operations/InsertVersionMetadataRequest.php - src/Models/Operations/InsertVersionMetadataResponse.php - src/Models/Operations/Op.php @@ -380,6 +431,8 @@ generatedFiles: - src/Models/Operations/RegisterSchemaResponse.php - src/Models/Operations/RevokeEmbedAccessTokenRequest.php - src/Models/Operations/RevokeEmbedAccessTokenResponse.php + - src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php + - src/Models/Operations/RevokeUserAccessToWorkspaceResponse.php - src/Models/Operations/Schema.php - src/Models/Operations/SearchWorkspaceEventsRequest.php - src/Models/Operations/SearchWorkspaceEventsResponse.php @@ -390,7 +443,10 @@ generatedFiles: - src/Models/Operations/SuggestOpenAPIResponse.php - src/Models/Operations/SuggestRequest.php - src/Models/Operations/SuggestResponse.php - - src/Models/Operations/TriggerActionResponse.php + - src/Models/Operations/UpdateWorkspaceDetailsRequest.php + - src/Models/Operations/UpdateWorkspaceDetailsResponse.php + - src/Models/Operations/UpdateWorkspaceSettingsRequest.php + - src/Models/Operations/UpdateWorkspaceSettingsResponse.php - src/Models/Operations/UploadReportRequestBody.php - src/Models/Operations/UploadReportResponse.php - src/Models/Operations/UploadReportUploadedReport.php @@ -448,9 +504,11 @@ generatedFiles: - src/Models/Shared/OrganizationUsageResponse.php - src/Models/Shared/PreflightRequest.php - src/Models/Shared/PreflightToken.php + - src/Models/Shared/Relationship.php - src/Models/Shared/Report.php - src/Models/Shared/RequestMetadata.php - src/Models/Shared/Revision.php + - src/Models/Shared/SSOMetadata.php - src/Models/Shared/Schema.php - src/Models/Shared/SchemaDiff.php - src/Models/Shared/Security.php @@ -472,6 +530,10 @@ generatedFiles: - src/Models/Shared/Workspace.php - src/Models/Shared/WorkspaceAndOrganization.php - src/Models/Shared/WorkspaceFeatureFlagResponse.php + - src/Models/Shared/WorkspaceInviteResponse.php + - src/Models/Shared/WorkspaceSettings.php + - src/Models/Shared/WorkspaceTeamResponse.php + - src/Models/Shared/WorkspaceToken.php - src/Models/Shared/Workspaces.php - src/Organizations.php - src/Reports.php @@ -517,6 +579,8 @@ examples: responses: default: application/json: {"message": "", "status_code": 875451} + 4XX: + application/json: {"message": "", "status_code": 875451} generateOpenApiSpec: speakeasy-default-generate-open-api-spec: parameters: @@ -528,6 +592,10 @@ examples: application/json: {"current_schema": "", "new_schema": ""} default: application/json: {"message": "", "status_code": 871055} + 2XX: + application/json: {"current_schema": "", "new_schema": ""} + 4XX: + application/json: {"message": "", "status_code": 871055} generatePostmanCollection: speakeasy-default-generate-postman-collection: parameters: @@ -539,6 +607,10 @@ examples: application/octet-stream: "0xd6Be621e7F" default: application/json: {"message": "", "status_code": 697008} + 2XX: + application/octet-stream: "0xdB617f4bc9" + 4XX: + application/json: {"message": "", "status_code": 542004} getAllApiVersions: speakeasy-default-get-all-api-versions: parameters: @@ -550,6 +622,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 784529} + 2XX: + application/json: [{"api_id": "", "created_at": "2022-12-01T14:20:45.655Z", "description": "cavernous so continually qua", "updated_at": "2023-05-30T05:25:29.047Z", "version_id": "", "workspace_id": ""}, {"api_id": "", "created_at": "2023-04-23T11:41:22.396Z", "description": "readmit chubby oof gym sedately micromanage trench", "updated_at": "2022-10-16T03:11:00.742Z", "version_id": "", "workspace_id": ""}, {"api_id": "", "created_at": "2023-03-06T08:55:20.384Z", "description": "aw even but peter abaft", "updated_at": "2024-07-27T04:38:48.315Z", "version_id": "", "workspace_id": ""}] + 4XX: + application/json: {"message": "", "status_code": 873085} getApis: speakeasy-default-get-apis: responses: @@ -557,6 +633,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 11490} + 2XX: + application/json: [] + 4XX: + application/json: {"message": "", "status_code": 107838} upsertApi: speakeasy-default-upsert-api: parameters: @@ -569,6 +649,10 @@ examples: application/json: {"api_id": "", "created_at": "2022-11-30T03:11:22.096Z", "description": "Visionary 4th generation focus group", "updated_at": "2022-03-06T16:10:22.154Z", "version_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 17590} + 2XX: + application/json: {"api_id": "", "created_at": "2024-07-28T23:25:43.547Z", "description": "suspiciously joyously enormously save which behind jaggedly", "updated_at": "2022-03-25T08:19:02.754Z", "version_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 624967} deleteApiEndpoint: speakeasy-default-delete-api-endpoint: parameters: @@ -579,6 +663,8 @@ examples: responses: default: application/json: {"message": "", "status_code": 788324} + 4XX: + application/json: {"message": "", "status_code": 788324} findApiEndpoint: speakeasy-default-find-api-endpoint: parameters: @@ -591,6 +677,10 @@ examples: application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2023-05-01T15:36:31.538Z", "description": "Programmable uniform adapter", "display_name": "Gracie23", "method": "", "path": "/srv", "updated_at": "2024-01-26T05:16:49.540Z", "version_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 398024} + 2XX: + application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2022-10-24T08:32:17.323Z", "description": "before vastly mould boohoo er aboard", "display_name": "Kevon_Ortiz2", "method": "", "path": "/opt", "updated_at": "2023-11-17T00:18:25.893Z", "version_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 135204} generateOpenApiSpecForApiEndpoint: speakeasy-default-generate-open-api-spec-for-api-endpoint: parameters: @@ -603,6 +693,10 @@ examples: application/json: {"current_schema": "", "new_schema": ""} default: application/json: {"message": "", "status_code": 833540} + 2XX: + application/json: {"current_schema": "", "new_schema": ""} + 4XX: + application/json: {"message": "", "status_code": 833540} generatePostmanCollectionForApiEndpoint: speakeasy-default-generate-postman-collection-for-api-endpoint: parameters: @@ -615,6 +709,10 @@ examples: application/octet-stream: "0xBBF5e24c4D" default: application/json: {"message": "", "status_code": 870898} + 2XX: + application/octet-stream: "0xBFe44DF0c2" + 4XX: + application/json: {"message": "", "status_code": 764595} getAllApiEndpoints: speakeasy-default-get-all-api-endpoints: parameters: @@ -625,6 +723,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 909400} + 2XX: + application/json: [{"api_endpoint_id": "", "api_id": "", "created_at": "2023-01-29T03:25:40.769Z", "description": "proliferate anenst gadzooks gosh without frightfully", "display_name": "Mireille.Wolff", "method": "", "path": "/boot/defaults", "updated_at": "2023-01-23T16:26:38.331Z", "version_id": "", "workspace_id": ""}, {"api_endpoint_id": "", "api_id": "", "created_at": "2022-09-08T17:07:17.627Z", "description": "remark whoever for ignorance yahoo integer competent really tempting", "display_name": "Aliya.Hammes", "method": "", "path": "/boot", "updated_at": "2024-01-01T08:51:16.176Z", "version_id": "", "workspace_id": ""}, {"api_endpoint_id": "", "api_id": "", "created_at": "2024-05-10T15:45:00.302Z", "description": "rudely acclaimed sentimental aircraft book", "display_name": "Cathrine_Cummerata", "method": "", "path": "/opt/lib", "updated_at": "2024-11-01T08:41:53.910Z", "version_id": "", "workspace_id": ""}] + 4XX: + application/json: {"message": "", "status_code": 87408} getAllForVersionApiEndpoints: speakeasy-default-get-all-for-version-api-endpoints: parameters: @@ -636,6 +738,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 908203} + 2XX: + application/json: [{"api_endpoint_id": "", "api_id": "", "created_at": "2024-06-17T00:07:30.468Z", "description": "cutover knottily productive thump scrabble abaft gracious pulp", "display_name": "Alek.Kunze41", "method": "", "path": "/home/user", "updated_at": "2024-07-27T06:29:44.391Z", "version_id": "", "workspace_id": ""}, {"api_endpoint_id": "", "api_id": "", "created_at": "2022-06-22T07:41:12.922Z", "description": "sparse obligation er honorable offensively shallow", "display_name": "Jarrell82", "method": "", "path": "/sys", "updated_at": "2024-08-17T07:17:55.780Z", "version_id": "", "workspace_id": ""}, {"api_endpoint_id": "", "api_id": "", "created_at": "2023-06-20T19:40:53.688Z", "description": "yieldingly widow blah phooey uh-huh corny fess", "display_name": "Moshe.Streich", "method": "", "path": "/selinux", "updated_at": "2023-07-07T21:35:49.283Z", "version_id": "", "workspace_id": ""}] + 4XX: + application/json: {"message": "", "status_code": 321615} getApiEndpoint: speakeasy-default-get-api-endpoint: parameters: @@ -648,6 +754,10 @@ examples: application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2024-12-16T12:54:49.054Z", "description": "Grass-roots interactive orchestration", "display_name": "Mylene_Kozey58", "method": "", "path": "/rescue", "updated_at": "2024-07-01T02:49:47.888Z", "version_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 572524} + 2XX: + application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2024-12-16T12:54:48.841Z", "description": "self-reliant till before and pick openly boo", "display_name": "Frankie_Brown", "method": "", "path": "/media", "updated_at": "2022-12-01T02:36:45.697Z", "version_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 497683} upsertApiEndpoint: speakeasy-default-upsert-api-endpoint: parameters: @@ -662,6 +772,10 @@ examples: application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2023-05-11T02:25:34.515Z", "description": "Triple-buffered optimal methodology", "display_name": "Nolan_Corwin58", "method": "", "path": "/home/user", "updated_at": "2022-04-29T18:24:21.535Z", "version_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 462700} + 2XX: + application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2024-01-26T09:16:09.166Z", "description": "micromanage shinny ick", "display_name": "Eric.Lind", "method": "", "path": "/usr/ports", "updated_at": "2023-12-15T07:22:38.446Z", "version_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 570797} deleteVersionMetadata: speakeasy-default-delete-version-metadata: parameters: @@ -673,6 +787,8 @@ examples: responses: default: application/json: {"message": "", "status_code": 730807} + 4XX: + application/json: {"message": "", "status_code": 730807} getVersionMetadata: speakeasy-default-get-version-metadata: parameters: @@ -684,6 +800,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 269133} + 2XX: + application/json: [{"api_id": "", "created_at": "2022-06-27T04:40:43.913Z", "meta_key": "", "meta_value": "", "version_id": "", "workspace_id": ""}] + 4XX: + application/json: {"message": "", "status_code": 359814} insertVersionMetadata: speakeasy-default-insert-version-metadata: parameters: @@ -697,6 +817,10 @@ examples: application/json: {"api_id": "", "created_at": "2022-03-18T13:32:09.395Z", "meta_key": "", "meta_value": "", "version_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 516378} + 2XX: + application/json: {"api_id": "", "created_at": "2022-03-18T13:32:09.275Z", "meta_key": "", "meta_value": "", "version_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 734322} deleteSchema: speakeasy-default-delete-schema: parameters: @@ -707,6 +831,8 @@ examples: responses: default: application/json: {"message": "", "status_code": 9376} + 4XX: + application/json: {"message": "", "status_code": 9376} downloadSchema: speakeasy-default-download-schema: parameters: @@ -719,6 +845,11 @@ examples: application/x-yaml: "0x5EFea906ee" default: application/json: {"message": "", "status_code": 375177} + 2XX: + application/json: "0xa62855Fa0e" + application/x-yaml: "0x82474cDE10" + 4XX: + application/json: {"message": "", "status_code": 17422} downloadSchemaRevision: speakeasy-default-download-schema-revision: parameters: @@ -732,6 +863,11 @@ examples: application/x-yaml: "0xE04B837904" default: application/json: {"message": "", "status_code": 298817} + 2XX: + application/json: "0xC12bCE4870" + application/x-yaml: "0x6C6F78c8dA" + 4XX: + application/json: {"message": "", "status_code": 38692} getSchema: speakeasy-default-get-schema: parameters: @@ -743,6 +879,10 @@ examples: application/json: {"api_id": "", "created_at": "2022-09-09T00:58:17.303Z", "description": "Quality-focused scalable superstructure", "revision_id": "", "version_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 983881} + 2XX: + application/json: {"api_id": "", "created_at": "2022-09-09T00:58:17.727Z", "description": "polyester instead slowly than safely meh appropriate heroine free", "revision_id": "", "version_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 333689} getSchemaDiff: speakeasy-default-get-schema-diff: parameters: @@ -756,6 +896,10 @@ examples: application/json: {"additions": [], "deletions": [], "modifications": {}} default: application/json: {"message": "", "status_code": 201370} + 2XX: + application/json: {"additions": [], "deletions": ["", ""], "modifications": {}} + 4XX: + application/json: {"message": "", "status_code": 842381} getSchemaRevision: speakeasy-default-get-schema-revision: parameters: @@ -768,6 +912,10 @@ examples: application/json: {"api_id": "", "created_at": "2022-01-23T10:21:45.287Z", "description": "Managed intermediate flexibility", "revision_id": "", "version_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 941905} + 2XX: + application/json: {"api_id": "", "created_at": "2022-01-23T10:21:45.479Z", "description": "woot neaten whoever submitter upon altruistic regarding", "revision_id": "", "version_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 907219} getSchemas: speakeasy-default-get-schemas: parameters: @@ -779,6 +927,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 170115} + 2XX: + application/json: [] + 4XX: + application/json: {"message": "", "status_code": 235379} registerSchema: speakeasy-default-register-schema: parameters: @@ -790,6 +942,8 @@ examples: responses: default: application/json: {"message": "", "status_code": 867990} + 4XX: + application/json: {"message": "", "status_code": 822243} getBlob: speakeasy-default-get-blob: parameters: @@ -803,6 +957,10 @@ examples: application/octet-stream: "0x211ECBAE5E" default: application/json: {"message": "", "status_code": 279725} + 2XX: + application/octet-stream: "0x21CA56a82d" + 4XX: + application/json: {"message": "", "status_code": 940661} getManifest: speakeasy-default-get-manifest: parameters: @@ -816,6 +974,10 @@ examples: application/vnd.oci.image.manifest.v1+json: {"layers": [{"digest": "sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6", "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", "size": 2107098}], "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "schemaVersion": 2} default: application/json: {"message": "", "status_code": 707258} + 2XX: + application/vnd.oci.image.manifest.v1+json: {"layers": [{"digest": "sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6", "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", "size": 2107098}], "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "schemaVersion": 2} + 4XX: + application/json: {"message": "", "status_code": 707258} getNamespaces: speakeasy-default-get-namespaces: responses: @@ -823,6 +985,10 @@ examples: application/json: {"items": []} default: application/json: {"message": "", "status_code": 917991} + 2XX: + application/json: {"items": [{"created_at": "2024-01-20T10:11:46.428Z", "id": "", "name": "", "updated_at": "2022-01-07T04:43:36.873Z"}, {"created_at": "2023-07-06T07:26:30.970Z", "id": "", "name": "", "updated_at": "2024-01-31T11:34:19.590Z"}, {"created_at": "2022-08-10T13:43:30.983Z", "id": "", "name": "", "updated_at": "2022-07-15T08:41:36.371Z"}]} + 4XX: + application/json: {"message": "", "status_code": 305198} getOASSummary: speakeasy-default-get-OAS-summary: parameters: @@ -845,6 +1011,10 @@ examples: application/json: {"items": [], "next_page_token": ""} default: application/json: {"message": "", "status_code": 284614} + 2XX: + application/json: {"items": [{"created_at": "2024-09-16T19:17:04.361Z", "digest": "sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f", "id": "", "namespace_name": "", "tags": [""], "updated_at": "2023-12-06T05:58:38.953Z"}], "next_page_token": ""} + 4XX: + application/json: {"message": "", "status_code": 414389} getTags: speakeasy-default-get-tags: parameters: @@ -855,6 +1025,10 @@ examples: application/json: {"items": []} default: application/json: {"message": "", "status_code": 136548} + 2XX: + application/json: {"items": []} + 4XX: + application/json: {"message": "", "status_code": 50428} postTags: speakeasy-default-post-tags: parameters: @@ -863,12 +1037,17 @@ examples: responses: default: application/json: {"message": "", "status_code": 581484} + 4XX: + application/json: {"message": "", "status_code": 581484} preflight: speakeasy-default-preflight: responses: default: application/json: {"message": "", "status_code": 820828} "200": {} + 2XX: {} + 4XX: + application/json: {"message": "", "status_code": 820828} getAccessToken: speakeasy-default-get-access-token: parameters: @@ -879,6 +1058,10 @@ examples: application/json: {"access_token": ""} default: application/json: {"message": "", "status_code": 299050} + 2XX: + application/json: {"access_token": ""} + 4XX: + application/json: {"message": "", "status_code": 299050} getUser: speakeasy-default-get-user: responses: @@ -886,11 +1069,17 @@ examples: application/json: {"admin": true, "confirmed": false, "created_at": "2022-06-27T09:27:02.992Z", "display_name": "Kendrick92", "email": "Kirstin.Kautzer61@yahoo.com", "email_verified": false, "id": "", "last_login_at": "2023-04-23T00:14:06.093Z", "updated_at": "2023-07-11T14:17:50.684Z", "whitelisted": false} default: application/json: {"message": "", "status_code": 502060} + 2XX: + application/json: {"admin": false, "confirmed": true, "created_at": "2024-09-05T08:59:40.988Z", "display_name": "Tianna_Prohaska", "email": "Morton82@gmail.com", "email_verified": false, "id": "", "updated_at": "2022-08-28T03:26:52.335Z", "whitelisted": true} + 4XX: + application/json: {"message": "", "status_code": 237845} getWorkspaceAccess: speakeasy-default-get-workspace-access: responses: "200": application/json: {"generation_allowed": false, "message": ""} + 2XX: + application/json: {"generation_allowed": true, "message": ""} validateApiKey: speakeasy-default-validate-api-key: responses: @@ -898,6 +1087,10 @@ examples: application/json: {"account_type_v2": "enterprise", "enabled_features": [], "org_slug": "", "telemetry_disabled": true, "workspace_id": "", "workspace_slug": ""} default: application/json: {"message": "", "status_code": 858745} + 2XX: + application/json: {"account_type_v2": "enterprise", "enabled_features": ["", "", ""], "org_slug": "", "telemetry_disabled": true, "workspace_id": "", "workspace_slug": ""} + 4XX: + application/json: {"message": "", "status_code": 365836} generateRequestPostmanCollection: speakeasy-default-generate-request-postman-collection: parameters: @@ -908,6 +1101,10 @@ examples: application/octet-stream: "0xe9bfc5350A" default: application/json: {"message": "", "status_code": 319220} + 2XX: + application/octet-stream: "0xebc3072f73" + 4XX: + application/json: {"message": "", "status_code": 878433} getRequestFromEventLog: speakeasy-default-get-request-from-event-log: parameters: @@ -918,6 +1115,10 @@ examples: application/json: {"created_at": "2024-07-06T20:33:24.663Z", "har": "", "har_size_bytes": 205280, "request_id": "", "workspace_id": ""} default: application/json: {"message": "", "status_code": 659422} + 2XX: + application/json: {"created_at": "2024-07-06T20:33:24.477Z", "har": "", "har_size_bytes": 659422, "request_id": "", "workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 799548} queryEventLog: speakeasy-default-query-event-log: responses: @@ -925,6 +1126,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 241978} + 2XX: + application/json: [] + 4XX: + application/json: {"message": "", "status_code": 621062} checkAccess: speakeasy-default-check-access: parameters: @@ -987,6 +1192,9 @@ examples: default: application/json: {"message": "", "status_code": 445560} "200": {} + 2XX: {} + 4XX: + application/json: {"message": "", "status_code": 749379} githubStorePublishingSecrets: speakeasy-default-github-store-publishing-secrets: requestBody: @@ -994,6 +1202,8 @@ examples: responses: default: application/json: {"message": "", "status_code": 802162} + 4XX: + application/json: {"message": "", "status_code": 444361} triggerAction: speakeasy-default-trigger-action: requestBody: @@ -1006,6 +1216,8 @@ examples: responses: default: application/json: {"message": "", "status_code": 728627} + 4XX: + application/json: {"message": "", "status_code": 728627} getOrganization: speakeasy-default-get-organization: parameters: @@ -1016,6 +1228,10 @@ examples: application/json: {"account_type": "scale-up", "id": "", "name": "", "telemetry_disabled": true} default: application/json: {"message": "", "status_code": 492205} + 2XX: + application/json: {"account_type": "business", "created_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "slug": "", "telemetry_disabled": false, "updated_at": "2023-07-26T06:33:15.810Z"} + 4XX: + application/json: {"message": "", "status_code": 969961} getOrganizationUsage: speakeasy-default-get-organization-usage: responses: @@ -1023,6 +1239,10 @@ examples: application/json: {"allowed_languages": [], "total_allowed_languages": 85188, "usage": []} default: application/json: {"message": "", "status_code": 689787} + 2XX: + application/json: {"allowed_languages": [], "total_allowed_languages": 863126, "usage": [{"accessible": false, "accessible_features": [""], "gen_lock_ids": ["", "", ""], "language": "", "number_of_operations": 939867, "used_features": ["", "", ""], "workspaces": [""]}, {"accessible": false, "accessible_features": [""], "gen_lock_ids": ["", "", ""], "language": "", "number_of_operations": 478406, "used_features": ["", ""], "workspaces": [""]}]} + 4XX: + application/json: {"message": "", "status_code": 378127} getOrganizations: speakeasy-default-get-organizations: responses: @@ -1030,6 +1250,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 952344} + 2XX: + application/json: [{"account_type": "free", "created_at": "2023-10-18T22:25:06.537Z", "id": "", "name": "", "slug": "", "telemetry_disabled": false, "updated_at": "2022-01-18T20:59:19.735Z"}] + 4XX: + application/json: {"message": "", "status_code": 463086} getChangesReportSignedUrl: speakeasy-default-get-changes-report-signed-url: parameters: @@ -1038,6 +1262,8 @@ examples: responses: "200": application/json: {"url": "http://precious-pressure.biz"} + 2XX: + application/json: {"url": "https://rosy-masterpiece.biz/"} getLintingReportSignedUrl: speakeasy-default-get-linting-report-signed-url: parameters: @@ -1046,6 +1272,8 @@ examples: responses: "200": application/json: {"url": "https://overdue-maybe.net"} + 2XX: + application/json: {"url": "https://negligible-merit.info"} uploadReport: speakeasy-default-upload-report: requestBody: @@ -1053,6 +1281,8 @@ examples: responses: "200": application/json: {"url": "http://earnest-upgrade.com"} + 2XX: + application/json: {"url": "https://cluttered-stall.info"} create: speakeasy-default-create: requestBody: @@ -1060,6 +1290,8 @@ examples: responses: "200": application/json: {"full_url": "", "short_url": ""} + 2XX: + application/json: {"full_url": "https://probable-heating.com/", "short_url": "https://standard-utilization.com/"} applyOperationIDs: speakeasy-default-apply-operation-I-ds: parameters: @@ -1081,6 +1313,8 @@ examples: responses: "200": application/json: "0xB470c0FE6E" + 2XX: + application/json: "0x0beEcB7cF6" suggestOpenAPIRegistry: speakeasy-default-suggest-open-API-registry: parameters: @@ -1092,6 +1326,8 @@ examples: responses: "200": application/json: "0x94DFDbB4df" + 2XX: + application/json: "0x9DDBdD905F" getEmbedAccessToken: speakeasy-default-get-embed-access-token: responses: @@ -1099,6 +1335,10 @@ examples: application/json: {"access_token": ""} default: application/json: {"message": "", "status_code": 964408} + 2XX: + application/json: {"access_token": ""} + 4XX: + application/json: {"message": "", "status_code": 964408} getValidEmbedAccessTokens: speakeasy-default-get-valid-embed-access-tokens: responses: @@ -1106,6 +1346,10 @@ examples: application/json: [] default: application/json: {"message": "", "status_code": 806352} + 2XX: + application/json: [{"created_at": "2023-04-01T02:00:55.877Z", "created_by": "", "description": "tedious impossible circa", "expires_at": "2022-07-22T15:28:07.761Z", "filters": "", "id": "", "workspace_id": ""}, {"created_at": "2022-12-26T20:48:17.803Z", "created_by": "", "description": "lest whoa before jaunty", "expires_at": "2023-07-27T09:40:38.504Z", "filters": "", "id": "", "workspace_id": ""}, {"created_at": "2022-05-24T13:57:56.058Z", "created_by": "", "description": "after pace supplier reclassify", "expires_at": "2024-03-28T04:21:31.912Z", "filters": "", "id": "", "workspace_id": ""}] + 4XX: + application/json: {"message": "", "status_code": 942675} revokeEmbedAccessToken: speakeasy-default-revoke-embed-access-token: parameters: @@ -1114,18 +1358,29 @@ examples: responses: default: application/json: {"message": "", "status_code": 217594} + 4XX: + application/json: {"message": "", "status_code": 217594} getWorkspace: speakeasy-default-get-workspace: + parameters: + path: + workspace_id: "" responses: "200": application/json: {"created_at": "2024-06-17T21:39:51.489Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": true, "updated_at": "2022-01-05T09:55:04.665Z", "verified": false} default: application/json: {"message": "", "status_code": 488095} + 2XX: + application/json: {"created_at": "2024-11-17T10:14:22.985Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": false, "updated_at": "2024-10-23T07:17:30.329Z", "verified": false} + 4XX: + application/json: {"message": "", "status_code": 627126} getWorkspaceEventsByTarget: speakeasy-default-get-workspace-events-by-target: parameters: path: targetID: "" + workspace_id: "" + target_id: "" query: {} responses: "200": @@ -1141,6 +1396,9 @@ examples: application/json: {"message": "", "status_code": 966013} postWorkspaceEvents: speakeasy-default-post-workspace-events: + parameters: + path: + workspace_id: "" requestBody: application/json: [] responses: @@ -1148,6 +1406,10 @@ examples: application/json: {"message": "", "status_code": 962857} searchWorkspaceEvents: speakeasy-default-search-workspace-events: + parameters: + path: + workspace_id: "" + query: {} responses: "200": application/json: [] @@ -1163,8 +1425,13 @@ examples: responses: "200": application/json: "0x8D9A3DCDEa" + 2XX: + application/json: "0xbe893CEca6" getWorkspaceFeatureFlags: speakeasy-default-get-workspace-feature-flags: + parameters: + path: + workspace_id: "" responses: 5XX: application/json: {"message": "", "status_code": 365854} @@ -1176,3 +1443,190 @@ examples: application/json: {"organization": {"account_type": "scale-up", "id": "", "name": "", "telemetry_disabled": true}, "workspace": {"created_at": "2022-07-12T11:34:21.219Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": true, "updated_at": "2024-08-05T18:10:01.152Z", "verified": false}} default: application/json: {"message": "", "status_code": 567858} + 2XX: + application/json: {"organization": {"account_type": "business", "created_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "slug": "", "telemetry_disabled": false, "updated_at": "2023-07-26T06:33:15.810Z"}, "workspace": {"created_at": "2024-11-29T01:50:48.954Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": true, "updated_at": "2023-05-10T02:28:23.533Z", "verified": true}} + 4XX: + application/json: {"message": "", "status_code": 213457} + checkGithubAccess: + speakeasy-default-check-github-access: + parameters: + query: + org: "" + repo: "" + responses: + 4XX: + application/json: {"message": "", "status_code": 74604} + githubCheckPublishingPRs: + speakeasy-default-github-check-publishing-P-rs: + parameters: + query: + generate_gen_lock_id: "" + org: "" + repo: "" + responses: + 4XX: + application/json: {"message": "", "status_code": 670562} + githubConfigureCodeSamples: + speakeasy-default-github-configure-code-samples: + requestBody: + application/json: {"org": "", "repo": "", "targetName": ""} + responses: + 2XX: + application/json: {"codeSampleOverlayRegistryURL": "https://giving-handover.net", "source": {"location": ""}} + 4XX: + application/json: {"message": "", "status_code": 628169} + githubConfigureMintlifyRepo: + speakeasy-default-github-configure-mintlify-repo: + requestBody: + application/json: {"input": "", "org": "", "overlays": [""], "repo": ""} + responses: + 4XX: + application/json: {"message": "", "status_code": 529873} + githubConfigureTarget: + speakeasy-default-github-configure-target: + requestBody: + application/json: {"org": "", "repo_name": ""} + responses: + 4XX: + application/json: {"message": "", "status_code": 210299} + getGitHubAction: + speakeasy-default-get-git-hub-action: + parameters: + query: + org: "" + repo: "" + responses: + 4XX: + application/json: {"message": "", "status_code": 252330} + githubTriggerAction: + speakeasy-default-github-trigger-action: + requestBody: + application/json: {"gen_lock_id": "", "org": "", "repo_name": ""} + responses: + 4XX: + application/json: {"message": "", "status_code": 689611} + createOrganization: + speakeasy-default-create-organization: + requestBody: + application/json: {"account_type": "scale-up", "created_at": "2023-12-01T17:06:07.804Z", "id": "", "name": "", "slug": "", "telemetry_disabled": true, "updated_at": "2022-05-28T06:20:22.766Z"} + responses: + 2XX: + application/json: {"account_type": "free", "created_at": "2024-05-22T22:27:14.379Z", "id": "", "name": "", "slug": "", "telemetry_disabled": false, "updated_at": "2022-01-01T02:16:41.381Z"} + 4XX: + application/json: {"message": "", "status_code": 169727} + createWorkspace: + speakeasy-default-create-workspace: + requestBody: + application/json: {"created_at": "2023-06-18T07:14:55.338Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": false, "updated_at": "2023-04-03T12:48:32.253Z", "verified": true} + responses: + 2XX: + application/json: {"created_at": "2022-03-17T15:39:20.911Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": false, "updated_at": "2024-11-08T08:43:39.394Z", "verified": true} + 4XX: + application/json: {"message": "", "status_code": 169727} + createWorkspaceToken: + speakeasy-default-create-workspace-token: + parameters: + path: + workspace_id: "" + requestBody: + application/json: {"alg": "", "created_at": "", "id": "", "key": "", "name": ""} + responses: + 4XX: + application/json: {"message": "", "status_code": 207213} + deleteWorkspaceToken: + speakeasy-default-delete-workspace-token: + parameters: + path: + workspace_id: "" + tokenID: "" + responses: + 4XX: + application/json: {"message": "", "status_code": 120260} + getWorkspaces: + speakeasy-default-get-workspaces: + responses: + 2XX: + application/json: [{"created_at": "2022-03-06T21:36:22.528Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": false, "updated_at": "2023-12-15T17:14:28.501Z", "verified": true}] + 4XX: + application/json: {"message": "", "status_code": 463086} + getWorkspaceSettings: + speakeasy-default-get-workspace-settings: + parameters: + path: + workspace_id: "" + responses: + 2XX: + application/json: {"workspace_id": ""} + 4XX: + application/json: {"message": "", "status_code": 802866} + getWorkspaceTeam: + speakeasy-default-get-workspace-team: + parameters: + path: + workspace_id: "" + responses: + 2XX: + application/json: {"users": []} + 4XX: + application/json: {"message": "", "status_code": 194974} + getWorkspaceTokens: + speakeasy-default-get-workspace-tokens: + parameters: + path: + workspace_id: "" + responses: + 2XX: + application/json: [{"alg": "", "created_at": "", "id": "", "key": "", "name": ""}, {"alg": "", "created_at": "", "id": "", "key": "", "name": ""}, {"alg": "", "created_at": "", "id": "", "key": "", "name": ""}] + 4XX: + application/json: {"message": "", "status_code": 498293} + grantUserAccessToWorkspace: + speakeasy-default-grant-user-access-to-workspace: + parameters: + path: + workspace_id: "" + email: "Lucinda.Batz8@hotmail.com" + responses: + "200": + application/json: {"relationship": {"user_id": "", "workspace_id": ""}} + 4XX: + application/json: {"message": "", "status_code": 621540} + revokeUserAccessToWorkspace: + speakeasy-default-revoke-user-access-to-workspace: + parameters: + path: + workspace_id: "" + userId: "" + responses: + 4XX: + application/json: {"message": "", "status_code": 243814} + updateWorkspaceDetails: + speakeasy-default-update-workspace-details: + parameters: + path: + workspace_id: "" + requestBody: + application/json: {"created_at": "2024-07-28T19:04:48.565Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": false, "updated_at": "2023-01-13T16:52:57.274Z", "verified": false} + responses: + 4XX: + application/json: {"message": "", "status_code": 627690} + updateWorkspaceSettings: + speakeasy-default-update-workspace-settings: + parameters: + path: + workspace_id: "" + requestBody: + application/json: {"workspace_id": ""} + responses: + 4XX: + application/json: {"message": "", "status_code": 169241} + getWorkspaceTargetsDeprecated: + speakeasy-default-get-workspace-targets-deprecated: + parameters: + path: + workspace_id: "" + query: {} + responses: + "200": + application/json: [] + 5XX: + application/json: {"message": "", "status_code": 255923} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0677af7..97e1084 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.41.16 + version: 0.42.0 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 5f93d3a..54e7d9a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.402.1 +speakeasyVersion: 1.403.3 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:80c3c90005952697b9d5e1deca96cc73c475b4aafecb711ac22912430743ef2b - sourceBlobDigest: sha256:c631a3d49dc602f7258899ba657fffa1c794ebe2c1f3211a3c728186c7577f54 + sourceRevisionDigest: sha256:48f9a0b94f30dfaea17712ec077ca3071e29ac93f2db8663938d17eaa011a800 + sourceBlobDigest: sha256:818f8ae440499921534f8a99ba574fb42c935ca8e70152292414b8866a845036 tags: - latest - main @@ -11,8 +11,8 @@ targets: php-target: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:80c3c90005952697b9d5e1deca96cc73c475b4aafecb711ac22912430743ef2b - sourceBlobDigest: sha256:c631a3d49dc602f7258899ba657fffa1c794ebe2c1f3211a3c728186c7577f54 + sourceRevisionDigest: sha256:48f9a0b94f30dfaea17712ec077ca3071e29ac93f2db8663938d17eaa011a800 + sourceBlobDigest: sha256:818f8ae440499921534f8a99ba574fb42c935ca8e70152292414b8866a845036 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 72a5b05..22c93f8 100755 --- a/README.md +++ b/README.md @@ -26,14 +26,15 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetApisRequest(); - $response = $sdk->apis->getApis($request); + $response = $sdk.apis->getApis( + request: $request + ); if ($response->apis !== null) { // handle response @@ -50,7 +51,7 @@ try {
Available methods -### [ApiEndpoints](docs/sdks/apiendpoints/README.md) +### [apiEndpoints](docs/sdks/apiendpoints/README.md) * [deleteApiEndpoint](docs/sdks/apiendpoints/README.md#deleteapiendpoint) - Delete an ApiEndpoint. * [findApiEndpoint](docs/sdks/apiendpoints/README.md#findapiendpoint) - Find an ApiEndpoint via its displayName. @@ -61,7 +62,7 @@ try { * [getApiEndpoint](docs/sdks/apiendpoints/README.md#getapiendpoint) - Get an ApiEndpoint. * [upsertApiEndpoint](docs/sdks/apiendpoints/README.md#upsertapiendpoint) - Upsert an ApiEndpoint. -### [Apis](docs/sdks/apis/README.md) +### [apis](docs/sdks/apis/README.md) * [deleteApi](docs/sdks/apis/README.md#deleteapi) - Delete an Api. * [generateOpenApiSpec](docs/sdks/apis/README.md#generateopenapispec) - Generate an OpenAPI specification for a particular Api. @@ -70,7 +71,7 @@ try { * [getApis](docs/sdks/apis/README.md#getapis) - Get a list of Apis for a given workspace * [upsertApi](docs/sdks/apis/README.md#upsertapi) - Upsert an Api -### [Artifacts](docs/sdks/artifacts/README.md) +### [artifacts](docs/sdks/artifacts/README.md) * [getBlob](docs/sdks/artifacts/README.md#getblob) - Get blob for a particular digest * [getManifest](docs/sdks/artifacts/README.md#getmanifest) - Get manifest for a particular reference @@ -80,64 +81,66 @@ try { * [postTags](docs/sdks/artifacts/README.md#posttags) - Add tags to an existing revision * [preflight](docs/sdks/artifacts/README.md#preflight) - Get access token for communicating with OCI distribution endpoints -### [Auth](docs/sdks/auth/README.md) +### [auth](docs/sdks/auth/README.md) +* [getAccess](docs/sdks/auth/README.md#getaccess) - Get access allowances for a particular workspace * [getAccessToken](docs/sdks/auth/README.md#getaccesstoken) - Get or refresh an access token for the current workspace. * [getUser](docs/sdks/auth/README.md#getuser) - Get information about the current user. -* [getWorkspaceAccess](docs/sdks/auth/README.md#getworkspaceaccess) - Get access allowances for a particular workspace * [validateApiKey](docs/sdks/auth/README.md#validateapikey) - Validate the current api key. -### [Embeds](docs/sdks/embeds/README.md) +### [embeds](docs/sdks/embeds/README.md) * [getEmbedAccessToken](docs/sdks/embeds/README.md#getembedaccesstoken) - Get an embed access token for the current workspace. * [getValidEmbedAccessTokens](docs/sdks/embeds/README.md#getvalidembedaccesstokens) - Get all valid embed access tokens for the current workspace. * [revokeEmbedAccessToken](docs/sdks/embeds/README.md#revokeembedaccesstoken) - Revoke an embed access EmbedToken. -### [Events](docs/sdks/events/README.md) +### [events](docs/sdks/events/README.md) -* [getWorkspaceEventsByTarget](docs/sdks/events/README.md#getworkspaceeventsbytarget) - Load recent events for a particular workspace -* [getWorkspaceTargets](docs/sdks/events/README.md#getworkspacetargets) - Load targets for a particular workspace -* [postWorkspaceEvents](docs/sdks/events/README.md#postworkspaceevents) - Post events for a specific workspace -* [searchWorkspaceEvents](docs/sdks/events/README.md#searchworkspaceevents) - Search events for a particular workspace by any field +* [getEventsByTarget](docs/sdks/events/README.md#geteventsbytarget) - Load recent events for a particular workspace +* [getTargets](docs/sdks/events/README.md#gettargets) - Load targets for a particular workspace +* [getTargetsDeprecated](docs/sdks/events/README.md#gettargetsdeprecated) - Load targets for a particular workspace +* [post](docs/sdks/events/README.md#post) - Post events for a specific workspace +* [search](docs/sdks/events/README.md#search) - Search events for a particular workspace by any field -### [Github](docs/sdks/github/README.md) +### [github](docs/sdks/github/README.md) * [checkAccess](docs/sdks/github/README.md#checkaccess) +* [checkPublishingPRs](docs/sdks/github/README.md#checkpublishingprs) +* [checkPublishingSecrets](docs/sdks/github/README.md#checkpublishingsecrets) * [configureCodeSamples](docs/sdks/github/README.md#configurecodesamples) * [configureMintlifyRepo](docs/sdks/github/README.md#configuremintlifyrepo) * [configureTarget](docs/sdks/github/README.md#configuretarget) -* [fetchPublishingPRs](docs/sdks/github/README.md#fetchpublishingprs) * [getAction](docs/sdks/github/README.md#getaction) -* [githubCheckPublishingSecrets](docs/sdks/github/README.md#githubcheckpublishingsecrets) -* [githubStorePublishingSecrets](docs/sdks/github/README.md#githubstorepublishingsecrets) +* [storePublishingSecrets](docs/sdks/github/README.md#storepublishingsecrets) * [triggerAction](docs/sdks/github/README.md#triggeraction) -### [Metadata](docs/sdks/metadata/README.md) +### [metadata](docs/sdks/metadata/README.md) * [deleteVersionMetadata](docs/sdks/metadata/README.md#deleteversionmetadata) - Delete metadata for a particular apiID and versionID. * [getVersionMetadata](docs/sdks/metadata/README.md#getversionmetadata) - Get all metadata for a particular apiID and versionID. * [insertVersionMetadata](docs/sdks/metadata/README.md#insertversionmetadata) - Insert metadata for a particular apiID and versionID. -### [Organizations](docs/sdks/organizations/README.md) +### [organizations](docs/sdks/organizations/README.md) +* [create](docs/sdks/organizations/README.md#create) - Create an organization * [createFreeTrial](docs/sdks/organizations/README.md#createfreetrial) - Create a free trial for an organization -* [getOrganization](docs/sdks/organizations/README.md#getorganization) - Get organization -* [getOrganizationUsage](docs/sdks/organizations/README.md#getorganizationusage) - Get billing usage summary for a particular organization -* [getOrganizations](docs/sdks/organizations/README.md#getorganizations) - Get organizations for a user +* [get](docs/sdks/organizations/README.md#get) - Get organization +* [getAll](docs/sdks/organizations/README.md#getall) - Get organizations for a user +* [getUsage](docs/sdks/organizations/README.md#getusage) - Get billing usage summary for a particular organization -### [Reports](docs/sdks/reports/README.md) +### [reports](docs/sdks/reports/README.md) * [getChangesReportSignedUrl](docs/sdks/reports/README.md#getchangesreportsignedurl) - Get the signed access url for the change reports for a particular document. * [getLintingReportSignedUrl](docs/sdks/reports/README.md#getlintingreportsignedurl) - Get the signed access url for the linting reports for a particular document. * [uploadReport](docs/sdks/reports/README.md#uploadreport) - Upload a report. -### [Requests](docs/sdks/requests/README.md) +### [requests](docs/sdks/requests/README.md) * [generateRequestPostmanCollection](docs/sdks/requests/README.md#generaterequestpostmancollection) - Generate a Postman collection for a particular request. * [getRequestFromEventLog](docs/sdks/requests/README.md#getrequestfromeventlog) - Get information about a particular request. * [queryEventLog](docs/sdks/requests/README.md#queryeventlog) - Query the event log to retrieve a list of requests. -### [Schemas](docs/sdks/schemas/README.md) +### [schemas](docs/sdks/schemas/README.md) * [deleteSchema](docs/sdks/schemas/README.md#deleteschema) - Delete a particular schema revision for an Api. * [downloadSchema](docs/sdks/schemas/README.md#downloadschema) - Download the latest schema for a particular apiID. @@ -149,21 +152,32 @@ try { * [registerSchema](docs/sdks/schemas/README.md#registerschema) - Register a schema. -### [ShortURLs](docs/sdks/shorturls/README.md) +### [shortURLs](docs/sdks/shorturls/README.md) * [create](docs/sdks/shorturls/README.md#create) - Shorten a URL. -### [Suggest](docs/sdks/suggest/README.md) +### [suggest](docs/sdks/suggest/README.md) * [suggest](docs/sdks/suggest/README.md#suggest) - Generate suggestions for improving an OpenAPI document. * [suggestOpenAPI](docs/sdks/suggest/README.md#suggestopenapi) - (DEPRECATED) Generate suggestions for improving an OpenAPI document. * [suggestOpenAPIRegistry](docs/sdks/suggest/README.md#suggestopenapiregistry) - Generate suggestions for improving an OpenAPI document stored in the registry. -### [Workspaces](docs/sdks/workspaces/README.md) - -* [getWorkspace](docs/sdks/workspaces/README.md#getworkspace) - Get workspace -* [getWorkspaceByContext](docs/sdks/workspaces/README.md#getworkspacebycontext) - Get workspace by context -* [getWorkspaceFeatureFlags](docs/sdks/workspaces/README.md#getworkspacefeatureflags) - Get workspace feature flags +### [workspaces](docs/sdks/workspaces/README.md) + +* [create](docs/sdks/workspaces/README.md#create) - Create a workspace +* [createToken](docs/sdks/workspaces/README.md#createtoken) - Create a token for a particular workspace +* [deleteToken](docs/sdks/workspaces/README.md#deletetoken) - Delete a token for a particular workspace +* [get](docs/sdks/workspaces/README.md#get) - Get workspace by context +* [getAll](docs/sdks/workspaces/README.md#getall) - Get workspaces for a user +* [getByID](docs/sdks/workspaces/README.md#getbyid) - Get workspace +* [getFeatureFlags](docs/sdks/workspaces/README.md#getfeatureflags) - Get workspace feature flags +* [getSettings](docs/sdks/workspaces/README.md#getsettings) - Get workspace settings +* [getTeam](docs/sdks/workspaces/README.md#getteam) - Get team members for a particular workspace +* [getTokens](docs/sdks/workspaces/README.md#gettokens) - Get tokens for a particular workspace +* [grantAccess](docs/sdks/workspaces/README.md#grantaccess) - Grant a user access to a particular workspace +* [revokeAccess](docs/sdks/workspaces/README.md#revokeaccess) - Revoke a user's access to a particular workspace +* [update](docs/sdks/workspaces/README.md#update) - Update workspace details +* [updateSettings](docs/sdks/workspaces/README.md#updatesettings) - Update workspace settings
@@ -190,53 +204,6 @@ You can override the default server globally by passing a server name to the `se The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: - -## Global Parameters - -A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. - -For example, you can set `workspaceID` to `''` at SDK initialization and then you do not have to pass the same value on calls to operations like `getWorkspace`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - - -### Available Globals - -The following global parameter is available. - -| Name | Type | Required | Description | -| ---- | ---- |:--------:| ----------- | -| workspaceID | string | | The workspaceID parameter. | - - -### Example - -```php -declare(strict_types=1); - -require 'vendor/autoload.php'; - -use Speakeasy\SpeakeasyClientSDK; -use Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Shared; - -$security = new Shared\Security( - apiKey: "", -); - -$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - -try { - $request = new Operations\GetWorkspaceRequest(); - $response = $sdk->workspaces->getWorkspace($request); - - if ($response->workspace !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception -} -``` - - ## Summary @@ -251,7 +218,6 @@ For more information about the API: [The Speakeasy Platform Documentation](/docs * [SDK Installation](#sdk-installation) * [SDK Example Usage](#sdk-example-usage) * [Available Resources and Operations](#available-resources-and-operations) -* [Global Parameters](#global-parameters) * [Server Selection](#server-selection) diff --git a/RELEASES.md b/RELEASES.md index d46b220..72cca9f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1274,4 +1274,14 @@ Based on: ### Generated - [php v0.41.16] . ### Releases -- [Composer v0.41.16] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.41.16 - . \ No newline at end of file +- [Composer v0.41.16] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.41.16 - . + +## 2024-09-27 00:15:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.403.3 (2.424.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.42.0] . +### Releases +- [Composer v0.42.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.42.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index c289abe..1b2fcfb 100644 --- a/USAGE.md +++ b/USAGE.md @@ -9,14 +9,15 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetApisRequest(); - $response = $sdk->apis->getApis($request); + $response = $sdk.apis->getApis( + request: $request + ); if ($response->apis !== null) { // handle response diff --git a/composer.json b/composer.json index e05820d..8cb0777 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "phpdocumentor/type-resolver": "^1.8" }, "require-dev": { - "laravel/pint": "^1.15", + "laravel/pint": "^1.18.1", "phpstan/phpstan": "^1.9", "phpunit/phpunit": "^10", "rector/rector": "^0.18.13", diff --git a/docs/Models/Operations/CheckAccessRequest.md b/docs/Models/Operations/CheckGithubAccessRequest.md similarity index 92% rename from docs/Models/Operations/CheckAccessRequest.md rename to docs/Models/Operations/CheckGithubAccessRequest.md index 5f64d2d..8f2ddf2 100644 --- a/docs/Models/Operations/CheckAccessRequest.md +++ b/docs/Models/Operations/CheckGithubAccessRequest.md @@ -1,4 +1,4 @@ -# CheckAccessRequest +# CheckGithubAccessRequest ## Fields diff --git a/docs/Models/Operations/CheckGithubAccessResponse.md b/docs/Models/Operations/CheckGithubAccessResponse.md new file mode 100644 index 0000000..bbf0a82 --- /dev/null +++ b/docs/Models/Operations/CheckGithubAccessResponse.md @@ -0,0 +1,10 @@ +# CheckGithubAccessResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/ConfigureCodeSamplesResponse.md b/docs/Models/Operations/ConfigureCodeSamplesResponse.md deleted file mode 100644 index 10a023f..0000000 --- a/docs/Models/Operations/ConfigureCodeSamplesResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ConfigureCodeSamplesResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | -| `githubConfigureCodeSamplesResponse` | [?Shared\GithubConfigureCodeSamplesResponse](../../Models/Shared/GithubConfigureCodeSamplesResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/CreateFreeTrialResponse.md b/docs/Models/Operations/CreateFreeTrialResponse.md index 7844ea5..71f2416 100644 --- a/docs/Models/Operations/CreateFreeTrialResponse.md +++ b/docs/Models/Operations/CreateFreeTrialResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/ConfigureMintlifyRepoResponse.md b/docs/Models/Operations/CreateOrganizationResponse.md similarity index 89% rename from docs/Models/Operations/ConfigureMintlifyRepoResponse.md rename to docs/Models/Operations/CreateOrganizationResponse.md index e178f7c..197f2d2 100644 --- a/docs/Models/Operations/ConfigureMintlifyRepoResponse.md +++ b/docs/Models/Operations/CreateOrganizationResponse.md @@ -1,4 +1,4 @@ -# ConfigureMintlifyRepoResponse +# CreateOrganizationResponse ## Fields @@ -8,4 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `organization` | [?Shared\Organization](../../Models/Shared/Organization.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/ConfigureTargetResponse.md b/docs/Models/Operations/CreateWorkspaceResponse.md similarity index 89% rename from docs/Models/Operations/ConfigureTargetResponse.md rename to docs/Models/Operations/CreateWorkspaceResponse.md index 3476c33..83a0d38 100644 --- a/docs/Models/Operations/ConfigureTargetResponse.md +++ b/docs/Models/Operations/CreateWorkspaceResponse.md @@ -1,4 +1,4 @@ -# ConfigureTargetResponse +# CreateWorkspaceResponse ## Fields @@ -8,4 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `workspace` | [?Shared\Workspace](../../Models/Shared/Workspace.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/CreateWorkspaceTokenRequest.md b/docs/Models/Operations/CreateWorkspaceTokenRequest.md new file mode 100644 index 0000000..2fe0e77 --- /dev/null +++ b/docs/Models/Operations/CreateWorkspaceTokenRequest.md @@ -0,0 +1,9 @@ +# CreateWorkspaceTokenRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `workspaceToken` | [Shared\WorkspaceToken](../../Models/Shared/WorkspaceToken.md) | :heavy_check_mark: | N/A | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/CreateWorkspaceTokenResponse.md b/docs/Models/Operations/CreateWorkspaceTokenResponse.md new file mode 100644 index 0000000..cdedbb8 --- /dev/null +++ b/docs/Models/Operations/CreateWorkspaceTokenResponse.md @@ -0,0 +1,10 @@ +# CreateWorkspaceTokenResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteApiEndpointResponse.md b/docs/Models/Operations/DeleteApiEndpointResponse.md index 74c991c..f6a422b 100644 --- a/docs/Models/Operations/DeleteApiEndpointResponse.md +++ b/docs/Models/Operations/DeleteApiEndpointResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteApiResponse.md b/docs/Models/Operations/DeleteApiResponse.md index dc89487..5d83421 100644 --- a/docs/Models/Operations/DeleteApiResponse.md +++ b/docs/Models/Operations/DeleteApiResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteSchemaResponse.md b/docs/Models/Operations/DeleteSchemaResponse.md index 2ed4300..9b936e3 100644 --- a/docs/Models/Operations/DeleteSchemaResponse.md +++ b/docs/Models/Operations/DeleteSchemaResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteVersionMetadataResponse.md b/docs/Models/Operations/DeleteVersionMetadataResponse.md index ff8cc15..87d56ce 100644 --- a/docs/Models/Operations/DeleteVersionMetadataResponse.md +++ b/docs/Models/Operations/DeleteVersionMetadataResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteWorkspaceTokenRequest.md b/docs/Models/Operations/DeleteWorkspaceTokenRequest.md new file mode 100644 index 0000000..c89d74e --- /dev/null +++ b/docs/Models/Operations/DeleteWorkspaceTokenRequest.md @@ -0,0 +1,9 @@ +# DeleteWorkspaceTokenRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `tokenID` | *string* | :heavy_check_mark: | Unique identifier of the token. | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteWorkspaceTokenResponse.md b/docs/Models/Operations/DeleteWorkspaceTokenResponse.md new file mode 100644 index 0000000..a53bbd5 --- /dev/null +++ b/docs/Models/Operations/DeleteWorkspaceTokenResponse.md @@ -0,0 +1,10 @@ +# DeleteWorkspaceTokenResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DownloadSchemaResponse.md b/docs/Models/Operations/DownloadSchemaResponse.md index 111dea9..555d851 100644 --- a/docs/Models/Operations/DownloadSchemaResponse.md +++ b/docs/Models/Operations/DownloadSchemaResponse.md @@ -8,6 +8,5 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonSchema` | *?string* | :heavy_minus_sign: | OK | -| `twoHundredApplicationXYamlSchema` | *?string* | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `twoXXApplicationJsonSchema` | *?string* | :heavy_minus_sign: | OK | +| `twoXXApplicationXYamlSchema` | *?string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/DownloadSchemaRevisionResponse.md b/docs/Models/Operations/DownloadSchemaRevisionResponse.md index 7f2cb1b..d9bab9d 100644 --- a/docs/Models/Operations/DownloadSchemaRevisionResponse.md +++ b/docs/Models/Operations/DownloadSchemaRevisionResponse.md @@ -8,6 +8,5 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonSchema` | *?string* | :heavy_minus_sign: | OK | -| `twoHundredApplicationXYamlSchema` | *?string* | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `twoXXApplicationJsonSchema` | *?string* | :heavy_minus_sign: | OK | +| `twoXXApplicationXYamlSchema` | *?string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/FetchPublishingPRsResponse.md b/docs/Models/Operations/FetchPublishingPRsResponse.md deleted file mode 100644 index df0740b..0000000 --- a/docs/Models/Operations/FetchPublishingPRsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# FetchPublishingPRsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | -| `githubPublishingPRResponse` | [?Shared\GithubPublishingPRResponse](../../Models/Shared/GithubPublishingPRResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/FindApiEndpointResponse.md b/docs/Models/Operations/FindApiEndpointResponse.md index c5a8c8f..3795e28 100644 --- a/docs/Models/Operations/FindApiEndpointResponse.md +++ b/docs/Models/Operations/FindApiEndpointResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apiEndpoint` | [?Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md) | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apiEndpoint` | [?Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.md b/docs/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.md index 3266e0b..190dde5 100644 --- a/docs/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.md +++ b/docs/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `generateOpenApiSpecDiff` | [?Shared\GenerateOpenApiSpecDiff](../../Models/Shared/GenerateOpenApiSpecDiff.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GenerateOpenApiSpecResponse.md b/docs/Models/Operations/GenerateOpenApiSpecResponse.md index b05988b..b6432a4 100644 --- a/docs/Models/Operations/GenerateOpenApiSpecResponse.md +++ b/docs/Models/Operations/GenerateOpenApiSpecResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `generateOpenApiSpecDiff` | [?Shared\GenerateOpenApiSpecDiff](../../Models/Shared/GenerateOpenApiSpecDiff.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.md b/docs/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.md index 3a67b04..b280e1c 100644 --- a/docs/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.md +++ b/docs/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `postmanCollection` | *?string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GeneratePostmanCollectionResponse.md b/docs/Models/Operations/GeneratePostmanCollectionResponse.md index d126955..7366d0c 100644 --- a/docs/Models/Operations/GeneratePostmanCollectionResponse.md +++ b/docs/Models/Operations/GeneratePostmanCollectionResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `postmanCollection` | *?string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GenerateRequestPostmanCollectionResponse.md b/docs/Models/Operations/GenerateRequestPostmanCollectionResponse.md index 5e51982..c7ec76c 100644 --- a/docs/Models/Operations/GenerateRequestPostmanCollectionResponse.md +++ b/docs/Models/Operations/GenerateRequestPostmanCollectionResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `postmanCollection` | *?string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetAccessTokenResponse.md b/docs/Models/Operations/GetAccessTokenResponse.md index bc080a3..76b1a2e 100644 --- a/docs/Models/Operations/GetAccessTokenResponse.md +++ b/docs/Models/Operations/GetAccessTokenResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `accessToken` | [?Shared\AccessToken](../../Models/Shared/AccessToken.md) | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `accessToken` | [?Shared\AccessToken](../../Models/Shared/AccessToken.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetActionResponse.md b/docs/Models/Operations/GetActionResponse.md deleted file mode 100644 index 6cba733..0000000 --- a/docs/Models/Operations/GetActionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetActionResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | -| `githubGetActionResponse` | [?Shared\GithubGetActionResponse](../../Models/Shared/GithubGetActionResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetAllApiEndpointsResponse.md b/docs/Models/Operations/GetAllApiEndpointsResponse.md index ae2fc35..fc62465 100644 --- a/docs/Models/Operations/GetAllApiEndpointsResponse.md +++ b/docs/Models/Operations/GetAllApiEndpointsResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apiEndpoints` | array<[Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md)> | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apiEndpoints` | array<[Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetAllApiVersionsResponse.md b/docs/Models/Operations/GetAllApiVersionsResponse.md index 249e186..de569e9 100644 --- a/docs/Models/Operations/GetAllApiVersionsResponse.md +++ b/docs/Models/Operations/GetAllApiVersionsResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apis` | array<[Shared\Api](../../Models/Shared/Api.md)> | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apis` | array<[Shared\Api](../../Models/Shared/Api.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetAllForVersionApiEndpointsResponse.md b/docs/Models/Operations/GetAllForVersionApiEndpointsResponse.md index fca24ce..1e7cac0 100644 --- a/docs/Models/Operations/GetAllForVersionApiEndpointsResponse.md +++ b/docs/Models/Operations/GetAllForVersionApiEndpointsResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apiEndpoints` | array<[Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md)> | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apiEndpoints` | array<[Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetApiEndpointResponse.md b/docs/Models/Operations/GetApiEndpointResponse.md index a4e173f..f1b9ab8 100644 --- a/docs/Models/Operations/GetApiEndpointResponse.md +++ b/docs/Models/Operations/GetApiEndpointResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apiEndpoint` | [?Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md) | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apiEndpoint` | [?Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetApisResponse.md b/docs/Models/Operations/GetApisResponse.md index 7827470..9ae7149 100644 --- a/docs/Models/Operations/GetApisResponse.md +++ b/docs/Models/Operations/GetApisResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apis` | array<[Shared\Api](../../Models/Shared/Api.md)> | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apis` | array<[Shared\Api](../../Models/Shared/Api.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetBlobResponse.md b/docs/Models/Operations/GetBlobResponse.md index f9184d6..e08e739 100644 --- a/docs/Models/Operations/GetBlobResponse.md +++ b/docs/Models/Operations/GetBlobResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `blob` | *?string* | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `blob` | *?string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetEmbedAccessTokenResponse.md b/docs/Models/Operations/GetEmbedAccessTokenResponse.md index e11d820..318d906 100644 --- a/docs/Models/Operations/GetEmbedAccessTokenResponse.md +++ b/docs/Models/Operations/GetEmbedAccessTokenResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `embedAccessTokenResponse` | [?Shared\EmbedAccessTokenResponse](../../Models/Shared/EmbedAccessTokenResponse.md) | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `embedAccessTokenResponse` | [?Shared\EmbedAccessTokenResponse](../../Models/Shared/EmbedAccessTokenResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetActionRequest.md b/docs/Models/Operations/GetGitHubActionRequest.md similarity index 97% rename from docs/Models/Operations/GetActionRequest.md rename to docs/Models/Operations/GetGitHubActionRequest.md index 5822065..fe49f9d 100644 --- a/docs/Models/Operations/GetActionRequest.md +++ b/docs/Models/Operations/GetGitHubActionRequest.md @@ -1,4 +1,4 @@ -# GetActionRequest +# GetGitHubActionRequest ## Fields diff --git a/docs/Models/Operations/GetGitHubActionResponse.md b/docs/Models/Operations/GetGitHubActionResponse.md new file mode 100644 index 0000000..0b7bd42 --- /dev/null +++ b/docs/Models/Operations/GetGitHubActionResponse.md @@ -0,0 +1,11 @@ +# GetGitHubActionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `githubGetActionResponse` | [?Shared\GithubGetActionResponse](../../Models/Shared/GithubGetActionResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetManifestResponse.md b/docs/Models/Operations/GetManifestResponse.md index 7284a98..733eec7 100644 --- a/docs/Models/Operations/GetManifestResponse.md +++ b/docs/Models/Operations/GetManifestResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | | `manifest` | [?Shared\Manifest](../../Models/Shared/Manifest.md) | :heavy_minus_sign: | OK | {
"config": {
"digest": "sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f",
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 1512
},
"layers": [
{
"digest": "sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6",
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 2107098
}
],
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"schemaVersion": 2
} | \ No newline at end of file diff --git a/docs/Models/Operations/GetNamespacesResponse.md b/docs/Models/Operations/GetNamespacesResponse.md index c17823c..6d3ff24 100644 --- a/docs/Models/Operations/GetNamespacesResponse.md +++ b/docs/Models/Operations/GetNamespacesResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `getNamespacesResponse` | [?Shared\GetNamespacesResponse](../../Models/Shared/GetNamespacesResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetOrganizationResponse.md b/docs/Models/Operations/GetOrganizationResponse.md index 57f84ab..518c450 100644 --- a/docs/Models/Operations/GetOrganizationResponse.md +++ b/docs/Models/Operations/GetOrganizationResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `organization` | [?Shared\Organization](../../Models/Shared/Organization.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetOrganizationUsageResponse.md b/docs/Models/Operations/GetOrganizationUsageResponse.md index 9205e82..9f276b8 100644 --- a/docs/Models/Operations/GetOrganizationUsageResponse.md +++ b/docs/Models/Operations/GetOrganizationUsageResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `organizationUsageResponse` | [?Shared\OrganizationUsageResponse](../../Models/Shared/OrganizationUsageResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetOrganizationsResponse.md b/docs/Models/Operations/GetOrganizationsResponse.md index 7e61eea..9cf6e51 100644 --- a/docs/Models/Operations/GetOrganizationsResponse.md +++ b/docs/Models/Operations/GetOrganizationsResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `organizations` | array<[Shared\Organization](../../Models/Shared/Organization.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetRequestFromEventLogResponse.md b/docs/Models/Operations/GetRequestFromEventLogResponse.md index 528a447..c495b83 100644 --- a/docs/Models/Operations/GetRequestFromEventLogResponse.md +++ b/docs/Models/Operations/GetRequestFromEventLogResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `unboundedRequest` | [?Shared\UnboundedRequest](../../Models/Shared/UnboundedRequest.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetRevisionsResponse.md b/docs/Models/Operations/GetRevisionsResponse.md index 47c3d87..15c4e02 100644 --- a/docs/Models/Operations/GetRevisionsResponse.md +++ b/docs/Models/Operations/GetRevisionsResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `getRevisionsResponse` | [?Shared\GetRevisionsResponse](../../Models/Shared/GetRevisionsResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetSchemaDiffResponse.md b/docs/Models/Operations/GetSchemaDiffResponse.md index 23b1084..4e244cf 100644 --- a/docs/Models/Operations/GetSchemaDiffResponse.md +++ b/docs/Models/Operations/GetSchemaDiffResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `schemaDiff` | [?Shared\SchemaDiff](../../Models/Shared/SchemaDiff.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetSchemaResponse.md b/docs/Models/Operations/GetSchemaResponse.md index 5eab420..799108d 100644 --- a/docs/Models/Operations/GetSchemaResponse.md +++ b/docs/Models/Operations/GetSchemaResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `schema` | [?Shared\Schema](../../Models/Shared/Schema.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetSchemaRevisionResponse.md b/docs/Models/Operations/GetSchemaRevisionResponse.md index 81151b1..7fd2caa 100644 --- a/docs/Models/Operations/GetSchemaRevisionResponse.md +++ b/docs/Models/Operations/GetSchemaRevisionResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `schema` | [?Shared\Schema](../../Models/Shared/Schema.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetSchemasResponse.md b/docs/Models/Operations/GetSchemasResponse.md index 25dc2ed..f04f399 100644 --- a/docs/Models/Operations/GetSchemasResponse.md +++ b/docs/Models/Operations/GetSchemasResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `classes` | array<[Shared\Schema](../../Models/Shared/Schema.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetTagsResponse.md b/docs/Models/Operations/GetTagsResponse.md index d7ba822..c33832a 100644 --- a/docs/Models/Operations/GetTagsResponse.md +++ b/docs/Models/Operations/GetTagsResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `getTagsResponse` | [?Shared\GetTagsResponse](../../Models/Shared/GetTagsResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetUserResponse.md b/docs/Models/Operations/GetUserResponse.md index 23427f8..30a5e27 100644 --- a/docs/Models/Operations/GetUserResponse.md +++ b/docs/Models/Operations/GetUserResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `user` | [?Shared\User](../../Models/Shared/User.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetValidEmbedAccessTokensResponse.md b/docs/Models/Operations/GetValidEmbedAccessTokensResponse.md index d6b4393..bfd0939 100644 --- a/docs/Models/Operations/GetValidEmbedAccessTokensResponse.md +++ b/docs/Models/Operations/GetValidEmbedAccessTokensResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `embedTokens` | array<[Shared\EmbedToken](../../Models/Shared/EmbedToken.md)> | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `embedTokens` | array<[Shared\EmbedToken](../../Models/Shared/EmbedToken.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetVersionMetadataResponse.md b/docs/Models/Operations/GetVersionMetadataResponse.md index 1db2578..47609d1 100644 --- a/docs/Models/Operations/GetVersionMetadataResponse.md +++ b/docs/Models/Operations/GetVersionMetadataResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `versionMetadata` | array<[Shared\VersionMetadata](../../Models/Shared/VersionMetadata.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceByContextResponse.md b/docs/Models/Operations/GetWorkspaceByContextResponse.md index 22a1267..fdcf45f 100644 --- a/docs/Models/Operations/GetWorkspaceByContextResponse.md +++ b/docs/Models/Operations/GetWorkspaceByContextResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `workspaceAndOrganization` | [?Shared\WorkspaceAndOrganization](../../Models/Shared/WorkspaceAndOrganization.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md b/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md index a48d737..4a63e33 100644 --- a/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md +++ b/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `targetID` | *string* | :heavy_check_mark: | Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target) | -| `afterCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return events created after this timestamp | -| `workspaceID` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file +| `targetId` | *string* | :heavy_check_mark: | Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target) | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | +| `afterCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return events created after this timestamp | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md b/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md index ba0e95e..156095e 100644 --- a/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md +++ b/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `workspaceID` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceRequest.md b/docs/Models/Operations/GetWorkspaceRequest.md index 429ba45..5e2b764 100644 --- a/docs/Models/Operations/GetWorkspaceRequest.md +++ b/docs/Models/Operations/GetWorkspaceRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `workspaceID` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceResponse.md b/docs/Models/Operations/GetWorkspaceResponse.md index 328b1c2..7b7c53d 100644 --- a/docs/Models/Operations/GetWorkspaceResponse.md +++ b/docs/Models/Operations/GetWorkspaceResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `workspace` | [?Shared\Workspace](../../Models/Shared/Workspace.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceSettingsRequest.md b/docs/Models/Operations/GetWorkspaceSettingsRequest.md new file mode 100644 index 0000000..46c9176 --- /dev/null +++ b/docs/Models/Operations/GetWorkspaceSettingsRequest.md @@ -0,0 +1,8 @@ +# GetWorkspaceSettingsRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceSettingsResponse.md b/docs/Models/Operations/GetWorkspaceSettingsResponse.md new file mode 100644 index 0000000..35daca2 --- /dev/null +++ b/docs/Models/Operations/GetWorkspaceSettingsResponse.md @@ -0,0 +1,11 @@ +# GetWorkspaceSettingsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `workspaceSettings` | [?Shared\WorkspaceSettings](../../Models/Shared/WorkspaceSettings.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md b/docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md new file mode 100644 index 0000000..25d7d84 --- /dev/null +++ b/docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md @@ -0,0 +1,9 @@ +# GetWorkspaceTargetsDeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | +| `afterLastEventCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return targets with events created after this timestamp | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.md b/docs/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.md new file mode 100644 index 0000000..463130d --- /dev/null +++ b/docs/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetWorkspaceTargetsDeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `targetSDKList` | array<[Shared\TargetSDK](../../Models/Shared/TargetSDK.md)> | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTargetsRequest.md b/docs/Models/Operations/GetWorkspaceTargetsRequest.md index bc229cd..ae1b688 100644 --- a/docs/Models/Operations/GetWorkspaceTargetsRequest.md +++ b/docs/Models/Operations/GetWorkspaceTargetsRequest.md @@ -5,5 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `afterLastEventCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return targets with events created after this timestamp | -| `workspaceID` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file +| `afterLastEventCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return targets with events created after this timestamp | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTeamRequest.md b/docs/Models/Operations/GetWorkspaceTeamRequest.md new file mode 100644 index 0000000..a6a0ab4 --- /dev/null +++ b/docs/Models/Operations/GetWorkspaceTeamRequest.md @@ -0,0 +1,8 @@ +# GetWorkspaceTeamRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/TriggerActionResponse.md b/docs/Models/Operations/GetWorkspaceTeamResponse.md similarity index 89% rename from docs/Models/Operations/TriggerActionResponse.md rename to docs/Models/Operations/GetWorkspaceTeamResponse.md index 92a8ca6..788425c 100644 --- a/docs/Models/Operations/TriggerActionResponse.md +++ b/docs/Models/Operations/GetWorkspaceTeamResponse.md @@ -1,4 +1,4 @@ -# TriggerActionResponse +# GetWorkspaceTeamResponse ## Fields @@ -8,4 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `workspaceTeamResponse` | [?Shared\WorkspaceTeamResponse](../../Models/Shared/WorkspaceTeamResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTokensRequest.md b/docs/Models/Operations/GetWorkspaceTokensRequest.md new file mode 100644 index 0000000..0eec845 --- /dev/null +++ b/docs/Models/Operations/GetWorkspaceTokensRequest.md @@ -0,0 +1,8 @@ +# GetWorkspaceTokensRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTokensResponse.md b/docs/Models/Operations/GetWorkspaceTokensResponse.md new file mode 100644 index 0000000..882aedb --- /dev/null +++ b/docs/Models/Operations/GetWorkspaceTokensResponse.md @@ -0,0 +1,11 @@ +# GetWorkspaceTokensResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `classes` | array<[Shared\WorkspaceToken](../../Models/Shared/WorkspaceToken.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/CheckAccessResponse.md b/docs/Models/Operations/GetWorkspacesResponse.md similarity index 89% rename from docs/Models/Operations/CheckAccessResponse.md rename to docs/Models/Operations/GetWorkspacesResponse.md index aeb97a5..68d6e67 100644 --- a/docs/Models/Operations/CheckAccessResponse.md +++ b/docs/Models/Operations/GetWorkspacesResponse.md @@ -1,4 +1,4 @@ -# CheckAccessResponse +# GetWorkspacesResponse ## Fields @@ -8,4 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `workspaces` | array<[Shared\Workspace](../../Models/Shared/Workspace.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/FetchPublishingPRsRequest.md b/docs/Models/Operations/GithubCheckPublishingPRsRequest.md similarity index 93% rename from docs/Models/Operations/FetchPublishingPRsRequest.md rename to docs/Models/Operations/GithubCheckPublishingPRsRequest.md index 89c6764..430fd14 100644 --- a/docs/Models/Operations/FetchPublishingPRsRequest.md +++ b/docs/Models/Operations/GithubCheckPublishingPRsRequest.md @@ -1,4 +1,4 @@ -# FetchPublishingPRsRequest +# GithubCheckPublishingPRsRequest ## Fields diff --git a/docs/Models/Operations/GithubCheckPublishingPRsResponse.md b/docs/Models/Operations/GithubCheckPublishingPRsResponse.md new file mode 100644 index 0000000..c2beffc --- /dev/null +++ b/docs/Models/Operations/GithubCheckPublishingPRsResponse.md @@ -0,0 +1,11 @@ +# GithubCheckPublishingPRsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `githubPublishingPRResponse` | [?Shared\GithubPublishingPRResponse](../../Models/Shared/GithubPublishingPRResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GithubCheckPublishingSecretsResponse.md b/docs/Models/Operations/GithubCheckPublishingSecretsResponse.md index 3c88720..f5de6c5 100644 --- a/docs/Models/Operations/GithubCheckPublishingSecretsResponse.md +++ b/docs/Models/Operations/GithubCheckPublishingSecretsResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `githubMissingPublishingSecretsResponse` | [?Shared\GithubMissingPublishingSecretsResponse](../../Models/Shared/GithubMissingPublishingSecretsResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GithubConfigureCodeSamplesResponse.md b/docs/Models/Operations/GithubConfigureCodeSamplesResponse.md new file mode 100644 index 0000000..c77a545 --- /dev/null +++ b/docs/Models/Operations/GithubConfigureCodeSamplesResponse.md @@ -0,0 +1,11 @@ +# GithubConfigureCodeSamplesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `githubConfigureCodeSamplesResponse` | [?Shared\GithubConfigureCodeSamplesResponse](../../Models/Shared/GithubConfigureCodeSamplesResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GithubConfigureMintlifyRepoResponse.md b/docs/Models/Operations/GithubConfigureMintlifyRepoResponse.md new file mode 100644 index 0000000..7b6acaf --- /dev/null +++ b/docs/Models/Operations/GithubConfigureMintlifyRepoResponse.md @@ -0,0 +1,10 @@ +# GithubConfigureMintlifyRepoResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GithubConfigureTargetResponse.md b/docs/Models/Operations/GithubConfigureTargetResponse.md new file mode 100644 index 0000000..940bfc4 --- /dev/null +++ b/docs/Models/Operations/GithubConfigureTargetResponse.md @@ -0,0 +1,10 @@ +# GithubConfigureTargetResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GithubStorePublishingSecretsResponse.md b/docs/Models/Operations/GithubStorePublishingSecretsResponse.md index 989e410..6092d11 100644 --- a/docs/Models/Operations/GithubStorePublishingSecretsResponse.md +++ b/docs/Models/Operations/GithubStorePublishingSecretsResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GithubTriggerActionResponse.md b/docs/Models/Operations/GithubTriggerActionResponse.md new file mode 100644 index 0000000..23f4425 --- /dev/null +++ b/docs/Models/Operations/GithubTriggerActionResponse.md @@ -0,0 +1,10 @@ +# GithubTriggerActionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md b/docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md new file mode 100644 index 0000000..48f1ec2 --- /dev/null +++ b/docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md @@ -0,0 +1,9 @@ +# GrantUserAccessToWorkspaceRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `email` | *string* | :heavy_check_mark: | Email of the user to grant access to. | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GrantUserAccessToWorkspaceResponse.md b/docs/Models/Operations/GrantUserAccessToWorkspaceResponse.md new file mode 100644 index 0000000..f58c2a4 --- /dev/null +++ b/docs/Models/Operations/GrantUserAccessToWorkspaceResponse.md @@ -0,0 +1,11 @@ +# GrantUserAccessToWorkspaceResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `workspaceInviteResponse` | [?Shared\WorkspaceInviteResponse](../../Models/Shared/WorkspaceInviteResponse.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/docs/Models/Operations/InsertVersionMetadataResponse.md b/docs/Models/Operations/InsertVersionMetadataResponse.md index 18f9d91..b852ab3 100644 --- a/docs/Models/Operations/InsertVersionMetadataResponse.md +++ b/docs/Models/Operations/InsertVersionMetadataResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `versionMetadata` | [?Shared\VersionMetadata](../../Models/Shared/VersionMetadata.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/PostTagsResponse.md b/docs/Models/Operations/PostTagsResponse.md index eb027ae..c92150b 100644 --- a/docs/Models/Operations/PostTagsResponse.md +++ b/docs/Models/Operations/PostTagsResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/PostWorkspaceEventsRequest.md b/docs/Models/Operations/PostWorkspaceEventsRequest.md index cb5a789..d0f9598 100644 --- a/docs/Models/Operations/PostWorkspaceEventsRequest.md +++ b/docs/Models/Operations/PostWorkspaceEventsRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | | `requestBody` | array<[Shared\CliEvent](../../Models/Shared/CliEvent.md)> | :heavy_check_mark: | N/A | -| `workspaceID` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/PreflightResponse.md b/docs/Models/Operations/PreflightResponse.md index 1b040c8..4f49d32 100644 --- a/docs/Models/Operations/PreflightResponse.md +++ b/docs/Models/Operations/PreflightResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | | `preflightToken` | [?Shared\PreflightToken](../../Models/Shared/PreflightToken.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/QueryEventLogResponse.md b/docs/Models/Operations/QueryEventLogResponse.md index 742d167..3eba79a 100644 --- a/docs/Models/Operations/QueryEventLogResponse.md +++ b/docs/Models/Operations/QueryEventLogResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `boundedRequests` | array<[Shared\BoundedRequest](../../Models/Shared/BoundedRequest.md)> | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `boundedRequests` | array<[Shared\BoundedRequest](../../Models/Shared/BoundedRequest.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/RegisterSchemaResponse.md b/docs/Models/Operations/RegisterSchemaResponse.md index 7b1f1a9..6082269 100644 --- a/docs/Models/Operations/RegisterSchemaResponse.md +++ b/docs/Models/Operations/RegisterSchemaResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/RevokeEmbedAccessTokenResponse.md b/docs/Models/Operations/RevokeEmbedAccessTokenResponse.md index 0c9f28a..a4365ef 100644 --- a/docs/Models/Operations/RevokeEmbedAccessTokenResponse.md +++ b/docs/Models/Operations/RevokeEmbedAccessTokenResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md b/docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md new file mode 100644 index 0000000..093ea7d --- /dev/null +++ b/docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md @@ -0,0 +1,9 @@ +# RevokeUserAccessToWorkspaceRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `userId` | *string* | :heavy_check_mark: | Unique identifier of the user. | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/RevokeUserAccessToWorkspaceResponse.md b/docs/Models/Operations/RevokeUserAccessToWorkspaceResponse.md new file mode 100644 index 0000000..b4c0ada --- /dev/null +++ b/docs/Models/Operations/RevokeUserAccessToWorkspaceResponse.md @@ -0,0 +1,10 @@ +# RevokeUserAccessToWorkspaceResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/SearchWorkspaceEventsRequest.md b/docs/Models/Operations/SearchWorkspaceEventsRequest.md index 313e3ef..d98c14d 100644 --- a/docs/Models/Operations/SearchWorkspaceEventsRequest.md +++ b/docs/Models/Operations/SearchWorkspaceEventsRequest.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | | `generateGenLockId` | *?string* | :heavy_minus_sign: | A specific gen lock ID for the events. | | `interactionType` | [?Shared\InteractionType](../../Models/Shared/InteractionType.md) | :heavy_minus_sign: | Specified interaction type for events. | | `lintReportDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the lint report digest. | | `openapiDiffReportDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the openapi diff report digest. | -| `sourceRevisionDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the source revision digest. | -| `workspaceID` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file +| `sourceRevisionDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the source revision digest. | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateWorkspaceDetailsRequest.md b/docs/Models/Operations/UpdateWorkspaceDetailsRequest.md new file mode 100644 index 0000000..8a8a91a --- /dev/null +++ b/docs/Models/Operations/UpdateWorkspaceDetailsRequest.md @@ -0,0 +1,9 @@ +# UpdateWorkspaceDetailsRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `workspace` | [Shared\Workspace](../../Models/Shared/Workspace.md) | :heavy_check_mark: | The workspace details to update. | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateWorkspaceDetailsResponse.md b/docs/Models/Operations/UpdateWorkspaceDetailsResponse.md new file mode 100644 index 0000000..aaf5db3 --- /dev/null +++ b/docs/Models/Operations/UpdateWorkspaceDetailsResponse.md @@ -0,0 +1,10 @@ +# UpdateWorkspaceDetailsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateWorkspaceSettingsRequest.md b/docs/Models/Operations/UpdateWorkspaceSettingsRequest.md new file mode 100644 index 0000000..c9b90b1 --- /dev/null +++ b/docs/Models/Operations/UpdateWorkspaceSettingsRequest.md @@ -0,0 +1,9 @@ +# UpdateWorkspaceSettingsRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `workspaceSettings` | [Shared\WorkspaceSettings](../../Models/Shared/WorkspaceSettings.md) | :heavy_check_mark: | The workspace settings to update. | +| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateWorkspaceSettingsResponse.md b/docs/Models/Operations/UpdateWorkspaceSettingsResponse.md new file mode 100644 index 0000000..c13c4f1 --- /dev/null +++ b/docs/Models/Operations/UpdateWorkspaceSettingsResponse.md @@ -0,0 +1,10 @@ +# UpdateWorkspaceSettingsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UpsertApiEndpointResponse.md b/docs/Models/Operations/UpsertApiEndpointResponse.md index 0e53be6..6ab43af 100644 --- a/docs/Models/Operations/UpsertApiEndpointResponse.md +++ b/docs/Models/Operations/UpsertApiEndpointResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apiEndpoint` | [?Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md) | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apiEndpoint` | [?Shared\ApiEndpoint](../../Models/Shared/ApiEndpoint.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/UpsertApiResponse.md b/docs/Models/Operations/UpsertApiResponse.md index 5640912..8fb8821 100644 --- a/docs/Models/Operations/UpsertApiResponse.md +++ b/docs/Models/Operations/UpsertApiResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `api` | [?Shared\Api](../../Models/Shared/Api.md) | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `api` | [?Shared\Api](../../Models/Shared/Api.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/ValidateApiKeyResponse.md b/docs/Models/Operations/ValidateApiKeyResponse.md index a88ef33..fd5bbce 100644 --- a/docs/Models/Operations/ValidateApiKeyResponse.md +++ b/docs/Models/Operations/ValidateApiKeyResponse.md @@ -8,5 +8,4 @@ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `apiKeyDetails` | [?Shared\ApiKeyDetails](../../Models/Shared/ApiKeyDetails.md) | :heavy_minus_sign: | OK | -| `error` | *?Errorors\Error* | :heavy_minus_sign: | Default error response | \ No newline at end of file +| `apiKeyDetails` | [?Shared\ApiKeyDetails](../../Models/Shared/ApiKeyDetails.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Shared/ApiEndpointInput.md b/docs/Models/Shared/ApiEndpointInput.md new file mode 100644 index 0000000..7846dbc --- /dev/null +++ b/docs/Models/Shared/ApiEndpointInput.md @@ -0,0 +1,15 @@ +# ApiEndpointInput + +An ApiEndpoint is a description of an Endpoint for an API. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `apiEndpointId` | *string* | :heavy_check_mark: | The ID of this ApiEndpoint. This is a hash of the method and path. | +| `description` | *string* | :heavy_check_mark: | A detailed description of the ApiEndpoint. | +| `displayName` | *string* | :heavy_check_mark: | A human-readable name for the ApiEndpoint. | +| `method` | *string* | :heavy_check_mark: | HTTP verb. | +| `path` | *string* | :heavy_check_mark: | Path that handles this Api. | +| `versionId` | *string* | :heavy_check_mark: | The version ID of the Api this ApiEndpoint belongs to. | \ No newline at end of file diff --git a/docs/Models/Shared/ApiInput.md b/docs/Models/Shared/ApiInput.md new file mode 100644 index 0000000..95f743a --- /dev/null +++ b/docs/Models/Shared/ApiInput.md @@ -0,0 +1,13 @@ +# ApiInput + +An Api is representation of a API (a collection of API Endpoints) within the Speakeasy Platform. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `apiId` | *string* | :heavy_check_mark: | The ID of this Api. This is a human-readable name (subject to change). | +| `description` | *string* | :heavy_check_mark: | A detailed description of the Api. | +| `versionId` | *string* | :heavy_check_mark: | The version ID of this Api. This is semantic version identifier. | +| `metaData` | array> | :heavy_minus_sign: | A set of values associated with a meta_data key. This field is only set on get requests. | \ No newline at end of file diff --git a/docs/Models/Shared/Organization.md b/docs/Models/Shared/Organization.md index 55be8f3..82cc948 100644 --- a/docs/Models/Shared/Organization.md +++ b/docs/Models/Shared/Organization.md @@ -8,10 +8,10 @@ A speakeasy organization | Field | Type | Required | Description | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `accountType` | [Shared\AccountType](../../Models/Shared/AccountType.md) | :heavy_check_mark: | N/A | +| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | | `id` | *string* | :heavy_check_mark: | N/A | | `name` | *string* | :heavy_check_mark: | N/A | +| `slug` | *string* | :heavy_check_mark: | N/A | | `telemetryDisabled` | *bool* | :heavy_check_mark: | N/A | -| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | -| `freeTrialExpiry` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | -| `slug` | *?string* | :heavy_minus_sign: | N/A | -| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | +| `freeTrialExpiry` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/Relationship.md b/docs/Models/Shared/Relationship.md new file mode 100644 index 0000000..f24f5f4 --- /dev/null +++ b/docs/Models/Shared/Relationship.md @@ -0,0 +1,9 @@ +# Relationship + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `userId` | *string* | :heavy_check_mark: | N/A | +| `workspaceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/SSOMetadata.md b/docs/Models/Shared/SSOMetadata.md new file mode 100644 index 0000000..1024d97 --- /dev/null +++ b/docs/Models/Shared/SSOMetadata.md @@ -0,0 +1,11 @@ +# SSOMetadata + +SSO metadata for a workspace + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ssoActivated` | *bool* | :heavy_check_mark: | N/A | +| `ssoDomains` | array<*string*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/User.md b/docs/Models/Shared/User.md index 10e3584..6dba6cb 100644 --- a/docs/Models/Shared/User.md +++ b/docs/Models/Shared/User.md @@ -12,9 +12,9 @@ | `email` | *string* | :heavy_check_mark: | Email address of the user. | | `emailVerified` | *bool* | :heavy_check_mark: | Indicates whether the email address has been verified. | | `id` | *string* | :heavy_check_mark: | Unique identifier for the user. | -| `lastLoginAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | Timestamp of the last login. | | `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | Timestamp of the user's last update. | | `whitelisted` | *bool* | :heavy_check_mark: | Indicates whether the user has been whitelisted. | | `defaultWorkspaceId` | *?string* | :heavy_minus_sign: | Identifier of the default workspace. | | `githubHandle` | *?string* | :heavy_minus_sign: | GitHub handle of the user. | +| `lastLoginAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Timestamp of the last login. | | `photoUrl` | *?string* | :heavy_minus_sign: | URL of the user's photo. | \ No newline at end of file diff --git a/docs/Models/Shared/VersionMetadataInput.md b/docs/Models/Shared/VersionMetadataInput.md new file mode 100644 index 0000000..b556498 --- /dev/null +++ b/docs/Models/Shared/VersionMetadataInput.md @@ -0,0 +1,11 @@ +# VersionMetadataInput + +A set of keys and associated values, attached to a particular version of an Api. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `metaKey` | *string* | :heavy_check_mark: | The key for this metadata. | +| `metaValue` | *string* | :heavy_check_mark: | One of the values for this metadata. | \ No newline at end of file diff --git a/docs/Models/Shared/WorkspaceInviteResponse.md b/docs/Models/Shared/WorkspaceInviteResponse.md new file mode 100644 index 0000000..f1562d9 --- /dev/null +++ b/docs/Models/Shared/WorkspaceInviteResponse.md @@ -0,0 +1,11 @@ +# WorkspaceInviteResponse + +A response for workspace user invite + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `relationship` | [Shared\Relationship](../../Models/Shared/Relationship.md) | :heavy_check_mark: | N/A | +| `inviteLink` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/WorkspaceSettings.md b/docs/Models/Shared/WorkspaceSettings.md new file mode 100644 index 0000000..dad9783 --- /dev/null +++ b/docs/Models/Shared/WorkspaceSettings.md @@ -0,0 +1,9 @@ +# WorkspaceSettings + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `workspaceId` | *string* | :heavy_check_mark: | N/A | +| `webhookUrl` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/WorkspaceTeamResponse.md b/docs/Models/Shared/WorkspaceTeamResponse.md new file mode 100644 index 0000000..7cb2951 --- /dev/null +++ b/docs/Models/Shared/WorkspaceTeamResponse.md @@ -0,0 +1,11 @@ +# WorkspaceTeamResponse + +Workspace team response + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `users` | array<[Shared\User](../../Models/Shared/User.md)> | :heavy_check_mark: | N/A | +| `ssoMetadata` | [?Shared\SSOMetadata](../../Models/Shared/SSOMetadata.md) | :heavy_minus_sign: | SSO metadata for a workspace | \ No newline at end of file diff --git a/docs/Models/Shared/WorkspaceToken.md b/docs/Models/Shared/WorkspaceToken.md new file mode 100644 index 0000000..04c0137 --- /dev/null +++ b/docs/Models/Shared/WorkspaceToken.md @@ -0,0 +1,18 @@ +# WorkspaceToken + +A workspace token + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `alg` | *string* | :heavy_check_mark: | N/A | +| `createdAt` | *string* | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `key` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `workspaceId` | *?string* | :heavy_minus_sign: | N/A | +| `createdBy` | *?string* | :heavy_minus_sign: | N/A | +| `email` | *?string* | :heavy_minus_sign: | N/A | +| `lastUsed` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/apiendpoints/README.md b/docs/sdks/apiendpoints/README.md index 2edaf3b..c5a5f1b 100644 --- a/docs/sdks/apiendpoints/README.md +++ b/docs/sdks/apiendpoints/README.md @@ -1,4 +1,5 @@ # ApiEndpoints +(*apiEndpoints*) ## Overview @@ -31,18 +32,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\DeleteApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', + apiEndpointID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apiEndpoints->deleteApiEndpoint( + request: $request ); - $response = $sdk->apiEndpoints->deleteApiEndpoint($request); if ($response->statusCode === 200) { // handle response @@ -66,6 +68,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -86,18 +89,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\FindApiEndpointRequest( - apiID: '', + apiID: '', displayName: 'Don_Kihn39', - versionID: '', + versionID: '', + ); + $response = $sdk.apiEndpoints->findApiEndpoint( + request: $request ); - $response = $sdk->apiEndpoints->findApiEndpoint($request); if ($response->apiEndpoint !== null) { // handle response @@ -121,6 +125,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -141,18 +146,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GenerateOpenApiSpecForApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', + apiEndpointID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apiEndpoints->generateOpenApiSpecForApiEndpoint( + request: $request ); - $response = $sdk->apiEndpoints->generateOpenApiSpecForApiEndpoint($request); if ($response->generateOpenApiSpecDiff !== null) { // handle response @@ -176,6 +182,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -195,18 +202,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GeneratePostmanCollectionForApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', + apiEndpointID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apiEndpoints->generatePostmanCollectionForApiEndpoint( + request: $request ); - $response = $sdk->apiEndpoints->generatePostmanCollectionForApiEndpoint($request); if ($response->postmanCollection !== null) { // handle response @@ -230,6 +238,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -249,16 +258,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetAllApiEndpointsRequest( - apiID: '', + apiID: '', + ); + $response = $sdk.apiEndpoints->getAllApiEndpoints( + request: $request ); - $response = $sdk->apiEndpoints->getAllApiEndpoints($request); if ($response->apiEndpoints !== null) { // handle response @@ -282,6 +292,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -301,17 +312,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetAllForVersionApiEndpointsRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apiEndpoints->getAllForVersionApiEndpoints( + request: $request ); - $response = $sdk->apiEndpoints->getAllForVersionApiEndpoints($request); if ($response->apiEndpoints !== null) { // handle response @@ -335,6 +347,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -354,18 +367,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetApiEndpointRequest( - apiEndpointID: '', - apiID: '', - versionID: '', + apiEndpointID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apiEndpoints->getApiEndpoint( + request: $request ); - $response = $sdk->apiEndpoints->getApiEndpoint($request); if ($response->apiEndpoint !== null) { // handle response @@ -389,6 +403,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -408,26 +423,27 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\UpsertApiEndpointRequest( apiEndpoint: new Shared\ApiEndpointInput( - apiEndpointId: '', - description: 'Public-key background productivity', - displayName: 'Jailyn_Turner', + apiEndpointId: '', + description: 'commandeer equate pish psst hoot ugh frankly supposing', + displayName: 'Eliseo.Little15', method: '', - path: '/home/user', - versionId: '', + path: '/etc/defaults', + versionId: '', ), - apiEndpointID: '', - apiID: '', - versionID: '', + apiEndpointID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apiEndpoints->upsertApiEndpoint( + request: $request ); - $response = $sdk->apiEndpoints->upsertApiEndpoint($request); if ($response->apiEndpoint !== null) { // handle response @@ -451,4 +467,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/apis/README.md b/docs/sdks/apis/README.md index 216e431..439f04c 100644 --- a/docs/sdks/apis/README.md +++ b/docs/sdks/apis/README.md @@ -1,4 +1,5 @@ # Apis +(*apis*) ## Overview @@ -29,17 +30,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\DeleteApiRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apis->deleteApi( + request: $request ); - $response = $sdk->apis->deleteApi($request); if ($response->statusCode === 200) { // handle response @@ -63,6 +65,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -83,17 +86,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GenerateOpenApiSpecRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apis->generateOpenApiSpec( + request: $request ); - $response = $sdk->apis->generateOpenApiSpec($request); if ($response->generateOpenApiSpecDiff !== null) { // handle response @@ -117,6 +121,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -136,17 +141,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GeneratePostmanCollectionRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.apis->generatePostmanCollection( + request: $request ); - $response = $sdk->apis->generatePostmanCollection($request); if ($response->postmanCollection !== null) { // handle response @@ -170,6 +176,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -190,16 +197,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetAllApiVersionsRequest( - apiID: '', + apiID: '', + ); + $response = $sdk.apis->getAllApiVersions( + request: $request ); - $response = $sdk->apis->getAllApiVersions($request); if ($response->apis !== null) { // handle response @@ -223,6 +231,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -243,14 +252,15 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetApisRequest(); - $response = $sdk->apis->getApis($request); + $response = $sdk.apis->getApis( + request: $request + ); if ($response->apis !== null) { // handle response @@ -274,6 +284,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -294,21 +305,22 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\UpsertApiRequest( api: new Shared\ApiInput( - apiId: '', - description: 'Synchronised leading edge utilisation', - versionId: '', + apiId: '', + description: 'consequently brr happily yowza however gosh investigate joyfully direct', + versionId: '', ), - apiID: '', + apiID: '', + ); + $response = $sdk.apis->upsertApi( + request: $request ); - $response = $sdk->apis->upsertApi($request); if ($response->api !== null) { // handle response @@ -332,4 +344,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/artifacts/README.md b/docs/sdks/artifacts/README.md index 99c6a4f..0d91c76 100644 --- a/docs/sdks/artifacts/README.md +++ b/docs/sdks/artifacts/README.md @@ -1,4 +1,5 @@ # Artifacts +(*artifacts*) ## Overview @@ -30,11 +31,10 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetBlobRequest( digest: '', @@ -42,7 +42,9 @@ try { organizationSlug: '', workspaceSlug: '', ); - $response = $sdk->artifacts->getBlob($request); + $response = $sdk.artifacts->getBlob( + request: $request + ); if ($response->blob !== null) { // handle response @@ -66,6 +68,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -85,11 +88,10 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetManifestRequest( namespaceName: '', @@ -97,7 +99,9 @@ try { revisionReference: '', workspaceSlug: '', ); - $response = $sdk->artifacts->getManifest($request); + $response = $sdk.artifacts->getManifest( + request: $request + ); if ($response->manifest !== null) { // handle response @@ -121,6 +125,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -139,13 +144,14 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $response = $sdk->artifacts->getNamespaces(); + $response = $sdk.artifacts->getNamespaces( + + ); if ($response->getNamespacesResponse !== null) { // handle response @@ -163,6 +169,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -180,16 +187,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetRevisionsRequest( namespaceName: '', ); - $response = $sdk->artifacts->getRevisions($request); + $response = $sdk.artifacts->getRevisions( + request: $request + ); if ($response->getRevisionsResponse !== null) { // handle response @@ -213,6 +221,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -230,16 +239,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetTagsRequest( namespaceName: '', ); - $response = $sdk->artifacts->getTags($request); + $response = $sdk.artifacts->getTags( + request: $request + ); if ($response->getTagsResponse !== null) { // handle response @@ -263,6 +273,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -282,16 +293,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\PostTagsRequest( namespaceName: '', ); - $response = $sdk->artifacts->postTags($request); + $response = $sdk.artifacts->postTags( + request: $request + ); if ($response->statusCode === 200) { // handle response @@ -315,6 +327,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -333,16 +346,17 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Shared\PreflightRequest( namespaceName: '', ); - $response = $sdk->artifacts->preflight($request); + $response = $sdk.artifacts->preflight( + request: $request + ); if ($response->preflightToken !== null) { // handle response @@ -366,4 +380,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/auth/README.md b/docs/sdks/auth/README.md index 7418ba7..beb1cd0 100644 --- a/docs/sdks/auth/README.md +++ b/docs/sdks/auth/README.md @@ -1,4 +1,5 @@ # Auth +(*auth*) ## Overview @@ -6,14 +7,14 @@ REST APIs for managing Authentication ### Available Operations +* [getAccess](#getaccess) - Get access allowances for a particular workspace * [getAccessToken](#getaccesstoken) - Get or refresh an access token for the current workspace. * [getUser](#getuser) - Get information about the current user. -* [getWorkspaceAccess](#getworkspaceaccess) - Get access allowances for a particular workspace * [validateApiKey](#validateapikey) - Validate the current api key. -## getAccessToken +## getAccess -Get or refresh an access token for the current workspace. +Checks if generation is permitted for a particular run of the CLI ### Example Usage @@ -24,16 +25,20 @@ require 'vendor/autoload.php'; use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; -$sdk = SpeakeasyClientSDK\SDK::builder()->build(); +$security = new Shared\Security( + apiKey: '', +); +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); try { - $request = new Operations\GetAccessTokenRequest( - workspaceId: '', + $request = new Operations\GetWorkspaceAccessRequest(); + $response = $sdk.auth->getAccess( + request: $request ); - $response = $sdk->auth->getAccessToken($request); - if ($response->accessToken !== null) { + if ($response->accessDetails !== null) { // handle response } } catch (Throwable $e) { @@ -43,13 +48,13 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `$request` | [Operations\GetAccessTokenRequest](../../Models/Operations/GetAccessTokenRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `$request` | [Operations\GetWorkspaceAccessRequest](../../Models/Operations/GetWorkspaceAccessRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\GetAccessTokenResponse](../../Models/Operations/GetAccessTokenResponse.md)** +**[?Operations\GetWorkspaceAccessResponse](../../Models/Operations/GetWorkspaceAccessResponse.md)** ### Errors @@ -58,9 +63,9 @@ try { | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getUser +## getAccessToken -Get information about the current user. +Get or refresh an access token for the current workspace. ### Example Usage @@ -70,18 +75,18 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Speakeasy\SpeakeasyClientSDK; -use Speakeasy\SpeakeasyClientSDK\Models\Shared; - -$security = new Shared\Security( - apiKey: "", -); - -$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +$sdk = SpeakeasyClientSDK\SDK::builder()->build(); try { - $response = $sdk->auth->getUser(); + $request = new Operations\GetAccessTokenRequest( + workspaceId: '', + ); + $response = $sdk.auth->getAccessToken( + request: $request + ); - if ($response->user !== null) { + if ($response->accessToken !== null) { // handle response } } catch (Throwable $e) { @@ -89,20 +94,27 @@ try { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `$request` | [Operations\GetAccessTokenRequest](../../Models/Operations/GetAccessTokenRequest.md) | :heavy_check_mark: | The request object to use for the request. | + ### Response -**[?Operations\GetUserResponse](../../Models/Operations/GetUserResponse.md)** +**[?Operations\GetAccessTokenResponse](../../Models/Operations/GetAccessTokenResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getWorkspaceAccess +## getUser -Checks if generation is permitted for a particular run of the CLI +Get information about the current user. ### Example Usage @@ -112,20 +124,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Speakeasy\SpeakeasyClientSDK; -use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Operations\GetWorkspaceAccessRequest(); - $response = $sdk->auth->getWorkspaceAccess($request); + $response = $sdk.auth->getUser( - if ($response->accessDetails !== null) { + ); + + if ($response->user !== null) { // handle response } } catch (Throwable $e) { @@ -133,20 +144,15 @@ try { } ``` -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `$request` | [Operations\GetWorkspaceAccessRequest](../../Models/Operations/GetWorkspaceAccessRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response -**[?Operations\GetWorkspaceAccessResponse](../../Models/Operations/GetWorkspaceAccessResponse.md)** +**[?Operations\GetUserResponse](../../Models/Operations/GetUserResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -165,13 +171,14 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $response = $sdk->auth->validateApiKey(); + $response = $sdk.auth->validateApiKey( + + ); if ($response->apiKeyDetails !== null) { // handle response @@ -189,4 +196,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/embeds/README.md b/docs/sdks/embeds/README.md index ad5e64e..5171671 100644 --- a/docs/sdks/embeds/README.md +++ b/docs/sdks/embeds/README.md @@ -1,4 +1,5 @@ # Embeds +(*embeds*) ## Overview @@ -27,14 +28,15 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetEmbedAccessTokenRequest(); - $response = $sdk->embeds->getEmbedAccessToken($request); + $response = $sdk.embeds->getEmbedAccessToken( + request: $request + ); if ($response->embedAccessTokenResponse !== null) { // handle response @@ -58,6 +60,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -76,13 +79,14 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $response = $sdk->embeds->getValidEmbedAccessTokens(); + $response = $sdk.embeds->getValidEmbedAccessTokens( + + ); if ($response->embedTokens !== null) { // handle response @@ -100,6 +104,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -119,16 +124,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\RevokeEmbedAccessTokenRequest( - tokenID: '', + tokenID: '', + ); + $response = $sdk.embeds->revokeEmbedAccessToken( + request: $request ); - $response = $sdk->embeds->revokeEmbedAccessToken($request); if ($response->statusCode === 200) { // handle response @@ -152,4 +158,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 72d14d7..9d03151 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -1,4 +1,5 @@ # Events +(*events*) ## Overview @@ -6,12 +7,13 @@ REST APIs for capturing event data ### Available Operations -* [getWorkspaceEventsByTarget](#getworkspaceeventsbytarget) - Load recent events for a particular workspace -* [getWorkspaceTargets](#getworkspacetargets) - Load targets for a particular workspace -* [postWorkspaceEvents](#postworkspaceevents) - Post events for a specific workspace -* [searchWorkspaceEvents](#searchworkspaceevents) - Search events for a particular workspace by any field +* [getEventsByTarget](#geteventsbytarget) - Load recent events for a particular workspace +* [getTargets](#gettargets) - Load targets for a particular workspace +* [getTargetsDeprecated](#gettargetsdeprecated) - Load targets for a particular workspace +* [post](#post) - Post events for a specific workspace +* [search](#search) - Search events for a particular workspace by any field -## getWorkspaceEventsByTarget +## getEventsByTarget Load recent events for a particular workspace @@ -27,16 +29,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetWorkspaceEventsByTargetRequest( - targetID: '', + targetId: '', + workspaceId: '', + ); + $response = $sdk.events->getEventsByTarget( + request: $request ); - $response = $sdk->events->getWorkspaceEventsByTarget($request); if ($response->cliEventBatch !== null) { // handle response @@ -64,7 +68,7 @@ try { | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getWorkspaceTargets +## getTargets Load targets for a particular workspace @@ -80,14 +84,15 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetWorkspaceTargetsRequest(); - $response = $sdk->events->getWorkspaceTargets($request); + $response = $sdk.events->getTargets( + request: $request + ); if ($response->targetSDKList !== null) { // handle response @@ -115,9 +120,9 @@ try { | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## postWorkspaceEvents +## getTargetsDeprecated -Sends an array of events to be stored for a particular workspace. +Load targets for a particular workspace ### Example Usage @@ -131,18 +136,85 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\GetWorkspaceTargetsDeprecatedRequest( + workspaceId: '', + ); + $response = $sdk.events->getTargetsDeprecated( + request: $request + ); + if ($response->targetSDKList !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\GetWorkspaceTargetsDeprecatedRequest](../../Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\GetWorkspaceTargetsDeprecatedResponse](../../Models/Operations/GetWorkspaceTargetsDeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 5XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## post + +Sends an array of events to be stored for a particular workspace. + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; +use Speakeasy\SpeakeasyClientSDK\Utils; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); try { $request = new Operations\PostWorkspaceEventsRequest( requestBody: [ - new Shared\CliEvent, + new Shared\CliEvent( + createdAt: Utils\Utils::parseDateTime('2023-05-08T03:24:39.583Z'), + executionId: '', + id: '', + interactionType: Shared\InteractionType::Quickstart, + localStartedAt: Utils\Utils::parseDateTime('2023-09-09T05:59:33.876Z'), + speakeasyApiKeyName: '', + speakeasyVersion: '', + success: false, + workspaceId: '', + ), ], + workspaceId: '', + ); + $response = $sdk.events->post( + request: $request ); - $response = $sdk->events->postWorkspaceEvents($request); if ($response->statusCode === 200) { // handle response @@ -170,7 +242,7 @@ try { | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## searchWorkspaceEvents +## search Search events for a particular workspace by any field @@ -186,14 +258,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Operations\SearchWorkspaceEventsRequest(); - $response = $sdk->events->searchWorkspaceEvents($request); + $request = new Operations\SearchWorkspaceEventsRequest( + workspaceId: '', + ); + $response = $sdk.events->search( + request: $request + ); if ($response->cliEventBatch !== null) { // handle response diff --git a/docs/sdks/github/README.md b/docs/sdks/github/README.md index 855e567..e758f20 100644 --- a/docs/sdks/github/README.md +++ b/docs/sdks/github/README.md @@ -1,17 +1,18 @@ # Github +(*github*) ## Overview ### Available Operations * [checkAccess](#checkaccess) +* [checkPublishingPRs](#checkpublishingprs) +* [checkPublishingSecrets](#checkpublishingsecrets) * [configureCodeSamples](#configurecodesamples) * [configureMintlifyRepo](#configuremintlifyrepo) * [configureTarget](#configuretarget) -* [fetchPublishingPRs](#fetchpublishingprs) * [getAction](#getaction) -* [githubCheckPublishingSecrets](#githubcheckpublishingsecrets) -* [githubStorePublishingSecrets](#githubstorepublishingsecrets) +* [storePublishingSecrets](#storepublishingsecrets) * [triggerAction](#triggeraction) ## checkAccess @@ -28,17 +29,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Operations\CheckAccessRequest( + $request = new Operations\CheckGithubAccessRequest( org: '', repo: '', ); - $response = $sdk->github->checkAccess($request); + $response = $sdk.github->checkAccess( + request: $request + ); if ($response->statusCode === 200) { // handle response @@ -50,22 +52,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `$request` | [Operations\CheckAccessRequest](../../Models/Operations/CheckAccessRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `$request` | [Operations\CheckGithubAccessRequest](../../Models/Operations/CheckGithubAccessRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\CheckAccessResponse](../../Models/Operations/CheckAccessResponse.md)** +**[?Operations\CheckGithubAccessResponse](../../Models/Operations/CheckGithubAccessResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## configureCodeSamples +## checkPublishingPRs ### Example Usage @@ -75,23 +78,25 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Shared\GithubConfigureCodeSamplesRequest( + $request = new Operations\GithubCheckPublishingPRsRequest( + generateGenLockId: '', org: '', repo: '', - targetName: '', ); - $response = $sdk->github->configureCodeSamples($request); + $response = $sdk.github->checkPublishingPRs( + request: $request + ); - if ($response->githubConfigureCodeSamplesResponse !== null) { + if ($response->githubPublishingPRResponse !== null) { // handle response } } catch (Throwable $e) { @@ -101,22 +106,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `$request` | [Shared\GithubConfigureCodeSamplesRequest](../../Models/Shared/GithubConfigureCodeSamplesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `$request` | [Operations\GithubCheckPublishingPRsRequest](../../Models/Operations/GithubCheckPublishingPRsRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\ConfigureCodeSamplesResponse](../../Models/Operations/ConfigureCodeSamplesResponse.md)** +**[?Operations\GithubCheckPublishingPRsResponse](../../Models/Operations/GithubCheckPublishingPRsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## configureMintlifyRepo +## checkPublishingSecrets ### Example Usage @@ -126,26 +132,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Shared\GithubConfigureMintlifyRepoRequest( - input: '', - org: '', - overlays: [ - '', - ], - repo: '', + $request = new Operations\GithubCheckPublishingSecretsRequest( + generateGenLockId: '', + ); + $response = $sdk.github->checkPublishingSecrets( + request: $request ); - $response = $sdk->github->configureMintlifyRepo($request); - if ($response->statusCode === 200) { + if ($response->githubMissingPublishingSecretsResponse !== null) { // handle response } } catch (Throwable $e) { @@ -155,22 +158,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `$request` | [Shared\GithubConfigureMintlifyRepoRequest](../../Models/Shared/GithubConfigureMintlifyRepoRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `$request` | [Operations\GithubCheckPublishingSecretsRequest](../../Models/Operations/GithubCheckPublishingSecretsRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\ConfigureMintlifyRepoResponse](../../Models/Operations/ConfigureMintlifyRepoResponse.md)** +**[?Operations\GithubCheckPublishingSecretsResponse](../../Models/Operations/GithubCheckPublishingSecretsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## configureTarget +## configureCodeSamples ### Example Usage @@ -183,19 +187,21 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Shared\GithubConfigureTargetRequest( + $request = new Shared\GithubConfigureCodeSamplesRequest( org: '', - repoName: '', + repo: '', + targetName: '', + ); + $response = $sdk.github->configureCodeSamples( + request: $request ); - $response = $sdk->github->configureTarget($request); - if ($response->statusCode === 200) { + if ($response->githubConfigureCodeSamplesResponse !== null) { // handle response } } catch (Throwable $e) { @@ -205,22 +211,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `$request` | [Shared\GithubConfigureTargetRequest](../../Models/Shared/GithubConfigureTargetRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `$request` | [Shared\GithubConfigureCodeSamplesRequest](../../Models/Shared/GithubConfigureCodeSamplesRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\ConfigureTargetResponse](../../Models/Operations/ConfigureTargetResponse.md)** +**[?Operations\GithubConfigureCodeSamplesResponse](../../Models/Operations/GithubConfigureCodeSamplesResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## fetchPublishingPRs +## configureMintlifyRepo ### Example Usage @@ -230,24 +237,27 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Speakeasy\SpeakeasyClientSDK; -use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Operations\FetchPublishingPRsRequest( - generateGenLockId: '', + $request = new Shared\GithubConfigureMintlifyRepoRequest( + input: '', org: '', + overlays: [ + '', + ], repo: '', ); - $response = $sdk->github->fetchPublishingPRs($request); + $response = $sdk.github->configureMintlifyRepo( + request: $request + ); - if ($response->githubPublishingPRResponse !== null) { + if ($response->statusCode === 200) { // handle response } } catch (Throwable $e) { @@ -257,22 +267,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `$request` | [Operations\FetchPublishingPRsRequest](../../Models/Operations/FetchPublishingPRsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `$request` | [Shared\GithubConfigureMintlifyRepoRequest](../../Models/Shared/GithubConfigureMintlifyRepoRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\FetchPublishingPRsResponse](../../Models/Operations/FetchPublishingPRsResponse.md)** +**[?Operations\GithubConfigureMintlifyRepoResponse](../../Models/Operations/GithubConfigureMintlifyRepoResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getAction +## configureTarget ### Example Usage @@ -282,23 +293,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Speakeasy\SpeakeasyClientSDK; -use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Operations\GetActionRequest( + $request = new Shared\GithubConfigureTargetRequest( org: '', - repo: '', + repoName: '', + ); + $response = $sdk.github->configureTarget( + request: $request ); - $response = $sdk->github->getAction($request); - if ($response->githubGetActionResponse !== null) { + if ($response->statusCode === 200) { // handle response } } catch (Throwable $e) { @@ -308,22 +319,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `$request` | [Operations\GetActionRequest](../../Models/Operations/GetActionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `$request` | [Shared\GithubConfigureTargetRequest](../../Models/Shared/GithubConfigureTargetRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\GetActionResponse](../../Models/Operations/GetActionResponse.md)** +**[?Operations\GithubConfigureTargetResponse](../../Models/Operations/GithubConfigureTargetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## githubCheckPublishingSecrets +## getAction ### Example Usage @@ -337,18 +349,20 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Operations\GithubCheckPublishingSecretsRequest( - generateGenLockId: '', + $request = new Operations\GetGitHubActionRequest( + org: '', + repo: '', + ); + $response = $sdk.github->getAction( + request: $request ); - $response = $sdk->github->githubCheckPublishingSecrets($request); - if ($response->githubMissingPublishingSecretsResponse !== null) { + if ($response->githubGetActionResponse !== null) { // handle response } } catch (Throwable $e) { @@ -358,22 +372,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `$request` | [Operations\GithubCheckPublishingSecretsRequest](../../Models/Operations/GithubCheckPublishingSecretsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `$request` | [Operations\GetGitHubActionRequest](../../Models/Operations/GetGitHubActionRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\GithubCheckPublishingSecretsResponse](../../Models/Operations/GithubCheckPublishingSecretsResponse.md)** +**[?Operations\GetGitHubActionResponse](../../Models/Operations/GetGitHubActionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## githubStorePublishingSecrets +## storePublishingSecrets ### Example Usage @@ -386,16 +401,17 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Shared\GithubStorePublishingSecretsRequest( - generateGenLockId: '', + generateGenLockId: '', + ); + $response = $sdk.github->storePublishingSecrets( + request: $request ); - $response = $sdk->github->githubStorePublishingSecrets($request); if ($response->statusCode === 200) { // handle response @@ -419,6 +435,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -435,18 +452,19 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Shared\GithubTriggerActionRequest( - genLockId: '', + genLockId: '', org: '', repoName: '', ); - $response = $sdk->github->triggerAction($request); + $response = $sdk.github->triggerAction( + request: $request + ); if ($response->statusCode === 200) { // handle response @@ -464,10 +482,11 @@ try { ### Response -**[?Operations\TriggerActionResponse](../../Models/Operations/TriggerActionResponse.md)** +**[?Operations\GithubTriggerActionResponse](../../Models/Operations/GithubTriggerActionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/metadata/README.md b/docs/sdks/metadata/README.md index d794d76..c8de182 100644 --- a/docs/sdks/metadata/README.md +++ b/docs/sdks/metadata/README.md @@ -1,4 +1,5 @@ # Metadata +(*metadata*) ## Overview @@ -26,19 +27,20 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\DeleteVersionMetadataRequest( - apiID: '', + apiID: '', metaKey: '', metaValue: '', - versionID: '', + versionID: '', + ); + $response = $sdk.metadata->deleteVersionMetadata( + request: $request ); - $response = $sdk->metadata->deleteVersionMetadata($request); if ($response->statusCode === 200) { // handle response @@ -62,6 +64,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -81,17 +84,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetVersionMetadataRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.metadata->getVersionMetadata( + request: $request ); - $response = $sdk->metadata->getVersionMetadata($request); if ($response->versionMetadata !== null) { // handle response @@ -115,6 +119,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -134,21 +139,22 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\InsertVersionMetadataRequest( versionMetadata: new Shared\VersionMetadataInput( metaKey: '', metaValue: '', ), - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.metadata->insertVersionMetadata( + request: $request ); - $response = $sdk->metadata->insertVersionMetadata($request); if ($response->versionMetadata !== null) { // handle response @@ -172,4 +178,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 95862be..451cef9 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -1,13 +1,75 @@ # Organizations +(*organizations*) ## Overview ### Available Operations +* [create](#create) - Create an organization * [createFreeTrial](#createfreetrial) - Create a free trial for an organization -* [getOrganization](#getorganization) - Get organization -* [getOrganizationUsage](#getorganizationusage) - Get billing usage summary for a particular organization -* [getOrganizations](#getorganizations) - Get organizations for a user +* [get](#get) - Get organization +* [getAll](#getall) - Get organizations for a user +* [getUsage](#getusage) - Get billing usage summary for a particular organization + +## create + +Creates an organization + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; +use Speakeasy\SpeakeasyClientSDK\Utils; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Shared\Organization( + accountType: Shared\AccountType::ScaleUp, + createdAt: Utils\Utils::parseDateTime('2023-12-01T17:06:07.804Z'), + id: '', + name: '', + slug: '', + telemetryDisabled: false, + updatedAt: Utils\Utils::parseDateTime('2023-04-03T12:48:32.253Z'), + ); + $response = $sdk.organizations->create( + request: $request + ); + + if ($response->organization !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `$request` | [Shared\Organization](../../Models/Shared/Organization.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\CreateOrganizationResponse](../../Models/Operations/CreateOrganizationResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + ## createFreeTrial @@ -24,13 +86,14 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $response = $sdk->organizations->createFreeTrial(); + $response = $sdk.organizations->createFreeTrial( + + ); if ($response->statusCode === 200) { // handle response @@ -48,10 +111,11 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getOrganization +## get Get information about a particular organization. @@ -67,16 +131,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetOrganizationRequest( - organizationID: '', + organizationID: '', + ); + $response = $sdk.organizations->get( + request: $request ); - $response = $sdk->organizations->getOrganization($request); if ($response->organization !== null) { // handle response @@ -100,12 +165,13 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getOrganizationUsage +## getAll -Returns a billing usage summary by target languages for a particular organization +Returns a list of organizations a user has access too ### Example Usage @@ -118,15 +184,16 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $response = $sdk->organizations->getOrganizationUsage(); + $response = $sdk.organizations->getAll( - if ($response->organizationUsageResponse !== null) { + ); + + if ($response->organizations !== null) { // handle response } } catch (Throwable $e) { @@ -136,18 +203,19 @@ try { ### Response -**[?Operations\GetOrganizationUsageResponse](../../Models/Operations/GetOrganizationUsageResponse.md)** +**[?Operations\GetOrganizationsResponse](../../Models/Operations/GetOrganizationsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getOrganizations +## getUsage -Returns a list of organizations a user has access too +Returns a billing usage summary by target languages for a particular organization ### Example Usage @@ -160,15 +228,16 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $response = $sdk->organizations->getOrganizations(); + $response = $sdk.organizations->getUsage( - if ($response->organizations !== null) { + ); + + if ($response->organizationUsageResponse !== null) { // handle response } } catch (Throwable $e) { @@ -178,10 +247,11 @@ try { ### Response -**[?Operations\GetOrganizationsResponse](../../Models/Operations/GetOrganizationsResponse.md)** +**[?Operations\GetOrganizationUsageResponse](../../Models/Operations/GetOrganizationUsageResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/reports/README.md b/docs/sdks/reports/README.md index fffa285..79f721c 100644 --- a/docs/sdks/reports/README.md +++ b/docs/sdks/reports/README.md @@ -1,4 +1,5 @@ # Reports +(*reports*) ## Overview @@ -26,16 +27,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetChangesReportSignedUrlRequest( documentChecksum: '', ); - $response = $sdk->reports->getChangesReportSignedUrl($request); + $response = $sdk.reports->getChangesReportSignedUrl( + request: $request + ); if ($response->signedAccess !== null) { // handle response @@ -78,16 +80,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetLintingReportSignedUrlRequest( documentChecksum: '', ); - $response = $sdk->reports->getLintingReportSignedUrl($request); + $response = $sdk.reports->getLintingReportSignedUrl( + request: $request + ); if ($response->signedAccess !== null) { // handle response @@ -130,11 +133,10 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\UploadReportRequestBody( data: new Shared\Report(), @@ -143,7 +145,9 @@ try { fileName: 'example.file', ), ); - $response = $sdk->reports->uploadReport($request); + $response = $sdk.reports->uploadReport( + request: $request + ); if ($response->uploadedReport !== null) { // handle response diff --git a/docs/sdks/requests/README.md b/docs/sdks/requests/README.md index f4f4125..2f7edfb 100644 --- a/docs/sdks/requests/README.md +++ b/docs/sdks/requests/README.md @@ -1,4 +1,5 @@ # Requests +(*requests*) ## Overview @@ -27,16 +28,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GenerateRequestPostmanCollectionRequest( - requestID: '', + requestID: '', + ); + $response = $sdk.requests->generateRequestPostmanCollection( + request: $request ); - $response = $sdk->requests->generateRequestPostmanCollection($request); if ($response->postmanCollection !== null) { // handle response @@ -60,6 +62,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -79,16 +82,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetRequestFromEventLogRequest( - requestID: '', + requestID: '', + ); + $response = $sdk.requests->getRequestFromEventLog( + request: $request ); - $response = $sdk->requests->getRequestFromEventLog($request); if ($response->unboundedRequest !== null) { // handle response @@ -112,6 +116,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -132,14 +137,15 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\QueryEventLogRequest(); - $response = $sdk->requests->queryEventLog($request); + $response = $sdk.requests->queryEventLog( + request: $request + ); if ($response->boundedRequests !== null) { // handle response @@ -163,4 +169,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/schemas/README.md b/docs/sdks/schemas/README.md index c7e2319..d47935b 100644 --- a/docs/sdks/schemas/README.md +++ b/docs/sdks/schemas/README.md @@ -1,4 +1,5 @@ # Schemas +(*schemas*) ## Overview @@ -31,18 +32,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\DeleteSchemaRequest( - apiID: '', - revisionID: '', - versionID: '', + apiID: '', + revisionID: '', + versionID: '', + ); + $response = $sdk.schemas->deleteSchema( + request: $request ); - $response = $sdk->schemas->deleteSchema($request); if ($response->statusCode === 200) { // handle response @@ -66,6 +68,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -85,19 +88,20 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\DownloadSchemaRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.schemas->downloadSchema( + request: $request ); - $response = $sdk->schemas->downloadSchema($request); - if ($response->twoHundredApplicationJsonSchema !== null) { + if ($response->twoXXApplicationJsonSchema !== null) { // handle response } } catch (Throwable $e) { @@ -119,6 +123,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -138,20 +143,21 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\DownloadSchemaRevisionRequest( - apiID: '', - revisionID: '', - versionID: '', + apiID: '', + revisionID: '', + versionID: '', + ); + $response = $sdk.schemas->downloadSchemaRevision( + request: $request ); - $response = $sdk->schemas->downloadSchemaRevision($request); - if ($response->twoHundredApplicationJsonSchema !== null) { + if ($response->twoXXApplicationJsonSchema !== null) { // handle response } } catch (Throwable $e) { @@ -173,6 +179,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -193,17 +200,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetSchemaRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.schemas->getSchema( + request: $request ); - $response = $sdk->schemas->getSchema($request); if ($response->schema !== null) { // handle response @@ -227,6 +235,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -246,19 +255,20 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetSchemaDiffRequest( - apiID: '', - baseRevisionID: '', - targetRevisionID: '', - versionID: '', + apiID: '', + baseRevisionID: '', + targetRevisionID: '', + versionID: '', + ); + $response = $sdk.schemas->getSchemaDiff( + request: $request ); - $response = $sdk->schemas->getSchemaDiff($request); if ($response->schemaDiff !== null) { // handle response @@ -282,6 +292,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -302,18 +313,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetSchemaRevisionRequest( - apiID: '', - revisionID: '', - versionID: '', + apiID: '', + revisionID: '', + versionID: '', + ); + $response = $sdk.schemas->getSchemaRevision( + request: $request ); - $response = $sdk->schemas->getSchemaRevision($request); if ($response->schema !== null) { // handle response @@ -337,6 +349,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -357,17 +370,18 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\GetSchemasRequest( - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.schemas->getSchemas( + request: $request ); - $response = $sdk->schemas->getSchemas($request); if ($response->classes !== null) { // handle response @@ -391,6 +405,7 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | @@ -411,11 +426,10 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\RegisterSchemaRequest( requestBody: new Operations\RegisterSchemaRequestBody( @@ -424,10 +438,12 @@ try { fileName: 'example.file', ), ), - apiID: '', - versionID: '', + apiID: '', + versionID: '', + ); + $response = $sdk.schemas->registerSchema( + request: $request ); - $response = $sdk->schemas->registerSchema($request); if ($response->statusCode === 200) { // handle response @@ -451,4 +467,5 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/shorturls/README.md b/docs/sdks/shorturls/README.md index cfae2ba..bc3bcf0 100644 --- a/docs/sdks/shorturls/README.md +++ b/docs/sdks/shorturls/README.md @@ -1,4 +1,5 @@ # ShortURLs +(*shortURLs*) ## Overview @@ -24,16 +25,17 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\CreateRequestBody( url: 'https://probable-heating.com/', ); - $response = $sdk->shortURLs->create($request); + $response = $sdk.shortURLs->create( + request: $request + ); if ($response->shortURL !== null) { // handle response diff --git a/docs/sdks/suggest/README.md b/docs/sdks/suggest/README.md index 8755f39..aae6442 100644 --- a/docs/sdks/suggest/README.md +++ b/docs/sdks/suggest/README.md @@ -1,4 +1,5 @@ # Suggest +(*suggest*) ## Overview @@ -26,34 +27,49 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\SuggestRequest( suggestRequestBody: new Shared\SuggestRequestBody( diagnostics: [ - new Shared\Diagnostic, + new Shared\Diagnostic( + message: '', + path: [ + '/rescue', + ], + type: '', + ), ], oasSummary: new Shared\OASSummary( info: new Shared\OASInfo( - description: 'Operative multi-tasking framework', + description: 'kielbasa psst stitcher cannon devoted blindly apropos low', license: new Shared\License(), summary: '', title: '', version: '', ), operations: [ - new Shared\OASOperation, + new Shared\OASOperation( + description: 'via apparatus gray whether opposite what', + method: '', + operationId: '', + path: '/sys', + tags: [ + '', + ], + ), ], ), suggestionType: Shared\SuggestRequestBodySuggestionType::MethodNames, ), - xSessionId: '', + xSessionId: '', + ); + $response = $sdk.suggest->suggest( + request: $request ); - $response = $sdk->suggest->suggest($request); if ($response->schema !== null) { // handle response @@ -96,11 +112,10 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\SuggestOpenAPIRequest( requestBody: new Operations\SuggestOpenAPIRequestBody( @@ -109,9 +124,11 @@ try { fileName: 'example.file', ), ), - xSessionId: '', + xSessionId: '', + ); + $response = $sdk.suggest->suggestOpenAPI( + request: $request ); - $response = $sdk->suggest->suggestOpenAPI($request); if ($response->schema !== null) { // handle response @@ -154,18 +171,19 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { $request = new Operations\SuggestOpenAPIRegistryRequest( namespaceName: '', revisionReference: '', - xSessionId: '', + xSessionId: '', + ); + $response = $sdk.suggest->suggestOpenAPIRegistry( + request: $request ); - $response = $sdk->suggest->suggestOpenAPIRegistry($request); if ($response->schema !== null) { // handle response diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index b22d8a0..29deaa0 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -1,16 +1,89 @@ # Workspaces +(*workspaces*) ## Overview ### Available Operations -* [getWorkspace](#getworkspace) - Get workspace -* [getWorkspaceByContext](#getworkspacebycontext) - Get workspace by context -* [getWorkspaceFeatureFlags](#getworkspacefeatureflags) - Get workspace feature flags +* [create](#create) - Create a workspace +* [createToken](#createtoken) - Create a token for a particular workspace +* [deleteToken](#deletetoken) - Delete a token for a particular workspace +* [get](#get) - Get workspace by context +* [getAll](#getall) - Get workspaces for a user +* [getByID](#getbyid) - Get workspace +* [getFeatureFlags](#getfeatureflags) - Get workspace feature flags +* [getSettings](#getsettings) - Get workspace settings +* [getTeam](#getteam) - Get team members for a particular workspace +* [getTokens](#gettokens) - Get tokens for a particular workspace +* [grantAccess](#grantaccess) - Grant a user access to a particular workspace +* [revokeAccess](#revokeaccess) - Revoke a user's access to a particular workspace +* [update](#update) - Update workspace details +* [updateSettings](#updatesettings) - Update workspace settings + +## create + +Creates a workspace -## getWorkspace +### Example Usage -Get information about a particular workspace. +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; +use Speakeasy\SpeakeasyClientSDK\Utils; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Shared\Workspace( + createdAt: Utils\Utils::parseDateTime('2023-06-18T07:14:55.338Z'), + id: '', + name: '', + organizationId: '', + slug: '', + telemetryDisabled: false, + updatedAt: Utils\Utils::parseDateTime('2023-12-01T17:06:07.804Z'), + verified: false, + ); + $response = $sdk.workspaces->create( + request: $request + ); + + if ($response->workspace !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `$request` | [Shared\Workspace](../../Models/Shared/Workspace.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\CreateWorkspaceResponse](../../Models/Operations/CreateWorkspaceResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## createToken + +Create a token for a particular workspace ### Example Usage @@ -24,16 +97,81 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $request = new Operations\GetWorkspaceRequest(); - $response = $sdk->workspaces->getWorkspace($request); + $request = new Operations\CreateWorkspaceTokenRequest( + workspaceToken: new Shared\WorkspaceToken( + alg: '', + createdAt: '', + id: '', + key: '', + name: '', + ), + workspaceId: '', + ); + $response = $sdk.workspaces->createToken( + request: $request + ); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` - if ($response->workspace !== null) { +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\CreateWorkspaceTokenRequest](../../Models/Operations/CreateWorkspaceTokenRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\CreateWorkspaceTokenResponse](../../Models/Operations/CreateWorkspaceTokenResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## deleteToken + +Delete a token for a particular workspace + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\DeleteWorkspaceTokenRequest( + tokenID: '', + workspaceId: '', + ); + $response = $sdk.workspaces->deleteToken( + request: $request + ); + + if ($response->statusCode === 200) { // handle response } } catch (Throwable $e) { @@ -43,22 +181,23 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `$request` | [Operations\GetWorkspaceRequest](../../Models/Operations/GetWorkspaceRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\DeleteWorkspaceTokenRequest](../../Models/Operations/DeleteWorkspaceTokenRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\GetWorkspaceResponse](../../Models/Operations/GetWorkspaceResponse.md)** +**[?Operations\DeleteWorkspaceTokenResponse](../../Models/Operations/DeleteWorkspaceTokenResponse.md)** ### Errors | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getWorkspaceByContext +## get Get information about a particular workspace by context. @@ -73,13 +212,14 @@ use Speakeasy\SpeakeasyClientSDK; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); - try { - $response = $sdk->workspaces->getWorkspaceByContext(); + $response = $sdk.workspaces->get( + + ); if ($response->workspaceAndOrganization !== null) { // handle response @@ -97,12 +237,57 @@ try { | Error Object | Status Code | Content Type | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | -## getWorkspaceFeatureFlags +## getAll -Get workspace feature flags +Returns a list of workspaces a user has access too + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $response = $sdk.workspaces->getAll( + + ); + + if ($response->workspaces !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Response + +**[?Operations\GetWorkspacesResponse](../../Models/Operations/GetWorkspacesResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## getByID + +Get information about a particular workspace. ### Example Usage @@ -116,14 +301,71 @@ use Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Models\Shared; $security = new Shared\Security( - apiKey: "", + apiKey: '', ); $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\GetWorkspaceRequest( + workspaceId: '', + ); + $response = $sdk.workspaces->getByID( + request: $request + ); + + if ($response->workspace !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `$request` | [Operations\GetWorkspaceRequest](../../Models/Operations/GetWorkspaceRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\GetWorkspaceResponse](../../Models/Operations/GetWorkspaceResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## getFeatureFlags + +Get workspace feature flags + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); try { - $request = new Operations\GetWorkspaceFeatureFlagsRequest(); - $response = $sdk->workspaces->getWorkspaceFeatureFlags($request); + $request = new Operations\GetWorkspaceFeatureFlagsRequest( + workspaceId: '', + ); + $response = $sdk.workspaces->getFeatureFlags( + request: $request + ); if ($response->workspaceFeatureFlagResponse !== null) { // handle response @@ -149,3 +391,397 @@ try { | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | | Errorors\Error | 5XX | application/json | | Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## getSettings + +Get settings about a particular workspace. + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\GetWorkspaceSettingsRequest( + workspaceId: '', + ); + $response = $sdk.workspaces->getSettings( + request: $request + ); + + if ($response->workspaceSettings !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\GetWorkspaceSettingsRequest](../../Models/Operations/GetWorkspaceSettingsRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\GetWorkspaceSettingsResponse](../../Models/Operations/GetWorkspaceSettingsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## getTeam + +Get team members for a particular workspace + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\GetWorkspaceTeamRequest( + workspaceId: '', + ); + $response = $sdk.workspaces->getTeam( + request: $request + ); + + if ($response->workspaceTeamResponse !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `$request` | [Operations\GetWorkspaceTeamRequest](../../Models/Operations/GetWorkspaceTeamRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\GetWorkspaceTeamResponse](../../Models/Operations/GetWorkspaceTeamResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## getTokens + +Get tokens for a particular workspace + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\GetWorkspaceTokensRequest( + workspaceId: '', + ); + $response = $sdk.workspaces->getTokens( + request: $request + ); + + if ($response->classes !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `$request` | [Operations\GetWorkspaceTokensRequest](../../Models/Operations/GetWorkspaceTokensRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\GetWorkspaceTokensResponse](../../Models/Operations/GetWorkspaceTokensResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## grantAccess + +Grant a user access to a particular workspace + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\GrantUserAccessToWorkspaceRequest( + email: 'Lucinda.Batz8@hotmail.com', + workspaceId: '', + ); + $response = $sdk.workspaces->grantAccess( + request: $request + ); + + if ($response->workspaceInviteResponse !== null) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\GrantUserAccessToWorkspaceRequest](../../Models/Operations/GrantUserAccessToWorkspaceRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\GrantUserAccessToWorkspaceResponse](../../Models/Operations/GrantUserAccessToWorkspaceResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## revokeAccess + +Revoke a user's access to a particular workspace + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\RevokeUserAccessToWorkspaceRequest( + userId: '', + workspaceId: '', + ); + $response = $sdk.workspaces->revokeAccess( + request: $request + ); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `$request` | [Operations\RevokeUserAccessToWorkspaceRequest](../../Models/Operations/RevokeUserAccessToWorkspaceRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\RevokeUserAccessToWorkspaceResponse](../../Models/Operations/RevokeUserAccessToWorkspaceResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## update + +Update information about a particular workspace. + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; +use Speakeasy\SpeakeasyClientSDK\Utils; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\UpdateWorkspaceDetailsRequest( + workspace: new Shared\Workspace( + createdAt: Utils\Utils::parseDateTime('2024-07-28T19:04:48.565Z'), + id: '', + name: '', + organizationId: '', + slug: '', + telemetryDisabled: false, + updatedAt: Utils\Utils::parseDateTime('2023-10-17T10:52:42.015Z'), + verified: false, + ), + workspaceId: '', + ); + $response = $sdk.workspaces->update( + request: $request + ); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `$request` | [Operations\UpdateWorkspaceDetailsRequest](../../Models/Operations/UpdateWorkspaceDetailsRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\UpdateWorkspaceDetailsResponse](../../Models/Operations/UpdateWorkspaceDetailsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | + + +## updateSettings + +Update settings about a particular workspace. + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; + +$security = new Shared\Security( + apiKey: '', +); + +$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); +try { + $request = new Operations\UpdateWorkspaceSettingsRequest( + workspaceSettings: new Shared\WorkspaceSettings( + workspaceId: '', + ), + workspaceId: '', + ); + $response = $sdk.workspaces->updateSettings( + request: $request + ); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\UpdateWorkspaceSettingsRequest](../../Models/Operations/UpdateWorkspaceSettingsRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\UpdateWorkspaceSettingsResponse](../../Models/Operations/UpdateWorkspaceSettingsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| Errorors\Error | 4XX | application/json | +| Speakeasy\SpeakeasyClientSDK\Models\Errorors.SDKException | 4xx-5xx | */* | diff --git a/src/ApiEndpoints.php b/src/ApiEndpoints.php index f980285..e37ed4b 100644 --- a/src/ApiEndpoints.php +++ b/src/ApiEndpoints.php @@ -46,28 +46,24 @@ public function deleteApiEndpoint( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\DeleteApiEndpointResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\DeleteApiEndpointResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -96,7 +92,7 @@ public function findApiEndpoint( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\ApiEndpoint', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -110,22 +106,18 @@ public function findApiEndpoint( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\FindApiEndpointResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -154,7 +146,7 @@ public function generateOpenApiSpecForApiEndpoint( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GenerateOpenApiSpecDiff', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -168,22 +160,18 @@ public function generateOpenApiSpecForApiEndpoint( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GenerateOpenApiSpecForApiEndpointResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -202,7 +190,7 @@ public function generatePostmanCollectionForApiEndpoint( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman', Operations\GeneratePostmanCollectionForApiEndpointRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options['headers']['Accept'] = 'application/json;q=1, application/octet-stream;q=0'; + $options['headers']['Accept'] = 'application/octet-stream'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -211,7 +199,7 @@ public function generatePostmanCollectionForApiEndpoint( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/octet-stream')) { $obj = $httpResponse->getBody()->getContents(); @@ -223,22 +211,18 @@ public function generatePostmanCollectionForApiEndpoint( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GeneratePostmanCollectionForApiEndpointResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -264,7 +248,7 @@ public function getAllApiEndpoints( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\ApiEndpoint>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -278,22 +262,18 @@ public function getAllApiEndpoints( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetAllApiEndpointsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -319,7 +299,7 @@ public function getAllForVersionApiEndpoints( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\ApiEndpoint>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -333,22 +313,18 @@ public function getAllForVersionApiEndpoints( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetAllForVersionApiEndpointsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -374,7 +350,7 @@ public function getApiEndpoint( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\ApiEndpoint', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -388,22 +364,18 @@ public function getApiEndpoint( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetApiEndpointResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -436,7 +408,7 @@ public function upsertApiEndpoint( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\ApiEndpoint', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -450,22 +422,18 @@ public function upsertApiEndpoint( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\UpsertApiEndpointResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Apis.php b/src/Apis.php index 6257a39..14753fc 100644 --- a/src/Apis.php +++ b/src/Apis.php @@ -46,28 +46,24 @@ public function deleteApi( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\DeleteApiResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\DeleteApiResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -96,7 +92,7 @@ public function generateOpenApiSpec( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GenerateOpenApiSpecDiff', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -110,22 +106,18 @@ public function generateOpenApiSpec( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GenerateOpenApiSpecResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -144,7 +136,7 @@ public function generatePostmanCollection( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/apis/{apiID}/version/{versionID}/generate/postman', Operations\GeneratePostmanCollectionRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options['headers']['Accept'] = 'application/json;q=1, application/octet-stream;q=0'; + $options['headers']['Accept'] = 'application/octet-stream'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -153,7 +145,7 @@ public function generatePostmanCollection( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/octet-stream')) { $obj = $httpResponse->getBody()->getContents(); @@ -165,22 +157,18 @@ public function generatePostmanCollection( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GeneratePostmanCollectionResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -210,7 +198,7 @@ public function getAllApiVersions( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\Api>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -224,22 +212,18 @@ public function getAllApiVersions( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetAllApiVersionsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -269,7 +253,7 @@ public function getApis( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\Api>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -283,22 +267,18 @@ public function getApis( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetApisResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -332,7 +312,7 @@ public function upsertApi( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Api', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -346,22 +326,18 @@ public function upsertApi( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\UpsertApiResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Artifacts.php b/src/Artifacts.php index 6c457b0..18e0712 100644 --- a/src/Artifacts.php +++ b/src/Artifacts.php @@ -36,7 +36,7 @@ public function getBlob( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}', Operations\GetBlobRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options['headers']['Accept'] = 'application/json;q=1, application/octet-stream;q=0'; + $options['headers']['Accept'] = 'application/octet-stream'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -45,7 +45,7 @@ public function getBlob( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/octet-stream')) { $obj = $httpResponse->getBody()->getContents(); @@ -57,22 +57,18 @@ public function getBlob( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetBlobResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -89,7 +85,7 @@ public function getManifest( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}', Operations\GetManifestRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options['headers']['Accept'] = 'application/json;q=1, application/vnd.oci.image.manifest.v1+json;q=0'; + $options['headers']['Accept'] = 'application/vnd.oci.image.manifest.v1+json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -98,7 +94,7 @@ public function getManifest( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/vnd.oci.image.manifest.v1+json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Manifest', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -112,22 +108,18 @@ public function getManifest( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetManifestResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -151,7 +143,7 @@ public function getNamespaces( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GetNamespacesResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -165,22 +157,18 @@ public function getNamespaces( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetNamespacesResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -207,7 +195,7 @@ public function getRevisions( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GetRevisionsResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -221,22 +209,18 @@ public function getRevisions( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetRevisionsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -262,7 +246,7 @@ public function getTags( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GetTagsResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -276,22 +260,18 @@ public function getTags( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetTagsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -321,28 +301,24 @@ public function postTags( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\PostTagsResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\PostTagsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -372,7 +348,7 @@ public function preflight( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\PreflightToken', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -386,22 +362,18 @@ public function preflight( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\PreflightResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Auth.php b/src/Auth.php index a9ebf0b..d15e4c2 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -23,35 +23,39 @@ public function __construct(SDKConfiguration $sdkConfig) } /** - * Get or refresh an access token for the current workspace. + * Get access allowances for a particular workspace * - * @param Operations\GetAccessTokenRequest $request - * @return Operations\GetAccessTokenResponse + * Checks if generation is permitted for a particular run of the CLI + * + * @param Operations\GetWorkspaceAccessRequest $request + * @return Operations\GetWorkspaceAccessResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getAccessToken( - ?Operations\GetAccessTokenRequest $request, - ): Operations\GetAccessTokenResponse { + public function getAccess( + ?Operations\GetWorkspaceAccessRequest $request, + ): Operations\GetWorkspaceAccessResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/auth/access_token'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/access'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetAccessTokenRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetWorkspaceAccessRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->defaultClient->send($httpRequest, $options); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\AccessToken', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetAccessTokenResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\AccessDetails', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWorkspaceAccessResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - accessToken: $obj); + accessDetails: $obj); return $response; } else { @@ -60,91 +64,71 @@ public function getAccessToken( } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } else { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetAccessTokenResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; - } else { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * Get information about the current user. + * Get or refresh an access token for the current workspace. * - * @return Operations\GetUserResponse + * @param Operations\GetAccessTokenRequest $request + * @return Operations\GetAccessTokenResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getUser( - ): Operations\GetUserResponse { + public function getAccessToken( + ?Operations\GetAccessTokenRequest $request, + ): Operations\GetAccessTokenResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/user'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/auth/access_token'); $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetAccessTokenRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - - - $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $httpResponse = $this->sdkConfiguration->defaultClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\User', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetUserResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\AccessToken', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetAccessTokenResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - user: $obj); + accessToken: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetUserResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * Get access allowances for a particular workspace - * - * Checks if generation is permitted for a particular run of the CLI + * Get information about the current user. * - * @param Operations\GetWorkspaceAccessRequest $request - * @return Operations\GetWorkspaceAccessResponse + * @return Operations\GetUserResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getWorkspaceAccess( - ?Operations\GetWorkspaceAccessRequest $request, - ): Operations\GetWorkspaceAccessResponse { + public function getUser( + ): Operations\GetUserResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/access'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/user'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetWorkspaceAccessRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -154,21 +138,29 @@ public function getWorkspaceAccess( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\AccessDetails', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetWorkspaceAccessResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\User', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetUserResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - accessDetails: $obj); + user: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -195,7 +187,7 @@ public function validateApiKey( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\ApiKeyDetails', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -209,22 +201,18 @@ public function validateApiKey( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\ValidateApiKeyResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Embeds.php b/src/Embeds.php index 2070ce3..a63d9d6 100644 --- a/src/Embeds.php +++ b/src/Embeds.php @@ -48,7 +48,7 @@ public function getEmbedAccessToken( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\EmbedAccessTokenResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -62,22 +62,18 @@ public function getEmbedAccessToken( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetEmbedAccessTokenResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -101,7 +97,7 @@ public function getValidEmbedAccessTokens( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\EmbedToken>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -115,22 +111,18 @@ public function getValidEmbedAccessTokens( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetValidEmbedAccessTokensResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -156,28 +148,24 @@ public function revokeEmbedAccessToken( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\RevokeEmbedAccessTokenResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\RevokeEmbedAccessTokenResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Events.php b/src/Events.php index 80dac45..fc549c3 100644 --- a/src/Events.php +++ b/src/Events.php @@ -29,11 +29,11 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\GetWorkspaceEventsByTargetResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getWorkspaceEventsByTarget( + public function getEventsByTarget( ?Operations\GetWorkspaceEventsByTargetRequest $request, ): Operations\GetWorkspaceEventsByTargetResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspaceID}/events/targets/{targetID}/events', Operations\GetWorkspaceEventsByTargetRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/events/targets/{target_id}/events', Operations\GetWorkspaceEventsByTargetRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetWorkspaceEventsByTargetRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; @@ -81,11 +81,11 @@ public function getWorkspaceEventsByTarget( * @return Operations\GetWorkspaceTargetsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getWorkspaceTargets( + public function getTargets( ?Operations\GetWorkspaceTargetsRequest $request, ): Operations\GetWorkspaceTargetsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspaceID}/events/targets', Operations\GetWorkspaceTargetsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/events/targets'); $options = ['http_errors' => false]; $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetWorkspaceTargetsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; @@ -126,6 +126,58 @@ public function getWorkspaceTargets( } } + /** + * Load targets for a particular workspace + * + * @param Operations\GetWorkspaceTargetsDeprecatedRequest $request + * @return Operations\GetWorkspaceTargetsDeprecatedResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function getTargetsDeprecated( + ?Operations\GetWorkspaceTargetsDeprecatedRequest $request, + ): Operations\GetWorkspaceTargetsDeprecatedResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/events/targets', Operations\GetWorkspaceTargetsDeprecatedRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetWorkspaceTargetsDeprecatedRequest::class, $request, $this->sdkConfiguration->globals)); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\TargetSDK>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWorkspaceTargetsDeprecatedResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + targetSDKList: $obj); + + return $response; + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode >= 500 && $statusCode < 600) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + /** * Post events for a specific workspace * @@ -135,11 +187,11 @@ public function getWorkspaceTargets( * @return Operations\PostWorkspaceEventsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function postWorkspaceEvents( + public function post( Operations\PostWorkspaceEventsRequest $request, ): Operations\PostWorkspaceEventsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspaceID}/events', Operations\PostWorkspaceEventsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/events', Operations\PostWorkspaceEventsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $body = Utils\Utils::serializeRequestBody($request, 'requestBody', 'json'); if ($body === null) { @@ -183,11 +235,11 @@ public function postWorkspaceEvents( * @return Operations\SearchWorkspaceEventsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function searchWorkspaceEvents( + public function search( ?Operations\SearchWorkspaceEventsRequest $request, ): Operations\SearchWorkspaceEventsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspaceID}/events', Operations\SearchWorkspaceEventsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/events', Operations\SearchWorkspaceEventsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\SearchWorkspaceEventsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; diff --git a/src/Github.php b/src/Github.php index 618d230..3be2797 100644 --- a/src/Github.php +++ b/src/Github.php @@ -26,17 +26,17 @@ public function __construct(SDKConfiguration $sdkConfig) /** * checkAccess * - * @param Operations\CheckAccessRequest $request - * @return Operations\CheckAccessResponse + * @param Operations\CheckGithubAccessRequest $request + * @return Operations\CheckGithubAccessResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ public function checkAccess( - ?Operations\CheckAccessRequest $request, - ): Operations\CheckAccessResponse { + ?Operations\CheckGithubAccessRequest $request, + ): Operations\CheckGithubAccessResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/check_access'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\CheckAccessRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\CheckGithubAccessRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -46,155 +46,143 @@ public function checkAccess( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { - return new Operations\CheckAccessResponse( + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\CheckGithubAccessResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\CheckAccessResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * configureCodeSamples + * checkPublishingPRs * - * @param Shared\GithubConfigureCodeSamplesRequest $request - * @return Operations\ConfigureCodeSamplesResponse + * @param Operations\GithubCheckPublishingPRsRequest $request + * @return Operations\GithubCheckPublishingPRsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function configureCodeSamples( - Shared\GithubConfigureCodeSamplesRequest $request, - ): Operations\ConfigureCodeSamplesResponse { + public function checkPublishingPRs( + ?Operations\GithubCheckPublishingPRsRequest $request, + ): Operations\GithubCheckPublishingPRsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/configure_code_samples'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/publishing_prs'); $options = ['http_errors' => false]; - $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); - if ($body === null) { - throw new \Exception('Request body is required'); - } - $options = array_merge_recursive($options, $body); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GithubCheckPublishingPRsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; - $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubConfigureCodeSamplesResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\ConfigureCodeSamplesResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubPublishingPRResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GithubCheckPublishingPRsResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - githubConfigureCodeSamplesResponse: $obj); + githubPublishingPRResponse: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\ConfigureCodeSamplesResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * configureMintlifyRepo + * checkPublishingSecrets * - * @param Shared\GithubConfigureMintlifyRepoRequest $request - * @return Operations\ConfigureMintlifyRepoResponse + * @param Operations\GithubCheckPublishingSecretsRequest $request + * @return Operations\GithubCheckPublishingSecretsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function configureMintlifyRepo( - Shared\GithubConfigureMintlifyRepoRequest $request, - ): Operations\ConfigureMintlifyRepoResponse { + public function checkPublishingSecrets( + ?Operations\GithubCheckPublishingSecretsRequest $request, + ): Operations\GithubCheckPublishingSecretsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/configure_mintlify_repo'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/publishing_secrets'); $options = ['http_errors' => false]; - $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); - if ($body === null) { - throw new \Exception('Request body is required'); - } - $options = array_merge_recursive($options, $body); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GithubCheckPublishingSecretsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; - $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { - return new Operations\ConfigureMintlifyRepoResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse - ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\ConfigureMintlifyRepoResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubMissingPublishingSecretsResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GithubCheckPublishingSecretsResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - error: $obj); + githubMissingPublishingSecretsResponse: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * configureTarget + * configureCodeSamples * - * @param Shared\GithubConfigureTargetRequest $request - * @return Operations\ConfigureTargetResponse + * @param Shared\GithubConfigureCodeSamplesRequest $request + * @return Operations\GithubConfigureCodeSamplesResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function configureTarget( - Shared\GithubConfigureTargetRequest $request, - ): Operations\ConfigureTargetResponse { + public function configureCodeSamples( + Shared\GithubConfigureCodeSamplesRequest $request, + ): Operations\GithubConfigureCodeSamplesResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/configure_target'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/configure_code_samples'); $options = ['http_errors' => false]; $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); if ($body === null) { @@ -210,157 +198,145 @@ public function configureTarget( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { - return new Operations\ConfigureTargetResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse - ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\ConfigureTargetResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubConfigureCodeSamplesResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GithubConfigureCodeSamplesResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - error: $obj); + githubConfigureCodeSamplesResponse: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * fetchPublishingPRs + * configureMintlifyRepo * - * @param Operations\FetchPublishingPRsRequest $request - * @return Operations\FetchPublishingPRsResponse + * @param Shared\GithubConfigureMintlifyRepoRequest $request + * @return Operations\GithubConfigureMintlifyRepoResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function fetchPublishingPRs( - ?Operations\FetchPublishingPRsRequest $request, - ): Operations\FetchPublishingPRsResponse { + public function configureMintlifyRepo( + Shared\GithubConfigureMintlifyRepoRequest $request, + ): Operations\GithubConfigureMintlifyRepoResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/publishing_prs'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/configure_mintlify_repo'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\FetchPublishingPRsRequest::class, $request, $this->sdkConfiguration->globals)); + $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; - $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\GithubConfigureMintlifyRepoResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubPublishingPRResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\FetchPublishingPRsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - githubPublishingPRResponse: $obj); - - return $response; + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + } elseif ($statusCode >= 500 && $statusCode < 600) { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } else { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\FetchPublishingPRsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; - } else { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * getAction + * configureTarget * - * @param Operations\GetActionRequest $request - * @return Operations\GetActionResponse + * @param Shared\GithubConfigureTargetRequest $request + * @return Operations\GithubConfigureTargetResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getAction( - ?Operations\GetActionRequest $request, - ): Operations\GetActionResponse { + public function configureTarget( + Shared\GithubConfigureTargetRequest $request, + ): Operations\GithubConfigureTargetResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/action'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/configure_target'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetActionRequest::class, $request, $this->sdkConfiguration->globals)); + $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; - $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\GithubConfigureTargetResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubGetActionResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetActionResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - githubGetActionResponse: $obj); - - return $response; + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + } elseif ($statusCode >= 500 && $statusCode < 600) { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } else { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetActionResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; - } else { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * githubCheckPublishingSecrets + * getAction * - * @param Operations\GithubCheckPublishingSecretsRequest $request - * @return Operations\GithubCheckPublishingSecretsResponse + * @param Operations\GetGitHubActionRequest $request + * @return Operations\GetGitHubActionResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function githubCheckPublishingSecrets( - ?Operations\GithubCheckPublishingSecretsRequest $request, - ): Operations\GithubCheckPublishingSecretsResponse { + public function getAction( + ?Operations\GetGitHubActionRequest $request, + ): Operations\GetGitHubActionResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/publishing_secrets'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/action'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GithubCheckPublishingSecretsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetGitHubActionRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -370,47 +346,43 @@ public function githubCheckPublishingSecrets( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubMissingPublishingSecretsResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GithubCheckPublishingSecretsResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubGetActionResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetGitHubActionResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - githubMissingPublishingSecretsResponse: $obj); + githubGetActionResponse: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GithubCheckPublishingSecretsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * githubStorePublishingSecrets + * storePublishingSecrets * * @param Shared\GithubStorePublishingSecretsRequest $request * @return Operations\GithubStorePublishingSecretsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function githubStorePublishingSecrets( + public function storePublishingSecrets( Shared\GithubStorePublishingSecretsRequest $request, ): Operations\GithubStorePublishingSecretsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); @@ -430,28 +402,24 @@ public function githubStorePublishingSecrets( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\GithubStorePublishingSecretsResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GithubStorePublishingSecretsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -459,12 +427,12 @@ public function githubStorePublishingSecrets( * triggerAction * * @param Shared\GithubTriggerActionRequest $request - * @return Operations\TriggerActionResponse + * @return Operations\GithubTriggerActionResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ public function triggerAction( Shared\GithubTriggerActionRequest $request, - ): Operations\TriggerActionResponse { + ): Operations\GithubTriggerActionResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/github/trigger_action'); $options = ['http_errors' => false]; @@ -482,28 +450,24 @@ public function triggerAction( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { - return new Operations\TriggerActionResponse( + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\GithubTriggerActionResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\TriggerActionResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Metadata.php b/src/Metadata.php index 730cc7d..4c47790 100644 --- a/src/Metadata.php +++ b/src/Metadata.php @@ -44,28 +44,24 @@ public function deleteVersionMetadata( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\DeleteVersionMetadataResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\DeleteVersionMetadataResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -91,7 +87,7 @@ public function getVersionMetadata( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\VersionMetadata>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -105,22 +101,18 @@ public function getVersionMetadata( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetVersionMetadataResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -151,7 +143,7 @@ public function insertVersionMetadata( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\VersionMetadata', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -165,22 +157,18 @@ public function insertVersionMetadata( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\InsertVersionMetadataResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Models/Operations/CheckAccessRequest.php b/src/Models/Operations/CheckGithubAccessRequest.php similarity index 95% rename from src/Models/Operations/CheckAccessRequest.php rename to src/Models/Operations/CheckGithubAccessRequest.php index 7ea14d6..091080d 100644 --- a/src/Models/Operations/CheckAccessRequest.php +++ b/src/Models/Operations/CheckGithubAccessRequest.php @@ -9,7 +9,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Utils\SpeakeasyMetadata; -class CheckAccessRequest +class CheckGithubAccessRequest { /** * diff --git a/src/Models/Operations/TriggerActionResponse.php b/src/Models/Operations/CheckGithubAccessResponse.php similarity index 73% rename from src/Models/Operations/TriggerActionResponse.php rename to src/Models/Operations/CheckGithubAccessResponse.php index e293d0a..7af3d76 100644 --- a/src/Models/Operations/TriggerActionResponse.php +++ b/src/Models/Operations/CheckGithubAccessResponse.php @@ -8,8 +8,8 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; -class TriggerActionResponse + +class CheckGithubAccessResponse { /** * HTTP response content type for this operation @@ -18,13 +18,6 @@ class TriggerActionResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class TriggerActionResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/CreateFreeTrialResponse.php b/src/Models/Operations/CreateFreeTrialResponse.php index b51821b..569b4e8 100644 --- a/src/Models/Operations/CreateFreeTrialResponse.php +++ b/src/Models/Operations/CreateFreeTrialResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class CreateFreeTrialResponse { /** @@ -18,13 +18,6 @@ class CreateFreeTrialResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class CreateFreeTrialResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/CreateOrganizationResponse.php b/src/Models/Operations/CreateOrganizationResponse.php new file mode 100644 index 0000000..cdee103 --- /dev/null +++ b/src/Models/Operations/CreateOrganizationResponse.php @@ -0,0 +1,55 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->organization = $organization; + } +} \ No newline at end of file diff --git a/src/Models/Operations/ConfigureMintlifyRepoResponse.php b/src/Models/Operations/CreateWorkspaceResponse.php similarity index 74% rename from src/Models/Operations/ConfigureMintlifyRepoResponse.php rename to src/Models/Operations/CreateWorkspaceResponse.php index 24f2399..be8fece 100644 --- a/src/Models/Operations/ConfigureMintlifyRepoResponse.php +++ b/src/Models/Operations/CreateWorkspaceResponse.php @@ -8,8 +8,8 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; -class ConfigureMintlifyRepoResponse +use Speakeasy\SpeakeasyClientSDK\Models\Shared; +class CreateWorkspaceResponse { /** * HTTP response content type for this operation @@ -18,13 +18,6 @@ class ConfigureMintlifyRepoResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -39,17 +32,24 @@ class ConfigureMintlifyRepoResponse */ public \Psr\Http\Message\ResponseInterface $rawResponse; + /** + * OK + * + * @var ?Shared\Workspace $workspace + */ + public ?Shared\Workspace $workspace = null; + /** * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error + * @param ?Shared\Workspace $workspace */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Workspace $workspace = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; + $this->workspace = $workspace; } } \ No newline at end of file diff --git a/src/Models/Operations/CreateWorkspaceTokenRequest.php b/src/Models/Operations/CreateWorkspaceTokenRequest.php new file mode 100644 index 0000000..35911b7 --- /dev/null +++ b/src/Models/Operations/CreateWorkspaceTokenRequest.php @@ -0,0 +1,39 @@ +workspaceToken = $workspaceToken; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/CreateWorkspaceTokenResponse.php b/src/Models/Operations/CreateWorkspaceTokenResponse.php new file mode 100644 index 0000000..7f41f24 --- /dev/null +++ b/src/Models/Operations/CreateWorkspaceTokenResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/DeleteApiEndpointResponse.php b/src/Models/Operations/DeleteApiEndpointResponse.php index 1b849c5..d18f0c5 100644 --- a/src/Models/Operations/DeleteApiEndpointResponse.php +++ b/src/Models/Operations/DeleteApiEndpointResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class DeleteApiEndpointResponse { /** @@ -18,13 +18,6 @@ class DeleteApiEndpointResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class DeleteApiEndpointResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/DeleteApiResponse.php b/src/Models/Operations/DeleteApiResponse.php index 335be0e..73babf9 100644 --- a/src/Models/Operations/DeleteApiResponse.php +++ b/src/Models/Operations/DeleteApiResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class DeleteApiResponse { /** @@ -18,13 +18,6 @@ class DeleteApiResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class DeleteApiResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/DeleteSchemaResponse.php b/src/Models/Operations/DeleteSchemaResponse.php index 67c1c92..c0fa8cc 100644 --- a/src/Models/Operations/DeleteSchemaResponse.php +++ b/src/Models/Operations/DeleteSchemaResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class DeleteSchemaResponse { /** @@ -18,13 +18,6 @@ class DeleteSchemaResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class DeleteSchemaResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/DeleteVersionMetadataResponse.php b/src/Models/Operations/DeleteVersionMetadataResponse.php index 7976e14..f86313b 100644 --- a/src/Models/Operations/DeleteVersionMetadataResponse.php +++ b/src/Models/Operations/DeleteVersionMetadataResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class DeleteVersionMetadataResponse { /** @@ -18,13 +18,6 @@ class DeleteVersionMetadataResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class DeleteVersionMetadataResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/DeleteWorkspaceTokenRequest.php b/src/Models/Operations/DeleteWorkspaceTokenRequest.php new file mode 100644 index 0000000..276c1d7 --- /dev/null +++ b/src/Models/Operations/DeleteWorkspaceTokenRequest.php @@ -0,0 +1,39 @@ +tokenID = $tokenID; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/DeleteWorkspaceTokenResponse.php b/src/Models/Operations/DeleteWorkspaceTokenResponse.php new file mode 100644 index 0000000..6725118 --- /dev/null +++ b/src/Models/Operations/DeleteWorkspaceTokenResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/DownloadSchemaResponse.php b/src/Models/Operations/DownloadSchemaResponse.php index ce8cdf5..fbd14d6 100644 --- a/src/Models/Operations/DownloadSchemaResponse.php +++ b/src/Models/Operations/DownloadSchemaResponse.php @@ -8,22 +8,22 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class DownloadSchemaResponse { /** * OK * - * @var ?string $twoHundredApplicationJsonSchema + * @var ?string $twoXXApplicationJsonSchema */ - public ?string $twoHundredApplicationJsonSchema = null; + public ?string $twoXXApplicationJsonSchema = null; /** * OK * - * @var ?string $twoHundredApplicationXYamlSchema + * @var ?string $twoXXApplicationXYamlSchema */ - public ?string $twoHundredApplicationXYamlSchema = null; + public ?string $twoXXApplicationXYamlSchema = null; /** * HTTP response content type for this operation @@ -32,13 +32,6 @@ class DownloadSchemaResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -57,17 +50,15 @@ class DownloadSchemaResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?string $twoHundredApplicationJsonSchema - * @param ?string $twoHundredApplicationXYamlSchema - * @param ?Errorors\Error $error + * @param ?string $twoXXApplicationJsonSchema + * @param ?string $twoXXApplicationXYamlSchema */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $twoHundredApplicationJsonSchema = null, ?string $twoHundredApplicationXYamlSchema = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $twoXXApplicationJsonSchema = null, ?string $twoXXApplicationXYamlSchema = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->twoHundredApplicationJsonSchema = $twoHundredApplicationJsonSchema; - $this->twoHundredApplicationXYamlSchema = $twoHundredApplicationXYamlSchema; - $this->error = $error; + $this->twoXXApplicationJsonSchema = $twoXXApplicationJsonSchema; + $this->twoXXApplicationXYamlSchema = $twoXXApplicationXYamlSchema; } } \ No newline at end of file diff --git a/src/Models/Operations/DownloadSchemaRevisionResponse.php b/src/Models/Operations/DownloadSchemaRevisionResponse.php index 9873107..34ac058 100644 --- a/src/Models/Operations/DownloadSchemaRevisionResponse.php +++ b/src/Models/Operations/DownloadSchemaRevisionResponse.php @@ -8,22 +8,22 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class DownloadSchemaRevisionResponse { /** * OK * - * @var ?string $twoHundredApplicationJsonSchema + * @var ?string $twoXXApplicationJsonSchema */ - public ?string $twoHundredApplicationJsonSchema = null; + public ?string $twoXXApplicationJsonSchema = null; /** * OK * - * @var ?string $twoHundredApplicationXYamlSchema + * @var ?string $twoXXApplicationXYamlSchema */ - public ?string $twoHundredApplicationXYamlSchema = null; + public ?string $twoXXApplicationXYamlSchema = null; /** * HTTP response content type for this operation @@ -32,13 +32,6 @@ class DownloadSchemaRevisionResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -57,17 +50,15 @@ class DownloadSchemaRevisionResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?string $twoHundredApplicationJsonSchema - * @param ?string $twoHundredApplicationXYamlSchema - * @param ?Errorors\Error $error + * @param ?string $twoXXApplicationJsonSchema + * @param ?string $twoXXApplicationXYamlSchema */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $twoHundredApplicationJsonSchema = null, ?string $twoHundredApplicationXYamlSchema = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $twoXXApplicationJsonSchema = null, ?string $twoXXApplicationXYamlSchema = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->twoHundredApplicationJsonSchema = $twoHundredApplicationJsonSchema; - $this->twoHundredApplicationXYamlSchema = $twoHundredApplicationXYamlSchema; - $this->error = $error; + $this->twoXXApplicationJsonSchema = $twoXXApplicationJsonSchema; + $this->twoXXApplicationXYamlSchema = $twoXXApplicationXYamlSchema; } } \ No newline at end of file diff --git a/src/Models/Operations/FindApiEndpointResponse.php b/src/Models/Operations/FindApiEndpointResponse.php index dc3edbb..ef4ca3f 100644 --- a/src/Models/Operations/FindApiEndpointResponse.php +++ b/src/Models/Operations/FindApiEndpointResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class FindApiEndpointResponse { @@ -26,13 +25,6 @@ class FindApiEndpointResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class FindApiEndpointResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Shared\ApiEndpoint $apiEndpoint - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiEndpoint $apiEndpoint = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiEndpoint $apiEndpoint = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apiEndpoint = $apiEndpoint; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.php b/src/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.php index 07b90aa..93a33e4 100644 --- a/src/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.php +++ b/src/Models/Operations/GenerateOpenApiSpecForApiEndpointResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GenerateOpenApiSpecForApiEndpointResponse { @@ -19,13 +18,6 @@ class GenerateOpenApiSpecForApiEndpointResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GenerateOpenApiSpecForApiEndpointResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GenerateOpenApiSpecDiff $generateOpenApiSpecDiff */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GenerateOpenApiSpecDiff $generateOpenApiSpecDiff = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GenerateOpenApiSpecDiff $generateOpenApiSpecDiff = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->generateOpenApiSpecDiff = $generateOpenApiSpecDiff; } } \ No newline at end of file diff --git a/src/Models/Operations/GenerateOpenApiSpecResponse.php b/src/Models/Operations/GenerateOpenApiSpecResponse.php index e29a4b4..1a07093 100644 --- a/src/Models/Operations/GenerateOpenApiSpecResponse.php +++ b/src/Models/Operations/GenerateOpenApiSpecResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GenerateOpenApiSpecResponse { @@ -19,13 +18,6 @@ class GenerateOpenApiSpecResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GenerateOpenApiSpecResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GenerateOpenApiSpecDiff $generateOpenApiSpecDiff */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GenerateOpenApiSpecDiff $generateOpenApiSpecDiff = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GenerateOpenApiSpecDiff $generateOpenApiSpecDiff = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->generateOpenApiSpecDiff = $generateOpenApiSpecDiff; } } \ No newline at end of file diff --git a/src/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.php b/src/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.php index 8f2f583..9eb80a2 100644 --- a/src/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.php +++ b/src/Models/Operations/GeneratePostmanCollectionForApiEndpointResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class GeneratePostmanCollectionForApiEndpointResponse { /** @@ -18,13 +18,6 @@ class GeneratePostmanCollectionForApiEndpointResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -50,15 +43,13 @@ class GeneratePostmanCollectionForApiEndpointResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?string $postmanCollection */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?string $postmanCollection = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $postmanCollection = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->postmanCollection = $postmanCollection; } } \ No newline at end of file diff --git a/src/Models/Operations/GeneratePostmanCollectionResponse.php b/src/Models/Operations/GeneratePostmanCollectionResponse.php index 7ccd4aa..b354f4c 100644 --- a/src/Models/Operations/GeneratePostmanCollectionResponse.php +++ b/src/Models/Operations/GeneratePostmanCollectionResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class GeneratePostmanCollectionResponse { /** @@ -18,13 +18,6 @@ class GeneratePostmanCollectionResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -50,15 +43,13 @@ class GeneratePostmanCollectionResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?string $postmanCollection */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?string $postmanCollection = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $postmanCollection = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->postmanCollection = $postmanCollection; } } \ No newline at end of file diff --git a/src/Models/Operations/GenerateRequestPostmanCollectionResponse.php b/src/Models/Operations/GenerateRequestPostmanCollectionResponse.php index 1ca50a3..2258d6f 100644 --- a/src/Models/Operations/GenerateRequestPostmanCollectionResponse.php +++ b/src/Models/Operations/GenerateRequestPostmanCollectionResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class GenerateRequestPostmanCollectionResponse { /** @@ -18,13 +18,6 @@ class GenerateRequestPostmanCollectionResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -50,15 +43,13 @@ class GenerateRequestPostmanCollectionResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?string $postmanCollection */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?string $postmanCollection = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $postmanCollection = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->postmanCollection = $postmanCollection; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAccessTokenResponse.php b/src/Models/Operations/GetAccessTokenResponse.php index 7d7132b..17e9eaa 100644 --- a/src/Models/Operations/GetAccessTokenResponse.php +++ b/src/Models/Operations/GetAccessTokenResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetAccessTokenResponse { @@ -26,13 +25,6 @@ class GetAccessTokenResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetAccessTokenResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Shared\AccessToken $accessToken - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\AccessToken $accessToken = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\AccessToken $accessToken = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->accessToken = $accessToken; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAllApiEndpointsResponse.php b/src/Models/Operations/GetAllApiEndpointsResponse.php index 9b0b343..cf20775 100644 --- a/src/Models/Operations/GetAllApiEndpointsResponse.php +++ b/src/Models/Operations/GetAllApiEndpointsResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetAllApiEndpointsResponse { @@ -26,13 +25,6 @@ class GetAllApiEndpointsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetAllApiEndpointsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $apiEndpoints - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apiEndpoints = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apiEndpoints = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apiEndpoints = $apiEndpoints; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAllApiVersionsResponse.php b/src/Models/Operations/GetAllApiVersionsResponse.php index 6987bea..84c0186 100644 --- a/src/Models/Operations/GetAllApiVersionsResponse.php +++ b/src/Models/Operations/GetAllApiVersionsResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetAllApiVersionsResponse { @@ -26,13 +25,6 @@ class GetAllApiVersionsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetAllApiVersionsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $apis - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apis = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apis = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apis = $apis; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAllForVersionApiEndpointsResponse.php b/src/Models/Operations/GetAllForVersionApiEndpointsResponse.php index b496493..558dcb9 100644 --- a/src/Models/Operations/GetAllForVersionApiEndpointsResponse.php +++ b/src/Models/Operations/GetAllForVersionApiEndpointsResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetAllForVersionApiEndpointsResponse { @@ -26,13 +25,6 @@ class GetAllForVersionApiEndpointsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetAllForVersionApiEndpointsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $apiEndpoints - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apiEndpoints = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apiEndpoints = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apiEndpoints = $apiEndpoints; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetApiEndpointResponse.php b/src/Models/Operations/GetApiEndpointResponse.php index dc2d84f..0a3483f 100644 --- a/src/Models/Operations/GetApiEndpointResponse.php +++ b/src/Models/Operations/GetApiEndpointResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetApiEndpointResponse { @@ -26,13 +25,6 @@ class GetApiEndpointResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetApiEndpointResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Shared\ApiEndpoint $apiEndpoint - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiEndpoint $apiEndpoint = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiEndpoint $apiEndpoint = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apiEndpoint = $apiEndpoint; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetApisResponse.php b/src/Models/Operations/GetApisResponse.php index e62ce66..ba0e263 100644 --- a/src/Models/Operations/GetApisResponse.php +++ b/src/Models/Operations/GetApisResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetApisResponse { @@ -26,13 +25,6 @@ class GetApisResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetApisResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $apis - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apis = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $apis = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apis = $apis; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetBlobResponse.php b/src/Models/Operations/GetBlobResponse.php index df7dab6..3d3d5d3 100644 --- a/src/Models/Operations/GetBlobResponse.php +++ b/src/Models/Operations/GetBlobResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class GetBlobResponse { /** @@ -25,13 +25,6 @@ class GetBlobResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,14 +44,12 @@ class GetBlobResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?string $blob - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $blob = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $blob = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->blob = $blob; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetEmbedAccessTokenResponse.php b/src/Models/Operations/GetEmbedAccessTokenResponse.php index df3893c..5433a5b 100644 --- a/src/Models/Operations/GetEmbedAccessTokenResponse.php +++ b/src/Models/Operations/GetEmbedAccessTokenResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetEmbedAccessTokenResponse { @@ -26,13 +25,6 @@ class GetEmbedAccessTokenResponse */ public ?Shared\EmbedAccessTokenResponse $embedAccessTokenResponse = null; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetEmbedAccessTokenResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Shared\EmbedAccessTokenResponse $embedAccessTokenResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\EmbedAccessTokenResponse $embedAccessTokenResponse = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\EmbedAccessTokenResponse $embedAccessTokenResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->embedAccessTokenResponse = $embedAccessTokenResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetActionRequest.php b/src/Models/Operations/GetGitHubActionRequest.php similarity index 97% rename from src/Models/Operations/GetActionRequest.php rename to src/Models/Operations/GetGitHubActionRequest.php index 858afdc..ef58ea7 100644 --- a/src/Models/Operations/GetActionRequest.php +++ b/src/Models/Operations/GetGitHubActionRequest.php @@ -9,7 +9,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Utils\SpeakeasyMetadata; -class GetActionRequest +class GetGitHubActionRequest { /** * diff --git a/src/Models/Operations/GetActionResponse.php b/src/Models/Operations/GetGitHubActionResponse.php similarity index 76% rename from src/Models/Operations/GetActionResponse.php rename to src/Models/Operations/GetGitHubActionResponse.php index e5444ca..ceb7944 100644 --- a/src/Models/Operations/GetActionResponse.php +++ b/src/Models/Operations/GetGitHubActionResponse.php @@ -8,9 +8,8 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; -class GetActionResponse +class GetGitHubActionResponse { /** * HTTP response content type for this operation @@ -19,13 +18,6 @@ class GetActionResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetActionResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GithubGetActionResponse $githubGetActionResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GithubGetActionResponse $githubGetActionResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GithubGetActionResponse $githubGetActionResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->githubGetActionResponse = $githubGetActionResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetManifestResponse.php b/src/Models/Operations/GetManifestResponse.php index ced4a23..8e6cba9 100644 --- a/src/Models/Operations/GetManifestResponse.php +++ b/src/Models/Operations/GetManifestResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetManifestResponse { @@ -19,13 +18,6 @@ class GetManifestResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetManifestResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\Manifest $manifest */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\Manifest $manifest = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Manifest $manifest = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->manifest = $manifest; } } \ No newline at end of file diff --git a/src/Models/Operations/GetNamespacesResponse.php b/src/Models/Operations/GetNamespacesResponse.php index ce88ea5..d7f3597 100644 --- a/src/Models/Operations/GetNamespacesResponse.php +++ b/src/Models/Operations/GetNamespacesResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetNamespacesResponse { @@ -19,13 +18,6 @@ class GetNamespacesResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetNamespacesResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GetNamespacesResponse $getNamespacesResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GetNamespacesResponse $getNamespacesResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GetNamespacesResponse $getNamespacesResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->getNamespacesResponse = $getNamespacesResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOrganizationResponse.php b/src/Models/Operations/GetOrganizationResponse.php index 07388dc..4aac525 100644 --- a/src/Models/Operations/GetOrganizationResponse.php +++ b/src/Models/Operations/GetOrganizationResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetOrganizationResponse { @@ -19,13 +18,6 @@ class GetOrganizationResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetOrganizationResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\Organization $organization */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\Organization $organization = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Organization $organization = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->organization = $organization; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOrganizationUsageResponse.php b/src/Models/Operations/GetOrganizationUsageResponse.php index a711da8..8d4bb66 100644 --- a/src/Models/Operations/GetOrganizationUsageResponse.php +++ b/src/Models/Operations/GetOrganizationUsageResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetOrganizationUsageResponse { @@ -19,13 +18,6 @@ class GetOrganizationUsageResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetOrganizationUsageResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\OrganizationUsageResponse $organizationUsageResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\OrganizationUsageResponse $organizationUsageResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\OrganizationUsageResponse $organizationUsageResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->organizationUsageResponse = $organizationUsageResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOrganizationsResponse.php b/src/Models/Operations/GetOrganizationsResponse.php index 17577c6..a5ff93e 100644 --- a/src/Models/Operations/GetOrganizationsResponse.php +++ b/src/Models/Operations/GetOrganizationsResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetOrganizationsResponse { @@ -19,13 +18,6 @@ class GetOrganizationsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetOrganizationsResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?array $organizations */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?array $organizations = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $organizations = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->organizations = $organizations; } } \ No newline at end of file diff --git a/src/Models/Operations/GetRequestFromEventLogResponse.php b/src/Models/Operations/GetRequestFromEventLogResponse.php index 978ac18..425fb5d 100644 --- a/src/Models/Operations/GetRequestFromEventLogResponse.php +++ b/src/Models/Operations/GetRequestFromEventLogResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetRequestFromEventLogResponse { @@ -19,13 +18,6 @@ class GetRequestFromEventLogResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,15 +43,13 @@ class GetRequestFromEventLogResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\UnboundedRequest $unboundedRequest */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\UnboundedRequest $unboundedRequest = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\UnboundedRequest $unboundedRequest = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->unboundedRequest = $unboundedRequest; } } \ No newline at end of file diff --git a/src/Models/Operations/GetRevisionsResponse.php b/src/Models/Operations/GetRevisionsResponse.php index 302948e..9893a01 100644 --- a/src/Models/Operations/GetRevisionsResponse.php +++ b/src/Models/Operations/GetRevisionsResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetRevisionsResponse { @@ -19,13 +18,6 @@ class GetRevisionsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetRevisionsResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GetRevisionsResponse $getRevisionsResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GetRevisionsResponse $getRevisionsResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GetRevisionsResponse $getRevisionsResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->getRevisionsResponse = $getRevisionsResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSchemaDiffResponse.php b/src/Models/Operations/GetSchemaDiffResponse.php index 35bc9f4..1960104 100644 --- a/src/Models/Operations/GetSchemaDiffResponse.php +++ b/src/Models/Operations/GetSchemaDiffResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetSchemaDiffResponse { @@ -19,13 +18,6 @@ class GetSchemaDiffResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetSchemaDiffResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\SchemaDiff $schemaDiff */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\SchemaDiff $schemaDiff = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\SchemaDiff $schemaDiff = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->schemaDiff = $schemaDiff; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSchemaResponse.php b/src/Models/Operations/GetSchemaResponse.php index f7cefa5..546b602 100644 --- a/src/Models/Operations/GetSchemaResponse.php +++ b/src/Models/Operations/GetSchemaResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetSchemaResponse { @@ -19,13 +18,6 @@ class GetSchemaResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetSchemaResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\Schema $schema */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\Schema $schema = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Schema $schema = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->schema = $schema; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSchemaRevisionResponse.php b/src/Models/Operations/GetSchemaRevisionResponse.php index 8d30dd3..d3118ef 100644 --- a/src/Models/Operations/GetSchemaRevisionResponse.php +++ b/src/Models/Operations/GetSchemaRevisionResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetSchemaRevisionResponse { @@ -19,13 +18,6 @@ class GetSchemaRevisionResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetSchemaRevisionResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\Schema $schema */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\Schema $schema = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Schema $schema = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->schema = $schema; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSchemasResponse.php b/src/Models/Operations/GetSchemasResponse.php index e31f242..96ac872 100644 --- a/src/Models/Operations/GetSchemasResponse.php +++ b/src/Models/Operations/GetSchemasResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetSchemasResponse { @@ -19,13 +18,6 @@ class GetSchemasResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,15 +43,13 @@ class GetSchemasResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?array $classes */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?array $classes = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $classes = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->classes = $classes; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTagsResponse.php b/src/Models/Operations/GetTagsResponse.php index 195ca98..2439dda 100644 --- a/src/Models/Operations/GetTagsResponse.php +++ b/src/Models/Operations/GetTagsResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetTagsResponse { @@ -19,13 +18,6 @@ class GetTagsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GetTagsResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GetTagsResponse $getTagsResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GetTagsResponse $getTagsResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GetTagsResponse $getTagsResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->getTagsResponse = $getTagsResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetUserResponse.php b/src/Models/Operations/GetUserResponse.php index 87c96e0..2d76bf7 100644 --- a/src/Models/Operations/GetUserResponse.php +++ b/src/Models/Operations/GetUserResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetUserResponse { @@ -19,13 +18,6 @@ class GetUserResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,15 +43,13 @@ class GetUserResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\User $user */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->user = $user; } } \ No newline at end of file diff --git a/src/Models/Operations/GetValidEmbedAccessTokensResponse.php b/src/Models/Operations/GetValidEmbedAccessTokensResponse.php index 2d650be..fbf6776 100644 --- a/src/Models/Operations/GetValidEmbedAccessTokensResponse.php +++ b/src/Models/Operations/GetValidEmbedAccessTokensResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetValidEmbedAccessTokensResponse { @@ -26,13 +25,6 @@ class GetValidEmbedAccessTokensResponse */ public ?array $embedTokens = null; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class GetValidEmbedAccessTokensResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $embedTokens - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $embedTokens = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $embedTokens = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->embedTokens = $embedTokens; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GetVersionMetadataResponse.php b/src/Models/Operations/GetVersionMetadataResponse.php index d41c39a..75a7a75 100644 --- a/src/Models/Operations/GetVersionMetadataResponse.php +++ b/src/Models/Operations/GetVersionMetadataResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetVersionMetadataResponse { @@ -19,13 +18,6 @@ class GetVersionMetadataResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,15 +43,13 @@ class GetVersionMetadataResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?array $versionMetadata */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?array $versionMetadata = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $versionMetadata = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->versionMetadata = $versionMetadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceByContextResponse.php b/src/Models/Operations/GetWorkspaceByContextResponse.php index 2eccb91..65307c4 100644 --- a/src/Models/Operations/GetWorkspaceByContextResponse.php +++ b/src/Models/Operations/GetWorkspaceByContextResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetWorkspaceByContextResponse { @@ -19,13 +18,6 @@ class GetWorkspaceByContextResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,15 +43,13 @@ class GetWorkspaceByContextResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\WorkspaceAndOrganization $workspaceAndOrganization */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\WorkspaceAndOrganization $workspaceAndOrganization = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\WorkspaceAndOrganization $workspaceAndOrganization = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->workspaceAndOrganization = $workspaceAndOrganization; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php b/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php index 69cd131..52c9134 100644 --- a/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php +++ b/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php @@ -22,28 +22,28 @@ class GetWorkspaceEventsByTargetRequest /** * Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target) * - * @var string $targetID + * @var string $targetId */ - #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=targetID')] - public string $targetID; + #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=target_id')] + public string $targetId; /** * Unique identifier of the workspace. * - * @var ?string $workspaceID + * @var string $workspaceId */ - #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspaceID')] - public ?string $workspaceID = null; + #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] + public string $workspaceId; /** - * @param string $targetID + * @param string $targetId + * @param string $workspaceId * @param ?\DateTime $afterCreatedAt - * @param ?string $workspaceID */ - public function __construct(string $targetID, ?\DateTime $afterCreatedAt = null, ?string $workspaceID = null) + public function __construct(string $targetId, string $workspaceId, ?\DateTime $afterCreatedAt = null) { - $this->targetID = $targetID; + $this->targetId = $targetId; + $this->workspaceId = $workspaceId; $this->afterCreatedAt = $afterCreatedAt; - $this->workspaceID = $workspaceID; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php b/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php index 939027a..bd714ec 100644 --- a/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php +++ b/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php @@ -14,16 +14,16 @@ class GetWorkspaceFeatureFlagsRequest /** * Unique identifier of the workspace. * - * @var ?string $workspaceID + * @var string $workspaceId */ - #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspaceID')] - public ?string $workspaceID = null; + #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] + public string $workspaceId; /** - * @param ?string $workspaceID + * @param string $workspaceId */ - public function __construct(?string $workspaceID = null) + public function __construct(string $workspaceId) { - $this->workspaceID = $workspaceID; + $this->workspaceId = $workspaceId; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceRequest.php b/src/Models/Operations/GetWorkspaceRequest.php index e359a10..1a65d54 100644 --- a/src/Models/Operations/GetWorkspaceRequest.php +++ b/src/Models/Operations/GetWorkspaceRequest.php @@ -14,16 +14,16 @@ class GetWorkspaceRequest /** * Unique identifier of the workspace. * - * @var ?string $workspaceID + * @var string $workspaceId */ - #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspaceID')] - public ?string $workspaceID = null; + #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] + public string $workspaceId; /** - * @param ?string $workspaceID + * @param string $workspaceId */ - public function __construct(?string $workspaceID = null) + public function __construct(string $workspaceId) { - $this->workspaceID = $workspaceID; + $this->workspaceId = $workspaceId; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceResponse.php b/src/Models/Operations/GetWorkspaceResponse.php index bb93d78..f0f18b3 100644 --- a/src/Models/Operations/GetWorkspaceResponse.php +++ b/src/Models/Operations/GetWorkspaceResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GetWorkspaceResponse { @@ -19,13 +18,6 @@ class GetWorkspaceResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,15 +43,13 @@ class GetWorkspaceResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\Workspace $workspace */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\Workspace $workspace = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Workspace $workspace = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->workspace = $workspace; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceSettingsRequest.php b/src/Models/Operations/GetWorkspaceSettingsRequest.php new file mode 100644 index 0000000..b4da25e --- /dev/null +++ b/src/Models/Operations/GetWorkspaceSettingsRequest.php @@ -0,0 +1,29 @@ +workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceSettingsResponse.php b/src/Models/Operations/GetWorkspaceSettingsResponse.php new file mode 100644 index 0000000..5c965b3 --- /dev/null +++ b/src/Models/Operations/GetWorkspaceSettingsResponse.php @@ -0,0 +1,55 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->workspaceSettings = $workspaceSettings; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php b/src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php new file mode 100644 index 0000000..b7083e9 --- /dev/null +++ b/src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php @@ -0,0 +1,39 @@ +workspaceId = $workspaceId; + $this->afterLastEventCreatedAt = $afterLastEventCreatedAt; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.php b/src/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.php new file mode 100644 index 0000000..e15d498 --- /dev/null +++ b/src/Models/Operations/GetWorkspaceTargetsDeprecatedResponse.php @@ -0,0 +1,55 @@ + $targetSDKList + */ + public ?array $targetSDKList = null; + + /** + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse + * @param ?array $targetSDKList + */ + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $targetSDKList = null) + { + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->targetSDKList = $targetSDKList; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceTargetsRequest.php b/src/Models/Operations/GetWorkspaceTargetsRequest.php index a1f6990..291607b 100644 --- a/src/Models/Operations/GetWorkspaceTargetsRequest.php +++ b/src/Models/Operations/GetWorkspaceTargetsRequest.php @@ -19,21 +19,11 @@ class GetWorkspaceTargetsRequest #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=after_last_event_created_at,dateTimeFormat=Y-m-d\TH:i:s.up')] public ?\DateTime $afterLastEventCreatedAt = null; - /** - * Unique identifier of the workspace. - * - * @var ?string $workspaceID - */ - #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspaceID')] - public ?string $workspaceID = null; - /** * @param ?\DateTime $afterLastEventCreatedAt - * @param ?string $workspaceID */ - public function __construct(?\DateTime $afterLastEventCreatedAt = null, ?string $workspaceID = null) + public function __construct(?\DateTime $afterLastEventCreatedAt = null) { $this->afterLastEventCreatedAt = $afterLastEventCreatedAt; - $this->workspaceID = $workspaceID; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceTeamRequest.php b/src/Models/Operations/GetWorkspaceTeamRequest.php new file mode 100644 index 0000000..348d4e7 --- /dev/null +++ b/src/Models/Operations/GetWorkspaceTeamRequest.php @@ -0,0 +1,29 @@ +workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceTeamResponse.php b/src/Models/Operations/GetWorkspaceTeamResponse.php new file mode 100644 index 0000000..81ecaf1 --- /dev/null +++ b/src/Models/Operations/GetWorkspaceTeamResponse.php @@ -0,0 +1,55 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->workspaceTeamResponse = $workspaceTeamResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceTokensRequest.php b/src/Models/Operations/GetWorkspaceTokensRequest.php new file mode 100644 index 0000000..617ee52 --- /dev/null +++ b/src/Models/Operations/GetWorkspaceTokensRequest.php @@ -0,0 +1,29 @@ +workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/ConfigureTargetResponse.php b/src/Models/Operations/GetWorkspaceTokensResponse.php similarity index 74% rename from src/Models/Operations/ConfigureTargetResponse.php rename to src/Models/Operations/GetWorkspaceTokensResponse.php index eb5d7ae..3592ca9 100644 --- a/src/Models/Operations/ConfigureTargetResponse.php +++ b/src/Models/Operations/GetWorkspaceTokensResponse.php @@ -8,8 +8,8 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; -class ConfigureTargetResponse +use Speakeasy\SpeakeasyClientSDK\Models\Shared; +class GetWorkspaceTokensResponse { /** * HTTP response content type for this operation @@ -18,13 +18,6 @@ class ConfigureTargetResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -39,17 +32,24 @@ class ConfigureTargetResponse */ public \Psr\Http\Message\ResponseInterface $rawResponse; + /** + * OK + * + * @var ?array $classes + */ + public ?array $classes = null; + /** * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error + * @param ?array $classes */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $classes = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; + $this->classes = $classes; } } \ No newline at end of file diff --git a/src/Models/Operations/CheckAccessResponse.php b/src/Models/Operations/GetWorkspacesResponse.php similarity index 74% rename from src/Models/Operations/CheckAccessResponse.php rename to src/Models/Operations/GetWorkspacesResponse.php index c67f321..c7b9320 100644 --- a/src/Models/Operations/CheckAccessResponse.php +++ b/src/Models/Operations/GetWorkspacesResponse.php @@ -8,8 +8,8 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; -class CheckAccessResponse +use Speakeasy\SpeakeasyClientSDK\Models\Shared; +class GetWorkspacesResponse { /** * HTTP response content type for this operation @@ -18,13 +18,6 @@ class CheckAccessResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -39,17 +32,24 @@ class CheckAccessResponse */ public \Psr\Http\Message\ResponseInterface $rawResponse; + /** + * OK + * + * @var ?array $workspaces + */ + public ?array $workspaces = null; + /** * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error + * @param ?array $workspaces */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $workspaces = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; + $this->workspaces = $workspaces; } } \ No newline at end of file diff --git a/src/Models/Operations/FetchPublishingPRsRequest.php b/src/Models/Operations/GithubCheckPublishingPRsRequest.php similarity index 96% rename from src/Models/Operations/FetchPublishingPRsRequest.php rename to src/Models/Operations/GithubCheckPublishingPRsRequest.php index 49e9e11..c63ab2b 100644 --- a/src/Models/Operations/FetchPublishingPRsRequest.php +++ b/src/Models/Operations/GithubCheckPublishingPRsRequest.php @@ -9,7 +9,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; use Speakeasy\SpeakeasyClientSDK\Utils\SpeakeasyMetadata; -class FetchPublishingPRsRequest +class GithubCheckPublishingPRsRequest { /** * diff --git a/src/Models/Operations/FetchPublishingPRsResponse.php b/src/Models/Operations/GithubCheckPublishingPRsResponse.php similarity index 75% rename from src/Models/Operations/FetchPublishingPRsResponse.php rename to src/Models/Operations/GithubCheckPublishingPRsResponse.php index 18ead68..1183d80 100644 --- a/src/Models/Operations/FetchPublishingPRsResponse.php +++ b/src/Models/Operations/GithubCheckPublishingPRsResponse.php @@ -8,9 +8,8 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; -class FetchPublishingPRsResponse +class GithubCheckPublishingPRsResponse { /** * HTTP response content type for this operation @@ -19,13 +18,6 @@ class FetchPublishingPRsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class FetchPublishingPRsResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GithubPublishingPRResponse $githubPublishingPRResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GithubPublishingPRResponse $githubPublishingPRResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GithubPublishingPRResponse $githubPublishingPRResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->githubPublishingPRResponse = $githubPublishingPRResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GithubCheckPublishingSecretsResponse.php b/src/Models/Operations/GithubCheckPublishingSecretsResponse.php index 7958739..516a322 100644 --- a/src/Models/Operations/GithubCheckPublishingSecretsResponse.php +++ b/src/Models/Operations/GithubCheckPublishingSecretsResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class GithubCheckPublishingSecretsResponse { @@ -19,13 +18,6 @@ class GithubCheckPublishingSecretsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class GithubCheckPublishingSecretsResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GithubMissingPublishingSecretsResponse $githubMissingPublishingSecretsResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GithubMissingPublishingSecretsResponse $githubMissingPublishingSecretsResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GithubMissingPublishingSecretsResponse $githubMissingPublishingSecretsResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->githubMissingPublishingSecretsResponse = $githubMissingPublishingSecretsResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/ConfigureCodeSamplesResponse.php b/src/Models/Operations/GithubConfigureCodeSamplesResponse.php similarity index 76% rename from src/Models/Operations/ConfigureCodeSamplesResponse.php rename to src/Models/Operations/GithubConfigureCodeSamplesResponse.php index ec31ea8..ad84a91 100644 --- a/src/Models/Operations/ConfigureCodeSamplesResponse.php +++ b/src/Models/Operations/GithubConfigureCodeSamplesResponse.php @@ -8,9 +8,8 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; -class ConfigureCodeSamplesResponse +class GithubConfigureCodeSamplesResponse { /** * HTTP response content type for this operation @@ -19,13 +18,6 @@ class ConfigureCodeSamplesResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class ConfigureCodeSamplesResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\GithubConfigureCodeSamplesResponse $githubConfigureCodeSamplesResponse */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\GithubConfigureCodeSamplesResponse $githubConfigureCodeSamplesResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\GithubConfigureCodeSamplesResponse $githubConfigureCodeSamplesResponse = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->githubConfigureCodeSamplesResponse = $githubConfigureCodeSamplesResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GithubConfigureMintlifyRepoResponse.php b/src/Models/Operations/GithubConfigureMintlifyRepoResponse.php new file mode 100644 index 0000000..57aa2cb --- /dev/null +++ b/src/Models/Operations/GithubConfigureMintlifyRepoResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GithubConfigureTargetResponse.php b/src/Models/Operations/GithubConfigureTargetResponse.php new file mode 100644 index 0000000..027d436 --- /dev/null +++ b/src/Models/Operations/GithubConfigureTargetResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GithubStorePublishingSecretsResponse.php b/src/Models/Operations/GithubStorePublishingSecretsResponse.php index ca8c1b5..b1a313c 100644 --- a/src/Models/Operations/GithubStorePublishingSecretsResponse.php +++ b/src/Models/Operations/GithubStorePublishingSecretsResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class GithubStorePublishingSecretsResponse { /** @@ -18,13 +18,6 @@ class GithubStorePublishingSecretsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class GithubStorePublishingSecretsResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/GithubTriggerActionResponse.php b/src/Models/Operations/GithubTriggerActionResponse.php new file mode 100644 index 0000000..0974d6c --- /dev/null +++ b/src/Models/Operations/GithubTriggerActionResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GrantUserAccessToWorkspaceRequest.php b/src/Models/Operations/GrantUserAccessToWorkspaceRequest.php new file mode 100644 index 0000000..32335dc --- /dev/null +++ b/src/Models/Operations/GrantUserAccessToWorkspaceRequest.php @@ -0,0 +1,39 @@ +email = $email; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/GrantUserAccessToWorkspaceResponse.php b/src/Models/Operations/GrantUserAccessToWorkspaceResponse.php new file mode 100644 index 0000000..75d833f --- /dev/null +++ b/src/Models/Operations/GrantUserAccessToWorkspaceResponse.php @@ -0,0 +1,55 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->workspaceInviteResponse = $workspaceInviteResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/InsertVersionMetadataResponse.php b/src/Models/Operations/InsertVersionMetadataResponse.php index 20eb69e..1762a1a 100644 --- a/src/Models/Operations/InsertVersionMetadataResponse.php +++ b/src/Models/Operations/InsertVersionMetadataResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class InsertVersionMetadataResponse { @@ -19,13 +18,6 @@ class InsertVersionMetadataResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -51,15 +43,13 @@ class InsertVersionMetadataResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\VersionMetadata $versionMetadata */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\VersionMetadata $versionMetadata = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\VersionMetadata $versionMetadata = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->versionMetadata = $versionMetadata; } } \ No newline at end of file diff --git a/src/Models/Operations/PostTagsResponse.php b/src/Models/Operations/PostTagsResponse.php index 2147e27..5741859 100644 --- a/src/Models/Operations/PostTagsResponse.php +++ b/src/Models/Operations/PostTagsResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class PostTagsResponse { /** @@ -18,13 +18,6 @@ class PostTagsResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class PostTagsResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/PostWorkspaceEventsRequest.php b/src/Models/Operations/PostWorkspaceEventsRequest.php index bf09444..bf3d195 100644 --- a/src/Models/Operations/PostWorkspaceEventsRequest.php +++ b/src/Models/Operations/PostWorkspaceEventsRequest.php @@ -23,18 +23,18 @@ class PostWorkspaceEventsRequest /** * Unique identifier of the workspace. * - * @var ?string $workspaceID + * @var string $workspaceId */ - #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspaceID')] - public ?string $workspaceID = null; + #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] + public string $workspaceId; /** * @param array $requestBody - * @param ?string $workspaceID + * @param string $workspaceId */ - public function __construct(array $requestBody, ?string $workspaceID = null) + public function __construct(array $requestBody, string $workspaceId) { $this->requestBody = $requestBody; - $this->workspaceID = $workspaceID; + $this->workspaceId = $workspaceId; } } \ No newline at end of file diff --git a/src/Models/Operations/PreflightResponse.php b/src/Models/Operations/PreflightResponse.php index 63af2e8..741f02e 100644 --- a/src/Models/Operations/PreflightResponse.php +++ b/src/Models/Operations/PreflightResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class PreflightResponse { @@ -19,13 +18,6 @@ class PreflightResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * OK * @@ -51,15 +43,13 @@ class PreflightResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error * @param ?Shared\PreflightToken $preflightToken */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null, ?Shared\PreflightToken $preflightToken = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\PreflightToken $preflightToken = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; $this->preflightToken = $preflightToken; } } \ No newline at end of file diff --git a/src/Models/Operations/QueryEventLogResponse.php b/src/Models/Operations/QueryEventLogResponse.php index 85c4390..c996768 100644 --- a/src/Models/Operations/QueryEventLogResponse.php +++ b/src/Models/Operations/QueryEventLogResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class QueryEventLogResponse { @@ -26,13 +25,6 @@ class QueryEventLogResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class QueryEventLogResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $boundedRequests - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $boundedRequests = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $boundedRequests = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->boundedRequests = $boundedRequests; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/RegisterSchemaResponse.php b/src/Models/Operations/RegisterSchemaResponse.php index 44163f2..c434cd0 100644 --- a/src/Models/Operations/RegisterSchemaResponse.php +++ b/src/Models/Operations/RegisterSchemaResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class RegisterSchemaResponse { /** @@ -18,13 +18,6 @@ class RegisterSchemaResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class RegisterSchemaResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/RevokeEmbedAccessTokenResponse.php b/src/Models/Operations/RevokeEmbedAccessTokenResponse.php index dd65717..6120e7a 100644 --- a/src/Models/Operations/RevokeEmbedAccessTokenResponse.php +++ b/src/Models/Operations/RevokeEmbedAccessTokenResponse.php @@ -8,7 +8,7 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; + class RevokeEmbedAccessTokenResponse { /** @@ -18,13 +18,6 @@ class RevokeEmbedAccessTokenResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -43,13 +36,11 @@ class RevokeEmbedAccessTokenResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php b/src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php new file mode 100644 index 0000000..84ac7ad --- /dev/null +++ b/src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php @@ -0,0 +1,39 @@ +userId = $userId; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/RevokeUserAccessToWorkspaceResponse.php b/src/Models/Operations/RevokeUserAccessToWorkspaceResponse.php new file mode 100644 index 0000000..6575393 --- /dev/null +++ b/src/Models/Operations/RevokeUserAccessToWorkspaceResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/SearchWorkspaceEventsRequest.php b/src/Models/Operations/SearchWorkspaceEventsRequest.php index cf6efff..aa08fbd 100644 --- a/src/Models/Operations/SearchWorkspaceEventsRequest.php +++ b/src/Models/Operations/SearchWorkspaceEventsRequest.php @@ -55,26 +55,26 @@ class SearchWorkspaceEventsRequest /** * Unique identifier of the workspace. * - * @var ?string $workspaceID + * @var string $workspaceId */ - #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspaceID')] - public ?string $workspaceID = null; + #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] + public string $workspaceId; /** + * @param string $workspaceId * @param ?string $generateGenLockId * @param ?Shared\InteractionType $interactionType * @param ?string $lintReportDigest * @param ?string $openapiDiffReportDigest * @param ?string $sourceRevisionDigest - * @param ?string $workspaceID */ - public function __construct(?string $generateGenLockId = null, ?Shared\InteractionType $interactionType = null, ?string $lintReportDigest = null, ?string $openapiDiffReportDigest = null, ?string $sourceRevisionDigest = null, ?string $workspaceID = null) + public function __construct(string $workspaceId, ?string $generateGenLockId = null, ?Shared\InteractionType $interactionType = null, ?string $lintReportDigest = null, ?string $openapiDiffReportDigest = null, ?string $sourceRevisionDigest = null) { + $this->workspaceId = $workspaceId; $this->generateGenLockId = $generateGenLockId; $this->interactionType = $interactionType; $this->lintReportDigest = $lintReportDigest; $this->openapiDiffReportDigest = $openapiDiffReportDigest; $this->sourceRevisionDigest = $sourceRevisionDigest; - $this->workspaceID = $workspaceID; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateWorkspaceDetailsRequest.php b/src/Models/Operations/UpdateWorkspaceDetailsRequest.php new file mode 100644 index 0000000..63a752d --- /dev/null +++ b/src/Models/Operations/UpdateWorkspaceDetailsRequest.php @@ -0,0 +1,40 @@ +workspace = $workspace; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/UpdateWorkspaceDetailsResponse.php b/src/Models/Operations/UpdateWorkspaceDetailsResponse.php new file mode 100644 index 0000000..8e9f4a7 --- /dev/null +++ b/src/Models/Operations/UpdateWorkspaceDetailsResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/UpdateWorkspaceSettingsRequest.php b/src/Models/Operations/UpdateWorkspaceSettingsRequest.php new file mode 100644 index 0000000..b0dcfcf --- /dev/null +++ b/src/Models/Operations/UpdateWorkspaceSettingsRequest.php @@ -0,0 +1,40 @@ +workspaceSettings = $workspaceSettings; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Operations/UpdateWorkspaceSettingsResponse.php b/src/Models/Operations/UpdateWorkspaceSettingsResponse.php new file mode 100644 index 0000000..c9744ec --- /dev/null +++ b/src/Models/Operations/UpdateWorkspaceSettingsResponse.php @@ -0,0 +1,46 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/UpsertApiEndpointResponse.php b/src/Models/Operations/UpsertApiEndpointResponse.php index f1f28c4..06bbaab 100644 --- a/src/Models/Operations/UpsertApiEndpointResponse.php +++ b/src/Models/Operations/UpsertApiEndpointResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class UpsertApiEndpointResponse { @@ -26,13 +25,6 @@ class UpsertApiEndpointResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class UpsertApiEndpointResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Shared\ApiEndpoint $apiEndpoint - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiEndpoint $apiEndpoint = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiEndpoint $apiEndpoint = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apiEndpoint = $apiEndpoint; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/UpsertApiResponse.php b/src/Models/Operations/UpsertApiResponse.php index e67acd4..5ba6d13 100644 --- a/src/Models/Operations/UpsertApiResponse.php +++ b/src/Models/Operations/UpsertApiResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class UpsertApiResponse { @@ -26,13 +25,6 @@ class UpsertApiResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class UpsertApiResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Shared\Api $api - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Api $api = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\Api $api = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->api = $api; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Operations/ValidateApiKeyResponse.php b/src/Models/Operations/ValidateApiKeyResponse.php index 06224d8..07abd39 100644 --- a/src/Models/Operations/ValidateApiKeyResponse.php +++ b/src/Models/Operations/ValidateApiKeyResponse.php @@ -8,7 +8,6 @@ namespace Speakeasy\SpeakeasyClientSDK\Models\Operations; -use Speakeasy\SpeakeasyClientSDK\Models\Errorors; use Speakeasy\SpeakeasyClientSDK\Models\Shared; class ValidateApiKeyResponse { @@ -26,13 +25,6 @@ class ValidateApiKeyResponse */ public string $contentType; - /** - * Default error response - * - * @var ?Errorors\Error $error - */ - public ?Errorors\Error $error = null; - /** * HTTP response status code for this operation * @@ -52,14 +44,12 @@ class ValidateApiKeyResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Shared\ApiKeyDetails $apiKeyDetails - * @param ?Errorors\Error $error */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiKeyDetails $apiKeyDetails = null, ?Errorors\Error $error = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Shared\ApiKeyDetails $apiKeyDetails = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; $this->rawResponse = $rawResponse; $this->apiKeyDetails = $apiKeyDetails; - $this->error = $error; } } \ No newline at end of file diff --git a/src/Models/Shared/Organization.php b/src/Models/Shared/Organization.php index baadb06..e1e9a5f 100644 --- a/src/Models/Shared/Organization.php +++ b/src/Models/Shared/Organization.php @@ -22,11 +22,10 @@ class Organization /** * - * @var ?\DateTime $createdAt + * @var \DateTime $createdAt */ #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenNull] - public ?\DateTime $createdAt = null; + public \DateTime $createdAt; /** * @@ -52,11 +51,10 @@ class Organization /** * - * @var ?string $slug + * @var string $slug */ #[\JMS\Serializer\Annotation\SerializedName('slug')] - #[\JMS\Serializer\Annotation\SkipWhenNull] - public ?string $slug = null; + public string $slug; /** * @@ -67,31 +65,30 @@ class Organization /** * - * @var ?\DateTime $updatedAt + * @var \DateTime $updatedAt */ #[\JMS\Serializer\Annotation\SerializedName('updated_at')] - #[\JMS\Serializer\Annotation\SkipWhenNull] - public ?\DateTime $updatedAt = null; + public \DateTime $updatedAt; /** * @param AccountType $accountType + * @param \DateTime $createdAt * @param string $id * @param string $name + * @param string $slug * @param bool $telemetryDisabled - * @param ?\DateTime $createdAt + * @param \DateTime $updatedAt * @param ?\DateTime $freeTrialExpiry - * @param ?string $slug - * @param ?\DateTime $updatedAt */ - public function __construct(AccountType $accountType, string $id, string $name, bool $telemetryDisabled, ?\DateTime $createdAt = null, ?\DateTime $freeTrialExpiry = null, ?string $slug = null, ?\DateTime $updatedAt = null) + public function __construct(AccountType $accountType, \DateTime $createdAt, string $id, string $name, string $slug, bool $telemetryDisabled, \DateTime $updatedAt, ?\DateTime $freeTrialExpiry = null) { $this->accountType = $accountType; + $this->createdAt = $createdAt; $this->id = $id; $this->name = $name; - $this->telemetryDisabled = $telemetryDisabled; - $this->createdAt = $createdAt; - $this->freeTrialExpiry = $freeTrialExpiry; $this->slug = $slug; + $this->telemetryDisabled = $telemetryDisabled; $this->updatedAt = $updatedAt; + $this->freeTrialExpiry = $freeTrialExpiry; } } \ No newline at end of file diff --git a/src/Models/Shared/Relationship.php b/src/Models/Shared/Relationship.php new file mode 100644 index 0000000..d2f202c --- /dev/null +++ b/src/Models/Shared/Relationship.php @@ -0,0 +1,37 @@ +userId = $userId; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Shared/SSOMetadata.php b/src/Models/Shared/SSOMetadata.php new file mode 100644 index 0000000..938158d --- /dev/null +++ b/src/Models/Shared/SSOMetadata.php @@ -0,0 +1,40 @@ + $ssoDomains + */ + #[\JMS\Serializer\Annotation\SerializedName('sso_domains')] + #[\JMS\Serializer\Annotation\Type('array')] + public array $ssoDomains; + + /** + * @param bool $ssoActivated + * @param array $ssoDomains + */ + public function __construct(bool $ssoActivated, array $ssoDomains) + { + $this->ssoActivated = $ssoActivated; + $this->ssoDomains = $ssoDomains; + } +} \ No newline at end of file diff --git a/src/Models/Shared/User.php b/src/Models/Shared/User.php index d4d31cb..5c80a16 100644 --- a/src/Models/Shared/User.php +++ b/src/Models/Shared/User.php @@ -88,10 +88,11 @@ class User /** * Timestamp of the last login. * - * @var \DateTime $lastLoginAt + * @var ?\DateTime $lastLoginAt */ #[\JMS\Serializer\Annotation\SerializedName('last_login_at')] - public \DateTime $lastLoginAt; + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?\DateTime $lastLoginAt = null; /** * URL of the user's photo. @@ -126,14 +127,14 @@ class User * @param string $email * @param bool $emailVerified * @param string $id - * @param \DateTime $lastLoginAt * @param \DateTime $updatedAt * @param bool $whitelisted * @param ?string $defaultWorkspaceId * @param ?string $githubHandle + * @param ?\DateTime $lastLoginAt * @param ?string $photoUrl */ - public function __construct(bool $admin, bool $confirmed, \DateTime $createdAt, string $displayName, string $email, bool $emailVerified, string $id, \DateTime $lastLoginAt, \DateTime $updatedAt, bool $whitelisted, ?string $defaultWorkspaceId = null, ?string $githubHandle = null, ?string $photoUrl = null) + public function __construct(bool $admin, bool $confirmed, \DateTime $createdAt, string $displayName, string $email, bool $emailVerified, string $id, \DateTime $updatedAt, bool $whitelisted, ?string $defaultWorkspaceId = null, ?string $githubHandle = null, ?\DateTime $lastLoginAt = null, ?string $photoUrl = null) { $this->admin = $admin; $this->confirmed = $confirmed; @@ -142,11 +143,11 @@ public function __construct(bool $admin, bool $confirmed, \DateTime $createdAt, $this->email = $email; $this->emailVerified = $emailVerified; $this->id = $id; - $this->lastLoginAt = $lastLoginAt; $this->updatedAt = $updatedAt; $this->whitelisted = $whitelisted; $this->defaultWorkspaceId = $defaultWorkspaceId; $this->githubHandle = $githubHandle; + $this->lastLoginAt = $lastLoginAt; $this->photoUrl = $photoUrl; } } \ No newline at end of file diff --git a/src/Models/Shared/WorkspaceInviteResponse.php b/src/Models/Shared/WorkspaceInviteResponse.php new file mode 100644 index 0000000..0799237 --- /dev/null +++ b/src/Models/Shared/WorkspaceInviteResponse.php @@ -0,0 +1,40 @@ +relationship = $relationship; + $this->inviteLink = $inviteLink; + } +} \ No newline at end of file diff --git a/src/Models/Shared/WorkspaceSettings.php b/src/Models/Shared/WorkspaceSettings.php new file mode 100644 index 0000000..0129549 --- /dev/null +++ b/src/Models/Shared/WorkspaceSettings.php @@ -0,0 +1,38 @@ +workspaceId = $workspaceId; + $this->webhookUrl = $webhookUrl; + } +} \ No newline at end of file diff --git a/src/Models/Shared/WorkspaceTeamResponse.php b/src/Models/Shared/WorkspaceTeamResponse.php new file mode 100644 index 0000000..0c0508e --- /dev/null +++ b/src/Models/Shared/WorkspaceTeamResponse.php @@ -0,0 +1,43 @@ + $users + */ + #[\JMS\Serializer\Annotation\SerializedName('users')] + #[\JMS\Serializer\Annotation\Type('array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\User>')] + public array $users; + + /** + * @param array $users + * @param ?SSOMetadata $ssoMetadata + */ + public function __construct(array $users, ?SSOMetadata $ssoMetadata = null) + { + $this->users = $users; + $this->ssoMetadata = $ssoMetadata; + } +} \ No newline at end of file diff --git a/src/Models/Shared/WorkspaceToken.php b/src/Models/Shared/WorkspaceToken.php new file mode 100644 index 0000000..577ed7e --- /dev/null +++ b/src/Models/Shared/WorkspaceToken.php @@ -0,0 +1,105 @@ +alg = $alg; + $this->createdAt = $createdAt; + $this->id = $id; + $this->key = $key; + $this->name = $name; + $this->workspaceId = $workspaceId; + $this->createdBy = $createdBy; + $this->email = $email; + $this->lastUsed = $lastUsed; + } +} \ No newline at end of file diff --git a/src/Organizations.php b/src/Organizations.php index 492712e..5b530ee 100644 --- a/src/Organizations.php +++ b/src/Organizations.php @@ -10,6 +10,7 @@ use JMS\Serializer\DeserializationContext; use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; class Organizations { @@ -22,6 +23,64 @@ public function __construct(SDKConfiguration $sdkConfig) $this->sdkConfiguration = $sdkConfig; } + /** + * Create an organization + * + * Creates an organization + * + * @param Shared\Organization $request + * @return Operations\CreateOrganizationResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function create( + Shared\Organization $request, + ): Operations\CreateOrganizationResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/organization'); + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Organization', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\CreateOrganizationResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + organization: $obj); + + return $response; + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + /** * Create a free trial for an organization * @@ -44,28 +103,24 @@ public function createFreeTrial( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\CreateFreeTrialResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\CreateFreeTrialResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -78,7 +133,7 @@ public function createFreeTrial( * @return Operations\GetOrganizationResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getOrganization( + public function get( ?Operations\GetOrganizationRequest $request, ): Operations\GetOrganizationResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); @@ -93,7 +148,7 @@ public function getOrganization( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Organization', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -107,37 +162,33 @@ public function getOrganization( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetOrganizationResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * Get billing usage summary for a particular organization + * Get organizations for a user * - * Returns a billing usage summary by target languages for a particular organization + * Returns a list of organizations a user has access too * - * @return Operations\GetOrganizationUsageResponse + * @return Operations\GetOrganizationsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getOrganizationUsage( - ): Operations\GetOrganizationUsageResponse { + public function getAll( + ): Operations\GetOrganizationsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/organization/usage'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/organizations'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; @@ -148,51 +199,47 @@ public function getOrganizationUsage( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\OrganizationUsageResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetOrganizationUsageResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\Organization>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetOrganizationsResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - organizationUsageResponse: $obj); + organizations: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetOrganizationUsageResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } /** - * Get organizations for a user + * Get billing usage summary for a particular organization * - * Returns a list of organizations a user has access too + * Returns a billing usage summary by target languages for a particular organization * - * @return Operations\GetOrganizationsResponse + * @return Operations\GetOrganizationUsageResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getOrganizations( - ): Operations\GetOrganizationsResponse { + public function getUsage( + ): Operations\GetOrganizationUsageResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/organization'); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/organization/usage'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; @@ -203,36 +250,32 @@ public function getOrganizations( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\Organization>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetOrganizationsResponse( + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\OrganizationUsageResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetOrganizationUsageResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - organizations: $obj); + organizationUsageResponse: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetOrganizationsResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/Reports.php b/src/Reports.php index dd26065..49f2dd1 100644 --- a/src/Reports.php +++ b/src/Reports.php @@ -44,7 +44,7 @@ public function getChangesReportSignedUrl( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Operations\GetChangesReportSignedUrlSignedAccess', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -87,7 +87,7 @@ public function getLintingReportSignedUrl( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Operations\GetLintingReportSignedUrlSignedAccess', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -135,7 +135,7 @@ public function uploadReport( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Operations\UploadReportUploadedReport', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); diff --git a/src/Requests.php b/src/Requests.php index 2aff7e2..6e3e848 100644 --- a/src/Requests.php +++ b/src/Requests.php @@ -38,7 +38,7 @@ public function generateRequestPostmanCollection( $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/eventlog/{requestID}/generate/postman', Operations\GenerateRequestPostmanCollectionRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options['headers']['Accept'] = 'application/json;q=1, application/octet-stream;q=0'; + $options['headers']['Accept'] = 'application/octet-stream'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); @@ -47,7 +47,7 @@ public function generateRequestPostmanCollection( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/octet-stream')) { $obj = $httpResponse->getBody()->getContents(); @@ -59,22 +59,18 @@ public function generateRequestPostmanCollection( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GenerateRequestPostmanCollectionResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -100,7 +96,7 @@ public function getRequestFromEventLog( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\UnboundedRequest', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -114,22 +110,18 @@ public function getRequestFromEventLog( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetRequestFromEventLogResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -159,7 +151,7 @@ public function queryEventLog( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\BoundedRequest>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -173,22 +165,18 @@ public function queryEventLog( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\QueryEventLogResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index fb588b6..700c4b4 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -27,11 +27,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.4.0 .'; - public string $sdkVersion = '0.41.16'; + public string $sdkVersion = '0.42.0'; - public string $genVersion = '2.422.6'; + public string $genVersion = '2.424.0'; - public string $userAgent = 'speakeasy-sdk/php 0.41.16 2.422.6 0.4.0 . speakeasy-api/speakeasy-client-sdk-php'; + public string $userAgent = 'speakeasy-sdk/php 0.42.0 2.424.0 0.4.0 . speakeasy-api/speakeasy-client-sdk-php'; /** @var array>> */ public ?array $globals = [ 'parameters' => [], diff --git a/src/Schemas.php b/src/Schemas.php index cccc630..b88317e 100644 --- a/src/Schemas.php +++ b/src/Schemas.php @@ -44,28 +44,24 @@ public function deleteSchema( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\DeleteSchemaResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\DeleteSchemaResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -91,7 +87,7 @@ public function downloadSchema( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $obj = $httpResponse->getBody()->getContents(); @@ -99,7 +95,7 @@ public function downloadSchema( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - twoHundredApplicationJsonSchema: $obj); + twoXXApplicationJsonSchema: $obj); } elseif (Utils\Utils::matchContentType($contentType, 'application/x-yaml')) { $obj = $httpResponse->getBody()->getContents(); @@ -107,26 +103,22 @@ public function downloadSchema( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - twoHundredApplicationXYamlSchema: $obj); + twoXXApplicationXYamlSchema: $obj); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\DownloadSchemaResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -152,7 +144,7 @@ public function downloadSchemaRevision( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $obj = $httpResponse->getBody()->getContents(); @@ -160,7 +152,7 @@ public function downloadSchemaRevision( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - twoHundredApplicationJsonSchema: $obj); + twoXXApplicationJsonSchema: $obj); } elseif (Utils\Utils::matchContentType($contentType, 'application/x-yaml')) { $obj = $httpResponse->getBody()->getContents(); @@ -168,26 +160,22 @@ public function downloadSchemaRevision( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - twoHundredApplicationXYamlSchema: $obj); + twoXXApplicationXYamlSchema: $obj); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\DownloadSchemaRevisionResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -216,7 +204,7 @@ public function getSchema( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Schema', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -230,22 +218,18 @@ public function getSchema( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetSchemaResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -271,7 +255,7 @@ public function getSchemaDiff( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\SchemaDiff', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -285,22 +269,18 @@ public function getSchemaDiff( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetSchemaDiffResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -329,7 +309,7 @@ public function getSchemaRevision( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Schema', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -343,22 +323,18 @@ public function getSchemaRevision( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetSchemaRevisionResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -387,7 +363,7 @@ public function getSchemas( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\Schema>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -401,22 +377,18 @@ classes: $obj); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetSchemasResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -450,28 +422,24 @@ public function registerSchema( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { return new Operations\RegisterSchemaResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse ); - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { - throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); - } else { + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\RegisterSchemaResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); - - return $response; + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } diff --git a/src/ShortURLs.php b/src/ShortURLs.php index 4283b31..7dc5b38 100644 --- a/src/ShortURLs.php +++ b/src/ShortURLs.php @@ -49,7 +49,7 @@ public function create( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\ShortURL', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); diff --git a/src/Suggest.php b/src/Suggest.php index a4d367a..9930362 100644 --- a/src/Suggest.php +++ b/src/Suggest.php @@ -54,7 +54,7 @@ public function suggest( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $obj = $httpResponse->getBody()->getContents(); @@ -106,7 +106,7 @@ public function suggestOpenAPI( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $obj = $httpResponse->getBody()->getContents(); @@ -157,7 +157,7 @@ public function suggestOpenAPIRegistry( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $obj = $httpResponse->getBody()->getContents(); diff --git a/src/Workspaces.php b/src/Workspaces.php index e99a162..b8fac9a 100644 --- a/src/Workspaces.php +++ b/src/Workspaces.php @@ -10,6 +10,7 @@ use JMS\Serializer\DeserializationContext; use Speakeasy\SpeakeasyClientSDK\Models\Operations; +use Speakeasy\SpeakeasyClientSDK\Models\Shared; class Workspaces { @@ -23,34 +24,39 @@ public function __construct(SDKConfiguration $sdkConfig) } /** - * Get workspace + * Create a workspace * - * Get information about a particular workspace. + * Creates a workspace * - * @param Operations\GetWorkspaceRequest $request - * @return Operations\GetWorkspaceResponse + * @param Shared\Workspace $request + * @return Operations\CreateWorkspaceResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getWorkspace( - ?Operations\GetWorkspaceRequest $request, - ): Operations\GetWorkspaceResponse { + public function create( + Shared\Workspace $request, + ): Operations\CreateWorkspaceResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspaceID}', Operations\GetWorkspaceRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace'); $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; - $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Workspace', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetWorkspaceResponse( + $response = new Operations\CreateWorkspaceResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, @@ -60,22 +66,109 @@ public function getWorkspace( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Create a token for a particular workspace + * + * @param Operations\CreateWorkspaceTokenRequest $request + * @return Operations\CreateWorkspaceTokenResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function createToken( + Operations\CreateWorkspaceTokenRequest $request, + ): Operations\CreateWorkspaceTokenResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/tokens', Operations\CreateWorkspaceTokenRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, 'workspaceToken', 'json'); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\CreateWorkspaceTokenResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetWorkspaceResponse( - statusCode: $statusCode, - contentType: $contentType, - rawResponse: $httpResponse, - error: $obj); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } - return $response; + /** + * Delete a token for a particular workspace + * + * @param Operations\DeleteWorkspaceTokenRequest $request + * @return Operations\DeleteWorkspaceTokenResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function deleteToken( + ?Operations\DeleteWorkspaceTokenRequest $request, + ): Operations\DeleteWorkspaceTokenResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/tokens/{tokenID}', Operations\DeleteWorkspaceTokenRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\DeleteWorkspaceTokenResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -87,7 +180,7 @@ public function getWorkspace( * @return Operations\GetWorkspaceByContextResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getWorkspaceByContext( + public function get( ): Operations\GetWorkspaceByContextResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace'); @@ -101,7 +194,7 @@ public function getWorkspaceByContext( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode >= 200 && $statusCode < 300) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\WorkspaceAndOrganization', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -115,22 +208,122 @@ public function getWorkspaceByContext( } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Get workspaces for a user + * + * Returns a list of workspaces a user has access too + * + * @return Operations\GetWorkspacesResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function getAll( + ): Operations\GetWorkspacesResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspaces'); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\Workspace>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWorkspacesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + workspaces: $obj); + + return $response; + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\GetWorkspaceByContextResponse( + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Get workspace + * + * Get information about a particular workspace. + * + * @param Operations\GetWorkspaceRequest $request + * @return Operations\GetWorkspaceResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function getByID( + ?Operations\GetWorkspaceRequest $request, + ): Operations\GetWorkspaceResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}', Operations\GetWorkspaceRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\Workspace', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWorkspaceResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - error: $obj); + workspace: $obj); return $response; } else { throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } @@ -141,11 +334,11 @@ public function getWorkspaceByContext( * @return Operations\GetWorkspaceFeatureFlagsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getWorkspaceFeatureFlags( + public function getFeatureFlags( ?Operations\GetWorkspaceFeatureFlagsRequest $request, ): Operations\GetWorkspaceFeatureFlagsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspaceID}/feature_flags', Operations\GetWorkspaceFeatureFlagsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/feature_flags', Operations\GetWorkspaceFeatureFlagsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; @@ -185,4 +378,353 @@ public function getWorkspaceFeatureFlags( } } + /** + * Get workspace settings + * + * Get settings about a particular workspace. + * + * @param Operations\GetWorkspaceSettingsRequest $request + * @return Operations\GetWorkspaceSettingsResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function getSettings( + ?Operations\GetWorkspaceSettingsRequest $request, + ): Operations\GetWorkspaceSettingsResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/settings', Operations\GetWorkspaceSettingsRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\WorkspaceSettings', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWorkspaceSettingsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + workspaceSettings: $obj); + + return $response; + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Get team members for a particular workspace + * + * @param Operations\GetWorkspaceTeamRequest $request + * @return Operations\GetWorkspaceTeamResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function getTeam( + ?Operations\GetWorkspaceTeamRequest $request, + ): Operations\GetWorkspaceTeamResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/team', Operations\GetWorkspaceTeamRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\WorkspaceTeamResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWorkspaceTeamResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + workspaceTeamResponse: $obj); + + return $response; + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Get tokens for a particular workspace + * + * @param Operations\GetWorkspaceTokensRequest $request + * @return Operations\GetWorkspaceTokensResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function getTokens( + ?Operations\GetWorkspaceTokensRequest $request, + ): Operations\GetWorkspaceTokensResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/tokens', Operations\GetWorkspaceTokensRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), 'array<\Speakeasy\SpeakeasyClientSDK\Models\Shared\WorkspaceToken>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWorkspaceTokensResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + classes: $obj); + + return $response; + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Grant a user access to a particular workspace + * + * @param Operations\GrantUserAccessToWorkspaceRequest $request + * @return Operations\GrantUserAccessToWorkspaceResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function grantAccess( + ?Operations\GrantUserAccessToWorkspaceRequest $request, + ): Operations\GrantUserAccessToWorkspaceResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/team/email/{email}', Operations\GrantUserAccessToWorkspaceRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Shared\WorkspaceInviteResponse', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GrantUserAccessToWorkspaceResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + workspaceInviteResponse: $obj); + + return $response; + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Revoke a user's access to a particular workspace + * + * @param Operations\RevokeUserAccessToWorkspaceRequest $request + * @return Operations\RevokeUserAccessToWorkspaceResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function revokeAccess( + ?Operations\RevokeUserAccessToWorkspaceRequest $request, + ): Operations\RevokeUserAccessToWorkspaceResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/team/{userId}', Operations\RevokeUserAccessToWorkspaceRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\RevokeUserAccessToWorkspaceResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Update workspace details + * + * Update information about a particular workspace. + * + * @param Operations\UpdateWorkspaceDetailsRequest $request + * @return Operations\UpdateWorkspaceDetailsResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function update( + Operations\UpdateWorkspaceDetailsRequest $request, + ): Operations\UpdateWorkspaceDetailsResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/details', Operations\UpdateWorkspaceDetailsRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, 'workspace', 'json'); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\UpdateWorkspaceDetailsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + + /** + * Update workspace settings + * + * Update settings about a particular workspace. + * + * @param Operations\UpdateWorkspaceSettingsRequest $request + * @return Operations\UpdateWorkspaceSettingsResponse + * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException + */ + public function updateSettings( + Operations\UpdateWorkspaceSettingsRequest $request, + ): Operations\UpdateWorkspaceSettingsResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/settings', Operations\UpdateWorkspaceSettingsRequest::class, $request, $this->sdkConfiguration->globals); + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, 'workspaceSettings', 'json'); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode >= 200 && $statusCode < 300) { + return new Operations\UpdateWorkspaceSettingsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode >= 400 && $statusCode < 500) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Speakeasy\SpeakeasyClientSDK\Models\Errorors\Error', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + throw $obj->toException(); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 500 && $statusCode < 600) { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + } \ No newline at end of file