Skip to content

SupportReportController

SupportReportController exposes sanitized support-report review and submission to the frontend.

  • Methods: 2
  • Referenced types: 2

Methods

Preview

Preview creates a sanitized support-report snapshot for user review before submission.

Go

go
Preview(description string, instanceID string) (supportreports.Preview, error)

TypeScript

ts
Preview(description: string, instanceID: string): Promise<supportreports.Preview>

Parameters

NameType
descriptionstring
instanceIDstring

Returns

Go typeTypeScript type
supportreports.Previewsupportreports.Preview

Example

ts
const preview = await Preview("", "instance-id")

Source

internal/transport/wails/support_report_controller.go:25

Submit

Submit uploads a previously reviewed support-report snapshot. Previews expire after 15 minutes; a failed submission keeps the snapshot so it can be retried, while a successful submission consumes it.

Go

go
Submit(snapshotID string) (supportreports.Result, error)

TypeScript

ts
Submit(snapshotID: string): Promise<supportreports.Result>

Parameters

NameType
snapshotIDstring

Returns

Go typeTypeScript type
supportreports.Resultsupportreports.Result

Errors

  • validation_error: the snapshot is missing or expired
  • support_report_too_large: the report exceeds the service limit
  • support_report_failed: the support service rejected the report
  • support_report_rate_limited: too many reports were submitted recently

Example

ts
const submit = await Submit("snapshot-id")

Source

internal/transport/wails/support_report_controller.go:38