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 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)
- func (s *Artifacts) SetVisibility(ctx context.Context, request operations.SetVisibilityRequest, ...) (*operations.SetVisibilityResponse, 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 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) GetSetup(ctx context.Context, request operations.GetGithubSetupStateRequest, ...) (*operations.GetGithubSetupStateResponse, error)
- func (s *Github) LinkGithub(ctx context.Context, request operations.LinkGithubAccessRequest, ...) (*operations.LinkGithubAccessResponse, 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 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 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 ShortURLs
- type Speakeasy
- func (s *Speakeasy) GenerateCodeSamplePreview(ctx context.Context, request shared.CodeSampleSchemaInput, ...) (*operations.GenerateCodeSamplePreviewResponse, error)
- func (s *Speakeasy) GenerateCodeSamplePreviewAsync(ctx context.Context, request shared.CodeSampleSchemaInput, ...) (*operations.GenerateCodeSamplePreviewAsyncResponse, error)
- func (s *Speakeasy) GetCodeSamplePreviewAsync(ctx context.Context, request operations.GetCodeSamplePreviewAsyncRequest, ...) (*operations.GetCodeSamplePreviewAsyncResponse, error)
- type Subscriptions
- func (s *Subscriptions) ActivateSubscriptionNamespace(ctx context.Context, request operations.ActivateSubscriptionNamespaceRequest, ...) (*operations.ActivateSubscriptionNamespaceResponse, error)
- func (s *Subscriptions) IgnoreSubscriptionNamespace(ctx context.Context, request operations.IgnoreSubscriptionNamespaceRequest, ...) (*operations.IgnoreSubscriptionNamespaceResponse, 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 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
func (*Artifacts) SetVisibility ¶ added in v3.16.0
func (s *Artifacts) SetVisibility(ctx context.Context, request operations.SetVisibilityRequest, opts ...operations.Option) (*operations.SetVisibilityResponse, error)
SetVisibility - Set visibility of a namespace with an existing metadata entry
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 Events ¶ added in v3.1.0
type Events struct {
// contains filtered or unexported fields
}
Events - REST APIs for managing events captured by a speakeasy binary (CLI, GitHub Action etc)
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
}
Github - REST APIs for managing the github integration
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) GetSetup ¶ added in v3.15.8
func (s *Github) GetSetup(ctx context.Context, request operations.GetGithubSetupStateRequest, opts ...operations.Option) (*operations.GetGithubSetupStateResponse, error)
func (*Github) LinkGithub ¶ added in v3.15.3
func (s *Github) LinkGithub(ctx context.Context, request operations.LinkGithubAccessRequest, opts ...operations.Option) (*operations.LinkGithubAccessResponse, 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 Organizations ¶ added in v3.4.2
type Organizations struct {
// contains filtered or unexported fields
}
Organizations - REST APIs for managing Organizations (speakeasy L1 Tenancy construct)
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 (lint reports, change reports, etc)
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 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 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 working with Registry artifacts Artifacts *Artifacts // REST APIs for managing Authentication Auth *Auth // REST APIs for managing the github integration Github *Github // REST APIs for managing Organizations (speakeasy L1 Tenancy construct) Organizations *Organizations // REST APIs for managing reports (lint reports, change reports, etc) Reports *Reports // REST APIs for managing short URLs ShortURLs *ShortURLs // REST APIs for managing subscriptions Subscriptions *Subscriptions // REST APIs for managing LLM OAS suggestions Suggest *Suggest // REST APIs for managing Workspaces (speakeasy tenancy) Workspaces *Workspaces // REST APIs for managing events captured by a speakeasy binary (CLI, GitHub Action etc) Events *Events // contains filtered or unexported fields }
Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events
/docs - The Speakeasy Platform Documentation
func (*Speakeasy) GenerateCodeSamplePreview ¶ added in v3.15.5
func (s *Speakeasy) GenerateCodeSamplePreview(ctx context.Context, request shared.CodeSampleSchemaInput, opts ...operations.Option) (*operations.GenerateCodeSamplePreviewResponse, error)
GenerateCodeSamplePreview - Generate Code Sample previews from a file and configuration parameters. This endpoint generates Code Sample previews from a file and configuration parameters.
func (*Speakeasy) GenerateCodeSamplePreviewAsync ¶ added in v3.15.5
func (s *Speakeasy) GenerateCodeSamplePreviewAsync(ctx context.Context, request shared.CodeSampleSchemaInput, opts ...operations.Option) (*operations.GenerateCodeSamplePreviewAsyncResponse, error)
GenerateCodeSamplePreviewAsync - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling. This endpoint generates Code Sample previews from a file and configuration parameters, receiving an async JobID response for polling.
func (*Speakeasy) GetCodeSamplePreviewAsync ¶ added in v3.15.5
func (s *Speakeasy) GetCodeSamplePreviewAsync(ctx context.Context, request operations.GetCodeSamplePreviewAsyncRequest, opts ...operations.Option) (*operations.GetCodeSamplePreviewAsyncResponse, error)
GetCodeSamplePreviewAsync - Poll for the result of an asynchronous Code Sample preview generation. Poll for the result of an asynchronous Code Sample preview generation.
type Subscriptions ¶ added in v3.14.8
type Subscriptions struct {
// contains filtered or unexported fields
}
Subscriptions - REST APIs for managing subscriptions
func (*Subscriptions) ActivateSubscriptionNamespace ¶ added in v3.17.1
func (s *Subscriptions) ActivateSubscriptionNamespace(ctx context.Context, request operations.ActivateSubscriptionNamespaceRequest, opts ...operations.Option) (*operations.ActivateSubscriptionNamespaceResponse, error)
ActivateSubscriptionNamespace - Activate an ignored namespace for a subscription
func (*Subscriptions) IgnoreSubscriptionNamespace ¶ added in v3.17.1
func (s *Subscriptions) IgnoreSubscriptionNamespace(ctx context.Context, request operations.IgnoreSubscriptionNamespaceRequest, opts ...operations.Option) (*operations.IgnoreSubscriptionNamespaceResponse, error)
IgnoreSubscriptionNamespace - Ignored a namespace for a subscription
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
}
Workspaces - REST APIs for managing Workspaces (speakeasy tenancy)
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.