Documentation ¶
Index ¶
- Constants
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func Pointer[T any](v T) *T
- func String(s string) *string
- type APIEndpoints
- func (s *APIEndpoints) DeleteAPIEndpoint(ctx context.Context, request operations.DeleteAPIEndpointRequest, ...) (*operations.DeleteAPIEndpointResponse, error)
- func (s *APIEndpoints) FindAPIEndpoint(ctx context.Context, request operations.FindAPIEndpointRequest, ...) (*operations.FindAPIEndpointResponse, error)
- func (s *APIEndpoints) GenerateOpenAPISpecForAPIEndpoint(ctx context.Context, ...) (*operations.GenerateOpenAPISpecForAPIEndpointResponse, error)
- func (s *APIEndpoints) GeneratePostmanCollectionForAPIEndpoint(ctx context.Context, ...) (*operations.GeneratePostmanCollectionForAPIEndpointResponse, error)
- func (s *APIEndpoints) GetAPIEndpoint(ctx context.Context, request operations.GetAPIEndpointRequest, ...) (*operations.GetAPIEndpointResponse, error)
- func (s *APIEndpoints) GetAllAPIEndpoints(ctx context.Context, request operations.GetAllAPIEndpointsRequest, ...) (*operations.GetAllAPIEndpointsResponse, error)
- func (s *APIEndpoints) GetAllForVersionAPIEndpoints(ctx context.Context, request operations.GetAllForVersionAPIEndpointsRequest, ...) (*operations.GetAllForVersionAPIEndpointsResponse, error)
- func (s *APIEndpoints) UpsertAPIEndpoint(ctx context.Context, request operations.UpsertAPIEndpointRequest, ...) (*operations.UpsertAPIEndpointResponse, error)
- type Apis
- func (s *Apis) DeleteAPI(ctx context.Context, request operations.DeleteAPIRequest, ...) (*operations.DeleteAPIResponse, error)
- func (s *Apis) GenerateOpenAPISpec(ctx context.Context, request operations.GenerateOpenAPISpecRequest, ...) (*operations.GenerateOpenAPISpecResponse, error)
- func (s *Apis) GeneratePostmanCollection(ctx context.Context, request operations.GeneratePostmanCollectionRequest, ...) (*operations.GeneratePostmanCollectionResponse, error)
- func (s *Apis) GetAllAPIVersions(ctx context.Context, request operations.GetAllAPIVersionsRequest, ...) (*operations.GetAllAPIVersionsResponse, error)
- func (s *Apis) GetApis(ctx context.Context, request operations.GetApisRequest, ...) (*operations.GetApisResponse, error)
- func (s *Apis) UpsertAPI(ctx context.Context, request operations.UpsertAPIRequest, ...) (*operations.UpsertAPIResponse, error)
- type Artifacts
- func (s *Artifacts) CreateRemoteSource(ctx context.Context, request *shared.RemoteSource, opts ...operations.Option) (*operations.CreateRemoteSourceResponse, error)
- func (s *Artifacts) GetBlob(ctx context.Context, request operations.GetBlobRequest, ...) (*operations.GetBlobResponse, error)
- func (s *Artifacts) GetManifest(ctx context.Context, request operations.GetManifestRequest, ...) (*operations.GetManifestResponse, error)
- func (s *Artifacts) GetNamespaces(ctx context.Context, opts ...operations.Option) (*operations.GetNamespacesResponse, error)
- func (s *Artifacts) GetRevisions(ctx context.Context, request operations.GetRevisionsRequest, ...) (*operations.GetRevisionsResponse, error)
- func (s *Artifacts) GetTags(ctx context.Context, request operations.GetTagsRequest, ...) (*operations.GetTagsResponse, error)
- func (s *Artifacts) ListRemoteSources(ctx context.Context, request operations.ListRemoteSourcesRequest, ...) (*operations.ListRemoteSourcesResponse, error)
- func (s *Artifacts) PostTags(ctx context.Context, request operations.PostTagsRequest, ...) (*operations.PostTagsResponse, error)
- func (s *Artifacts) Preflight(ctx context.Context, request *shared.PreflightRequest, ...) (*operations.PreflightResponse, error)
- type Auth
- func (s *Auth) GetAccess(ctx context.Context, request operations.GetWorkspaceAccessRequest, ...) (*operations.GetWorkspaceAccessResponse, error)
- func (s *Auth) GetAccessToken(ctx context.Context, request operations.GetAccessTokenRequest, ...) (*operations.GetAccessTokenResponse, error)
- func (s *Auth) GetUser(ctx context.Context, opts ...operations.Option) (*operations.GetUserResponse, error)
- func (s *Auth) ValidateAPIKey(ctx context.Context, opts ...operations.Option) (*operations.ValidateAPIKeyResponse, error)
- type Embeds
- func (s *Embeds) GetEmbedAccessToken(ctx context.Context, request operations.GetEmbedAccessTokenRequest, ...) (*operations.GetEmbedAccessTokenResponse, error)
- func (s *Embeds) GetValidEmbedAccessTokens(ctx context.Context, opts ...operations.Option) (*operations.GetValidEmbedAccessTokensResponse, error)
- func (s *Embeds) RevokeEmbedAccessToken(ctx context.Context, request operations.RevokeEmbedAccessTokenRequest, ...) (*operations.RevokeEmbedAccessTokenResponse, error)
- type Events
- func (s *Events) GetEventsByTarget(ctx context.Context, request operations.GetWorkspaceEventsByTargetRequest, ...) (*operations.GetWorkspaceEventsByTargetResponse, error)
- func (s *Events) GetTargets(ctx context.Context, request operations.GetWorkspaceTargetsRequest, ...) (*operations.GetWorkspaceTargetsResponse, error)
- func (s *Events) GetTargetsDeprecated(ctx context.Context, request operations.GetWorkspaceTargetsDeprecatedRequest, ...) (*operations.GetWorkspaceTargetsDeprecatedResponse, error)
- func (s *Events) Post(ctx context.Context, request operations.PostWorkspaceEventsRequest, ...) (*operations.PostWorkspaceEventsResponse, error)
- func (s *Events) Search(ctx context.Context, request operations.SearchWorkspaceEventsRequest, ...) (*operations.SearchWorkspaceEventsResponse, error)
- type Github
- func (s *Github) CheckAccess(ctx context.Context, request operations.CheckGithubAccessRequest, ...) (*operations.CheckGithubAccessResponse, error)
- func (s *Github) CheckPublishingPRs(ctx context.Context, request operations.GithubCheckPublishingPRsRequest, ...) (*operations.GithubCheckPublishingPRsResponse, error)
- func (s *Github) CheckPublishingSecrets(ctx context.Context, request operations.GithubCheckPublishingSecretsRequest, ...) (*operations.GithubCheckPublishingSecretsResponse, error)
- func (s *Github) ConfigureCodeSamples(ctx context.Context, request shared.GithubConfigureCodeSamplesRequest, ...) (*operations.GithubConfigureCodeSamplesResponse, error)
- func (s *Github) ConfigureMintlifyRepo(ctx context.Context, request shared.GithubConfigureMintlifyRepoRequest, ...) (*operations.GithubConfigureMintlifyRepoResponse, error)
- func (s *Github) ConfigureTarget(ctx context.Context, request shared.GithubConfigureTargetRequest, ...) (*operations.GithubConfigureTargetResponse, error)
- func (s *Github) GetAction(ctx context.Context, request operations.GetGitHubActionRequest, ...) (*operations.GetGitHubActionResponse, error)
- func (s *Github) StorePublishingSecrets(ctx context.Context, request shared.GithubStorePublishingSecretsRequest, ...) (*operations.GithubStorePublishingSecretsResponse, error)
- func (s *Github) TriggerAction(ctx context.Context, request shared.GithubTriggerActionRequest, ...) (*operations.GithubTriggerActionResponse, error)
- type HTTPClient
- type Metadata
- func (s *Metadata) DeleteVersionMetadata(ctx context.Context, request operations.DeleteVersionMetadataRequest, ...) (*operations.DeleteVersionMetadataResponse, error)
- func (s *Metadata) GetVersionMetadata(ctx context.Context, request operations.GetVersionMetadataRequest, ...) (*operations.GetVersionMetadataResponse, error)
- func (s *Metadata) InsertVersionMetadata(ctx context.Context, request operations.InsertVersionMetadataRequest, ...) (*operations.InsertVersionMetadataResponse, error)
- type Organizations
- func (s *Organizations) Create(ctx context.Context, request shared.Organization, opts ...operations.Option) (*operations.CreateOrganizationResponse, error)
- func (s *Organizations) CreateFreeTrial(ctx context.Context, opts ...operations.Option) (*operations.CreateFreeTrialResponse, error)
- func (s *Organizations) Get(ctx context.Context, request operations.GetOrganizationRequest, ...) (*operations.GetOrganizationResponse, error)
- func (s *Organizations) GetAll(ctx context.Context, opts ...operations.Option) (*operations.GetOrganizationsResponse, error)
- func (s *Organizations) GetUsage(ctx context.Context, opts ...operations.Option) (*operations.GetOrganizationUsageResponse, error)
- type Reports
- func (s *Reports) GetChangesReportSignedURL(ctx context.Context, request operations.GetChangesReportSignedURLRequest, ...) (*operations.GetChangesReportSignedURLResponse, error)
- func (s *Reports) GetLintingReportSignedURL(ctx context.Context, request operations.GetLintingReportSignedURLRequest, ...) (*operations.GetLintingReportSignedURLResponse, error)
- func (s *Reports) UploadReport(ctx context.Context, request operations.UploadReportRequestBody, ...) (*operations.UploadReportResponse, error)
- type Requests
- func (s *Requests) GenerateRequestPostmanCollection(ctx context.Context, ...) (*operations.GenerateRequestPostmanCollectionResponse, error)
- func (s *Requests) GetRequestFromEventLog(ctx context.Context, request operations.GetRequestFromEventLogRequest, ...) (*operations.GetRequestFromEventLogResponse, error)
- func (s *Requests) QueryEventLog(ctx context.Context, request operations.QueryEventLogRequest, ...) (*operations.QueryEventLogResponse, error)
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithRetryConfig(retryConfig retry.Config) SDKOption
- func WithSecurity(security shared.Security) SDKOption
- func WithSecuritySource(security func(context.Context) (shared.Security, error)) SDKOption
- func WithServer(server string) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
- func WithTimeout(timeout time.Duration) SDKOption
- func WithWorkspaceID(workspaceID string) SDKOption
- type Schemas
- func (s *Schemas) DeleteSchema(ctx context.Context, request operations.DeleteSchemaRequest, ...) (*operations.DeleteSchemaResponse, error)
- func (s *Schemas) DownloadSchema(ctx context.Context, request operations.DownloadSchemaRequest, ...) (*operations.DownloadSchemaResponse, error)
- func (s *Schemas) DownloadSchemaRevision(ctx context.Context, request operations.DownloadSchemaRevisionRequest, ...) (*operations.DownloadSchemaRevisionResponse, error)
- func (s *Schemas) GetSchema(ctx context.Context, request operations.GetSchemaRequest, ...) (*operations.GetSchemaResponse, error)
- func (s *Schemas) GetSchemaDiff(ctx context.Context, request operations.GetSchemaDiffRequest, ...) (*operations.GetSchemaDiffResponse, error)
- func (s *Schemas) GetSchemaRevision(ctx context.Context, request operations.GetSchemaRevisionRequest, ...) (*operations.GetSchemaRevisionResponse, error)
- func (s *Schemas) GetSchemas(ctx context.Context, request operations.GetSchemasRequest, ...) (*operations.GetSchemasResponse, error)
- func (s *Schemas) RegisterSchema(ctx context.Context, request operations.RegisterSchemaRequest, ...) (*operations.RegisterSchemaResponse, error)
- type ShortURLs
- type Speakeasy
- type Subscriptions
- func (s *Subscriptions) CreateSubscription(ctx context.Context, request operations.CreateSubscriptionRequest, ...) (*operations.CreateSubscriptionResponse, error)
- func (s *Subscriptions) ListRegistrySubscriptions(ctx context.Context, request operations.ListRegistrySubscriptionsRequest, ...) (*operations.ListRegistrySubscriptionsResponse, error)
- type Suggest
- func (s *Suggest) Suggest(ctx context.Context, request operations.SuggestRequest, ...) (*operations.SuggestResponse, error)
- func (s *Suggest) SuggestItems(ctx context.Context, request shared.SuggestItemsRequestBody, ...) (*operations.SuggestItemsResponse, error)
- func (s *Suggest) SuggestOpenAPI(ctx context.Context, request operations.SuggestOpenAPIRequest, ...) (*operations.SuggestOpenAPIResponse, error)
- func (s *Suggest) SuggestOpenAPIRegistry(ctx context.Context, request operations.SuggestOpenAPIRegistryRequest, ...) (*operations.SuggestOpenAPIRegistryResponse, error)
- type Workspaces
- func (s *Workspaces) Create(ctx context.Context, request shared.Workspace, opts ...operations.Option) (*operations.CreateWorkspaceResponse, error)
- func (s *Workspaces) CreateToken(ctx context.Context, request operations.CreateWorkspaceTokenRequest, ...) (*operations.CreateWorkspaceTokenResponse, error)
- func (s *Workspaces) DeleteToken(ctx context.Context, request operations.DeleteWorkspaceTokenRequest, ...) (*operations.DeleteWorkspaceTokenResponse, error)
- func (s *Workspaces) Get(ctx context.Context, opts ...operations.Option) (*operations.GetWorkspaceByContextResponse, error)
- func (s *Workspaces) GetAll(ctx context.Context, opts ...operations.Option) (*operations.GetWorkspacesResponse, error)
- func (s *Workspaces) GetByID(ctx context.Context, request operations.GetWorkspaceRequest, ...) (*operations.GetWorkspaceResponse, error)
- func (s *Workspaces) GetFeatureFlags(ctx context.Context, request operations.GetWorkspaceFeatureFlagsRequest, ...) (*operations.GetWorkspaceFeatureFlagsResponse, error)
- func (s *Workspaces) GetSettings(ctx context.Context, request operations.GetWorkspaceSettingsRequest, ...) (*operations.GetWorkspaceSettingsResponse, error)
- func (s *Workspaces) GetTeam(ctx context.Context, request operations.GetWorkspaceTeamRequest, ...) (*operations.GetWorkspaceTeamResponse, error)
- func (s *Workspaces) GetTokens(ctx context.Context, request operations.GetWorkspaceTokensRequest, ...) (*operations.GetWorkspaceTokensResponse, error)
- func (s *Workspaces) GrantAccess(ctx context.Context, request operations.GrantUserAccessToWorkspaceRequest, ...) (*operations.GrantUserAccessToWorkspaceResponse, error)
- func (s *Workspaces) RevokeAccess(ctx context.Context, request operations.RevokeUserAccessToWorkspaceRequest, ...) (*operations.RevokeUserAccessToWorkspaceResponse, error)
- func (s *Workspaces) Update(ctx context.Context, request operations.UpdateWorkspaceDetailsRequest, ...) (*operations.UpdateWorkspaceDetailsResponse, error)
- func (s *Workspaces) UpdateSettings(ctx context.Context, request operations.UpdateWorkspaceSettingsRequest, ...) (*operations.UpdateWorkspaceSettingsResponse, error)
Constants ¶
const (
ServerProd string = "prod"
)
Variables ¶
var ServerList = map[string]string{ ServerProd: "https://api.prod.speakeasyapi.dev", }
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type APIEndpoints ¶
type APIEndpoints struct {
// contains filtered or unexported fields
}
APIEndpoints - REST APIs for managing ApiEndpoint entities
func (*APIEndpoints) DeleteAPIEndpoint ¶
func (s *APIEndpoints) DeleteAPIEndpoint(ctx context.Context, request operations.DeleteAPIEndpointRequest, opts ...operations.Option) (*operations.DeleteAPIEndpointResponse, error)
DeleteAPIEndpoint - Delete an ApiEndpoint. Delete an ApiEndpoint. This will also delete all associated Request Logs (if using a Postgres datastore).
func (*APIEndpoints) FindAPIEndpoint ¶
func (s *APIEndpoints) FindAPIEndpoint(ctx context.Context, request operations.FindAPIEndpointRequest, opts ...operations.Option) (*operations.FindAPIEndpointResponse, error)
FindAPIEndpoint - Find an ApiEndpoint via its displayName. Find an ApiEndpoint via its displayName (set by operationId from a registered OpenAPI schema). This is useful for finding the ID of an ApiEndpoint to use in the /v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID} endpoints.
func (*APIEndpoints) GenerateOpenAPISpecForAPIEndpoint ¶
func (s *APIEndpoints) GenerateOpenAPISpecForAPIEndpoint(ctx context.Context, request operations.GenerateOpenAPISpecForAPIEndpointRequest, opts ...operations.Option) (*operations.GenerateOpenAPISpecForAPIEndpointResponse, error)
GenerateOpenAPISpecForAPIEndpoint - Generate an OpenAPI specification for a particular ApiEndpoint. This endpoint will generate a new operation in any registered OpenAPI document if the operation does not already exist in the document. Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
func (*APIEndpoints) GeneratePostmanCollectionForAPIEndpoint ¶
func (s *APIEndpoints) GeneratePostmanCollectionForAPIEndpoint(ctx context.Context, request operations.GeneratePostmanCollectionForAPIEndpointRequest, opts ...operations.Option) (*operations.GeneratePostmanCollectionForAPIEndpointResponse, error)
GeneratePostmanCollectionForAPIEndpoint - Generate a Postman collection for a particular ApiEndpoint. Generates a postman collection that allows the endpoint to be called from postman variables produced for any path/query/header parameters included in the OpenAPI document.
func (*APIEndpoints) GetAPIEndpoint ¶
func (s *APIEndpoints) GetAPIEndpoint(ctx context.Context, request operations.GetAPIEndpointRequest, opts ...operations.Option) (*operations.GetAPIEndpointResponse, error)
GetAPIEndpoint - Get an ApiEndpoint.
func (*APIEndpoints) GetAllAPIEndpoints ¶
func (s *APIEndpoints) GetAllAPIEndpoints(ctx context.Context, request operations.GetAllAPIEndpointsRequest, opts ...operations.Option) (*operations.GetAllAPIEndpointsResponse, error)
GetAllAPIEndpoints - Get all Api endpoints for a particular apiID.
func (*APIEndpoints) GetAllForVersionAPIEndpoints ¶
func (s *APIEndpoints) GetAllForVersionAPIEndpoints(ctx context.Context, request operations.GetAllForVersionAPIEndpointsRequest, opts ...operations.Option) (*operations.GetAllForVersionAPIEndpointsResponse, error)
GetAllForVersionAPIEndpoints - Get all ApiEndpoints for a particular apiID and versionID.
func (*APIEndpoints) UpsertAPIEndpoint ¶
func (s *APIEndpoints) UpsertAPIEndpoint(ctx context.Context, request operations.UpsertAPIEndpointRequest, opts ...operations.Option) (*operations.UpsertAPIEndpointResponse, error)
UpsertAPIEndpoint - Upsert an ApiEndpoint. Upsert an ApiEndpoint. If the ApiEndpoint does not exist it will be created, otherwise it will be updated.
type Apis ¶
type Apis struct {
// contains filtered or unexported fields
}
Apis - REST APIs for managing Api entities
func (*Apis) DeleteAPI ¶
func (s *Apis) DeleteAPI(ctx context.Context, request operations.DeleteAPIRequest, opts ...operations.Option) (*operations.DeleteAPIResponse, error)
DeleteAPI - Delete an Api. Delete a particular version of an Api. The will also delete all associated ApiEndpoints, Metadata, Schemas & Request Logs (if using a Postgres datastore).
func (*Apis) GenerateOpenAPISpec ¶
func (s *Apis) GenerateOpenAPISpec(ctx context.Context, request operations.GenerateOpenAPISpecRequest, opts ...operations.Option) (*operations.GenerateOpenAPISpecResponse, error)
GenerateOpenAPISpec - Generate an OpenAPI specification for a particular Api. This endpoint will generate any missing operations in any registered OpenAPI document if the operation does not already exist in the document. Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
func (*Apis) GeneratePostmanCollection ¶
func (s *Apis) GeneratePostmanCollection(ctx context.Context, request operations.GeneratePostmanCollectionRequest, opts ...operations.Option) (*operations.GeneratePostmanCollectionResponse, error)
GeneratePostmanCollection - Generate a Postman collection for a particular Api. Generates a postman collection containing all endpoints for a particular API. Includes variables produced for any path/query/header parameters included in the OpenAPI document.
func (*Apis) GetAllAPIVersions ¶
func (s *Apis) GetAllAPIVersions(ctx context.Context, request operations.GetAllAPIVersionsRequest, opts ...operations.Option) (*operations.GetAllAPIVersionsResponse, error)
GetAllAPIVersions - Get all Api versions for a particular ApiEndpoint. Get all Api versions for a particular ApiEndpoint. Supports filtering the versions based on metadata attributes.
func (*Apis) GetApis ¶
func (s *Apis) GetApis(ctx context.Context, request operations.GetApisRequest, opts ...operations.Option) (*operations.GetApisResponse, error)
GetApis - Get a list of Apis for a given workspace Get a list of all Apis and their versions for a given workspace. Supports filtering the APIs based on metadata attributes.
func (*Apis) UpsertAPI ¶
func (s *Apis) UpsertAPI(ctx context.Context, request operations.UpsertAPIRequest, opts ...operations.Option) (*operations.UpsertAPIResponse, error)
UpsertAPI - Upsert an Api Upsert an Api. If the Api does not exist, it will be created. If the Api exists, it will be updated.
type Artifacts ¶ added in v3.5.3
type Artifacts struct {
// contains filtered or unexported fields
}
Artifacts - REST APIs for working with Registry artifacts
func (*Artifacts) CreateRemoteSource ¶ added in v3.14.9
func (s *Artifacts) CreateRemoteSource(ctx context.Context, request *shared.RemoteSource, opts ...operations.Option) (*operations.CreateRemoteSourceResponse, error)
CreateRemoteSource - Configure a new remote source
func (*Artifacts) GetBlob ¶ added in v3.5.4
func (s *Artifacts) GetBlob(ctx context.Context, request operations.GetBlobRequest, opts ...operations.Option) (*operations.GetBlobResponse, error)
GetBlob - Get blob for a particular digest
func (*Artifacts) GetManifest ¶ added in v3.5.4
func (s *Artifacts) GetManifest(ctx context.Context, request operations.GetManifestRequest, opts ...operations.Option) (*operations.GetManifestResponse, error)
GetManifest - Get manifest for a particular reference
func (*Artifacts) GetNamespaces ¶ added in v3.5.3
func (s *Artifacts) GetNamespaces(ctx context.Context, opts ...operations.Option) (*operations.GetNamespacesResponse, error)
GetNamespaces - Each namespace contains many revisions.
func (*Artifacts) GetRevisions ¶ added in v3.5.3
func (s *Artifacts) GetRevisions(ctx context.Context, request operations.GetRevisionsRequest, opts ...operations.Option) (*operations.GetRevisionsResponse, error)
func (*Artifacts) GetTags ¶ added in v3.5.4
func (s *Artifacts) GetTags(ctx context.Context, request operations.GetTagsRequest, opts ...operations.Option) (*operations.GetTagsResponse, error)
func (*Artifacts) ListRemoteSources ¶ added in v3.14.9
func (s *Artifacts) ListRemoteSources(ctx context.Context, request operations.ListRemoteSourcesRequest, opts ...operations.Option) (*operations.ListRemoteSourcesResponse, error)
ListRemoteSources - Get remote sources attached to a particular namespace
func (*Artifacts) PostTags ¶ added in v3.5.10
func (s *Artifacts) PostTags(ctx context.Context, request operations.PostTagsRequest, opts ...operations.Option) (*operations.PostTagsResponse, error)
PostTags - Add tags to an existing revision
func (*Artifacts) Preflight ¶ added in v3.5.3
func (s *Artifacts) Preflight(ctx context.Context, request *shared.PreflightRequest, opts ...operations.Option) (*operations.PreflightResponse, error)
Preflight - Get access token for communicating with OCI distribution endpoints
type Auth ¶ added in v3.1.0
type Auth struct {
// contains filtered or unexported fields
}
Auth - REST APIs for managing Authentication
func (*Auth) GetAccess ¶ added in v3.14.0
func (s *Auth) GetAccess(ctx context.Context, request operations.GetWorkspaceAccessRequest, opts ...operations.Option) (*operations.GetWorkspaceAccessResponse, error)
GetAccess - Get access allowances for a particular workspace Checks if generation is permitted for a particular run of the CLI
func (*Auth) GetAccessToken ¶ added in v3.3.11
func (s *Auth) GetAccessToken(ctx context.Context, request operations.GetAccessTokenRequest, opts ...operations.Option) (*operations.GetAccessTokenResponse, error)
GetAccessToken - Get or refresh an access token for the current workspace.
func (*Auth) GetUser ¶ added in v3.4.6
func (s *Auth) GetUser(ctx context.Context, opts ...operations.Option) (*operations.GetUserResponse, error)
GetUser - Get information about the current user.
func (*Auth) ValidateAPIKey ¶ added in v3.1.0
func (s *Auth) ValidateAPIKey(ctx context.Context, opts ...operations.Option) (*operations.ValidateAPIKeyResponse, error)
ValidateAPIKey - Validate the current api key.
type Embeds ¶
type Embeds struct {
// contains filtered or unexported fields
}
Embeds - REST APIs for managing embeds
func (*Embeds) GetEmbedAccessToken ¶
func (s *Embeds) GetEmbedAccessToken(ctx context.Context, request operations.GetEmbedAccessTokenRequest, opts ...operations.Option) (*operations.GetEmbedAccessTokenResponse, error)
GetEmbedAccessToken - Get an embed access token for the current workspace. Returns an embed access token for the current workspace. This can be used to authenticate access to externally embedded content. Filters can be applied allowing views to be filtered to things like particular customerIds.
func (*Embeds) GetValidEmbedAccessTokens ¶
func (s *Embeds) GetValidEmbedAccessTokens(ctx context.Context, opts ...operations.Option) (*operations.GetValidEmbedAccessTokensResponse, error)
GetValidEmbedAccessTokens - Get all valid embed access tokens for the current workspace.
func (*Embeds) RevokeEmbedAccessToken ¶
func (s *Embeds) RevokeEmbedAccessToken(ctx context.Context, request operations.RevokeEmbedAccessTokenRequest, opts ...operations.Option) (*operations.RevokeEmbedAccessTokenResponse, error)
RevokeEmbedAccessToken - Revoke an embed access EmbedToken.
type Events ¶ added in v3.1.0
type Events struct {
// contains filtered or unexported fields
}
Events - REST APIs for capturing event data
func (*Events) GetEventsByTarget ¶ added in v3.14.0
func (s *Events) GetEventsByTarget(ctx context.Context, request operations.GetWorkspaceEventsByTargetRequest, opts ...operations.Option) (*operations.GetWorkspaceEventsByTargetResponse, error)
GetEventsByTarget - Load recent events for a particular workspace
func (*Events) GetTargets ¶ added in v3.14.0
func (s *Events) GetTargets(ctx context.Context, request operations.GetWorkspaceTargetsRequest, opts ...operations.Option) (*operations.GetWorkspaceTargetsResponse, error)
GetTargets - Load targets for a particular workspace
func (*Events) GetTargetsDeprecated ¶ added in v3.14.0
func (s *Events) GetTargetsDeprecated(ctx context.Context, request operations.GetWorkspaceTargetsDeprecatedRequest, opts ...operations.Option) (*operations.GetWorkspaceTargetsDeprecatedResponse, error)
GetTargetsDeprecated - Load targets for a particular workspace
func (*Events) Post ¶ added in v3.14.0
func (s *Events) Post(ctx context.Context, request operations.PostWorkspaceEventsRequest, opts ...operations.Option) (*operations.PostWorkspaceEventsResponse, error)
Post events for a specific workspace Sends an array of events to be stored for a particular workspace.
func (*Events) Search ¶ added in v3.14.0
func (s *Events) Search(ctx context.Context, request operations.SearchWorkspaceEventsRequest, opts ...operations.Option) (*operations.SearchWorkspaceEventsResponse, error)
Search events for a particular workspace by any field
type Github ¶ added in v3.8.0
type Github struct {
// contains filtered or unexported fields
}
func (*Github) CheckAccess ¶ added in v3.8.9
func (s *Github) CheckAccess(ctx context.Context, request operations.CheckGithubAccessRequest, opts ...operations.Option) (*operations.CheckGithubAccessResponse, error)
func (*Github) CheckPublishingPRs ¶ added in v3.14.0
func (s *Github) CheckPublishingPRs(ctx context.Context, request operations.GithubCheckPublishingPRsRequest, opts ...operations.Option) (*operations.GithubCheckPublishingPRsResponse, error)
func (*Github) CheckPublishingSecrets ¶ added in v3.14.0
func (s *Github) CheckPublishingSecrets(ctx context.Context, request operations.GithubCheckPublishingSecretsRequest, opts ...operations.Option) (*operations.GithubCheckPublishingSecretsResponse, error)
func (*Github) ConfigureCodeSamples ¶ added in v3.8.9
func (s *Github) ConfigureCodeSamples(ctx context.Context, request shared.GithubConfigureCodeSamplesRequest, opts ...operations.Option) (*operations.GithubConfigureCodeSamplesResponse, error)
func (*Github) ConfigureMintlifyRepo ¶ added in v3.8.9
func (s *Github) ConfigureMintlifyRepo(ctx context.Context, request shared.GithubConfigureMintlifyRepoRequest, opts ...operations.Option) (*operations.GithubConfigureMintlifyRepoResponse, error)
func (*Github) ConfigureTarget ¶ added in v3.8.9
func (s *Github) ConfigureTarget(ctx context.Context, request shared.GithubConfigureTargetRequest, opts ...operations.Option) (*operations.GithubConfigureTargetResponse, error)
func (*Github) GetAction ¶ added in v3.9.0
func (s *Github) GetAction(ctx context.Context, request operations.GetGitHubActionRequest, opts ...operations.Option) (*operations.GetGitHubActionResponse, error)
func (*Github) StorePublishingSecrets ¶ added in v3.14.0
func (s *Github) StorePublishingSecrets(ctx context.Context, request shared.GithubStorePublishingSecretsRequest, opts ...operations.Option) (*operations.GithubStorePublishingSecretsResponse, error)
func (*Github) TriggerAction ¶ added in v3.8.9
func (s *Github) TriggerAction(ctx context.Context, request shared.GithubTriggerActionRequest, opts ...operations.Option) (*operations.GithubTriggerActionResponse, error)
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata - REST APIs for managing Version Metadata entities
func (*Metadata) DeleteVersionMetadata ¶
func (s *Metadata) DeleteVersionMetadata(ctx context.Context, request operations.DeleteVersionMetadataRequest, opts ...operations.Option) (*operations.DeleteVersionMetadataResponse, error)
DeleteVersionMetadata - Delete metadata for a particular apiID and versionID.
func (*Metadata) GetVersionMetadata ¶
func (s *Metadata) GetVersionMetadata(ctx context.Context, request operations.GetVersionMetadataRequest, opts ...operations.Option) (*operations.GetVersionMetadataResponse, error)
GetVersionMetadata - Get all metadata for a particular apiID and versionID.
func (*Metadata) InsertVersionMetadata ¶
func (s *Metadata) InsertVersionMetadata(ctx context.Context, request operations.InsertVersionMetadataRequest, opts ...operations.Option) (*operations.InsertVersionMetadataResponse, error)
InsertVersionMetadata - Insert metadata for a particular apiID and versionID.
type Organizations ¶ added in v3.4.2
type Organizations struct {
// contains filtered or unexported fields
}
func (*Organizations) Create ¶ added in v3.14.0
func (s *Organizations) Create(ctx context.Context, request shared.Organization, opts ...operations.Option) (*operations.CreateOrganizationResponse, error)
Create an organization Creates an organization
func (*Organizations) CreateFreeTrial ¶ added in v3.8.2
func (s *Organizations) CreateFreeTrial(ctx context.Context, opts ...operations.Option) (*operations.CreateFreeTrialResponse, error)
CreateFreeTrial - Create a free trial for an organization Creates a free trial for an organization
func (*Organizations) Get ¶ added in v3.14.0
func (s *Organizations) Get(ctx context.Context, request operations.GetOrganizationRequest, opts ...operations.Option) (*operations.GetOrganizationResponse, error)
Get organization Get information about a particular organization.
func (*Organizations) GetAll ¶ added in v3.14.0
func (s *Organizations) GetAll(ctx context.Context, opts ...operations.Option) (*operations.GetOrganizationsResponse, error)
GetAll - Get organizations for a user Returns a list of organizations a user has access too
func (*Organizations) GetUsage ¶ added in v3.14.0
func (s *Organizations) GetUsage(ctx context.Context, opts ...operations.Option) (*operations.GetOrganizationUsageResponse, error)
GetUsage - Get billing usage summary for a particular organization Returns a billing usage summary by target languages for a particular organization
type Reports ¶ added in v3.5.5
type Reports struct {
// contains filtered or unexported fields
}
Reports - REST APIs for managing reports
func (*Reports) GetChangesReportSignedURL ¶ added in v3.5.6
func (s *Reports) GetChangesReportSignedURL(ctx context.Context, request operations.GetChangesReportSignedURLRequest, opts ...operations.Option) (*operations.GetChangesReportSignedURLResponse, error)
GetChangesReportSignedURL - Get the signed access url for the change reports for a particular document.
func (*Reports) GetLintingReportSignedURL ¶ added in v3.5.5
func (s *Reports) GetLintingReportSignedURL(ctx context.Context, request operations.GetLintingReportSignedURLRequest, opts ...operations.Option) (*operations.GetLintingReportSignedURLResponse, error)
GetLintingReportSignedURL - Get the signed access url for the linting reports for a particular document.
func (*Reports) UploadReport ¶ added in v3.5.5
func (s *Reports) UploadReport(ctx context.Context, request operations.UploadReportRequestBody, opts ...operations.Option) (*operations.UploadReportResponse, error)
UploadReport - Upload a report.
type Requests ¶
type Requests struct {
// contains filtered or unexported fields
}
Requests - REST APIs for retrieving request information
func (*Requests) GenerateRequestPostmanCollection ¶
func (s *Requests) GenerateRequestPostmanCollection(ctx context.Context, request operations.GenerateRequestPostmanCollectionRequest, opts ...operations.Option) (*operations.GenerateRequestPostmanCollectionResponse, error)
GenerateRequestPostmanCollection - Generate a Postman collection for a particular request. Generates a Postman collection for a particular request. Allowing it to be replayed with the same inputs that were captured by the SDK.
func (*Requests) GetRequestFromEventLog ¶
func (s *Requests) GetRequestFromEventLog(ctx context.Context, request operations.GetRequestFromEventLogRequest, opts ...operations.Option) (*operations.GetRequestFromEventLogResponse, error)
GetRequestFromEventLog - Get information about a particular request.
func (*Requests) QueryEventLog ¶
func (s *Requests) QueryEventLog(ctx context.Context, request operations.QueryEventLogRequest, opts ...operations.Option) (*operations.QueryEventLogResponse, error)
QueryEventLog - Query the event log to retrieve a list of requests. Supports retrieving a list of request captured by the SDK for this workspace. Allows the filtering of requests on a number of criteria such as ApiID, VersionID, Path, Method, etc.
type SDKOption ¶
type SDKOption func(*Speakeasy)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶
func WithSecurity ¶
WithSecurity configures the SDK to use the provided security details
func WithSecuritySource ¶
WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication
func WithServer ¶
WithServer allows the overriding of the default server by name
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
func WithTemplatedServerURL ¶
WithTemplatedServerURL allows the overriding of the default server URL with a templated URL populated with the provided parameters
func WithTimeout ¶ added in v3.9.0
WithTimeout Optional request timeout applied to each operation
func WithWorkspaceID ¶ added in v3.1.0
WithWorkspaceID allows setting the WorkspaceID parameter for all supported operations
type Schemas ¶
type Schemas struct {
// contains filtered or unexported fields
}
Schemas - REST APIs for managing Schema entities
func (*Schemas) DeleteSchema ¶
func (s *Schemas) DeleteSchema(ctx context.Context, request operations.DeleteSchemaRequest, opts ...operations.Option) (*operations.DeleteSchemaResponse, error)
DeleteSchema - Delete a particular schema revision for an Api.
func (*Schemas) DownloadSchema ¶
func (s *Schemas) DownloadSchema(ctx context.Context, request operations.DownloadSchemaRequest, opts ...operations.Option) (*operations.DownloadSchemaResponse, error)
DownloadSchema - Download the latest schema for a particular apiID.
func (*Schemas) DownloadSchemaRevision ¶
func (s *Schemas) DownloadSchemaRevision(ctx context.Context, request operations.DownloadSchemaRevisionRequest, opts ...operations.Option) (*operations.DownloadSchemaRevisionResponse, error)
DownloadSchemaRevision - Download a particular schema revision for an Api.
func (*Schemas) GetSchema ¶
func (s *Schemas) GetSchema(ctx context.Context, request operations.GetSchemaRequest, opts ...operations.Option) (*operations.GetSchemaResponse, error)
GetSchema - Get information about the latest schema. Returns information about the last uploaded schema for a particular API version. This won't include the schema itself, that can be retrieved via the downloadSchema operation.
func (*Schemas) GetSchemaDiff ¶
func (s *Schemas) GetSchemaDiff(ctx context.Context, request operations.GetSchemaDiffRequest, opts ...operations.Option) (*operations.GetSchemaDiffResponse, error)
GetSchemaDiff - Get a diff of two schema revisions for an Api.
func (*Schemas) GetSchemaRevision ¶
func (s *Schemas) GetSchemaRevision(ctx context.Context, request operations.GetSchemaRevisionRequest, opts ...operations.Option) (*operations.GetSchemaRevisionResponse, error)
GetSchemaRevision - Get information about a particular schema revision for an Api. Returns information about the last uploaded schema for a particular schema revision. This won't include the schema itself, that can be retrieved via the downloadSchema operation.
func (*Schemas) GetSchemas ¶
func (s *Schemas) GetSchemas(ctx context.Context, request operations.GetSchemasRequest, opts ...operations.Option) (*operations.GetSchemasResponse, error)
GetSchemas - Get information about all schemas associated with a particular apiID. Returns information the schemas associated with a particular apiID. This won't include the schemas themselves, they can be retrieved via the downloadSchema operation.
func (*Schemas) RegisterSchema ¶
func (s *Schemas) RegisterSchema(ctx context.Context, request operations.RegisterSchemaRequest, opts ...operations.Option) (*operations.RegisterSchemaResponse, error)
RegisterSchema - Register a schema. Allows uploading a schema for a particular API version. This will be used to populate ApiEndpoints and used as a base for any schema generation if present.
type ShortURLs ¶ added in v3.9.0
type ShortURLs struct {
// contains filtered or unexported fields
}
ShortURLs - REST APIs for managing short URLs
func (*ShortURLs) Create ¶ added in v3.9.0
func (s *ShortURLs) Create(ctx context.Context, request operations.CreateRequestBody, opts ...operations.Option) (*operations.CreateResponse, error)
Create - Shorten a URL.
type Speakeasy ¶
type Speakeasy struct { // REST APIs for managing Api entities Apis *Apis // REST APIs for managing ApiEndpoint entities APIEndpoints *APIEndpoints // REST APIs for managing Version Metadata entities Metadata *Metadata // REST APIs for managing Schema entities Schemas *Schemas // REST APIs for working with Registry artifacts Artifacts *Artifacts // REST APIs for managing Authentication Auth *Auth // REST APIs for retrieving request information Requests *Requests Github *Github Organizations *Organizations // REST APIs for managing reports Reports *Reports // REST APIs for managing short URLs ShortURLs *ShortURLs // REST APIs for managing LLM OAS suggestions Suggest *Suggest Workspaces *Workspaces // REST APIs for managing embeds Embeds *Embeds // REST APIs for capturing event data Events *Events // REST APIs for managing subscriptions Subscriptions *Subscriptions // contains filtered or unexported fields }
Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events
/docs - The Speakeasy Platform Documentation
type Subscriptions ¶ added in v3.14.8
type Subscriptions struct {
// contains filtered or unexported fields
}
Subscriptions - REST APIs for managing subscriptions
func (*Subscriptions) CreateSubscription ¶ added in v3.14.8
func (s *Subscriptions) CreateSubscription(ctx context.Context, request operations.CreateSubscriptionRequest, opts ...operations.Option) (*operations.CreateSubscriptionResponse, error)
CreateSubscription - Create Subscription
func (*Subscriptions) ListRegistrySubscriptions ¶ added in v3.14.9
func (s *Subscriptions) ListRegistrySubscriptions(ctx context.Context, request operations.ListRegistrySubscriptionsRequest, opts ...operations.Option) (*operations.ListRegistrySubscriptionsResponse, error)
ListRegistrySubscriptions - List Subscriptions
type Suggest ¶ added in v3.8.2
type Suggest struct {
// contains filtered or unexported fields
}
Suggest - REST APIs for managing LLM OAS suggestions
func (*Suggest) Suggest ¶ added in v3.13.1
func (s *Suggest) Suggest(ctx context.Context, request operations.SuggestRequest, opts ...operations.Option) (*operations.SuggestResponse, error)
Suggest - Generate suggestions for improving an OpenAPI document. Get suggestions from an LLM model for improving an OpenAPI document.
func (*Suggest) SuggestItems ¶ added in v3.14.4
func (s *Suggest) SuggestItems(ctx context.Context, request shared.SuggestItemsRequestBody, opts ...operations.Option) (*operations.SuggestItemsResponse, error)
SuggestItems - Generate generic suggestions for a list of items.
func (*Suggest) SuggestOpenAPI ¶ added in v3.13.0
func (s *Suggest) SuggestOpenAPI(ctx context.Context, request operations.SuggestOpenAPIRequest, opts ...operations.Option) (*operations.SuggestOpenAPIResponse, error)
SuggestOpenAPI - (DEPRECATED) Generate suggestions for improving an OpenAPI document. Get suggestions from an LLM model for improving an OpenAPI document.
func (*Suggest) SuggestOpenAPIRegistry ¶ added in v3.13.0
func (s *Suggest) SuggestOpenAPIRegistry(ctx context.Context, request operations.SuggestOpenAPIRegistryRequest, opts ...operations.Option) (*operations.SuggestOpenAPIRegistryResponse, error)
SuggestOpenAPIRegistry - Generate suggestions for improving an OpenAPI document stored in the registry. Get suggestions from an LLM model for improving an OpenAPI document stored in the registry.
type Workspaces ¶ added in v3.10.1
type Workspaces struct {
// contains filtered or unexported fields
}
func (*Workspaces) Create ¶ added in v3.14.0
func (s *Workspaces) Create(ctx context.Context, request shared.Workspace, opts ...operations.Option) (*operations.CreateWorkspaceResponse, error)
Create a workspace Creates a workspace
func (*Workspaces) CreateToken ¶ added in v3.14.0
func (s *Workspaces) CreateToken(ctx context.Context, request operations.CreateWorkspaceTokenRequest, opts ...operations.Option) (*operations.CreateWorkspaceTokenResponse, error)
CreateToken - Create a token for a particular workspace
func (*Workspaces) DeleteToken ¶ added in v3.14.0
func (s *Workspaces) DeleteToken(ctx context.Context, request operations.DeleteWorkspaceTokenRequest, opts ...operations.Option) (*operations.DeleteWorkspaceTokenResponse, error)
DeleteToken - Delete a token for a particular workspace
func (*Workspaces) Get ¶ added in v3.14.0
func (s *Workspaces) Get(ctx context.Context, opts ...operations.Option) (*operations.GetWorkspaceByContextResponse, error)
Get workspace by context Get information about a particular workspace by context.
func (*Workspaces) GetAll ¶ added in v3.14.0
func (s *Workspaces) GetAll(ctx context.Context, opts ...operations.Option) (*operations.GetWorkspacesResponse, error)
GetAll - Get workspaces for a user Returns a list of workspaces a user has access too
func (*Workspaces) GetByID ¶ added in v3.14.0
func (s *Workspaces) GetByID(ctx context.Context, request operations.GetWorkspaceRequest, opts ...operations.Option) (*operations.GetWorkspaceResponse, error)
GetByID - Get workspace Get information about a particular workspace.
func (*Workspaces) GetFeatureFlags ¶ added in v3.14.0
func (s *Workspaces) GetFeatureFlags(ctx context.Context, request operations.GetWorkspaceFeatureFlagsRequest, opts ...operations.Option) (*operations.GetWorkspaceFeatureFlagsResponse, error)
GetFeatureFlags - Get workspace feature flags
func (*Workspaces) GetSettings ¶ added in v3.14.0
func (s *Workspaces) GetSettings(ctx context.Context, request operations.GetWorkspaceSettingsRequest, opts ...operations.Option) (*operations.GetWorkspaceSettingsResponse, error)
GetSettings - Get workspace settings Get settings about a particular workspace.
func (*Workspaces) GetTeam ¶ added in v3.14.0
func (s *Workspaces) GetTeam(ctx context.Context, request operations.GetWorkspaceTeamRequest, opts ...operations.Option) (*operations.GetWorkspaceTeamResponse, error)
GetTeam - Get team members for a particular workspace
func (*Workspaces) GetTokens ¶ added in v3.14.0
func (s *Workspaces) GetTokens(ctx context.Context, request operations.GetWorkspaceTokensRequest, opts ...operations.Option) (*operations.GetWorkspaceTokensResponse, error)
GetTokens - Get tokens for a particular workspace
func (*Workspaces) GrantAccess ¶ added in v3.14.0
func (s *Workspaces) GrantAccess(ctx context.Context, request operations.GrantUserAccessToWorkspaceRequest, opts ...operations.Option) (*operations.GrantUserAccessToWorkspaceResponse, error)
GrantAccess - Grant a user access to a particular workspace
func (*Workspaces) RevokeAccess ¶ added in v3.14.0
func (s *Workspaces) RevokeAccess(ctx context.Context, request operations.RevokeUserAccessToWorkspaceRequest, opts ...operations.Option) (*operations.RevokeUserAccessToWorkspaceResponse, error)
RevokeAccess - Revoke a user's access to a particular workspace
func (*Workspaces) Update ¶ added in v3.14.0
func (s *Workspaces) Update(ctx context.Context, request operations.UpdateWorkspaceDetailsRequest, opts ...operations.Option) (*operations.UpdateWorkspaceDetailsResponse, error)
Update workspace details Update information about a particular workspace.
func (*Workspaces) UpdateSettings ¶ added in v3.14.0
func (s *Workspaces) UpdateSettings(ctx context.Context, request operations.UpdateWorkspaceSettingsRequest, opts ...operations.Option) (*operations.UpdateWorkspaceSettingsResponse, error)
UpdateSettings - Update workspace settings Update settings about a particular workspace.