Help us shape the future of Go! Take the 2026 Go Developer Survey

appforges

package module
v0.59.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 8 Imported by: 0

README

AppForges Go SDK

Official standard-library-only SDK. Requires Go 1.23 or newer.

Install: go get github.com/appforges/appforges-sdk-go@v0.59.3

Generated from the matching OpenAPI specification tag; JSON fields retain wire snake_case names.

client, err := appforges.NewClient(runtime.WithBearerToken(os.Getenv("APPFORGES_ACCESS_TOKEN")))
if err != nil { panic(err) }
defer client.Close()
profile, err := client.Users.GetProfile(context.Background())

Import appforges "github.com/appforges/appforges-sdk-go" and "github.com/appforges/appforges-sdk-go/runtime". Every API accepts a context. Errors support errors.As; retries honor Retry-After. Optional fields use runtime.Some and runtime.Null to distinguish absence and null. Pagination uses iter.Seq2, and SSE closes connections on early termination.

Documentation

Overview

Code generated by sdk-gen. DO NOT EDIT.

Code generated by sdk-gen. DO NOT EDIT.

Code generated by sdk-gen. DO NOT EDIT.

Code generated by sdk-gen. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError = runtime.APIError

type APIKey

type APIKey struct {
	AllowedScopes runtime.Optional[[]string]     `json:"allowed_scopes"`
	AppId         runtime.Optional[string]       `json:"app_id"`
	CreatedAt     runtime.Optional[Timestamp]    `json:"created_at"`
	ExpiresAt     runtime.Optional[Timestamp]    `json:"expires_at"`
	KeyId         runtime.Optional[string]       `json:"key_id"`
	KeyPrefix     runtime.Optional[string]       `json:"key_prefix"`
	LastUsedAt    runtime.Optional[Timestamp]    `json:"last_used_at"`
	Name          runtime.Optional[string]       `json:"name"`
	RateLimit     runtime.Optional[int64]        `json:"rate_limit"`
	Status        runtime.Optional[APIKeyStatus] `json:"status"`
}

func (APIKey) MarshalJSON

func (v APIKey) MarshalJSON() ([]byte, error)

func (*APIKey) UnmarshalJSON

func (v *APIKey) UnmarshalJSON(data []byte) error

type APIKeyStatus

type APIKeyStatus string
const (
	APIKeyStatusAPIKEYSTATUSUNSPECIFIED APIKeyStatus = "API_KEY_STATUS_UNSPECIFIED"
	APIKeyStatusAPIKEYSTATUSACTIVE      APIKeyStatus = "API_KEY_STATUS_ACTIVE"
	APIKeyStatusAPIKEYSTATUSREVOKED     APIKeyStatus = "API_KEY_STATUS_REVOKED"
	APIKeyStatusAPIKEYSTATUSEXPIRED     APIKeyStatus = "API_KEY_STATUS_EXPIRED"
)

func (APIKeyStatus) MarshalJSON

func (v APIKeyStatus) MarshalJSON() ([]byte, error)

func (*APIKeyStatus) UnmarshalJSON

func (v *APIKeyStatus) UnmarshalJSON(data []byte) error

type AbortUploadRequest

type AbortUploadRequest struct {
	UploadId string `json:"upload_id"`
	UserId   string `json:"user_id"`
}

func (AbortUploadRequest) MarshalJSON

func (v AbortUploadRequest) MarshalJSON() ([]byte, error)

func (*AbortUploadRequest) UnmarshalJSON

func (v *AbortUploadRequest) UnmarshalJSON(data []byte) error

type AbortUploadResponse

type AbortUploadResponse struct {
	Upload *UploadSession `json:"upload"`
}

func (AbortUploadResponse) MarshalJSON

func (v AbortUploadResponse) MarshalJSON() ([]byte, error)

func (*AbortUploadResponse) UnmarshalJSON

func (v *AbortUploadResponse) UnmarshalJSON(data []byte) error

type AccountStorageProtection

type AccountStorageProtection struct {
	CostSummary      runtime.Optional[*CostSummary] `json:"cost_summary"`
	ExpiresAt        runtime.Optional[Timestamp]    `json:"expires_at"`
	LastCheckedAt    Timestamp                      `json:"last_checked_at"`
	ProtectedAt      runtime.Optional[Timestamp]    `json:"protected_at"`
	Reason           AccountStorageProtectionReason `json:"reason"`
	RemainingSeconds string                         `json:"remaining_seconds"`
	State            AccountStorageProtectionState  `json:"state"`
}

func (AccountStorageProtection) MarshalJSON

func (v AccountStorageProtection) MarshalJSON() ([]byte, error)

func (*AccountStorageProtection) UnmarshalJSON

func (v *AccountStorageProtection) UnmarshalJSON(data []byte) error

type AccountStorageProtectionReason

type AccountStorageProtectionReason string
const (
	AccountStorageProtectionReasonACCOUNTSTORAGEPROTECTIONREASONUNSPECIFIED              AccountStorageProtectionReason = "ACCOUNT_STORAGE_PROTECTION_REASON_UNSPECIFIED"
	AccountStorageProtectionReasonACCOUNTSTORAGEPROTECTIONREASONNORMALACCOUNT            AccountStorageProtectionReason = "ACCOUNT_STORAGE_PROTECTION_REASON_NORMAL_ACCOUNT"
	AccountStorageProtectionReasonACCOUNTSTORAGEPROTECTIONREASONSTORAGEPERIODSETTLED     AccountStorageProtectionReason = "ACCOUNT_STORAGE_PROTECTION_REASON_STORAGE_PERIOD_SETTLED"
	AccountStorageProtectionReasonACCOUNTSTORAGEPROTECTIONREASONSTORAGEADJUSTMENTSETTLED AccountStorageProtectionReason = "ACCOUNT_STORAGE_PROTECTION_REASON_STORAGE_ADJUSTMENT_SETTLED"
	AccountStorageProtectionReasonACCOUNTSTORAGEPROTECTIONREASONBALANCEGRACE             AccountStorageProtectionReason = "ACCOUNT_STORAGE_PROTECTION_REASON_BALANCE_GRACE"
	AccountStorageProtectionReasonACCOUNTSTORAGEPROTECTIONREASONPROTECTIONEXPIRED        AccountStorageProtectionReason = "ACCOUNT_STORAGE_PROTECTION_REASON_PROTECTION_EXPIRED"
	AccountStorageProtectionReasonACCOUNTSTORAGEPROTECTIONREASONCLEANUPCOMPLETE          AccountStorageProtectionReason = "ACCOUNT_STORAGE_PROTECTION_REASON_CLEANUP_COMPLETE"
)

func (AccountStorageProtectionReason) MarshalJSON

func (v AccountStorageProtectionReason) MarshalJSON() ([]byte, error)

func (*AccountStorageProtectionReason) UnmarshalJSON

func (v *AccountStorageProtectionReason) UnmarshalJSON(data []byte) error

type AccountStorageProtectionState

type AccountStorageProtectionState string
const (
	AccountStorageProtectionStateACCOUNTSTORAGEPROTECTIONSTATEUNSPECIFIED   AccountStorageProtectionState = "ACCOUNT_STORAGE_PROTECTION_STATE_UNSPECIFIED"
	AccountStorageProtectionStateACCOUNTSTORAGEPROTECTIONSTATENORMAL        AccountStorageProtectionState = "ACCOUNT_STORAGE_PROTECTION_STATE_NORMAL"
	AccountStorageProtectionStateACCOUNTSTORAGEPROTECTIONSTATEPROTECTED     AccountStorageProtectionState = "ACCOUNT_STORAGE_PROTECTION_STATE_PROTECTED"
	AccountStorageProtectionStateACCOUNTSTORAGEPROTECTIONSTATEEXPIRYCLEANUP AccountStorageProtectionState = "ACCOUNT_STORAGE_PROTECTION_STATE_EXPIRY_CLEANUP"
	AccountStorageProtectionStateACCOUNTSTORAGEPROTECTIONSTATECLOSED        AccountStorageProtectionState = "ACCOUNT_STORAGE_PROTECTION_STATE_CLOSED"
)

func (AccountStorageProtectionState) MarshalJSON

func (v AccountStorageProtectionState) MarshalJSON() ([]byte, error)

func (*AccountStorageProtectionState) UnmarshalJSON

func (v *AccountStorageProtectionState) UnmarshalJSON(data []byte) error

type AddMemberRequest

type AddMemberRequest struct {
	OrgId  runtime.Optional[string]                 `json:"org_id"`
	Role   runtime.Optional[OrganizationMemberRole] `json:"role"`
	UserId runtime.Optional[string]                 `json:"user_id"`
}

func (AddMemberRequest) MarshalJSON

func (v AddMemberRequest) MarshalJSON() ([]byte, error)

func (*AddMemberRequest) UnmarshalJSON

func (v *AddMemberRequest) UnmarshalJSON(data []byte) error

type AddMemberResponse

type AddMemberResponse struct {
	Member runtime.Optional[*OrganizationMember] `json:"member"`
}

func (AddMemberResponse) MarshalJSON

func (v AddMemberResponse) MarshalJSON() ([]byte, error)

func (*AddMemberResponse) UnmarshalJSON

func (v *AddMemberResponse) UnmarshalJSON(data []byte) error

type Any

type Any struct {
	Type runtime.Optional[string] `json:"@type"`
}

func (Any) MarshalJSON

func (v Any) MarshalJSON() ([]byte, error)

func (*Any) UnmarshalJSON

func (v *Any) UnmarshalJSON(data []byte) error

type AppforgesCommonV1PaginationRequest

type AppforgesCommonV1PaginationRequest struct {
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (AppforgesCommonV1PaginationRequest) MarshalJSON

func (v AppforgesCommonV1PaginationRequest) MarshalJSON() ([]byte, error)

func (*AppforgesCommonV1PaginationRequest) UnmarshalJSON

func (v *AppforgesCommonV1PaginationRequest) UnmarshalJSON(data []byte) error

type AppforgesCommonV1PaginationResponse

type AppforgesCommonV1PaginationResponse struct {
	NextPageToken runtime.Optional[string] `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]  `json:"total_count"`
}

func (AppforgesCommonV1PaginationResponse) MarshalJSON

func (v AppforgesCommonV1PaginationResponse) MarshalJSON() ([]byte, error)

func (*AppforgesCommonV1PaginationResponse) UnmarshalJSON

func (v *AppforgesCommonV1PaginationResponse) UnmarshalJSON(data []byte) error

type ApplicationStatus

type ApplicationStatus string
const (
	ApplicationStatusAPPLICATIONSTATUSUNSPECIFIED ApplicationStatus = "APPLICATION_STATUS_UNSPECIFIED"
	ApplicationStatusAPPLICATIONSTATUSACTIVE      ApplicationStatus = "APPLICATION_STATUS_ACTIVE"
	ApplicationStatusAPPLICATIONSTATUSSUSPENDED   ApplicationStatus = "APPLICATION_STATUS_SUSPENDED"
	ApplicationStatusAPPLICATIONSTATUSDELETED     ApplicationStatus = "APPLICATION_STATUS_DELETED"
)

func (ApplicationStatus) MarshalJSON

func (v ApplicationStatus) MarshalJSON() ([]byte, error)

func (*ApplicationStatus) UnmarshalJSON

func (v *ApplicationStatus) UnmarshalJSON(data []byte) error

type ApplicationType

type ApplicationType string
const (
	ApplicationTypeAPPLICATIONTYPEUNSPECIFIED ApplicationType = "APPLICATION_TYPE_UNSPECIFIED"
	ApplicationTypeAPPLICATIONTYPEWEB         ApplicationType = "APPLICATION_TYPE_WEB"
	ApplicationTypeAPPLICATIONTYPESPA         ApplicationType = "APPLICATION_TYPE_SPA"
	ApplicationTypeAPPLICATIONTYPEMOBILE      ApplicationType = "APPLICATION_TYPE_MOBILE"
	ApplicationTypeAPPLICATIONTYPESERVICE     ApplicationType = "APPLICATION_TYPE_SERVICE"
)

func (ApplicationType) MarshalJSON

func (v ApplicationType) MarshalJSON() ([]byte, error)

func (*ApplicationType) UnmarshalJSON

func (v *ApplicationType) UnmarshalJSON(data []byte) error

type ApplyCategoryOrganizationRequest

type ApplyCategoryOrganizationRequest struct {
	BillingIntentId   string `json:"billing_intent_id"`
	EstimateId        string `json:"estimate_id"`
	OrganizationJobId string `json:"organization_job_id"`
	UserId            string `json:"user_id"`
}

func (ApplyCategoryOrganizationRequest) MarshalJSON

func (v ApplyCategoryOrganizationRequest) MarshalJSON() ([]byte, error)

func (*ApplyCategoryOrganizationRequest) UnmarshalJSON

func (v *ApplyCategoryOrganizationRequest) UnmarshalJSON(data []byte) error

type ApplyCategoryOrganizationResponse

type ApplyCategoryOrganizationResponse struct {
	ApplyResult *CategoryOrganizationApplyResult `json:"apply_result"`
}

func (ApplyCategoryOrganizationResponse) MarshalJSON

func (v ApplyCategoryOrganizationResponse) MarshalJSON() ([]byte, error)

func (*ApplyCategoryOrganizationResponse) UnmarshalJSON

func (v *ApplyCategoryOrganizationResponse) UnmarshalJSON(data []byte) error

type Article

type Article struct {
	ArticleId     runtime.Optional[string]        `json:"article_id"`
	Content       runtime.Optional[string]        `json:"content"`
	CoverImageUrl runtime.Optional[string]        `json:"cover_image_url"`
	CreatedAt     runtime.Optional[Timestamp]     `json:"created_at"`
	Format        runtime.Optional[ContentFormat] `json:"format"`
	ProjectId     runtime.Optional[string]        `json:"project_id"`
	Summary       runtime.Optional[string]        `json:"summary"`
	Tags          runtime.Optional[[]string]      `json:"tags"`
	Title         runtime.Optional[string]        `json:"title"`
	UpdatedAt     runtime.Optional[Timestamp]     `json:"updated_at"`
}

func (Article) MarshalJSON

func (v Article) MarshalJSON() ([]byte, error)

func (*Article) UnmarshalJSON

func (v *Article) UnmarshalJSON(data []byte) error

type ArticlesPublishToWechatMpParams

type ArticlesPublishToWechatMpParams struct {
	Body *PublishToWechatMpRequest
}

type ArticlesService

type ArticlesService struct {
	// contains filtered or unexported fields
}

func (*ArticlesService) PublishToWechatMp

type Asset

type Asset struct {
	AssetId         runtime.Optional[string]            `json:"asset_id"`
	ContentType     runtime.Optional[string]            `json:"content_type"`
	CreatedAt       runtime.Optional[Timestamp]         `json:"created_at"`
	DurationSeconds runtime.Optional[int64]             `json:"duration_seconds"`
	Filename        runtime.Optional[string]            `json:"filename"`
	Height          runtime.Optional[int64]             `json:"height"`
	Metadata        runtime.Optional[map[string]string] `json:"metadata"`
	ProjectId       runtime.Optional[string]            `json:"project_id"`
	SizeBytes       runtime.Optional[string]            `json:"size_bytes"`
	Type            runtime.Optional[AssetType]         `json:"type"`
	Url             runtime.Optional[string]            `json:"url"`
	Width           runtime.Optional[int64]             `json:"width"`
}

func (Asset) MarshalJSON

func (v Asset) MarshalJSON() ([]byte, error)

func (*Asset) UnmarshalJSON

func (v *Asset) UnmarshalJSON(data []byte) error

type AssetMetadataEntry

type AssetMetadataEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (AssetMetadataEntry) MarshalJSON

func (v AssetMetadataEntry) MarshalJSON() ([]byte, error)

func (*AssetMetadataEntry) UnmarshalJSON

func (v *AssetMetadataEntry) UnmarshalJSON(data []byte) error

type AssetType

type AssetType string
const (
	AssetTypeASSETTYPEUNSPECIFIED AssetType = "ASSET_TYPE_UNSPECIFIED"
	AssetTypeASSETTYPEIMAGE       AssetType = "ASSET_TYPE_IMAGE"
	AssetTypeASSETTYPEVIDEO       AssetType = "ASSET_TYPE_VIDEO"
	AssetTypeASSETTYPEAUDIO       AssetType = "ASSET_TYPE_AUDIO"
	AssetTypeASSETTYPEDOCUMENT    AssetType = "ASSET_TYPE_DOCUMENT"
)

func (AssetType) MarshalJSON

func (v AssetType) MarshalJSON() ([]byte, error)

func (*AssetType) UnmarshalJSON

func (v *AssetType) UnmarshalJSON(data []byte) error

type AssetsService

type AssetsService struct {
	// contains filtered or unexported fields
}

func (*AssetsService) UploadAsset

type AssetsUploadAssetParams

type AssetsUploadAssetParams struct {
	Body *UploadAssetRequest
}

type AuthorizeAuthorizeParams

type AuthorizeAuthorizeParams struct {
	Body *AuthorizeRequest
}

type AuthorizeRequest

type AuthorizeRequest struct {
	ClientId            runtime.Optional[string] `json:"client_id"`
	CodeChallenge       runtime.Optional[string] `json:"code_challenge"`
	CodeChallengeMethod runtime.Optional[string] `json:"code_challenge_method"`
	Nonce               runtime.Optional[string] `json:"nonce"`
	RedirectUri         runtime.Optional[string] `json:"redirect_uri"`
	ResponseType        runtime.Optional[string] `json:"response_type"`
	Scope               runtime.Optional[string] `json:"scope"`
	State               runtime.Optional[string] `json:"state"`
}

func (AuthorizeRequest) MarshalJSON

func (v AuthorizeRequest) MarshalJSON() ([]byte, error)

func (*AuthorizeRequest) UnmarshalJSON

func (v *AuthorizeRequest) UnmarshalJSON(data []byte) error

type AuthorizeResponse

type AuthorizeResponse struct {
	AuthorizationCode runtime.Optional[string] `json:"authorization_code"`
	RedirectUri       runtime.Optional[string] `json:"redirect_uri"`
	State             runtime.Optional[string] `json:"state"`
}

func (AuthorizeResponse) MarshalJSON

func (v AuthorizeResponse) MarshalJSON() ([]byte, error)

func (*AuthorizeResponse) UnmarshalJSON

func (v *AuthorizeResponse) UnmarshalJSON(data []byte) error

type AuthorizeService

type AuthorizeService struct {
	// contains filtered or unexported fields
}

func (*AuthorizeService) Authorize

type AuthorizedApplication

type AuthorizedApplication struct {
	AppId         runtime.Optional[string]    `json:"app_id"`
	AppName       runtime.Optional[string]    `json:"app_name"`
	AuthorizedAt  runtime.Optional[Timestamp] `json:"authorized_at"`
	GrantedScopes runtime.Optional[[]string]  `json:"granted_scopes"`
	LastUsedAt    runtime.Optional[Timestamp] `json:"last_used_at"`
	LogoUrl       runtime.Optional[string]    `json:"logo_url"`
}

func (AuthorizedApplication) MarshalJSON

func (v AuthorizedApplication) MarshalJSON() ([]byte, error)

func (*AuthorizedApplication) UnmarshalJSON

func (v *AuthorizedApplication) UnmarshalJSON(data []byte) error

type AvatarRetirement

type AvatarRetirement struct {
	MediaId     runtime.Optional[string]                `json:"media_id"`
	OperationId runtime.Optional[string]                `json:"operation_id"`
	State       runtime.Optional[AvatarRetirementState] `json:"state"`
	UpdatedAt   runtime.Optional[Timestamp]             `json:"updated_at"`
}

func (AvatarRetirement) MarshalJSON

func (v AvatarRetirement) MarshalJSON() ([]byte, error)

func (*AvatarRetirement) UnmarshalJSON

func (v *AvatarRetirement) UnmarshalJSON(data []byte) error

type AvatarRetirementState

type AvatarRetirementState string
const (
	AvatarRetirementStateAVATARRETIREMENTSTATEUNSPECIFIED AvatarRetirementState = "AVATAR_RETIREMENT_STATE_UNSPECIFIED"
	AvatarRetirementStateAVATARRETIREMENTSTATEBINDABLE    AvatarRetirementState = "AVATAR_RETIREMENT_STATE_BINDABLE"
	AvatarRetirementStateAVATARRETIREMENTSTATERETIRING    AvatarRetirementState = "AVATAR_RETIREMENT_STATE_RETIRING"
	AvatarRetirementStateAVATARRETIREMENTSTATERETIRED     AvatarRetirementState = "AVATAR_RETIREMENT_STATE_RETIRED"
)

func (AvatarRetirementState) MarshalJSON

func (v AvatarRetirementState) MarshalJSON() ([]byte, error)

func (*AvatarRetirementState) UnmarshalJSON

func (v *AvatarRetirementState) UnmarshalJSON(data []byte) error

type BatchPublishArticleRequest

type BatchPublishArticleRequest struct {
	ArticleId runtime.Optional[string]                `json:"article_id"`
	Targets   runtime.Optional[[]*BatchPublishTarget] `json:"targets"`
}

func (BatchPublishArticleRequest) MarshalJSON

func (v BatchPublishArticleRequest) MarshalJSON() ([]byte, error)

func (*BatchPublishArticleRequest) UnmarshalJSON

func (v *BatchPublishArticleRequest) UnmarshalJSON(data []byte) error

type BatchPublishArticleResponse

type BatchPublishArticleResponse struct {
	Records runtime.Optional[[]*PublishRecord] `json:"records"`
}

func (BatchPublishArticleResponse) MarshalJSON

func (v BatchPublishArticleResponse) MarshalJSON() ([]byte, error)

func (*BatchPublishArticleResponse) UnmarshalJSON

func (v *BatchPublishArticleResponse) UnmarshalJSON(data []byte) error

type BatchPublishTarget

type BatchPublishTarget struct {
	AccountId      runtime.Optional[string]         `json:"account_id"`
	Platform       runtime.Optional[Platform]       `json:"platform"`
	PlatformConfig runtime.Optional[PlatformConfig] `json:"platform_config"`
}

func (BatchPublishTarget) MarshalJSON

func (v BatchPublishTarget) MarshalJSON() ([]byte, error)

func (*BatchPublishTarget) UnmarshalJSON

func (v *BatchPublishTarget) UnmarshalJSON(data []byte) error

type BatchValidateAvatarMediaIDsRequest

type BatchValidateAvatarMediaIDsRequest struct {
	MediaIds runtime.Optional[[]string] `json:"media_ids"`
}

func (BatchValidateAvatarMediaIDsRequest) MarshalJSON

func (v BatchValidateAvatarMediaIDsRequest) MarshalJSON() ([]byte, error)

func (*BatchValidateAvatarMediaIDsRequest) UnmarshalJSON

func (v *BatchValidateAvatarMediaIDsRequest) UnmarshalJSON(data []byte) error

type BatchValidateAvatarMediaIDsResponse

type BatchValidateAvatarMediaIDsResponse struct {
	InUseMediaIds runtime.Optional[[]string] `json:"in_use_media_ids"`
}

func (BatchValidateAvatarMediaIDsResponse) MarshalJSON

func (v BatchValidateAvatarMediaIDsResponse) MarshalJSON() ([]byte, error)

func (*BatchValidateAvatarMediaIDsResponse) UnmarshalJSON

func (v *BatchValidateAvatarMediaIDsResponse) UnmarshalJSON(data []byte) error

type BindPlatformAccountRequest

type BindPlatformAccountRequest struct {
	AuthCode    runtime.Optional[string]   `json:"auth_code"`
	Platform    runtime.Optional[Platform] `json:"platform"`
	RedirectUri runtime.Optional[string]   `json:"redirect_uri"`
}

func (BindPlatformAccountRequest) MarshalJSON

func (v BindPlatformAccountRequest) MarshalJSON() ([]byte, error)

func (*BindPlatformAccountRequest) UnmarshalJSON

func (v *BindPlatformAccountRequest) UnmarshalJSON(data []byte) error

type BindPlatformAccountResponse

type BindPlatformAccountResponse struct {
	Account runtime.Optional[*PlatformAccount] `json:"account"`
}

func (BindPlatformAccountResponse) MarshalJSON

func (v BindPlatformAccountResponse) MarshalJSON() ([]byte, error)

func (*BindPlatformAccountResponse) UnmarshalJSON

func (v *BindPlatformAccountResponse) UnmarshalJSON(data []byte) error

type CancelVideoTaskRequest

type CancelVideoTaskRequest struct {
	TaskId runtime.Optional[string] `json:"task_id"`
}

func (CancelVideoTaskRequest) MarshalJSON

func (v CancelVideoTaskRequest) MarshalJSON() ([]byte, error)

func (*CancelVideoTaskRequest) UnmarshalJSON

func (v *CancelVideoTaskRequest) UnmarshalJSON(data []byte) error

type CancelVideoTaskResponse

type CancelVideoTaskResponse struct {
	Task runtime.Optional[*VideoTask] `json:"task"`
}

func (CancelVideoTaskResponse) MarshalJSON

func (v CancelVideoTaskResponse) MarshalJSON() ([]byte, error)

func (*CancelVideoTaskResponse) UnmarshalJSON

func (v *CancelVideoTaskResponse) UnmarshalJSON(data []byte) error

type Category

type Category struct {
	CategoryId       string                   `json:"category_id"`
	CreatedAt        Timestamp                `json:"created_at"`
	DirectChildCount int64                    `json:"direct_child_count"`
	DirectPageCount  int64                    `json:"direct_page_count"`
	Etag             string                   `json:"etag"`
	Name             string                   `json:"name"`
	ParentCategoryId runtime.Optional[string] `json:"parent_category_id"`
	UpdatedAt        Timestamp                `json:"updated_at"`
}

func (Category) MarshalJSON

func (v Category) MarshalJSON() ([]byte, error)

func (*Category) UnmarshalJSON

func (v *Category) UnmarshalJSON(data []byte) error

type CategoryChange

type CategoryChange struct {
	CategoryId       runtime.Optional[string] `json:"category_id"`
	ChangeType       CategoryChangeType       `json:"change_type"`
	PageId           runtime.Optional[string] `json:"page_id"`
	Summary          string                   `json:"summary"`
	TargetCategoryId runtime.Optional[string] `json:"target_category_id"`
}

func (CategoryChange) MarshalJSON

func (v CategoryChange) MarshalJSON() ([]byte, error)

func (*CategoryChange) UnmarshalJSON

func (v *CategoryChange) UnmarshalJSON(data []byte) error

type CategoryChangeType

type CategoryChangeType string
const (
	CategoryChangeTypeCATEGORYCHANGETYPEUNSPECIFIED  CategoryChangeType = "CATEGORY_CHANGE_TYPE_UNSPECIFIED"
	CategoryChangeTypeCATEGORYCHANGETYPECREATE       CategoryChangeType = "CATEGORY_CHANGE_TYPE_CREATE"
	CategoryChangeTypeCATEGORYCHANGETYPERENAME       CategoryChangeType = "CATEGORY_CHANGE_TYPE_RENAME"
	CategoryChangeTypeCATEGORYCHANGETYPEMOVEPAGE     CategoryChangeType = "CATEGORY_CHANGE_TYPE_MOVE_PAGE"
	CategoryChangeTypeCATEGORYCHANGETYPEMOVECATEGORY CategoryChangeType = "CATEGORY_CHANGE_TYPE_MOVE_CATEGORY"
	CategoryChangeTypeCATEGORYCHANGETYPEMERGE        CategoryChangeType = "CATEGORY_CHANGE_TYPE_MERGE"
	CategoryChangeTypeCATEGORYCHANGETYPEDELETEEMPTY  CategoryChangeType = "CATEGORY_CHANGE_TYPE_DELETE_EMPTY"
)

func (CategoryChangeType) MarshalJSON

func (v CategoryChangeType) MarshalJSON() ([]byte, error)

func (*CategoryChangeType) UnmarshalJSON

func (v *CategoryChangeType) UnmarshalJSON(data []byte) error

type CategoryDeletionPreview

type CategoryDeletionPreview struct {
	AffectedActiveEstimateCount               int64                     `json:"affected_active_estimate_count"`
	AffectedAiCallCount                       int64                     `json:"affected_ai_call_count"`
	AffectedBriefRevisionCount                int64                     `json:"affected_brief_revision_count"`
	AffectedCategories                        []*CategoryDeletionTarget `json:"affected_categories"`
	AffectedCategoryOrganizationEstimateCount int64                     `json:"affected_category_organization_estimate_count"`
	AffectedCategoryOrganizationJobCount      int64                     `json:"affected_category_organization_job_count"`
	AffectedCategoryPlanCount                 int64                     `json:"affected_category_plan_count"`
	AffectedExportCount                       int64                     `json:"affected_export_count"`
	AffectedExternalSourceCount               int64                     `json:"affected_external_source_count"`
	AffectedExternalTempCopyCount             int64                     `json:"affected_external_temp_copy_count"`
	AffectedFailureContextCount               int64                     `json:"affected_failure_context_count"`
	AffectedGenerationPlanCount               int64                     `json:"affected_generation_plan_count"`
	AffectedGenerationPlanStepCount           int64                     `json:"affected_generation_plan_step_count"`
	AffectedJobCount                          int64                     `json:"affected_job_count"`
	AffectedJobInputCount                     int64                     `json:"affected_job_input_count"`
	AffectedMaterialCount                     int64                     `json:"affected_material_count"`
	AffectedPageCount                         int64                     `json:"affected_page_count"`
	AffectedPages                             []*PageDeletionTarget     `json:"affected_pages"`
	AffectedProvisionalCandidateCount         int64                     `json:"affected_provisional_candidate_count"`
	AffectedReplanDecisionCount               int64                     `json:"affected_replan_decision_count"`
	AffectedReviewReportCount                 int64                     `json:"affected_review_report_count"`
	AffectedSourceCount                       int64                     `json:"affected_source_count"`
	AffectedToolCallCount                     int64                     `json:"affected_tool_call_count"`
	AffectedVersionCount                      int64                     `json:"affected_version_count"`
	ConfirmationToken                         string                    `json:"confirmation_token"`
	DescendantCategoryCount                   int64                     `json:"descendant_category_count"`
	DirectChildCount                          int64                     `json:"direct_child_count"`
	ExpiresAt                                 Timestamp                 `json:"expires_at"`
	ImpactFingerprint                         string                    `json:"impact_fingerprint"`
	TreeEtag                                  string                    `json:"tree_etag"`
}

func (CategoryDeletionPreview) MarshalJSON

func (v CategoryDeletionPreview) MarshalJSON() ([]byte, error)

func (*CategoryDeletionPreview) UnmarshalJSON

func (v *CategoryDeletionPreview) UnmarshalJSON(data []byte) error

type CategoryDeletionResult

type CategoryDeletionResult struct {
	AcceptedAt                                Timestamp `json:"accepted_at"`
	AffectedActiveEstimateCount               int64     `json:"affected_active_estimate_count"`
	AffectedAiCallCount                       int64     `json:"affected_ai_call_count"`
	AffectedBriefRevisionCount                int64     `json:"affected_brief_revision_count"`
	AffectedCategoryOrganizationEstimateCount int64     `json:"affected_category_organization_estimate_count"`
	AffectedCategoryOrganizationJobCount      int64     `json:"affected_category_organization_job_count"`
	AffectedCategoryPlanCount                 int64     `json:"affected_category_plan_count"`
	AffectedExportCount                       int64     `json:"affected_export_count"`
	AffectedExternalTempCopyCount             int64     `json:"affected_external_temp_copy_count"`
	AffectedFailureContextCount               int64     `json:"affected_failure_context_count"`
	AffectedJobCount                          int64     `json:"affected_job_count"`
	AffectedJobInputCount                     int64     `json:"affected_job_input_count"`
	AffectedMaterialCount                     int64     `json:"affected_material_count"`
	AffectedPageCount                         int64     `json:"affected_page_count"`
	AffectedProvisionalCandidateCount         int64     `json:"affected_provisional_candidate_count"`
	AffectedReplanDecisionCount               int64     `json:"affected_replan_decision_count"`
	AffectedReviewReportCount                 int64     `json:"affected_review_report_count"`
	AffectedSourceCount                       int64     `json:"affected_source_count"`
	AffectedToolCallCount                     int64     `json:"affected_tool_call_count"`
	AffectedVersionCount                      int64     `json:"affected_version_count"`
	CategoryId                                string    `json:"category_id"`
	DeletedCategoryCount                      int64     `json:"deleted_category_count"`
}

func (CategoryDeletionResult) MarshalJSON

func (v CategoryDeletionResult) MarshalJSON() ([]byte, error)

func (*CategoryDeletionResult) UnmarshalJSON

func (v *CategoryDeletionResult) UnmarshalJSON(data []byte) error

type CategoryDeletionTarget

type CategoryDeletionTarget struct {
	CategoryId string `json:"category_id"`
	Etag       string `json:"etag"`
	Name       string `json:"name"`
}

func (CategoryDeletionTarget) MarshalJSON

func (v CategoryDeletionTarget) MarshalJSON() ([]byte, error)

func (*CategoryDeletionTarget) UnmarshalJSON

func (v *CategoryDeletionTarget) UnmarshalJSON(data []byte) error

type CategoryOrganizationApplyResult

type CategoryOrganizationApplyResult struct {
	AppliedAt          Timestamp    `json:"applied_at"`
	AppliedChangeCount int64        `json:"applied_change_count"`
	CostSummary        *CostSummary `json:"cost_summary"`
	TreeEtag           string       `json:"tree_etag"`
}

func (CategoryOrganizationApplyResult) MarshalJSON

func (v CategoryOrganizationApplyResult) MarshalJSON() ([]byte, error)

func (*CategoryOrganizationApplyResult) UnmarshalJSON

func (v *CategoryOrganizationApplyResult) UnmarshalJSON(data []byte) error

type CategoryOrganizationEstimate

type CategoryOrganizationEstimate struct {
	AuthorizedMaxCredit       string                   `json:"authorized_max_credit"`
	BalanceSufficient         bool                     `json:"balance_sufficient"`
	ConsumedOrganizationJobId runtime.Optional[string] `json:"consumed_organization_job_id"`
	CreatedAt                 Timestamp                `json:"created_at"`
	CurrentBalanceCredit      string                   `json:"current_balance_credit"`
	EstimateId                string                   `json:"estimate_id"`
	EstimatedAiCredit         string                   `json:"estimated_ai_credit"`
	ExpiresAt                 Timestamp                `json:"expires_at"`
	InputFingerprint          string                   `json:"input_fingerprint"`
	PricingVersion            string                   `json:"pricing_version"`
	ScopeCategoryId           runtime.Optional[string] `json:"scope_category_id"`
	State                     EstimateState            `json:"state"`
	TreeEtag                  string                   `json:"tree_etag"`
}

func (CategoryOrganizationEstimate) MarshalJSON

func (v CategoryOrganizationEstimate) MarshalJSON() ([]byte, error)

func (*CategoryOrganizationEstimate) UnmarshalJSON

func (v *CategoryOrganizationEstimate) UnmarshalJSON(data []byte) error

type CategoryOrganizationJob

type CategoryOrganizationJob struct {
	AppliedAt                runtime.Optional[Timestamp]                        `json:"applied_at"`
	BillingIntentId          string                                             `json:"billing_intent_id"`
	CompletedAt              runtime.Optional[Timestamp]                        `json:"completed_at"`
	CostSummary              *CostSummary                                       `json:"cost_summary"`
	CreatedAt                Timestamp                                          `json:"created_at"`
	EstimateId               string                                             `json:"estimate_id"`
	Failure                  runtime.Optional[*JobFailure]                      `json:"failure"`
	OrganizationJobId        string                                             `json:"organization_job_id"`
	PreviewState             runtime.Optional[CategoryOrganizationPreviewState] `json:"preview_state"`
	PreviewUnavailableReason runtime.Optional[string]                           `json:"preview_unavailable_reason"`
	Status                   JobStatus                                          `json:"status"`
	UpdatedAt                Timestamp                                          `json:"updated_at"`
}

func (CategoryOrganizationJob) MarshalJSON

func (v CategoryOrganizationJob) MarshalJSON() ([]byte, error)

func (*CategoryOrganizationJob) UnmarshalJSON

func (v *CategoryOrganizationJob) UnmarshalJSON(data []byte) error

type CategoryOrganizationPreview

type CategoryOrganizationPreview struct {
	AppliedAt         runtime.Optional[Timestamp] `json:"applied_at"`
	BillingIntentId   string                      `json:"billing_intent_id"`
	Changes           []*CategoryChange           `json:"changes"`
	CostSummary       *CostSummary                `json:"cost_summary"`
	EstimateId        string                      `json:"estimate_id"`
	ExpiresAt         Timestamp                   `json:"expires_at"`
	OrganizationJobId string                      `json:"organization_job_id"`
	Summary           string                      `json:"summary"`
	TreeEtag          string                      `json:"tree_etag"`
}

func (CategoryOrganizationPreview) MarshalJSON

func (v CategoryOrganizationPreview) MarshalJSON() ([]byte, error)

func (*CategoryOrganizationPreview) UnmarshalJSON

func (v *CategoryOrganizationPreview) UnmarshalJSON(data []byte) error

type CategoryOrganizationPreviewState

type CategoryOrganizationPreviewState string
const (
	CategoryOrganizationPreviewStateCATEGORYORGANIZATIONPREVIEWSTATEUNSPECIFIED CategoryOrganizationPreviewState = "CATEGORY_ORGANIZATION_PREVIEW_STATE_UNSPECIFIED"
	CategoryOrganizationPreviewStateCATEGORYORGANIZATIONPREVIEWSTATEREADY       CategoryOrganizationPreviewState = "CATEGORY_ORGANIZATION_PREVIEW_STATE_READY"
	CategoryOrganizationPreviewStateCATEGORYORGANIZATIONPREVIEWSTATEAPPLYING    CategoryOrganizationPreviewState = "CATEGORY_ORGANIZATION_PREVIEW_STATE_APPLYING"
	CategoryOrganizationPreviewStateCATEGORYORGANIZATIONPREVIEWSTATEAPPLIED     CategoryOrganizationPreviewState = "CATEGORY_ORGANIZATION_PREVIEW_STATE_APPLIED"
	CategoryOrganizationPreviewStateCATEGORYORGANIZATIONPREVIEWSTATEEXPIRED     CategoryOrganizationPreviewState = "CATEGORY_ORGANIZATION_PREVIEW_STATE_EXPIRED"
)

func (CategoryOrganizationPreviewState) MarshalJSON

func (v CategoryOrganizationPreviewState) MarshalJSON() ([]byte, error)

func (*CategoryOrganizationPreviewState) UnmarshalJSON

func (v *CategoryOrganizationPreviewState) UnmarshalJSON(data []byte) error

type CategoryPreference

type CategoryPreference struct {
	Etag      string                      `json:"etag"`
	Revision  string                      `json:"revision"`
	RulesText string                      `json:"rules_text"`
	UpdatedAt runtime.Optional[Timestamp] `json:"updated_at"`
}

func (CategoryPreference) MarshalJSON

func (v CategoryPreference) MarshalJSON() ([]byte, error)

func (*CategoryPreference) UnmarshalJSON

func (v *CategoryPreference) UnmarshalJSON(data []byte) error

type CategoryPreferenceSnapshot

type CategoryPreferenceSnapshot struct {
	Revision    string `json:"revision"`
	RulesSha256 string `json:"rules_sha256"`
	RulesText   string `json:"rules_text"`
}

func (CategoryPreferenceSnapshot) MarshalJSON

func (v CategoryPreferenceSnapshot) MarshalJSON() ([]byte, error)

func (*CategoryPreferenceSnapshot) UnmarshalJSON

func (v *CategoryPreferenceSnapshot) UnmarshalJSON(data []byte) error

type ChangePasswordRequest

type ChangePasswordRequest struct {
	NewPasswordHash runtime.Optional[string] `json:"new_password_hash"`
	OldPasswordHash runtime.Optional[string] `json:"old_password_hash"`
}

func (ChangePasswordRequest) MarshalJSON

func (v ChangePasswordRequest) MarshalJSON() ([]byte, error)

func (*ChangePasswordRequest) UnmarshalJSON

func (v *ChangePasswordRequest) UnmarshalJSON(data []byte) error

type ChangePasswordResponse

type ChangePasswordResponse = any

type CheckRequest

type CheckRequest struct {
	Action   runtime.Optional[string] `json:"action"`
	Resource runtime.Optional[string] `json:"resource"`
	UserId   runtime.Optional[string] `json:"user_id"`
}

func (CheckRequest) MarshalJSON

func (v CheckRequest) MarshalJSON() ([]byte, error)

func (*CheckRequest) UnmarshalJSON

func (v *CheckRequest) UnmarshalJSON(data []byte) error

type CheckResponse

type CheckResponse struct {
	Allow         runtime.Optional[bool]   `json:"allow"`
	EffectiveRole runtime.Optional[string] `json:"effective_role"`
	Reason        runtime.Optional[string] `json:"reason"`
}

func (CheckResponse) MarshalJSON

func (v CheckResponse) MarshalJSON() ([]byte, error)

func (*CheckResponse) UnmarshalJSON

func (v *CheckResponse) UnmarshalJSON(data []byte) error

type CheckUserExistsRequest

type CheckUserExistsRequest struct {
	Email runtime.Optional[string] `json:"email"`
	Phone runtime.Optional[string] `json:"phone"`
}

func (CheckUserExistsRequest) MarshalJSON

func (v CheckUserExistsRequest) MarshalJSON() ([]byte, error)

func (*CheckUserExistsRequest) UnmarshalJSON

func (v *CheckUserExistsRequest) UnmarshalJSON(data []byte) error

type CheckUserExistsResponse

type CheckUserExistsResponse struct {
	HasPassword  runtime.Optional[bool]   `json:"has_password"`
	IsRegistered runtime.Optional[bool]   `json:"is_registered"`
	Name         runtime.Optional[string] `json:"name"`
}

func (CheckUserExistsResponse) MarshalJSON

func (v CheckUserExistsResponse) MarshalJSON() ([]byte, error)

func (*CheckUserExistsResponse) UnmarshalJSON

func (v *CheckUserExistsResponse) UnmarshalJSON(data []byte) error

type ClaimAvatarRetirementRequest

type ClaimAvatarRetirementRequest struct {
	MediaId     runtime.Optional[string] `json:"media_id"`
	OperationId runtime.Optional[string] `json:"operation_id"`
}

func (ClaimAvatarRetirementRequest) MarshalJSON

func (v ClaimAvatarRetirementRequest) MarshalJSON() ([]byte, error)

func (*ClaimAvatarRetirementRequest) UnmarshalJSON

func (v *ClaimAvatarRetirementRequest) UnmarshalJSON(data []byte) error

type ClaimAvatarRetirementResponse

type ClaimAvatarRetirementResponse struct {
	Retirement runtime.Optional[*AvatarRetirement] `json:"retirement"`
}

func (ClaimAvatarRetirementResponse) MarshalJSON

func (v ClaimAvatarRetirementResponse) MarshalJSON() ([]byte, error)

func (*ClaimAvatarRetirementResponse) UnmarshalJSON

func (v *ClaimAvatarRetirementResponse) UnmarshalJSON(data []byte) error

type Client

type Client struct {
	Articles                        *ArticlesService
	Assets                          *AssetsService
	Authorize                       *AuthorizeService
	CreativePrompt                  *CreativePromptService
	Exports                         *ExportsService
	Instructions                    *InstructionsService
	Introspect                      *IntrospectService
	Jwks                            *JwksService
	Metadata                        *MetadataService
	PinpageCategories               *PinpageCategoriesService
	PinpageCategoryOrganizationJobs *PinpageCategoryOrganizationJobsService
	PinpageCategoryPreference       *PinpageCategoryPreferenceService
	PinpageJobs                     *PinpageJobsService
	PinpageMaterials                *PinpageMaterialsService
	PinpagePages                    *PinpagePagesService
	PinpagePrompt                   *PinpagePromptService
	PinpageStorageProtection        *PinpageStorageProtectionService
	PinpageUploads                  *PinpageUploadsService
	Preview                         *PreviewService
	Progress                        *ProgressService
	Revoke                          *RevokeService
	Scopes                          *ScopesService
	SignUrls                        *SignUrlsService
	TemplatePresets                 *TemplatePresetsService
	Templates                       *TemplatesService
	Token                           *TokenService
	Users                           *UsersService
	Verify                          *VerifyService
	Versions                        *VersionsService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options ...runtime.Option) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

type ClientCredentialStatus

type ClientCredentialStatus string
const (
	ClientCredentialStatusCLIENTCREDENTIALSTATUSUNSPECIFIED ClientCredentialStatus = "CLIENT_CREDENTIAL_STATUS_UNSPECIFIED"
	ClientCredentialStatusCLIENTCREDENTIALSTATUSACTIVE      ClientCredentialStatus = "CLIENT_CREDENTIAL_STATUS_ACTIVE"
	ClientCredentialStatusCLIENTCREDENTIALSTATUSDISABLED    ClientCredentialStatus = "CLIENT_CREDENTIAL_STATUS_DISABLED"
	ClientCredentialStatusCLIENTCREDENTIALSTATUSDELETED     ClientCredentialStatus = "CLIENT_CREDENTIAL_STATUS_DELETED"
)

func (ClientCredentialStatus) MarshalJSON

func (v ClientCredentialStatus) MarshalJSON() ([]byte, error)

func (*ClientCredentialStatus) UnmarshalJSON

func (v *ClientCredentialStatus) UnmarshalJSON(data []byte) error

type ClientCredentialType

type ClientCredentialType string
const (
	ClientCredentialTypeCLIENTCREDENTIALTYPEUNSPECIFIED  ClientCredentialType = "CLIENT_CREDENTIAL_TYPE_UNSPECIFIED"
	ClientCredentialTypeCLIENTCREDENTIALTYPECONFIDENTIAL ClientCredentialType = "CLIENT_CREDENTIAL_TYPE_CONFIDENTIAL"
	ClientCredentialTypeCLIENTCREDENTIALTYPEPUBLIC       ClientCredentialType = "CLIENT_CREDENTIAL_TYPE_PUBLIC"
)

func (ClientCredentialType) MarshalJSON

func (v ClientCredentialType) MarshalJSON() ([]byte, error)

func (*ClientCredentialType) UnmarshalJSON

func (v *ClientCredentialType) UnmarshalJSON(data []byte) error

type CompleteAvatarRetirementRequest

type CompleteAvatarRetirementRequest struct {
	MediaId     runtime.Optional[string] `json:"media_id"`
	OperationId runtime.Optional[string] `json:"operation_id"`
}

func (CompleteAvatarRetirementRequest) MarshalJSON

func (v CompleteAvatarRetirementRequest) MarshalJSON() ([]byte, error)

func (*CompleteAvatarRetirementRequest) UnmarshalJSON

func (v *CompleteAvatarRetirementRequest) UnmarshalJSON(data []byte) error

type CompleteAvatarRetirementResponse

type CompleteAvatarRetirementResponse struct {
	Retirement runtime.Optional[*AvatarRetirement] `json:"retirement"`
}

func (CompleteAvatarRetirementResponse) MarshalJSON

func (v CompleteAvatarRetirementResponse) MarshalJSON() ([]byte, error)

func (*CompleteAvatarRetirementResponse) UnmarshalJSON

func (v *CompleteAvatarRetirementResponse) UnmarshalJSON(data []byte) error

type CompleteUploadRequest

type CompleteUploadRequest struct {
	UploadId string `json:"upload_id"`
	UserId   string `json:"user_id"`
}

func (CompleteUploadRequest) MarshalJSON

func (v CompleteUploadRequest) MarshalJSON() ([]byte, error)

func (*CompleteUploadRequest) UnmarshalJSON

func (v *CompleteUploadRequest) UnmarshalJSON(data []byte) error

type CompleteUploadResponse

type CompleteUploadResponse struct {
	Material runtime.Optional[*Material] `json:"material"`
	Upload   *UploadSession              `json:"upload"`
}

func (CompleteUploadResponse) MarshalJSON

func (v CompleteUploadResponse) MarshalJSON() ([]byte, error)

func (*CompleteUploadResponse) UnmarshalJSON

func (v *CompleteUploadResponse) UnmarshalJSON(data []byte) error

type ConfirmUploadRequest

type ConfirmUploadRequest struct {
	AssetId runtime.Optional[string] `json:"asset_id"`
}

func (ConfirmUploadRequest) MarshalJSON

func (v ConfirmUploadRequest) MarshalJSON() ([]byte, error)

func (*ConfirmUploadRequest) UnmarshalJSON

func (v *ConfirmUploadRequest) UnmarshalJSON(data []byte) error

type ConfirmUploadResponse

type ConfirmUploadResponse struct {
	Asset runtime.Optional[*Asset] `json:"asset"`
}

func (ConfirmUploadResponse) MarshalJSON

func (v ConfirmUploadResponse) MarshalJSON() ([]byte, error)

func (*ConfirmUploadResponse) UnmarshalJSON

func (v *ConfirmUploadResponse) UnmarshalJSON(data []byte) error

type ContentBudgetSummary

type ContentBudgetSummary struct {
	AllowedOrientations []Orientation    `json:"allowed_orientations"`
	ConflictCount       int64            `json:"conflict_count"`
	CurrentOrientation  Orientation      `json:"current_orientation"`
	FitStatus           ContentFitStatus `json:"fit_status"`
	Summary             string           `json:"summary"`
	TargetPageCount     int64            `json:"target_page_count"`
}

func (ContentBudgetSummary) MarshalJSON

func (v ContentBudgetSummary) MarshalJSON() ([]byte, error)

func (*ContentBudgetSummary) UnmarshalJSON

func (v *ContentBudgetSummary) UnmarshalJSON(data []byte) error

type ContentChunk

type ContentChunk struct {
	Index runtime.Optional[int64]  `json:"index"`
	Text  runtime.Optional[string] `json:"text"`
}

func (ContentChunk) MarshalJSON

func (v ContentChunk) MarshalJSON() ([]byte, error)

func (*ContentChunk) UnmarshalJSON

func (v *ContentChunk) UnmarshalJSON(data []byte) error

type ContentConflict

type ContentConflict struct {
	ConflictId  string                     `json:"conflict_id"`
	MaterialIds runtime.Optional[[]string] `json:"material_ids"`
	Summary     string                     `json:"summary"`
}

func (ContentConflict) MarshalJSON

func (v ContentConflict) MarshalJSON() ([]byte, error)

func (*ContentConflict) UnmarshalJSON

func (v *ContentConflict) UnmarshalJSON(data []byte) error

type ContentDecisionAction

type ContentDecisionAction string
const (
	ContentDecisionActionCONTENTDECISIONACTIONUNSPECIFIED       ContentDecisionAction = "CONTENT_DECISION_ACTION_UNSPECIFIED"
	ContentDecisionActionCONTENTDECISIONACTIONPRIORITIZE        ContentDecisionAction = "CONTENT_DECISION_ACTION_PRIORITIZE"
	ContentDecisionActionCONTENTDECISIONACTIONCONDENSE          ContentDecisionAction = "CONTENT_DECISION_ACTION_CONDENSE"
	ContentDecisionActionCONTENTDECISIONACTIONOMIT              ContentDecisionAction = "CONTENT_DECISION_ACTION_OMIT"
	ContentDecisionActionCONTENTDECISIONACTIONCHANGEORIENTATION ContentDecisionAction = "CONTENT_DECISION_ACTION_CHANGE_ORIENTATION"
)

func (ContentDecisionAction) MarshalJSON

func (v ContentDecisionAction) MarshalJSON() ([]byte, error)

func (*ContentDecisionAction) UnmarshalJSON

func (v *ContentDecisionAction) UnmarshalJSON(data []byte) error

type ContentDecisionContext

type ContentDecisionContext struct {
	ActionToken             string                   `json:"action_token"`
	ActionTokenExpiresAt    Timestamp                `json:"action_token_expires_at"`
	BasePageContentRevision string                   `json:"base_page_content_revision"`
	Budget                  *ContentBudgetSummary    `json:"budget"`
	Conflicts               []*ContentConflict       `json:"conflicts"`
	ContextDigest           string                   `json:"context_digest"`
	ContextId               string                   `json:"context_id"`
	Options                 []*ContentDecisionOption `json:"options"`
}

func (ContentDecisionContext) MarshalJSON

func (v ContentDecisionContext) MarshalJSON() ([]byte, error)

func (*ContentDecisionContext) UnmarshalJSON

func (v *ContentDecisionContext) UnmarshalJSON(data []byte) error

type ContentDecisionOption

type ContentDecisionOption struct {
	Action      ContentDecisionAction         `json:"action"`
	Label       string                        `json:"label"`
	OptionId    string                        `json:"option_id"`
	Orientation runtime.Optional[Orientation] `json:"orientation"`
	Summary     string                        `json:"summary"`
}

func (ContentDecisionOption) MarshalJSON

func (v ContentDecisionOption) MarshalJSON() ([]byte, error)

func (*ContentDecisionOption) UnmarshalJSON

func (v *ContentDecisionOption) UnmarshalJSON(data []byte) error

type ContentFitStatus

type ContentFitStatus string
const (
	ContentFitStatusCONTENTFITSTATUSUNSPECIFIED       ContentFitStatus = "CONTENT_FIT_STATUS_UNSPECIFIED"
	ContentFitStatusCONTENTFITSTATUSOVERCONTENTBUDGET ContentFitStatus = "CONTENT_FIT_STATUS_OVER_CONTENT_BUDGET"
)

func (ContentFitStatus) MarshalJSON

func (v ContentFitStatus) MarshalJSON() ([]byte, error)

func (*ContentFitStatus) UnmarshalJSON

func (v *ContentFitStatus) UnmarshalJSON(data []byte) error

type ContentFormat

type ContentFormat string
const (
	ContentFormatCONTENTFORMATUNSPECIFIED ContentFormat = "CONTENT_FORMAT_UNSPECIFIED"
	ContentFormatCONTENTFORMATMARKDOWN    ContentFormat = "CONTENT_FORMAT_MARKDOWN"
	ContentFormatCONTENTFORMATHTML        ContentFormat = "CONTENT_FORMAT_HTML"
)

func (ContentFormat) MarshalJSON

func (v ContentFormat) MarshalJSON() ([]byte, error)

func (*ContentFormat) UnmarshalJSON

func (v *ContentFormat) UnmarshalJSON(data []byte) error

type ConvertToHtmlRequest

type ConvertToHtmlRequest struct {
	ArticleId     runtime.Optional[string] `json:"article_id"`
	Content       runtime.Optional[string] `json:"content"`
	EnableCanvas  runtime.Optional[bool]   `json:"enable_canvas"`
	TemplateStyle runtime.Optional[string] `json:"template_style"`
}

func (ConvertToHtmlRequest) MarshalJSON

func (v ConvertToHtmlRequest) MarshalJSON() ([]byte, error)

func (*ConvertToHtmlRequest) UnmarshalJSON

func (v *ConvertToHtmlRequest) UnmarshalJSON(data []byte) error

type ConvertToHtmlResponse

type ConvertToHtmlResponse struct {
	Article runtime.Optional[*Article]    `json:"article"`
	Done    runtime.Optional[bool]        `json:"done"`
	Event   runtime.Optional[StreamEvent] `json:"event"`
}

func (ConvertToHtmlResponse) MarshalJSON

func (v ConvertToHtmlResponse) MarshalJSON() ([]byte, error)

func (*ConvertToHtmlResponse) UnmarshalJSON

func (v *ConvertToHtmlResponse) UnmarshalJSON(data []byte) error

type CostComponent

type CostComponent string
const (
	CostComponentCOSTCOMPONENTUNSPECIFIED CostComponent = "COST_COMPONENT_UNSPECIFIED"
	CostComponentCOSTCOMPONENTAI          CostComponent = "COST_COMPONENT_AI"
	CostComponentCOSTCOMPONENTFILE        CostComponent = "COST_COMPONENT_FILE"
	CostComponentCOSTCOMPONENTSTORAGE     CostComponent = "COST_COMPONENT_STORAGE"
	CostComponentCOSTCOMPONENTTOOL        CostComponent = "COST_COMPONENT_TOOL"
)

func (CostComponent) MarshalJSON

func (v CostComponent) MarshalJSON() ([]byte, error)

func (*CostComponent) UnmarshalJSON

func (v *CostComponent) UnmarshalJSON(data []byte) error

type CostLedgerEntryRef

type CostLedgerEntryRef struct {
	Component           CostComponent       `json:"component"`
	CreditDelta         string              `json:"credit_delta"`
	EntryType           CostLedgerEntryType `json:"entry_type"`
	OccurredAt          Timestamp           `json:"occurred_at"`
	Purpose             CostPurpose         `json:"purpose"`
	WalletLedgerEntryId string              `json:"wallet_ledger_entry_id"`
}

func (CostLedgerEntryRef) MarshalJSON

func (v CostLedgerEntryRef) MarshalJSON() ([]byte, error)

func (*CostLedgerEntryRef) UnmarshalJSON

func (v *CostLedgerEntryRef) UnmarshalJSON(data []byte) error

type CostLedgerEntryType

type CostLedgerEntryType string
const (
	CostLedgerEntryTypeCOSTLEDGERENTRYTYPEUNSPECIFIED  CostLedgerEntryType = "COST_LEDGER_ENTRY_TYPE_UNSPECIFIED"
	CostLedgerEntryTypeCOSTLEDGERENTRYTYPECONSUME      CostLedgerEntryType = "COST_LEDGER_ENTRY_TYPE_CONSUME"
	CostLedgerEntryTypeCOSTLEDGERENTRYTYPECOMPENSATION CostLedgerEntryType = "COST_LEDGER_ENTRY_TYPE_COMPENSATION"
)

func (CostLedgerEntryType) MarshalJSON

func (v CostLedgerEntryType) MarshalJSON() ([]byte, error)

func (*CostLedgerEntryType) UnmarshalJSON

func (v *CostLedgerEntryType) UnmarshalJSON(data []byte) error

type CostPurpose

type CostPurpose string
const (
	CostPurposeCOSTPURPOSEUNSPECIFIED          CostPurpose = "COST_PURPOSE_UNSPECIFIED"
	CostPurposeCOSTPURPOSECREATEPAGE           CostPurpose = "COST_PURPOSE_CREATE_PAGE"
	CostPurposeCOSTPURPOSEREGENERATEPAGE       CostPurpose = "COST_PURPOSE_REGENERATE_PAGE"
	CostPurposeCOSTPURPOSERETRYJOB             CostPurpose = "COST_PURPOSE_RETRY_JOB"
	CostPurposeCOSTPURPOSEFILEUPLOAD           CostPurpose = "COST_PURPOSE_FILE_UPLOAD"
	CostPurposeCOSTPURPOSECATEGORYORGANIZATION CostPurpose = "COST_PURPOSE_CATEGORY_ORGANIZATION"
	CostPurposeCOSTPURPOSESTORAGEPERIOD        CostPurpose = "COST_PURPOSE_STORAGE_PERIOD"
	CostPurposeCOSTPURPOSESTORAGEADJUSTMENT    CostPurpose = "COST_PURPOSE_STORAGE_ADJUSTMENT"
)

func (CostPurpose) MarshalJSON

func (v CostPurpose) MarshalJSON() ([]byte, error)

func (*CostPurpose) UnmarshalJSON

func (v *CostPurpose) UnmarshalJSON(data []byte) error

type CostSettlementStatus

type CostSettlementStatus string
const (
	CostSettlementStatusCOSTSETTLEMENTSTATUSUNSPECIFIED       CostSettlementStatus = "COST_SETTLEMENT_STATUS_UNSPECIFIED"
	CostSettlementStatusCOSTSETTLEMENTSTATUSRESERVED          CostSettlementStatus = "COST_SETTLEMENT_STATUS_RESERVED"
	CostSettlementStatusCOSTSETTLEMENTSTATUSSETTLED           CostSettlementStatus = "COST_SETTLEMENT_STATUS_SETTLED"
	CostSettlementStatusCOSTSETTLEMENTSTATUSRELEASED          CostSettlementStatus = "COST_SETTLEMENT_STATUS_RELEASED"
	CostSettlementStatusCOSTSETTLEMENTSTATUSSETTLEMENTPENDING CostSettlementStatus = "COST_SETTLEMENT_STATUS_SETTLEMENT_PENDING"
)

func (CostSettlementStatus) MarshalJSON

func (v CostSettlementStatus) MarshalJSON() ([]byte, error)

func (*CostSettlementStatus) UnmarshalJSON

func (v *CostSettlementStatus) UnmarshalJSON(data []byte) error

type CostSummary

type CostSummary struct {
	ActualAiCredit          runtime.Optional[string]                    `json:"actual_ai_credit"`
	ActualFileCredit        runtime.Optional[string]                    `json:"actual_file_credit"`
	ActualToolCredit        runtime.Optional[string]                    `json:"actual_tool_credit"`
	ActualTotalCredit       runtime.Optional[string]                    `json:"actual_total_credit"`
	AuthorizedLimitExceeded runtime.Optional[bool]                      `json:"authorized_limit_exceeded"`
	AuthorizedMaxCredit     runtime.Optional[string]                    `json:"authorized_max_credit"`
	EstimatedAiCredit       string                                      `json:"estimated_ai_credit"`
	EstimatedFileCredit     string                                      `json:"estimated_file_credit"`
	EstimatedToolCredit     string                                      `json:"estimated_tool_credit"`
	EstimatedTotalCredit    string                                      `json:"estimated_total_credit"`
	NetAdjustmentCredit     runtime.Optional[string]                    `json:"net_adjustment_credit"`
	PeriodEnd               runtime.Optional[Timestamp]                 `json:"period_end"`
	PeriodStart             runtime.Optional[Timestamp]                 `json:"period_start"`
	PricingVersion          string                                      `json:"pricing_version"`
	Purpose                 CostPurpose                                 `json:"purpose"`
	ReleasedAt              runtime.Optional[Timestamp]                 `json:"released_at"`
	SettledAt               runtime.Optional[Timestamp]                 `json:"settled_at"`
	SettlementStatus        CostSettlementStatus                        `json:"settlement_status"`
	StorageStatement        runtime.Optional[*StorageStatementSnapshot] `json:"storage_statement"`
	UpdatedAt               Timestamp                                   `json:"updated_at"`
	WalletLedgerEntries     runtime.Optional[[]*CostLedgerEntryRef]     `json:"wallet_ledger_entries"`
}

func (CostSummary) MarshalJSON

func (v CostSummary) MarshalJSON() ([]byte, error)

func (*CostSummary) UnmarshalJSON

func (v *CostSummary) UnmarshalJSON(data []byte) error

type CreateAPIKeyRequest

type CreateAPIKeyRequest struct {
	AllowedScopes runtime.Optional[[]string]  `json:"allowed_scopes"`
	AppId         runtime.Optional[string]    `json:"app_id"`
	ExpiresAt     runtime.Optional[Timestamp] `json:"expires_at"`
	Name          runtime.Optional[string]    `json:"name"`
	RateLimit     runtime.Optional[int64]     `json:"rate_limit"`
}

func (CreateAPIKeyRequest) MarshalJSON

func (v CreateAPIKeyRequest) MarshalJSON() ([]byte, error)

func (*CreateAPIKeyRequest) UnmarshalJSON

func (v *CreateAPIKeyRequest) UnmarshalJSON(data []byte) error

type CreateAPIKeyResponse

type CreateAPIKeyResponse struct {
	ApiKey runtime.Optional[*APIKey] `json:"api_key"`
	Key    runtime.Optional[string]  `json:"key"`
}

func (CreateAPIKeyResponse) MarshalJSON

func (v CreateAPIKeyResponse) MarshalJSON() ([]byte, error)

func (*CreateAPIKeyResponse) UnmarshalJSON

func (v *CreateAPIKeyResponse) UnmarshalJSON(data []byte) error

type CreateApplicationRequest

type CreateApplicationRequest struct {
	AllowedIdentities runtime.Optional[[]IdentityType]  `json:"allowed_identities"`
	AllowedScopes     runtime.Optional[[]string]        `json:"allowed_scopes"`
	AppName           runtime.Optional[string]          `json:"app_name"`
	AppType           runtime.Optional[ApplicationType] `json:"app_type"`
	Description       runtime.Optional[string]          `json:"description"`
	HomepageUrl       runtime.Optional[string]          `json:"homepage_url"`
	LogoUrl           runtime.Optional[string]          `json:"logo_url"`
	RedirectUris      runtime.Optional[[]string]        `json:"redirect_uris"`
}

func (CreateApplicationRequest) MarshalJSON

func (v CreateApplicationRequest) MarshalJSON() ([]byte, error)

func (*CreateApplicationRequest) UnmarshalJSON

func (v *CreateApplicationRequest) UnmarshalJSON(data []byte) error

type CreateApplicationResponse

type CreateApplicationResponse struct {
	Application  runtime.Optional[*OAuthApplication] `json:"application"`
	ClientSecret runtime.Optional[string]            `json:"client_secret"`
}

func (CreateApplicationResponse) MarshalJSON

func (v CreateApplicationResponse) MarshalJSON() ([]byte, error)

func (*CreateApplicationResponse) UnmarshalJSON

func (v *CreateApplicationResponse) UnmarshalJSON(data []byte) error

type CreateArticleRequest

type CreateArticleRequest struct {
	Language      runtime.Optional[string]   `json:"language"`
	ProjectId     runtime.Optional[string]   `json:"project_id"`
	ReferenceUrls runtime.Optional[[]string] `json:"reference_urls"`
	Requirements  runtime.Optional[string]   `json:"requirements"`
	Style         runtime.Optional[string]   `json:"style"`
	Topic         runtime.Optional[string]   `json:"topic"`
}

func (CreateArticleRequest) MarshalJSON

func (v CreateArticleRequest) MarshalJSON() ([]byte, error)

func (*CreateArticleRequest) UnmarshalJSON

func (v *CreateArticleRequest) UnmarshalJSON(data []byte) error

type CreateArticleResponse

type CreateArticleResponse struct {
	Article runtime.Optional[*Article]    `json:"article"`
	Done    runtime.Optional[bool]        `json:"done"`
	Event   runtime.Optional[StreamEvent] `json:"event"`
}

func (CreateArticleResponse) MarshalJSON

func (v CreateArticleResponse) MarshalJSON() ([]byte, error)

func (*CreateArticleResponse) UnmarshalJSON

func (v *CreateArticleResponse) UnmarshalJSON(data []byte) error

type CreateGenerationRequest

type CreateGenerationRequest struct {
	ClientReference runtime.Optional[string]      `json:"client_reference"`
	Instruction     string                        `json:"instruction"`
	MaterialIds     runtime.Optional[[]string]    `json:"material_ids"`
	Orientation     runtime.Optional[Orientation] `json:"orientation"`
	Title           runtime.Optional[string]      `json:"title"`
	UiLocale        runtime.Optional[string]      `json:"ui_locale"`
	UserId          string                        `json:"user_id"`
}

func (CreateGenerationRequest) MarshalJSON

func (v CreateGenerationRequest) MarshalJSON() ([]byte, error)

func (*CreateGenerationRequest) UnmarshalJSON

func (v *CreateGenerationRequest) UnmarshalJSON(data []byte) error

type CreateGenerationResponse

type CreateGenerationResponse struct {
	Job  *JobSummary `json:"job"`
	Page *Page       `json:"page"`
}

func (CreateGenerationResponse) MarshalJSON

func (v CreateGenerationResponse) MarshalJSON() ([]byte, error)

func (*CreateGenerationResponse) UnmarshalJSON

func (v *CreateGenerationResponse) UnmarshalJSON(data []byte) error

type CreateOAuthClientRequest

type CreateOAuthClientRequest struct {
	AllowedGrantTypes runtime.Optional[[]GrantType]          `json:"allowed_grant_types"`
	AllowedIdentities runtime.Optional[[]IdentityType]       `json:"allowed_identities"`
	AllowedScopes     runtime.Optional[[]string]             `json:"allowed_scopes"`
	AppId             runtime.Optional[string]               `json:"app_id"`
	ClientType        runtime.Optional[ClientCredentialType] `json:"client_type"`
	Description       runtime.Optional[string]               `json:"description"`
	Name              runtime.Optional[string]               `json:"name"`
	RedirectUris      runtime.Optional[[]string]             `json:"redirect_uris"`
}

func (CreateOAuthClientRequest) MarshalJSON

func (v CreateOAuthClientRequest) MarshalJSON() ([]byte, error)

func (*CreateOAuthClientRequest) UnmarshalJSON

func (v *CreateOAuthClientRequest) UnmarshalJSON(data []byte) error

type CreateOAuthClientResponse

type CreateOAuthClientResponse struct {
	Client       runtime.Optional[*OAuthClient] `json:"client"`
	ClientSecret runtime.Optional[string]       `json:"client_secret"`
}

func (CreateOAuthClientResponse) MarshalJSON

func (v CreateOAuthClientResponse) MarshalJSON() ([]byte, error)

func (*CreateOAuthClientResponse) UnmarshalJSON

func (v *CreateOAuthClientResponse) UnmarshalJSON(data []byte) error

type CreateOrganizationRequest

type CreateOrganizationRequest struct {
	Metadata runtime.Optional[string] `json:"metadata"`
	Name     runtime.Optional[string] `json:"name"`
	Slug     runtime.Optional[string] `json:"slug"`
}

func (CreateOrganizationRequest) MarshalJSON

func (v CreateOrganizationRequest) MarshalJSON() ([]byte, error)

func (*CreateOrganizationRequest) UnmarshalJSON

func (v *CreateOrganizationRequest) UnmarshalJSON(data []byte) error

type CreateOrganizationResponse

type CreateOrganizationResponse struct {
	Organization runtime.Optional[*Organization] `json:"organization"`
}

func (CreateOrganizationResponse) MarshalJSON

func (v CreateOrganizationResponse) MarshalJSON() ([]byte, error)

func (*CreateOrganizationResponse) UnmarshalJSON

func (v *CreateOrganizationResponse) UnmarshalJSON(data []byte) error

type CreatePresetRequest

type CreatePresetRequest struct {
	Config     runtime.Optional[string] `json:"config"`
	Name       runtime.Optional[string] `json:"name"`
	TemplateId runtime.Optional[string] `json:"template_id"`
}

func (CreatePresetRequest) MarshalJSON

func (v CreatePresetRequest) MarshalJSON() ([]byte, error)

func (*CreatePresetRequest) UnmarshalJSON

func (v *CreatePresetRequest) UnmarshalJSON(data []byte) error

type CreatePresetResponse

type CreatePresetResponse struct {
	Preset runtime.Optional[*Preset] `json:"preset"`
}

func (CreatePresetResponse) MarshalJSON

func (v CreatePresetResponse) MarshalJSON() ([]byte, error)

func (*CreatePresetResponse) UnmarshalJSON

func (v *CreatePresetResponse) UnmarshalJSON(data []byte) error

type CreateProjectRequest

type CreateProjectRequest struct {
	Description runtime.Optional[string]            `json:"description"`
	Metadata    runtime.Optional[map[string]string] `json:"metadata"`
	Name        runtime.Optional[string]            `json:"name"`
	Tags        runtime.Optional[[]string]          `json:"tags"`
}

func (CreateProjectRequest) MarshalJSON

func (v CreateProjectRequest) MarshalJSON() ([]byte, error)

func (*CreateProjectRequest) UnmarshalJSON

func (v *CreateProjectRequest) UnmarshalJSON(data []byte) error

type CreateProjectRequestMetadataEntry

type CreateProjectRequestMetadataEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (CreateProjectRequestMetadataEntry) MarshalJSON

func (v CreateProjectRequestMetadataEntry) MarshalJSON() ([]byte, error)

func (*CreateProjectRequestMetadataEntry) UnmarshalJSON

func (v *CreateProjectRequestMetadataEntry) UnmarshalJSON(data []byte) error

type CreateProjectResponse

type CreateProjectResponse struct {
	Project runtime.Optional[*Project] `json:"project"`
}

func (CreateProjectResponse) MarshalJSON

func (v CreateProjectResponse) MarshalJSON() ([]byte, error)

func (*CreateProjectResponse) UnmarshalJSON

func (v *CreateProjectResponse) UnmarshalJSON(data []byte) error

type CreateScopeRequest

type CreateScopeRequest struct {
	Category    runtime.Optional[string] `json:"category"`
	Description runtime.Optional[string] `json:"description"`
	DisplayName runtime.Optional[string] `json:"display_name"`
	IsSensitive runtime.Optional[bool]   `json:"is_sensitive"`
	Name        runtime.Optional[string] `json:"name"`
}

func (CreateScopeRequest) MarshalJSON

func (v CreateScopeRequest) MarshalJSON() ([]byte, error)

func (*CreateScopeRequest) UnmarshalJSON

func (v *CreateScopeRequest) UnmarshalJSON(data []byte) error

type CreateScopeResponse

type CreateScopeResponse struct {
	Scope runtime.Optional[*Scope] `json:"scope"`
}

func (CreateScopeResponse) MarshalJSON

func (v CreateScopeResponse) MarshalJSON() ([]byte, error)

func (*CreateScopeResponse) UnmarshalJSON

func (v *CreateScopeResponse) UnmarshalJSON(data []byte) error

type CreateSessionRequest

type CreateSessionRequest struct {
	DeviceInfo runtime.Optional[*DeviceInfo] `json:"device_info"`
	Ip         runtime.Optional[string]      `json:"ip"`
	Port       runtime.Optional[int64]       `json:"port"`
}

func (CreateSessionRequest) MarshalJSON

func (v CreateSessionRequest) MarshalJSON() ([]byte, error)

func (*CreateSessionRequest) UnmarshalJSON

func (v *CreateSessionRequest) UnmarshalJSON(data []byte) error

type CreateSessionResponse

type CreateSessionResponse struct {
	CsrfToken runtime.Optional[string]     `json:"csrf_token"`
	SessionId runtime.Optional[string]     `json:"session_id"`
	Tokens    runtime.Optional[*TokenPair] `json:"tokens"`
}

func (CreateSessionResponse) MarshalJSON

func (v CreateSessionResponse) MarshalJSON() ([]byte, error)

func (*CreateSessionResponse) UnmarshalJSON

func (v *CreateSessionResponse) UnmarshalJSON(data []byte) error

type CreateUploadRequest

type CreateUploadRequest struct {
	ConfirmedAuthorizedMaxCredit string `json:"confirmed_authorized_max_credit"`
	EstimateItemId               string `json:"estimate_item_id"`
	UserId                       string `json:"user_id"`
}

func (CreateUploadRequest) MarshalJSON

func (v CreateUploadRequest) MarshalJSON() ([]byte, error)

func (*CreateUploadRequest) UnmarshalJSON

func (v *CreateUploadRequest) UnmarshalJSON(data []byte) error

type CreateUploadResponse

type CreateUploadResponse struct {
	Upload         *UploadSession  `json:"upload"`
	UploadEstimate *UploadEstimate `json:"upload_estimate"`
}

func (CreateUploadResponse) MarshalJSON

func (v CreateUploadResponse) MarshalJSON() ([]byte, error)

func (*CreateUploadResponse) UnmarshalJSON

func (v *CreateUploadResponse) UnmarshalJSON(data []byte) error

type CreateVideoRequest

type CreateVideoRequest struct {
	AssetIds  runtime.Optional[[]string]   `json:"asset_ids"`
	Height    runtime.Optional[int64]      `json:"height"`
	ProjectId runtime.Optional[string]     `json:"project_id"`
	Script    runtime.Optional[string]     `json:"script"`
	Style     runtime.Optional[VideoStyle] `json:"style"`
	TaskId    runtime.Optional[string]     `json:"task_id"`
	Width     runtime.Optional[int64]      `json:"width"`
}

func (CreateVideoRequest) MarshalJSON

func (v CreateVideoRequest) MarshalJSON() ([]byte, error)

func (*CreateVideoRequest) UnmarshalJSON

func (v *CreateVideoRequest) UnmarshalJSON(data []byte) error

type CreateVideoResponse

type CreateVideoResponse struct {
	Task runtime.Optional[*VideoTask] `json:"task"`
}

func (CreateVideoResponse) MarshalJSON

func (v CreateVideoResponse) MarshalJSON() ([]byte, error)

func (*CreateVideoResponse) UnmarshalJSON

func (v *CreateVideoResponse) UnmarshalJSON(data []byte) error

type CreateWebhookRequest

type CreateWebhookRequest struct {
	AppId            runtime.Optional[string]   `json:"app_id"`
	SubscribedEvents runtime.Optional[[]string] `json:"subscribed_events"`
	Url              runtime.Optional[string]   `json:"url"`
}

func (CreateWebhookRequest) MarshalJSON

func (v CreateWebhookRequest) MarshalJSON() ([]byte, error)

func (*CreateWebhookRequest) UnmarshalJSON

func (v *CreateWebhookRequest) UnmarshalJSON(data []byte) error

type CreateWebhookResponse

type CreateWebhookResponse struct {
	SigningSecret runtime.Optional[string]   `json:"signing_secret"`
	Webhook       runtime.Optional[*Webhook] `json:"webhook"`
}

func (CreateWebhookResponse) MarshalJSON

func (v CreateWebhookResponse) MarshalJSON() ([]byte, error)

func (*CreateWebhookResponse) UnmarshalJSON

func (v *CreateWebhookResponse) UnmarshalJSON(data []byte) error

type CreativePromptGetPromptTemplateParams

type CreativePromptGetPromptTemplateParams struct {
	TemplateId string
}

type CreativePromptService

type CreativePromptService struct {
	// contains filtered or unexported fields
}

func (*CreativePromptService) GetPromptTemplate

type CurrentVersionSummary

type CurrentVersionSummary struct {
	HtmlSha256            string      `json:"html_sha256"`
	Orientation           Orientation `json:"orientation"`
	PngExportId           string      `json:"png_export_id"`
	PngSha256             string      `json:"png_sha256"`
	PngSizeBytes          string      `json:"png_size_bytes"`
	ThumbnailUrl          string      `json:"thumbnail_url"`
	ThumbnailUrlExpiresAt Timestamp   `json:"thumbnail_url_expires_at"`
	VersionId             string      `json:"version_id"`
}

func (CurrentVersionSummary) MarshalJSON

func (v CurrentVersionSummary) MarshalJSON() ([]byte, error)

func (*CurrentVersionSummary) UnmarshalJSON

func (v *CurrentVersionSummary) UnmarshalJSON(data []byte) error

type DeleteAccountRequest

type DeleteAccountRequest struct {
	PasswordHash runtime.Optional[string] `json:"password_hash"`
	Reason       runtime.Optional[string] `json:"reason"`
}

func (DeleteAccountRequest) MarshalJSON

func (v DeleteAccountRequest) MarshalJSON() ([]byte, error)

func (*DeleteAccountRequest) UnmarshalJSON

func (v *DeleteAccountRequest) UnmarshalJSON(data []byte) error

type DeleteAccountResponse

type DeleteAccountResponse = any

type DeleteApplicationRequest

type DeleteApplicationRequest struct {
	AppId runtime.Optional[string] `json:"app_id"`
}

func (DeleteApplicationRequest) MarshalJSON

func (v DeleteApplicationRequest) MarshalJSON() ([]byte, error)

func (*DeleteApplicationRequest) UnmarshalJSON

func (v *DeleteApplicationRequest) UnmarshalJSON(data []byte) error

type DeleteApplicationResponse

type DeleteApplicationResponse = any

type DeleteArticleRequest

type DeleteArticleRequest struct {
	ArticleId runtime.Optional[string] `json:"article_id"`
}

func (DeleteArticleRequest) MarshalJSON

func (v DeleteArticleRequest) MarshalJSON() ([]byte, error)

func (*DeleteArticleRequest) UnmarshalJSON

func (v *DeleteArticleRequest) UnmarshalJSON(data []byte) error

type DeleteArticleResponse

type DeleteArticleResponse = any

type DeleteAssetRequest

type DeleteAssetRequest struct {
	AssetId runtime.Optional[string] `json:"asset_id"`
}

func (DeleteAssetRequest) MarshalJSON

func (v DeleteAssetRequest) MarshalJSON() ([]byte, error)

func (*DeleteAssetRequest) UnmarshalJSON

func (v *DeleteAssetRequest) UnmarshalJSON(data []byte) error

type DeleteAssetResponse

type DeleteAssetResponse = any

type DeleteAvatarRequest

type DeleteAvatarRequest = any

type DeleteAvatarResponse

type DeleteAvatarResponse = any

type DeleteCategoryRequest

type DeleteCategoryRequest struct {
	CategoryId        string `json:"category_id"`
	ImpactFingerprint string `json:"impact_fingerprint"`
	UserId            string `json:"user_id"`
}

func (DeleteCategoryRequest) MarshalJSON

func (v DeleteCategoryRequest) MarshalJSON() ([]byte, error)

func (*DeleteCategoryRequest) UnmarshalJSON

func (v *DeleteCategoryRequest) UnmarshalJSON(data []byte) error

type DeleteCategoryResponse

type DeleteCategoryResponse struct {
	DeletionResult *CategoryDeletionResult `json:"deletion_result"`
}

func (DeleteCategoryResponse) MarshalJSON

func (v DeleteCategoryResponse) MarshalJSON() ([]byte, error)

func (*DeleteCategoryResponse) UnmarshalJSON

func (v *DeleteCategoryResponse) UnmarshalJSON(data []byte) error

type DeleteMaterialRequest

type DeleteMaterialRequest struct {
	MaterialId string `json:"material_id"`
	UserId     string `json:"user_id"`
}

func (DeleteMaterialRequest) MarshalJSON

func (v DeleteMaterialRequest) MarshalJSON() ([]byte, error)

func (*DeleteMaterialRequest) UnmarshalJSON

func (v *DeleteMaterialRequest) UnmarshalJSON(data []byte) error

type DeleteMaterialResponse

type DeleteMaterialResponse struct {
	DeletionResult *MaterialDeletionResult `json:"deletion_result"`
}

func (DeleteMaterialResponse) MarshalJSON

func (v DeleteMaterialResponse) MarshalJSON() ([]byte, error)

func (*DeleteMaterialResponse) UnmarshalJSON

func (v *DeleteMaterialResponse) UnmarshalJSON(data []byte) error

type DeleteOAuthClientRequest

type DeleteOAuthClientRequest struct {
	AppId    runtime.Optional[string] `json:"app_id"`
	ClientId runtime.Optional[string] `json:"client_id"`
}

func (DeleteOAuthClientRequest) MarshalJSON

func (v DeleteOAuthClientRequest) MarshalJSON() ([]byte, error)

func (*DeleteOAuthClientRequest) UnmarshalJSON

func (v *DeleteOAuthClientRequest) UnmarshalJSON(data []byte) error

type DeleteOAuthClientResponse

type DeleteOAuthClientResponse = any

type DeleteOrganizationRequest

type DeleteOrganizationRequest struct {
	OrgId runtime.Optional[string] `json:"org_id"`
}

func (DeleteOrganizationRequest) MarshalJSON

func (v DeleteOrganizationRequest) MarshalJSON() ([]byte, error)

func (*DeleteOrganizationRequest) UnmarshalJSON

func (v *DeleteOrganizationRequest) UnmarshalJSON(data []byte) error

type DeleteOrganizationResponse

type DeleteOrganizationResponse = any

type DeletePageRequest

type DeletePageRequest struct {
	ExpectedContentRevision string                   `json:"expected_content_revision"`
	ImpactFingerprint       string                   `json:"impact_fingerprint"`
	PageEtag                runtime.Optional[string] `json:"page_etag"`
	PageId                  string                   `json:"page_id"`
	UserId                  string                   `json:"user_id"`
}

func (DeletePageRequest) MarshalJSON

func (v DeletePageRequest) MarshalJSON() ([]byte, error)

func (*DeletePageRequest) UnmarshalJSON

func (v *DeletePageRequest) UnmarshalJSON(data []byte) error

type DeletePageResponse

type DeletePageResponse struct {
	DeletionResult *PageDeletionResult `json:"deletion_result"`
}

func (DeletePageResponse) MarshalJSON

func (v DeletePageResponse) MarshalJSON() ([]byte, error)

func (*DeletePageResponse) UnmarshalJSON

func (v *DeletePageResponse) UnmarshalJSON(data []byte) error

type DeletePresetRequest

type DeletePresetRequest struct {
	PresetId runtime.Optional[string] `json:"preset_id"`
}

func (DeletePresetRequest) MarshalJSON

func (v DeletePresetRequest) MarshalJSON() ([]byte, error)

func (*DeletePresetRequest) UnmarshalJSON

func (v *DeletePresetRequest) UnmarshalJSON(data []byte) error

type DeletePresetResponse

type DeletePresetResponse = any

type DeleteProjectRequest

type DeleteProjectRequest struct {
	ProjectId runtime.Optional[string] `json:"project_id"`
}

func (DeleteProjectRequest) MarshalJSON

func (v DeleteProjectRequest) MarshalJSON() ([]byte, error)

func (*DeleteProjectRequest) UnmarshalJSON

func (v *DeleteProjectRequest) UnmarshalJSON(data []byte) error

type DeleteProjectResponse

type DeleteProjectResponse = any

type DeleteVideoTaskRequest

type DeleteVideoTaskRequest struct {
	TaskId runtime.Optional[string] `json:"task_id"`
}

func (DeleteVideoTaskRequest) MarshalJSON

func (v DeleteVideoTaskRequest) MarshalJSON() ([]byte, error)

func (*DeleteVideoTaskRequest) UnmarshalJSON

func (v *DeleteVideoTaskRequest) UnmarshalJSON(data []byte) error

type DeleteVideoTaskResponse

type DeleteVideoTaskResponse = any

type DeleteWebhookRequest

type DeleteWebhookRequest struct {
	WebhookId runtime.Optional[string] `json:"webhook_id"`
}

func (DeleteWebhookRequest) MarshalJSON

func (v DeleteWebhookRequest) MarshalJSON() ([]byte, error)

func (*DeleteWebhookRequest) UnmarshalJSON

func (v *DeleteWebhookRequest) UnmarshalJSON(data []byte) error

type DeleteWebhookResponse

type DeleteWebhookResponse = any

type DeliveryStatus

type DeliveryStatus string
const (
	DeliveryStatusDELIVERYSTATUSUNSPECIFIED DeliveryStatus = "DELIVERY_STATUS_UNSPECIFIED"
	DeliveryStatusDELIVERYSTATUSSUCCESS     DeliveryStatus = "DELIVERY_STATUS_SUCCESS"
	DeliveryStatusDELIVERYSTATUSFAILED      DeliveryStatus = "DELIVERY_STATUS_FAILED"
	DeliveryStatusDELIVERYSTATUSPENDING     DeliveryStatus = "DELIVERY_STATUS_PENDING"
)

func (DeliveryStatus) MarshalJSON

func (v DeliveryStatus) MarshalJSON() ([]byte, error)

func (*DeliveryStatus) UnmarshalJSON

func (v *DeliveryStatus) UnmarshalJSON(data []byte) error

type DeviceInfo

type DeviceInfo struct {
	DeviceId   runtime.Optional[string] `json:"device_id"`
	DeviceName runtime.Optional[string] `json:"device_name"`
	UserAgent  runtime.Optional[string] `json:"user_agent"`
}

func (DeviceInfo) MarshalJSON

func (v DeviceInfo) MarshalJSON() ([]byte, error)

func (*DeviceInfo) UnmarshalJSON

func (v *DeviceInfo) UnmarshalJSON(data []byte) error

type Duration

type Duration = string

type EstimateCategoryOrganizationRequest

type EstimateCategoryOrganizationRequest struct {
	Instruction     string                   `json:"instruction"`
	ScopeCategoryId runtime.Optional[string] `json:"scope_category_id"`
	UserId          string                   `json:"user_id"`
}

func (EstimateCategoryOrganizationRequest) MarshalJSON

func (v EstimateCategoryOrganizationRequest) MarshalJSON() ([]byte, error)

func (*EstimateCategoryOrganizationRequest) UnmarshalJSON

func (v *EstimateCategoryOrganizationRequest) UnmarshalJSON(data []byte) error

type EstimateCategoryOrganizationResponse

type EstimateCategoryOrganizationResponse struct {
	OrganizationEstimate *CategoryOrganizationEstimate `json:"organization_estimate"`
}

func (EstimateCategoryOrganizationResponse) MarshalJSON

func (v EstimateCategoryOrganizationResponse) MarshalJSON() ([]byte, error)

func (*EstimateCategoryOrganizationResponse) UnmarshalJSON

func (v *EstimateCategoryOrganizationResponse) UnmarshalJSON(data []byte) error

type EstimateGenerationRequest

type EstimateGenerationRequest struct {
	AddMaterialIds               runtime.Optional[[]string]                `json:"add_material_ids"`
	BaseJobId                    runtime.Optional[string]                  `json:"base_job_id"`
	BriefInstruction             runtime.Optional[string]                  `json:"brief_instruction"`
	ContentDecisionActionToken   runtime.Optional[string]                  `json:"content_decision_action_token"`
	ContentDecisionContextDigest runtime.Optional[string]                  `json:"content_decision_context_digest"`
	ContentDecisionContextId     runtime.Optional[string]                  `json:"content_decision_context_id"`
	ContentDecisionNote          runtime.Optional[string]                  `json:"content_decision_note"`
	ContentDecisionOptionIds     runtime.Optional[[]string]                `json:"content_decision_option_ids"`
	ExternalInformationMode      runtime.Optional[ExternalInformationMode] `json:"external_information_mode"`
	InlineText                   runtime.Optional[string]                  `json:"inline_text"`
	InlineTextChange             runtime.Optional[*InlineTextChange]       `json:"inline_text_change"`
	MaterialIds                  runtime.Optional[[]string]                `json:"material_ids"`
	Operation                    GenerationOperation                       `json:"operation"`
	Orientation                  runtime.Optional[Orientation]             `json:"orientation"`
	PageId                       runtime.Optional[string]                  `json:"page_id"`
	RemoveMaterialIds            runtime.Optional[[]string]                `json:"remove_material_ids"`
	SourceJobId                  runtime.Optional[string]                  `json:"source_job_id"`
	Title                        runtime.Optional[string]                  `json:"title"`
	UserId                       string                                    `json:"user_id"`
}

func (EstimateGenerationRequest) MarshalJSON

func (v EstimateGenerationRequest) MarshalJSON() ([]byte, error)

func (*EstimateGenerationRequest) UnmarshalJSON

func (v *EstimateGenerationRequest) UnmarshalJSON(data []byte) error

type EstimateGenerationResponse

type EstimateGenerationResponse struct {
	Estimate *GenerationEstimate `json:"estimate"`
}

func (EstimateGenerationResponse) MarshalJSON

func (v EstimateGenerationResponse) MarshalJSON() ([]byte, error)

func (*EstimateGenerationResponse) UnmarshalJSON

func (v *EstimateGenerationResponse) UnmarshalJSON(data []byte) error

type EstimateState

type EstimateState string
const (
	EstimateStateESTIMATESTATEUNSPECIFIED EstimateState = "ESTIMATE_STATE_UNSPECIFIED"
	EstimateStateESTIMATESTATEACTIVE      EstimateState = "ESTIMATE_STATE_ACTIVE"
	EstimateStateESTIMATESTATECONSUMED    EstimateState = "ESTIMATE_STATE_CONSUMED"
	EstimateStateESTIMATESTATEEXPIRED     EstimateState = "ESTIMATE_STATE_EXPIRED"
)

func (EstimateState) MarshalJSON

func (v EstimateState) MarshalJSON() ([]byte, error)

func (*EstimateState) UnmarshalJSON

func (v *EstimateState) UnmarshalJSON(data []byte) error

type EstimateUploadRequest

type EstimateUploadRequest struct {
	Files  []*UploadEstimateDeclaration `json:"files"`
	UserId string                       `json:"user_id"`
}

func (EstimateUploadRequest) MarshalJSON

func (v EstimateUploadRequest) MarshalJSON() ([]byte, error)

func (*EstimateUploadRequest) UnmarshalJSON

func (v *EstimateUploadRequest) UnmarshalJSON(data []byte) error

type EstimateUploadResponse

type EstimateUploadResponse struct {
	UploadEstimate *UploadEstimate `json:"upload_estimate"`
}

func (EstimateUploadResponse) MarshalJSON

func (v EstimateUploadResponse) MarshalJSON() ([]byte, error)

func (*EstimateUploadResponse) UnmarshalJSON

func (v *EstimateUploadResponse) UnmarshalJSON(data []byte) error

type ExchangeSessionRequest

type ExchangeSessionRequest struct {
	CsrfToken runtime.Optional[string] `json:"csrf_token"`
	SessionId runtime.Optional[string] `json:"session_id"`
}

func (ExchangeSessionRequest) MarshalJSON

func (v ExchangeSessionRequest) MarshalJSON() ([]byte, error)

func (*ExchangeSessionRequest) UnmarshalJSON

func (v *ExchangeSessionRequest) UnmarshalJSON(data []byte) error

type ExchangeSessionResponse

type ExchangeSessionResponse struct {
	Tokens runtime.Optional[*TokenPair] `json:"tokens"`
	UserId runtime.Optional[string]     `json:"user_id"`
}

func (ExchangeSessionResponse) MarshalJSON

func (v ExchangeSessionResponse) MarshalJSON() ([]byte, error)

func (*ExchangeSessionResponse) UnmarshalJSON

func (v *ExchangeSessionResponse) UnmarshalJSON(data []byte) error

type ExportArtifact

type ExportArtifact struct {
	DownloadUrl string       `json:"download_url"`
	ExpiresAt   Timestamp    `json:"expires_at"`
	ExportId    string       `json:"export_id"`
	Format      ExportFormat `json:"format"`
	Orientation Orientation  `json:"orientation"`
	PageId      string       `json:"page_id"`
	Sha256      string       `json:"sha256"`
	SizeBytes   string       `json:"size_bytes"`
	VersionId   string       `json:"version_id"`
}

func (ExportArtifact) MarshalJSON

func (v ExportArtifact) MarshalJSON() ([]byte, error)

func (*ExportArtifact) UnmarshalJSON

func (v *ExportArtifact) UnmarshalJSON(data []byte) error

type ExportFormat

type ExportFormat string
const (
	ExportFormatEXPORTFORMATUNSPECIFIED ExportFormat = "EXPORT_FORMAT_UNSPECIFIED"
	ExportFormatEXPORTFORMATPDF         ExportFormat = "EXPORT_FORMAT_PDF"
	ExportFormatEXPORTFORMATPNG         ExportFormat = "EXPORT_FORMAT_PNG"
)

func (ExportFormat) MarshalJSON

func (v ExportFormat) MarshalJSON() ([]byte, error)

func (*ExportFormat) UnmarshalJSON

func (v *ExportFormat) UnmarshalJSON(data []byte) error

type ExportsGetPageExportParams

type ExportsGetPageExportParams struct {
	ExportId  string
	PageId    string
	UserId    string
	VersionId string
}

type ExportsService

type ExportsService struct {
	// contains filtered or unexported fields
}

func (*ExportsService) GetPageExport

type ExternalInformationMode

type ExternalInformationMode string
const (
	ExternalInformationModeEXTERNALINFORMATIONMODEUNSPECIFIED       ExternalInformationMode = "EXTERNAL_INFORMATION_MODE_UNSPECIFIED"
	ExternalInformationModeEXTERNALINFORMATIONMODEDISABLED          ExternalInformationMode = "EXTERNAL_INFORMATION_MODE_DISABLED"
	ExternalInformationModeEXTERNALINFORMATIONMODEAUTOWEBSEARCH     ExternalInformationMode = "EXTERNAL_INFORMATION_MODE_AUTO_WEB_SEARCH"
	ExternalInformationModeEXTERNALINFORMATIONMODEREQUIREDWEBSEARCH ExternalInformationMode = "EXTERNAL_INFORMATION_MODE_REQUIRED_WEB_SEARCH"
)

func (ExternalInformationMode) MarshalJSON

func (v ExternalInformationMode) MarshalJSON() ([]byte, error)

func (*ExternalInformationMode) UnmarshalJSON

func (v *ExternalInformationMode) UnmarshalJSON(data []byte) error

type FieldMask

type FieldMask = string

type GenerateScriptRequest

type GenerateScriptRequest struct {
	ArticleId             runtime.Optional[string]     `json:"article_id"`
	Language              runtime.Optional[string]     `json:"language"`
	ProjectId             runtime.Optional[string]     `json:"project_id"`
	Requirements          runtime.Optional[string]     `json:"requirements"`
	Style                 runtime.Optional[VideoStyle] `json:"style"`
	TargetDurationSeconds runtime.Optional[int64]      `json:"target_duration_seconds"`
	Topic                 runtime.Optional[string]     `json:"topic"`
}

func (GenerateScriptRequest) MarshalJSON

func (v GenerateScriptRequest) MarshalJSON() ([]byte, error)

func (*GenerateScriptRequest) UnmarshalJSON

func (v *GenerateScriptRequest) UnmarshalJSON(data []byte) error

type GenerateScriptResponse

type GenerateScriptResponse struct {
	Done  runtime.Optional[bool]        `json:"done"`
	Event runtime.Optional[StreamEvent] `json:"event"`
	Task  runtime.Optional[*VideoTask]  `json:"task"`
}

func (GenerateScriptResponse) MarshalJSON

func (v GenerateScriptResponse) MarshalJSON() ([]byte, error)

func (*GenerateScriptResponse) UnmarshalJSON

func (v *GenerateScriptResponse) UnmarshalJSON(data []byte) error

type GenerateUploadUrlRequest

type GenerateUploadUrlRequest struct {
	ContentType runtime.Optional[string] `json:"content_type"`
	Filename    runtime.Optional[string] `json:"filename"`
	ProjectId   runtime.Optional[string] `json:"project_id"`
}

func (GenerateUploadUrlRequest) MarshalJSON

func (v GenerateUploadUrlRequest) MarshalJSON() ([]byte, error)

func (*GenerateUploadUrlRequest) UnmarshalJSON

func (v *GenerateUploadUrlRequest) UnmarshalJSON(data []byte) error

type GenerateUploadUrlResponse

type GenerateUploadUrlResponse struct {
	AssetId   runtime.Optional[string]    `json:"asset_id"`
	ExpiresAt runtime.Optional[Timestamp] `json:"expires_at"`
	UploadUrl runtime.Optional[string]    `json:"upload_url"`
}

func (GenerateUploadUrlResponse) MarshalJSON

func (v GenerateUploadUrlResponse) MarshalJSON() ([]byte, error)

func (*GenerateUploadUrlResponse) UnmarshalJSON

func (v *GenerateUploadUrlResponse) UnmarshalJSON(data []byte) error

type GenerationEstimate

type GenerationEstimate struct {
	AuthorizedMaxCredit        string                      `json:"authorized_max_credit"`
	BalanceSufficient          bool                        `json:"balance_sufficient"`
	BaseBriefRevisionId        runtime.Optional[string]    `json:"base_brief_revision_id"`
	BaseJobId                  runtime.Optional[string]    `json:"base_job_id"`
	BasePageContentRevision    runtime.Optional[string]    `json:"base_page_content_revision"`
	BaseVersionId              runtime.Optional[string]    `json:"base_version_id"`
	CategoryPreferenceSnapshot *CategoryPreferenceSnapshot `json:"category_preference_snapshot"`
	ConsumedJobId              runtime.Optional[string]    `json:"consumed_job_id"`
	CreatedAt                  Timestamp                   `json:"created_at"`
	CurrentBalanceCredit       string                      `json:"current_balance_credit"`
	EstimateId                 string                      `json:"estimate_id"`
	EstimatedAiCredit          string                      `json:"estimated_ai_credit"`
	EstimatedFileCredit        string                      `json:"estimated_file_credit"`
	EstimatedToolCredit        string                      `json:"estimated_tool_credit"`
	EstimatedTotalCredit       string                      `json:"estimated_total_credit"`
	ExpiresAt                  Timestamp                   `json:"expires_at"`
	InputFingerprint           string                      `json:"input_fingerprint"`
	Operation                  GenerationOperation         `json:"operation"`
	PageId                     runtime.Optional[string]    `json:"page_id"`
	PricingVersion             string                      `json:"pricing_version"`
	SourceJobId                runtime.Optional[string]    `json:"source_job_id"`
	State                      EstimateState               `json:"state"`
	ToolPolicySnapshot         *ToolPolicySnapshot         `json:"tool_policy_snapshot"`
}

func (GenerationEstimate) MarshalJSON

func (v GenerationEstimate) MarshalJSON() ([]byte, error)

func (*GenerationEstimate) UnmarshalJSON

func (v *GenerationEstimate) UnmarshalJSON(data []byte) error

type GenerationOperation

type GenerationOperation string
const (
	GenerationOperationGENERATIONOPERATIONUNSPECIFIED    GenerationOperation = "GENERATION_OPERATION_UNSPECIFIED"
	GenerationOperationGENERATIONOPERATIONCREATEPAGE     GenerationOperation = "GENERATION_OPERATION_CREATE_PAGE"
	GenerationOperationGENERATIONOPERATIONREGENERATEPAGE GenerationOperation = "GENERATION_OPERATION_REGENERATE_PAGE"
	GenerationOperationGENERATIONOPERATIONRETRYJOB       GenerationOperation = "GENERATION_OPERATION_RETRY_JOB"
)

func (GenerationOperation) MarshalJSON

func (v GenerationOperation) MarshalJSON() ([]byte, error)

func (*GenerationOperation) UnmarshalJSON

func (v *GenerationOperation) UnmarshalJSON(data []byte) error

type GenerationPlanStatus

type GenerationPlanStatus string
const (
	GenerationPlanStatusGENERATIONPLANSTATUSUNSPECIFIED GenerationPlanStatus = "GENERATION_PLAN_STATUS_UNSPECIFIED"
	GenerationPlanStatusGENERATIONPLANSTATUSEXECUTING   GenerationPlanStatus = "GENERATION_PLAN_STATUS_EXECUTING"
	GenerationPlanStatusGENERATIONPLANSTATUSREVIEWING   GenerationPlanStatus = "GENERATION_PLAN_STATUS_REVIEWING"
	GenerationPlanStatusGENERATIONPLANSTATUSCOMPLETED   GenerationPlanStatus = "GENERATION_PLAN_STATUS_COMPLETED"
	GenerationPlanStatusGENERATIONPLANSTATUSFAILED      GenerationPlanStatus = "GENERATION_PLAN_STATUS_FAILED"
)

func (GenerationPlanStatus) MarshalJSON

func (v GenerationPlanStatus) MarshalJSON() ([]byte, error)

func (*GenerationPlanStatus) UnmarshalJSON

func (v *GenerationPlanStatus) UnmarshalJSON(data []byte) error

type GenerationPlanStepKind

type GenerationPlanStepKind string
const (
	GenerationPlanStepKindGENERATIONPLANSTEPKINDUNSPECIFIED GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_UNSPECIFIED"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDUNDERSTAND  GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_UNDERSTAND"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDSYNTHESIZE  GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_SYNTHESIZE"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDPAGESPEC    GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_PAGE_SPEC"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDCOMPILE     GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_COMPILE"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDRENDER      GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_RENDER"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDVALIDATE    GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_VALIDATE"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDREVIEW      GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_REVIEW"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDREPAIR      GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_REPAIR"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDFINALIZE    GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_FINALIZE"
	GenerationPlanStepKindGENERATIONPLANSTEPKINDWEBRESEARCH GenerationPlanStepKind = "GENERATION_PLAN_STEP_KIND_WEB_RESEARCH"
)

func (GenerationPlanStepKind) MarshalJSON

func (v GenerationPlanStepKind) MarshalJSON() ([]byte, error)

func (*GenerationPlanStepKind) UnmarshalJSON

func (v *GenerationPlanStepKind) UnmarshalJSON(data []byte) error

type GenerationPlanStepStatus

type GenerationPlanStepStatus string
const (
	GenerationPlanStepStatusGENERATIONPLANSTEPSTATUSUNSPECIFIED GenerationPlanStepStatus = "GENERATION_PLAN_STEP_STATUS_UNSPECIFIED"
	GenerationPlanStepStatusGENERATIONPLANSTEPSTATUSPENDING     GenerationPlanStepStatus = "GENERATION_PLAN_STEP_STATUS_PENDING"
	GenerationPlanStepStatusGENERATIONPLANSTEPSTATUSRUNNING     GenerationPlanStepStatus = "GENERATION_PLAN_STEP_STATUS_RUNNING"
	GenerationPlanStepStatusGENERATIONPLANSTEPSTATUSSUCCEEDED   GenerationPlanStepStatus = "GENERATION_PLAN_STEP_STATUS_SUCCEEDED"
	GenerationPlanStepStatusGENERATIONPLANSTEPSTATUSSKIPPED     GenerationPlanStepStatus = "GENERATION_PLAN_STEP_STATUS_SKIPPED"
	GenerationPlanStepStatusGENERATIONPLANSTEPSTATUSFAILED      GenerationPlanStepStatus = "GENERATION_PLAN_STEP_STATUS_FAILED"
)

func (GenerationPlanStepStatus) MarshalJSON

func (v GenerationPlanStepStatus) MarshalJSON() ([]byte, error)

func (*GenerationPlanStepStatus) UnmarshalJSON

func (v *GenerationPlanStepStatus) UnmarshalJSON(data []byte) error

type GenerationPlanStepSummary

type GenerationPlanStepSummary struct {
	Kind           GenerationPlanStepKind   `json:"kind"`
	SequenceNumber int64                    `json:"sequence_number"`
	Status         GenerationPlanStepStatus `json:"status"`
	Summary        string                   `json:"summary"`
}

func (GenerationPlanStepSummary) MarshalJSON

func (v GenerationPlanStepSummary) MarshalJSON() ([]byte, error)

func (*GenerationPlanStepSummary) UnmarshalJSON

func (v *GenerationPlanStepSummary) UnmarshalJSON(data []byte) error

type GenerationPlanSummary

type GenerationPlanSummary struct {
	ExternalSourceCount int64                        `json:"external_source_count"`
	PlanId              string                       `json:"plan_id"`
	ReplanCount         int64                        `json:"replan_count"`
	Revision            int64                        `json:"revision"`
	Status              GenerationPlanStatus         `json:"status"`
	Steps               []*GenerationPlanStepSummary `json:"steps"`
	UpdatedAt           Timestamp                    `json:"updated_at"`
	WebSearchUsed       bool                         `json:"web_search_used"`
}

func (GenerationPlanSummary) MarshalJSON

func (v GenerationPlanSummary) MarshalJSON() ([]byte, error)

func (*GenerationPlanSummary) UnmarshalJSON

func (v *GenerationPlanSummary) UnmarshalJSON(data []byte) error

type GenerationProgressEvent

type GenerationProgressEvent struct {
	DurationMs runtime.Optional[string] `json:"duration_ms"`
	EventId    string                   `json:"event_id"`
	EventSeq   string                   `json:"event_seq"`
	Message    *ProgressMessage         `json:"message"`
	OccurredAt Timestamp                `json:"occurred_at"`
	RecordedAt Timestamp                `json:"recorded_at"`
	Status     string                   `json:"status"`
	StepId     string                   `json:"step_id"`
}

func (GenerationProgressEvent) MarshalJSON

func (v GenerationProgressEvent) MarshalJSON() ([]byte, error)

func (*GenerationProgressEvent) UnmarshalJSON

func (v *GenerationProgressEvent) UnmarshalJSON(data []byte) error

type GenerationProgressStep

type GenerationProgressStep struct {
	CompletedAt     runtime.Optional[Timestamp] `json:"completed_at"`
	FailedAt        runtime.Optional[Timestamp] `json:"failed_at"`
	Message         *ProgressMessage            `json:"message"`
	ResumeStartedAt runtime.Optional[Timestamp] `json:"resume_started_at"`
	StartedAt       runtime.Optional[Timestamp] `json:"started_at"`
	Status          string                      `json:"status"`
	StepId          string                      `json:"step_id"`
}

func (GenerationProgressStep) MarshalJSON

func (v GenerationProgressStep) MarshalJSON() ([]byte, error)

func (*GenerationProgressStep) UnmarshalJSON

func (v *GenerationProgressStep) UnmarshalJSON(data []byte) error

type GetApplicationRequest

type GetApplicationRequest struct {
	AppId runtime.Optional[string] `json:"app_id"`
}

func (GetApplicationRequest) MarshalJSON

func (v GetApplicationRequest) MarshalJSON() ([]byte, error)

func (*GetApplicationRequest) UnmarshalJSON

func (v *GetApplicationRequest) UnmarshalJSON(data []byte) error

type GetApplicationResponse

type GetApplicationResponse struct {
	Application runtime.Optional[*OAuthApplication] `json:"application"`
}

func (GetApplicationResponse) MarshalJSON

func (v GetApplicationResponse) MarshalJSON() ([]byte, error)

func (*GetApplicationResponse) UnmarshalJSON

func (v *GetApplicationResponse) UnmarshalJSON(data []byte) error

type GetArticleRequest

type GetArticleRequest struct {
	ArticleId runtime.Optional[string] `json:"article_id"`
}

func (GetArticleRequest) MarshalJSON

func (v GetArticleRequest) MarshalJSON() ([]byte, error)

func (*GetArticleRequest) UnmarshalJSON

func (v *GetArticleRequest) UnmarshalJSON(data []byte) error

type GetArticleResponse

type GetArticleResponse struct {
	Article runtime.Optional[*Article] `json:"article"`
}

func (GetArticleResponse) MarshalJSON

func (v GetArticleResponse) MarshalJSON() ([]byte, error)

func (*GetArticleResponse) UnmarshalJSON

func (v *GetArticleResponse) UnmarshalJSON(data []byte) error

type GetAssetRequest

type GetAssetRequest struct {
	AssetId runtime.Optional[string] `json:"asset_id"`
}

func (GetAssetRequest) MarshalJSON

func (v GetAssetRequest) MarshalJSON() ([]byte, error)

func (*GetAssetRequest) UnmarshalJSON

func (v *GetAssetRequest) UnmarshalJSON(data []byte) error

type GetAssetResponse

type GetAssetResponse struct {
	Asset runtime.Optional[*Asset] `json:"asset"`
}

func (GetAssetResponse) MarshalJSON

func (v GetAssetResponse) MarshalJSON() ([]byte, error)

func (*GetAssetResponse) UnmarshalJSON

func (v *GetAssetResponse) UnmarshalJSON(data []byte) error

type GetAvatarRequest

type GetAvatarRequest = any

type GetAvatarResponse

type GetAvatarResponse struct {
	AvatarUrl   runtime.Optional[string]            `json:"avatar_url"`
	ExpiresAt   runtime.Optional[Timestamp]         `json:"expires_at"`
	MediaId     runtime.Optional[string]            `json:"media_id"`
	VariantUrls runtime.Optional[map[string]string] `json:"variant_urls"`
}

func (GetAvatarResponse) MarshalJSON

func (v GetAvatarResponse) MarshalJSON() ([]byte, error)

func (*GetAvatarResponse) UnmarshalJSON

func (v *GetAvatarResponse) UnmarshalJSON(data []byte) error

type GetAvatarResponseVariantUrlsEntry

type GetAvatarResponseVariantUrlsEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (GetAvatarResponseVariantUrlsEntry) MarshalJSON

func (v GetAvatarResponseVariantUrlsEntry) MarshalJSON() ([]byte, error)

func (*GetAvatarResponseVariantUrlsEntry) UnmarshalJSON

func (v *GetAvatarResponseVariantUrlsEntry) UnmarshalJSON(data []byte) error

type GetAvatarRetirementRequest

type GetAvatarRetirementRequest struct {
	MediaId     runtime.Optional[string] `json:"media_id"`
	OperationId runtime.Optional[string] `json:"operation_id"`
}

func (GetAvatarRetirementRequest) MarshalJSON

func (v GetAvatarRetirementRequest) MarshalJSON() ([]byte, error)

func (*GetAvatarRetirementRequest) UnmarshalJSON

func (v *GetAvatarRetirementRequest) UnmarshalJSON(data []byte) error

type GetAvatarRetirementResponse

type GetAvatarRetirementResponse struct {
	Retirement runtime.Optional[*AvatarRetirement] `json:"retirement"`
}

func (GetAvatarRetirementResponse) MarshalJSON

func (v GetAvatarRetirementResponse) MarshalJSON() ([]byte, error)

func (*GetAvatarRetirementResponse) UnmarshalJSON

func (v *GetAvatarRetirementResponse) UnmarshalJSON(data []byte) error

type GetCategoryOrganizationJobRequest

type GetCategoryOrganizationJobRequest struct {
	OrganizationJobId string `json:"organization_job_id"`
	UserId            string `json:"user_id"`
}

func (GetCategoryOrganizationJobRequest) MarshalJSON

func (v GetCategoryOrganizationJobRequest) MarshalJSON() ([]byte, error)

func (*GetCategoryOrganizationJobRequest) UnmarshalJSON

func (v *GetCategoryOrganizationJobRequest) UnmarshalJSON(data []byte) error

type GetCategoryOrganizationJobResponse

type GetCategoryOrganizationJobResponse struct {
	OrganizationJob *CategoryOrganizationJob `json:"organization_job"`
}

func (GetCategoryOrganizationJobResponse) MarshalJSON

func (v GetCategoryOrganizationJobResponse) MarshalJSON() ([]byte, error)

func (*GetCategoryOrganizationJobResponse) UnmarshalJSON

func (v *GetCategoryOrganizationJobResponse) UnmarshalJSON(data []byte) error

type GetCategoryOrganizationPreviewRequest

type GetCategoryOrganizationPreviewRequest struct {
	OrganizationJobId string `json:"organization_job_id"`
	UserId            string `json:"user_id"`
}

func (GetCategoryOrganizationPreviewRequest) MarshalJSON

func (v GetCategoryOrganizationPreviewRequest) MarshalJSON() ([]byte, error)

func (*GetCategoryOrganizationPreviewRequest) UnmarshalJSON

func (v *GetCategoryOrganizationPreviewRequest) UnmarshalJSON(data []byte) error

type GetCategoryOrganizationPreviewResponse

type GetCategoryOrganizationPreviewResponse struct {
	Preview *CategoryOrganizationPreview `json:"preview"`
}

func (GetCategoryOrganizationPreviewResponse) MarshalJSON

func (v GetCategoryOrganizationPreviewResponse) MarshalJSON() ([]byte, error)

func (*GetCategoryOrganizationPreviewResponse) UnmarshalJSON

func (v *GetCategoryOrganizationPreviewResponse) UnmarshalJSON(data []byte) error

type GetCategoryPreferenceRequest

type GetCategoryPreferenceRequest struct {
	UserId string `json:"user_id"`
}

func (GetCategoryPreferenceRequest) MarshalJSON

func (v GetCategoryPreferenceRequest) MarshalJSON() ([]byte, error)

func (*GetCategoryPreferenceRequest) UnmarshalJSON

func (v *GetCategoryPreferenceRequest) UnmarshalJSON(data []byte) error

type GetCategoryPreferenceResponse

type GetCategoryPreferenceResponse struct {
	CategoryPreference *CategoryPreference `json:"category_preference"`
}

func (GetCategoryPreferenceResponse) MarshalJSON

func (v GetCategoryPreferenceResponse) MarshalJSON() ([]byte, error)

func (*GetCategoryPreferenceResponse) UnmarshalJSON

func (v *GetCategoryPreferenceResponse) UnmarshalJSON(data []byte) error

type GetConsentInfoRequest

type GetConsentInfoRequest struct {
	ClientId runtime.Optional[string] `json:"client_id"`
	Scope    runtime.Optional[string] `json:"scope"`
}

func (GetConsentInfoRequest) MarshalJSON

func (v GetConsentInfoRequest) MarshalJSON() ([]byte, error)

func (*GetConsentInfoRequest) UnmarshalJSON

func (v *GetConsentInfoRequest) UnmarshalJSON(data []byte) error

type GetConsentInfoResponse

type GetConsentInfoResponse struct {
	AppName                 runtime.Optional[string]         `json:"app_name"`
	HomepageUrl             runtime.Optional[string]         `json:"homepage_url"`
	LogoUrl                 runtime.Optional[string]         `json:"logo_url"`
	PreviouslyGrantedScopes runtime.Optional[[]string]       `json:"previously_granted_scopes"`
	RequestedScopes         runtime.Optional[[]*ScopeDetail] `json:"requested_scopes"`
}

func (GetConsentInfoResponse) MarshalJSON

func (v GetConsentInfoResponse) MarshalJSON() ([]byte, error)

func (*GetConsentInfoResponse) UnmarshalJSON

func (v *GetConsentInfoResponse) UnmarshalJSON(data []byte) error

type GetGenerationProgressRequest

type GetGenerationProgressRequest struct {
	AfterEventSeq runtime.Optional[string] `json:"after_event_seq"`
	JobId         string                   `json:"job_id"`
	PageSize      runtime.Optional[int64]  `json:"page_size"`
	PageToken     runtime.Optional[string] `json:"page_token"`
	UiLocale      runtime.Optional[string] `json:"ui_locale"`
	UserId        string                   `json:"user_id"`
}

func (GetGenerationProgressRequest) MarshalJSON

func (v GetGenerationProgressRequest) MarshalJSON() ([]byte, error)

func (*GetGenerationProgressRequest) UnmarshalJSON

func (v *GetGenerationProgressRequest) UnmarshalJSON(data []byte) error

type GetGenerationProgressResponse

type GetGenerationProgressResponse struct {
	ContentLocale            runtime.Optional[string]   `json:"content_locale"`
	ContentLocaleDisplayName runtime.Optional[string]   `json:"content_locale_display_name"`
	ContentLocaleSource      runtime.Optional[string]   `json:"content_locale_source"`
	ContentLocales           runtime.Optional[[]string] `json:"content_locales"`
	CurrentRevision          string                     `json:"current_revision"`
	Events                   []*GenerationProgressEvent `json:"events"`
	HistoryUpperEventSeq     string                     `json:"history_upper_event_seq"`
	InstructionLocale        runtime.Optional[string]   `json:"instruction_locale"`
	Job                      *JobSummary                `json:"job"`
	LastEventSeq             string                     `json:"last_event_seq"`
	LocaleSource             runtime.Optional[string]   `json:"locale_source"`
	LocaleStatus             string                     `json:"locale_status"`
	NextPageToken            runtime.Optional[string]   `json:"next_page_token"`
	PageTitle                string                     `json:"page_title"`
	PollAfterMs              runtime.Optional[int64]    `json:"poll_after_ms"`
	ProgressAvailable        bool                       `json:"progress_available"`
	ResolvedUiLocale         string                     `json:"resolved_ui_locale"`
	Steps                    []*GenerationProgressStep  `json:"steps"`
	TitleOrigin              string                     `json:"title_origin"`
	TitleRevision            string                     `json:"title_revision"`
}

func (GetGenerationProgressResponse) MarshalJSON

func (v GetGenerationProgressResponse) MarshalJSON() ([]byte, error)

func (*GetGenerationProgressResponse) UnmarshalJSON

func (v *GetGenerationProgressResponse) UnmarshalJSON(data []byte) error

type GetJWKSRequest

type GetJWKSRequest = any

type GetJWKSResponse

type GetJWKSResponse struct {
	Keys runtime.Optional[[]*JWK] `json:"keys"`
}

func (GetJWKSResponse) MarshalJSON

func (v GetJWKSResponse) MarshalJSON() ([]byte, error)

func (*GetJWKSResponse) UnmarshalJSON

func (v *GetJWKSResponse) UnmarshalJSON(data []byte) error

type GetJobRequest

type GetJobRequest struct {
	JobId  string `json:"job_id"`
	UserId string `json:"user_id"`
}

func (GetJobRequest) MarshalJSON

func (v GetJobRequest) MarshalJSON() ([]byte, error)

func (*GetJobRequest) UnmarshalJSON

func (v *GetJobRequest) UnmarshalJSON(data []byte) error

type GetJobResponse

type GetJobResponse struct {
	Job *JobSummary `json:"job"`
}

func (GetJobResponse) MarshalJSON

func (v GetJobResponse) MarshalJSON() ([]byte, error)

func (*GetJobResponse) UnmarshalJSON

func (v *GetJobResponse) UnmarshalJSON(data []byte) error

type GetLoginHistoryRequest

type GetLoginHistoryRequest struct {
	EndDate   runtime.Optional[Timestamp] `json:"end_date"`
	Page      runtime.Optional[int64]     `json:"page"`
	PageSize  runtime.Optional[int64]     `json:"page_size"`
	StartDate runtime.Optional[Timestamp] `json:"start_date"`
}

func (GetLoginHistoryRequest) MarshalJSON

func (v GetLoginHistoryRequest) MarshalJSON() ([]byte, error)

func (*GetLoginHistoryRequest) UnmarshalJSON

func (v *GetLoginHistoryRequest) UnmarshalJSON(data []byte) error

type GetLoginHistoryResponse

type GetLoginHistoryResponse struct {
	Items    runtime.Optional[[]*LoginHistoryEntry] `json:"items"`
	Page     runtime.Optional[int64]                `json:"page"`
	PageSize runtime.Optional[int64]                `json:"page_size"`
	Total    runtime.Optional[int64]                `json:"total"`
}

func (GetLoginHistoryResponse) MarshalJSON

func (v GetLoginHistoryResponse) MarshalJSON() ([]byte, error)

func (*GetLoginHistoryResponse) UnmarshalJSON

func (v *GetLoginHistoryResponse) UnmarshalJSON(data []byte) error

type GetMaterialRequest

type GetMaterialRequest struct {
	MaterialId string `json:"material_id"`
	UserId     string `json:"user_id"`
}

func (GetMaterialRequest) MarshalJSON

func (v GetMaterialRequest) MarshalJSON() ([]byte, error)

func (*GetMaterialRequest) UnmarshalJSON

func (v *GetMaterialRequest) UnmarshalJSON(data []byte) error

type GetMaterialResponse

type GetMaterialResponse struct {
	Material *Material `json:"material"`
}

func (GetMaterialResponse) MarshalJSON

func (v GetMaterialResponse) MarshalJSON() ([]byte, error)

func (*GetMaterialResponse) UnmarshalJSON

func (v *GetMaterialResponse) UnmarshalJSON(data []byte) error

type GetOAuthClientRequest

type GetOAuthClientRequest struct {
	AppId    runtime.Optional[string] `json:"app_id"`
	ClientId runtime.Optional[string] `json:"client_id"`
}

func (GetOAuthClientRequest) MarshalJSON

func (v GetOAuthClientRequest) MarshalJSON() ([]byte, error)

func (*GetOAuthClientRequest) UnmarshalJSON

func (v *GetOAuthClientRequest) UnmarshalJSON(data []byte) error

type GetOAuthClientResponse

type GetOAuthClientResponse struct {
	Client runtime.Optional[*OAuthClient] `json:"client"`
}

func (GetOAuthClientResponse) MarshalJSON

func (v GetOAuthClientResponse) MarshalJSON() ([]byte, error)

func (*GetOAuthClientResponse) UnmarshalJSON

func (v *GetOAuthClientResponse) UnmarshalJSON(data []byte) error

type GetOrganizationBySlugRequest

type GetOrganizationBySlugRequest struct {
	Slug runtime.Optional[string] `json:"slug"`
}

func (GetOrganizationBySlugRequest) MarshalJSON

func (v GetOrganizationBySlugRequest) MarshalJSON() ([]byte, error)

func (*GetOrganizationBySlugRequest) UnmarshalJSON

func (v *GetOrganizationBySlugRequest) UnmarshalJSON(data []byte) error

type GetOrganizationBySlugResponse

type GetOrganizationBySlugResponse struct {
	Organization runtime.Optional[*Organization] `json:"organization"`
}

func (GetOrganizationBySlugResponse) MarshalJSON

func (v GetOrganizationBySlugResponse) MarshalJSON() ([]byte, error)

func (*GetOrganizationBySlugResponse) UnmarshalJSON

func (v *GetOrganizationBySlugResponse) UnmarshalJSON(data []byte) error

type GetOrganizationRequest

type GetOrganizationRequest struct {
	OrgId runtime.Optional[string] `json:"org_id"`
}

func (GetOrganizationRequest) MarshalJSON

func (v GetOrganizationRequest) MarshalJSON() ([]byte, error)

func (*GetOrganizationRequest) UnmarshalJSON

func (v *GetOrganizationRequest) UnmarshalJSON(data []byte) error

type GetOrganizationResponse

type GetOrganizationResponse struct {
	Organization runtime.Optional[*Organization] `json:"organization"`
}

func (GetOrganizationResponse) MarshalJSON

func (v GetOrganizationResponse) MarshalJSON() ([]byte, error)

func (*GetOrganizationResponse) UnmarshalJSON

func (v *GetOrganizationResponse) UnmarshalJSON(data []byte) error

type GetPageExportRequest

type GetPageExportRequest struct {
	ExportId  string `json:"export_id"`
	PageId    string `json:"page_id"`
	UserId    string `json:"user_id"`
	VersionId string `json:"version_id"`
}

func (GetPageExportRequest) MarshalJSON

func (v GetPageExportRequest) MarshalJSON() ([]byte, error)

func (*GetPageExportRequest) UnmarshalJSON

func (v *GetPageExportRequest) UnmarshalJSON(data []byte) error

type GetPageExportResponse

type GetPageExportResponse struct {
	Artifact *ExportArtifact `json:"artifact"`
}

func (GetPageExportResponse) MarshalJSON

func (v GetPageExportResponse) MarshalJSON() ([]byte, error)

func (*GetPageExportResponse) UnmarshalJSON

func (v *GetPageExportResponse) UnmarshalJSON(data []byte) error

type GetPagePromptRequest

type GetPagePromptRequest struct {
	PageId           string                   `json:"page_id"`
	PromptRevisionId runtime.Optional[string] `json:"prompt_revision_id"`
	UserId           string                   `json:"user_id"`
}

func (GetPagePromptRequest) MarshalJSON

func (v GetPagePromptRequest) MarshalJSON() ([]byte, error)

func (*GetPagePromptRequest) UnmarshalJSON

func (v *GetPagePromptRequest) UnmarshalJSON(data []byte) error

type GetPagePromptResponse

type GetPagePromptResponse struct {
	CreatedAt        runtime.Optional[Timestamp] `json:"created_at"`
	IsCurrentVersion runtime.Optional[bool]      `json:"is_current_version"`
	JobId            runtime.Optional[string]    `json:"job_id"`
	Markdown         runtime.Optional[string]    `json:"markdown"`
	ParentRevisionId runtime.Optional[string]    `json:"parent_revision_id"`
	PolicyVersion    runtime.Optional[string]    `json:"policy_version"`
	PromptRevisionId runtime.Optional[string]    `json:"prompt_revision_id"`
	Sha256           runtime.Optional[string]    `json:"sha256"`
}

func (GetPagePromptResponse) MarshalJSON

func (v GetPagePromptResponse) MarshalJSON() ([]byte, error)

func (*GetPagePromptResponse) UnmarshalJSON

func (v *GetPagePromptResponse) UnmarshalJSON(data []byte) error

type GetPageRequest

type GetPageRequest struct {
	PageId string `json:"page_id"`
	UserId string `json:"user_id"`
}

func (GetPageRequest) MarshalJSON

func (v GetPageRequest) MarshalJSON() ([]byte, error)

func (*GetPageRequest) UnmarshalJSON

func (v *GetPageRequest) UnmarshalJSON(data []byte) error

type GetPageResponse

type GetPageResponse struct {
	Page *Page `json:"page"`
}

func (GetPageResponse) MarshalJSON

func (v GetPageResponse) MarshalJSON() ([]byte, error)

func (*GetPageResponse) UnmarshalJSON

func (v *GetPageResponse) UnmarshalJSON(data []byte) error

type GetPageVersionMetadataRequest

type GetPageVersionMetadataRequest struct {
	PageId    string `json:"page_id"`
	UserId    string `json:"user_id"`
	VersionId string `json:"version_id"`
}

func (GetPageVersionMetadataRequest) MarshalJSON

func (v GetPageVersionMetadataRequest) MarshalJSON() ([]byte, error)

func (*GetPageVersionMetadataRequest) UnmarshalJSON

func (v *GetPageVersionMetadataRequest) UnmarshalJSON(data []byte) error

type GetPageVersionMetadataResponse

type GetPageVersionMetadataResponse struct {
	Metadata *PageVersionMetadata `json:"metadata"`
}

func (GetPageVersionMetadataResponse) MarshalJSON

func (v GetPageVersionMetadataResponse) MarshalJSON() ([]byte, error)

func (*GetPageVersionMetadataResponse) UnmarshalJSON

func (v *GetPageVersionMetadataResponse) UnmarshalJSON(data []byte) error

type GetPageVersionRequest

type GetPageVersionRequest struct {
	PageId    string `json:"page_id"`
	UserId    string `json:"user_id"`
	VersionId string `json:"version_id"`
}

func (GetPageVersionRequest) MarshalJSON

func (v GetPageVersionRequest) MarshalJSON() ([]byte, error)

func (*GetPageVersionRequest) UnmarshalJSON

func (v *GetPageVersionRequest) UnmarshalJSON(data []byte) error

type GetPageVersionResponse

type GetPageVersionResponse struct {
	Version *PageVersion `json:"version"`
}

func (GetPageVersionResponse) MarshalJSON

func (v GetPageVersionResponse) MarshalJSON() ([]byte, error)

func (*GetPageVersionResponse) UnmarshalJSON

func (v *GetPageVersionResponse) UnmarshalJSON(data []byte) error

type GetProfileRequest

type GetProfileRequest = any

type GetProfileResponse

type GetProfileResponse struct {
	Avatar            runtime.Optional[string]    `json:"avatar"`
	Bio               runtime.Optional[string]    `json:"bio"`
	CreatedAt         runtime.Optional[Timestamp] `json:"created_at"`
	DefaultApiVersion runtime.Optional[string]    `json:"default_api_version"`
	Email             runtime.Optional[string]    `json:"email"`
	EmailVerified     runtime.Optional[bool]      `json:"email_verified"`
	HomeAddress       runtime.Optional[string]    `json:"home_address"`
	Location          runtime.Optional[string]    `json:"location"`
	Name              runtime.Optional[string]    `json:"name"`
	Phone             runtime.Optional[string]    `json:"phone"`
	PhoneVerified     runtime.Optional[bool]      `json:"phone_verified"`
	UpdatedAt         runtime.Optional[Timestamp] `json:"updated_at"`
	UserId            runtime.Optional[string]    `json:"user_id"`
	Website           runtime.Optional[string]    `json:"website"`
	WorkAddress       runtime.Optional[string]    `json:"work_address"`
}

func (GetProfileResponse) MarshalJSON

func (v GetProfileResponse) MarshalJSON() ([]byte, error)

func (*GetProfileResponse) UnmarshalJSON

func (v *GetProfileResponse) UnmarshalJSON(data []byte) error

type GetProjectRequest

type GetProjectRequest struct {
	ProjectId runtime.Optional[string] `json:"project_id"`
}

func (GetProjectRequest) MarshalJSON

func (v GetProjectRequest) MarshalJSON() ([]byte, error)

func (*GetProjectRequest) UnmarshalJSON

func (v *GetProjectRequest) UnmarshalJSON(data []byte) error

type GetProjectResponse

type GetProjectResponse struct {
	Project runtime.Optional[*Project] `json:"project"`
}

func (GetProjectResponse) MarshalJSON

func (v GetProjectResponse) MarshalJSON() ([]byte, error)

func (*GetProjectResponse) UnmarshalJSON

func (v *GetProjectResponse) UnmarshalJSON(data []byte) error

type GetProjectSummaryRequest

type GetProjectSummaryRequest struct {
	ProjectId runtime.Optional[string] `json:"project_id"`
}

func (GetProjectSummaryRequest) MarshalJSON

func (v GetProjectSummaryRequest) MarshalJSON() ([]byte, error)

func (*GetProjectSummaryRequest) UnmarshalJSON

func (v *GetProjectSummaryRequest) UnmarshalJSON(data []byte) error

type GetProjectSummaryResponse

type GetProjectSummaryResponse struct {
	ArticleCount runtime.Optional[int64]    `json:"article_count"`
	AssetCount   runtime.Optional[int64]    `json:"asset_count"`
	Project      runtime.Optional[*Project] `json:"project"`
	PublishCount runtime.Optional[int64]    `json:"publish_count"`
	VideoCount   runtime.Optional[int64]    `json:"video_count"`
}

func (GetProjectSummaryResponse) MarshalJSON

func (v GetProjectSummaryResponse) MarshalJSON() ([]byte, error)

func (*GetProjectSummaryResponse) UnmarshalJSON

func (v *GetProjectSummaryResponse) UnmarshalJSON(data []byte) error

type GetPromptTemplateRequest

type GetPromptTemplateRequest struct {
	TemplateId runtime.Optional[string] `json:"template_id"`
}

func (GetPromptTemplateRequest) MarshalJSON

func (v GetPromptTemplateRequest) MarshalJSON() ([]byte, error)

func (*GetPromptTemplateRequest) UnmarshalJSON

func (v *GetPromptTemplateRequest) UnmarshalJSON(data []byte) error

type GetPromptTemplateResponse

type GetPromptTemplateResponse struct {
	Name       runtime.Optional[string] `json:"name"`
	Prompt     runtime.Optional[string] `json:"prompt"`
	TemplateId runtime.Optional[string] `json:"template_id"`
}

func (GetPromptTemplateResponse) MarshalJSON

func (v GetPromptTemplateResponse) MarshalJSON() ([]byte, error)

func (*GetPromptTemplateResponse) UnmarshalJSON

func (v *GetPromptTemplateResponse) UnmarshalJSON(data []byte) error

type GetPublishStatusRequest

type GetPublishStatusRequest struct {
	RecordId runtime.Optional[string] `json:"record_id"`
}

func (GetPublishStatusRequest) MarshalJSON

func (v GetPublishStatusRequest) MarshalJSON() ([]byte, error)

func (*GetPublishStatusRequest) UnmarshalJSON

func (v *GetPublishStatusRequest) UnmarshalJSON(data []byte) error

type GetPublishStatusResponse

type GetPublishStatusResponse struct {
	Record runtime.Optional[*PublishRecord] `json:"record"`
}

func (GetPublishStatusResponse) MarshalJSON

func (v GetPublishStatusResponse) MarshalJSON() ([]byte, error)

func (*GetPublishStatusResponse) UnmarshalJSON

func (v *GetPublishStatusResponse) UnmarshalJSON(data []byte) error

type GetScopeRequest

type GetScopeRequest struct {
	Name runtime.Optional[string] `json:"name"`
}

func (GetScopeRequest) MarshalJSON

func (v GetScopeRequest) MarshalJSON() ([]byte, error)

func (*GetScopeRequest) UnmarshalJSON

func (v *GetScopeRequest) UnmarshalJSON(data []byte) error

type GetScopeResponse

type GetScopeResponse struct {
	Scope runtime.Optional[*Scope] `json:"scope"`
}

func (GetScopeResponse) MarshalJSON

func (v GetScopeResponse) MarshalJSON() ([]byte, error)

func (*GetScopeResponse) UnmarshalJSON

func (v *GetScopeResponse) UnmarshalJSON(data []byte) error

type GetSecuritySettingsRequest

type GetSecuritySettingsRequest = any

type GetSecuritySettingsResponse

type GetSecuritySettingsResponse struct {
	EmailVerified     runtime.Optional[bool]      `json:"email_verified"`
	HasPassword       runtime.Optional[bool]      `json:"has_password"`
	PasswordChangedAt runtime.Optional[Timestamp] `json:"password_changed_at"`
	PhoneVerified     runtime.Optional[bool]      `json:"phone_verified"`
	TwoFactorEnabled  runtime.Optional[bool]      `json:"two_factor_enabled"`
}

func (GetSecuritySettingsResponse) MarshalJSON

func (v GetSecuritySettingsResponse) MarshalJSON() ([]byte, error)

func (*GetSecuritySettingsResponse) UnmarshalJSON

func (v *GetSecuritySettingsResponse) UnmarshalJSON(data []byte) error

type GetSessionRequest

type GetSessionRequest struct {
	SessionId runtime.Optional[string] `json:"session_id"`
}

func (GetSessionRequest) MarshalJSON

func (v GetSessionRequest) MarshalJSON() ([]byte, error)

func (*GetSessionRequest) UnmarshalJSON

func (v *GetSessionRequest) UnmarshalJSON(data []byte) error

type GetSessionResponse

type GetSessionResponse struct {
	Session runtime.Optional[*SessionInfo] `json:"session"`
}

func (GetSessionResponse) MarshalJSON

func (v GetSessionResponse) MarshalJSON() ([]byte, error)

func (*GetSessionResponse) UnmarshalJSON

func (v *GetSessionResponse) UnmarshalJSON(data []byte) error

type GetStorageProtectionRequest

type GetStorageProtectionRequest struct {
	UserId string `json:"user_id"`
}

func (GetStorageProtectionRequest) MarshalJSON

func (v GetStorageProtectionRequest) MarshalJSON() ([]byte, error)

func (*GetStorageProtectionRequest) UnmarshalJSON

func (v *GetStorageProtectionRequest) UnmarshalJSON(data []byte) error

type GetStorageProtectionResponse

type GetStorageProtectionResponse struct {
	StorageProtection *AccountStorageProtection `json:"storage_protection"`
}

func (GetStorageProtectionResponse) MarshalJSON

func (v GetStorageProtectionResponse) MarshalJSON() ([]byte, error)

func (*GetStorageProtectionResponse) UnmarshalJSON

func (v *GetStorageProtectionResponse) UnmarshalJSON(data []byte) error

type GetUploadRequest

type GetUploadRequest struct {
	UploadId string `json:"upload_id"`
	UserId   string `json:"user_id"`
}

func (GetUploadRequest) MarshalJSON

func (v GetUploadRequest) MarshalJSON() ([]byte, error)

func (*GetUploadRequest) UnmarshalJSON

func (v *GetUploadRequest) UnmarshalJSON(data []byte) error

type GetUploadResponse

type GetUploadResponse struct {
	Material runtime.Optional[*Material] `json:"material"`
	Upload   *UploadSession              `json:"upload"`
}

func (GetUploadResponse) MarshalJSON

func (v GetUploadResponse) MarshalJSON() ([]byte, error)

func (*GetUploadResponse) UnmarshalJSON

func (v *GetUploadResponse) UnmarshalJSON(data []byte) error

type GetVersionHintRequest

type GetVersionHintRequest struct {
	UserId runtime.Optional[string] `json:"user_id"`
}

func (GetVersionHintRequest) MarshalJSON

func (v GetVersionHintRequest) MarshalJSON() ([]byte, error)

func (*GetVersionHintRequest) UnmarshalJSON

func (v *GetVersionHintRequest) UnmarshalJSON(data []byte) error

type GetVersionHintResponse

type GetVersionHintResponse struct {
	DefaultApiVersion runtime.Optional[string] `json:"default_api_version"`
}

func (GetVersionHintResponse) MarshalJSON

func (v GetVersionHintResponse) MarshalJSON() ([]byte, error)

func (*GetVersionHintResponse) UnmarshalJSON

func (v *GetVersionHintResponse) UnmarshalJSON(data []byte) error

type GetVideoTaskRequest

type GetVideoTaskRequest struct {
	TaskId runtime.Optional[string] `json:"task_id"`
}

func (GetVideoTaskRequest) MarshalJSON

func (v GetVideoTaskRequest) MarshalJSON() ([]byte, error)

func (*GetVideoTaskRequest) UnmarshalJSON

func (v *GetVideoTaskRequest) UnmarshalJSON(data []byte) error

type GetVideoTaskResponse

type GetVideoTaskResponse struct {
	Task runtime.Optional[*VideoTask] `json:"task"`
}

func (GetVideoTaskResponse) MarshalJSON

func (v GetVideoTaskResponse) MarshalJSON() ([]byte, error)

func (*GetVideoTaskResponse) UnmarshalJSON

func (v *GetVideoTaskResponse) UnmarshalJSON(data []byte) error

type GetWebhookRequest

type GetWebhookRequest struct {
	WebhookId runtime.Optional[string] `json:"webhook_id"`
}

func (GetWebhookRequest) MarshalJSON

func (v GetWebhookRequest) MarshalJSON() ([]byte, error)

func (*GetWebhookRequest) UnmarshalJSON

func (v *GetWebhookRequest) UnmarshalJSON(data []byte) error

type GetWebhookResponse

type GetWebhookResponse struct {
	Webhook runtime.Optional[*Webhook] `json:"webhook"`
}

func (GetWebhookResponse) MarshalJSON

func (v GetWebhookResponse) MarshalJSON() ([]byte, error)

func (*GetWebhookResponse) UnmarshalJSON

func (v *GetWebhookResponse) UnmarshalJSON(data []byte) error

type GrantType

type GrantType string
const (
	GrantTypeGRANTTYPEUNSPECIFIED       GrantType = "GRANT_TYPE_UNSPECIFIED"
	GrantTypeGRANTTYPEAUTHORIZATIONCODE GrantType = "GRANT_TYPE_AUTHORIZATION_CODE"
	GrantTypeGRANTTYPEREFRESHTOKEN      GrantType = "GRANT_TYPE_REFRESH_TOKEN"
	GrantTypeGRANTTYPECLIENTCREDENTIALS GrantType = "GRANT_TYPE_CLIENT_CREDENTIALS"
)

func (GrantType) MarshalJSON

func (v GrantType) MarshalJSON() ([]byte, error)

func (*GrantType) UnmarshalJSON

func (v *GrantType) UnmarshalJSON(data []byte) error

type IdentityType

type IdentityType string
const (
	IdentityTypeIDENTITYTYPEUNSPECIFIED IdentityType = "IDENTITY_TYPE_UNSPECIFIED"
	IdentityTypeIDENTITYTYPEUSER        IdentityType = "IDENTITY_TYPE_USER"
	IdentityTypeIDENTITYTYPEORG         IdentityType = "IDENTITY_TYPE_ORG"
	IdentityTypeIDENTITYTYPEWORKSPACE   IdentityType = "IDENTITY_TYPE_WORKSPACE"
)

func (IdentityType) MarshalJSON

func (v IdentityType) MarshalJSON() ([]byte, error)

func (*IdentityType) UnmarshalJSON

func (v *IdentityType) UnmarshalJSON(data []byte) error

type InlineTextChange

type InlineTextChange struct {
	Mode InlineTextChangeMode     `json:"mode"`
	Text runtime.Optional[string] `json:"text"`
}

func (InlineTextChange) MarshalJSON

func (v InlineTextChange) MarshalJSON() ([]byte, error)

func (*InlineTextChange) UnmarshalJSON

func (v *InlineTextChange) UnmarshalJSON(data []byte) error

type InlineTextChangeMode

type InlineTextChangeMode string
const (
	InlineTextChangeModeINLINETEXTCHANGEMODEUNSPECIFIED InlineTextChangeMode = "INLINE_TEXT_CHANGE_MODE_UNSPECIFIED"
	InlineTextChangeModeINLINETEXTCHANGEMODEKEEP        InlineTextChangeMode = "INLINE_TEXT_CHANGE_MODE_KEEP"
	InlineTextChangeModeINLINETEXTCHANGEMODEREPLACE     InlineTextChangeMode = "INLINE_TEXT_CHANGE_MODE_REPLACE"
	InlineTextChangeModeINLINETEXTCHANGEMODEREMOVE      InlineTextChangeMode = "INLINE_TEXT_CHANGE_MODE_REMOVE"
)

func (InlineTextChangeMode) MarshalJSON

func (v InlineTextChangeMode) MarshalJSON() ([]byte, error)

func (*InlineTextChangeMode) UnmarshalJSON

func (v *InlineTextChangeMode) UnmarshalJSON(data []byte) error

type InstructionsListPageInstructionsParams

type InstructionsListPageInstructionsParams struct {
	PageId    string
	UserId    string
	PageSize  runtime.Optional[int64]
	PageToken runtime.Optional[string]
}

type InstructionsService

type InstructionsService struct {
	// contains filtered or unexported fields
}

func (*InstructionsService) ListPageInstructions

func (*InstructionsService) ListPageInstructionsAll

type IntrospectIntrospectTokenParams

type IntrospectIntrospectTokenParams struct {
	Body *IntrospectTokenRequest
}

type IntrospectService

type IntrospectService struct {
	// contains filtered or unexported fields
}

func (*IntrospectService) IntrospectToken

type IntrospectTokenRequest

type IntrospectTokenRequest struct {
	ClientId       runtime.Optional[string] `json:"client_id"`
	ClientSecret   runtime.Optional[string] `json:"client_secret"`
	IncludeProfile runtime.Optional[bool]   `json:"include_profile"`
	Token          runtime.Optional[string] `json:"token"`
	TokenTypeHint  runtime.Optional[string] `json:"token_type_hint"`
}

func (IntrospectTokenRequest) MarshalJSON

func (v IntrospectTokenRequest) MarshalJSON() ([]byte, error)

func (*IntrospectTokenRequest) UnmarshalJSON

func (v *IntrospectTokenRequest) UnmarshalJSON(data []byte) error

type IntrospectTokenResponse

type IntrospectTokenResponse struct {
	Active    runtime.Optional[bool]         `json:"active"`
	ClientId  runtime.Optional[string]       `json:"client_id"`
	ExpiresAt runtime.Optional[Timestamp]    `json:"expires_at"`
	IssuedAt  runtime.Optional[Timestamp]    `json:"issued_at"`
	Profile   runtime.Optional[*UserProfile] `json:"profile"`
	Scope     runtime.Optional[string]       `json:"scope"`
	TokenType runtime.Optional[string]       `json:"token_type"`
	UserId    runtime.Optional[string]       `json:"user_id"`
}

func (IntrospectTokenResponse) MarshalJSON

func (v IntrospectTokenResponse) MarshalJSON() ([]byte, error)

func (*IntrospectTokenResponse) UnmarshalJSON

func (v *IntrospectTokenResponse) UnmarshalJSON(data []byte) error

type JWK

type JWK struct {
	Alg runtime.Optional[string] `json:"alg"`
	E   runtime.Optional[string] `json:"e"`
	Kid runtime.Optional[string] `json:"kid"`
	Kty runtime.Optional[string] `json:"kty"`
	N   runtime.Optional[string] `json:"n"`
	Use runtime.Optional[string] `json:"use"`
}

func (JWK) MarshalJSON

func (v JWK) MarshalJSON() ([]byte, error)

func (*JWK) UnmarshalJSON

func (v *JWK) UnmarshalJSON(data []byte) error

type JobFailure

type JobFailure struct {
	ContentDecisionContext runtime.Optional[*ContentDecisionContext] `json:"content_decision_context"`
	Message                string                                    `json:"message"`
	Reason                 string                                    `json:"reason"`
	RetryAfter             runtime.Optional[Duration]                `json:"retry_after"`
	Retryable              bool                                      `json:"retryable"`
	UserAction             JobFailureUserAction                      `json:"user_action"`
}

func (JobFailure) MarshalJSON

func (v JobFailure) MarshalJSON() ([]byte, error)

func (*JobFailure) UnmarshalJSON

func (v *JobFailure) UnmarshalJSON(data []byte) error

type JobFailureUserAction

type JobFailureUserAction string
const (
	JobFailureUserActionJOBFAILUREUSERACTIONUNSPECIFIED     JobFailureUserAction = "JOB_FAILURE_USER_ACTION_UNSPECIFIED"
	JobFailureUserActionJOBFAILUREUSERACTIONRETRYSAMEINPUT  JobFailureUserAction = "JOB_FAILURE_USER_ACTION_RETRY_SAME_INPUT"
	JobFailureUserActionJOBFAILUREUSERACTIONCHANGEINPUT     JobFailureUserAction = "JOB_FAILURE_USER_ACTION_CHANGE_INPUT"
	JobFailureUserActionJOBFAILUREUSERACTIONCHOOSECONTENT   JobFailureUserAction = "JOB_FAILURE_USER_ACTION_CHOOSE_CONTENT"
	JobFailureUserActionJOBFAILUREUSERACTIONRECHARGE        JobFailureUserAction = "JOB_FAILURE_USER_ACTION_RECHARGE"
	JobFailureUserActionJOBFAILUREUSERACTIONCONTACTSUPPORT  JobFailureUserAction = "JOB_FAILURE_USER_ACTION_CONTACT_SUPPORT"
	JobFailureUserActionJOBFAILUREUSERACTIONENABLEWEBSEARCH JobFailureUserAction = "JOB_FAILURE_USER_ACTION_ENABLE_WEB_SEARCH"
	JobFailureUserActionJOBFAILUREUSERACTIONREFRESHSOURCES  JobFailureUserAction = "JOB_FAILURE_USER_ACTION_REFRESH_SOURCES"
)

func (JobFailureUserAction) MarshalJSON

func (v JobFailureUserAction) MarshalJSON() ([]byte, error)

func (*JobFailureUserAction) UnmarshalJSON

func (v *JobFailureUserAction) UnmarshalJSON(data []byte) error

type JobStage

type JobStage string
const (
	JobStageJOBSTAGEUNSPECIFIED   JobStage = "JOB_STAGE_UNSPECIFIED"
	JobStageJOBSTAGEPREFLIGHT     JobStage = "JOB_STAGE_PREFLIGHT"
	JobStageJOBSTAGEUNDERSTANDING JobStage = "JOB_STAGE_UNDERSTANDING"
	JobStageJOBSTAGEPLANNING      JobStage = "JOB_STAGE_PLANNING"
	JobStageJOBSTAGESYNTHESIZING  JobStage = "JOB_STAGE_SYNTHESIZING"
	JobStageJOBSTAGECOMPOSING     JobStage = "JOB_STAGE_COMPOSING"
	JobStageJOBSTAGERENDERING     JobStage = "JOB_STAGE_RENDERING"
	JobStageJOBSTAGEVALIDATING    JobStage = "JOB_STAGE_VALIDATING"
	JobStageJOBSTAGEREVIEWING     JobStage = "JOB_STAGE_REVIEWING"
	JobStageJOBSTAGEFINALIZING    JobStage = "JOB_STAGE_FINALIZING"
	JobStageJOBSTAGERESEARCHING   JobStage = "JOB_STAGE_RESEARCHING"
)

func (JobStage) MarshalJSON

func (v JobStage) MarshalJSON() ([]byte, error)

func (*JobStage) UnmarshalJSON

func (v *JobStage) UnmarshalJSON(data []byte) error

type JobStatus

type JobStatus string
const (
	JobStatusJOBSTATUSUNSPECIFIED JobStatus = "JOB_STATUS_UNSPECIFIED"
	JobStatusJOBSTATUSQUEUED      JobStatus = "JOB_STATUS_QUEUED"
	JobStatusJOBSTATUSRUNNING     JobStatus = "JOB_STATUS_RUNNING"
	JobStatusJOBSTATUSSUCCEEDED   JobStatus = "JOB_STATUS_SUCCEEDED"
	JobStatusJOBSTATUSFAILED      JobStatus = "JOB_STATUS_FAILED"
)

func (JobStatus) MarshalJSON

func (v JobStatus) MarshalJSON() ([]byte, error)

func (*JobStatus) UnmarshalJSON

func (v *JobStatus) UnmarshalJSON(data []byte) error

type JobSummary

type JobSummary struct {
	CompletedAt     runtime.Optional[Timestamp]              `json:"completed_at"`
	CostSummary     runtime.Optional[*CostSummary]           `json:"cost_summary"`
	CreatedAt       Timestamp                                `json:"created_at"`
	ExecutionPlan   runtime.Optional[*GenerationPlanSummary] `json:"execution_plan"`
	Failure         runtime.Optional[*JobFailure]            `json:"failure"`
	JobId           string                                   `json:"job_id"`
	Operation       GenerationOperation                      `json:"operation"`
	PageId          string                                   `json:"page_id"`
	ResultVersionId runtime.Optional[string]                 `json:"result_version_id"`
	SequenceNumber  string                                   `json:"sequence_number"`
	SourceJobId     runtime.Optional[string]                 `json:"source_job_id"`
	Stage           runtime.Optional[JobStage]               `json:"stage"`
	Status          JobStatus                                `json:"status"`
	UpdatedAt       Timestamp                                `json:"updated_at"`
}

func (JobSummary) MarshalJSON

func (v JobSummary) MarshalJSON() ([]byte, error)

func (*JobSummary) UnmarshalJSON

func (v *JobSummary) UnmarshalJSON(data []byte) error

type JwksService

type JwksService struct {
	// contains filtered or unexported fields
}

func (*JwksService) GetJWKS

func (s *JwksService) GetJWKS(ctx context.Context, options ...runtime.RequestOption) (*GetJWKSResponse, error)

type ListAPIKeysRequest

type ListAPIKeysRequest struct {
	AppId     runtime.Optional[string] `json:"app_id"`
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (ListAPIKeysRequest) MarshalJSON

func (v ListAPIKeysRequest) MarshalJSON() ([]byte, error)

func (*ListAPIKeysRequest) UnmarshalJSON

func (v *ListAPIKeysRequest) UnmarshalJSON(data []byte) error

type ListAPIKeysResponse

type ListAPIKeysResponse struct {
	ApiKeys       runtime.Optional[[]*APIKey] `json:"api_keys"`
	NextPageToken runtime.Optional[string]    `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]     `json:"total_count"`
}

func (ListAPIKeysResponse) MarshalJSON

func (v ListAPIKeysResponse) MarshalJSON() ([]byte, error)

func (*ListAPIKeysResponse) UnmarshalJSON

func (v *ListAPIKeysResponse) UnmarshalJSON(data []byte) error

type ListApplicationsRequest

type ListApplicationsRequest struct {
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (ListApplicationsRequest) MarshalJSON

func (v ListApplicationsRequest) MarshalJSON() ([]byte, error)

func (*ListApplicationsRequest) UnmarshalJSON

func (v *ListApplicationsRequest) UnmarshalJSON(data []byte) error

type ListApplicationsResponse

type ListApplicationsResponse struct {
	Applications  runtime.Optional[[]*OAuthApplication] `json:"applications"`
	NextPageToken runtime.Optional[string]              `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]               `json:"total_count"`
}

func (ListApplicationsResponse) MarshalJSON

func (v ListApplicationsResponse) MarshalJSON() ([]byte, error)

func (*ListApplicationsResponse) UnmarshalJSON

func (v *ListApplicationsResponse) UnmarshalJSON(data []byte) error

type ListArticlesRequest

type ListArticlesRequest struct {
	Format    runtime.Optional[ContentFormat] `json:"format"`
	PageSize  runtime.Optional[int64]         `json:"page_size"`
	PageToken runtime.Optional[string]        `json:"page_token"`
	ProjectId runtime.Optional[string]        `json:"project_id"`
}

func (ListArticlesRequest) MarshalJSON

func (v ListArticlesRequest) MarshalJSON() ([]byte, error)

func (*ListArticlesRequest) UnmarshalJSON

func (v *ListArticlesRequest) UnmarshalJSON(data []byte) error

type ListArticlesResponse

type ListArticlesResponse struct {
	Articles      runtime.Optional[[]*Article] `json:"articles"`
	NextPageToken runtime.Optional[string]     `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]      `json:"total_count"`
}

func (ListArticlesResponse) MarshalJSON

func (v ListArticlesResponse) MarshalJSON() ([]byte, error)

func (*ListArticlesResponse) UnmarshalJSON

func (v *ListArticlesResponse) UnmarshalJSON(data []byte) error

type ListAssetsRequest

type ListAssetsRequest struct {
	PageSize  runtime.Optional[int64]     `json:"page_size"`
	PageToken runtime.Optional[string]    `json:"page_token"`
	ProjectId runtime.Optional[string]    `json:"project_id"`
	Type      runtime.Optional[AssetType] `json:"type"`
}

func (ListAssetsRequest) MarshalJSON

func (v ListAssetsRequest) MarshalJSON() ([]byte, error)

func (*ListAssetsRequest) UnmarshalJSON

func (v *ListAssetsRequest) UnmarshalJSON(data []byte) error

type ListAssetsResponse

type ListAssetsResponse struct {
	Assets        runtime.Optional[[]*Asset] `json:"assets"`
	NextPageToken runtime.Optional[string]   `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]    `json:"total_count"`
}

func (ListAssetsResponse) MarshalJSON

func (v ListAssetsResponse) MarshalJSON() ([]byte, error)

func (*ListAssetsResponse) UnmarshalJSON

func (v *ListAssetsResponse) UnmarshalJSON(data []byte) error

type ListAuthorizedApplicationsRequest

type ListAuthorizedApplicationsRequest struct {
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (ListAuthorizedApplicationsRequest) MarshalJSON

func (v ListAuthorizedApplicationsRequest) MarshalJSON() ([]byte, error)

func (*ListAuthorizedApplicationsRequest) UnmarshalJSON

func (v *ListAuthorizedApplicationsRequest) UnmarshalJSON(data []byte) error

type ListAuthorizedApplicationsResponse

type ListAuthorizedApplicationsResponse struct {
	Applications  runtime.Optional[[]*AuthorizedApplication] `json:"applications"`
	NextPageToken runtime.Optional[string]                   `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]                    `json:"total_count"`
}

func (ListAuthorizedApplicationsResponse) MarshalJSON

func (v ListAuthorizedApplicationsResponse) MarshalJSON() ([]byte, error)

func (*ListAuthorizedApplicationsResponse) UnmarshalJSON

func (v *ListAuthorizedApplicationsResponse) UnmarshalJSON(data []byte) error

type ListCategoriesRequest

type ListCategoriesRequest struct {
	OrderBy          runtime.Optional[string]                              `json:"order_by"`
	Pagination       runtime.Optional[*AppforgesCommonV1PaginationRequest] `json:"pagination"`
	ParentCategoryId runtime.Optional[string]                              `json:"parent_category_id"`
	UserId           string                                                `json:"user_id"`
}

func (ListCategoriesRequest) MarshalJSON

func (v ListCategoriesRequest) MarshalJSON() ([]byte, error)

func (*ListCategoriesRequest) UnmarshalJSON

func (v *ListCategoriesRequest) UnmarshalJSON(data []byte) error

type ListCategoriesResponse

type ListCategoriesResponse struct {
	Categories []*Category                          `json:"categories"`
	Pagination *AppforgesCommonV1PaginationResponse `json:"pagination"`
}

func (ListCategoriesResponse) MarshalJSON

func (v ListCategoriesResponse) MarshalJSON() ([]byte, error)

func (*ListCategoriesResponse) UnmarshalJSON

func (v *ListCategoriesResponse) UnmarshalJSON(data []byte) error

type ListMembersRequest

type ListMembersRequest struct {
	OrgId     runtime.Optional[string] `json:"org_id"`
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (ListMembersRequest) MarshalJSON

func (v ListMembersRequest) MarshalJSON() ([]byte, error)

func (*ListMembersRequest) UnmarshalJSON

func (v *ListMembersRequest) UnmarshalJSON(data []byte) error

type ListMembersResponse

type ListMembersResponse struct {
	Members       runtime.Optional[[]*OrganizationMember] `json:"members"`
	NextPageToken runtime.Optional[string]                `json:"next_page_token"`
}

func (ListMembersResponse) MarshalJSON

func (v ListMembersResponse) MarshalJSON() ([]byte, error)

func (*ListMembersResponse) UnmarshalJSON

func (v *ListMembersResponse) UnmarshalJSON(data []byte) error

type ListOAuthClientsRequest

type ListOAuthClientsRequest struct {
	AppId     runtime.Optional[string] `json:"app_id"`
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (ListOAuthClientsRequest) MarshalJSON

func (v ListOAuthClientsRequest) MarshalJSON() ([]byte, error)

func (*ListOAuthClientsRequest) UnmarshalJSON

func (v *ListOAuthClientsRequest) UnmarshalJSON(data []byte) error

type ListOAuthClientsResponse

type ListOAuthClientsResponse struct {
	Clients       runtime.Optional[[]*OAuthClient] `json:"clients"`
	NextPageToken runtime.Optional[string]         `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]          `json:"total_count"`
}

func (ListOAuthClientsResponse) MarshalJSON

func (v ListOAuthClientsResponse) MarshalJSON() ([]byte, error)

func (*ListOAuthClientsResponse) UnmarshalJSON

func (v *ListOAuthClientsResponse) UnmarshalJSON(data []byte) error

type ListOrganizationsRequest

type ListOrganizationsRequest struct {
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (ListOrganizationsRequest) MarshalJSON

func (v ListOrganizationsRequest) MarshalJSON() ([]byte, error)

func (*ListOrganizationsRequest) UnmarshalJSON

func (v *ListOrganizationsRequest) UnmarshalJSON(data []byte) error

type ListOrganizationsResponse

type ListOrganizationsResponse struct {
	NextPageToken runtime.Optional[string]          `json:"next_page_token"`
	Organizations runtime.Optional[[]*Organization] `json:"organizations"`
}

func (ListOrganizationsResponse) MarshalJSON

func (v ListOrganizationsResponse) MarshalJSON() ([]byte, error)

func (*ListOrganizationsResponse) UnmarshalJSON

func (v *ListOrganizationsResponse) UnmarshalJSON(data []byte) error

type ListPageInstructionsRequest

type ListPageInstructionsRequest struct {
	PageId     string                                                `json:"page_id"`
	Pagination runtime.Optional[*AppforgesCommonV1PaginationRequest] `json:"pagination"`
	UserId     string                                                `json:"user_id"`
}

func (ListPageInstructionsRequest) MarshalJSON

func (v ListPageInstructionsRequest) MarshalJSON() ([]byte, error)

func (*ListPageInstructionsRequest) UnmarshalJSON

func (v *ListPageInstructionsRequest) UnmarshalJSON(data []byte) error

type ListPageInstructionsResponse

type ListPageInstructionsResponse struct {
	Instructions runtime.Optional[[]*PageInstruction]                   `json:"instructions"`
	Pagination   runtime.Optional[*AppforgesCommonV1PaginationResponse] `json:"pagination"`
}

func (ListPageInstructionsResponse) MarshalJSON

func (v ListPageInstructionsResponse) MarshalJSON() ([]byte, error)

func (*ListPageInstructionsResponse) UnmarshalJSON

func (v *ListPageInstructionsResponse) UnmarshalJSON(data []byte) error

type ListPageVersionsRequest

type ListPageVersionsRequest struct {
	OrderBy    runtime.Optional[string]                              `json:"order_by"`
	PageId     string                                                `json:"page_id"`
	Pagination runtime.Optional[*AppforgesCommonV1PaginationRequest] `json:"pagination"`
	UserId     string                                                `json:"user_id"`
}

func (ListPageVersionsRequest) MarshalJSON

func (v ListPageVersionsRequest) MarshalJSON() ([]byte, error)

func (*ListPageVersionsRequest) UnmarshalJSON

func (v *ListPageVersionsRequest) UnmarshalJSON(data []byte) error

type ListPageVersionsResponse

type ListPageVersionsResponse struct {
	Pagination *AppforgesCommonV1PaginationResponse `json:"pagination"`
	Versions   []*PageVersionSummary                `json:"versions"`
}

func (ListPageVersionsResponse) MarshalJSON

func (v ListPageVersionsResponse) MarshalJSON() ([]byte, error)

func (*ListPageVersionsResponse) UnmarshalJSON

func (v *ListPageVersionsResponse) UnmarshalJSON(data []byte) error

type ListPagesRequest

type ListPagesRequest struct {
	CategoryId runtime.Optional[string]                              `json:"category_id"`
	OrderBy    runtime.Optional[string]                              `json:"order_by"`
	Pagination runtime.Optional[*AppforgesCommonV1PaginationRequest] `json:"pagination"`
	UserId     string                                                `json:"user_id"`
}

func (ListPagesRequest) MarshalJSON

func (v ListPagesRequest) MarshalJSON() ([]byte, error)

func (*ListPagesRequest) UnmarshalJSON

func (v *ListPagesRequest) UnmarshalJSON(data []byte) error

type ListPagesResponse

type ListPagesResponse struct {
	Pages      []*PageSummary                       `json:"pages"`
	Pagination *AppforgesCommonV1PaginationResponse `json:"pagination"`
}

func (ListPagesResponse) MarshalJSON

func (v ListPagesResponse) MarshalJSON() ([]byte, error)

func (*ListPagesResponse) UnmarshalJSON

func (v *ListPagesResponse) UnmarshalJSON(data []byte) error

type ListPlatformAccountsRequest

type ListPlatformAccountsRequest struct {
	Platform runtime.Optional[Platform] `json:"platform"`
}

func (ListPlatformAccountsRequest) MarshalJSON

func (v ListPlatformAccountsRequest) MarshalJSON() ([]byte, error)

func (*ListPlatformAccountsRequest) UnmarshalJSON

func (v *ListPlatformAccountsRequest) UnmarshalJSON(data []byte) error

type ListPlatformAccountsResponse

type ListPlatformAccountsResponse struct {
	Accounts runtime.Optional[[]*PlatformAccount] `json:"accounts"`
}

func (ListPlatformAccountsResponse) MarshalJSON

func (v ListPlatformAccountsResponse) MarshalJSON() ([]byte, error)

func (*ListPlatformAccountsResponse) UnmarshalJSON

func (v *ListPlatformAccountsResponse) UnmarshalJSON(data []byte) error

type ListPresetsRequest

type ListPresetsRequest = any

type ListPresetsResponse

type ListPresetsResponse struct {
	Presets runtime.Optional[[]*Preset] `json:"presets"`
}

func (ListPresetsResponse) MarshalJSON

func (v ListPresetsResponse) MarshalJSON() ([]byte, error)

func (*ListPresetsResponse) UnmarshalJSON

func (v *ListPresetsResponse) UnmarshalJSON(data []byte) error

type ListProjectsRequest

type ListProjectsRequest struct {
	PageSize  runtime.Optional[int64]         `json:"page_size"`
	PageToken runtime.Optional[string]        `json:"page_token"`
	Status    runtime.Optional[ProjectStatus] `json:"status"`
}

func (ListProjectsRequest) MarshalJSON

func (v ListProjectsRequest) MarshalJSON() ([]byte, error)

func (*ListProjectsRequest) UnmarshalJSON

func (v *ListProjectsRequest) UnmarshalJSON(data []byte) error

type ListProjectsResponse

type ListProjectsResponse struct {
	NextPageToken runtime.Optional[string]     `json:"next_page_token"`
	Projects      runtime.Optional[[]*Project] `json:"projects"`
	TotalCount    runtime.Optional[int64]      `json:"total_count"`
}

func (ListProjectsResponse) MarshalJSON

func (v ListProjectsResponse) MarshalJSON() ([]byte, error)

func (*ListProjectsResponse) UnmarshalJSON

func (v *ListProjectsResponse) UnmarshalJSON(data []byte) error

type ListPublishRecordsRequest

type ListPublishRecordsRequest struct {
	ArticleId runtime.Optional[string]        `json:"article_id"`
	PageSize  runtime.Optional[int64]         `json:"page_size"`
	PageToken runtime.Optional[string]        `json:"page_token"`
	Platform  runtime.Optional[Platform]      `json:"platform"`
	Status    runtime.Optional[PublishStatus] `json:"status"`
}

func (ListPublishRecordsRequest) MarshalJSON

func (v ListPublishRecordsRequest) MarshalJSON() ([]byte, error)

func (*ListPublishRecordsRequest) UnmarshalJSON

func (v *ListPublishRecordsRequest) UnmarshalJSON(data []byte) error

type ListPublishRecordsResponse

type ListPublishRecordsResponse struct {
	NextPageToken runtime.Optional[string]           `json:"next_page_token"`
	Records       runtime.Optional[[]*PublishRecord] `json:"records"`
	TotalCount    runtime.Optional[int64]            `json:"total_count"`
}

func (ListPublishRecordsResponse) MarshalJSON

func (v ListPublishRecordsResponse) MarshalJSON() ([]byte, error)

func (*ListPublishRecordsResponse) UnmarshalJSON

func (v *ListPublishRecordsResponse) UnmarshalJSON(data []byte) error

type ListScopesRequest

type ListScopesRequest struct {
	Category runtime.Optional[string] `json:"category"`
}

func (ListScopesRequest) MarshalJSON

func (v ListScopesRequest) MarshalJSON() ([]byte, error)

func (*ListScopesRequest) UnmarshalJSON

func (v *ListScopesRequest) UnmarshalJSON(data []byte) error

type ListScopesResponse

type ListScopesResponse struct {
	Scopes runtime.Optional[[]*Scope] `json:"scopes"`
}

func (ListScopesResponse) MarshalJSON

func (v ListScopesResponse) MarshalJSON() ([]byte, error)

func (*ListScopesResponse) UnmarshalJSON

func (v *ListScopesResponse) UnmarshalJSON(data []byte) error

type ListSessionsRequest

type ListSessionsRequest = any

type ListSessionsResponse

type ListSessionsResponse struct {
	Sessions runtime.Optional[[]*SessionInfo] `json:"sessions"`
}

func (ListSessionsResponse) MarshalJSON

func (v ListSessionsResponse) MarshalJSON() ([]byte, error)

func (*ListSessionsResponse) UnmarshalJSON

func (v *ListSessionsResponse) UnmarshalJSON(data []byte) error

type ListTemplatesRequest

type ListTemplatesRequest = any

type ListTemplatesResponse

type ListTemplatesResponse struct {
	Templates runtime.Optional[[]*Template] `json:"templates"`
}

func (ListTemplatesResponse) MarshalJSON

func (v ListTemplatesResponse) MarshalJSON() ([]byte, error)

func (*ListTemplatesResponse) UnmarshalJSON

func (v *ListTemplatesResponse) UnmarshalJSON(data []byte) error

type ListVideoTasksRequest

type ListVideoTasksRequest struct {
	PageSize  runtime.Optional[int64]       `json:"page_size"`
	PageToken runtime.Optional[string]      `json:"page_token"`
	ProjectId runtime.Optional[string]      `json:"project_id"`
	Status    runtime.Optional[VideoStatus] `json:"status"`
}

func (ListVideoTasksRequest) MarshalJSON

func (v ListVideoTasksRequest) MarshalJSON() ([]byte, error)

func (*ListVideoTasksRequest) UnmarshalJSON

func (v *ListVideoTasksRequest) UnmarshalJSON(data []byte) error

type ListVideoTasksResponse

type ListVideoTasksResponse struct {
	NextPageToken runtime.Optional[string]       `json:"next_page_token"`
	Tasks         runtime.Optional[[]*VideoTask] `json:"tasks"`
	TotalCount    runtime.Optional[int64]        `json:"total_count"`
}

func (ListVideoTasksResponse) MarshalJSON

func (v ListVideoTasksResponse) MarshalJSON() ([]byte, error)

func (*ListVideoTasksResponse) UnmarshalJSON

func (v *ListVideoTasksResponse) UnmarshalJSON(data []byte) error

type ListWebhookDeliveriesRequest

type ListWebhookDeliveriesRequest struct {
	PageSize  runtime.Optional[int64]          `json:"page_size"`
	PageToken runtime.Optional[string]         `json:"page_token"`
	Status    runtime.Optional[DeliveryStatus] `json:"status"`
	WebhookId runtime.Optional[string]         `json:"webhook_id"`
}

func (ListWebhookDeliveriesRequest) MarshalJSON

func (v ListWebhookDeliveriesRequest) MarshalJSON() ([]byte, error)

func (*ListWebhookDeliveriesRequest) UnmarshalJSON

func (v *ListWebhookDeliveriesRequest) UnmarshalJSON(data []byte) error

type ListWebhookDeliveriesResponse

type ListWebhookDeliveriesResponse struct {
	Deliveries    runtime.Optional[[]*WebhookDelivery] `json:"deliveries"`
	NextPageToken runtime.Optional[string]             `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]              `json:"total_count"`
}

func (ListWebhookDeliveriesResponse) MarshalJSON

func (v ListWebhookDeliveriesResponse) MarshalJSON() ([]byte, error)

func (*ListWebhookDeliveriesResponse) UnmarshalJSON

func (v *ListWebhookDeliveriesResponse) UnmarshalJSON(data []byte) error

type ListWebhooksRequest

type ListWebhooksRequest struct {
	AppId     runtime.Optional[string] `json:"app_id"`
	PageSize  runtime.Optional[int64]  `json:"page_size"`
	PageToken runtime.Optional[string] `json:"page_token"`
}

func (ListWebhooksRequest) MarshalJSON

func (v ListWebhooksRequest) MarshalJSON() ([]byte, error)

func (*ListWebhooksRequest) UnmarshalJSON

func (v *ListWebhooksRequest) UnmarshalJSON(data []byte) error

type ListWebhooksResponse

type ListWebhooksResponse struct {
	NextPageToken runtime.Optional[string]     `json:"next_page_token"`
	TotalCount    runtime.Optional[int64]      `json:"total_count"`
	Webhooks      runtime.Optional[[]*Webhook] `json:"webhooks"`
}

func (ListWebhooksResponse) MarshalJSON

func (v ListWebhooksResponse) MarshalJSON() ([]byte, error)

func (*ListWebhooksResponse) UnmarshalJSON

func (v *ListWebhooksResponse) UnmarshalJSON(data []byte) error

type LoginHistoryEntry

type LoginHistoryEntry struct {
	DeviceInfo    runtime.Optional[*DeviceInfo] `json:"device_info"`
	FailureReason runtime.Optional[string]      `json:"failure_reason"`
	HistoryId     runtime.Optional[string]      `json:"history_id"`
	Ip            runtime.Optional[string]      `json:"ip"`
	Location      runtime.Optional[string]      `json:"location"`
	LoginTime     runtime.Optional[Timestamp]   `json:"login_time"`
	LoginType     runtime.Optional[LoginType]   `json:"login_type"`
	Success       runtime.Optional[bool]        `json:"success"`
}

func (LoginHistoryEntry) MarshalJSON

func (v LoginHistoryEntry) MarshalJSON() ([]byte, error)

func (*LoginHistoryEntry) UnmarshalJSON

func (v *LoginHistoryEntry) UnmarshalJSON(data []byte) error

type LoginRequest

type LoginRequest struct {
	DeviceInfo   runtime.Optional[*DeviceInfo] `json:"device_info"`
	Email        runtime.Optional[string]      `json:"email"`
	PasswordHash runtime.Optional[string]      `json:"password_hash"`
	Phone        runtime.Optional[string]      `json:"phone"`
}

func (LoginRequest) MarshalJSON

func (v LoginRequest) MarshalJSON() ([]byte, error)

func (*LoginRequest) UnmarshalJSON

func (v *LoginRequest) UnmarshalJSON(data []byte) error

type LoginResponse

type LoginResponse struct {
	CsrfToken runtime.Optional[string]     `json:"csrf_token"`
	SessionId runtime.Optional[string]     `json:"session_id"`
	Tokens    runtime.Optional[*TokenPair] `json:"tokens"`
	User      runtime.Optional[*UserBrief] `json:"user"`
}

func (LoginResponse) MarshalJSON

func (v LoginResponse) MarshalJSON() ([]byte, error)

func (*LoginResponse) UnmarshalJSON

func (v *LoginResponse) UnmarshalJSON(data []byte) error

type LoginType

type LoginType string
const (
	LoginTypeLOGINTYPEUNSPECIFIED      LoginType = "LOGIN_TYPE_UNSPECIFIED"
	LoginTypeLOGINTYPEPASSWORD         LoginType = "LOGIN_TYPE_PASSWORD"
	LoginTypeLOGINTYPEVERIFICATIONCODE LoginType = "LOGIN_TYPE_VERIFICATION_CODE"
	LoginTypeLOGINTYPEOAUTH            LoginType = "LOGIN_TYPE_OAUTH"
	LoginTypeLOGINTYPEOPAQUE           LoginType = "LOGIN_TYPE_OPAQUE"
)

func (LoginType) MarshalJSON

func (v LoginType) MarshalJSON() ([]byte, error)

func (*LoginType) UnmarshalJSON

func (v *LoginType) UnmarshalJSON(data []byte) error

type LoginWithVerificationCodeRequest

type LoginWithVerificationCodeRequest struct {
	Code         runtime.Optional[string]           `json:"code"`
	CodeVerifier runtime.Optional[string]           `json:"code_verifier"`
	DeviceInfo   runtime.Optional[*DeviceInfo]      `json:"device_info"`
	Target       runtime.Optional[string]           `json:"target"`
	Txid         runtime.Optional[string]           `json:"txid"`
	Type         runtime.Optional[VerificationType] `json:"type"`
}

func (LoginWithVerificationCodeRequest) MarshalJSON

func (v LoginWithVerificationCodeRequest) MarshalJSON() ([]byte, error)

func (*LoginWithVerificationCodeRequest) UnmarshalJSON

func (v *LoginWithVerificationCodeRequest) UnmarshalJSON(data []byte) error

type LoginWithVerificationCodeResponse

type LoginWithVerificationCodeResponse struct {
	CsrfToken runtime.Optional[string]     `json:"csrf_token"`
	SessionId runtime.Optional[string]     `json:"session_id"`
	Tokens    runtime.Optional[*TokenPair] `json:"tokens"`
	User      runtime.Optional[*UserBrief] `json:"user"`
}

func (LoginWithVerificationCodeResponse) MarshalJSON

func (v LoginWithVerificationCodeResponse) MarshalJSON() ([]byte, error)

func (*LoginWithVerificationCodeResponse) UnmarshalJSON

func (v *LoginWithVerificationCodeResponse) UnmarshalJSON(data []byte) error

type LogoutRequest

type LogoutRequest = any

type LogoutResponse

type LogoutResponse = any

type LookupUserRequest

type LookupUserRequest = any

type LookupUserResponse

type LookupUserResponse struct {
	EmailMasked runtime.Optional[string]     `json:"email_masked"`
	Name        runtime.Optional[string]     `json:"name"`
	PhoneMasked runtime.Optional[string]     `json:"phone_masked"`
	Status      runtime.Optional[UserStatus] `json:"status"`
	UserId      runtime.Optional[string]     `json:"user_id"`
}

func (LookupUserResponse) MarshalJSON

func (v LookupUserResponse) MarshalJSON() ([]byte, error)

func (*LookupUserResponse) UnmarshalJSON

func (v *LookupUserResponse) UnmarshalJSON(data []byte) error

type Material

type Material struct {
	CostSummary       *CostSummary             `json:"cost_summary"`
	CreatedAt         Timestamp                `json:"created_at"`
	DetectedMediaType string                   `json:"detected_media_type"`
	DisplayName       string                   `json:"display_name"`
	FailureReason     runtime.Optional[string] `json:"failure_reason"`
	MaterialId        string                   `json:"material_id"`
	PageId            runtime.Optional[string] `json:"page_id"`
	Sha256            string                   `json:"sha256"`
	SizeBytes         string                   `json:"size_bytes"`
	Status            MaterialStatus           `json:"status"`
	UpdatedAt         Timestamp                `json:"updated_at"`
}

func (Material) MarshalJSON

func (v Material) MarshalJSON() ([]byte, error)

func (*Material) UnmarshalJSON

func (v *Material) UnmarshalJSON(data []byte) error

type MaterialDeletionResult

type MaterialDeletionResult struct {
	AcceptedAt Timestamp `json:"accepted_at"`
	MaterialId string    `json:"material_id"`
}

func (MaterialDeletionResult) MarshalJSON

func (v MaterialDeletionResult) MarshalJSON() ([]byte, error)

func (*MaterialDeletionResult) UnmarshalJSON

func (v *MaterialDeletionResult) UnmarshalJSON(data []byte) error

type MaterialStatus

type MaterialStatus string
const (
	MaterialStatusMATERIALSTATUSUNSPECIFIED MaterialStatus = "MATERIAL_STATUS_UNSPECIFIED"
	MaterialStatusMATERIALSTATUSSCANNING    MaterialStatus = "MATERIAL_STATUS_SCANNING"
	MaterialStatusMATERIALSTATUSPARSING     MaterialStatus = "MATERIAL_STATUS_PARSING"
	MaterialStatusMATERIALSTATUSREADY       MaterialStatus = "MATERIAL_STATUS_READY"
	MaterialStatusMATERIALSTATUSREJECTED    MaterialStatus = "MATERIAL_STATUS_REJECTED"
	MaterialStatusMATERIALSTATUSFAILED      MaterialStatus = "MATERIAL_STATUS_FAILED"
	MaterialStatusMATERIALSTATUSDELETED     MaterialStatus = "MATERIAL_STATUS_DELETED"
)

func (MaterialStatus) MarshalJSON

func (v MaterialStatus) MarshalJSON() ([]byte, error)

func (*MaterialStatus) UnmarshalJSON

func (v *MaterialStatus) UnmarshalJSON(data []byte) error

type MetadataGetPageVersionMetadataParams

type MetadataGetPageVersionMetadataParams struct {
	PageId    string
	UserId    string
	VersionId string
}

type MetadataService

type MetadataService struct {
	// contains filtered or unexported fields
}

func (*MetadataService) GetPageVersionMetadata

type OAuthApplication

type OAuthApplication struct {
	AllowedGrantTypes  runtime.Optional[[]GrantType]       `json:"allowed_grant_types"`
	AllowedIdentities  runtime.Optional[[]IdentityType]    `json:"allowed_identities"`
	AllowedScopes      runtime.Optional[[]string]          `json:"allowed_scopes"`
	AppId              runtime.Optional[string]            `json:"app_id"`
	AppName            runtime.Optional[string]            `json:"app_name"`
	AppType            runtime.Optional[ApplicationType]   `json:"app_type"`
	ClientId           runtime.Optional[string]            `json:"client_id"`
	ClientSecretMasked runtime.Optional[string]            `json:"client_secret_masked"`
	CreatedAt          runtime.Optional[Timestamp]         `json:"created_at"`
	Description        runtime.Optional[string]            `json:"description"`
	HomepageUrl        runtime.Optional[string]            `json:"homepage_url"`
	LogoUrl            runtime.Optional[string]            `json:"logo_url"`
	OwnerId            runtime.Optional[string]            `json:"owner_id"`
	RedirectUris       runtime.Optional[[]string]          `json:"redirect_uris"`
	Status             runtime.Optional[ApplicationStatus] `json:"status"`
	UpdatedAt          runtime.Optional[Timestamp]         `json:"updated_at"`
}

func (OAuthApplication) MarshalJSON

func (v OAuthApplication) MarshalJSON() ([]byte, error)

func (*OAuthApplication) UnmarshalJSON

func (v *OAuthApplication) UnmarshalJSON(data []byte) error

type OAuthClient

type OAuthClient struct {
	AllowedGrantTypes runtime.Optional[[]GrantType]            `json:"allowed_grant_types"`
	AllowedIdentities runtime.Optional[[]IdentityType]         `json:"allowed_identities"`
	AllowedScopes     runtime.Optional[[]string]               `json:"allowed_scopes"`
	AppId             runtime.Optional[string]                 `json:"app_id"`
	ClientId          runtime.Optional[string]                 `json:"client_id"`
	ClientType        runtime.Optional[ClientCredentialType]   `json:"client_type"`
	CreatedAt         runtime.Optional[Timestamp]              `json:"created_at"`
	Description       runtime.Optional[string]                 `json:"description"`
	HasClientSecret   runtime.Optional[bool]                   `json:"has_client_secret"`
	Name              runtime.Optional[string]                 `json:"name"`
	RedirectUris      runtime.Optional[[]string]               `json:"redirect_uris"`
	Status            runtime.Optional[ClientCredentialStatus] `json:"status"`
	UpdatedAt         runtime.Optional[Timestamp]              `json:"updated_at"`
}

func (OAuthClient) MarshalJSON

func (v OAuthClient) MarshalJSON() ([]byte, error)

func (*OAuthClient) UnmarshalJSON

func (v *OAuthClient) UnmarshalJSON(data []byte) error

type OpaqueLoginFinalizeRequest

type OpaqueLoginFinalizeRequest struct {
	DeviceInfo runtime.Optional[*DeviceInfo] `json:"device_info"`
	Ke3        runtime.Optional[string]      `json:"ke3"`
	SessionId  runtime.Optional[string]      `json:"session_id"`
}

func (OpaqueLoginFinalizeRequest) MarshalJSON

func (v OpaqueLoginFinalizeRequest) MarshalJSON() ([]byte, error)

func (*OpaqueLoginFinalizeRequest) UnmarshalJSON

func (v *OpaqueLoginFinalizeRequest) UnmarshalJSON(data []byte) error

type OpaqueLoginFinalizeResponse

type OpaqueLoginFinalizeResponse struct {
	Tokens runtime.Optional[*TokenPair] `json:"tokens"`
	User   runtime.Optional[*UserBrief] `json:"user"`
}

func (OpaqueLoginFinalizeResponse) MarshalJSON

func (v OpaqueLoginFinalizeResponse) MarshalJSON() ([]byte, error)

func (*OpaqueLoginFinalizeResponse) UnmarshalJSON

func (v *OpaqueLoginFinalizeResponse) UnmarshalJSON(data []byte) error

type OpaqueLoginInitRequest

type OpaqueLoginInitRequest struct {
	Email runtime.Optional[string] `json:"email"`
	Ke1   runtime.Optional[string] `json:"ke1"`
	Phone runtime.Optional[string] `json:"phone"`
}

func (OpaqueLoginInitRequest) MarshalJSON

func (v OpaqueLoginInitRequest) MarshalJSON() ([]byte, error)

func (*OpaqueLoginInitRequest) UnmarshalJSON

func (v *OpaqueLoginInitRequest) UnmarshalJSON(data []byte) error

type OpaqueLoginInitResponse

type OpaqueLoginInitResponse struct {
	Ke2            runtime.Optional[string] `json:"ke2"`
	ServerIdentity runtime.Optional[string] `json:"server_identity"`
	SessionId      runtime.Optional[string] `json:"session_id"`
}

func (OpaqueLoginInitResponse) MarshalJSON

func (v OpaqueLoginInitResponse) MarshalJSON() ([]byte, error)

func (*OpaqueLoginInitResponse) UnmarshalJSON

func (v *OpaqueLoginInitResponse) UnmarshalJSON(data []byte) error

type OpaqueRegisterFinalizeRequest

type OpaqueRegisterFinalizeRequest struct {
	Code               runtime.Optional[string] `json:"code"`
	CodeVerifier       runtime.Optional[string] `json:"code_verifier"`
	RegistrationRecord runtime.Optional[string] `json:"registration_record"`
	Txid               runtime.Optional[string] `json:"txid"`
}

func (OpaqueRegisterFinalizeRequest) MarshalJSON

func (v OpaqueRegisterFinalizeRequest) MarshalJSON() ([]byte, error)

func (*OpaqueRegisterFinalizeRequest) UnmarshalJSON

func (v *OpaqueRegisterFinalizeRequest) UnmarshalJSON(data []byte) error

type OpaqueRegisterFinalizeResponse

type OpaqueRegisterFinalizeResponse struct {
	User runtime.Optional[*UserBrief] `json:"user"`
}

func (OpaqueRegisterFinalizeResponse) MarshalJSON

func (v OpaqueRegisterFinalizeResponse) MarshalJSON() ([]byte, error)

func (*OpaqueRegisterFinalizeResponse) UnmarshalJSON

func (v *OpaqueRegisterFinalizeResponse) UnmarshalJSON(data []byte) error

type OpaqueRegisterInitRequest

type OpaqueRegisterInitRequest struct {
	CodeChallenge       runtime.Optional[string] `json:"code_challenge"`
	Email               runtime.Optional[string] `json:"email"`
	Phone               runtime.Optional[string] `json:"phone"`
	RegistrationRequest runtime.Optional[string] `json:"registration_request"`
}

func (OpaqueRegisterInitRequest) MarshalJSON

func (v OpaqueRegisterInitRequest) MarshalJSON() ([]byte, error)

func (*OpaqueRegisterInitRequest) UnmarshalJSON

func (v *OpaqueRegisterInitRequest) UnmarshalJSON(data []byte) error

type OpaqueRegisterInitResponse

type OpaqueRegisterInitResponse struct {
	RegistrationResponse runtime.Optional[string] `json:"registration_response"`
	ServerIdentity       runtime.Optional[string] `json:"server_identity"`
	Txid                 runtime.Optional[string] `json:"txid"`
}

func (OpaqueRegisterInitResponse) MarshalJSON

func (v OpaqueRegisterInitResponse) MarshalJSON() ([]byte, error)

func (*OpaqueRegisterInitResponse) UnmarshalJSON

func (v *OpaqueRegisterInitResponse) UnmarshalJSON(data []byte) error

type OptimizeHtmlRequest

type OptimizeHtmlRequest struct {
	ArticleId      runtime.Optional[string]   `json:"article_id"`
	Content        runtime.Optional[string]   `json:"content"`
	Instructions   runtime.Optional[string]   `json:"instructions"`
	TargetPlatform runtime.Optional[Platform] `json:"target_platform"`
}

func (OptimizeHtmlRequest) MarshalJSON

func (v OptimizeHtmlRequest) MarshalJSON() ([]byte, error)

func (*OptimizeHtmlRequest) UnmarshalJSON

func (v *OptimizeHtmlRequest) UnmarshalJSON(data []byte) error

type OptimizeHtmlResponse

type OptimizeHtmlResponse struct {
	Article runtime.Optional[*Article]    `json:"article"`
	Done    runtime.Optional[bool]        `json:"done"`
	Event   runtime.Optional[StreamEvent] `json:"event"`
}

func (OptimizeHtmlResponse) MarshalJSON

func (v OptimizeHtmlResponse) MarshalJSON() ([]byte, error)

func (*OptimizeHtmlResponse) UnmarshalJSON

func (v *OptimizeHtmlResponse) UnmarshalJSON(data []byte) error

type OptimizeMarkdownRequest

type OptimizeMarkdownRequest struct {
	ArticleId    runtime.Optional[string] `json:"article_id"`
	Content      runtime.Optional[string] `json:"content"`
	Instructions runtime.Optional[string] `json:"instructions"`
}

func (OptimizeMarkdownRequest) MarshalJSON

func (v OptimizeMarkdownRequest) MarshalJSON() ([]byte, error)

func (*OptimizeMarkdownRequest) UnmarshalJSON

func (v *OptimizeMarkdownRequest) UnmarshalJSON(data []byte) error

type OptimizeMarkdownResponse

type OptimizeMarkdownResponse struct {
	Article runtime.Optional[*Article]    `json:"article"`
	Done    runtime.Optional[bool]        `json:"done"`
	Event   runtime.Optional[StreamEvent] `json:"event"`
}

func (OptimizeMarkdownResponse) MarshalJSON

func (v OptimizeMarkdownResponse) MarshalJSON() ([]byte, error)

func (*OptimizeMarkdownResponse) UnmarshalJSON

func (v *OptimizeMarkdownResponse) UnmarshalJSON(data []byte) error

type Organization

type Organization struct {
	CreatedAt   runtime.Optional[Timestamp]          `json:"created_at"`
	Metadata    runtime.Optional[string]             `json:"metadata"`
	Name        runtime.Optional[string]             `json:"name"`
	OrgId       runtime.Optional[string]             `json:"org_id"`
	OwnerUserId runtime.Optional[string]             `json:"owner_user_id"`
	Slug        runtime.Optional[string]             `json:"slug"`
	Status      runtime.Optional[OrganizationStatus] `json:"status"`
	UpdatedAt   runtime.Optional[Timestamp]          `json:"updated_at"`
}

func (Organization) MarshalJSON

func (v Organization) MarshalJSON() ([]byte, error)

func (*Organization) UnmarshalJSON

func (v *Organization) UnmarshalJSON(data []byte) error

type OrganizationMember

type OrganizationMember struct {
	CreatedAt runtime.Optional[Timestamp]                `json:"created_at"`
	InvitedBy runtime.Optional[string]                   `json:"invited_by"`
	OrgId     runtime.Optional[string]                   `json:"org_id"`
	Role      runtime.Optional[OrganizationMemberRole]   `json:"role"`
	Status    runtime.Optional[OrganizationMemberStatus] `json:"status"`
	UpdatedAt runtime.Optional[Timestamp]                `json:"updated_at"`
	UserId    runtime.Optional[string]                   `json:"user_id"`
}

func (OrganizationMember) MarshalJSON

func (v OrganizationMember) MarshalJSON() ([]byte, error)

func (*OrganizationMember) UnmarshalJSON

func (v *OrganizationMember) UnmarshalJSON(data []byte) error

type OrganizationMemberRole

type OrganizationMemberRole string
const (
	OrganizationMemberRoleORGANIZATIONMEMBERROLEUNSPECIFIED OrganizationMemberRole = "ORGANIZATION_MEMBER_ROLE_UNSPECIFIED"
	OrganizationMemberRoleORGANIZATIONMEMBERROLEOWNER       OrganizationMemberRole = "ORGANIZATION_MEMBER_ROLE_OWNER"
	OrganizationMemberRoleORGANIZATIONMEMBERROLEADMIN       OrganizationMemberRole = "ORGANIZATION_MEMBER_ROLE_ADMIN"
	OrganizationMemberRoleORGANIZATIONMEMBERROLEMEMBER      OrganizationMemberRole = "ORGANIZATION_MEMBER_ROLE_MEMBER"
)

func (OrganizationMemberRole) MarshalJSON

func (v OrganizationMemberRole) MarshalJSON() ([]byte, error)

func (*OrganizationMemberRole) UnmarshalJSON

func (v *OrganizationMemberRole) UnmarshalJSON(data []byte) error

type OrganizationMemberStatus

type OrganizationMemberStatus string
const (
	OrganizationMemberStatusORGANIZATIONMEMBERSTATUSUNSPECIFIED OrganizationMemberStatus = "ORGANIZATION_MEMBER_STATUS_UNSPECIFIED"
	OrganizationMemberStatusORGANIZATIONMEMBERSTATUSACTIVE      OrganizationMemberStatus = "ORGANIZATION_MEMBER_STATUS_ACTIVE"
	OrganizationMemberStatusORGANIZATIONMEMBERSTATUSINVITED     OrganizationMemberStatus = "ORGANIZATION_MEMBER_STATUS_INVITED"
	OrganizationMemberStatusORGANIZATIONMEMBERSTATUSREMOVED     OrganizationMemberStatus = "ORGANIZATION_MEMBER_STATUS_REMOVED"
)

func (OrganizationMemberStatus) MarshalJSON

func (v OrganizationMemberStatus) MarshalJSON() ([]byte, error)

func (*OrganizationMemberStatus) UnmarshalJSON

func (v *OrganizationMemberStatus) UnmarshalJSON(data []byte) error

type OrganizationStatus

type OrganizationStatus string
const (
	OrganizationStatusORGANIZATIONSTATUSUNSPECIFIED OrganizationStatus = "ORGANIZATION_STATUS_UNSPECIFIED"
	OrganizationStatusORGANIZATIONSTATUSACTIVE      OrganizationStatus = "ORGANIZATION_STATUS_ACTIVE"
	OrganizationStatusORGANIZATIONSTATUSSUSPENDED   OrganizationStatus = "ORGANIZATION_STATUS_SUSPENDED"
	OrganizationStatusORGANIZATIONSTATUSARCHIVED    OrganizationStatus = "ORGANIZATION_STATUS_ARCHIVED"
)

func (OrganizationStatus) MarshalJSON

func (v OrganizationStatus) MarshalJSON() ([]byte, error)

func (*OrganizationStatus) UnmarshalJSON

func (v *OrganizationStatus) UnmarshalJSON(data []byte) error

type Orientation

type Orientation string
const (
	OrientationORIENTATIONUNSPECIFIED Orientation = "ORIENTATION_UNSPECIFIED"
	OrientationORIENTATIONAUTO        Orientation = "ORIENTATION_AUTO"
	OrientationORIENTATIONPORTRAIT    Orientation = "ORIENTATION_PORTRAIT"
	OrientationORIENTATIONLANDSCAPE   Orientation = "ORIENTATION_LANDSCAPE"
)

func (Orientation) MarshalJSON

func (v Orientation) MarshalJSON() ([]byte, error)

func (*Orientation) UnmarshalJSON

func (v *Orientation) UnmarshalJSON(data []byte) error

type Page

type Page struct {
	ActiveJobId      runtime.Optional[string] `json:"active_job_id"`
	CategoryId       runtime.Optional[string] `json:"category_id"`
	ContentRevision  string                   `json:"content_revision"`
	CreatedAt        Timestamp                `json:"created_at"`
	CurrentVersionId runtime.Optional[string] `json:"current_version_id"`
	Etag             string                   `json:"etag"`
	EventRevision    string                   `json:"event_revision"`
	LatestJob        *JobSummary              `json:"latest_job"`
	PageId           string                   `json:"page_id"`
	Title            string                   `json:"title"`
	UpdatedAt        Timestamp                `json:"updated_at"`
}

func (Page) MarshalJSON

func (v Page) MarshalJSON() ([]byte, error)

func (*Page) UnmarshalJSON

func (v *Page) UnmarshalJSON(data []byte) error

type PageDeletionPreview

type PageDeletionPreview struct {
	ActiveEstimateCount               int64     `json:"active_estimate_count"`
	AiCallCount                       int64     `json:"ai_call_count"`
	BriefRevisionCount                int64     `json:"brief_revision_count"`
	CategoryOrganizationEstimateCount int64     `json:"category_organization_estimate_count"`
	CategoryOrganizationJobCount      int64     `json:"category_organization_job_count"`
	CategoryPlanCount                 int64     `json:"category_plan_count"`
	ConfirmationToken                 string    `json:"confirmation_token"`
	ContentRevision                   string    `json:"content_revision"`
	EventRevision                     string    `json:"event_revision"`
	ExpiresAt                         Timestamp `json:"expires_at"`
	ExportCount                       int64     `json:"export_count"`
	ExternalSourceCount               int64     `json:"external_source_count"`
	ExternalTempCopyCount             int64     `json:"external_temp_copy_count"`
	FailureContextCount               int64     `json:"failure_context_count"`
	GenerationPlanCount               int64     `json:"generation_plan_count"`
	GenerationPlanStepCount           int64     `json:"generation_plan_step_count"`
	ImpactFingerprint                 string    `json:"impact_fingerprint"`
	JobCount                          int64     `json:"job_count"`
	JobInputCount                     int64     `json:"job_input_count"`
	MaterialCount                     int64     `json:"material_count"`
	PageId                            string    `json:"page_id"`
	ProvisionalCandidateCount         int64     `json:"provisional_candidate_count"`
	ReplanDecisionCount               int64     `json:"replan_decision_count"`
	ReviewReportCount                 int64     `json:"review_report_count"`
	SourceCount                       int64     `json:"source_count"`
	ToolCallCount                     int64     `json:"tool_call_count"`
	VersionCount                      int64     `json:"version_count"`
}

func (PageDeletionPreview) MarshalJSON

func (v PageDeletionPreview) MarshalJSON() ([]byte, error)

func (*PageDeletionPreview) UnmarshalJSON

func (v *PageDeletionPreview) UnmarshalJSON(data []byte) error

type PageDeletionResult

type PageDeletionResult struct {
	AcceptedAt          Timestamp `json:"accepted_at"`
	ContentRevision     string    `json:"content_revision"`
	EventRevision       string    `json:"event_revision"`
	PageId              string    `json:"page_id"`
	PhysicalDeleteDueAt Timestamp `json:"physical_delete_due_at"`
}

func (PageDeletionResult) MarshalJSON

func (v PageDeletionResult) MarshalJSON() ([]byte, error)

func (*PageDeletionResult) UnmarshalJSON

func (v *PageDeletionResult) UnmarshalJSON(data []byte) error

type PageDeletionTarget

type PageDeletionTarget struct {
	ContentRevision          string `json:"content_revision"`
	DeletionScopeFingerprint string `json:"deletion_scope_fingerprint"`
	PageId                   string `json:"page_id"`
	Title                    string `json:"title"`
}

func (PageDeletionTarget) MarshalJSON

func (v PageDeletionTarget) MarshalJSON() ([]byte, error)

func (*PageDeletionTarget) UnmarshalJSON

func (v *PageDeletionTarget) UnmarshalJSON(data []byte) error

type PageInstruction

type PageInstruction struct {
	CreatedAt   runtime.Optional[Timestamp] `json:"created_at"`
	Instruction runtime.Optional[string]    `json:"instruction"`
	JobId       runtime.Optional[string]    `json:"job_id"`
}

func (PageInstruction) MarshalJSON

func (v PageInstruction) MarshalJSON() ([]byte, error)

func (*PageInstruction) UnmarshalJSON

func (v *PageInstruction) UnmarshalJSON(data []byte) error

type PageStatus

type PageStatus string
const (
	PageStatusPAGESTATUSUNSPECIFIED PageStatus = "PAGE_STATUS_UNSPECIFIED"
	PageStatusPAGESTATUSGENERATING  PageStatus = "PAGE_STATUS_GENERATING"
	PageStatusPAGESTATUSREADY       PageStatus = "PAGE_STATUS_READY"
	PageStatusPAGESTATUSFAILED      PageStatus = "PAGE_STATUS_FAILED"
)

func (PageStatus) MarshalJSON

func (v PageStatus) MarshalJSON() ([]byte, error)

func (*PageStatus) UnmarshalJSON

func (v *PageStatus) UnmarshalJSON(data []byte) error

type PageSummary

type PageSummary struct {
	CategoryId            runtime.Optional[string]                 `json:"category_id"`
	ContentRevision       string                                   `json:"content_revision"`
	CreatedAt             Timestamp                                `json:"created_at"`
	CurrentVersionSummary runtime.Optional[*CurrentVersionSummary] `json:"current_version_summary"`
	EventRevision         string                                   `json:"event_revision"`
	PageId                string                                   `json:"page_id"`
	Status                PageStatus                               `json:"status"`
	Title                 string                                   `json:"title"`
	UpdatedAt             Timestamp                                `json:"updated_at"`
}

func (PageSummary) MarshalJSON

func (v PageSummary) MarshalJSON() ([]byte, error)

func (*PageSummary) UnmarshalJSON

func (v *PageSummary) UnmarshalJSON(data []byte) error

type PageVersion

type PageVersion struct {
	Artifacts                []*VersionArtifact              `json:"artifacts"`
	CreatedAt                Timestamp                       `json:"created_at"`
	Html                     string                          `json:"html"`
	HtmlSha256               string                          `json:"html_sha256"`
	InformationAsOf          runtime.Optional[Timestamp]     `json:"information_as_of"`
	Orientation              Orientation                     `json:"orientation"`
	PageId                   string                          `json:"page_id"`
	PublishedContentRevision string                          `json:"published_content_revision"`
	PublishedEventRevision   string                          `json:"published_event_revision"`
	SequenceNumber           string                          `json:"sequence_number"`
	SourceJobId              string                          `json:"source_job_id"`
	SourceNotes              runtime.Optional[[]*SourceNote] `json:"source_notes"`
	VersionId                string                          `json:"version_id"`
}

func (PageVersion) MarshalJSON

func (v PageVersion) MarshalJSON() ([]byte, error)

func (*PageVersion) UnmarshalJSON

func (v *PageVersion) UnmarshalJSON(data []byte) error

type PageVersionMetadata

type PageVersionMetadata struct {
	Artifacts []*VersionArtifact  `json:"artifacts"`
	Summary   *PageVersionSummary `json:"summary"`
}

func (PageVersionMetadata) MarshalJSON

func (v PageVersionMetadata) MarshalJSON() ([]byte, error)

func (*PageVersionMetadata) UnmarshalJSON

func (v *PageVersionMetadata) UnmarshalJSON(data []byte) error

type PageVersionSummary

type PageVersionSummary struct {
	CreatedAt                Timestamp   `json:"created_at"`
	HtmlSha256               string      `json:"html_sha256"`
	Orientation              Orientation `json:"orientation"`
	PageId                   string      `json:"page_id"`
	PublishedContentRevision string      `json:"published_content_revision"`
	PublishedEventRevision   string      `json:"published_event_revision"`
	SequenceNumber           string      `json:"sequence_number"`
	SourceJobId              string      `json:"source_job_id"`
	VersionId                string      `json:"version_id"`
}

func (PageVersionSummary) MarshalJSON

func (v PageVersionSummary) MarshalJSON() ([]byte, error)

func (*PageVersionSummary) UnmarshalJSON

func (v *PageVersionSummary) UnmarshalJSON(data []byte) error

type PinpageCategoriesApplyOrganizationBody

type PinpageCategoriesApplyOrganizationBody struct {
	BillingIntentId   string `json:"billingIntentId"`
	EstimateId        string `json:"estimateId"`
	OrganizationJobId string `json:"organizationJobId"`
}

func (PinpageCategoriesApplyOrganizationBody) MarshalJSON

func (v PinpageCategoriesApplyOrganizationBody) MarshalJSON() ([]byte, error)

func (*PinpageCategoriesApplyOrganizationBody) UnmarshalJSON

func (v *PinpageCategoriesApplyOrganizationBody) UnmarshalJSON(data []byte) error

type PinpageCategoriesApplyOrganizationParams

type PinpageCategoriesApplyOrganizationParams struct {
	UserId          string
	XIdempotencyKey string
	Body            *PinpageCategoriesApplyOrganizationBody
}

type PinpageCategoriesDeleteCategoryParams

type PinpageCategoriesDeleteCategoryParams struct {
	CategoryId                   string
	UserId                       string
	ImpactFingerprint            string
	XIdempotencyKey              string
	XPinPageDeletionConfirmation string
}

type PinpageCategoriesEstimateOrganizationBody

type PinpageCategoriesEstimateOrganizationBody struct {
	Instruction     string                   `json:"instruction"`
	ScopeCategoryId runtime.Optional[string] `json:"scopeCategoryId"`
}

func (PinpageCategoriesEstimateOrganizationBody) MarshalJSON

func (*PinpageCategoriesEstimateOrganizationBody) UnmarshalJSON

func (v *PinpageCategoriesEstimateOrganizationBody) UnmarshalJSON(data []byte) error

type PinpageCategoriesEstimateOrganizationParams

type PinpageCategoriesEstimateOrganizationParams struct {
	UserId string
	Body   *PinpageCategoriesEstimateOrganizationBody
}

type PinpageCategoriesListCategoriesParams

type PinpageCategoriesListCategoriesParams struct {
	UserId           string
	OrderBy          runtime.Optional[string]
	PageSize         runtime.Optional[int64]
	PageToken        runtime.Optional[string]
	ParentCategoryId runtime.Optional[string]
}

type PinpageCategoriesPreviewCategoryDeletionParams

type PinpageCategoriesPreviewCategoryDeletionParams struct {
	CategoryId string
	UserId     string
}

type PinpageCategoriesPreviewOrganizationBody

type PinpageCategoriesPreviewOrganizationBody struct {
	ConfirmedAuthorizedMaxCredit string `json:"confirmedAuthorizedMaxCredit"`
	ConfirmedEstimatedAiCredit   string `json:"confirmedEstimatedAiCredit"`
	EstimateId                   string `json:"estimateId"`
	InputFingerprint             string `json:"inputFingerprint"`
}

func (PinpageCategoriesPreviewOrganizationBody) MarshalJSON

func (*PinpageCategoriesPreviewOrganizationBody) UnmarshalJSON

func (v *PinpageCategoriesPreviewOrganizationBody) UnmarshalJSON(data []byte) error

type PinpageCategoriesPreviewOrganizationParams

type PinpageCategoriesPreviewOrganizationParams struct {
	UserId          string
	XIdempotencyKey string
	Body            *PinpageCategoriesPreviewOrganizationBody
}

type PinpageCategoriesService

type PinpageCategoriesService struct {
	// contains filtered or unexported fields
}

func (*PinpageCategoriesService) DeleteCategory

func (*PinpageCategoriesService) ListCategories

func (*PinpageCategoriesService) ListCategoriesAll

type PinpageCategoryOrganizationJobsGetCategoryOrganizationJobParams

type PinpageCategoryOrganizationJobsGetCategoryOrganizationJobParams struct {
	OrganizationJobId string
	UserId            string
}

type PinpageCategoryOrganizationJobsService

type PinpageCategoryOrganizationJobsService struct {
	// contains filtered or unexported fields
}

type PinpageCategoryPreferenceGetCategoryPreferenceParams

type PinpageCategoryPreferenceGetCategoryPreferenceParams struct {
	UserId string
}

type PinpageCategoryPreferenceService

type PinpageCategoryPreferenceService struct {
	// contains filtered or unexported fields
}

type PinpageCategoryPreferenceUpdateCategoryPreferenceBody

type PinpageCategoryPreferenceUpdateCategoryPreferenceBody struct {
	Etag      string `json:"etag"`
	RulesText string `json:"rulesText"`
}

func (PinpageCategoryPreferenceUpdateCategoryPreferenceBody) MarshalJSON

func (*PinpageCategoryPreferenceUpdateCategoryPreferenceBody) UnmarshalJSON

type PinpageCategoryPreferenceUpdateCategoryPreferenceParams

type PinpageCategoryPreferenceUpdateCategoryPreferenceParams struct {
	UserId          string
	XIdempotencyKey string
	Body            *PinpageCategoryPreferenceUpdateCategoryPreferenceBody
}

type PinpageJobsCreateGenerationBody

type PinpageJobsCreateGenerationBody struct {
	ClientReference runtime.Optional[string]      `json:"clientReference"`
	Instruction     string                        `json:"instruction"`
	MaterialIds     runtime.Optional[[]string]    `json:"materialIds"`
	Orientation     runtime.Optional[Orientation] `json:"orientation"`
	Title           runtime.Optional[string]      `json:"title"`
	UiLocale        runtime.Optional[string]      `json:"uiLocale"`
}

func (PinpageJobsCreateGenerationBody) MarshalJSON

func (v PinpageJobsCreateGenerationBody) MarshalJSON() ([]byte, error)

func (*PinpageJobsCreateGenerationBody) UnmarshalJSON

func (v *PinpageJobsCreateGenerationBody) UnmarshalJSON(data []byte) error

type PinpageJobsCreateGenerationParams

type PinpageJobsCreateGenerationParams struct {
	UserId          string
	XIdempotencyKey string
	Body            *PinpageJobsCreateGenerationBody
}

type PinpageJobsEstimateBody

type PinpageJobsEstimateBody struct {
	AddMaterialIds               runtime.Optional[[]string]                `json:"addMaterialIds"`
	BaseJobId                    runtime.Optional[string]                  `json:"baseJobId"`
	BriefInstruction             runtime.Optional[string]                  `json:"briefInstruction"`
	ContentDecisionActionToken   runtime.Optional[string]                  `json:"contentDecisionActionToken"`
	ContentDecisionContextDigest runtime.Optional[string]                  `json:"contentDecisionContextDigest"`
	ContentDecisionContextId     runtime.Optional[string]                  `json:"contentDecisionContextId"`
	ContentDecisionNote          runtime.Optional[string]                  `json:"contentDecisionNote"`
	ContentDecisionOptionIds     runtime.Optional[[]string]                `json:"contentDecisionOptionIds"`
	ExternalInformationMode      runtime.Optional[ExternalInformationMode] `json:"externalInformationMode"`
	InlineText                   runtime.Optional[string]                  `json:"inlineText"`
	InlineTextChange             runtime.Optional[*InlineTextChange]       `json:"inlineTextChange"`
	MaterialIds                  runtime.Optional[[]string]                `json:"materialIds"`
	Operation                    GenerationOperation                       `json:"operation"`
	Orientation                  runtime.Optional[Orientation]             `json:"orientation"`
	PageId                       runtime.Optional[string]                  `json:"pageId"`
	RemoveMaterialIds            runtime.Optional[[]string]                `json:"removeMaterialIds"`
	SourceJobId                  runtime.Optional[string]                  `json:"sourceJobId"`
	Title                        runtime.Optional[string]                  `json:"title"`
}

func (PinpageJobsEstimateBody) MarshalJSON

func (v PinpageJobsEstimateBody) MarshalJSON() ([]byte, error)

func (*PinpageJobsEstimateBody) UnmarshalJSON

func (v *PinpageJobsEstimateBody) UnmarshalJSON(data []byte) error

type PinpageJobsEstimateParams

type PinpageJobsEstimateParams struct {
	UserId string
	Body   *PinpageJobsEstimateBody
}

type PinpageJobsGetJobParams

type PinpageJobsGetJobParams struct {
	JobId  string
	UserId string
}

type PinpageJobsRetryJobBody

type PinpageJobsRetryJobBody struct {
	ConfirmedAuthorizedMaxCredit string `json:"confirmedAuthorizedMaxCredit"`
	EstimateId                   string `json:"estimateId"`
	InputFingerprint             string `json:"inputFingerprint"`
}

func (PinpageJobsRetryJobBody) MarshalJSON

func (v PinpageJobsRetryJobBody) MarshalJSON() ([]byte, error)

func (*PinpageJobsRetryJobBody) UnmarshalJSON

func (v *PinpageJobsRetryJobBody) UnmarshalJSON(data []byte) error

type PinpageJobsRetryJobParams

type PinpageJobsRetryJobParams struct {
	JobId           string
	UserId          string
	XIdempotencyKey string
	Body            *PinpageJobsRetryJobBody
}

type PinpageJobsService

type PinpageJobsService struct {
	// contains filtered or unexported fields
}

func (*PinpageJobsService) CreateGeneration

func (*PinpageJobsService) Estimate

func (*PinpageJobsService) GetJob

func (*PinpageJobsService) RetryJob

func (*PinpageJobsService) Submit

type PinpageJobsSubmitBody

type PinpageJobsSubmitBody struct {
	ClientReference              runtime.Optional[string] `json:"clientReference"`
	ConfirmedAuthorizedMaxCredit string                   `json:"confirmedAuthorizedMaxCredit"`
	EstimateId                   string                   `json:"estimateId"`
	InputFingerprint             string                   `json:"inputFingerprint"`
}

func (PinpageJobsSubmitBody) MarshalJSON

func (v PinpageJobsSubmitBody) MarshalJSON() ([]byte, error)

func (*PinpageJobsSubmitBody) UnmarshalJSON

func (v *PinpageJobsSubmitBody) UnmarshalJSON(data []byte) error

type PinpageJobsSubmitParams

type PinpageJobsSubmitParams struct {
	UserId          string
	XIdempotencyKey string
	Body            *PinpageJobsSubmitBody
}

type PinpageMaterialsDeleteMaterialParams

type PinpageMaterialsDeleteMaterialParams struct {
	MaterialId      string
	UserId          string
	XIdempotencyKey string
}

type PinpageMaterialsGetMaterialParams

type PinpageMaterialsGetMaterialParams struct {
	MaterialId string
	UserId     string
}

type PinpageMaterialsService

type PinpageMaterialsService struct {
	// contains filtered or unexported fields
}

func (*PinpageMaterialsService) DeleteMaterial

func (*PinpageMaterialsService) GetMaterial

type PinpagePagesDeletePageParams

type PinpagePagesDeletePageParams struct {
	PageId                       string
	UserId                       string
	ExpectedContentRevision      string
	ImpactFingerprint            string
	PageEtag                     runtime.Optional[string]
	XIdempotencyKey              string
	XPinPageDeletionConfirmation string
}

type PinpagePagesGetPageParams

type PinpagePagesGetPageParams struct {
	PageId string
	UserId string
}

type PinpagePagesListPagesParams

type PinpagePagesListPagesParams struct {
	UserId     string
	CategoryId runtime.Optional[string]
	OrderBy    runtime.Optional[string]
	PageSize   runtime.Optional[int64]
	PageToken  runtime.Optional[string]
}

type PinpagePagesPreviewPageDeletionParams

type PinpagePagesPreviewPageDeletionParams struct {
	PageId string
	UserId string
}

type PinpagePagesRegeneratePageBody

type PinpagePagesRegeneratePageBody struct {
	ConfirmedAuthorizedMaxCredit runtime.Optional[string] `json:"confirmedAuthorizedMaxCredit"`
	EstimateId                   runtime.Optional[string] `json:"estimateId"`
	InputFingerprint             runtime.Optional[string] `json:"inputFingerprint"`
	Instruction                  runtime.Optional[string] `json:"instruction"`
	UiLocale                     runtime.Optional[string] `json:"uiLocale"`
}

func (PinpagePagesRegeneratePageBody) MarshalJSON

func (v PinpagePagesRegeneratePageBody) MarshalJSON() ([]byte, error)

func (*PinpagePagesRegeneratePageBody) UnmarshalJSON

func (v *PinpagePagesRegeneratePageBody) UnmarshalJSON(data []byte) error

type PinpagePagesRegeneratePageParams

type PinpagePagesRegeneratePageParams struct {
	PageId          string
	UserId          string
	XIdempotencyKey string
	Body            *PinpagePagesRegeneratePageBody
}

type PinpagePagesRenamePageBody

type PinpagePagesRenamePageBody struct {
	ExpectedTitleRevision string `json:"expectedTitleRevision"`
	Title                 string `json:"title"`
}

func (PinpagePagesRenamePageBody) MarshalJSON

func (v PinpagePagesRenamePageBody) MarshalJSON() ([]byte, error)

func (*PinpagePagesRenamePageBody) UnmarshalJSON

func (v *PinpagePagesRenamePageBody) UnmarshalJSON(data []byte) error

type PinpagePagesRenamePageParams

type PinpagePagesRenamePageParams struct {
	PageId string
	UserId string
	Body   *PinpagePagesRenamePageBody
}

type PinpagePagesService

type PinpagePagesService struct {
	// contains filtered or unexported fields
}

func (*PinpagePagesService) DeletePage

func (*PinpagePagesService) GetPage

func (*PinpagePagesService) ListPages

func (*PinpagePagesService) ListPagesAll

func (*PinpagePagesService) PreviewPageDeletion

func (*PinpagePagesService) RegeneratePage

func (*PinpagePagesService) RenamePage

type PinpagePromptGetPagePromptParams

type PinpagePromptGetPagePromptParams struct {
	PageId           string
	UserId           string
	PromptRevisionId runtime.Optional[string]
}

type PinpagePromptService

type PinpagePromptService struct {
	// contains filtered or unexported fields
}

func (*PinpagePromptService) GetPagePrompt

type PinpageStorageProtectionGetStorageProtectionParams

type PinpageStorageProtectionGetStorageProtectionParams struct {
	UserId string
}

type PinpageStorageProtectionService

type PinpageStorageProtectionService struct {
	// contains filtered or unexported fields
}

type PinpageUploadsAbortUploadParams

type PinpageUploadsAbortUploadParams struct {
	UploadId        string
	UserId          string
	XIdempotencyKey string
}

type PinpageUploadsCompleteUploadParams

type PinpageUploadsCompleteUploadParams struct {
	UploadId        string
	UserId          string
	XIdempotencyKey string
}

type PinpageUploadsCreateUploadBody

type PinpageUploadsCreateUploadBody struct {
	ConfirmedAuthorizedMaxCredit string `json:"confirmedAuthorizedMaxCredit"`
	EstimateItemId               string `json:"estimateItemId"`
}

func (PinpageUploadsCreateUploadBody) MarshalJSON

func (v PinpageUploadsCreateUploadBody) MarshalJSON() ([]byte, error)

func (*PinpageUploadsCreateUploadBody) UnmarshalJSON

func (v *PinpageUploadsCreateUploadBody) UnmarshalJSON(data []byte) error

type PinpageUploadsCreateUploadParams

type PinpageUploadsCreateUploadParams struct {
	UserId          string
	XIdempotencyKey string
	Body            *PinpageUploadsCreateUploadBody
}

type PinpageUploadsEstimateBody

type PinpageUploadsEstimateBody struct {
	Files []*UploadEstimateDeclaration `json:"files"`
}

func (PinpageUploadsEstimateBody) MarshalJSON

func (v PinpageUploadsEstimateBody) MarshalJSON() ([]byte, error)

func (*PinpageUploadsEstimateBody) UnmarshalJSON

func (v *PinpageUploadsEstimateBody) UnmarshalJSON(data []byte) error

type PinpageUploadsEstimateParams

type PinpageUploadsEstimateParams struct {
	UserId string
	Body   *PinpageUploadsEstimateBody
}

type PinpageUploadsGetUploadParams

type PinpageUploadsGetUploadParams struct {
	UploadId string
	UserId   string
}

type PinpageUploadsService

type PinpageUploadsService struct {
	// contains filtered or unexported fields
}

func (*PinpageUploadsService) AbortUpload

func (*PinpageUploadsService) CompleteUpload

func (*PinpageUploadsService) CreateUpload

func (*PinpageUploadsService) Estimate

func (*PinpageUploadsService) GetUpload

func (*PinpageUploadsService) SignUploadParts

type PinpageUploadsSignUploadPartsBody

type PinpageUploadsSignUploadPartsBody struct {
	PartNumbers []int64 `json:"partNumbers"`
}

func (PinpageUploadsSignUploadPartsBody) MarshalJSON

func (v PinpageUploadsSignUploadPartsBody) MarshalJSON() ([]byte, error)

func (*PinpageUploadsSignUploadPartsBody) UnmarshalJSON

func (v *PinpageUploadsSignUploadPartsBody) UnmarshalJSON(data []byte) error

type PinpageUploadsSignUploadPartsParams

type PinpageUploadsSignUploadPartsParams struct {
	UploadId string
	UserId   string
	Body     *PinpageUploadsSignUploadPartsBody
}

type Platform

type Platform string
const (
	PlatformPLATFORMUNSPECIFIED Platform = "PLATFORM_UNSPECIFIED"
	PlatformPLATFORMWECHATMP    Platform = "PLATFORM_WECHAT_MP"
	PlatformPLATFORMZHIHU       Platform = "PLATFORM_ZHIHU"
	PlatformPLATFORMTOUTIAO     Platform = "PLATFORM_TOUTIAO"
	PlatformPLATFORMYUQUE       Platform = "PLATFORM_YUQUE"
)

func (Platform) MarshalJSON

func (v Platform) MarshalJSON() ([]byte, error)

func (*Platform) UnmarshalJSON

func (v *Platform) UnmarshalJSON(data []byte) error

type PlatformAccount

type PlatformAccount struct {
	AccountId    runtime.Optional[string]    `json:"account_id"`
	AuthorizedAt runtime.Optional[Timestamp] `json:"authorized_at"`
	DisplayName  runtime.Optional[string]    `json:"display_name"`
	ExpiresAt    runtime.Optional[Timestamp] `json:"expires_at"`
	IsActive     runtime.Optional[bool]      `json:"is_active"`
	Platform     runtime.Optional[Platform]  `json:"platform"`
}

func (PlatformAccount) MarshalJSON

func (v PlatformAccount) MarshalJSON() ([]byte, error)

func (*PlatformAccount) UnmarshalJSON

func (v *PlatformAccount) UnmarshalJSON(data []byte) error

type PlatformConfig

type PlatformConfig = any

type Preset

type Preset struct {
	Config     runtime.Optional[string]    `json:"config"`
	CreatedAt  runtime.Optional[Timestamp] `json:"created_at"`
	Name       runtime.Optional[string]    `json:"name"`
	PresetId   runtime.Optional[string]    `json:"preset_id"`
	TemplateId runtime.Optional[string]    `json:"template_id"`
	UpdatedAt  runtime.Optional[Timestamp] `json:"updated_at"`
}

func (Preset) MarshalJSON

func (v Preset) MarshalJSON() ([]byte, error)

func (*Preset) UnmarshalJSON

func (v *Preset) UnmarshalJSON(data []byte) error

type PreviewCategoryDeletionRequest

type PreviewCategoryDeletionRequest struct {
	CategoryId string `json:"category_id"`
	UserId     string `json:"user_id"`
}

func (PreviewCategoryDeletionRequest) MarshalJSON

func (v PreviewCategoryDeletionRequest) MarshalJSON() ([]byte, error)

func (*PreviewCategoryDeletionRequest) UnmarshalJSON

func (v *PreviewCategoryDeletionRequest) UnmarshalJSON(data []byte) error

type PreviewCategoryDeletionResponse

type PreviewCategoryDeletionResponse struct {
	DeletionPreview *CategoryDeletionPreview `json:"deletion_preview"`
}

func (PreviewCategoryDeletionResponse) MarshalJSON

func (v PreviewCategoryDeletionResponse) MarshalJSON() ([]byte, error)

func (*PreviewCategoryDeletionResponse) UnmarshalJSON

func (v *PreviewCategoryDeletionResponse) UnmarshalJSON(data []byte) error

type PreviewCategoryOrganizationRequest

type PreviewCategoryOrganizationRequest struct {
	ConfirmedAuthorizedMaxCredit string `json:"confirmed_authorized_max_credit"`
	ConfirmedEstimatedAiCredit   string `json:"confirmed_estimated_ai_credit"`
	EstimateId                   string `json:"estimate_id"`
	InputFingerprint             string `json:"input_fingerprint"`
	UserId                       string `json:"user_id"`
}

func (PreviewCategoryOrganizationRequest) MarshalJSON

func (v PreviewCategoryOrganizationRequest) MarshalJSON() ([]byte, error)

func (*PreviewCategoryOrganizationRequest) UnmarshalJSON

func (v *PreviewCategoryOrganizationRequest) UnmarshalJSON(data []byte) error

type PreviewCategoryOrganizationResponse

type PreviewCategoryOrganizationResponse struct {
	OrganizationJob *CategoryOrganizationJob `json:"organization_job"`
}

func (PreviewCategoryOrganizationResponse) MarshalJSON

func (v PreviewCategoryOrganizationResponse) MarshalJSON() ([]byte, error)

func (*PreviewCategoryOrganizationResponse) UnmarshalJSON

func (v *PreviewCategoryOrganizationResponse) UnmarshalJSON(data []byte) error

type PreviewGetCategoryOrganizationPreviewParams

type PreviewGetCategoryOrganizationPreviewParams struct {
	OrganizationJobId string
	UserId            string
}

type PreviewPageDeletionRequest

type PreviewPageDeletionRequest struct {
	PageId string `json:"page_id"`
	UserId string `json:"user_id"`
}

func (PreviewPageDeletionRequest) MarshalJSON

func (v PreviewPageDeletionRequest) MarshalJSON() ([]byte, error)

func (*PreviewPageDeletionRequest) UnmarshalJSON

func (v *PreviewPageDeletionRequest) UnmarshalJSON(data []byte) error

type PreviewPageDeletionResponse

type PreviewPageDeletionResponse struct {
	DeletionPreview *PageDeletionPreview `json:"deletion_preview"`
}

func (PreviewPageDeletionResponse) MarshalJSON

func (v PreviewPageDeletionResponse) MarshalJSON() ([]byte, error)

func (*PreviewPageDeletionResponse) UnmarshalJSON

func (v *PreviewPageDeletionResponse) UnmarshalJSON(data []byte) error

type PreviewService

type PreviewService struct {
	// contains filtered or unexported fields
}

type ProgressGetGenerationProgressParams

type ProgressGetGenerationProgressParams struct {
	JobId         string
	UserId        string
	AfterEventSeq runtime.Optional[string]
	PageSize      runtime.Optional[int64]
	PageToken     runtime.Optional[string]
	UiLocale      runtime.Optional[string]
}

type ProgressMessage

type ProgressMessage struct {
	Arguments            runtime.Optional[map[string]string] `json:"arguments"`
	DefaultMessage       string                              `json:"default_message"`
	DefaultMessageLocale string                              `json:"default_message_locale"`
	DynamicLocale        runtime.Optional[string]            `json:"dynamic_locale"`
	MessageCode          string                              `json:"message_code"`
}

func (ProgressMessage) MarshalJSON

func (v ProgressMessage) MarshalJSON() ([]byte, error)

func (*ProgressMessage) UnmarshalJSON

func (v *ProgressMessage) UnmarshalJSON(data []byte) error

type ProgressMessageArgumentsEntry

type ProgressMessageArgumentsEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (ProgressMessageArgumentsEntry) MarshalJSON

func (v ProgressMessageArgumentsEntry) MarshalJSON() ([]byte, error)

func (*ProgressMessageArgumentsEntry) UnmarshalJSON

func (v *ProgressMessageArgumentsEntry) UnmarshalJSON(data []byte) error

type ProgressService

type ProgressService struct {
	// contains filtered or unexported fields
}

func (*ProgressService) GetGenerationProgress

type Project

type Project struct {
	CreatedAt   runtime.Optional[Timestamp]         `json:"created_at"`
	Description runtime.Optional[string]            `json:"description"`
	Metadata    runtime.Optional[map[string]string] `json:"metadata"`
	Name        runtime.Optional[string]            `json:"name"`
	ProjectId   runtime.Optional[string]            `json:"project_id"`
	Status      runtime.Optional[ProjectStatus]     `json:"status"`
	Tags        runtime.Optional[[]string]          `json:"tags"`
	UpdatedAt   runtime.Optional[Timestamp]         `json:"updated_at"`
}

func (Project) MarshalJSON

func (v Project) MarshalJSON() ([]byte, error)

func (*Project) UnmarshalJSON

func (v *Project) UnmarshalJSON(data []byte) error

type ProjectMetadataEntry

type ProjectMetadataEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (ProjectMetadataEntry) MarshalJSON

func (v ProjectMetadataEntry) MarshalJSON() ([]byte, error)

func (*ProjectMetadataEntry) UnmarshalJSON

func (v *ProjectMetadataEntry) UnmarshalJSON(data []byte) error

type ProjectStatus

type ProjectStatus string
const (
	ProjectStatusPROJECTSTATUSUNSPECIFIED ProjectStatus = "PROJECT_STATUS_UNSPECIFIED"
	ProjectStatusPROJECTSTATUSDRAFT       ProjectStatus = "PROJECT_STATUS_DRAFT"
	ProjectStatusPROJECTSTATUSINPROGRESS  ProjectStatus = "PROJECT_STATUS_IN_PROGRESS"
	ProjectStatusPROJECTSTATUSCOMPLETED   ProjectStatus = "PROJECT_STATUS_COMPLETED"
	ProjectStatusPROJECTSTATUSARCHIVED    ProjectStatus = "PROJECT_STATUS_ARCHIVED"
)

func (ProjectStatus) MarshalJSON

func (v ProjectStatus) MarshalJSON() ([]byte, error)

func (*ProjectStatus) UnmarshalJSON

func (v *ProjectStatus) UnmarshalJSON(data []byte) error

type PublishArticleRequest

type PublishArticleRequest struct {
	AccountId      runtime.Optional[string]         `json:"account_id"`
	ArticleId      runtime.Optional[string]         `json:"article_id"`
	Platform       runtime.Optional[Platform]       `json:"platform"`
	PlatformConfig runtime.Optional[PlatformConfig] `json:"platform_config"`
}

func (PublishArticleRequest) MarshalJSON

func (v PublishArticleRequest) MarshalJSON() ([]byte, error)

func (*PublishArticleRequest) UnmarshalJSON

func (v *PublishArticleRequest) UnmarshalJSON(data []byte) error

type PublishArticleResponse

type PublishArticleResponse struct {
	Record runtime.Optional[*PublishRecord] `json:"record"`
}

func (PublishArticleResponse) MarshalJSON

func (v PublishArticleResponse) MarshalJSON() ([]byte, error)

func (*PublishArticleResponse) UnmarshalJSON

func (v *PublishArticleResponse) UnmarshalJSON(data []byte) error

type PublishRecord

type PublishRecord struct {
	ArticleId    runtime.Optional[string]        `json:"article_id"`
	ErrorMessage runtime.Optional[string]        `json:"error_message"`
	Platform     runtime.Optional[Platform]      `json:"platform"`
	PlatformUrl  runtime.Optional[string]        `json:"platform_url"`
	PublishedAt  runtime.Optional[Timestamp]     `json:"published_at"`
	RecordId     runtime.Optional[string]        `json:"record_id"`
	Status       runtime.Optional[PublishStatus] `json:"status"`
}

func (PublishRecord) MarshalJSON

func (v PublishRecord) MarshalJSON() ([]byte, error)

func (*PublishRecord) UnmarshalJSON

func (v *PublishRecord) UnmarshalJSON(data []byte) error

type PublishStatus

type PublishStatus string
const (
	PublishStatusPUBLISHSTATUSUNSPECIFIED PublishStatus = "PUBLISH_STATUS_UNSPECIFIED"
	PublishStatusPUBLISHSTATUSPENDING     PublishStatus = "PUBLISH_STATUS_PENDING"
	PublishStatusPUBLISHSTATUSPROCESSING  PublishStatus = "PUBLISH_STATUS_PROCESSING"
	PublishStatusPUBLISHSTATUSSUCCESS     PublishStatus = "PUBLISH_STATUS_SUCCESS"
	PublishStatusPUBLISHSTATUSFAILED      PublishStatus = "PUBLISH_STATUS_FAILED"
)

func (PublishStatus) MarshalJSON

func (v PublishStatus) MarshalJSON() ([]byte, error)

func (*PublishStatus) UnmarshalJSON

func (v *PublishStatus) UnmarshalJSON(data []byte) error

type PublishToWechatMpRequest

type PublishToWechatMpRequest struct {
	Author              runtime.Optional[string]                  `json:"author"`
	CachedArticles      runtime.Optional[[]*PublishedArticleInfo] `json:"cached_articles"`
	Content             runtime.Optional[string]                  `json:"content"`
	ContentFormat       runtime.Optional[ContentFormat]           `json:"content_format"`
	ContentSourceUrl    runtime.Optional[string]                  `json:"content_source_url"`
	CoverUrl            runtime.Optional[string]                  `json:"cover_url"`
	Debug               runtime.Optional[bool]                    `json:"debug"`
	Digest              runtime.Optional[string]                  `json:"digest"`
	ImageMap            runtime.Optional[map[string]string]       `json:"image_map"`
	NeedOpenComment     runtime.Optional[bool]                    `json:"need_open_comment"`
	ShowCoverPic        runtime.Optional[bool]                    `json:"show_cover_pic"`
	Target              runtime.Optional[PublishToWechatMpTarget] `json:"target"`
	TemplateId          runtime.Optional[string]                  `json:"template_id"`
	Title               runtime.Optional[string]                  `json:"title"`
	WechatMpCredentials runtime.Optional[*WechatMpCredentials]    `json:"wechat_mp_credentials"`
}

func (PublishToWechatMpRequest) MarshalJSON

func (v PublishToWechatMpRequest) MarshalJSON() ([]byte, error)

func (*PublishToWechatMpRequest) UnmarshalJSON

func (v *PublishToWechatMpRequest) UnmarshalJSON(data []byte) error

type PublishToWechatMpRequestImageMapEntry

type PublishToWechatMpRequestImageMapEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (PublishToWechatMpRequestImageMapEntry) MarshalJSON

func (v PublishToWechatMpRequestImageMapEntry) MarshalJSON() ([]byte, error)

func (*PublishToWechatMpRequestImageMapEntry) UnmarshalJSON

func (v *PublishToWechatMpRequestImageMapEntry) UnmarshalJSON(data []byte) error

type PublishToWechatMpResponse

type PublishToWechatMpResponse struct {
	DebugLogs         runtime.Optional[[]string]                `json:"debug_logs"`
	MediaId           runtime.Optional[string]                  `json:"media_id"`
	Message           runtime.Optional[string]                  `json:"message"`
	Ok                runtime.Optional[bool]                    `json:"ok"`
	PublishedArticles runtime.Optional[[]*PublishedArticleInfo] `json:"published_articles"`
}

func (PublishToWechatMpResponse) MarshalJSON

func (v PublishToWechatMpResponse) MarshalJSON() ([]byte, error)

func (*PublishToWechatMpResponse) UnmarshalJSON

func (v *PublishToWechatMpResponse) UnmarshalJSON(data []byte) error

type PublishToWechatMpTarget

type PublishToWechatMpTarget string
const (
	PublishToWechatMpTargetPUBLISHTOWECHATMPTARGETUNSPECIFIED PublishToWechatMpTarget = "PUBLISH_TO_WECHAT_MP_TARGET_UNSPECIFIED"
	PublishToWechatMpTargetPUBLISHTOWECHATMPTARGETDRAFT       PublishToWechatMpTarget = "PUBLISH_TO_WECHAT_MP_TARGET_DRAFT"
	PublishToWechatMpTargetPUBLISHTOWECHATMPTARGETSEND        PublishToWechatMpTarget = "PUBLISH_TO_WECHAT_MP_TARGET_SEND"
)

func (PublishToWechatMpTarget) MarshalJSON

func (v PublishToWechatMpTarget) MarshalJSON() ([]byte, error)

func (*PublishToWechatMpTarget) UnmarshalJSON

func (v *PublishToWechatMpTarget) UnmarshalJSON(data []byte) error

type PublishedArticleInfo

type PublishedArticleInfo struct {
	Category    runtime.Optional[string] `json:"category"`
	PublishTime runtime.Optional[string] `json:"publish_time"`
	Title       runtime.Optional[string] `json:"title"`
	Url         runtime.Optional[string] `json:"url"`
}

func (PublishedArticleInfo) MarshalJSON

func (v PublishedArticleInfo) MarshalJSON() ([]byte, error)

func (*PublishedArticleInfo) UnmarshalJSON

func (v *PublishedArticleInfo) UnmarshalJSON(data []byte) error

type RateLimitExceededError

type RateLimitExceededError = runtime.RateLimitExceededError

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken runtime.Optional[string] `json:"refresh_token"`
}

func (RefreshTokenRequest) MarshalJSON

func (v RefreshTokenRequest) MarshalJSON() ([]byte, error)

func (*RefreshTokenRequest) UnmarshalJSON

func (v *RefreshTokenRequest) UnmarshalJSON(data []byte) error

type RefreshTokenResponse

type RefreshTokenResponse struct {
	AccessToken  runtime.Optional[string] `json:"access_token"`
	ExpiresIn    runtime.Optional[int64]  `json:"expires_in"`
	RefreshToken runtime.Optional[string] `json:"refresh_token"`
	UserId       runtime.Optional[string] `json:"user_id"`
}

func (RefreshTokenResponse) MarshalJSON

func (v RefreshTokenResponse) MarshalJSON() ([]byte, error)

func (*RefreshTokenResponse) UnmarshalJSON

func (v *RefreshTokenResponse) UnmarshalJSON(data []byte) error

type RegenerateAPIKeyRequest

type RegenerateAPIKeyRequest struct {
	KeyId runtime.Optional[string] `json:"key_id"`
}

func (RegenerateAPIKeyRequest) MarshalJSON

func (v RegenerateAPIKeyRequest) MarshalJSON() ([]byte, error)

func (*RegenerateAPIKeyRequest) UnmarshalJSON

func (v *RegenerateAPIKeyRequest) UnmarshalJSON(data []byte) error

type RegenerateAPIKeyResponse

type RegenerateAPIKeyResponse struct {
	ApiKey runtime.Optional[*APIKey] `json:"api_key"`
	Key    runtime.Optional[string]  `json:"key"`
}

func (RegenerateAPIKeyResponse) MarshalJSON

func (v RegenerateAPIKeyResponse) MarshalJSON() ([]byte, error)

func (*RegenerateAPIKeyResponse) UnmarshalJSON

func (v *RegenerateAPIKeyResponse) UnmarshalJSON(data []byte) error

type RegeneratePageRequest

type RegeneratePageRequest struct {
	ConfirmedAuthorizedMaxCredit runtime.Optional[string] `json:"confirmed_authorized_max_credit"`
	EstimateId                   runtime.Optional[string] `json:"estimate_id"`
	InputFingerprint             runtime.Optional[string] `json:"input_fingerprint"`
	Instruction                  runtime.Optional[string] `json:"instruction"`
	PageId                       string                   `json:"page_id"`
	UiLocale                     runtime.Optional[string] `json:"ui_locale"`
	UserId                       string                   `json:"user_id"`
}

func (RegeneratePageRequest) MarshalJSON

func (v RegeneratePageRequest) MarshalJSON() ([]byte, error)

func (*RegeneratePageRequest) UnmarshalJSON

func (v *RegeneratePageRequest) UnmarshalJSON(data []byte) error

type RegeneratePageResponse

type RegeneratePageResponse struct {
	Job  *JobSummary `json:"job"`
	Page *Page       `json:"page"`
}

func (RegeneratePageResponse) MarshalJSON

func (v RegeneratePageResponse) MarshalJSON() ([]byte, error)

func (*RegeneratePageResponse) UnmarshalJSON

func (v *RegeneratePageResponse) UnmarshalJSON(data []byte) error

type RegisterRequest

type RegisterRequest struct {
	Code         runtime.Optional[string] `json:"code"`
	CodeVerifier runtime.Optional[string] `json:"code_verifier"`
	Email        runtime.Optional[string] `json:"email"`
	PasswordHash runtime.Optional[string] `json:"password_hash"`
	Phone        runtime.Optional[string] `json:"phone"`
	Txid         runtime.Optional[string] `json:"txid"`
}

func (RegisterRequest) MarshalJSON

func (v RegisterRequest) MarshalJSON() ([]byte, error)

func (*RegisterRequest) UnmarshalJSON

func (v *RegisterRequest) UnmarshalJSON(data []byte) error

type RegisterResponse

type RegisterResponse struct {
	CsrfToken runtime.Optional[string]     `json:"csrf_token"`
	Email     runtime.Optional[string]     `json:"email"`
	Name      runtime.Optional[string]     `json:"name"`
	Phone     runtime.Optional[string]     `json:"phone"`
	SessionId runtime.Optional[string]     `json:"session_id"`
	Tokens    runtime.Optional[*TokenPair] `json:"tokens"`
}

func (RegisterResponse) MarshalJSON

func (v RegisterResponse) MarshalJSON() ([]byte, error)

func (*RegisterResponse) UnmarshalJSON

func (v *RegisterResponse) UnmarshalJSON(data []byte) error

type RemoveMemberRequest

type RemoveMemberRequest struct {
	OrgId  runtime.Optional[string] `json:"org_id"`
	UserId runtime.Optional[string] `json:"user_id"`
}

func (RemoveMemberRequest) MarshalJSON

func (v RemoveMemberRequest) MarshalJSON() ([]byte, error)

func (*RemoveMemberRequest) UnmarshalJSON

func (v *RemoveMemberRequest) UnmarshalJSON(data []byte) error

type RemoveMemberResponse

type RemoveMemberResponse = any

type RenamePageRequest

type RenamePageRequest struct {
	ExpectedTitleRevision string `json:"expected_title_revision"`
	PageId                string `json:"page_id"`
	Title                 string `json:"title"`
	UserId                string `json:"user_id"`
}

func (RenamePageRequest) MarshalJSON

func (v RenamePageRequest) MarshalJSON() ([]byte, error)

func (*RenamePageRequest) UnmarshalJSON

func (v *RenamePageRequest) UnmarshalJSON(data []byte) error

type RenamePageResponse

type RenamePageResponse struct {
	Page *Page `json:"page"`
}

func (RenamePageResponse) MarshalJSON

func (v RenamePageResponse) MarshalJSON() ([]byte, error)

func (*RenamePageResponse) UnmarshalJSON

func (v *RenamePageResponse) UnmarshalJSON(data []byte) error

type RequestPasswordResetRequest

type RequestPasswordResetRequest struct {
	Target runtime.Optional[string]           `json:"target"`
	Type   runtime.Optional[VerificationType] `json:"type"`
}

func (RequestPasswordResetRequest) MarshalJSON

func (v RequestPasswordResetRequest) MarshalJSON() ([]byte, error)

func (*RequestPasswordResetRequest) UnmarshalJSON

func (v *RequestPasswordResetRequest) UnmarshalJSON(data []byte) error

type RequestPasswordResetResponse

type RequestPasswordResetResponse = any

type ResetPasswordRequest

type ResetPasswordRequest struct {
	Code            runtime.Optional[string]           `json:"code"`
	CodeVerifier    runtime.Optional[string]           `json:"code_verifier"`
	NewPasswordHash runtime.Optional[string]           `json:"new_password_hash"`
	Target          runtime.Optional[string]           `json:"target"`
	Txid            runtime.Optional[string]           `json:"txid"`
	Type            runtime.Optional[VerificationType] `json:"type"`
}

func (ResetPasswordRequest) MarshalJSON

func (v ResetPasswordRequest) MarshalJSON() ([]byte, error)

func (*ResetPasswordRequest) UnmarshalJSON

func (v *ResetPasswordRequest) UnmarshalJSON(data []byte) error

type ResetPasswordResponse

type ResetPasswordResponse = any

type RestoreAccountRequest

type RestoreAccountRequest struct {
	Email            runtime.Optional[string] `json:"email"`
	PasswordHash     runtime.Optional[string] `json:"password_hash"`
	Phone            runtime.Optional[string] `json:"phone"`
	VerificationCode runtime.Optional[string] `json:"verification_code"`
}

func (RestoreAccountRequest) MarshalJSON

func (v RestoreAccountRequest) MarshalJSON() ([]byte, error)

func (*RestoreAccountRequest) UnmarshalJSON

func (v *RestoreAccountRequest) UnmarshalJSON(data []byte) error

type RestoreAccountResponse

type RestoreAccountResponse = any

type RestorePageVersionRequest

type RestorePageVersionRequest struct {
	ExpectedContentRevision  string                   `json:"expected_content_revision"`
	ExpectedCurrentVersionId string                   `json:"expected_current_version_id"`
	PageEtag                 runtime.Optional[string] `json:"page_etag"`
	PageId                   string                   `json:"page_id"`
	UserId                   string                   `json:"user_id"`
	VersionId                string                   `json:"version_id"`
}

func (RestorePageVersionRequest) MarshalJSON

func (v RestorePageVersionRequest) MarshalJSON() ([]byte, error)

func (*RestorePageVersionRequest) UnmarshalJSON

func (v *RestorePageVersionRequest) UnmarshalJSON(data []byte) error

type RestorePageVersionResponse

type RestorePageVersionResponse struct {
	Page *Page `json:"page"`
}

func (RestorePageVersionResponse) MarshalJSON

func (v RestorePageVersionResponse) MarshalJSON() ([]byte, error)

func (*RestorePageVersionResponse) UnmarshalJSON

func (v *RestorePageVersionResponse) UnmarshalJSON(data []byte) error

type RetryJobRequest

type RetryJobRequest struct {
	ConfirmedAuthorizedMaxCredit string `json:"confirmed_authorized_max_credit"`
	EstimateId                   string `json:"estimate_id"`
	InputFingerprint             string `json:"input_fingerprint"`
	JobId                        string `json:"job_id"`
	UserId                       string `json:"user_id"`
}

func (RetryJobRequest) MarshalJSON

func (v RetryJobRequest) MarshalJSON() ([]byte, error)

func (*RetryJobRequest) UnmarshalJSON

func (v *RetryJobRequest) UnmarshalJSON(data []byte) error

type RetryJobResponse

type RetryJobResponse struct {
	Job *JobSummary `json:"job"`
}

func (RetryJobResponse) MarshalJSON

func (v RetryJobResponse) MarshalJSON() ([]byte, error)

func (*RetryJobResponse) UnmarshalJSON

func (v *RetryJobResponse) UnmarshalJSON(data []byte) error

type RetryWebhookDeliveryRequest

type RetryWebhookDeliveryRequest struct {
	DeliveryId runtime.Optional[string] `json:"delivery_id"`
}

func (RetryWebhookDeliveryRequest) MarshalJSON

func (v RetryWebhookDeliveryRequest) MarshalJSON() ([]byte, error)

func (*RetryWebhookDeliveryRequest) UnmarshalJSON

func (v *RetryWebhookDeliveryRequest) UnmarshalJSON(data []byte) error

type RetryWebhookDeliveryResponse

type RetryWebhookDeliveryResponse struct {
	Delivery runtime.Optional[*WebhookDelivery] `json:"delivery"`
}

func (RetryWebhookDeliveryResponse) MarshalJSON

func (v RetryWebhookDeliveryResponse) MarshalJSON() ([]byte, error)

func (*RetryWebhookDeliveryResponse) UnmarshalJSON

func (v *RetryWebhookDeliveryResponse) UnmarshalJSON(data []byte) error

type RevokeAPIKeyRequest

type RevokeAPIKeyRequest struct {
	KeyId runtime.Optional[string] `json:"key_id"`
}

func (RevokeAPIKeyRequest) MarshalJSON

func (v RevokeAPIKeyRequest) MarshalJSON() ([]byte, error)

func (*RevokeAPIKeyRequest) UnmarshalJSON

func (v *RevokeAPIKeyRequest) UnmarshalJSON(data []byte) error

type RevokeAPIKeyResponse

type RevokeAPIKeyResponse = any

type RevokeApplicationAccessRequest

type RevokeApplicationAccessRequest struct {
	AppId runtime.Optional[string] `json:"app_id"`
}

func (RevokeApplicationAccessRequest) MarshalJSON

func (v RevokeApplicationAccessRequest) MarshalJSON() ([]byte, error)

func (*RevokeApplicationAccessRequest) UnmarshalJSON

func (v *RevokeApplicationAccessRequest) UnmarshalJSON(data []byte) error

type RevokeApplicationAccessResponse

type RevokeApplicationAccessResponse = any

type RevokeRevokeTokenParams

type RevokeRevokeTokenParams struct {
	Body *RevokeTokenRequest
}

type RevokeService

type RevokeService struct {
	// contains filtered or unexported fields
}

func (*RevokeService) RevokeToken

type RevokeTokenRequest

type RevokeTokenRequest struct {
	ClientId      runtime.Optional[string] `json:"client_id"`
	ClientSecret  runtime.Optional[string] `json:"client_secret"`
	Token         runtime.Optional[string] `json:"token"`
	TokenTypeHint runtime.Optional[string] `json:"token_type_hint"`
}

func (RevokeTokenRequest) MarshalJSON

func (v RevokeTokenRequest) MarshalJSON() ([]byte, error)

func (*RevokeTokenRequest) UnmarshalJSON

func (v *RevokeTokenRequest) UnmarshalJSON(data []byte) error

type RevokeTokenResponse

type RevokeTokenResponse = any

type RotateClientSecretRequest

type RotateClientSecretRequest struct {
	AppId runtime.Optional[string] `json:"app_id"`
}

func (RotateClientSecretRequest) MarshalJSON

func (v RotateClientSecretRequest) MarshalJSON() ([]byte, error)

func (*RotateClientSecretRequest) UnmarshalJSON

func (v *RotateClientSecretRequest) UnmarshalJSON(data []byte) error

type RotateClientSecretResponse

type RotateClientSecretResponse struct {
	ClientSecret runtime.Optional[string] `json:"client_secret"`
}

func (RotateClientSecretResponse) MarshalJSON

func (v RotateClientSecretResponse) MarshalJSON() ([]byte, error)

func (*RotateClientSecretResponse) UnmarshalJSON

func (v *RotateClientSecretResponse) UnmarshalJSON(data []byte) error

type RotateOAuthClientSecretRequest

type RotateOAuthClientSecretRequest struct {
	AppId    runtime.Optional[string] `json:"app_id"`
	ClientId runtime.Optional[string] `json:"client_id"`
}

func (RotateOAuthClientSecretRequest) MarshalJSON

func (v RotateOAuthClientSecretRequest) MarshalJSON() ([]byte, error)

func (*RotateOAuthClientSecretRequest) UnmarshalJSON

func (v *RotateOAuthClientSecretRequest) UnmarshalJSON(data []byte) error

type RotateOAuthClientSecretResponse

type RotateOAuthClientSecretResponse struct {
	Client       runtime.Optional[*OAuthClient] `json:"client"`
	ClientSecret runtime.Optional[string]       `json:"client_secret"`
	RotatedAt    runtime.Optional[Timestamp]    `json:"rotated_at"`
}

func (RotateOAuthClientSecretResponse) MarshalJSON

func (v RotateOAuthClientSecretResponse) MarshalJSON() ([]byte, error)

func (*RotateOAuthClientSecretResponse) UnmarshalJSON

func (v *RotateOAuthClientSecretResponse) UnmarshalJSON(data []byte) error

type RotateWebhookSecretRequest

type RotateWebhookSecretRequest struct {
	WebhookId runtime.Optional[string] `json:"webhook_id"`
}

func (RotateWebhookSecretRequest) MarshalJSON

func (v RotateWebhookSecretRequest) MarshalJSON() ([]byte, error)

func (*RotateWebhookSecretRequest) UnmarshalJSON

func (v *RotateWebhookSecretRequest) UnmarshalJSON(data []byte) error

type RotateWebhookSecretResponse

type RotateWebhookSecretResponse struct {
	SigningSecret runtime.Optional[string] `json:"signing_secret"`
}

func (RotateWebhookSecretResponse) MarshalJSON

func (v RotateWebhookSecretResponse) MarshalJSON() ([]byte, error)

func (*RotateWebhookSecretResponse) UnmarshalJSON

func (v *RotateWebhookSecretResponse) UnmarshalJSON(data []byte) error

type Scope

type Scope struct {
	Category    runtime.Optional[string]    `json:"category"`
	CreatedAt   runtime.Optional[Timestamp] `json:"created_at"`
	Description runtime.Optional[string]    `json:"description"`
	DisplayName runtime.Optional[string]    `json:"display_name"`
	IsSensitive runtime.Optional[bool]      `json:"is_sensitive"`
	Name        runtime.Optional[string]    `json:"name"`
	ScopeId     runtime.Optional[string]    `json:"scope_id"`
	UpdatedAt   runtime.Optional[Timestamp] `json:"updated_at"`
}

func (Scope) MarshalJSON

func (v Scope) MarshalJSON() ([]byte, error)

func (*Scope) UnmarshalJSON

func (v *Scope) UnmarshalJSON(data []byte) error

type ScopeDetail

type ScopeDetail struct {
	Description runtime.Optional[string] `json:"description"`
	DisplayName runtime.Optional[string] `json:"display_name"`
	IsSensitive runtime.Optional[bool]   `json:"is_sensitive"`
	Scope       runtime.Optional[string] `json:"scope"`
}

func (ScopeDetail) MarshalJSON

func (v ScopeDetail) MarshalJSON() ([]byte, error)

func (*ScopeDetail) UnmarshalJSON

func (v *ScopeDetail) UnmarshalJSON(data []byte) error

type ScopesGetScopeParams

type ScopesGetScopeParams struct {
	Name string
}

type ScopesListScopesParams

type ScopesListScopesParams struct {
	Category runtime.Optional[string]
}

type ScopesService

type ScopesService struct {
	// contains filtered or unexported fields
}

func (*ScopesService) GetScope

func (*ScopesService) ListScopes

type SearchUsersByPhoneRequest

type SearchUsersByPhoneRequest struct {
	PageSize   runtime.Optional[int64]  `json:"page_size"`
	PhoneQuery runtime.Optional[string] `json:"phone_query"`
}

func (SearchUsersByPhoneRequest) MarshalJSON

func (v SearchUsersByPhoneRequest) MarshalJSON() ([]byte, error)

func (*SearchUsersByPhoneRequest) UnmarshalJSON

func (v *SearchUsersByPhoneRequest) UnmarshalJSON(data []byte) error

type SearchUsersByPhoneResponse

type SearchUsersByPhoneResponse struct {
	Users runtime.Optional[[]*LookupUserResponse] `json:"users"`
}

func (SearchUsersByPhoneResponse) MarshalJSON

func (v SearchUsersByPhoneResponse) MarshalJSON() ([]byte, error)

func (*SearchUsersByPhoneResponse) UnmarshalJSON

func (v *SearchUsersByPhoneResponse) UnmarshalJSON(data []byte) error

type SendVerificationCodeRequest

type SendVerificationCodeRequest struct {
	CodeChallenge runtime.Optional[string]              `json:"code_challenge"`
	Purpose       runtime.Optional[VerificationPurpose] `json:"purpose"`
	Target        runtime.Optional[string]              `json:"target"`
	Type          runtime.Optional[VerificationType]    `json:"type"`
}

func (SendVerificationCodeRequest) MarshalJSON

func (v SendVerificationCodeRequest) MarshalJSON() ([]byte, error)

func (*SendVerificationCodeRequest) UnmarshalJSON

func (v *SendVerificationCodeRequest) UnmarshalJSON(data []byte) error

type SendVerificationCodeResponse

type SendVerificationCodeResponse struct {
	ExpiresAt runtime.Optional[Timestamp] `json:"expires_at"`
	Txid      runtime.Optional[string]    `json:"txid"`
}

func (SendVerificationCodeResponse) MarshalJSON

func (v SendVerificationCodeResponse) MarshalJSON() ([]byte, error)

func (*SendVerificationCodeResponse) UnmarshalJSON

func (v *SendVerificationCodeResponse) UnmarshalJSON(data []byte) error

type SessionInfo

type SessionInfo struct {
	DeviceInfo runtime.Optional[*DeviceInfo] `json:"device_info"`
	ExpiresAt  runtime.Optional[Timestamp]   `json:"expires_at"`
	Ip         runtime.Optional[string]      `json:"ip"`
	IsCurrent  runtime.Optional[bool]        `json:"is_current"`
	LastActive runtime.Optional[Timestamp]   `json:"last_active"`
	Location   runtime.Optional[string]      `json:"location"`
	LoginTime  runtime.Optional[Timestamp]   `json:"login_time"`
	Port       runtime.Optional[int64]       `json:"port"`
	SessionId  runtime.Optional[string]      `json:"session_id"`
}

func (SessionInfo) MarshalJSON

func (v SessionInfo) MarshalJSON() ([]byte, error)

func (*SessionInfo) UnmarshalJSON

func (v *SessionInfo) UnmarshalJSON(data []byte) error

type SetPasswordRequest

type SetPasswordRequest struct {
	CsrfToken    runtime.Optional[string] `json:"csrf_token"`
	PasswordHash runtime.Optional[string] `json:"password_hash"`
	SessionId    runtime.Optional[string] `json:"session_id"`
}

func (SetPasswordRequest) MarshalJSON

func (v SetPasswordRequest) MarshalJSON() ([]byte, error)

func (*SetPasswordRequest) UnmarshalJSON

func (v *SetPasswordRequest) UnmarshalJSON(data []byte) error

type SetPasswordResponse

type SetPasswordResponse = any

type SignAssetUrlsRequest

type SignAssetUrlsRequest struct {
	ObjectKeys runtime.Optional[[]string] `json:"object_keys"`
}

func (SignAssetUrlsRequest) MarshalJSON

func (v SignAssetUrlsRequest) MarshalJSON() ([]byte, error)

func (*SignAssetUrlsRequest) UnmarshalJSON

func (v *SignAssetUrlsRequest) UnmarshalJSON(data []byte) error

type SignAssetUrlsResponse

type SignAssetUrlsResponse struct {
	SignedUrls runtime.Optional[map[string]string] `json:"signed_urls"`
}

func (SignAssetUrlsResponse) MarshalJSON

func (v SignAssetUrlsResponse) MarshalJSON() ([]byte, error)

func (*SignAssetUrlsResponse) UnmarshalJSON

func (v *SignAssetUrlsResponse) UnmarshalJSON(data []byte) error

type SignAssetUrlsResponseSignedUrlsEntry

type SignAssetUrlsResponseSignedUrlsEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (SignAssetUrlsResponseSignedUrlsEntry) MarshalJSON

func (v SignAssetUrlsResponseSignedUrlsEntry) MarshalJSON() ([]byte, error)

func (*SignAssetUrlsResponseSignedUrlsEntry) UnmarshalJSON

func (v *SignAssetUrlsResponseSignedUrlsEntry) UnmarshalJSON(data []byte) error

type SignUploadPartsRequest

type SignUploadPartsRequest struct {
	PartNumbers []int64 `json:"part_numbers"`
	UploadId    string  `json:"upload_id"`
	UserId      string  `json:"user_id"`
}

func (SignUploadPartsRequest) MarshalJSON

func (v SignUploadPartsRequest) MarshalJSON() ([]byte, error)

func (*SignUploadPartsRequest) UnmarshalJSON

func (v *SignUploadPartsRequest) UnmarshalJSON(data []byte) error

type SignUploadPartsResponse

type SignUploadPartsResponse struct {
	Parts []*SignedUploadPart `json:"parts"`
}

func (SignUploadPartsResponse) MarshalJSON

func (v SignUploadPartsResponse) MarshalJSON() ([]byte, error)

func (*SignUploadPartsResponse) UnmarshalJSON

func (v *SignUploadPartsResponse) UnmarshalJSON(data []byte) error

type SignUrlsService

type SignUrlsService struct {
	// contains filtered or unexported fields
}

func (*SignUrlsService) SignAssetUrls

type SignUrlsSignAssetUrlsParams

type SignUrlsSignAssetUrlsParams struct {
	Body *SignAssetUrlsRequest
}

type SignedUploadPart

type SignedUploadPart struct {
	ExpiresAt       Timestamp         `json:"expires_at"`
	PartNumber      int64             `json:"part_number"`
	PutUrl          string            `json:"put_url"`
	RequiredHeaders map[string]string `json:"required_headers"`
}

func (SignedUploadPart) MarshalJSON

func (v SignedUploadPart) MarshalJSON() ([]byte, error)

func (*SignedUploadPart) UnmarshalJSON

func (v *SignedUploadPart) UnmarshalJSON(data []byte) error

type SignedUploadPartRequiredHeadersEntry

type SignedUploadPartRequiredHeadersEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (SignedUploadPartRequiredHeadersEntry) MarshalJSON

func (v SignedUploadPartRequiredHeadersEntry) MarshalJSON() ([]byte, error)

func (*SignedUploadPartRequiredHeadersEntry) UnmarshalJSON

func (v *SignedUploadPartRequiredHeadersEntry) UnmarshalJSON(data []byte) error

type SocialLoginRequest

type SocialLoginRequest struct {
	AuthCode     runtime.Optional[string]         `json:"auth_code"`
	CodeVerifier runtime.Optional[string]         `json:"code_verifier"`
	DeviceInfo   runtime.Optional[*DeviceInfo]    `json:"device_info"`
	Provider     runtime.Optional[SocialProvider] `json:"provider"`
	RedirectUri  runtime.Optional[string]         `json:"redirect_uri"`
}

func (SocialLoginRequest) MarshalJSON

func (v SocialLoginRequest) MarshalJSON() ([]byte, error)

func (*SocialLoginRequest) UnmarshalJSON

func (v *SocialLoginRequest) UnmarshalJSON(data []byte) error

type SocialLoginResponse

type SocialLoginResponse struct {
	IsNewUser runtime.Optional[bool]       `json:"is_new_user"`
	SessionId runtime.Optional[string]     `json:"session_id"`
	Tokens    runtime.Optional[*TokenPair] `json:"tokens"`
	User      runtime.Optional[*UserBrief] `json:"user"`
}

func (SocialLoginResponse) MarshalJSON

func (v SocialLoginResponse) MarshalJSON() ([]byte, error)

func (*SocialLoginResponse) UnmarshalJSON

func (v *SocialLoginResponse) UnmarshalJSON(data []byte) error

type SocialProvider

type SocialProvider string
const (
	SocialProviderSOCIALPROVIDERUNSPECIFIED SocialProvider = "SOCIAL_PROVIDER_UNSPECIFIED"
	SocialProviderSOCIALPROVIDERGITHUB      SocialProvider = "SOCIAL_PROVIDER_GITHUB"
	SocialProviderSOCIALPROVIDERGOOGLE      SocialProvider = "SOCIAL_PROVIDER_GOOGLE"
	SocialProviderSOCIALPROVIDERWECHAT      SocialProvider = "SOCIAL_PROVIDER_WECHAT"
	SocialProviderSOCIALPROVIDERAPPLE       SocialProvider = "SOCIAL_PROVIDER_APPLE"
)

func (SocialProvider) MarshalJSON

func (v SocialProvider) MarshalJSON() ([]byte, error)

func (*SocialProvider) UnmarshalJSON

func (v *SocialProvider) UnmarshalJSON(data []byte) error

type SourceNote

type SourceNote struct {
	CanonicalUrl     runtime.Optional[string]    `json:"canonical_url"`
	ContentSha256    runtime.Optional[string]    `json:"content_sha256"`
	ExternalSourceId runtime.Optional[string]    `json:"external_source_id"`
	Kind             SourceNoteKind              `json:"kind"`
	MaterialId       runtime.Optional[string]    `json:"material_id"`
	PublishedAt      runtime.Optional[Timestamp] `json:"published_at"`
	Publisher        runtime.Optional[string]    `json:"publisher"`
	RetrievedAt      runtime.Optional[Timestamp] `json:"retrieved_at"`
	SourceLocation   runtime.Optional[string]    `json:"source_location"`
	Summary          string                      `json:"summary"`
	Title            runtime.Optional[string]    `json:"title"`
}

func (SourceNote) MarshalJSON

func (v SourceNote) MarshalJSON() ([]byte, error)

func (*SourceNote) UnmarshalJSON

func (v *SourceNote) UnmarshalJSON(data []byte) error

type SourceNoteKind

type SourceNoteKind string
const (
	SourceNoteKindSOURCENOTEKINDUNSPECIFIED    SourceNoteKind = "SOURCE_NOTE_KIND_UNSPECIFIED"
	SourceNoteKindSOURCENOTEKINDSOURCE         SourceNoteKind = "SOURCE_NOTE_KIND_SOURCE"
	SourceNoteKindSOURCENOTEKINDOMITTEDCONTENT SourceNoteKind = "SOURCE_NOTE_KIND_OMITTED_CONTENT"
	SourceNoteKindSOURCENOTEKINDUNCERTAINTY    SourceNoteKind = "SOURCE_NOTE_KIND_UNCERTAINTY"
	SourceNoteKindSOURCENOTEKINDEXTERNALSOURCE SourceNoteKind = "SOURCE_NOTE_KIND_EXTERNAL_SOURCE"
)

func (SourceNoteKind) MarshalJSON

func (v SourceNoteKind) MarshalJSON() ([]byte, error)

func (*SourceNoteKind) UnmarshalJSON

func (v *SourceNoteKind) UnmarshalJSON(data []byte) error

type Status

type Status struct {
	Code    runtime.Optional[int64]  `json:"code"`
	Details runtime.Optional[[]*Any] `json:"details"`
	Message runtime.Optional[string] `json:"message"`
}

func (Status) MarshalJSON

func (v Status) MarshalJSON() ([]byte, error)

func (*Status) UnmarshalJSON

func (v *Status) UnmarshalJSON(data []byte) error

type StatusUpdate

type StatusUpdate struct {
	Message         runtime.Optional[string] `json:"message"`
	Phase           runtime.Optional[string] `json:"phase"`
	ProgressPercent runtime.Optional[int64]  `json:"progress_percent"`
}

func (StatusUpdate) MarshalJSON

func (v StatusUpdate) MarshalJSON() ([]byte, error)

func (*StatusUpdate) UnmarshalJSON

func (v *StatusUpdate) UnmarshalJSON(data []byte) error

type StorageStatementSnapshot

type StorageStatementSnapshot struct {
	BaseStatementDigest   runtime.Optional[string] `json:"base_statement_digest"`
	CorrectionBatchId     runtime.Optional[string] `json:"correction_batch_id"`
	StatementDigest       string                   `json:"statement_digest"`
	UsageByteSeconds      string                   `json:"usage_byte_seconds"`
	UsageByteSecondsDelta runtime.Optional[string] `json:"usage_byte_seconds_delta"`
}

func (StorageStatementSnapshot) MarshalJSON

func (v StorageStatementSnapshot) MarshalJSON() ([]byte, error)

func (*StorageStatementSnapshot) UnmarshalJSON

func (v *StorageStatementSnapshot) UnmarshalJSON(data []byte) error

type StreamError

type StreamError struct {
	Code    runtime.Optional[int64]  `json:"code"`
	Message runtime.Optional[string] `json:"message"`
}

func (StreamError) MarshalJSON

func (v StreamError) MarshalJSON() ([]byte, error)

func (*StreamError) UnmarshalJSON

func (v *StreamError) UnmarshalJSON(data []byte) error

type StreamEvent

type StreamEvent = any

type StreamEventMetadataEntry

type StreamEventMetadataEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (StreamEventMetadataEntry) MarshalJSON

func (v StreamEventMetadataEntry) MarshalJSON() ([]byte, error)

func (*StreamEventMetadataEntry) UnmarshalJSON

func (v *StreamEventMetadataEntry) UnmarshalJSON(data []byte) error

type StreamEventType

type StreamEventType string
const (
	StreamEventTypeSTREAMEVENTTYPEUNSPECIFIED StreamEventType = "STREAM_EVENT_TYPE_UNSPECIFIED"
	StreamEventTypeSTREAMEVENTTYPECONTENT     StreamEventType = "STREAM_EVENT_TYPE_CONTENT"
	StreamEventTypeSTREAMEVENTTYPESTATUS      StreamEventType = "STREAM_EVENT_TYPE_STATUS"
	StreamEventTypeSTREAMEVENTTYPETOKENUSAGE  StreamEventType = "STREAM_EVENT_TYPE_TOKEN_USAGE"
	StreamEventTypeSTREAMEVENTTYPEERROR       StreamEventType = "STREAM_EVENT_TYPE_ERROR"
)

func (StreamEventType) MarshalJSON

func (v StreamEventType) MarshalJSON() ([]byte, error)

func (*StreamEventType) UnmarshalJSON

func (v *StreamEventType) UnmarshalJSON(data []byte) error

type SubmitConsentRequest

type SubmitConsentRequest struct {
	Approved            runtime.Optional[bool]   `json:"approved"`
	ClientId            runtime.Optional[string] `json:"client_id"`
	CodeChallenge       runtime.Optional[string] `json:"code_challenge"`
	CodeChallengeMethod runtime.Optional[string] `json:"code_challenge_method"`
	RedirectUri         runtime.Optional[string] `json:"redirect_uri"`
	Scope               runtime.Optional[string] `json:"scope"`
	State               runtime.Optional[string] `json:"state"`
}

func (SubmitConsentRequest) MarshalJSON

func (v SubmitConsentRequest) MarshalJSON() ([]byte, error)

func (*SubmitConsentRequest) UnmarshalJSON

func (v *SubmitConsentRequest) UnmarshalJSON(data []byte) error

type SubmitConsentResponse

type SubmitConsentResponse struct {
	AuthorizationCode runtime.Optional[string] `json:"authorization_code"`
	RedirectUri       runtime.Optional[string] `json:"redirect_uri"`
}

func (SubmitConsentResponse) MarshalJSON

func (v SubmitConsentResponse) MarshalJSON() ([]byte, error)

func (*SubmitConsentResponse) UnmarshalJSON

func (v *SubmitConsentResponse) UnmarshalJSON(data []byte) error

type SubmitGenerationRequest

type SubmitGenerationRequest struct {
	ClientReference              runtime.Optional[string] `json:"client_reference"`
	ConfirmedAuthorizedMaxCredit string                   `json:"confirmed_authorized_max_credit"`
	EstimateId                   string                   `json:"estimate_id"`
	InputFingerprint             string                   `json:"input_fingerprint"`
	UserId                       string                   `json:"user_id"`
}

func (SubmitGenerationRequest) MarshalJSON

func (v SubmitGenerationRequest) MarshalJSON() ([]byte, error)

func (*SubmitGenerationRequest) UnmarshalJSON

func (v *SubmitGenerationRequest) UnmarshalJSON(data []byte) error

type SubmitGenerationResponse

type SubmitGenerationResponse struct {
	Job  *JobSummary `json:"job"`
	Page *Page       `json:"page"`
}

func (SubmitGenerationResponse) MarshalJSON

func (v SubmitGenerationResponse) MarshalJSON() ([]byte, error)

func (*SubmitGenerationResponse) UnmarshalJSON

func (v *SubmitGenerationResponse) UnmarshalJSON(data []byte) error

type SyncAppMemberRequest

type SyncAppMemberRequest struct {
	AppId  runtime.Optional[string] `json:"app_id"`
	Role   runtime.Optional[string] `json:"role"`
	Status runtime.Optional[string] `json:"status"`
	UserId runtime.Optional[string] `json:"user_id"`
}

func (SyncAppMemberRequest) MarshalJSON

func (v SyncAppMemberRequest) MarshalJSON() ([]byte, error)

func (*SyncAppMemberRequest) UnmarshalJSON

func (v *SyncAppMemberRequest) UnmarshalJSON(data []byte) error

type SyncAppMemberResponse

type SyncAppMemberResponse = any

type Template

type Template struct {
	CreatedAt    runtime.Optional[Timestamp] `json:"created_at"`
	Description  runtime.Optional[string]    `json:"description"`
	IsDefault    runtime.Optional[bool]      `json:"is_default"`
	Name         runtime.Optional[string]    `json:"name"`
	TemplateId   runtime.Optional[string]    `json:"template_id"`
	ThumbnailUrl runtime.Optional[string]    `json:"thumbnail_url"`
}

func (Template) MarshalJSON

func (v Template) MarshalJSON() ([]byte, error)

func (*Template) UnmarshalJSON

func (v *Template) UnmarshalJSON(data []byte) error

type TemplatePresetsService

type TemplatePresetsService struct {
	// contains filtered or unexported fields
}

func (*TemplatePresetsService) ListPresets

type TemplatesService

type TemplatesService struct {
	// contains filtered or unexported fields
}

func (*TemplatesService) ListTemplates

func (s *TemplatesService) ListTemplates(ctx context.Context, options ...runtime.RequestOption) (*ListTemplatesResponse, error)

type TerminateAllOtherSessionsRequest

type TerminateAllOtherSessionsRequest = any

type TerminateAllOtherSessionsResponse

type TerminateAllOtherSessionsResponse struct {
	TerminatedCount runtime.Optional[int64] `json:"terminated_count"`
}

func (TerminateAllOtherSessionsResponse) MarshalJSON

func (v TerminateAllOtherSessionsResponse) MarshalJSON() ([]byte, error)

func (*TerminateAllOtherSessionsResponse) UnmarshalJSON

func (v *TerminateAllOtherSessionsResponse) UnmarshalJSON(data []byte) error

type TerminateSessionRequest

type TerminateSessionRequest struct {
	SessionId runtime.Optional[string] `json:"session_id"`
}

func (TerminateSessionRequest) MarshalJSON

func (v TerminateSessionRequest) MarshalJSON() ([]byte, error)

func (*TerminateSessionRequest) UnmarshalJSON

func (v *TerminateSessionRequest) UnmarshalJSON(data []byte) error

type TerminateSessionResponse

type TerminateSessionResponse = any

type Timestamp

type Timestamp = time.Time

type TokenPair

type TokenPair struct {
	AccessToken  runtime.Optional[string] `json:"access_token"`
	ExpiresIn    runtime.Optional[int64]  `json:"expires_in"`
	RefreshToken runtime.Optional[string] `json:"refresh_token"`
	TokenType    runtime.Optional[string] `json:"token_type"`
}

func (TokenPair) MarshalJSON

func (v TokenPair) MarshalJSON() ([]byte, error)

func (*TokenPair) UnmarshalJSON

func (v *TokenPair) UnmarshalJSON(data []byte) error

type TokenRequest

type TokenRequest struct {
	ClientId     runtime.Optional[string]    `json:"client_id"`
	ClientSecret runtime.Optional[string]    `json:"client_secret"`
	Code         runtime.Optional[string]    `json:"code"`
	CodeVerifier runtime.Optional[string]    `json:"code_verifier"`
	GrantType    runtime.Optional[GrantType] `json:"grant_type"`
	Nonce        runtime.Optional[string]    `json:"nonce"`
	RedirectUri  runtime.Optional[string]    `json:"redirect_uri"`
	RefreshToken runtime.Optional[string]    `json:"refresh_token"`
	Scope        runtime.Optional[string]    `json:"scope"`
}

func (TokenRequest) MarshalJSON

func (v TokenRequest) MarshalJSON() ([]byte, error)

func (*TokenRequest) UnmarshalJSON

func (v *TokenRequest) UnmarshalJSON(data []byte) error

type TokenResponse

type TokenResponse struct {
	AccessToken  runtime.Optional[string] `json:"access_token"`
	ExpiresIn    runtime.Optional[int64]  `json:"expires_in"`
	IdToken      runtime.Optional[string] `json:"id_token"`
	RefreshToken runtime.Optional[string] `json:"refresh_token"`
	Scope        runtime.Optional[string] `json:"scope"`
	TokenType    runtime.Optional[string] `json:"token_type"`
}

func (TokenResponse) MarshalJSON

func (v TokenResponse) MarshalJSON() ([]byte, error)

func (*TokenResponse) UnmarshalJSON

func (v *TokenResponse) UnmarshalJSON(data []byte) error

type TokenService

type TokenService struct {
	// contains filtered or unexported fields
}

func (*TokenService) Token

func (s *TokenService) Token(ctx context.Context, params TokenTokenParams, options ...runtime.RequestOption) (*TokenResponse, error)

type TokenTokenParams

type TokenTokenParams struct {
	Body *TokenRequest
}

type TokenUsage

type TokenUsage struct {
	InputTokens  runtime.Optional[int64]  `json:"input_tokens"`
	Model        runtime.Optional[string] `json:"model"`
	OutputTokens runtime.Optional[int64]  `json:"output_tokens"`
	TotalTokens  runtime.Optional[int64]  `json:"total_tokens"`
}

func (TokenUsage) MarshalJSON

func (v TokenUsage) MarshalJSON() ([]byte, error)

func (*TokenUsage) UnmarshalJSON

func (v *TokenUsage) UnmarshalJSON(data []byte) error

type ToolCapability

type ToolCapability string
const (
	ToolCapabilityTOOLCAPABILITYUNSPECIFIED ToolCapability = "TOOL_CAPABILITY_UNSPECIFIED"
	ToolCapabilityTOOLCAPABILITYWEBSEARCH   ToolCapability = "TOOL_CAPABILITY_WEB_SEARCH"
)

func (ToolCapability) MarshalJSON

func (v ToolCapability) MarshalJSON() ([]byte, error)

func (*ToolCapability) UnmarshalJSON

func (v *ToolCapability) UnmarshalJSON(data []byte) error

type ToolPolicySnapshot

type ToolPolicySnapshot struct {
	AllowedCapabilities    []ToolCapability           `json:"allowed_capabilities"`
	FreshnessWindow        runtime.Optional[Duration] `json:"freshness_window"`
	MaxAiTurnCount         int64                      `json:"max_ai_turn_count"`
	MaxCallAttemptCount    int64                      `json:"max_call_attempt_count"`
	MaxExecutionDurationMs string                     `json:"max_execution_duration_ms"`
	MaxPlanStepCount       int64                      `json:"max_plan_step_count"`
	MaxReplanCount         int64                      `json:"max_replan_count"`
	MaxResultBytes         string                     `json:"max_result_bytes"`
	MaxResultsPerCall      int64                      `json:"max_results_per_call"`
	MaxWebSearchCallCount  int64                      `json:"max_web_search_call_count"`
	MaxWebSearchDurationMs string                     `json:"max_web_search_duration_ms"`
	Mode                   ExternalInformationMode    `json:"mode"`
	PolicyVersion          string                     `json:"policy_version"`
	RequiresFreshSources   bool                       `json:"requires_fresh_sources"`
}

func (ToolPolicySnapshot) MarshalJSON

func (v ToolPolicySnapshot) MarshalJSON() ([]byte, error)

func (*ToolPolicySnapshot) UnmarshalJSON

func (v *ToolPolicySnapshot) UnmarshalJSON(data []byte) error

type ToutiaoConfig

type ToutiaoConfig struct {
	Category runtime.Optional[string]   `json:"category"`
	Tags     runtime.Optional[[]string] `json:"tags"`
}

func (ToutiaoConfig) MarshalJSON

func (v ToutiaoConfig) MarshalJSON() ([]byte, error)

func (*ToutiaoConfig) UnmarshalJSON

func (v *ToutiaoConfig) UnmarshalJSON(data []byte) error

type UnbindPlatformAccountRequest

type UnbindPlatformAccountRequest struct {
	AccountId runtime.Optional[string] `json:"account_id"`
}

func (UnbindPlatformAccountRequest) MarshalJSON

func (v UnbindPlatformAccountRequest) MarshalJSON() ([]byte, error)

func (*UnbindPlatformAccountRequest) UnmarshalJSON

func (v *UnbindPlatformAccountRequest) UnmarshalJSON(data []byte) error

type UnbindPlatformAccountResponse

type UnbindPlatformAccountResponse = any

type UpdateApplicationRequest

type UpdateApplicationRequest struct {
	AllowedScopes runtime.Optional[[]string] `json:"allowed_scopes"`
	AppId         runtime.Optional[string]   `json:"app_id"`
	AppName       runtime.Optional[string]   `json:"app_name"`
	Description   runtime.Optional[string]   `json:"description"`
	HomepageUrl   runtime.Optional[string]   `json:"homepage_url"`
	LogoUrl       runtime.Optional[string]   `json:"logo_url"`
	RedirectUris  runtime.Optional[[]string] `json:"redirect_uris"`
}

func (UpdateApplicationRequest) MarshalJSON

func (v UpdateApplicationRequest) MarshalJSON() ([]byte, error)

func (*UpdateApplicationRequest) UnmarshalJSON

func (v *UpdateApplicationRequest) UnmarshalJSON(data []byte) error

type UpdateApplicationResponse

type UpdateApplicationResponse struct {
	Application runtime.Optional[*OAuthApplication] `json:"application"`
}

func (UpdateApplicationResponse) MarshalJSON

func (v UpdateApplicationResponse) MarshalJSON() ([]byte, error)

func (*UpdateApplicationResponse) UnmarshalJSON

func (v *UpdateApplicationResponse) UnmarshalJSON(data []byte) error

type UpdateArticleRequest

type UpdateArticleRequest struct {
	ArticleId     runtime.Optional[string]   `json:"article_id"`
	Content       runtime.Optional[string]   `json:"content"`
	CoverImageUrl runtime.Optional[string]   `json:"cover_image_url"`
	Summary       runtime.Optional[string]   `json:"summary"`
	Tags          runtime.Optional[[]string] `json:"tags"`
	Title         runtime.Optional[string]   `json:"title"`
}

func (UpdateArticleRequest) MarshalJSON

func (v UpdateArticleRequest) MarshalJSON() ([]byte, error)

func (*UpdateArticleRequest) UnmarshalJSON

func (v *UpdateArticleRequest) UnmarshalJSON(data []byte) error

type UpdateArticleResponse

type UpdateArticleResponse struct {
	Article runtime.Optional[*Article] `json:"article"`
}

func (UpdateArticleResponse) MarshalJSON

func (v UpdateArticleResponse) MarshalJSON() ([]byte, error)

func (*UpdateArticleResponse) UnmarshalJSON

func (v *UpdateArticleResponse) UnmarshalJSON(data []byte) error

type UpdateCategoryPreferenceRequest

type UpdateCategoryPreferenceRequest struct {
	Etag      string `json:"etag"`
	RulesText string `json:"rules_text"`
	UserId    string `json:"user_id"`
}

func (UpdateCategoryPreferenceRequest) MarshalJSON

func (v UpdateCategoryPreferenceRequest) MarshalJSON() ([]byte, error)

func (*UpdateCategoryPreferenceRequest) UnmarshalJSON

func (v *UpdateCategoryPreferenceRequest) UnmarshalJSON(data []byte) error

type UpdateCategoryPreferenceResponse

type UpdateCategoryPreferenceResponse struct {
	CategoryPreference *CategoryPreference `json:"category_preference"`
}

func (UpdateCategoryPreferenceResponse) MarshalJSON

func (v UpdateCategoryPreferenceResponse) MarshalJSON() ([]byte, error)

func (*UpdateCategoryPreferenceResponse) UnmarshalJSON

func (v *UpdateCategoryPreferenceResponse) UnmarshalJSON(data []byte) error

type UpdateEmailRequest

type UpdateEmailRequest struct {
	NewEmail         runtime.Optional[string] `json:"new_email"`
	VerificationCode runtime.Optional[string] `json:"verification_code"`
}

func (UpdateEmailRequest) MarshalJSON

func (v UpdateEmailRequest) MarshalJSON() ([]byte, error)

func (*UpdateEmailRequest) UnmarshalJSON

func (v *UpdateEmailRequest) UnmarshalJSON(data []byte) error

type UpdateEmailResponse

type UpdateEmailResponse = any

type UpdateMemberRoleRequest

type UpdateMemberRoleRequest struct {
	OrgId  runtime.Optional[string]                 `json:"org_id"`
	Role   runtime.Optional[OrganizationMemberRole] `json:"role"`
	UserId runtime.Optional[string]                 `json:"user_id"`
}

func (UpdateMemberRoleRequest) MarshalJSON

func (v UpdateMemberRoleRequest) MarshalJSON() ([]byte, error)

func (*UpdateMemberRoleRequest) UnmarshalJSON

func (v *UpdateMemberRoleRequest) UnmarshalJSON(data []byte) error

type UpdateMemberRoleResponse

type UpdateMemberRoleResponse struct {
	Member runtime.Optional[*OrganizationMember] `json:"member"`
}

func (UpdateMemberRoleResponse) MarshalJSON

func (v UpdateMemberRoleResponse) MarshalJSON() ([]byte, error)

func (*UpdateMemberRoleResponse) UnmarshalJSON

func (v *UpdateMemberRoleResponse) UnmarshalJSON(data []byte) error

type UpdateOAuthClientRequest

type UpdateOAuthClientRequest struct {
	AllowedGrantTypes runtime.Optional[[]GrantType]            `json:"allowed_grant_types"`
	AllowedIdentities runtime.Optional[[]IdentityType]         `json:"allowed_identities"`
	AllowedScopes     runtime.Optional[[]string]               `json:"allowed_scopes"`
	AppId             runtime.Optional[string]                 `json:"app_id"`
	ClientId          runtime.Optional[string]                 `json:"client_id"`
	ClientType        runtime.Optional[ClientCredentialType]   `json:"client_type"`
	Description       runtime.Optional[string]                 `json:"description"`
	Name              runtime.Optional[string]                 `json:"name"`
	RedirectUris      runtime.Optional[[]string]               `json:"redirect_uris"`
	Status            runtime.Optional[ClientCredentialStatus] `json:"status"`
	UpdateMask        runtime.Optional[FieldMask]              `json:"update_mask"`
}

func (UpdateOAuthClientRequest) MarshalJSON

func (v UpdateOAuthClientRequest) MarshalJSON() ([]byte, error)

func (*UpdateOAuthClientRequest) UnmarshalJSON

func (v *UpdateOAuthClientRequest) UnmarshalJSON(data []byte) error

type UpdateOAuthClientResponse

type UpdateOAuthClientResponse struct {
	Client runtime.Optional[*OAuthClient] `json:"client"`
}

func (UpdateOAuthClientResponse) MarshalJSON

func (v UpdateOAuthClientResponse) MarshalJSON() ([]byte, error)

func (*UpdateOAuthClientResponse) UnmarshalJSON

func (v *UpdateOAuthClientResponse) UnmarshalJSON(data []byte) error

type UpdateOrganizationRequest

type UpdateOrganizationRequest struct {
	OrgId        runtime.Optional[string]        `json:"org_id"`
	Organization runtime.Optional[*Organization] `json:"organization"`
	UpdateMask   runtime.Optional[FieldMask]     `json:"update_mask"`
}

func (UpdateOrganizationRequest) MarshalJSON

func (v UpdateOrganizationRequest) MarshalJSON() ([]byte, error)

func (*UpdateOrganizationRequest) UnmarshalJSON

func (v *UpdateOrganizationRequest) UnmarshalJSON(data []byte) error

type UpdateOrganizationResponse

type UpdateOrganizationResponse struct {
	Organization runtime.Optional[*Organization] `json:"organization"`
}

func (UpdateOrganizationResponse) MarshalJSON

func (v UpdateOrganizationResponse) MarshalJSON() ([]byte, error)

func (*UpdateOrganizationResponse) UnmarshalJSON

func (v *UpdateOrganizationResponse) UnmarshalJSON(data []byte) error

type UpdatePhoneRequest

type UpdatePhoneRequest struct {
	NewPhone         runtime.Optional[string] `json:"new_phone"`
	VerificationCode runtime.Optional[string] `json:"verification_code"`
}

func (UpdatePhoneRequest) MarshalJSON

func (v UpdatePhoneRequest) MarshalJSON() ([]byte, error)

func (*UpdatePhoneRequest) UnmarshalJSON

func (v *UpdatePhoneRequest) UnmarshalJSON(data []byte) error

type UpdatePhoneResponse

type UpdatePhoneResponse = any

type UpdateProfileRequest

type UpdateProfileRequest struct {
	Bio               runtime.Optional[string] `json:"bio"`
	DefaultApiVersion runtime.Optional[string] `json:"default_api_version"`
	HomeAddress       runtime.Optional[string] `json:"home_address"`
	Location          runtime.Optional[string] `json:"location"`
	Name              runtime.Optional[string] `json:"name"`
	Website           runtime.Optional[string] `json:"website"`
	WorkAddress       runtime.Optional[string] `json:"work_address"`
}

func (UpdateProfileRequest) MarshalJSON

func (v UpdateProfileRequest) MarshalJSON() ([]byte, error)

func (*UpdateProfileRequest) UnmarshalJSON

func (v *UpdateProfileRequest) UnmarshalJSON(data []byte) error

type UpdateProfileResponse

type UpdateProfileResponse struct {
	UpdatedAt runtime.Optional[Timestamp] `json:"updated_at"`
}

func (UpdateProfileResponse) MarshalJSON

func (v UpdateProfileResponse) MarshalJSON() ([]byte, error)

func (*UpdateProfileResponse) UnmarshalJSON

func (v *UpdateProfileResponse) UnmarshalJSON(data []byte) error

type UpdateProjectRequest

type UpdateProjectRequest struct {
	Description runtime.Optional[string]            `json:"description"`
	Metadata    runtime.Optional[map[string]string] `json:"metadata"`
	Name        runtime.Optional[string]            `json:"name"`
	ProjectId   runtime.Optional[string]            `json:"project_id"`
	Status      runtime.Optional[ProjectStatus]     `json:"status"`
	Tags        runtime.Optional[[]string]          `json:"tags"`
}

func (UpdateProjectRequest) MarshalJSON

func (v UpdateProjectRequest) MarshalJSON() ([]byte, error)

func (*UpdateProjectRequest) UnmarshalJSON

func (v *UpdateProjectRequest) UnmarshalJSON(data []byte) error

type UpdateProjectRequestMetadataEntry

type UpdateProjectRequestMetadataEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (UpdateProjectRequestMetadataEntry) MarshalJSON

func (v UpdateProjectRequestMetadataEntry) MarshalJSON() ([]byte, error)

func (*UpdateProjectRequestMetadataEntry) UnmarshalJSON

func (v *UpdateProjectRequestMetadataEntry) UnmarshalJSON(data []byte) error

type UpdateProjectResponse

type UpdateProjectResponse struct {
	Project runtime.Optional[*Project] `json:"project"`
}

func (UpdateProjectResponse) MarshalJSON

func (v UpdateProjectResponse) MarshalJSON() ([]byte, error)

func (*UpdateProjectResponse) UnmarshalJSON

func (v *UpdateProjectResponse) UnmarshalJSON(data []byte) error

type UpdateScopeRequest

type UpdateScopeRequest struct {
	Category    runtime.Optional[string] `json:"category"`
	Description runtime.Optional[string] `json:"description"`
	DisplayName runtime.Optional[string] `json:"display_name"`
	IsSensitive runtime.Optional[bool]   `json:"is_sensitive"`
	Name        runtime.Optional[string] `json:"name"`
}

func (UpdateScopeRequest) MarshalJSON

func (v UpdateScopeRequest) MarshalJSON() ([]byte, error)

func (*UpdateScopeRequest) UnmarshalJSON

func (v *UpdateScopeRequest) UnmarshalJSON(data []byte) error

type UpdateScopeResponse

type UpdateScopeResponse struct {
	Scope runtime.Optional[*Scope] `json:"scope"`
}

func (UpdateScopeResponse) MarshalJSON

func (v UpdateScopeResponse) MarshalJSON() ([]byte, error)

func (*UpdateScopeResponse) UnmarshalJSON

func (v *UpdateScopeResponse) UnmarshalJSON(data []byte) error

type UpdateWebhookRequest

type UpdateWebhookRequest struct {
	Status           runtime.Optional[WebhookStatus] `json:"status"`
	SubscribedEvents runtime.Optional[[]string]      `json:"subscribed_events"`
	Url              runtime.Optional[string]        `json:"url"`
	WebhookId        runtime.Optional[string]        `json:"webhook_id"`
}

func (UpdateWebhookRequest) MarshalJSON

func (v UpdateWebhookRequest) MarshalJSON() ([]byte, error)

func (*UpdateWebhookRequest) UnmarshalJSON

func (v *UpdateWebhookRequest) UnmarshalJSON(data []byte) error

type UpdateWebhookResponse

type UpdateWebhookResponse struct {
	Webhook runtime.Optional[*Webhook] `json:"webhook"`
}

func (UpdateWebhookResponse) MarshalJSON

func (v UpdateWebhookResponse) MarshalJSON() ([]byte, error)

func (*UpdateWebhookResponse) UnmarshalJSON

func (v *UpdateWebhookResponse) UnmarshalJSON(data []byte) error

type UploadAssetRequest

type UploadAssetRequest struct {
	ContentType         runtime.Optional[string]               `json:"content_type"`
	Data                runtime.Optional[string]               `json:"data"`
	Filename            runtime.Optional[string]               `json:"filename"`
	Metadata            runtime.Optional[map[string]string]    `json:"metadata"`
	ProjectId           runtime.Optional[string]               `json:"project_id"`
	WechatMpCredentials runtime.Optional[*WechatMpCredentials] `json:"wechat_mp_credentials"`
}

func (UploadAssetRequest) MarshalJSON

func (v UploadAssetRequest) MarshalJSON() ([]byte, error)

func (*UploadAssetRequest) UnmarshalJSON

func (v *UploadAssetRequest) UnmarshalJSON(data []byte) error

type UploadAssetRequestMetadataEntry

type UploadAssetRequestMetadataEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (UploadAssetRequestMetadataEntry) MarshalJSON

func (v UploadAssetRequestMetadataEntry) MarshalJSON() ([]byte, error)

func (*UploadAssetRequestMetadataEntry) UnmarshalJSON

func (v *UploadAssetRequestMetadataEntry) UnmarshalJSON(data []byte) error

type UploadAssetResponse

type UploadAssetResponse struct {
	Asset runtime.Optional[*Asset] `json:"asset"`
}

func (UploadAssetResponse) MarshalJSON

func (v UploadAssetResponse) MarshalJSON() ([]byte, error)

func (*UploadAssetResponse) UnmarshalJSON

func (v *UploadAssetResponse) UnmarshalJSON(data []byte) error

type UploadAvatarRequest

type UploadAvatarRequest struct {
	ContentType runtime.Optional[string] `json:"content_type"`
	ImageData   runtime.Optional[string] `json:"image_data"`
}

func (UploadAvatarRequest) MarshalJSON

func (v UploadAvatarRequest) MarshalJSON() ([]byte, error)

func (*UploadAvatarRequest) UnmarshalJSON

func (v *UploadAvatarRequest) UnmarshalJSON(data []byte) error

type UploadAvatarResponse

type UploadAvatarResponse struct {
	AvatarUrl   runtime.Optional[string]            `json:"avatar_url"`
	ExpiresAt   runtime.Optional[Timestamp]         `json:"expires_at"`
	MediaId     runtime.Optional[string]            `json:"media_id"`
	VariantUrls runtime.Optional[map[string]string] `json:"variant_urls"`
}

func (UploadAvatarResponse) MarshalJSON

func (v UploadAvatarResponse) MarshalJSON() ([]byte, error)

func (*UploadAvatarResponse) UnmarshalJSON

func (v *UploadAvatarResponse) UnmarshalJSON(data []byte) error

type UploadAvatarResponseVariantUrlsEntry

type UploadAvatarResponseVariantUrlsEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (UploadAvatarResponseVariantUrlsEntry) MarshalJSON

func (v UploadAvatarResponseVariantUrlsEntry) MarshalJSON() ([]byte, error)

func (*UploadAvatarResponseVariantUrlsEntry) UnmarshalJSON

func (v *UploadAvatarResponseVariantUrlsEntry) UnmarshalJSON(data []byte) error

type UploadEstimate

type UploadEstimate struct {
	AuthorizedMaxCredit          string                `json:"authorized_max_credit"`
	BalanceSufficient            bool                  `json:"balance_sufficient"`
	CreatedAt                    Timestamp             `json:"created_at"`
	CurrentBalanceCredit         string                `json:"current_balance_credit"`
	ExpiresAt                    Timestamp             `json:"expires_at"`
	InputFingerprint             string                `json:"input_fingerprint"`
	Items                        []*UploadEstimateItem `json:"items"`
	PricingVersion               string                `json:"pricing_version"`
	RemainingEstimatedFileCredit string                `json:"remaining_estimated_file_credit"`
	RemainingFileCount           int64                 `json:"remaining_file_count"`
	RemainingTotalSizeBytes      string                `json:"remaining_total_size_bytes"`
	State                        UploadEstimateState   `json:"state"`
	UploadEstimateId             string                `json:"upload_estimate_id"`
}

func (UploadEstimate) MarshalJSON

func (v UploadEstimate) MarshalJSON() ([]byte, error)

func (*UploadEstimate) UnmarshalJSON

func (v *UploadEstimate) UnmarshalJSON(data []byte) error

type UploadEstimateDeclaration

type UploadEstimateDeclaration struct {
	DeclaredMediaType string `json:"declared_media_type"`
	DeclaredSha256    string `json:"declared_sha256"`
	DeclaredSizeBytes string `json:"declared_size_bytes"`
	DisplayName       string `json:"display_name"`
}

func (UploadEstimateDeclaration) MarshalJSON

func (v UploadEstimateDeclaration) MarshalJSON() ([]byte, error)

func (*UploadEstimateDeclaration) UnmarshalJSON

func (v *UploadEstimateDeclaration) UnmarshalJSON(data []byte) error

type UploadEstimateItem

type UploadEstimateItem struct {
	ConsumedUploadId  runtime.Optional[string] `json:"consumed_upload_id"`
	DeclaredMediaType runtime.Optional[string] `json:"declared_media_type"`
	DeclaredSha256    runtime.Optional[string] `json:"declared_sha256"`
	DeclaredSizeBytes runtime.Optional[string] `json:"declared_size_bytes"`
	DisplayName       runtime.Optional[string] `json:"display_name"`
	EstimateItemId    string                   `json:"estimate_item_id"`
	State             UploadEstimateItemState  `json:"state"`
}

func (UploadEstimateItem) MarshalJSON

func (v UploadEstimateItem) MarshalJSON() ([]byte, error)

func (*UploadEstimateItem) UnmarshalJSON

func (v *UploadEstimateItem) UnmarshalJSON(data []byte) error

type UploadEstimateItemState

type UploadEstimateItemState string
const (
	UploadEstimateItemStateUPLOADESTIMATEITEMSTATEUNSPECIFIED   UploadEstimateItemState = "UPLOAD_ESTIMATE_ITEM_STATE_UNSPECIFIED"
	UploadEstimateItemStateUPLOADESTIMATEITEMSTATEAVAILABLE     UploadEstimateItemState = "UPLOAD_ESTIMATE_ITEM_STATE_AVAILABLE"
	UploadEstimateItemStateUPLOADESTIMATEITEMSTATECONSUMED      UploadEstimateItemState = "UPLOAD_ESTIMATE_ITEM_STATE_CONSUMED"
	UploadEstimateItemStateUPLOADESTIMATEITEMSTATECONTENTPURGED UploadEstimateItemState = "UPLOAD_ESTIMATE_ITEM_STATE_CONTENT_PURGED"
)

func (UploadEstimateItemState) MarshalJSON

func (v UploadEstimateItemState) MarshalJSON() ([]byte, error)

func (*UploadEstimateItemState) UnmarshalJSON

func (v *UploadEstimateItemState) UnmarshalJSON(data []byte) error

type UploadEstimateState

type UploadEstimateState string
const (
	UploadEstimateStateUPLOADESTIMATESTATEUNSPECIFIED       UploadEstimateState = "UPLOAD_ESTIMATE_STATE_UNSPECIFIED"
	UploadEstimateStateUPLOADESTIMATESTATEACTIVE            UploadEstimateState = "UPLOAD_ESTIMATE_STATE_ACTIVE"
	UploadEstimateStateUPLOADESTIMATESTATEPARTIALLYCONSUMED UploadEstimateState = "UPLOAD_ESTIMATE_STATE_PARTIALLY_CONSUMED"
	UploadEstimateStateUPLOADESTIMATESTATECONSUMED          UploadEstimateState = "UPLOAD_ESTIMATE_STATE_CONSUMED"
	UploadEstimateStateUPLOADESTIMATESTATEEXPIRED           UploadEstimateState = "UPLOAD_ESTIMATE_STATE_EXPIRED"
)

func (UploadEstimateState) MarshalJSON

func (v UploadEstimateState) MarshalJSON() ([]byte, error)

func (*UploadEstimateState) UnmarshalJSON

func (v *UploadEstimateState) UnmarshalJSON(data []byte) error

type UploadSession

type UploadSession struct {
	CostSummary       *CostSummary             `json:"cost_summary"`
	CreatedAt         Timestamp                `json:"created_at"`
	DeclaredMediaType string                   `json:"declared_media_type"`
	DeclaredSha256    string                   `json:"declared_sha256"`
	DeclaredSizeBytes string                   `json:"declared_size_bytes"`
	DisplayName       string                   `json:"display_name"`
	ExpiresAt         Timestamp                `json:"expires_at"`
	FailureReason     runtime.Optional[string] `json:"failure_reason"`
	MaterialId        runtime.Optional[string] `json:"material_id"`
	PartCount         runtime.Optional[int64]  `json:"part_count"`
	PartSizeBytes     runtime.Optional[string] `json:"part_size_bytes"`
	Status            UploadStatus             `json:"status"`
	UploadId          string                   `json:"upload_id"`
	UploadedParts     []*UploadedPart          `json:"uploaded_parts"`
}

func (UploadSession) MarshalJSON

func (v UploadSession) MarshalJSON() ([]byte, error)

func (*UploadSession) UnmarshalJSON

func (v *UploadSession) UnmarshalJSON(data []byte) error

type UploadStatus

type UploadStatus string
const (
	UploadStatusUPLOADSTATUSUNSPECIFIED UploadStatus = "UPLOAD_STATUS_UNSPECIFIED"
	UploadStatusUPLOADSTATUSOPENING     UploadStatus = "UPLOAD_STATUS_OPENING"
	UploadStatusUPLOADSTATUSOPEN        UploadStatus = "UPLOAD_STATUS_OPEN"
	UploadStatusUPLOADSTATUSCOMPLETING  UploadStatus = "UPLOAD_STATUS_COMPLETING"
	UploadStatusUPLOADSTATUSCOMPLETED   UploadStatus = "UPLOAD_STATUS_COMPLETED"
	UploadStatusUPLOADSTATUSABORTING    UploadStatus = "UPLOAD_STATUS_ABORTING"
	UploadStatusUPLOADSTATUSABORTED     UploadStatus = "UPLOAD_STATUS_ABORTED"
	UploadStatusUPLOADSTATUSEXPIRED     UploadStatus = "UPLOAD_STATUS_EXPIRED"
	UploadStatusUPLOADSTATUSREJECTED    UploadStatus = "UPLOAD_STATUS_REJECTED"
	UploadStatusUPLOADSTATUSFAILED      UploadStatus = "UPLOAD_STATUS_FAILED"
)

func (UploadStatus) MarshalJSON

func (v UploadStatus) MarshalJSON() ([]byte, error)

func (*UploadStatus) UnmarshalJSON

func (v *UploadStatus) UnmarshalJSON(data []byte) error

type UploadedPart

type UploadedPart struct {
	Etag       string `json:"etag"`
	PartNumber int64  `json:"part_number"`
	SizeBytes  string `json:"size_bytes"`
}

func (UploadedPart) MarshalJSON

func (v UploadedPart) MarshalJSON() ([]byte, error)

func (*UploadedPart) UnmarshalJSON

func (v *UploadedPart) UnmarshalJSON(data []byte) error

type UserBrief

type UserBrief struct {
	Avatar runtime.Optional[string] `json:"avatar"`
	Email  runtime.Optional[string] `json:"email"`
	Name   runtime.Optional[string] `json:"name"`
	Phone  runtime.Optional[string] `json:"phone"`
	UserId runtime.Optional[string] `json:"user_id"`
}

func (UserBrief) MarshalJSON

func (v UserBrief) MarshalJSON() ([]byte, error)

func (*UserBrief) UnmarshalJSON

func (v *UserBrief) UnmarshalJSON(data []byte) error

type UserProfile

type UserProfile struct {
	Email               runtime.Optional[string] `json:"email"`
	EmailVerified       runtime.Optional[bool]   `json:"email_verified"`
	Name                runtime.Optional[string] `json:"name"`
	PhoneNumber         runtime.Optional[string] `json:"phone_number"`
	PhoneNumberVerified runtime.Optional[bool]   `json:"phone_number_verified"`
	Picture             runtime.Optional[string] `json:"picture"`
	PreferredUsername   runtime.Optional[string] `json:"preferred_username"`
	Sub                 runtime.Optional[string] `json:"sub"`
	UpdatedAt           runtime.Optional[string] `json:"updated_at"`
}

func (UserProfile) MarshalJSON

func (v UserProfile) MarshalJSON() ([]byte, error)

func (*UserProfile) UnmarshalJSON

func (v *UserProfile) UnmarshalJSON(data []byte) error

type UserStatus

type UserStatus string
const (
	UserStatusUSERSTATUSUNSPECIFIED UserStatus = "USER_STATUS_UNSPECIFIED"
	UserStatusUSERSTATUSACTIVE      UserStatus = "USER_STATUS_ACTIVE"
	UserStatusUSERSTATUSSUSPENDED   UserStatus = "USER_STATUS_SUSPENDED"
	UserStatusUSERSTATUSDELETED     UserStatus = "USER_STATUS_DELETED"
)

func (UserStatus) MarshalJSON

func (v UserStatus) MarshalJSON() ([]byte, error)

func (*UserStatus) UnmarshalJSON

func (v *UserStatus) UnmarshalJSON(data []byte) error

type UsersService

type UsersService struct {
	// contains filtered or unexported fields
}

func (*UsersService) GetProfile

func (s *UsersService) GetProfile(ctx context.Context, options ...runtime.RequestOption) (*GetProfileResponse, error)

type VerificationPurpose

type VerificationPurpose string
const (
	VerificationPurposeVERIFICATIONPURPOSEUNSPECIFIED   VerificationPurpose = "VERIFICATION_PURPOSE_UNSPECIFIED"
	VerificationPurposeVERIFICATIONPURPOSEREGISTER      VerificationPurpose = "VERIFICATION_PURPOSE_REGISTER"
	VerificationPurposeVERIFICATIONPURPOSELOGIN         VerificationPurpose = "VERIFICATION_PURPOSE_LOGIN"
	VerificationPurposeVERIFICATIONPURPOSERESETPASSWORD VerificationPurpose = "VERIFICATION_PURPOSE_RESET_PASSWORD"
	VerificationPurposeVERIFICATIONPURPOSEVERIFYEMAIL   VerificationPurpose = "VERIFICATION_PURPOSE_VERIFY_EMAIL"
	VerificationPurposeVERIFICATIONPURPOSEVERIFYPHONE   VerificationPurpose = "VERIFICATION_PURPOSE_VERIFY_PHONE"
)

func (VerificationPurpose) MarshalJSON

func (v VerificationPurpose) MarshalJSON() ([]byte, error)

func (*VerificationPurpose) UnmarshalJSON

func (v *VerificationPurpose) UnmarshalJSON(data []byte) error

type VerificationType

type VerificationType string
const (
	VerificationTypeVERIFICATIONTYPEUNSPECIFIED VerificationType = "VERIFICATION_TYPE_UNSPECIFIED"
	VerificationTypeVERIFICATIONTYPEEMAIL       VerificationType = "VERIFICATION_TYPE_EMAIL"
	VerificationTypeVERIFICATIONTYPEPHONE       VerificationType = "VERIFICATION_TYPE_PHONE"
)

func (VerificationType) MarshalJSON

func (v VerificationType) MarshalJSON() ([]byte, error)

func (*VerificationType) UnmarshalJSON

func (v *VerificationType) UnmarshalJSON(data []byte) error

type VerifyEmailRequest

type VerifyEmailRequest struct {
	VerificationCode runtime.Optional[string] `json:"verification_code"`
}

func (VerifyEmailRequest) MarshalJSON

func (v VerifyEmailRequest) MarshalJSON() ([]byte, error)

func (*VerifyEmailRequest) UnmarshalJSON

func (v *VerifyEmailRequest) UnmarshalJSON(data []byte) error

type VerifyEmailResponse

type VerifyEmailResponse = any

type VerifyPhoneRequest

type VerifyPhoneRequest struct {
	VerificationCode runtime.Optional[string] `json:"verification_code"`
}

func (VerifyPhoneRequest) MarshalJSON

func (v VerifyPhoneRequest) MarshalJSON() ([]byte, error)

func (*VerifyPhoneRequest) UnmarshalJSON

func (v *VerifyPhoneRequest) UnmarshalJSON(data []byte) error

type VerifyPhoneResponse

type VerifyPhoneResponse = any

type VerifyPlatformAccountRequest

type VerifyPlatformAccountRequest struct {
	Credentials runtime.Optional[map[string]string] `json:"credentials"`
	Platform    runtime.Optional[Platform]          `json:"platform"`
}

func (VerifyPlatformAccountRequest) MarshalJSON

func (v VerifyPlatformAccountRequest) MarshalJSON() ([]byte, error)

func (*VerifyPlatformAccountRequest) UnmarshalJSON

func (v *VerifyPlatformAccountRequest) UnmarshalJSON(data []byte) error

type VerifyPlatformAccountRequestCredentialsEntry

type VerifyPlatformAccountRequestCredentialsEntry struct {
	Key   runtime.Optional[string] `json:"key"`
	Value runtime.Optional[string] `json:"value"`
}

func (VerifyPlatformAccountRequestCredentialsEntry) MarshalJSON

func (*VerifyPlatformAccountRequestCredentialsEntry) UnmarshalJSON

func (v *VerifyPlatformAccountRequestCredentialsEntry) UnmarshalJSON(data []byte) error

type VerifyPlatformAccountResponse

type VerifyPlatformAccountResponse struct {
	DisplayName  runtime.Optional[string] `json:"display_name"`
	ErrorMessage runtime.Optional[string] `json:"error_message"`
	Valid        runtime.Optional[bool]   `json:"valid"`
}

func (VerifyPlatformAccountResponse) MarshalJSON

func (v VerifyPlatformAccountResponse) MarshalJSON() ([]byte, error)

func (*VerifyPlatformAccountResponse) UnmarshalJSON

func (v *VerifyPlatformAccountResponse) UnmarshalJSON(data []byte) error

type VerifyService

type VerifyService struct {
	// contains filtered or unexported fields
}

func (*VerifyService) VerifyPlatformAccount

type VerifyVerifyPlatformAccountParams

type VerifyVerifyPlatformAccountParams struct {
	Body *VerifyPlatformAccountRequest
}

type VersionArtifact

type VersionArtifact struct {
	ExportId  string       `json:"export_id"`
	Format    ExportFormat `json:"format"`
	Sha256    string       `json:"sha256"`
	SizeBytes string       `json:"size_bytes"`
}

func (VersionArtifact) MarshalJSON

func (v VersionArtifact) MarshalJSON() ([]byte, error)

func (*VersionArtifact) UnmarshalJSON

func (v *VersionArtifact) UnmarshalJSON(data []byte) error

type VersionsGetPageVersionParams

type VersionsGetPageVersionParams struct {
	PageId    string
	UserId    string
	VersionId string
}

type VersionsListPageVersionsParams

type VersionsListPageVersionsParams struct {
	PageId    string
	UserId    string
	OrderBy   runtime.Optional[string]
	PageSize  runtime.Optional[int64]
	PageToken runtime.Optional[string]
}

type VersionsRestorePageVersionBody

type VersionsRestorePageVersionBody struct {
	ExpectedContentRevision  string                   `json:"expectedContentRevision"`
	ExpectedCurrentVersionId string                   `json:"expectedCurrentVersionId"`
	PageEtag                 runtime.Optional[string] `json:"pageEtag"`
}

func (VersionsRestorePageVersionBody) MarshalJSON

func (v VersionsRestorePageVersionBody) MarshalJSON() ([]byte, error)

func (*VersionsRestorePageVersionBody) UnmarshalJSON

func (v *VersionsRestorePageVersionBody) UnmarshalJSON(data []byte) error

type VersionsRestorePageVersionParams

type VersionsRestorePageVersionParams struct {
	PageId          string
	UserId          string
	VersionId       string
	XIdempotencyKey string
	Body            *VersionsRestorePageVersionBody
}

type VersionsService

type VersionsService struct {
	// contains filtered or unexported fields
}

func (*VersionsService) GetPageVersion

func (*VersionsService) ListPageVersions

func (*VersionsService) ListPageVersionsAll

func (*VersionsService) RestorePageVersion

type VideoStatus

type VideoStatus string
const (
	VideoStatusVIDEOSTATUSUNSPECIFIED      VideoStatus = "VIDEO_STATUS_UNSPECIFIED"
	VideoStatusVIDEOSTATUSPENDING          VideoStatus = "VIDEO_STATUS_PENDING"
	VideoStatusVIDEOSTATUSGENERATINGSCRIPT VideoStatus = "VIDEO_STATUS_GENERATING_SCRIPT"
	VideoStatusVIDEOSTATUSGENERATINGASSETS VideoStatus = "VIDEO_STATUS_GENERATING_ASSETS"
	VideoStatusVIDEOSTATUSCOMPOSITING      VideoStatus = "VIDEO_STATUS_COMPOSITING"
	VideoStatusVIDEOSTATUSCOMPLETED        VideoStatus = "VIDEO_STATUS_COMPLETED"
	VideoStatusVIDEOSTATUSFAILED           VideoStatus = "VIDEO_STATUS_FAILED"
)

func (VideoStatus) MarshalJSON

func (v VideoStatus) MarshalJSON() ([]byte, error)

func (*VideoStatus) UnmarshalJSON

func (v *VideoStatus) UnmarshalJSON(data []byte) error

type VideoStyle

type VideoStyle string
const (
	VideoStyleVIDEOSTYLEUNSPECIFIED VideoStyle = "VIDEO_STYLE_UNSPECIFIED"
	VideoStyleVIDEOSTYLESLIDESHOW   VideoStyle = "VIDEO_STYLE_SLIDESHOW"
	VideoStyleVIDEOSTYLETALKINGHEAD VideoStyle = "VIDEO_STYLE_TALKING_HEAD"
	VideoStyleVIDEOSTYLEEXPLAINER   VideoStyle = "VIDEO_STYLE_EXPLAINER"
	VideoStyleVIDEOSTYLEHIGHLIGHT   VideoStyle = "VIDEO_STYLE_HIGHLIGHT"
)

func (VideoStyle) MarshalJSON

func (v VideoStyle) MarshalJSON() ([]byte, error)

func (*VideoStyle) UnmarshalJSON

func (v *VideoStyle) UnmarshalJSON(data []byte) error

type VideoTask

type VideoTask struct {
	CreatedAt       runtime.Optional[Timestamp]   `json:"created_at"`
	DurationSeconds runtime.Optional[int64]       `json:"duration_seconds"`
	ErrorMessage    runtime.Optional[string]      `json:"error_message"`
	ProgressPercent runtime.Optional[int64]       `json:"progress_percent"`
	ProjectId       runtime.Optional[string]      `json:"project_id"`
	Script          runtime.Optional[string]      `json:"script"`
	Status          runtime.Optional[VideoStatus] `json:"status"`
	Style           runtime.Optional[VideoStyle]  `json:"style"`
	TaskId          runtime.Optional[string]      `json:"task_id"`
	ThumbnailUrl    runtime.Optional[string]      `json:"thumbnail_url"`
	Title           runtime.Optional[string]      `json:"title"`
	UpdatedAt       runtime.Optional[Timestamp]   `json:"updated_at"`
	VideoUrl        runtime.Optional[string]      `json:"video_url"`
}

func (VideoTask) MarshalJSON

func (v VideoTask) MarshalJSON() ([]byte, error)

func (*VideoTask) UnmarshalJSON

func (v *VideoTask) UnmarshalJSON(data []byte) error

type Webhook

type Webhook struct {
	AppId               runtime.Optional[string]        `json:"app_id"`
	CreatedAt           runtime.Optional[Timestamp]     `json:"created_at"`
	SigningSecretMasked runtime.Optional[string]        `json:"signing_secret_masked"`
	Status              runtime.Optional[WebhookStatus] `json:"status"`
	SubscribedEvents    runtime.Optional[[]string]      `json:"subscribed_events"`
	UpdatedAt           runtime.Optional[Timestamp]     `json:"updated_at"`
	Url                 runtime.Optional[string]        `json:"url"`
	WebhookId           runtime.Optional[string]        `json:"webhook_id"`
}

func (Webhook) MarshalJSON

func (v Webhook) MarshalJSON() ([]byte, error)

func (*Webhook) UnmarshalJSON

func (v *Webhook) UnmarshalJSON(data []byte) error

type WebhookDelivery

type WebhookDelivery struct {
	DeliveredAt    runtime.Optional[Timestamp]      `json:"delivered_at"`
	DeliveryId     runtime.Optional[string]         `json:"delivery_id"`
	DurationMs     runtime.Optional[int64]          `json:"duration_ms"`
	ErrorMessage   runtime.Optional[string]         `json:"error_message"`
	EventType      runtime.Optional[string]         `json:"event_type"`
	ResponseBody   runtime.Optional[string]         `json:"response_body"`
	ResponseStatus runtime.Optional[int64]          `json:"response_status"`
	Status         runtime.Optional[DeliveryStatus] `json:"status"`
	WebhookId      runtime.Optional[string]         `json:"webhook_id"`
}

func (WebhookDelivery) MarshalJSON

func (v WebhookDelivery) MarshalJSON() ([]byte, error)

func (*WebhookDelivery) UnmarshalJSON

func (v *WebhookDelivery) UnmarshalJSON(data []byte) error

type WebhookStatus

type WebhookStatus string
const (
	WebhookStatusWEBHOOKSTATUSUNSPECIFIED WebhookStatus = "WEBHOOK_STATUS_UNSPECIFIED"
	WebhookStatusWEBHOOKSTATUSACTIVE      WebhookStatus = "WEBHOOK_STATUS_ACTIVE"
	WebhookStatusWEBHOOKSTATUSDISABLED    WebhookStatus = "WEBHOOK_STATUS_DISABLED"
)

func (WebhookStatus) MarshalJSON

func (v WebhookStatus) MarshalJSON() ([]byte, error)

func (*WebhookStatus) UnmarshalJSON

func (v *WebhookStatus) UnmarshalJSON(data []byte) error

type WechatMpConfig

type WechatMpConfig struct {
	Author          runtime.Optional[string] `json:"author"`
	Digest          runtime.Optional[string] `json:"digest"`
	NeedOpenComment runtime.Optional[bool]   `json:"need_open_comment"`
	ShowCoverPic    runtime.Optional[bool]   `json:"show_cover_pic"`
}

func (WechatMpConfig) MarshalJSON

func (v WechatMpConfig) MarshalJSON() ([]byte, error)

func (*WechatMpConfig) UnmarshalJSON

func (v *WechatMpConfig) UnmarshalJSON(data []byte) error

type WechatMpCredentials

type WechatMpCredentials struct {
	AppId     runtime.Optional[string] `json:"app_id"`
	AppSecret runtime.Optional[string] `json:"app_secret"`
}

func (WechatMpCredentials) MarshalJSON

func (v WechatMpCredentials) MarshalJSON() ([]byte, error)

func (*WechatMpCredentials) UnmarshalJSON

func (v *WechatMpCredentials) UnmarshalJSON(data []byte) error

type YuqueConfig

type YuqueConfig struct {
	BookId       runtime.Optional[string] `json:"book_id"`
	PublicAccess runtime.Optional[bool]   `json:"public_access"`
	Slug         runtime.Optional[string] `json:"slug"`
}

func (YuqueConfig) MarshalJSON

func (v YuqueConfig) MarshalJSON() ([]byte, error)

func (*YuqueConfig) UnmarshalJSON

func (v *YuqueConfig) UnmarshalJSON(data []byte) error

type ZhihuConfig

type ZhihuConfig struct {
	ColumnId runtime.Optional[string]   `json:"column_id"`
	TopicIds runtime.Optional[[]string] `json:"topic_ids"`
}

func (ZhihuConfig) MarshalJSON

func (v ZhihuConfig) MarshalJSON() ([]byte, error)

func (*ZhihuConfig) UnmarshalJSON

func (v *ZhihuConfig) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
Package runtime implements the standard-library-only AppForges transport and codecs.
Package runtime implements the standard-library-only AppForges transport and codecs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL