Documentation
¶
Overview ¶
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.
Index ¶
- func ErrorSlugs() []string
- func Hint(slug string) (string, bool)
- func HintSlugs() []string
- func NewBuyMinutesRequest(server string, body BuyMinutesJSONRequestBody) (*http.Request, error)
- func NewBuyMinutesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewClaimAgentAccountRequest(server string, signupId string, body ClaimAgentAccountJSONRequestBody) (*http.Request, error)
- func NewClaimAgentAccountRequestWithBody(server string, signupId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCompleteUploadRequest(server string, job string, body CompleteUploadJSONRequestBody) (*http.Request, error)
- func NewCompleteUploadRequestWithBody(server string, job string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAgentAccountSignupRequest(server string, body CreateAgentAccountSignupJSONRequestBody) (*http.Request, error)
- func NewCreateAgentAccountSignupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSetupSessionRequest(server string, body CreateSetupSessionJSONRequestBody) (*http.Request, error)
- func NewCreateSetupSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUploadRequest(server string, body CreateUploadJSONRequestBody) (*http.Request, error)
- func NewCreateUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAccountRequest(server string) (*http.Request, error)
- func NewGetJobRequest(server string, id string) (*http.Request, error)
- func NewGetOrgRequest(server string) (*http.Request, error)
- func NewGetTranscriptRequest(server string, id string) (*http.Request, error)
- func NewGetTranscriptionContextRequest(server string) (*http.Request, error)
- func NewGetUploadPartUrlsRequest(server string, job string, params *GetUploadPartUrlsParams) (*http.Request, error)
- func NewHeartbeatUploadRequest(server string, job string) (*http.Request, error)
- func NewLiftTranscriptHoldRequest(server string, id string) (*http.Request, error)
- func NewListCreditLedgerRequest(server string, params *ListCreditLedgerParams) (*http.Request, error)
- func NewListDeletedTranscriptsRequest(server string, params *ListDeletedTranscriptsParams) (*http.Request, error)
- func NewListHoldsRequest(server string, params *ListHoldsParams) (*http.Request, error)
- func NewListJobsRequest(server string, params *ListJobsParams) (*http.Request, error)
- func NewListOrgAuditRequest(server string, params *ListOrgAuditParams) (*http.Request, error)
- func NewListOrgInvoicesRequest(server string, params *ListOrgInvoicesParams) (*http.Request, error)
- func NewListOrgLedgerRequest(server string, params *ListOrgLedgerParams) (*http.Request, error)
- func NewListOrgMattersRequest(server string, params *ListOrgMattersParams) (*http.Request, error)
- func NewListOrgMembersRequest(server string, params *ListOrgMembersParams) (*http.Request, error)
- func NewListOrgTranscriptsRequest(server string, params *ListOrgTranscriptsParams) (*http.Request, error)
- func NewListPacksRequest(server string) (*http.Request, error)
- func NewListSavedCardsRequest(server string) (*http.Request, error)
- func NewListTransactionsRequest(server string, params *ListTransactionsParams) (*http.Request, error)
- func NewListTranscriptsRequest(server string, params *ListTranscriptsParams) (*http.Request, error)
- func NewOrgAuditCsvRequest(server string) (*http.Request, error)
- func NewOrgLedgerCsvRequest(server string) (*http.Request, error)
- func NewOrgUsageReportCsvRequest(server string, params *OrgUsageReportCsvParams) (*http.Request, error)
- func NewOrgUsageReportRequest(server string, params *OrgUsageReportParams) (*http.Request, error)
- func NewPatchOrgMemberRequest(server string, userId string, body PatchOrgMemberJSONRequestBody) (*http.Request, error)
- func NewPatchOrgMemberRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPlaceTranscriptHoldRequest(server string, id string) (*http.Request, error)
- func NewRotateAgentCredentialsRequest(server string) (*http.Request, error)
- func NewScheduleOrgCustodyRequest(server string, body ScheduleOrgCustodyJSONRequestBody) (*http.Request, error)
- func NewScheduleOrgCustodyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetDefaultCardRequest(server string, body SetDefaultCardJSONRequestBody) (*http.Request, error)
- func NewSetDefaultCardRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadPartRequestWithBody(server string, job string, n int, contentType string, body io.Reader) (*http.Request, error)
- func RequiredScope(operation string) (string, bool)
- func ScopedOperations() []string
- type AccountResponse
- type ActiveHold
- type ActiveHoldKind
- type AgentClaimRequest
- type AgentClaimResponse
- type AgentCredentialsRotateResponse
- type AgentSignupRequest
- type AgentSignupRequestAgent
- type AgentSignupResponse
- type BuyMinutesJSONBody
- type BuyMinutesJSONRequestBody
- type BuyMinutesResponse
- func (r BuyMinutesResponse) ContentType() string
- func (r BuyMinutesResponse) GetBody() []byte
- func (r BuyMinutesResponse) GetJSON200() *PurchaseResponse
- func (r BuyMinutesResponse) GetJSON400() *Error
- func (r BuyMinutesResponse) GetJSON401() *Error
- func (r BuyMinutesResponse) GetJSON403() *Error
- func (r BuyMinutesResponse) GetJSON422() *Error
- func (r BuyMinutesResponse) GetJSON429() *RateLimited
- func (r BuyMinutesResponse) GetJSON500() *InternalError
- func (r BuyMinutesResponse) GetJSON502() *Error
- func (r BuyMinutesResponse) Status() string
- func (r BuyMinutesResponse) StatusCode() int
- type BuyMinutesResponse429Headers
- type Card
- type CardsResponse
- type ClaimAgentAccountJSONRequestBody
- type ClaimAgentAccountResponse
- func (r ClaimAgentAccountResponse) ContentType() string
- func (r ClaimAgentAccountResponse) GetBody() []byte
- func (r ClaimAgentAccountResponse) GetJSON201() *AgentClaimResponse
- func (r ClaimAgentAccountResponse) GetJSON400() *Error
- func (r ClaimAgentAccountResponse) GetJSON401() *Error
- func (r ClaimAgentAccountResponse) GetJSON409() *Error
- func (r ClaimAgentAccountResponse) GetJSON429() *RateLimited
- func (r ClaimAgentAccountResponse) GetJSON500() *InternalError
- func (r ClaimAgentAccountResponse) Status() string
- func (r ClaimAgentAccountResponse) StatusCode() int
- type ClaimAgentAccountResponse429Headers
- type Client
- func (c *Client) BuyMinutes(ctx context.Context, body BuyMinutesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BuyMinutesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ClaimAgentAccount(ctx context.Context, signupId string, body ClaimAgentAccountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ClaimAgentAccountWithBody(ctx context.Context, signupId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CompleteUpload(ctx context.Context, job string, body CompleteUploadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CompleteUploadWithBody(ctx context.Context, job string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAgentAccountSignup(ctx context.Context, body CreateAgentAccountSignupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAgentAccountSignupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSetupSession(ctx context.Context, body CreateSetupSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSetupSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateUpload(ctx context.Context, body CreateUploadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateUploadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJob(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOrg(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTranscript(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTranscriptionContext(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUploadPartUrls(ctx context.Context, job string, params *GetUploadPartUrlsParams, ...) (*http.Response, error)
- func (c *Client) HeartbeatUpload(ctx context.Context, job string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LiftTranscriptHold(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListCreditLedger(ctx context.Context, params *ListCreditLedgerParams, ...) (*http.Response, error)
- func (c *Client) ListDeletedTranscripts(ctx context.Context, params *ListDeletedTranscriptsParams, ...) (*http.Response, error)
- func (c *Client) ListHolds(ctx context.Context, params *ListHoldsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListJobs(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListOrgAudit(ctx context.Context, params *ListOrgAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListOrgInvoices(ctx context.Context, params *ListOrgInvoicesParams, ...) (*http.Response, error)
- func (c *Client) ListOrgLedger(ctx context.Context, params *ListOrgLedgerParams, ...) (*http.Response, error)
- func (c *Client) ListOrgMatters(ctx context.Context, params *ListOrgMattersParams, ...) (*http.Response, error)
- func (c *Client) ListOrgMembers(ctx context.Context, params *ListOrgMembersParams, ...) (*http.Response, error)
- func (c *Client) ListOrgTranscripts(ctx context.Context, params *ListOrgTranscriptsParams, ...) (*http.Response, error)
- func (c *Client) ListPacks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSavedCards(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTransactions(ctx context.Context, params *ListTransactionsParams, ...) (*http.Response, error)
- func (c *Client) ListTranscripts(ctx context.Context, params *ListTranscriptsParams, ...) (*http.Response, error)
- func (c *Client) OrgAuditCsv(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OrgLedgerCsv(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OrgUsageReport(ctx context.Context, params *OrgUsageReportParams, ...) (*http.Response, error)
- func (c *Client) OrgUsageReportCsv(ctx context.Context, params *OrgUsageReportCsvParams, ...) (*http.Response, error)
- func (c *Client) PatchOrgMember(ctx context.Context, userId string, body PatchOrgMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchOrgMemberWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PlaceTranscriptHold(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RotateAgentCredentials(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScheduleOrgCustody(ctx context.Context, body ScheduleOrgCustodyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ScheduleOrgCustodyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetDefaultCard(ctx context.Context, body SetDefaultCardJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetDefaultCardWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadPartWithBody(ctx context.Context, job string, n int, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) BuyMinutesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BuyMinutesResponse, error)
- func (c *ClientWithResponses) BuyMinutesWithResponse(ctx context.Context, body BuyMinutesJSONRequestBody, ...) (*BuyMinutesResponse, error)
- func (c *ClientWithResponses) ClaimAgentAccountWithBodyWithResponse(ctx context.Context, signupId string, contentType string, body io.Reader, ...) (*ClaimAgentAccountResponse, error)
- func (c *ClientWithResponses) ClaimAgentAccountWithResponse(ctx context.Context, signupId string, body ClaimAgentAccountJSONRequestBody, ...) (*ClaimAgentAccountResponse, error)
- func (c *ClientWithResponses) CompleteUploadWithBodyWithResponse(ctx context.Context, job string, contentType string, body io.Reader, ...) (*CompleteUploadResponse, error)
- func (c *ClientWithResponses) CompleteUploadWithResponse(ctx context.Context, job string, body CompleteUploadJSONRequestBody, ...) (*CompleteUploadResponse, error)
- func (c *ClientWithResponses) CreateAgentAccountSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAgentAccountSignupResponse, error)
- func (c *ClientWithResponses) CreateAgentAccountSignupWithResponse(ctx context.Context, body CreateAgentAccountSignupJSONRequestBody, ...) (*CreateAgentAccountSignupResponse, error)
- func (c *ClientWithResponses) CreateSetupSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSetupSessionResponse, error)
- func (c *ClientWithResponses) CreateSetupSessionWithResponse(ctx context.Context, body CreateSetupSessionJSONRequestBody, ...) (*CreateSetupSessionResponse, error)
- func (c *ClientWithResponses) CreateUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateUploadResponse, error)
- func (c *ClientWithResponses) CreateUploadWithResponse(ctx context.Context, body CreateUploadJSONRequestBody, ...) (*CreateUploadResponse, error)
- func (c *ClientWithResponses) GetAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountResponse, error)
- func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
- func (c *ClientWithResponses) GetOrgWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgResponse, error)
- func (c *ClientWithResponses) GetTranscriptWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTranscriptResponse, error)
- func (c *ClientWithResponses) GetTranscriptionContextWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTranscriptionContextResponse, error)
- func (c *ClientWithResponses) GetUploadPartUrlsWithResponse(ctx context.Context, job string, params *GetUploadPartUrlsParams, ...) (*GetUploadPartUrlsResponse, error)
- func (c *ClientWithResponses) HeartbeatUploadWithResponse(ctx context.Context, job string, reqEditors ...RequestEditorFn) (*HeartbeatUploadResponse, error)
- func (c *ClientWithResponses) LiftTranscriptHoldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*LiftTranscriptHoldResponse, error)
- func (c *ClientWithResponses) ListCreditLedgerWithResponse(ctx context.Context, params *ListCreditLedgerParams, ...) (*ListCreditLedgerResponse, error)
- func (c *ClientWithResponses) ListDeletedTranscriptsWithResponse(ctx context.Context, params *ListDeletedTranscriptsParams, ...) (*ListDeletedTranscriptsResponse, error)
- func (c *ClientWithResponses) ListHoldsWithResponse(ctx context.Context, params *ListHoldsParams, reqEditors ...RequestEditorFn) (*ListHoldsResponse, error)
- func (c *ClientWithResponses) ListJobsWithResponse(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*ListJobsResponse, error)
- func (c *ClientWithResponses) ListOrgAuditWithResponse(ctx context.Context, params *ListOrgAuditParams, reqEditors ...RequestEditorFn) (*ListOrgAuditResponse, error)
- func (c *ClientWithResponses) ListOrgInvoicesWithResponse(ctx context.Context, params *ListOrgInvoicesParams, ...) (*ListOrgInvoicesResponse, error)
- func (c *ClientWithResponses) ListOrgLedgerWithResponse(ctx context.Context, params *ListOrgLedgerParams, ...) (*ListOrgLedgerResponse, error)
- func (c *ClientWithResponses) ListOrgMattersWithResponse(ctx context.Context, params *ListOrgMattersParams, ...) (*ListOrgMattersResponse, error)
- func (c *ClientWithResponses) ListOrgMembersWithResponse(ctx context.Context, params *ListOrgMembersParams, ...) (*ListOrgMembersResponse, error)
- func (c *ClientWithResponses) ListOrgTranscriptsWithResponse(ctx context.Context, params *ListOrgTranscriptsParams, ...) (*ListOrgTranscriptsResponse, error)
- func (c *ClientWithResponses) ListPacksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPacksResponse, error)
- func (c *ClientWithResponses) ListSavedCardsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSavedCardsResponse, error)
- func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, params *ListTransactionsParams, ...) (*ListTransactionsResponse, error)
- func (c *ClientWithResponses) ListTranscriptsWithResponse(ctx context.Context, params *ListTranscriptsParams, ...) (*ListTranscriptsResponse, error)
- func (c *ClientWithResponses) OrgAuditCsvWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrgAuditCsvResponse, error)
- func (c *ClientWithResponses) OrgLedgerCsvWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrgLedgerCsvResponse, error)
- func (c *ClientWithResponses) OrgUsageReportCsvWithResponse(ctx context.Context, params *OrgUsageReportCsvParams, ...) (*OrgUsageReportCsvResponse, error)
- func (c *ClientWithResponses) OrgUsageReportWithResponse(ctx context.Context, params *OrgUsageReportParams, ...) (*OrgUsageReportResponse, error)
- func (c *ClientWithResponses) PatchOrgMemberWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*PatchOrgMemberResponse, error)
- func (c *ClientWithResponses) PatchOrgMemberWithResponse(ctx context.Context, userId string, body PatchOrgMemberJSONRequestBody, ...) (*PatchOrgMemberResponse, error)
- func (c *ClientWithResponses) PlaceTranscriptHoldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlaceTranscriptHoldResponse, error)
- func (c *ClientWithResponses) RotateAgentCredentialsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RotateAgentCredentialsResponse, error)
- func (c *ClientWithResponses) ScheduleOrgCustodyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ScheduleOrgCustodyResponse, error)
- func (c *ClientWithResponses) ScheduleOrgCustodyWithResponse(ctx context.Context, body ScheduleOrgCustodyJSONRequestBody, ...) (*ScheduleOrgCustodyResponse, error)
- func (c *ClientWithResponses) SetDefaultCardWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetDefaultCardResponse, error)
- func (c *ClientWithResponses) SetDefaultCardWithResponse(ctx context.Context, body SetDefaultCardJSONRequestBody, ...) (*SetDefaultCardResponse, error)
- func (c *ClientWithResponses) UploadPartWithBodyWithResponse(ctx context.Context, job string, n int, contentType string, body io.Reader, ...) (*UploadPartResponse, error)
- type ClientWithResponsesInterface
- type CompleteUploadJSONBody
- type CompleteUploadJSONRequestBody
- type CompleteUploadRequestPart
- type CompleteUploadResponse
- func (r CompleteUploadResponse) ContentType() string
- func (r CompleteUploadResponse) GetBody() []byte
- func (r CompleteUploadResponse) GetJSON200() *UploadCompleteResponse
- func (r CompleteUploadResponse) GetJSON400() *Error
- func (r CompleteUploadResponse) GetJSON401() *Error
- func (r CompleteUploadResponse) GetJSON403() *Error
- func (r CompleteUploadResponse) GetJSON404() *Error
- func (r CompleteUploadResponse) GetJSON409() *Error
- func (r CompleteUploadResponse) GetJSON422() *Error
- func (r CompleteUploadResponse) GetJSON429() *RateLimited
- func (r CompleteUploadResponse) GetJSON500() *InternalError
- func (r CompleteUploadResponse) Status() string
- func (r CompleteUploadResponse) StatusCode() int
- type CompleteUploadResponse429Headers
- type ContextDictionary
- type ContextPromptPreset
- type CreateAgentAccountSignupJSONRequestBody
- type CreateAgentAccountSignupResponse
- func (r CreateAgentAccountSignupResponse) ContentType() string
- func (r CreateAgentAccountSignupResponse) GetBody() []byte
- func (r CreateAgentAccountSignupResponse) GetJSON200() *AgentSignupResponse
- func (r CreateAgentAccountSignupResponse) GetJSON201() *AgentSignupResponse
- func (r CreateAgentAccountSignupResponse) GetJSON400() *Error
- func (r CreateAgentAccountSignupResponse) GetJSON403() *Error
- func (r CreateAgentAccountSignupResponse) GetJSON409() *Error
- func (r CreateAgentAccountSignupResponse) GetJSON422() *Error
- func (r CreateAgentAccountSignupResponse) GetJSON429() *RateLimited
- func (r CreateAgentAccountSignupResponse) GetJSON500() *InternalError
- func (r CreateAgentAccountSignupResponse) GetJSON502() *Error
- func (r CreateAgentAccountSignupResponse) Status() string
- func (r CreateAgentAccountSignupResponse) StatusCode() int
- type CreateAgentAccountSignupResponse429Headers
- type CreateSetupSessionJSONBody
- type CreateSetupSessionJSONRequestBody
- type CreateSetupSessionResponse
- func (r CreateSetupSessionResponse) ContentType() string
- func (r CreateSetupSessionResponse) GetBody() []byte
- func (r CreateSetupSessionResponse) GetJSON200() *SetupSessionResponse
- func (r CreateSetupSessionResponse) GetJSON400() *Error
- func (r CreateSetupSessionResponse) GetJSON401() *Error
- func (r CreateSetupSessionResponse) GetJSON403() *Error
- func (r CreateSetupSessionResponse) GetJSON429() *RateLimited
- func (r CreateSetupSessionResponse) GetJSON500() *InternalError
- func (r CreateSetupSessionResponse) GetJSON502() *Error
- func (r CreateSetupSessionResponse) Status() string
- func (r CreateSetupSessionResponse) StatusCode() int
- type CreateSetupSessionResponse429Headers
- type CreateUploadJSONBody
- type CreateUploadJSONBodyOriginSource
- type CreateUploadJSONRequestBody
- type CreateUploadRequestTranscriptionOptions
- type CreateUploadResponse
- func (r CreateUploadResponse) ContentType() string
- func (r CreateUploadResponse) GetBody() []byte
- func (r CreateUploadResponse) GetJSON200() *UploadCreateResponse
- func (r CreateUploadResponse) GetJSON400() *Error
- func (r CreateUploadResponse) GetJSON401() *Error
- func (r CreateUploadResponse) GetJSON402() *Error
- func (r CreateUploadResponse) GetJSON403() *Error
- func (r CreateUploadResponse) GetJSON409() *Error
- func (r CreateUploadResponse) GetJSON422() *Error
- func (r CreateUploadResponse) GetJSON429() *RateLimited
- func (r CreateUploadResponse) GetJSON500() *InternalError
- func (r CreateUploadResponse) Status() string
- func (r CreateUploadResponse) StatusCode() int
- type CreateUploadResponse429Headers
- type CreditLedgerEntry
- type CreditLedgerResponse
- type DeletedTranscript
- type DeletedTranscriptCause
- type DeletedTranscriptReceipt
- type DeletedTranscriptReceiptItem
- type DeletedTranscriptsResponse
- type DictionaryEntry
- type DictionaryEntryCategory
- type Error
- type ErrorCatalogEntry
- type ErrorDetails
- type GetAccountResponse
- func (r GetAccountResponse) ContentType() string
- func (r GetAccountResponse) GetBody() []byte
- func (r GetAccountResponse) GetJSON200() *AccountResponse
- func (r GetAccountResponse) GetJSON401() *Error
- func (r GetAccountResponse) GetJSON403() *Error
- func (r GetAccountResponse) GetJSON429() *RateLimited
- func (r GetAccountResponse) GetJSON500() *InternalError
- func (r GetAccountResponse) Status() string
- func (r GetAccountResponse) StatusCode() int
- type GetAccountResponse429Headers
- type GetJobResponse
- func (r GetJobResponse) ContentType() string
- func (r GetJobResponse) GetBody() []byte
- func (r GetJobResponse) GetJSON200() *Job
- func (r GetJobResponse) GetJSON400() *Error
- func (r GetJobResponse) GetJSON401() *Error
- func (r GetJobResponse) GetJSON403() *Error
- func (r GetJobResponse) GetJSON404() *Error
- func (r GetJobResponse) GetJSON429() *RateLimited
- func (r GetJobResponse) GetJSON500() *InternalError
- func (r GetJobResponse) Status() string
- func (r GetJobResponse) StatusCode() int
- type GetJobResponse429Headers
- type GetOrgResponse
- func (r GetOrgResponse) ContentType() string
- func (r GetOrgResponse) GetBody() []byte
- func (r GetOrgResponse) GetJSON200() *OrgSummaryResponse
- func (r GetOrgResponse) GetJSON401() *Error
- func (r GetOrgResponse) GetJSON403() *Error
- func (r GetOrgResponse) GetJSON429() *RateLimited
- func (r GetOrgResponse) GetJSON500() *InternalError
- func (r GetOrgResponse) Status() string
- func (r GetOrgResponse) StatusCode() int
- type GetOrgResponse429Headers
- type GetTranscriptResponse
- func (r GetTranscriptResponse) ContentType() string
- func (r GetTranscriptResponse) GetBody() []byte
- func (r GetTranscriptResponse) GetJSON200() *TranscriptDetail
- func (r GetTranscriptResponse) GetJSON400() *Error
- func (r GetTranscriptResponse) GetJSON401() *Error
- func (r GetTranscriptResponse) GetJSON403() *Error
- func (r GetTranscriptResponse) GetJSON404() *Error
- func (r GetTranscriptResponse) GetJSON429() *RateLimited
- func (r GetTranscriptResponse) GetJSON500() *InternalError
- func (r GetTranscriptResponse) Status() string
- func (r GetTranscriptResponse) StatusCode() int
- type GetTranscriptResponse429Headers
- type GetTranscriptionContextResponse
- func (r GetTranscriptionContextResponse) ContentType() string
- func (r GetTranscriptionContextResponse) GetBody() []byte
- func (r GetTranscriptionContextResponse) GetJSON200() *TranscriptionContextResponse
- func (r GetTranscriptionContextResponse) GetJSON401() *Error
- func (r GetTranscriptionContextResponse) GetJSON403() *Error
- func (r GetTranscriptionContextResponse) GetJSON429() *RateLimited
- func (r GetTranscriptionContextResponse) GetJSON500() *InternalError
- func (r GetTranscriptionContextResponse) Status() string
- func (r GetTranscriptionContextResponse) StatusCode() int
- type GetTranscriptionContextResponse429Headers
- type GetUploadPartUrlsParams
- type GetUploadPartUrlsResponse
- func (r GetUploadPartUrlsResponse) ContentType() string
- func (r GetUploadPartUrlsResponse) GetBody() []byte
- func (r GetUploadPartUrlsResponse) GetJSON200() *GetUploadPartUrlsResult
- func (r GetUploadPartUrlsResponse) GetJSON400() *Error
- func (r GetUploadPartUrlsResponse) GetJSON401() *Error
- func (r GetUploadPartUrlsResponse) GetJSON403() *Error
- func (r GetUploadPartUrlsResponse) GetJSON404() *Error
- func (r GetUploadPartUrlsResponse) GetJSON409() *Error
- func (r GetUploadPartUrlsResponse) GetJSON429() *RateLimited
- func (r GetUploadPartUrlsResponse) GetJSON500() *InternalError
- func (r GetUploadPartUrlsResponse) Status() string
- func (r GetUploadPartUrlsResponse) StatusCode() int
- type GetUploadPartUrlsResponse429Headers
- type GetUploadPartUrlsResult
- type HeartbeatUploadResponse
- func (r HeartbeatUploadResponse) ContentType() string
- func (r HeartbeatUploadResponse) GetBody() []byte
- func (r HeartbeatUploadResponse) GetJSON200() *HeartbeatUploadResult
- func (r HeartbeatUploadResponse) GetJSON401() *Error
- func (r HeartbeatUploadResponse) GetJSON403() *Error
- func (r HeartbeatUploadResponse) GetJSON409() *Error
- func (r HeartbeatUploadResponse) GetJSON429() *RateLimited
- func (r HeartbeatUploadResponse) GetJSON500() *InternalError
- func (r HeartbeatUploadResponse) Status() string
- func (r HeartbeatUploadResponse) StatusCode() int
- type HeartbeatUploadResponse429Headers
- type HeartbeatUploadResult
- type HoldsResponse
- type HttpRequestDoer
- type InternalError
- type Job
- type JobFailureKind
- type JobList
- type JobOriginApp
- type JobOriginSource
- type LiftTranscriptHoldResponse
- func (r LiftTranscriptHoldResponse) ContentType() string
- func (r LiftTranscriptHoldResponse) GetBody() []byte
- func (r LiftTranscriptHoldResponse) GetJSON200() *LiftTranscriptHoldResult
- func (r LiftTranscriptHoldResponse) GetJSON400() *Error
- func (r LiftTranscriptHoldResponse) GetJSON401() *Error
- func (r LiftTranscriptHoldResponse) GetJSON403() *Error
- func (r LiftTranscriptHoldResponse) GetJSON404() *Error
- func (r LiftTranscriptHoldResponse) GetJSON429() *RateLimited
- func (r LiftTranscriptHoldResponse) GetJSON500() *InternalError
- func (r LiftTranscriptHoldResponse) Status() string
- func (r LiftTranscriptHoldResponse) StatusCode() int
- type LiftTranscriptHoldResponse429Headers
- type LiftTranscriptHoldResult
- type ListCreditLedgerParams
- type ListCreditLedgerResponse
- func (r ListCreditLedgerResponse) ContentType() string
- func (r ListCreditLedgerResponse) GetBody() []byte
- func (r ListCreditLedgerResponse) GetJSON200() *CreditLedgerResponse
- func (r ListCreditLedgerResponse) GetJSON400() *Error
- func (r ListCreditLedgerResponse) GetJSON401() *Error
- func (r ListCreditLedgerResponse) GetJSON403() *Error
- func (r ListCreditLedgerResponse) GetJSON429() *RateLimited
- func (r ListCreditLedgerResponse) GetJSON500() *InternalError
- func (r ListCreditLedgerResponse) Status() string
- func (r ListCreditLedgerResponse) StatusCode() int
- type ListCreditLedgerResponse429Headers
- type ListDeletedTranscriptsParams
- type ListDeletedTranscriptsResponse
- func (r ListDeletedTranscriptsResponse) ContentType() string
- func (r ListDeletedTranscriptsResponse) GetBody() []byte
- func (r ListDeletedTranscriptsResponse) GetJSON200() *DeletedTranscriptsResponse
- func (r ListDeletedTranscriptsResponse) GetJSON400() *Error
- func (r ListDeletedTranscriptsResponse) GetJSON401() *Error
- func (r ListDeletedTranscriptsResponse) GetJSON403() *Error
- func (r ListDeletedTranscriptsResponse) GetJSON429() *RateLimited
- func (r ListDeletedTranscriptsResponse) GetJSON500() *InternalError
- func (r ListDeletedTranscriptsResponse) Status() string
- func (r ListDeletedTranscriptsResponse) StatusCode() int
- type ListDeletedTranscriptsResponse429Headers
- type ListHoldsParams
- type ListHoldsResponse
- func (r ListHoldsResponse) ContentType() string
- func (r ListHoldsResponse) GetBody() []byte
- func (r ListHoldsResponse) GetJSON200() *HoldsResponse
- func (r ListHoldsResponse) GetJSON400() *Error
- func (r ListHoldsResponse) GetJSON401() *Error
- func (r ListHoldsResponse) GetJSON403() *Error
- func (r ListHoldsResponse) GetJSON429() *RateLimited
- func (r ListHoldsResponse) GetJSON500() *InternalError
- func (r ListHoldsResponse) Status() string
- func (r ListHoldsResponse) StatusCode() int
- type ListHoldsResponse429Headers
- type ListJobsParams
- type ListJobsParamsActive
- type ListJobsResponse
- func (r ListJobsResponse) ContentType() string
- func (r ListJobsResponse) GetBody() []byte
- func (r ListJobsResponse) GetJSON200() *JobList
- func (r ListJobsResponse) GetJSON400() *Error
- func (r ListJobsResponse) GetJSON401() *Error
- func (r ListJobsResponse) GetJSON403() *Error
- func (r ListJobsResponse) GetJSON429() *RateLimited
- func (r ListJobsResponse) GetJSON500() *InternalError
- func (r ListJobsResponse) Status() string
- func (r ListJobsResponse) StatusCode() int
- type ListJobsResponse429Headers
- type ListOrgAuditParams
- type ListOrgAuditResponse
- func (r ListOrgAuditResponse) ContentType() string
- func (r ListOrgAuditResponse) GetBody() []byte
- func (r ListOrgAuditResponse) GetJSON200() *OrgAuditResponse
- func (r ListOrgAuditResponse) GetJSON400() *Error
- func (r ListOrgAuditResponse) GetJSON401() *Error
- func (r ListOrgAuditResponse) GetJSON403() *Error
- func (r ListOrgAuditResponse) GetJSON429() *RateLimited
- func (r ListOrgAuditResponse) GetJSON500() *InternalError
- func (r ListOrgAuditResponse) Status() string
- func (r ListOrgAuditResponse) StatusCode() int
- type ListOrgAuditResponse429Headers
- type ListOrgInvoicesParams
- type ListOrgInvoicesResponse
- func (r ListOrgInvoicesResponse) ContentType() string
- func (r ListOrgInvoicesResponse) GetBody() []byte
- func (r ListOrgInvoicesResponse) GetJSON200() *OrgInvoicesResponse
- func (r ListOrgInvoicesResponse) GetJSON400() *Error
- func (r ListOrgInvoicesResponse) GetJSON401() *Error
- func (r ListOrgInvoicesResponse) GetJSON403() *Error
- func (r ListOrgInvoicesResponse) GetJSON429() *RateLimited
- func (r ListOrgInvoicesResponse) GetJSON500() *InternalError
- func (r ListOrgInvoicesResponse) Status() string
- func (r ListOrgInvoicesResponse) StatusCode() int
- type ListOrgInvoicesResponse429Headers
- type ListOrgLedgerParams
- type ListOrgLedgerResponse
- func (r ListOrgLedgerResponse) ContentType() string
- func (r ListOrgLedgerResponse) GetBody() []byte
- func (r ListOrgLedgerResponse) GetJSON200() *OrgLedgerResponse
- func (r ListOrgLedgerResponse) GetJSON400() *Error
- func (r ListOrgLedgerResponse) GetJSON401() *Error
- func (r ListOrgLedgerResponse) GetJSON403() *Error
- func (r ListOrgLedgerResponse) GetJSON429() *RateLimited
- func (r ListOrgLedgerResponse) GetJSON500() *InternalError
- func (r ListOrgLedgerResponse) Status() string
- func (r ListOrgLedgerResponse) StatusCode() int
- type ListOrgLedgerResponse429Headers
- type ListOrgMattersParams
- type ListOrgMattersParamsStatus
- type ListOrgMattersResponse
- func (r ListOrgMattersResponse) ContentType() string
- func (r ListOrgMattersResponse) GetBody() []byte
- func (r ListOrgMattersResponse) GetJSON200() *OrgMattersResponse
- func (r ListOrgMattersResponse) GetJSON400() *Error
- func (r ListOrgMattersResponse) GetJSON401() *Error
- func (r ListOrgMattersResponse) GetJSON403() *Error
- func (r ListOrgMattersResponse) GetJSON429() *RateLimited
- func (r ListOrgMattersResponse) GetJSON500() *InternalError
- func (r ListOrgMattersResponse) Status() string
- func (r ListOrgMattersResponse) StatusCode() int
- type ListOrgMattersResponse429Headers
- type ListOrgMembersParams
- type ListOrgMembersResponse
- func (r ListOrgMembersResponse) ContentType() string
- func (r ListOrgMembersResponse) GetBody() []byte
- func (r ListOrgMembersResponse) GetJSON200() *OrgMembersResponse
- func (r ListOrgMembersResponse) GetJSON400() *Error
- func (r ListOrgMembersResponse) GetJSON401() *Error
- func (r ListOrgMembersResponse) GetJSON403() *Error
- func (r ListOrgMembersResponse) GetJSON429() *RateLimited
- func (r ListOrgMembersResponse) GetJSON500() *InternalError
- func (r ListOrgMembersResponse) Status() string
- func (r ListOrgMembersResponse) StatusCode() int
- type ListOrgMembersResponse429Headers
- type ListOrgTranscriptsParams
- type ListOrgTranscriptsResponse
- func (r ListOrgTranscriptsResponse) ContentType() string
- func (r ListOrgTranscriptsResponse) GetBody() []byte
- func (r ListOrgTranscriptsResponse) GetJSON200() *OrgTranscriptsResponse
- func (r ListOrgTranscriptsResponse) GetJSON400() *Error
- func (r ListOrgTranscriptsResponse) GetJSON401() *Error
- func (r ListOrgTranscriptsResponse) GetJSON403() *Error
- func (r ListOrgTranscriptsResponse) GetJSON429() *RateLimited
- func (r ListOrgTranscriptsResponse) GetJSON500() *InternalError
- func (r ListOrgTranscriptsResponse) Status() string
- func (r ListOrgTranscriptsResponse) StatusCode() int
- type ListOrgTranscriptsResponse429Headers
- type ListPacksResponse
- func (r ListPacksResponse) ContentType() string
- func (r ListPacksResponse) GetBody() []byte
- func (r ListPacksResponse) GetJSON200() *PacksResponse
- func (r ListPacksResponse) GetJSON401() *Error
- func (r ListPacksResponse) GetJSON403() *Error
- func (r ListPacksResponse) GetJSON429() *RateLimited
- func (r ListPacksResponse) GetJSON500() *InternalError
- func (r ListPacksResponse) Status() string
- func (r ListPacksResponse) StatusCode() int
- type ListPacksResponse429Headers
- type ListSavedCardsResponse
- func (r ListSavedCardsResponse) ContentType() string
- func (r ListSavedCardsResponse) GetBody() []byte
- func (r ListSavedCardsResponse) GetJSON200() *CardsResponse
- func (r ListSavedCardsResponse) GetJSON401() *Error
- func (r ListSavedCardsResponse) GetJSON403() *Error
- func (r ListSavedCardsResponse) GetJSON429() *RateLimited
- func (r ListSavedCardsResponse) GetJSON500() *InternalError
- func (r ListSavedCardsResponse) Status() string
- func (r ListSavedCardsResponse) StatusCode() int
- type ListSavedCardsResponse429Headers
- type ListTransactionsParams
- type ListTransactionsResponse
- func (r ListTransactionsResponse) ContentType() string
- func (r ListTransactionsResponse) GetBody() []byte
- func (r ListTransactionsResponse) GetJSON200() *TransactionsResponse
- func (r ListTransactionsResponse) GetJSON400() *Error
- func (r ListTransactionsResponse) GetJSON401() *Error
- func (r ListTransactionsResponse) GetJSON403() *Error
- func (r ListTransactionsResponse) GetJSON429() *RateLimited
- func (r ListTransactionsResponse) GetJSON500() *InternalError
- func (r ListTransactionsResponse) Status() string
- func (r ListTransactionsResponse) StatusCode() int
- type ListTransactionsResponse429Headers
- type ListTranscriptsParams
- type ListTranscriptsResponse
- func (r ListTranscriptsResponse) ContentType() string
- func (r ListTranscriptsResponse) GetBody() []byte
- func (r ListTranscriptsResponse) GetJSON200() *TranscriptList
- func (r ListTranscriptsResponse) GetJSON400() *Error
- func (r ListTranscriptsResponse) GetJSON401() *Error
- func (r ListTranscriptsResponse) GetJSON403() *Error
- func (r ListTranscriptsResponse) GetJSON429() *RateLimited
- func (r ListTranscriptsResponse) GetJSON500() *InternalError
- func (r ListTranscriptsResponse) Status() string
- func (r ListTranscriptsResponse) StatusCode() int
- type ListTranscriptsResponse429Headers
- type OptionsSummary
- type OrgAuditCsvResponse
- func (r OrgAuditCsvResponse) ContentType() string
- func (r OrgAuditCsvResponse) GetBody() []byte
- func (r OrgAuditCsvResponse) GetJSON401() *Error
- func (r OrgAuditCsvResponse) GetJSON403() *Error
- func (r OrgAuditCsvResponse) GetJSON429() *RateLimited
- func (r OrgAuditCsvResponse) GetJSON500() *InternalError
- func (r OrgAuditCsvResponse) Status() string
- func (r OrgAuditCsvResponse) StatusCode() int
- type OrgAuditCsvResponse429Headers
- type OrgAuditEntry
- type OrgAuditResponse
- type OrgInvoice
- type OrgInvoicesResponse
- type OrgLedgerCsvResponse
- func (r OrgLedgerCsvResponse) ContentType() string
- func (r OrgLedgerCsvResponse) GetBody() []byte
- func (r OrgLedgerCsvResponse) GetJSON401() *Error
- func (r OrgLedgerCsvResponse) GetJSON403() *Error
- func (r OrgLedgerCsvResponse) GetJSON429() *RateLimited
- func (r OrgLedgerCsvResponse) GetJSON500() *InternalError
- func (r OrgLedgerCsvResponse) Status() string
- func (r OrgLedgerCsvResponse) StatusCode() int
- type OrgLedgerCsvResponse429Headers
- type OrgLedgerEntry
- type OrgLedgerResponse
- type OrgMatter
- type OrgMatterStatus
- type OrgMattersResponse
- type OrgMember
- type OrgMembersResponse
- type OrgSummaryResponse
- type OrgTranscript
- type OrgTranscriptsResponse
- type OrgUsageReportCsvParams
- type OrgUsageReportCsvParamsGroupBy
- type OrgUsageReportCsvResponse
- func (r OrgUsageReportCsvResponse) ContentType() string
- func (r OrgUsageReportCsvResponse) GetBody() []byte
- func (r OrgUsageReportCsvResponse) GetJSON401() *Error
- func (r OrgUsageReportCsvResponse) GetJSON403() *Error
- func (r OrgUsageReportCsvResponse) GetJSON422() *Error
- func (r OrgUsageReportCsvResponse) GetJSON429() *RateLimited
- func (r OrgUsageReportCsvResponse) GetJSON500() *InternalError
- func (r OrgUsageReportCsvResponse) Status() string
- func (r OrgUsageReportCsvResponse) StatusCode() int
- type OrgUsageReportCsvResponse429Headers
- type OrgUsageReportParams
- type OrgUsageReportParamsGroupBy
- type OrgUsageReportResponse
- func (r OrgUsageReportResponse) ContentType() string
- func (r OrgUsageReportResponse) GetBody() []byte
- func (r OrgUsageReportResponse) GetJSON200() *OrgUsageResponse
- func (r OrgUsageReportResponse) GetJSON401() *Error
- func (r OrgUsageReportResponse) GetJSON403() *Error
- func (r OrgUsageReportResponse) GetJSON422() *Error
- func (r OrgUsageReportResponse) GetJSON429() *RateLimited
- func (r OrgUsageReportResponse) GetJSON500() *InternalError
- func (r OrgUsageReportResponse) Status() string
- func (r OrgUsageReportResponse) StatusCode() int
- type OrgUsageReportResponse429Headers
- type OrgUsageResponse
- type OrgUsageResponseGroupBy
- type OrgUsageRow
- type Pack
- type PacksResponse
- type PatchOrgMemberJSONBody
- type PatchOrgMemberJSONRequestBody
- type PatchOrgMemberResponse
- func (r PatchOrgMemberResponse) ContentType() string
- func (r PatchOrgMemberResponse) GetBody() []byte
- func (r PatchOrgMemberResponse) GetJSON200() *PatchOrgMemberResult
- func (r PatchOrgMemberResponse) GetJSON400() *Error
- func (r PatchOrgMemberResponse) GetJSON401() *Error
- func (r PatchOrgMemberResponse) GetJSON403() *Error
- func (r PatchOrgMemberResponse) GetJSON404() *Error
- func (r PatchOrgMemberResponse) GetJSON409() *Error
- func (r PatchOrgMemberResponse) GetJSON422() *Error
- func (r PatchOrgMemberResponse) GetJSON429() *RateLimited
- func (r PatchOrgMemberResponse) GetJSON500() *InternalError
- func (r PatchOrgMemberResponse) Status() string
- func (r PatchOrgMemberResponse) StatusCode() int
- type PatchOrgMemberResponse429Headers
- type PatchOrgMemberResult
- type PlaceTranscriptHoldResponse
- func (r PlaceTranscriptHoldResponse) ContentType() string
- func (r PlaceTranscriptHoldResponse) GetBody() []byte
- func (r PlaceTranscriptHoldResponse) GetJSON200() *PlaceTranscriptHoldResult
- func (r PlaceTranscriptHoldResponse) GetJSON400() *Error
- func (r PlaceTranscriptHoldResponse) GetJSON401() *Error
- func (r PlaceTranscriptHoldResponse) GetJSON403() *Error
- func (r PlaceTranscriptHoldResponse) GetJSON404() *Error
- func (r PlaceTranscriptHoldResponse) GetJSON429() *RateLimited
- func (r PlaceTranscriptHoldResponse) GetJSON500() *InternalError
- func (r PlaceTranscriptHoldResponse) Status() string
- func (r PlaceTranscriptHoldResponse) StatusCode() int
- type PlaceTranscriptHoldResponse429Headers
- type PlaceTranscriptHoldResult
- type PresignedPartUrl
- type PurchaseResponse
- type PurchaseResponseStatus
- type RateLimited
- type RequestEditorFn
- type RotateAgentCredentialsResponse
- func (r RotateAgentCredentialsResponse) ContentType() string
- func (r RotateAgentCredentialsResponse) GetBody() []byte
- func (r RotateAgentCredentialsResponse) GetJSON201() *AgentCredentialsRotateResponse
- func (r RotateAgentCredentialsResponse) GetJSON401() *Error
- func (r RotateAgentCredentialsResponse) GetJSON403() *Error
- func (r RotateAgentCredentialsResponse) GetJSON429() *RateLimited
- func (r RotateAgentCredentialsResponse) GetJSON500() *InternalError
- func (r RotateAgentCredentialsResponse) Status() string
- func (r RotateAgentCredentialsResponse) StatusCode() int
- type RotateAgentCredentialsResponse429Headers
- type ScheduleOrgCustodyJSONBody
- type ScheduleOrgCustodyJSONBodyCustody
- type ScheduleOrgCustodyJSONRequestBody
- type ScheduleOrgCustodyResponse
- func (r ScheduleOrgCustodyResponse) ContentType() string
- func (r ScheduleOrgCustodyResponse) GetBody() []byte
- func (r ScheduleOrgCustodyResponse) GetJSON200() *ScheduleOrgCustodyResult
- func (r ScheduleOrgCustodyResponse) GetJSON400() *Error
- func (r ScheduleOrgCustodyResponse) GetJSON401() *Error
- func (r ScheduleOrgCustodyResponse) GetJSON403() *Error
- func (r ScheduleOrgCustodyResponse) GetJSON409() *Error
- func (r ScheduleOrgCustodyResponse) GetJSON429() *RateLimited
- func (r ScheduleOrgCustodyResponse) GetJSON500() *InternalError
- func (r ScheduleOrgCustodyResponse) Status() string
- func (r ScheduleOrgCustodyResponse) StatusCode() int
- type ScheduleOrgCustodyResponse429Headers
- type ScheduleOrgCustodyResult
- type SetDefaultCardJSONBody
- type SetDefaultCardJSONRequestBody
- type SetDefaultCardResponse
- func (r SetDefaultCardResponse) ContentType() string
- func (r SetDefaultCardResponse) GetBody() []byte
- func (r SetDefaultCardResponse) GetJSON200() *SetDefaultCardResult
- func (r SetDefaultCardResponse) GetJSON400() *Error
- func (r SetDefaultCardResponse) GetJSON401() *Error
- func (r SetDefaultCardResponse) GetJSON403() *Error
- func (r SetDefaultCardResponse) GetJSON404() *Error
- func (r SetDefaultCardResponse) GetJSON429() *RateLimited
- func (r SetDefaultCardResponse) GetJSON500() *InternalError
- func (r SetDefaultCardResponse) Status() string
- func (r SetDefaultCardResponse) StatusCode() int
- type SetDefaultCardResponse429Headers
- type SetDefaultCardResult
- type SetupSessionResponse
- type Transaction
- type TransactionProvider
- type TransactionsResponse
- type TranscriptDetail
- type TranscriptDetailOriginApp
- type TranscriptDetailOriginSource
- type TranscriptEnvelope
- type TranscriptLanguage
- type TranscriptList
- type TranscriptListRow
- type TranscriptListRowInsightsState
- type TranscriptListRowOriginApp
- type TranscriptListRowOriginSource
- type TranscriptionContextResponse
- type UploadCompleteResponse
- type UploadCreateResponse
- type UploadCreateResponseFunding
- type UploadCreateResponseUpload
- type UploadLimits
- type UploadPartResponse
- func (r UploadPartResponse) ContentType() string
- func (r UploadPartResponse) GetBody() []byte
- func (r UploadPartResponse) GetJSON200() *UploadPartResult
- func (r UploadPartResponse) GetJSON400() *Error
- func (r UploadPartResponse) GetJSON401() *Error
- func (r UploadPartResponse) GetJSON403() *Error
- func (r UploadPartResponse) GetJSON404() *Error
- func (r UploadPartResponse) GetJSON409() *Error
- func (r UploadPartResponse) GetJSON422() *Error
- func (r UploadPartResponse) GetJSON429() *RateLimited
- func (r UploadPartResponse) GetJSON500() *InternalError
- func (r UploadPartResponse) Status() string
- func (r UploadPartResponse) StatusCode() int
- type UploadPartResponse429Headers
- type UploadPartResult
- type Utterance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuyMinutesRequest ¶
func NewBuyMinutesRequest(server string, body BuyMinutesJSONRequestBody) (*http.Request, error)
NewBuyMinutesRequest calls the generic BuyMinutes builder with application/json body
func NewBuyMinutesRequestWithBody ¶
func NewBuyMinutesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBuyMinutesRequestWithBody constructs an http.Request for the BuyMinutes method, with any body, and a specified content type
func NewClaimAgentAccountRequest ¶
func NewClaimAgentAccountRequest(server string, signupId string, body ClaimAgentAccountJSONRequestBody) (*http.Request, error)
NewClaimAgentAccountRequest calls the generic ClaimAgentAccount builder with application/json body
func NewClaimAgentAccountRequestWithBody ¶
func NewClaimAgentAccountRequestWithBody(server string, signupId string, contentType string, body io.Reader) (*http.Request, error)
NewClaimAgentAccountRequestWithBody constructs an http.Request for the ClaimAgentAccount method, with any body, and a specified content type
func NewCompleteUploadRequest ¶
func NewCompleteUploadRequest(server string, job string, body CompleteUploadJSONRequestBody) (*http.Request, error)
NewCompleteUploadRequest calls the generic CompleteUpload builder with application/json body
func NewCompleteUploadRequestWithBody ¶
func NewCompleteUploadRequestWithBody(server string, job string, contentType string, body io.Reader) (*http.Request, error)
NewCompleteUploadRequestWithBody constructs an http.Request for the CompleteUpload method, with any body, and a specified content type
func NewCreateAgentAccountSignupRequest ¶
func NewCreateAgentAccountSignupRequest(server string, body CreateAgentAccountSignupJSONRequestBody) (*http.Request, error)
NewCreateAgentAccountSignupRequest calls the generic CreateAgentAccountSignup builder with application/json body
func NewCreateAgentAccountSignupRequestWithBody ¶
func NewCreateAgentAccountSignupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAgentAccountSignupRequestWithBody constructs an http.Request for the CreateAgentAccountSignup method, with any body, and a specified content type
func NewCreateSetupSessionRequest ¶
func NewCreateSetupSessionRequest(server string, body CreateSetupSessionJSONRequestBody) (*http.Request, error)
NewCreateSetupSessionRequest calls the generic CreateSetupSession builder with application/json body
func NewCreateSetupSessionRequestWithBody ¶
func NewCreateSetupSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSetupSessionRequestWithBody constructs an http.Request for the CreateSetupSession method, with any body, and a specified content type
func NewCreateUploadRequest ¶
func NewCreateUploadRequest(server string, body CreateUploadJSONRequestBody) (*http.Request, error)
NewCreateUploadRequest calls the generic CreateUpload builder with application/json body
func NewCreateUploadRequestWithBody ¶
func NewCreateUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateUploadRequestWithBody constructs an http.Request for the CreateUpload method, with any body, and a specified content type
func NewGetAccountRequest ¶
NewGetAccountRequest constructs an http.Request for the GetAccount method
func NewGetJobRequest ¶
NewGetJobRequest constructs an http.Request for the GetJob method
func NewGetOrgRequest ¶
NewGetOrgRequest constructs an http.Request for the GetOrg method
func NewGetTranscriptRequest ¶
NewGetTranscriptRequest constructs an http.Request for the GetTranscript method
func NewGetTranscriptionContextRequest ¶
NewGetTranscriptionContextRequest constructs an http.Request for the GetTranscriptionContext method
func NewGetUploadPartUrlsRequest ¶
func NewGetUploadPartUrlsRequest(server string, job string, params *GetUploadPartUrlsParams) (*http.Request, error)
NewGetUploadPartUrlsRequest constructs an http.Request for the GetUploadPartUrls method
func NewHeartbeatUploadRequest ¶
NewHeartbeatUploadRequest constructs an http.Request for the HeartbeatUpload method
func NewLiftTranscriptHoldRequest ¶
NewLiftTranscriptHoldRequest constructs an http.Request for the LiftTranscriptHold method
func NewListCreditLedgerRequest ¶
func NewListCreditLedgerRequest(server string, params *ListCreditLedgerParams) (*http.Request, error)
NewListCreditLedgerRequest constructs an http.Request for the ListCreditLedger method
func NewListDeletedTranscriptsRequest ¶
func NewListDeletedTranscriptsRequest(server string, params *ListDeletedTranscriptsParams) (*http.Request, error)
NewListDeletedTranscriptsRequest constructs an http.Request for the ListDeletedTranscripts method
func NewListHoldsRequest ¶
func NewListHoldsRequest(server string, params *ListHoldsParams) (*http.Request, error)
NewListHoldsRequest constructs an http.Request for the ListHolds method
func NewListJobsRequest ¶
func NewListJobsRequest(server string, params *ListJobsParams) (*http.Request, error)
NewListJobsRequest constructs an http.Request for the ListJobs method
func NewListOrgAuditRequest ¶
func NewListOrgAuditRequest(server string, params *ListOrgAuditParams) (*http.Request, error)
NewListOrgAuditRequest constructs an http.Request for the ListOrgAudit method
func NewListOrgInvoicesRequest ¶
func NewListOrgInvoicesRequest(server string, params *ListOrgInvoicesParams) (*http.Request, error)
NewListOrgInvoicesRequest constructs an http.Request for the ListOrgInvoices method
func NewListOrgLedgerRequest ¶
func NewListOrgLedgerRequest(server string, params *ListOrgLedgerParams) (*http.Request, error)
NewListOrgLedgerRequest constructs an http.Request for the ListOrgLedger method
func NewListOrgMattersRequest ¶
func NewListOrgMattersRequest(server string, params *ListOrgMattersParams) (*http.Request, error)
NewListOrgMattersRequest constructs an http.Request for the ListOrgMatters method
func NewListOrgMembersRequest ¶
func NewListOrgMembersRequest(server string, params *ListOrgMembersParams) (*http.Request, error)
NewListOrgMembersRequest constructs an http.Request for the ListOrgMembers method
func NewListOrgTranscriptsRequest ¶
func NewListOrgTranscriptsRequest(server string, params *ListOrgTranscriptsParams) (*http.Request, error)
NewListOrgTranscriptsRequest constructs an http.Request for the ListOrgTranscripts method
func NewListPacksRequest ¶
NewListPacksRequest constructs an http.Request for the ListPacks method
func NewListSavedCardsRequest ¶
NewListSavedCardsRequest constructs an http.Request for the ListSavedCards method
func NewListTransactionsRequest ¶
func NewListTransactionsRequest(server string, params *ListTransactionsParams) (*http.Request, error)
NewListTransactionsRequest constructs an http.Request for the ListTransactions method
func NewListTranscriptsRequest ¶
func NewListTranscriptsRequest(server string, params *ListTranscriptsParams) (*http.Request, error)
NewListTranscriptsRequest constructs an http.Request for the ListTranscripts method
func NewOrgAuditCsvRequest ¶
NewOrgAuditCsvRequest constructs an http.Request for the OrgAuditCsv method
func NewOrgLedgerCsvRequest ¶
NewOrgLedgerCsvRequest constructs an http.Request for the OrgLedgerCsv method
func NewOrgUsageReportCsvRequest ¶
func NewOrgUsageReportCsvRequest(server string, params *OrgUsageReportCsvParams) (*http.Request, error)
NewOrgUsageReportCsvRequest constructs an http.Request for the OrgUsageReportCsv method
func NewOrgUsageReportRequest ¶
func NewOrgUsageReportRequest(server string, params *OrgUsageReportParams) (*http.Request, error)
NewOrgUsageReportRequest constructs an http.Request for the OrgUsageReport method
func NewPatchOrgMemberRequest ¶
func NewPatchOrgMemberRequest(server string, userId string, body PatchOrgMemberJSONRequestBody) (*http.Request, error)
NewPatchOrgMemberRequest calls the generic PatchOrgMember builder with application/json body
func NewPatchOrgMemberRequestWithBody ¶
func NewPatchOrgMemberRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewPatchOrgMemberRequestWithBody constructs an http.Request for the PatchOrgMember method, with any body, and a specified content type
func NewPlaceTranscriptHoldRequest ¶
NewPlaceTranscriptHoldRequest constructs an http.Request for the PlaceTranscriptHold method
func NewRotateAgentCredentialsRequest ¶
NewRotateAgentCredentialsRequest constructs an http.Request for the RotateAgentCredentials method
func NewScheduleOrgCustodyRequest ¶
func NewScheduleOrgCustodyRequest(server string, body ScheduleOrgCustodyJSONRequestBody) (*http.Request, error)
NewScheduleOrgCustodyRequest calls the generic ScheduleOrgCustody builder with application/json body
func NewScheduleOrgCustodyRequestWithBody ¶
func NewScheduleOrgCustodyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewScheduleOrgCustodyRequestWithBody constructs an http.Request for the ScheduleOrgCustody method, with any body, and a specified content type
func NewSetDefaultCardRequest ¶
func NewSetDefaultCardRequest(server string, body SetDefaultCardJSONRequestBody) (*http.Request, error)
NewSetDefaultCardRequest calls the generic SetDefaultCard builder with application/json body
func NewSetDefaultCardRequestWithBody ¶
func NewSetDefaultCardRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetDefaultCardRequestWithBody constructs an http.Request for the SetDefaultCard method, with any body, and a specified content type
func NewUploadPartRequestWithBody ¶
func NewUploadPartRequestWithBody(server string, job string, n int, contentType string, body io.Reader) (*http.Request, error)
NewUploadPartRequestWithBody constructs an http.Request for the UploadPart method, with any body, and a specified content type
func RequiredScope ¶
RequiredScope returns the permission an operation needs, keyed "METHOD /path/{template}".
func ScopedOperations ¶
func ScopedOperations() []string
ScopedOperations lists every operation that declares a scope, sorted.
Types ¶
type AccountResponse ¶
type AccountResponse struct {
// BalanceSeconds Net balance in seconds: the raw balance minus any clawback debt. May be negative.
BalanceSeconds int `json:"balance_seconds"`
CardOnFile bool `json:"card_on_file"`
// CreditsExpireAt Always null; minutes do not expire. Retained for compatibility until the next SDK major version.
CreditsExpireAt *int `json:"credits_expire_at"`
// DataRegion The region this account's data lives in, e.g. us, eu, apac or oc.
DataRegion string `json:"data_region"`
// HeldSeconds Seconds currently committed to in-flight jobs and not yet settled.
HeldSeconds int `json:"held_seconds"`
// Limits The caller's current upload admission limits, shared by every response that carries them.
Limits UploadLimits `json:"limits"`
// PurchasesRemainingInWindow Agent accounts only: how many purchases are still available in the current rolling window, never below 0. Absent for human accounts.
PurchasesRemainingInWindow *int `json:"purchases_remaining_in_window,omitempty"`
}
AccountResponse defines model for AccountResponse.
type ActiveHold ¶
type ActiveHold struct {
CreatedAt int `json:"created_at"`
Id string `json:"id"`
// Kind Which kind of work reserved these seconds. The id is that work's own id and is unique only within its kind.
Kind ActiveHoldKind `json:"kind"`
Seconds int `json:"seconds"`
}
ActiveHold defines model for ActiveHold.
type ActiveHoldKind ¶
type ActiveHoldKind string
ActiveHoldKind Which kind of work reserved these seconds. The id is that work's own id and is unique only within its kind.
const ( Insights ActiveHoldKind = "insights" Qa ActiveHoldKind = "qa" Transcription ActiveHoldKind = "transcription" Translation ActiveHoldKind = "translation" )
Defines values for ActiveHoldKind.
func (ActiveHoldKind) Valid ¶
func (e ActiveHoldKind) Valid() bool
Valid indicates whether the value is a known member of the ActiveHoldKind enum.
type AgentClaimRequest ¶
type AgentClaimRequest struct {
// ClaimSecret The secret returned exactly once by POST /v1/agent/accounts.
ClaimSecret string `json:"claim_secret"`
}
AgentClaimRequest defines model for AgentClaimRequest.
type AgentClaimResponse ¶
type AgentClaimResponse struct {
// BalanceSeconds The account's balance immediately after the pack this signup paid for was granted.
BalanceSeconds int `json:"balance_seconds"`
// Pat Only its hash is stored; there is no way to recover it later. A retry of the claim while this token is unused and within one hour of the mint returns a new token for the same account.
Pat string `json:"pat"`
// Scopes The scopes carried by pat.
Scopes []string `json:"scopes"`
// UserId The account created by this claim. There is no login path for it; authenticate with pat instead.
UserId string `json:"user_id"`
}
AgentClaimResponse defines model for AgentClaimResponse.
type AgentCredentialsRotateResponse ¶
type AgentCredentialsRotateResponse struct {
// ExpiresAt The successor's expiry policy, carried over from the predecessor unchanged. Null when the predecessor never expired.
ExpiresAt *int `json:"expires_at,omitempty"`
// Pat The successor token. Only its hash is stored; there is no way to recover it later. A repeated call with the predecessor while this token is unused returns a new secret for the same pat_id. The predecessor keeps working for this route only, until the successor's first successful request or one hour, whichever comes first.
Pat string `json:"pat"`
// PatId The successor's id.
PatId string `json:"pat_id"`
// Scopes The scopes carried by pat, identical to the predecessor's.
Scopes []string `json:"scopes"`
}
AgentCredentialsRotateResponse defines model for AgentCredentialsRotateResponse.
type AgentSignupRequest ¶
type AgentSignupRequest struct {
// AcceptTermsVersion Must be the server's current policy version or, for 30 days after the current version's date, the previous one; otherwise the request is refused with policy_version_stale, which names the current value.
AcceptTermsVersion string `json:"accept_terms_version"`
Agent AgentSignupRequestAgent `json:"agent"`
// ContactEmail Address for receipts and notices only. Never used to sign in; the created account has no login path of its own.
ContactEmail string `json:"contact_email"`
// DataRegion Optional region hint. Honored only when it agrees with the region derived from your network location; otherwise the derived region is used silently.
DataRegion *string `json:"data_region,omitempty"`
// DryRun Validate the request and return a synthetic response with no Stripe session and no charge. Defaults to false.
DryRun *bool `json:"dry_run,omitempty"`
// PackId Which minute pack to buy. See GET /v1/billing/packs for the catalogue.
PackId string `json:"pack_id"`
}
AgentSignupRequest The client must never supply amount: it is derived server side from pack.
type AgentSignupRequestAgent ¶ added in v1.1.0
type AgentSignupRequestAgent struct {
ContactUrl *string `json:"contact_url,omitempty"`
Name string `json:"name"`
Platform string `json:"platform"`
}
AgentSignupRequestAgent defines model for AgentSignupRequest.agent.
type AgentSignupResponse ¶
type AgentSignupResponse struct {
// Amount Charge amount in the currency's minor unit.
Amount int `json:"amount"`
// CheckoutUrl Open this URL in a browser you control to complete the hosted Checkout page.
CheckoutUrl string `json:"checkout_url"`
// ClaimSecret Returned exactly once. Only its hash is stored; there is no way to recover it later.
ClaimSecret string `json:"claim_secret"`
Currency string `json:"currency"`
// ExpiresAt Unix timestamp after which the Session stops accepting a card.
ExpiresAt int `json:"expires_at"`
Pack string `json:"pack"`
// SignupId Region-prefixed (hsr1:<region>:<id>), e.g. hsr1:eu:4c3a1f9e7b2d4e6f8a0c1b2d3e4f5061. Present it back verbatim as the path segment when claiming the account. A dry_run response's signup_id is prefixed dry_ instead and can never be claimed.
SignupId string `json:"signup_id"`
}
AgentSignupResponse defines model for AgentSignupResponse.
type BuyMinutesJSONBody ¶
type BuyMinutesJSONBody struct {
// IdempotencyKey A client-minted key preventing a retried request from charging twice.
IdempotencyKey string `json:"idempotency_key"`
// Pack The id of a pack from list_packs.
Pack string `json:"pack"`
// PolicyAck Client attestation that the no-refund, instant-delivery notice was shown before this call. Optional; absent is treated as false.
PolicyAck *bool `json:"policy_ack,omitempty"`
// QuickPaymentMethodId The id of a card from list_saved_cards, required on this API.
QuickPaymentMethodId string `json:"quick_payment_method_id"`
}
BuyMinutesJSONBody defines parameters for BuyMinutes.
type BuyMinutesJSONRequestBody ¶
type BuyMinutesJSONRequestBody BuyMinutesJSONBody
BuyMinutesJSONRequestBody defines body for BuyMinutes for application/json ContentType.
type BuyMinutesResponse ¶
type BuyMinutesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PurchaseResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *BuyMinutesResponse429Headers
}
func ParseBuyMinutesResponse ¶
func ParseBuyMinutesResponse(rsp *http.Response) (*BuyMinutesResponse, error)
ParseBuyMinutesResponse parses an HTTP response from a BuyMinutesWithResponse call
func (BuyMinutesResponse) ContentType ¶
func (r BuyMinutesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BuyMinutesResponse) GetBody ¶
func (r BuyMinutesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BuyMinutesResponse) GetJSON200 ¶
func (r BuyMinutesResponse) GetJSON200() *PurchaseResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (BuyMinutesResponse) GetJSON400 ¶
func (r BuyMinutesResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (BuyMinutesResponse) GetJSON401 ¶
func (r BuyMinutesResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (BuyMinutesResponse) GetJSON403 ¶
func (r BuyMinutesResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (BuyMinutesResponse) GetJSON422 ¶
func (r BuyMinutesResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (BuyMinutesResponse) GetJSON429 ¶
func (r BuyMinutesResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (BuyMinutesResponse) GetJSON500 ¶
func (r BuyMinutesResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (BuyMinutesResponse) GetJSON502 ¶
func (r BuyMinutesResponse) GetJSON502() *Error
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (BuyMinutesResponse) Status ¶
func (r BuyMinutesResponse) Status() string
Status returns HTTPResponse.Status
func (BuyMinutesResponse) StatusCode ¶
func (r BuyMinutesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BuyMinutesResponse429Headers ¶
type BuyMinutesResponse429Headers struct {
RetryAfter *int
}
BuyMinutesResponse429Headers the declared response headers of an HTTP 429 response for BuyMinutes
type Card ¶
type Card struct {
Brand string `json:"brand"`
Email *string `json:"email"`
ExpMonth int `json:"exp_month"`
ExpYear int `json:"exp_year"`
// FastCheckoutEligible Whether this method may be charged off-session by buy_minutes.
FastCheckoutEligible bool `json:"fast_checkout_eligible"`
// Id Use this value as quick_payment_method_id when it is is_default and fast_checkout_eligible. If default_id is null, naming any fast_checkout_eligible card here also makes it the new default.
Id string `json:"id"`
IsDefault bool `json:"is_default"`
Last4 string `json:"last4"`
Type string `json:"type"`
}
Card defines model for Card.
type CardsResponse ¶
CardsResponse defines model for CardsResponse.
type ClaimAgentAccountJSONRequestBody ¶
type ClaimAgentAccountJSONRequestBody = AgentClaimRequest
ClaimAgentAccountJSONRequestBody defines body for ClaimAgentAccount for application/json ContentType.
type ClaimAgentAccountResponse ¶
type ClaimAgentAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AgentClaimResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ClaimAgentAccountResponse429Headers
}
func ParseClaimAgentAccountResponse ¶
func ParseClaimAgentAccountResponse(rsp *http.Response) (*ClaimAgentAccountResponse, error)
ParseClaimAgentAccountResponse parses an HTTP response from a ClaimAgentAccountWithResponse call
func (ClaimAgentAccountResponse) ContentType ¶
func (r ClaimAgentAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClaimAgentAccountResponse) GetBody ¶
func (r ClaimAgentAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClaimAgentAccountResponse) GetJSON201 ¶
func (r ClaimAgentAccountResponse) GetJSON201() *AgentClaimResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (ClaimAgentAccountResponse) GetJSON400 ¶
func (r ClaimAgentAccountResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ClaimAgentAccountResponse) GetJSON401 ¶
func (r ClaimAgentAccountResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ClaimAgentAccountResponse) GetJSON409 ¶
func (r ClaimAgentAccountResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ClaimAgentAccountResponse) GetJSON429 ¶
func (r ClaimAgentAccountResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ClaimAgentAccountResponse) GetJSON500 ¶
func (r ClaimAgentAccountResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ClaimAgentAccountResponse) Status ¶
func (r ClaimAgentAccountResponse) Status() string
Status returns HTTPResponse.Status
func (ClaimAgentAccountResponse) StatusCode ¶
func (r ClaimAgentAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClaimAgentAccountResponse429Headers ¶
type ClaimAgentAccountResponse429Headers struct {
RetryAfter *int
}
ClaimAgentAccountResponse429Headers the declared response headers of an HTTP 429 response for ClaimAgentAccount
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) BuyMinutes ¶
func (c *Client) BuyMinutes(ctx context.Context, body BuyMinutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
BuyMinutes Charge the account's saved default card for a minute pack
Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
func (*Client) BuyMinutesWithBody ¶
func (c *Client) BuyMinutesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BuyMinutesWithBody Charge the account's saved default card for a minute pack
Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes any type of body and a specified content type.
Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
func (*Client) ClaimAgentAccount ¶
func (c *Client) ClaimAgentAccount(ctx context.Context, signupId string, body ClaimAgentAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ClaimAgentAccount Claim a paid agent signup into a real account
Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
func (*Client) ClaimAgentAccountWithBody ¶
func (c *Client) ClaimAgentAccountWithBody(ctx context.Context, signupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ClaimAgentAccountWithBody Claim a paid agent signup into a real account
Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
Takes any type of body and a specified content type.
Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
func (*Client) CompleteUpload ¶
func (c *Client) CompleteUpload(ctx context.Context, job string, body CompleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteUpload Finish an upload and start transcription
Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
func (*Client) CompleteUploadWithBody ¶
func (c *Client) CompleteUploadWithBody(ctx context.Context, job string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteUploadWithBody Finish an upload and start transcription
Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
Takes any type of body and a specified content type.
Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
func (*Client) CreateAgentAccountSignup ¶
func (c *Client) CreateAgentAccountSignup(ctx context.Context, body CreateAgentAccountSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAgentAccountSignup Start a headless, payment-first account signup
Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
func (*Client) CreateAgentAccountSignupWithBody ¶
func (c *Client) CreateAgentAccountSignupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAgentAccountSignupWithBody Start a headless, payment-first account signup
Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
Takes any type of body and a specified content type.
Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
func (*Client) CreateSetupSession ¶
func (c *Client) CreateSetupSession(ctx context.Context, body CreateSetupSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSetupSession Open a hosted Checkout Session that saves a card with no charge
Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
func (*Client) CreateSetupSessionWithBody ¶
func (c *Client) CreateSetupSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSetupSessionWithBody Open a hosted Checkout Session that saves a card with no charge
Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes any type of body and a specified content type.
Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
func (*Client) CreateUpload ¶
func (c *Client) CreateUpload(ctx context.Context, body CreateUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUpload Start a new transcription upload and place a credit hold
Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
func (*Client) CreateUploadWithBody ¶
func (c *Client) CreateUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUploadWithBody Start a new transcription upload and place a credit hold
Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
Takes any type of body and a specified content type.
Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
func (*Client) GetAccount ¶
func (c *Client) GetAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAccount Read the account's balance and upload admission limits
Returns the caller's net credit balance, whether a card is on file, the account's data region, and the account's current daily-minutes and concurrent-jobs limits. Call this before create_upload to confirm there is enough balance and daily headroom for the upload about to be attempted.
Corresponds with GET /v1/account (the `GetAccount` operationId).
func (*Client) GetJob ¶
func (c *Client) GetJob(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetJob Read one transcription job
Returns one pipeline job's current state, billing figures, and transcription options summary. Poll this (or list_jobs) after complete_upload until state reaches done or failed.
Corresponds with GET /v1/jobs/{id} (the `GetJob` operationId).
func (*Client) GetOrg ¶
GetOrg Read the caller's organization summary
A pure passthrough of GET /api/org's body: plan state and term, pool balance, retention policy, tax id, auto-renewal source and failure count, the workspace-wide default per-member cap, and the caller's own effective cap and month-to-date spend against the pool. Membership only, not admin -- renewal_user_id is visible to admins only.
Corresponds with GET /v1/org (the `GetOrg` operationId).
func (*Client) GetTranscript ¶
func (c *Client) GetTranscript(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTranscript Read one transcript's metadata and full body
Returns one transcript's metadata plus its full structured body (the original transcription and any translations, keyed by locale). This is the reference way to fetch a transcript body from this API; format conversion such as SRT, WebVTT or plain text is the caller's job. This route reads the body through the same loader the rest of the backend uses, including its legacy full-envelope path for a transcript stored before the chunked-body protocol existed, so a caller can rely on this route regardless of which storage path actually served a given transcript. The backend's own code calls this whole-body route a rolling-deploy fallback for older clients, alongside the newer manifest and chunk endpoints; that label describes the route itself, not the legacy storage path, and this remains the frozen /v1 way to fetch any transcript's body.
Corresponds with GET /v1/transcripts/{id} (the `GetTranscript` operationId).
func (*Client) GetTranscriptionContext ¶
func (c *Client) GetTranscriptionContext(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTranscriptionContext Read the account's saved transcription context
Returns every saved dictionary and prompt preset on the account. A dictionary teaches the transcriber names and terms it would otherwise mishear; a prompt preset is standing free-text guidance. Both can be selected by id on an upload. This response is not paginated and carries no cursor: an account may hold at most 50 dictionaries and 20 prompt presets, both enforced when they are created, so a single response is always the complete set.
Corresponds with GET /v1/transcription-context (the `GetTranscriptionContext` operationId).
func (*Client) GetUploadPartUrls ¶
func (c *Client) GetUploadPartUrls(ctx context.Context, job string, params *GetUploadPartUrlsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUploadPartUrls Fetch a page of presigned direct-to-R2 part URLs
Returns a fresh page of presigned PUT URLs for the given job's direct-to-R2 upload, starting at the requested part number. Presigned URLs expire, so a client resuming a stalled transfer should call this again rather than reusing URLs from create_upload's response. Answers 404 when direct-to-R2 uploads are not available for the job; send the parts through upload_part then.
Corresponds with GET /v1/uploads/{job}/part-urls (the `GetUploadPartUrls` operationId).
func (*Client) HeartbeatUpload ¶
func (c *Client) HeartbeatUpload(ctx context.Context, job string, reqEditors ...RequestEditorFn) (*http.Response, error)
HeartbeatUpload Keep a direct-to-R2 upload alive
Refreshes the job's activity clock for a direct-to-R2 transfer, whose bytes never pass through this API and so never otherwise refresh it. Call this at an interval well under the 20 minute idle timeout for the whole duration of a long transfer, or the job is reaped mid-flight.
Corresponds with POST /v1/uploads/{job}/heartbeat (the `HeartbeatUpload` operationId).
func (*Client) LiftTranscriptHold ¶
func (c *Client) LiftTranscriptHold(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
LiftTranscriptHold Lift a legal hold on a transcript
Reviewer only. Lifts a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
Corresponds with DELETE /v1/org/transcripts/{id}/hold (the `LiftTranscriptHold` operationId).
func (*Client) ListCreditLedger ¶
func (c *Client) ListCreditLedger(ctx context.Context, params *ListCreditLedgerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListCreditLedger List the account's credit ledger
Returns a page of the append-only credit ledger, newest first: every hold, settle, release, purchase and refund that has moved the account's second balance, with the job that spent them where there is one. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
Corresponds with GET /v1/billing/ledger (the `ListCreditLedger` operationId).
func (*Client) ListDeletedTranscripts ¶
func (c *Client) ListDeletedTranscripts(ctx context.Context, params *ListDeletedTranscriptsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDeletedTranscripts List deletion records for removed transcripts
Returns a page of the deletion records kept after a transcript is removed, whichever path removed it: an explicit delete, a scheduled deletion, the retention sweep or account deletion. Each record carries the transcript's title, duration and upload time, when and why it was deleted, and the stored deletion receipt. The transcript content itself is gone and cannot be recovered. Records are ordered by the deleted transcript's original upload time, newest first, so they interleave with GET /v1/transcripts by the same key. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint, including a cursor minted by GET /v1/transcripts.
Corresponds with GET /v1/transcripts/deleted (the `ListDeletedTranscripts` operationId).
func (*Client) ListHolds ¶
func (c *Client) ListHolds(ctx context.Context, params *ListHoldsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListHolds List the account's active credit holds
Returns a page of the seconds currently reserved by in-flight work: transcription jobs still running plus unresolved translation, insights and question holds, newest first. Held seconds are not spent yet and are already excluded from the account balance. This is not the ledger: a historical hold entry there may since have been settled or released, while every row here is still outstanding. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Corresponds with GET /v1/billing/holds (the `ListHolds` operationId).
func (*Client) ListJobs ¶
func (c *Client) ListJobs(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListJobs List the account's transcription jobs
Returns a page of pipeline jobs for the caller's account, newest first. Jobs accumulate for the lifetime of the account, not just while in flight, so this list pages: pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not. Pass active=1 to see only jobs that have not yet reached a terminal state.
Corresponds with GET /v1/jobs (the `ListJobs` operationId).
func (*Client) ListOrgAudit ¶
func (c *Client) ListOrgAudit(ctx context.Context, params *ListOrgAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListOrgAudit List the caller's organization's audit log
Returns a page of the caller's organization's admin audit log, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Corresponds with GET /v1/org/audit (the `ListOrgAudit` operationId).
func (*Client) ListOrgInvoices ¶
func (c *Client) ListOrgInvoices(ctx context.Context, params *ListOrgInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListOrgInvoices List the caller's organization invoices
Returns a page of the caller's organization's plan and pack invoices, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Corresponds with GET /v1/org/invoices (the `ListOrgInvoices` operationId).
func (*Client) ListOrgLedger ¶
func (c *Client) ListOrgLedger(ctx context.Context, params *ListOrgLedgerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListOrgLedger List the caller's organization's minute-pool ledger
Returns a page of the caller's organization's shared minute pool history (holds, settles, releases, purchases), newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Corresponds with GET /v1/org/ledger (the `ListOrgLedger` operationId).
func (*Client) ListOrgMatters ¶
func (c *Client) ListOrgMatters(ctx context.Context, params *ListOrgMattersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListOrgMatters List the caller's organization's matter registry
Returns up to 200 rows of the caller's organization's matter registry, ordered by code. Membership gated, not admin only: a member filing a transcript under an existing matter is offered this same list. Every row here is {id, code, status} for every caller, including an admin's own token -- the client a matter belongs to is /api admin only: GET /api/org/matters publishes client_id and the client's own code to an admin caller there, but this /v1 route never does, for any caller.
Corresponds with GET /v1/org/matters (the `ListOrgMatters` operationId).
func (*Client) ListOrgMembers ¶
func (c *Client) ListOrgMembers(ctx context.Context, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListOrgMembers List the caller's organization members
Returns a page of the caller's organization's members, most recently joined first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Corresponds with GET /v1/org/members (the `ListOrgMembers` operationId).
func (*Client) ListOrgTranscripts ¶
func (c *Client) ListOrgTranscripts(ctx context.Context, params *ListOrgTranscriptsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListOrgTranscripts List the caller's organization's firm-custody transcripts
Returns a page of the caller's organization's firm-custody transcripts, newest first. Reviewer right only (org_reviewer_required if the caller lacks it). Never returns transcript body or title content beyond the title field; opening a transcript body through the transcript read routes is logged to the organization's access log and audit log, and emails the transcript's owner the first time a given reviewer opens it. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Corresponds with GET /v1/org/transcripts (the `ListOrgTranscripts` operationId).
func (*Client) ListPacks ¶
func (c *Client) ListPacks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListPacks List purchasable minute packs
Returns the account's minute-pack catalogue, priced in the account's own currency, including any referral buyer bonus currently available. Read the id of the pack to buy from here before calling buy_minutes. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Corresponds with GET /v1/billing/packs (the `ListPacks` operationId).
func (*Client) ListSavedCards ¶
func (c *Client) ListSavedCards(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSavedCards List the account's saved payment methods
Returns every payment method saved on the account plus which one is the current default. This is the only source of a quick_payment_method_id for buy_minutes; it can only list a card already on file, not attach a new one. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Corresponds with GET /v1/billing/cards (the `ListSavedCards` operationId).
func (*Client) ListTransactions ¶
func (c *Client) ListTransactions(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListTransactions List the account's purchase history
Returns a page of the account's past purchases, newest first, each with its settlement status and public receipt reference. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
Corresponds with GET /v1/billing/transactions (the `ListTransactions` operationId).
func (*Client) ListTranscripts ¶
func (c *Client) ListTranscripts(ctx context.Context, params *ListTranscriptsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListTranscripts List the account's transcripts
Returns a page of the caller's transcripts, newest first, with metadata only (no body text). Pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
Corresponds with GET /v1/transcripts (the `ListTranscripts` operationId).
func (*Client) OrgAuditCsv ¶
func (c *Client) OrgAuditCsv(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
OrgAuditCsv Download the caller's organization's whole audit log as CSV
Downloads the caller's organization's entire org_audit_log history (not paged, unlike GET /v1/org/audit) as a CSV file, with the same detail redaction GET /v1/org/audit applies. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
Corresponds with GET /v1/org/audit.csv (the `OrgAuditCsv` operationId).
func (*Client) OrgLedgerCsv ¶
func (c *Client) OrgLedgerCsv(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
OrgLedgerCsv Download the caller's organization's whole minute-pool ledger as CSV
Downloads the caller's organization's entire org_credit_ledger history (not paged, unlike GET /v1/org/ledger) as a CSV file. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
Corresponds with GET /v1/org/ledger.csv (the `OrgLedgerCsv` operationId).
func (*Client) OrgUsageReport ¶
func (c *Client) OrgUsageReport(ctx context.Context, params *OrgUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
OrgUsageReport Aggregate the caller's organization's settled spend by member, matter or client
Aggregates settled minute-pool spend over a bounded range (at most 366 days), grouped by member, by matter code or by client code, and priced at the workspace's own report-only rebill rate. This is the one org read that is not a list: it has no cursor and no paging, since it reports at most one row per member, per matter or per client. Billing gated, like GET /v1/org/ledger, because it aggregates the same org_credit_ledger table.
Corresponds with GET /v1/org/usage (the `OrgUsageReport` operationId).
func (*Client) OrgUsageReportCsv ¶
func (c *Client) OrgUsageReportCsv(ctx context.Context, params *OrgUsageReportCsvParams, reqEditors ...RequestEditorFn) (*http.Response, error)
OrgUsageReportCsv Download the caller's organization's settled spend by member, matter or client as CSV
Same aggregation as GET /v1/org/usage, downloaded as a CSV file instead of a JSON body.
Corresponds with GET /v1/org/usage.csv (the `OrgUsageReportCsv` operationId).
func (*Client) PatchOrgMember ¶
func (c *Client) PatchOrgMember(ctx context.Context, userId string, body PatchOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchOrgMember Change a workspace member's rights or cap
Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
Takes a body of the `application/json` content type.
Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
func (*Client) PatchOrgMemberWithBody ¶
func (c *Client) PatchOrgMemberWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchOrgMemberWithBody Change a workspace member's rights or cap
Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
Takes any type of body and a specified content type.
Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
func (*Client) PlaceTranscriptHold ¶
func (c *Client) PlaceTranscriptHold(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
PlaceTranscriptHold Place a legal hold on a transcript
Reviewer only. Places a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
Corresponds with POST /v1/org/transcripts/{id}/hold (the `PlaceTranscriptHold` operationId).
func (*Client) RotateAgentCredentials ¶
func (c *Client) RotateAgentCredentials(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
RotateAgentCredentials Rotate the calling agent PAT
Atomically mints a successor personal access token for the one that authenticated this request. A machine account has no password and no usable mailbox, so this is its only way to rotate a leaked credential. The successor keeps the predecessor's scopes, billing_enabled flag, name, client_label, and expiry policy; only the secret changes. The predecessor is not revoked at once. It stays in a grace period that ends at the successor's first successful request or one hour after the rotation, whichever comes first. During that period it authenticates only this route, and every other route answers it with a bare 401. If the 201 is lost, call this route again with the predecessor while the successor is still unused: the response carries the same pat_id and a NEW secret, and the earlier successor secret stops working. Keep the predecessor until the successor has made one successful call, because a late-landing earlier retry can replace the successor's secret. Then make one call with the successor right away to retire the predecessor. Once the successor has been used or the hour has passed, the predecessor is refused here as well. This route references no token but the one that called it and that token's own successor: it cannot list, mint, or revoke any other credential.
Corresponds with POST /v1/agent/credentials/rotate (the `RotateAgentCredentials` operationId).
func (*Client) ScheduleOrgCustody ¶
func (c *Client) ScheduleOrgCustody(ctx context.Context, body ScheduleOrgCustodyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ScheduleOrgCustody Schedule the private to firm custody switch
Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
func (*Client) ScheduleOrgCustodyWithBody ¶
func (c *Client) ScheduleOrgCustodyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ScheduleOrgCustodyWithBody Schedule the private to firm custody switch
Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
Takes any type of body and a specified content type.
Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
func (*Client) SetDefaultCard ¶
func (c *Client) SetDefaultCard(ctx context.Context, body SetDefaultCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SetDefaultCard Switch which saved card Quick Buy charges
Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
func (*Client) SetDefaultCardWithBody ¶
func (c *Client) SetDefaultCardWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetDefaultCardWithBody Switch which saved card Quick Buy charges
Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes any type of body and a specified content type.
Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
func (*Client) UploadPartWithBody ¶
func (c *Client) UploadPartWithBody(ctx context.Context, job string, n int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UploadPartWithBody Upload one part of a job's audio through this API
Sends one part's raw bytes to be written into the job's in-progress R2 multipart upload. Only needed when direct-to-R2 presigned URLs are unavailable, or as a fallback for a part whose presigned PUT failed. A repeated PUT of the same part number replaces that part rather than adding to the declared total, so retries are always safe. A Content-Length header is required: the body is streamed to storage and held to that length, and a part sent without one (chunked transfer) is refused with 400 bad_request.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/uploads/{job}/parts/{n} (the `UploadPart` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetAccount Read the account's balance and upload admission limits
//
// Returns the caller's net credit balance, whether a card is on file, the account's data region, and the account's current daily-minutes and concurrent-jobs limits. Call this before create_upload to confirm there is enough balance and daily headroom for the upload about to be attempted.
//
// Corresponds with GET /v1/account (the `GetAccount` operationId).
GetAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAgentAccountSignupWithBody Start a headless, payment-first account signup
//
// Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
CreateAgentAccountSignupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAgentAccountSignup Start a headless, payment-first account signup
//
// Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
CreateAgentAccountSignup(ctx context.Context, body CreateAgentAccountSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClaimAgentAccountWithBody Claim a paid agent signup into a real account
//
// Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
ClaimAgentAccountWithBody(ctx context.Context, signupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClaimAgentAccount Claim a paid agent signup into a real account
//
// Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
ClaimAgentAccount(ctx context.Context, signupId string, body ClaimAgentAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RotateAgentCredentials Rotate the calling agent PAT
//
// Atomically mints a successor personal access token for the one that authenticated this request. A machine account has no password and no usable mailbox, so this is its only way to rotate a leaked credential. The successor keeps the predecessor's scopes, billing_enabled flag, name, client_label, and expiry policy; only the secret changes. The predecessor is not revoked at once. It stays in a grace period that ends at the successor's first successful request or one hour after the rotation, whichever comes first. During that period it authenticates only this route, and every other route answers it with a bare 401. If the 201 is lost, call this route again with the predecessor while the successor is still unused: the response carries the same pat_id and a NEW secret, and the earlier successor secret stops working. Keep the predecessor until the successor has made one successful call, because a late-landing earlier retry can replace the successor's secret. Then make one call with the successor right away to retire the predecessor. Once the successor has been used or the hour has passed, the predecessor is refused here as well. This route references no token but the one that called it and that token's own successor: it cannot list, mint, or revoke any other credential.
//
// Corresponds with POST /v1/agent/credentials/rotate (the `RotateAgentCredentials` operationId).
RotateAgentCredentials(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSavedCards List the account's saved payment methods
//
// Returns every payment method saved on the account plus which one is the current default. This is the only source of a quick_payment_method_id for buy_minutes; it can only list a card already on file, not attach a new one. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Corresponds with GET /v1/billing/cards (the `ListSavedCards` operationId).
ListSavedCards(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetDefaultCardWithBody Switch which saved card Quick Buy charges
//
// Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
SetDefaultCardWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetDefaultCard Switch which saved card Quick Buy charges
//
// Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
SetDefaultCard(ctx context.Context, body SetDefaultCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListHolds List the account's active credit holds
//
// Returns a page of the seconds currently reserved by in-flight work: transcription jobs still running plus unresolved translation, insights and question holds, newest first. Held seconds are not spent yet and are already excluded from the account balance. This is not the ledger: a historical hold entry there may since have been settled or released, while every row here is still outstanding. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Corresponds with GET /v1/billing/holds (the `ListHolds` operationId).
ListHolds(ctx context.Context, params *ListHoldsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCreditLedger List the account's credit ledger
//
// Returns a page of the append-only credit ledger, newest first: every hold, settle, release, purchase and refund that has moved the account's second balance, with the job that spent them where there is one. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
//
// Corresponds with GET /v1/billing/ledger (the `ListCreditLedger` operationId).
ListCreditLedger(ctx context.Context, params *ListCreditLedgerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPacks List purchasable minute packs
//
// Returns the account's minute-pack catalogue, priced in the account's own currency, including any referral buyer bonus currently available. Read the id of the pack to buy from here before calling buy_minutes. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Corresponds with GET /v1/billing/packs (the `ListPacks` operationId).
ListPacks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// BuyMinutesWithBody Charge the account's saved default card for a minute pack
//
// Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
BuyMinutesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// BuyMinutes Charge the account's saved default card for a minute pack
//
// Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
BuyMinutes(ctx context.Context, body BuyMinutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSetupSessionWithBody Open a hosted Checkout Session that saves a card with no charge
//
// Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
CreateSetupSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSetupSession Open a hosted Checkout Session that saves a card with no charge
//
// Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
CreateSetupSession(ctx context.Context, body CreateSetupSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTransactions List the account's purchase history
//
// Returns a page of the account's past purchases, newest first, each with its settlement status and public receipt reference. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
//
// Corresponds with GET /v1/billing/transactions (the `ListTransactions` operationId).
ListTransactions(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListJobs List the account's transcription jobs
//
// Returns a page of pipeline jobs for the caller's account, newest first. Jobs accumulate for the lifetime of the account, not just while in flight, so this list pages: pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not. Pass active=1 to see only jobs that have not yet reached a terminal state.
//
// Corresponds with GET /v1/jobs (the `ListJobs` operationId).
ListJobs(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJob Read one transcription job
//
// Returns one pipeline job's current state, billing figures, and transcription options summary. Poll this (or list_jobs) after complete_upload until state reaches done or failed.
//
// Corresponds with GET /v1/jobs/{id} (the `GetJob` operationId).
GetJob(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrg Read the caller's organization summary
//
// A pure passthrough of GET /api/org's body: plan state and term, pool balance, retention policy, tax id, auto-renewal source and failure count, the workspace-wide default per-member cap, and the caller's own effective cap and month-to-date spend against the pool. Membership only, not admin -- renewal_user_id is visible to admins only.
//
// Corresponds with GET /v1/org (the `GetOrg` operationId).
GetOrg(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgAudit List the caller's organization's audit log
//
// Returns a page of the caller's organization's admin audit log, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Corresponds with GET /v1/org/audit (the `ListOrgAudit` operationId).
ListOrgAudit(ctx context.Context, params *ListOrgAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrgAuditCsv Download the caller's organization's whole audit log as CSV
//
// Downloads the caller's organization's entire org_audit_log history (not paged, unlike GET /v1/org/audit) as a CSV file, with the same detail redaction GET /v1/org/audit applies. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
//
// Corresponds with GET /v1/org/audit.csv (the `OrgAuditCsv` operationId).
OrgAuditCsv(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScheduleOrgCustodyWithBody Schedule the private to firm custody switch
//
// Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
ScheduleOrgCustodyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScheduleOrgCustody Schedule the private to firm custody switch
//
// Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
ScheduleOrgCustody(ctx context.Context, body ScheduleOrgCustodyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgInvoices List the caller's organization invoices
//
// Returns a page of the caller's organization's plan and pack invoices, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Corresponds with GET /v1/org/invoices (the `ListOrgInvoices` operationId).
ListOrgInvoices(ctx context.Context, params *ListOrgInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgLedger List the caller's organization's minute-pool ledger
//
// Returns a page of the caller's organization's shared minute pool history (holds, settles, releases, purchases), newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Corresponds with GET /v1/org/ledger (the `ListOrgLedger` operationId).
ListOrgLedger(ctx context.Context, params *ListOrgLedgerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrgLedgerCsv Download the caller's organization's whole minute-pool ledger as CSV
//
// Downloads the caller's organization's entire org_credit_ledger history (not paged, unlike GET /v1/org/ledger) as a CSV file. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
//
// Corresponds with GET /v1/org/ledger.csv (the `OrgLedgerCsv` operationId).
OrgLedgerCsv(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgMatters List the caller's organization's matter registry
//
// Returns up to 200 rows of the caller's organization's matter registry, ordered by code. Membership gated, not admin only: a member filing a transcript under an existing matter is offered this same list. Every row here is {id, code, status} for every caller, including an admin's own token -- the client a matter belongs to is /api admin only: GET /api/org/matters publishes client_id and the client's own code to an admin caller there, but this /v1 route never does, for any caller.
//
// Corresponds with GET /v1/org/matters (the `ListOrgMatters` operationId).
ListOrgMatters(ctx context.Context, params *ListOrgMattersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgMembers List the caller's organization members
//
// Returns a page of the caller's organization's members, most recently joined first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Corresponds with GET /v1/org/members (the `ListOrgMembers` operationId).
ListOrgMembers(ctx context.Context, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchOrgMemberWithBody Change a workspace member's rights or cap
//
// Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
PatchOrgMemberWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchOrgMember Change a workspace member's rights or cap
//
// Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
PatchOrgMember(ctx context.Context, userId string, body PatchOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgTranscripts List the caller's organization's firm-custody transcripts
//
// Returns a page of the caller's organization's firm-custody transcripts, newest first. Reviewer right only (org_reviewer_required if the caller lacks it). Never returns transcript body or title content beyond the title field; opening a transcript body through the transcript read routes is logged to the organization's access log and audit log, and emails the transcript's owner the first time a given reviewer opens it. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Corresponds with GET /v1/org/transcripts (the `ListOrgTranscripts` operationId).
ListOrgTranscripts(ctx context.Context, params *ListOrgTranscriptsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// LiftTranscriptHold Lift a legal hold on a transcript
//
// Reviewer only. Lifts a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
//
// Corresponds with DELETE /v1/org/transcripts/{id}/hold (the `LiftTranscriptHold` operationId).
LiftTranscriptHold(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PlaceTranscriptHold Place a legal hold on a transcript
//
// Reviewer only. Places a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
//
// Corresponds with POST /v1/org/transcripts/{id}/hold (the `PlaceTranscriptHold` operationId).
PlaceTranscriptHold(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrgUsageReport Aggregate the caller's organization's settled spend by member, matter or client
//
// Aggregates settled minute-pool spend over a bounded range (at most 366 days), grouped by member, by matter code or by client code, and priced at the workspace's own report-only rebill rate. This is the one org read that is not a list: it has no cursor and no paging, since it reports at most one row per member, per matter or per client. Billing gated, like GET /v1/org/ledger, because it aggregates the same org_credit_ledger table.
//
// Corresponds with GET /v1/org/usage (the `OrgUsageReport` operationId).
OrgUsageReport(ctx context.Context, params *OrgUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrgUsageReportCsv Download the caller's organization's settled spend by member, matter or client as CSV
//
// Same aggregation as GET /v1/org/usage, downloaded as a CSV file instead of a JSON body.
//
// Corresponds with GET /v1/org/usage.csv (the `OrgUsageReportCsv` operationId).
OrgUsageReportCsv(ctx context.Context, params *OrgUsageReportCsvParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTranscriptionContext Read the account's saved transcription context
//
// Returns every saved dictionary and prompt preset on the account. A dictionary teaches the transcriber names and terms it would otherwise mishear; a prompt preset is standing free-text guidance. Both can be selected by id on an upload. This response is not paginated and carries no cursor: an account may hold at most 50 dictionaries and 20 prompt presets, both enforced when they are created, so a single response is always the complete set.
//
// Corresponds with GET /v1/transcription-context (the `GetTranscriptionContext` operationId).
GetTranscriptionContext(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTranscripts List the account's transcripts
//
// Returns a page of the caller's transcripts, newest first, with metadata only (no body text). Pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
//
// Corresponds with GET /v1/transcripts (the `ListTranscripts` operationId).
ListTranscripts(ctx context.Context, params *ListTranscriptsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDeletedTranscripts List deletion records for removed transcripts
//
// Returns a page of the deletion records kept after a transcript is removed, whichever path removed it: an explicit delete, a scheduled deletion, the retention sweep or account deletion. Each record carries the transcript's title, duration and upload time, when and why it was deleted, and the stored deletion receipt. The transcript content itself is gone and cannot be recovered. Records are ordered by the deleted transcript's original upload time, newest first, so they interleave with GET /v1/transcripts by the same key. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint, including a cursor minted by GET /v1/transcripts.
//
// Corresponds with GET /v1/transcripts/deleted (the `ListDeletedTranscripts` operationId).
ListDeletedTranscripts(ctx context.Context, params *ListDeletedTranscriptsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTranscript Read one transcript's metadata and full body
//
// Returns one transcript's metadata plus its full structured body (the original transcription and any translations, keyed by locale). This is the reference way to fetch a transcript body from this API; format conversion such as SRT, WebVTT or plain text is the caller's job. This route reads the body through the same loader the rest of the backend uses, including its legacy full-envelope path for a transcript stored before the chunked-body protocol existed, so a caller can rely on this route regardless of which storage path actually served a given transcript. The backend's own code calls this whole-body route a rolling-deploy fallback for older clients, alongside the newer manifest and chunk endpoints; that label describes the route itself, not the legacy storage path, and this remains the frozen /v1 way to fetch any transcript's body.
//
// Corresponds with GET /v1/transcripts/{id} (the `GetTranscript` operationId).
GetTranscript(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUploadWithBody Start a new transcription upload and place a credit hold
//
// Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
CreateUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUpload Start a new transcription upload and place a credit hold
//
// Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
CreateUpload(ctx context.Context, body CreateUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteUploadWithBody Finish an upload and start transcription
//
// Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
CompleteUploadWithBody(ctx context.Context, job string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteUpload Finish an upload and start transcription
//
// Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
CompleteUpload(ctx context.Context, job string, body CompleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeartbeatUpload Keep a direct-to-R2 upload alive
//
// Refreshes the job's activity clock for a direct-to-R2 transfer, whose bytes never pass through this API and so never otherwise refresh it. Call this at an interval well under the 20 minute idle timeout for the whole duration of a long transfer, or the job is reaped mid-flight.
//
// Corresponds with POST /v1/uploads/{job}/heartbeat (the `HeartbeatUpload` operationId).
HeartbeatUpload(ctx context.Context, job string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUploadPartUrls Fetch a page of presigned direct-to-R2 part URLs
//
// Returns a fresh page of presigned PUT URLs for the given job's direct-to-R2 upload, starting at the requested part number. Presigned URLs expire, so a client resuming a stalled transfer should call this again rather than reusing URLs from create_upload's response. Answers 404 when direct-to-R2 uploads are not available for the job; send the parts through upload_part then.
//
// Corresponds with GET /v1/uploads/{job}/part-urls (the `GetUploadPartUrls` operationId).
GetUploadPartUrls(ctx context.Context, job string, params *GetUploadPartUrlsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadPartWithBody Upload one part of a job's audio through this API
//
// Sends one part's raw bytes to be written into the job's in-progress R2 multipart upload. Only needed when direct-to-R2 presigned URLs are unavailable, or as a fallback for a part whose presigned PUT failed. A repeated PUT of the same part number replaces that part rather than adding to the declared total, so retries are always safe. A Content-Length header is required: the body is streamed to storage and held to that length, and a part sent without one (chunked transfer) is refused with 400 bad_request.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/uploads/{job}/parts/{n} (the `UploadPart` operationId).
UploadPartWithBody(ctx context.Context, job string, n int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) BuyMinutesWithBodyWithResponse ¶
func (c *ClientWithResponses) BuyMinutesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BuyMinutesResponse, error)
BuyMinutesWithBodyWithResponse Charge the account's saved default card for a minute pack
Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
func (*ClientWithResponses) BuyMinutesWithResponse ¶
func (c *ClientWithResponses) BuyMinutesWithResponse(ctx context.Context, body BuyMinutesJSONRequestBody, reqEditors ...RequestEditorFn) (*BuyMinutesResponse, error)
BuyMinutesWithResponse Charge the account's saved default card for a minute pack
Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
func (*ClientWithResponses) ClaimAgentAccountWithBodyWithResponse ¶
func (c *ClientWithResponses) ClaimAgentAccountWithBodyWithResponse(ctx context.Context, signupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimAgentAccountResponse, error)
ClaimAgentAccountWithBodyWithResponse Claim a paid agent signup into a real account
Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
func (*ClientWithResponses) ClaimAgentAccountWithResponse ¶
func (c *ClientWithResponses) ClaimAgentAccountWithResponse(ctx context.Context, signupId string, body ClaimAgentAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimAgentAccountResponse, error)
ClaimAgentAccountWithResponse Claim a paid agent signup into a real account
Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
func (*ClientWithResponses) CompleteUploadWithBodyWithResponse ¶
func (c *ClientWithResponses) CompleteUploadWithBodyWithResponse(ctx context.Context, job string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteUploadResponse, error)
CompleteUploadWithBodyWithResponse Finish an upload and start transcription
Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
func (*ClientWithResponses) CompleteUploadWithResponse ¶
func (c *ClientWithResponses) CompleteUploadWithResponse(ctx context.Context, job string, body CompleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteUploadResponse, error)
CompleteUploadWithResponse Finish an upload and start transcription
Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
func (*ClientWithResponses) CreateAgentAccountSignupWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAgentAccountSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentAccountSignupResponse, error)
CreateAgentAccountSignupWithBodyWithResponse Start a headless, payment-first account signup
Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
func (*ClientWithResponses) CreateAgentAccountSignupWithResponse ¶
func (c *ClientWithResponses) CreateAgentAccountSignupWithResponse(ctx context.Context, body CreateAgentAccountSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentAccountSignupResponse, error)
CreateAgentAccountSignupWithResponse Start a headless, payment-first account signup
Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
func (*ClientWithResponses) CreateSetupSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSetupSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupSessionResponse, error)
CreateSetupSessionWithBodyWithResponse Open a hosted Checkout Session that saves a card with no charge
Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
func (*ClientWithResponses) CreateSetupSessionWithResponse ¶
func (c *ClientWithResponses) CreateSetupSessionWithResponse(ctx context.Context, body CreateSetupSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupSessionResponse, error)
CreateSetupSessionWithResponse Open a hosted Checkout Session that saves a card with no charge
Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
func (*ClientWithResponses) CreateUploadWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUploadResponse, error)
CreateUploadWithBodyWithResponse Start a new transcription upload and place a credit hold
Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
func (*ClientWithResponses) CreateUploadWithResponse ¶
func (c *ClientWithResponses) CreateUploadWithResponse(ctx context.Context, body CreateUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUploadResponse, error)
CreateUploadWithResponse Start a new transcription upload and place a credit hold
Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
func (*ClientWithResponses) GetAccountWithResponse ¶
func (c *ClientWithResponses) GetAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountResponse, error)
GetAccountWithResponse Read the account's balance and upload admission limits
Returns the caller's net credit balance, whether a card is on file, the account's data region, and the account's current daily-minutes and concurrent-jobs limits. Call this before create_upload to confirm there is enough balance and daily headroom for the upload about to be attempted.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/account (the `GetAccount` operationId).
func (*ClientWithResponses) GetJobWithResponse ¶
func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
GetJobWithResponse Read one transcription job
Returns one pipeline job's current state, billing figures, and transcription options summary. Poll this (or list_jobs) after complete_upload until state reaches done or failed.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/jobs/{id} (the `GetJob` operationId).
func (*ClientWithResponses) GetOrgWithResponse ¶
func (c *ClientWithResponses) GetOrgWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgResponse, error)
GetOrgWithResponse Read the caller's organization summary
A pure passthrough of GET /api/org's body: plan state and term, pool balance, retention policy, tax id, auto-renewal source and failure count, the workspace-wide default per-member cap, and the caller's own effective cap and month-to-date spend against the pool. Membership only, not admin -- renewal_user_id is visible to admins only.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org (the `GetOrg` operationId).
func (*ClientWithResponses) GetTranscriptWithResponse ¶
func (c *ClientWithResponses) GetTranscriptWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTranscriptResponse, error)
GetTranscriptWithResponse Read one transcript's metadata and full body
Returns one transcript's metadata plus its full structured body (the original transcription and any translations, keyed by locale). This is the reference way to fetch a transcript body from this API; format conversion such as SRT, WebVTT or plain text is the caller's job. This route reads the body through the same loader the rest of the backend uses, including its legacy full-envelope path for a transcript stored before the chunked-body protocol existed, so a caller can rely on this route regardless of which storage path actually served a given transcript. The backend's own code calls this whole-body route a rolling-deploy fallback for older clients, alongside the newer manifest and chunk endpoints; that label describes the route itself, not the legacy storage path, and this remains the frozen /v1 way to fetch any transcript's body.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/transcripts/{id} (the `GetTranscript` operationId).
func (*ClientWithResponses) GetTranscriptionContextWithResponse ¶
func (c *ClientWithResponses) GetTranscriptionContextWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTranscriptionContextResponse, error)
GetTranscriptionContextWithResponse Read the account's saved transcription context
Returns every saved dictionary and prompt preset on the account. A dictionary teaches the transcriber names and terms it would otherwise mishear; a prompt preset is standing free-text guidance. Both can be selected by id on an upload. This response is not paginated and carries no cursor: an account may hold at most 50 dictionaries and 20 prompt presets, both enforced when they are created, so a single response is always the complete set.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/transcription-context (the `GetTranscriptionContext` operationId).
func (*ClientWithResponses) GetUploadPartUrlsWithResponse ¶
func (c *ClientWithResponses) GetUploadPartUrlsWithResponse(ctx context.Context, job string, params *GetUploadPartUrlsParams, reqEditors ...RequestEditorFn) (*GetUploadPartUrlsResponse, error)
GetUploadPartUrlsWithResponse Fetch a page of presigned direct-to-R2 part URLs
Returns a fresh page of presigned PUT URLs for the given job's direct-to-R2 upload, starting at the requested part number. Presigned URLs expire, so a client resuming a stalled transfer should call this again rather than reusing URLs from create_upload's response. Answers 404 when direct-to-R2 uploads are not available for the job; send the parts through upload_part then.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/uploads/{job}/part-urls (the `GetUploadPartUrls` operationId).
func (*ClientWithResponses) HeartbeatUploadWithResponse ¶
func (c *ClientWithResponses) HeartbeatUploadWithResponse(ctx context.Context, job string, reqEditors ...RequestEditorFn) (*HeartbeatUploadResponse, error)
HeartbeatUploadWithResponse Keep a direct-to-R2 upload alive
Refreshes the job's activity clock for a direct-to-R2 transfer, whose bytes never pass through this API and so never otherwise refresh it. Call this at an interval well under the 20 minute idle timeout for the whole duration of a long transfer, or the job is reaped mid-flight.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/uploads/{job}/heartbeat (the `HeartbeatUpload` operationId).
func (*ClientWithResponses) LiftTranscriptHoldWithResponse ¶
func (c *ClientWithResponses) LiftTranscriptHoldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*LiftTranscriptHoldResponse, error)
LiftTranscriptHoldWithResponse Lift a legal hold on a transcript
Reviewer only. Lifts a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/org/transcripts/{id}/hold (the `LiftTranscriptHold` operationId).
func (*ClientWithResponses) ListCreditLedgerWithResponse ¶
func (c *ClientWithResponses) ListCreditLedgerWithResponse(ctx context.Context, params *ListCreditLedgerParams, reqEditors ...RequestEditorFn) (*ListCreditLedgerResponse, error)
ListCreditLedgerWithResponse List the account's credit ledger
Returns a page of the append-only credit ledger, newest first: every hold, settle, release, purchase and refund that has moved the account's second balance, with the job that spent them where there is one. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/billing/ledger (the `ListCreditLedger` operationId).
func (*ClientWithResponses) ListDeletedTranscriptsWithResponse ¶
func (c *ClientWithResponses) ListDeletedTranscriptsWithResponse(ctx context.Context, params *ListDeletedTranscriptsParams, reqEditors ...RequestEditorFn) (*ListDeletedTranscriptsResponse, error)
ListDeletedTranscriptsWithResponse List deletion records for removed transcripts
Returns a page of the deletion records kept after a transcript is removed, whichever path removed it: an explicit delete, a scheduled deletion, the retention sweep or account deletion. Each record carries the transcript's title, duration and upload time, when and why it was deleted, and the stored deletion receipt. The transcript content itself is gone and cannot be recovered. Records are ordered by the deleted transcript's original upload time, newest first, so they interleave with GET /v1/transcripts by the same key. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint, including a cursor minted by GET /v1/transcripts.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/transcripts/deleted (the `ListDeletedTranscripts` operationId).
func (*ClientWithResponses) ListHoldsWithResponse ¶
func (c *ClientWithResponses) ListHoldsWithResponse(ctx context.Context, params *ListHoldsParams, reqEditors ...RequestEditorFn) (*ListHoldsResponse, error)
ListHoldsWithResponse List the account's active credit holds
Returns a page of the seconds currently reserved by in-flight work: transcription jobs still running plus unresolved translation, insights and question holds, newest first. Held seconds are not spent yet and are already excluded from the account balance. This is not the ledger: a historical hold entry there may since have been settled or released, while every row here is still outstanding. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/billing/holds (the `ListHolds` operationId).
func (*ClientWithResponses) ListJobsWithResponse ¶
func (c *ClientWithResponses) ListJobsWithResponse(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*ListJobsResponse, error)
ListJobsWithResponse List the account's transcription jobs
Returns a page of pipeline jobs for the caller's account, newest first. Jobs accumulate for the lifetime of the account, not just while in flight, so this list pages: pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not. Pass active=1 to see only jobs that have not yet reached a terminal state.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/jobs (the `ListJobs` operationId).
func (*ClientWithResponses) ListOrgAuditWithResponse ¶
func (c *ClientWithResponses) ListOrgAuditWithResponse(ctx context.Context, params *ListOrgAuditParams, reqEditors ...RequestEditorFn) (*ListOrgAuditResponse, error)
ListOrgAuditWithResponse List the caller's organization's audit log
Returns a page of the caller's organization's admin audit log, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/audit (the `ListOrgAudit` operationId).
func (*ClientWithResponses) ListOrgInvoicesWithResponse ¶
func (c *ClientWithResponses) ListOrgInvoicesWithResponse(ctx context.Context, params *ListOrgInvoicesParams, reqEditors ...RequestEditorFn) (*ListOrgInvoicesResponse, error)
ListOrgInvoicesWithResponse List the caller's organization invoices
Returns a page of the caller's organization's plan and pack invoices, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/invoices (the `ListOrgInvoices` operationId).
func (*ClientWithResponses) ListOrgLedgerWithResponse ¶
func (c *ClientWithResponses) ListOrgLedgerWithResponse(ctx context.Context, params *ListOrgLedgerParams, reqEditors ...RequestEditorFn) (*ListOrgLedgerResponse, error)
ListOrgLedgerWithResponse List the caller's organization's minute-pool ledger
Returns a page of the caller's organization's shared minute pool history (holds, settles, releases, purchases), newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/ledger (the `ListOrgLedger` operationId).
func (*ClientWithResponses) ListOrgMattersWithResponse ¶
func (c *ClientWithResponses) ListOrgMattersWithResponse(ctx context.Context, params *ListOrgMattersParams, reqEditors ...RequestEditorFn) (*ListOrgMattersResponse, error)
ListOrgMattersWithResponse List the caller's organization's matter registry
Returns up to 200 rows of the caller's organization's matter registry, ordered by code. Membership gated, not admin only: a member filing a transcript under an existing matter is offered this same list. Every row here is {id, code, status} for every caller, including an admin's own token -- the client a matter belongs to is /api admin only: GET /api/org/matters publishes client_id and the client's own code to an admin caller there, but this /v1 route never does, for any caller.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/matters (the `ListOrgMatters` operationId).
func (*ClientWithResponses) ListOrgMembersWithResponse ¶
func (c *ClientWithResponses) ListOrgMembersWithResponse(ctx context.Context, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*ListOrgMembersResponse, error)
ListOrgMembersWithResponse List the caller's organization members
Returns a page of the caller's organization's members, most recently joined first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/members (the `ListOrgMembers` operationId).
func (*ClientWithResponses) ListOrgTranscriptsWithResponse ¶
func (c *ClientWithResponses) ListOrgTranscriptsWithResponse(ctx context.Context, params *ListOrgTranscriptsParams, reqEditors ...RequestEditorFn) (*ListOrgTranscriptsResponse, error)
ListOrgTranscriptsWithResponse List the caller's organization's firm-custody transcripts
Returns a page of the caller's organization's firm-custody transcripts, newest first. Reviewer right only (org_reviewer_required if the caller lacks it). Never returns transcript body or title content beyond the title field; opening a transcript body through the transcript read routes is logged to the organization's access log and audit log, and emails the transcript's owner the first time a given reviewer opens it. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/transcripts (the `ListOrgTranscripts` operationId).
func (*ClientWithResponses) ListPacksWithResponse ¶
func (c *ClientWithResponses) ListPacksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPacksResponse, error)
ListPacksWithResponse List purchasable minute packs
Returns the account's minute-pack catalogue, priced in the account's own currency, including any referral buyer bonus currently available. Read the id of the pack to buy from here before calling buy_minutes. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/billing/packs (the `ListPacks` operationId).
func (*ClientWithResponses) ListSavedCardsWithResponse ¶
func (c *ClientWithResponses) ListSavedCardsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSavedCardsResponse, error)
ListSavedCardsWithResponse List the account's saved payment methods
Returns every payment method saved on the account plus which one is the current default. This is the only source of a quick_payment_method_id for buy_minutes; it can only list a card already on file, not attach a new one. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/billing/cards (the `ListSavedCards` operationId).
func (*ClientWithResponses) ListTransactionsWithResponse ¶
func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*ListTransactionsResponse, error)
ListTransactionsWithResponse List the account's purchase history
Returns a page of the account's past purchases, newest first, each with its settlement status and public receipt reference. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/billing/transactions (the `ListTransactions` operationId).
func (*ClientWithResponses) ListTranscriptsWithResponse ¶
func (c *ClientWithResponses) ListTranscriptsWithResponse(ctx context.Context, params *ListTranscriptsParams, reqEditors ...RequestEditorFn) (*ListTranscriptsResponse, error)
ListTranscriptsWithResponse List the account's transcripts
Returns a page of the caller's transcripts, newest first, with metadata only (no body text). Pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/transcripts (the `ListTranscripts` operationId).
func (*ClientWithResponses) OrgAuditCsvWithResponse ¶
func (c *ClientWithResponses) OrgAuditCsvWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrgAuditCsvResponse, error)
OrgAuditCsvWithResponse Download the caller's organization's whole audit log as CSV
Downloads the caller's organization's entire org_audit_log history (not paged, unlike GET /v1/org/audit) as a CSV file, with the same detail redaction GET /v1/org/audit applies. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/audit.csv (the `OrgAuditCsv` operationId).
func (*ClientWithResponses) OrgLedgerCsvWithResponse ¶
func (c *ClientWithResponses) OrgLedgerCsvWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrgLedgerCsvResponse, error)
OrgLedgerCsvWithResponse Download the caller's organization's whole minute-pool ledger as CSV
Downloads the caller's organization's entire org_credit_ledger history (not paged, unlike GET /v1/org/ledger) as a CSV file. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/ledger.csv (the `OrgLedgerCsv` operationId).
func (*ClientWithResponses) OrgUsageReportCsvWithResponse ¶
func (c *ClientWithResponses) OrgUsageReportCsvWithResponse(ctx context.Context, params *OrgUsageReportCsvParams, reqEditors ...RequestEditorFn) (*OrgUsageReportCsvResponse, error)
OrgUsageReportCsvWithResponse Download the caller's organization's settled spend by member, matter or client as CSV
Same aggregation as GET /v1/org/usage, downloaded as a CSV file instead of a JSON body.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/usage.csv (the `OrgUsageReportCsv` operationId).
func (*ClientWithResponses) OrgUsageReportWithResponse ¶
func (c *ClientWithResponses) OrgUsageReportWithResponse(ctx context.Context, params *OrgUsageReportParams, reqEditors ...RequestEditorFn) (*OrgUsageReportResponse, error)
OrgUsageReportWithResponse Aggregate the caller's organization's settled spend by member, matter or client
Aggregates settled minute-pool spend over a bounded range (at most 366 days), grouped by member, by matter code or by client code, and priced at the workspace's own report-only rebill rate. This is the one org read that is not a list: it has no cursor and no paging, since it reports at most one row per member, per matter or per client. Billing gated, like GET /v1/org/ledger, because it aggregates the same org_credit_ledger table.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/org/usage (the `OrgUsageReport` operationId).
func (*ClientWithResponses) PatchOrgMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchOrgMemberWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgMemberResponse, error)
PatchOrgMemberWithBodyWithResponse Change a workspace member's rights or cap
Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
func (*ClientWithResponses) PatchOrgMemberWithResponse ¶
func (c *ClientWithResponses) PatchOrgMemberWithResponse(ctx context.Context, userId string, body PatchOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgMemberResponse, error)
PatchOrgMemberWithResponse Change a workspace member's rights or cap
Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
func (*ClientWithResponses) PlaceTranscriptHoldWithResponse ¶
func (c *ClientWithResponses) PlaceTranscriptHoldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlaceTranscriptHoldResponse, error)
PlaceTranscriptHoldWithResponse Place a legal hold on a transcript
Reviewer only. Places a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/org/transcripts/{id}/hold (the `PlaceTranscriptHold` operationId).
func (*ClientWithResponses) RotateAgentCredentialsWithResponse ¶
func (c *ClientWithResponses) RotateAgentCredentialsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RotateAgentCredentialsResponse, error)
RotateAgentCredentialsWithResponse Rotate the calling agent PAT
Atomically mints a successor personal access token for the one that authenticated this request. A machine account has no password and no usable mailbox, so this is its only way to rotate a leaked credential. The successor keeps the predecessor's scopes, billing_enabled flag, name, client_label, and expiry policy; only the secret changes. The predecessor is not revoked at once. It stays in a grace period that ends at the successor's first successful request or one hour after the rotation, whichever comes first. During that period it authenticates only this route, and every other route answers it with a bare 401. If the 201 is lost, call this route again with the predecessor while the successor is still unused: the response carries the same pat_id and a NEW secret, and the earlier successor secret stops working. Keep the predecessor until the successor has made one successful call, because a late-landing earlier retry can replace the successor's secret. Then make one call with the successor right away to retire the predecessor. Once the successor has been used or the hour has passed, the predecessor is refused here as well. This route references no token but the one that called it and that token's own successor: it cannot list, mint, or revoke any other credential.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent/credentials/rotate (the `RotateAgentCredentials` operationId).
func (*ClientWithResponses) ScheduleOrgCustodyWithBodyWithResponse ¶
func (c *ClientWithResponses) ScheduleOrgCustodyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScheduleOrgCustodyResponse, error)
ScheduleOrgCustodyWithBodyWithResponse Schedule the private to firm custody switch
Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
func (*ClientWithResponses) ScheduleOrgCustodyWithResponse ¶
func (c *ClientWithResponses) ScheduleOrgCustodyWithResponse(ctx context.Context, body ScheduleOrgCustodyJSONRequestBody, reqEditors ...RequestEditorFn) (*ScheduleOrgCustodyResponse, error)
ScheduleOrgCustodyWithResponse Schedule the private to firm custody switch
Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
func (*ClientWithResponses) SetDefaultCardWithBodyWithResponse ¶
func (c *ClientWithResponses) SetDefaultCardWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDefaultCardResponse, error)
SetDefaultCardWithBodyWithResponse Switch which saved card Quick Buy charges
Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
func (*ClientWithResponses) SetDefaultCardWithResponse ¶
func (c *ClientWithResponses) SetDefaultCardWithResponse(ctx context.Context, body SetDefaultCardJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDefaultCardResponse, error)
SetDefaultCardWithResponse Switch which saved card Quick Buy charges
Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
func (*ClientWithResponses) UploadPartWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadPartWithBodyWithResponse(ctx context.Context, job string, n int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartResponse, error)
UploadPartWithBodyWithResponse Upload one part of a job's audio through this API
Sends one part's raw bytes to be written into the job's in-progress R2 multipart upload. Only needed when direct-to-R2 presigned URLs are unavailable, or as a fallback for a part whose presigned PUT failed. A repeated PUT of the same part number replaces that part rather than adding to the declared total, so retries are always safe. A Content-Length header is required: the body is streamed to storage and held to that length, and a part sent without one (chunked transfer) is refused with 400 bad_request.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/uploads/{job}/parts/{n} (the `UploadPart` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAccountWithResponse Read the account's balance and upload admission limits
//
// Returns the caller's net credit balance, whether a card is on file, the account's data region, and the account's current daily-minutes and concurrent-jobs limits. Call this before create_upload to confirm there is enough balance and daily headroom for the upload about to be attempted.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/account (the `GetAccount` operationId).
GetAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountResponse, error)
// CreateAgentAccountSignupWithBodyWithResponse Start a headless, payment-first account signup
//
// Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
CreateAgentAccountSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentAccountSignupResponse, error)
// CreateAgentAccountSignupWithResponse Start a headless, payment-first account signup
//
// Opens a hosted Stripe Checkout Session for a payment-first, headless account signup. No account and no session cookie exist yet: complete checkout_url with your own browser automation, then claim the account with claim_secret at POST /v1/agent/accounts/{signup_id}/claim. Every field is validated before any Stripe call, followed by the same restricted-jurisdiction and allowlist gates the human signup paths apply. accept_terms_version must equal the server's current policy version, returned in the policy_version_stale error when it does not match. pack selects a minute pack by id; amount and currency come back server derived and must never be sent in the request. data_region is derived from your network location and an optional hint is honored only when it agrees with that derivation. signup_id is region-prefixed (hsr1:<region>:<id>) and must be presented back verbatim to the claim route, so the request reaches the same regional backend that holds the row. Set dry_run to true to validate the request and get back a synthetic 200 response with no Stripe session created and no charge possible, for rehearsing the shape before spending real money; a dry run signup_id is never region-prefixed and can never be claimed.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent/accounts (the `CreateAgentAccountSignup` operationId).
CreateAgentAccountSignupWithResponse(ctx context.Context, body CreateAgentAccountSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentAccountSignupResponse, error)
// ClaimAgentAccountWithBodyWithResponse Claim a paid agent signup into a real account
//
// Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
ClaimAgentAccountWithBodyWithResponse(ctx context.Context, signupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimAgentAccountResponse, error)
// ClaimAgentAccountWithResponse Claim a paid agent signup into a real account
//
// Exchanges a paid, unclaimed agent signup for the account it pays for. Presents the claim_secret returned once by POST /v1/agent/accounts; a wrong secret, an unknown signup_id, an already claimed signup whose token can no longer be re-minted, a refunded signup, and an expired signup all answer the identical agent_claim_invalid error so a caller can never learn which of those is true. Only once that secret checks out does payment state matter: a signup whose Checkout Session has not settled to paid answers wrong_state instead. A successful claim creates exactly one account with a synthetic, unresolvable login identity, grants the paid pack once, never twice, even on a retried request, and mints one personal access token with the account's own agent scopes. Only the token's hash is stored. If the 201 is lost, repeat the request with the same claim_secret: while that token has not yet made a successful request, and for up to one hour after it was minted, the retry answers 201 with the same user_id, no second pack grant and a NEW token for the same account; the lost token stops working. Making one successful call with the new token ends the window, and the same request then answers agent_claim_invalid again. A late-landing earlier retry can replace the secret of the token you hold, so make that one call right away, and if it answers 401 within the hour, repeat the claim. A retry that overlaps a first claim still in flight answers rate_limited with Retry-After: 2 or re-mints. Until the token is first used or one hour has passed, the claim_secret works as a credential for the account, so keep it private.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent/accounts/{signup_id}/claim (the `ClaimAgentAccount` operationId).
ClaimAgentAccountWithResponse(ctx context.Context, signupId string, body ClaimAgentAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimAgentAccountResponse, error)
// RotateAgentCredentialsWithResponse Rotate the calling agent PAT
//
// Atomically mints a successor personal access token for the one that authenticated this request. A machine account has no password and no usable mailbox, so this is its only way to rotate a leaked credential. The successor keeps the predecessor's scopes, billing_enabled flag, name, client_label, and expiry policy; only the secret changes. The predecessor is not revoked at once. It stays in a grace period that ends at the successor's first successful request or one hour after the rotation, whichever comes first. During that period it authenticates only this route, and every other route answers it with a bare 401. If the 201 is lost, call this route again with the predecessor while the successor is still unused: the response carries the same pat_id and a NEW secret, and the earlier successor secret stops working. Keep the predecessor until the successor has made one successful call, because a late-landing earlier retry can replace the successor's secret. Then make one call with the successor right away to retire the predecessor. Once the successor has been used or the hour has passed, the predecessor is refused here as well. This route references no token but the one that called it and that token's own successor: it cannot list, mint, or revoke any other credential.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent/credentials/rotate (the `RotateAgentCredentials` operationId).
RotateAgentCredentialsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RotateAgentCredentialsResponse, error)
// ListSavedCardsWithResponse List the account's saved payment methods
//
// Returns every payment method saved on the account plus which one is the current default. This is the only source of a quick_payment_method_id for buy_minutes; it can only list a card already on file, not attach a new one. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/billing/cards (the `ListSavedCards` operationId).
ListSavedCardsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSavedCardsResponse, error)
// SetDefaultCardWithBodyWithResponse Switch which saved card Quick Buy charges
//
// Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
SetDefaultCardWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDefaultCardResponse, error)
// SetDefaultCardWithResponse Switch which saved card Quick Buy charges
//
// Sets the given payment method as the account's default, which is the card buy_minutes charges when a caller sends its id as quick_payment_method_id. Use this to switch the default or to pick among multiple eligible cards; buy_minutes only adopts one automatically when the account has no default at all. The id must belong to a payment method already on file, from list_saved_cards; a well formed id this account does not own answers not found, exactly like one that is not a payment method at all. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/billing/cards/default (the `SetDefaultCard` operationId).
SetDefaultCardWithResponse(ctx context.Context, body SetDefaultCardJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDefaultCardResponse, error)
// ListHoldsWithResponse List the account's active credit holds
//
// Returns a page of the seconds currently reserved by in-flight work: transcription jobs still running plus unresolved translation, insights and question holds, newest first. Held seconds are not spent yet and are already excluded from the account balance. This is not the ledger: a historical hold entry there may since have been settled or released, while every row here is still outstanding. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/billing/holds (the `ListHolds` operationId).
ListHoldsWithResponse(ctx context.Context, params *ListHoldsParams, reqEditors ...RequestEditorFn) (*ListHoldsResponse, error)
// ListCreditLedgerWithResponse List the account's credit ledger
//
// Returns a page of the append-only credit ledger, newest first: every hold, settle, release, purchase and refund that has moved the account's second balance, with the job that spent them where there is one. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/billing/ledger (the `ListCreditLedger` operationId).
ListCreditLedgerWithResponse(ctx context.Context, params *ListCreditLedgerParams, reqEditors ...RequestEditorFn) (*ListCreditLedgerResponse, error)
// ListPacksWithResponse List purchasable minute packs
//
// Returns the account's minute-pack catalogue, priced in the account's own currency, including any referral buyer bonus currently available. Read the id of the pack to buy from here before calling buy_minutes. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/billing/packs (the `ListPacks` operationId).
ListPacksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPacksResponse, error)
// BuyMinutesWithBodyWithResponse Charge the account's saved default card for a minute pack
//
// Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
BuyMinutesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BuyMinutesResponse, error)
// BuyMinutesWithResponse Charge the account's saved default card for a minute pack
//
// Charges a saved, fast_checkout_eligible payment method for one pack and credits the account's balance on success. quick_payment_method_id must be the account's current default, except when the account has no default at all, in which case naming an eligible card here makes it the new default. quick_payment_method_id is required: this API can only complete a purchase against a card already on file and has no way to open an interactive Checkout session, so an agent cannot use it to attach a new card. list_saved_cards can only list a card already on file, not create one; add a card first, either through the Hushscript app or by opening the hosted Checkout session create_setup_session returns. A request with no quick_payment_method_id, or a Quick Buy charge that needed authentication, a different payment method, or was declined, is refused outright rather than opened as a Checkout session nobody in this flow could complete. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/billing/purchase (the `BuyMinutes` operationId).
BuyMinutesWithResponse(ctx context.Context, body BuyMinutesJSONRequestBody, reqEditors ...RequestEditorFn) (*BuyMinutesResponse, error)
// CreateSetupSessionWithBodyWithResponse Open a hosted Checkout Session that saves a card with no charge
//
// Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
CreateSetupSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupSessionResponse, error)
// CreateSetupSessionWithResponse Open a hosted Checkout Session that saves a card with no charge
//
// Creates a Stripe Checkout Session in setup mode and returns its checkout_url. Open that URL in a browser you control (your own automation, not this API) so Stripe can render the card form and handle any bank authentication itself; card details never pass through this API. No charge is made. Once the caller completes the hosted page, the saved card becomes available from list_saved_cards and can be set as the default with set_default_card; list_saved_cards can lag a just-completed Session by up to 30 seconds, since nothing calls back into this API when the hosted page finishes, so retry rather than concluding the save failed. expires_at is when the Session stops accepting a card; call this endpoint again for a fresh link after that. idempotency_key is optional: omit it and every call opens a new Session, which is safe since a setup Session is never charged and expires on its own; supply your own key only if you want a retried call to land on the same Session instead. Needs the billing scope, the token's own buy-minutes flag (set when the token is created), AND machine billing switched on for the account in the Hushscript app; any one off is a pat_scope_missing (code 2023) refusal, whichever it was.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/billing/setup-session (the `CreateSetupSession` operationId).
CreateSetupSessionWithResponse(ctx context.Context, body CreateSetupSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupSessionResponse, error)
// ListTransactionsWithResponse List the account's purchase history
//
// Returns a page of the account's past purchases, newest first, each with its settlement status and public receipt reference. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/billing/transactions (the `ListTransactions` operationId).
ListTransactionsWithResponse(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*ListTransactionsResponse, error)
// ListJobsWithResponse List the account's transcription jobs
//
// Returns a page of pipeline jobs for the caller's account, newest first. Jobs accumulate for the lifetime of the account, not just while in flight, so this list pages: pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not. Pass active=1 to see only jobs that have not yet reached a terminal state.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/jobs (the `ListJobs` operationId).
ListJobsWithResponse(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*ListJobsResponse, error)
// GetJobWithResponse Read one transcription job
//
// Returns one pipeline job's current state, billing figures, and transcription options summary. Poll this (or list_jobs) after complete_upload until state reaches done or failed.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/jobs/{id} (the `GetJob` operationId).
GetJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
// GetOrgWithResponse Read the caller's organization summary
//
// A pure passthrough of GET /api/org's body: plan state and term, pool balance, retention policy, tax id, auto-renewal source and failure count, the workspace-wide default per-member cap, and the caller's own effective cap and month-to-date spend against the pool. Membership only, not admin -- renewal_user_id is visible to admins only.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org (the `GetOrg` operationId).
GetOrgWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgResponse, error)
// ListOrgAuditWithResponse List the caller's organization's audit log
//
// Returns a page of the caller's organization's admin audit log, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/audit (the `ListOrgAudit` operationId).
ListOrgAuditWithResponse(ctx context.Context, params *ListOrgAuditParams, reqEditors ...RequestEditorFn) (*ListOrgAuditResponse, error)
// OrgAuditCsvWithResponse Download the caller's organization's whole audit log as CSV
//
// Downloads the caller's organization's entire org_audit_log history (not paged, unlike GET /v1/org/audit) as a CSV file, with the same detail redaction GET /v1/org/audit applies. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/audit.csv (the `OrgAuditCsv` operationId).
OrgAuditCsvWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrgAuditCsvResponse, error)
// ScheduleOrgCustodyWithBodyWithResponse Schedule the private to firm custody switch
//
// Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
ScheduleOrgCustodyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ScheduleOrgCustodyResponse, error)
// ScheduleOrgCustodyWithResponse Schedule the private to firm custody switch
//
// Org admin only. Schedules the workspace's custody mode to switch from private to firm a fixed notice period from now, and mails every member. Nothing changes immediately: a daily background lane flips the mode once the notice period expires. Only the value firm is accepted; a switch from firm back to private is not supported here, since transcripts already stamped under firm custody would silently change custodian.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/org/custody (the `ScheduleOrgCustody` operationId).
ScheduleOrgCustodyWithResponse(ctx context.Context, body ScheduleOrgCustodyJSONRequestBody, reqEditors ...RequestEditorFn) (*ScheduleOrgCustodyResponse, error)
// ListOrgInvoicesWithResponse List the caller's organization invoices
//
// Returns a page of the caller's organization's plan and pack invoices, newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/invoices (the `ListOrgInvoices` operationId).
ListOrgInvoicesWithResponse(ctx context.Context, params *ListOrgInvoicesParams, reqEditors ...RequestEditorFn) (*ListOrgInvoicesResponse, error)
// ListOrgLedgerWithResponse List the caller's organization's minute-pool ledger
//
// Returns a page of the caller's organization's shared minute pool history (holds, settles, releases, purchases), newest first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/ledger (the `ListOrgLedger` operationId).
ListOrgLedgerWithResponse(ctx context.Context, params *ListOrgLedgerParams, reqEditors ...RequestEditorFn) (*ListOrgLedgerResponse, error)
// OrgLedgerCsvWithResponse Download the caller's organization's whole minute-pool ledger as CSV
//
// Downloads the caller's organization's entire org_credit_ledger history (not paged, unlike GET /v1/org/ledger) as a CSV file. Sets X-Hushscript-Csv-Truncated: 1 if the export hit its internal page ceiling.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/ledger.csv (the `OrgLedgerCsv` operationId).
OrgLedgerCsvWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrgLedgerCsvResponse, error)
// ListOrgMattersWithResponse List the caller's organization's matter registry
//
// Returns up to 200 rows of the caller's organization's matter registry, ordered by code. Membership gated, not admin only: a member filing a transcript under an existing matter is offered this same list. Every row here is {id, code, status} for every caller, including an admin's own token -- the client a matter belongs to is /api admin only: GET /api/org/matters publishes client_id and the client's own code to an admin caller there, but this /v1 route never does, for any caller.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/matters (the `ListOrgMatters` operationId).
ListOrgMattersWithResponse(ctx context.Context, params *ListOrgMattersParams, reqEditors ...RequestEditorFn) (*ListOrgMattersResponse, error)
// ListOrgMembersWithResponse List the caller's organization members
//
// Returns a page of the caller's organization's members, most recently joined first. Org admin only. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/members (the `ListOrgMembers` operationId).
ListOrgMembersWithResponse(ctx context.Context, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*ListOrgMembersResponse, error)
// PatchOrgMemberWithBodyWithResponse Change a workspace member's rights or cap
//
// Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
PatchOrgMemberWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgMemberResponse, error)
// PatchOrgMemberWithResponse Change a workspace member's rights or cap
//
// Admin only. Sets any subset of the member's is_admin, is_billing and is_reviewer rights, and their per-member monthly cap in seconds. At least one field must be present. Demoting the workspace's last remaining admin is refused, evaluated inside the same atomic update so two concurrent demotions cannot both succeed and strand the workspace with no admin.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/org/members/{user_id} (the `PatchOrgMember` operationId).
PatchOrgMemberWithResponse(ctx context.Context, userId string, body PatchOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgMemberResponse, error)
// ListOrgTranscriptsWithResponse List the caller's organization's firm-custody transcripts
//
// Returns a page of the caller's organization's firm-custody transcripts, newest first. Reviewer right only (org_reviewer_required if the caller lacks it). Never returns transcript body or title content beyond the title field; opening a transcript body through the transcript read routes is logged to the organization's access log and audit log, and emails the transcript's owner the first time a given reviewer opens it. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/transcripts (the `ListOrgTranscripts` operationId).
ListOrgTranscriptsWithResponse(ctx context.Context, params *ListOrgTranscriptsParams, reqEditors ...RequestEditorFn) (*ListOrgTranscriptsResponse, error)
// LiftTranscriptHoldWithResponse Lift a legal hold on a transcript
//
// Reviewer only. Lifts a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/org/transcripts/{id}/hold (the `LiftTranscriptHold` operationId).
LiftTranscriptHoldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*LiftTranscriptHoldResponse, error)
// PlaceTranscriptHoldWithResponse Place a legal hold on a transcript
//
// Reviewer only. Places a legal hold on one transcript in the caller's firm-custody workspace. A held transcript is exempt from the retention sweep, the retention re-clamp sweep and ordinary deletion, and its body, translations, cleaned text and AI outputs cannot be edited or regenerated (409 transcript_legal_hold), until the hold is lifted.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/org/transcripts/{id}/hold (the `PlaceTranscriptHold` operationId).
PlaceTranscriptHoldWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlaceTranscriptHoldResponse, error)
// OrgUsageReportWithResponse Aggregate the caller's organization's settled spend by member, matter or client
//
// Aggregates settled minute-pool spend over a bounded range (at most 366 days), grouped by member, by matter code or by client code, and priced at the workspace's own report-only rebill rate. This is the one org read that is not a list: it has no cursor and no paging, since it reports at most one row per member, per matter or per client. Billing gated, like GET /v1/org/ledger, because it aggregates the same org_credit_ledger table.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/usage (the `OrgUsageReport` operationId).
OrgUsageReportWithResponse(ctx context.Context, params *OrgUsageReportParams, reqEditors ...RequestEditorFn) (*OrgUsageReportResponse, error)
// OrgUsageReportCsvWithResponse Download the caller's organization's settled spend by member, matter or client as CSV
//
// Same aggregation as GET /v1/org/usage, downloaded as a CSV file instead of a JSON body.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/org/usage.csv (the `OrgUsageReportCsv` operationId).
OrgUsageReportCsvWithResponse(ctx context.Context, params *OrgUsageReportCsvParams, reqEditors ...RequestEditorFn) (*OrgUsageReportCsvResponse, error)
// GetTranscriptionContextWithResponse Read the account's saved transcription context
//
// Returns every saved dictionary and prompt preset on the account. A dictionary teaches the transcriber names and terms it would otherwise mishear; a prompt preset is standing free-text guidance. Both can be selected by id on an upload. This response is not paginated and carries no cursor: an account may hold at most 50 dictionaries and 20 prompt presets, both enforced when they are created, so a single response is always the complete set.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/transcription-context (the `GetTranscriptionContext` operationId).
GetTranscriptionContextWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTranscriptionContextResponse, error)
// ListTranscriptsWithResponse List the account's transcripts
//
// Returns a page of the caller's transcripts, newest first, with metadata only (no body text). Pass the next_cursor value from one page as the cursor parameter of the next request to page forward; the cursor is opaque and this API refuses one it did not mint rather than silently restarting at page one, since a caller that trusted a silent restart would believe it had paged forward when it had not.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/transcripts (the `ListTranscripts` operationId).
ListTranscriptsWithResponse(ctx context.Context, params *ListTranscriptsParams, reqEditors ...RequestEditorFn) (*ListTranscriptsResponse, error)
// ListDeletedTranscriptsWithResponse List deletion records for removed transcripts
//
// Returns a page of the deletion records kept after a transcript is removed, whichever path removed it: an explicit delete, a scheduled deletion, the retention sweep or account deletion. Each record carries the transcript's title, duration and upload time, when and why it was deleted, and the stored deletion receipt. The transcript content itself is gone and cannot be recovered. Records are ordered by the deleted transcript's original upload time, newest first, so they interleave with GET /v1/transcripts by the same key. Pass the next_cursor value from one page as the cursor parameter of the next request to page further back; the cursor is opaque and this API refuses one it did not mint, including a cursor minted by GET /v1/transcripts.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/transcripts/deleted (the `ListDeletedTranscripts` operationId).
ListDeletedTranscriptsWithResponse(ctx context.Context, params *ListDeletedTranscriptsParams, reqEditors ...RequestEditorFn) (*ListDeletedTranscriptsResponse, error)
// GetTranscriptWithResponse Read one transcript's metadata and full body
//
// Returns one transcript's metadata plus its full structured body (the original transcription and any translations, keyed by locale). This is the reference way to fetch a transcript body from this API; format conversion such as SRT, WebVTT or plain text is the caller's job. This route reads the body through the same loader the rest of the backend uses, including its legacy full-envelope path for a transcript stored before the chunked-body protocol existed, so a caller can rely on this route regardless of which storage path actually served a given transcript. The backend's own code calls this whole-body route a rolling-deploy fallback for older clients, alongside the newer manifest and chunk endpoints; that label describes the route itself, not the legacy storage path, and this remains the frozen /v1 way to fetch any transcript's body.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/transcripts/{id} (the `GetTranscript` operationId).
GetTranscriptWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTranscriptResponse, error)
// CreateUploadWithBodyWithResponse Start a new transcription upload and place a credit hold
//
// Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
CreateUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUploadResponse, error)
// CreateUploadWithResponse Start a new transcription upload and place a credit hold
//
// Declares the size and duration of a new audio upload, places a credit hold for the billable seconds (duration plus any transcription_options surcharge: medical_mode or vet_mode, multichannel, translation), and returns a job id plus, when direct-to-R2 uploads are available, a first page of presigned part URLs. Resending the same idempotency_key returns the already-created job instead of opening a second one. Long direct-to-R2 transfers must call heartbeat_upload periodically or the job is reaped as idle.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/uploads (the `CreateUpload` operationId).
CreateUploadWithResponse(ctx context.Context, body CreateUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUploadResponse, error)
// CompleteUploadWithBodyWithResponse Finish an upload and start transcription
//
// Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
CompleteUploadWithBodyWithResponse(ctx context.Context, job string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteUploadResponse, error)
// CompleteUploadWithResponse Finish an upload and start transcription
//
// Marks every declared part as uploaded, probes the assembled object's exact duration, and reconciles the credit hold to the verified billable seconds; if the balance cannot cover the verified total the job is rejected and the hold released rather than run over budget. On success the job moves to queued or processing (reported as queued while verification is still pending) for transcription.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/uploads/{job}/complete (the `CompleteUpload` operationId).
CompleteUploadWithResponse(ctx context.Context, job string, body CompleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteUploadResponse, error)
// HeartbeatUploadWithResponse Keep a direct-to-R2 upload alive
//
// Refreshes the job's activity clock for a direct-to-R2 transfer, whose bytes never pass through this API and so never otherwise refresh it. Call this at an interval well under the 20 minute idle timeout for the whole duration of a long transfer, or the job is reaped mid-flight.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/uploads/{job}/heartbeat (the `HeartbeatUpload` operationId).
HeartbeatUploadWithResponse(ctx context.Context, job string, reqEditors ...RequestEditorFn) (*HeartbeatUploadResponse, error)
// GetUploadPartUrlsWithResponse Fetch a page of presigned direct-to-R2 part URLs
//
// Returns a fresh page of presigned PUT URLs for the given job's direct-to-R2 upload, starting at the requested part number. Presigned URLs expire, so a client resuming a stalled transfer should call this again rather than reusing URLs from create_upload's response. Answers 404 when direct-to-R2 uploads are not available for the job; send the parts through upload_part then.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/uploads/{job}/part-urls (the `GetUploadPartUrls` operationId).
GetUploadPartUrlsWithResponse(ctx context.Context, job string, params *GetUploadPartUrlsParams, reqEditors ...RequestEditorFn) (*GetUploadPartUrlsResponse, error)
// UploadPartWithBodyWithResponse Upload one part of a job's audio through this API
//
// Sends one part's raw bytes to be written into the job's in-progress R2 multipart upload. Only needed when direct-to-R2 presigned URLs are unavailable, or as a fallback for a part whose presigned PUT failed. A repeated PUT of the same part number replaces that part rather than adding to the declared total, so retries are always safe. A Content-Length header is required: the body is streamed to storage and held to that length, and a part sent without one (chunked transfer) is refused with 400 bad_request.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/uploads/{job}/parts/{n} (the `UploadPart` operationId).
UploadPartWithBodyWithResponse(ctx context.Context, job string, n int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompleteUploadJSONBody ¶
type CompleteUploadJSONBody struct {
// Parts The part number and ETag of every part a direct-to-R2 client uploaded. Omit entirely for a worker-uploaded job.
Parts *[]CompleteUploadRequestPart `json:"parts,omitempty"`
}
CompleteUploadJSONBody defines parameters for CompleteUpload.
type CompleteUploadJSONRequestBody ¶
type CompleteUploadJSONRequestBody CompleteUploadJSONBody
CompleteUploadJSONRequestBody defines body for CompleteUpload for application/json ContentType.
type CompleteUploadRequestPart ¶ added in v1.1.0
CompleteUploadRequestPart defines parameters for CompleteUpload.
type CompleteUploadResponse ¶
type CompleteUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UploadCompleteResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CompleteUploadResponse429Headers
}
func ParseCompleteUploadResponse ¶
func ParseCompleteUploadResponse(rsp *http.Response) (*CompleteUploadResponse, error)
ParseCompleteUploadResponse parses an HTTP response from a CompleteUploadWithResponse call
func (CompleteUploadResponse) ContentType ¶
func (r CompleteUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompleteUploadResponse) GetBody ¶
func (r CompleteUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CompleteUploadResponse) GetJSON200 ¶
func (r CompleteUploadResponse) GetJSON200() *UploadCompleteResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CompleteUploadResponse) GetJSON400 ¶
func (r CompleteUploadResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CompleteUploadResponse) GetJSON401 ¶
func (r CompleteUploadResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CompleteUploadResponse) GetJSON403 ¶
func (r CompleteUploadResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CompleteUploadResponse) GetJSON404 ¶
func (r CompleteUploadResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CompleteUploadResponse) GetJSON409 ¶
func (r CompleteUploadResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CompleteUploadResponse) GetJSON422 ¶
func (r CompleteUploadResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CompleteUploadResponse) GetJSON429 ¶
func (r CompleteUploadResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CompleteUploadResponse) GetJSON500 ¶
func (r CompleteUploadResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CompleteUploadResponse) Status ¶
func (r CompleteUploadResponse) Status() string
Status returns HTTPResponse.Status
func (CompleteUploadResponse) StatusCode ¶
func (r CompleteUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CompleteUploadResponse429Headers ¶
type CompleteUploadResponse429Headers struct {
RetryAfter *int
}
CompleteUploadResponse429Headers the declared response headers of an HTTP 429 response for CompleteUpload
type ContextDictionary ¶
type ContextDictionary struct {
CreatedAt int `json:"created_at"`
// Description Free-text description. Empty when unset; never null.
Description string `json:"description"`
Entries []DictionaryEntry `json:"entries"`
Id string `json:"id"`
// IsDefault Whether this dictionary is applied to an upload that selects none explicitly. At most one dictionary is the default.
IsDefault bool `json:"is_default"`
// LanguageCode The language this applies to: all, or one of the supported source language codes. Never empty and never null: unset is stored as all.
LanguageCode string `json:"language_code"`
Name string `json:"name"`
// Terms The flat recognition terms this dictionary compiles into. Derived from entries when entries exist (every canonical spelling and its variants, deduplicated); otherwise the legacy flat list stored before entries existed.
Terms []string `json:"terms"`
UpdatedAt int `json:"updated_at"`
}
ContextDictionary defines model for ContextDictionary.
type ContextPromptPreset ¶
type ContextPromptPreset struct {
Body string `json:"body"`
CreatedAt int `json:"created_at"`
// Description Free-text description. Empty when unset; never null.
Description string `json:"description"`
Id string `json:"id"`
IsDefault bool `json:"is_default"`
// LanguageCode The language this applies to: all, or one of the supported source language codes. Never empty and never null: unset is stored as all.
LanguageCode string `json:"language_code"`
Name string `json:"name"`
UpdatedAt int `json:"updated_at"`
}
ContextPromptPreset defines model for ContextPromptPreset.
type CreateAgentAccountSignupJSONRequestBody ¶
type CreateAgentAccountSignupJSONRequestBody = AgentSignupRequest
CreateAgentAccountSignupJSONRequestBody defines body for CreateAgentAccountSignup for application/json ContentType.
type CreateAgentAccountSignupResponse ¶
type CreateAgentAccountSignupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentSignupResponse
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AgentSignupResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateAgentAccountSignupResponse429Headers
}
func ParseCreateAgentAccountSignupResponse ¶
func ParseCreateAgentAccountSignupResponse(rsp *http.Response) (*CreateAgentAccountSignupResponse, error)
ParseCreateAgentAccountSignupResponse parses an HTTP response from a CreateAgentAccountSignupWithResponse call
func (CreateAgentAccountSignupResponse) ContentType ¶
func (r CreateAgentAccountSignupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAgentAccountSignupResponse) GetBody ¶
func (r CreateAgentAccountSignupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAgentAccountSignupResponse) GetJSON200 ¶
func (r CreateAgentAccountSignupResponse) GetJSON200() *AgentSignupResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON201 ¶
func (r CreateAgentAccountSignupResponse) GetJSON201() *AgentSignupResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON400 ¶
func (r CreateAgentAccountSignupResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON403 ¶
func (r CreateAgentAccountSignupResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON409 ¶
func (r CreateAgentAccountSignupResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON422 ¶
func (r CreateAgentAccountSignupResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON429 ¶
func (r CreateAgentAccountSignupResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON500 ¶
func (r CreateAgentAccountSignupResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateAgentAccountSignupResponse) GetJSON502 ¶
func (r CreateAgentAccountSignupResponse) GetJSON502() *Error
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (CreateAgentAccountSignupResponse) Status ¶
func (r CreateAgentAccountSignupResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAgentAccountSignupResponse) StatusCode ¶
func (r CreateAgentAccountSignupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAgentAccountSignupResponse429Headers ¶
type CreateAgentAccountSignupResponse429Headers struct {
RetryAfter *int
}
CreateAgentAccountSignupResponse429Headers the declared response headers of an HTTP 429 response for CreateAgentAccountSignup
type CreateSetupSessionJSONBody ¶
type CreateSetupSessionJSONBody struct {
// IdempotencyKey Optional client-minted key so a retried request reuses one Session instead of opening a new one. Omit it for a fresh Session on every call.
IdempotencyKey *string `json:"idempotency_key,omitempty"`
}
CreateSetupSessionJSONBody defines parameters for CreateSetupSession.
type CreateSetupSessionJSONRequestBody ¶
type CreateSetupSessionJSONRequestBody CreateSetupSessionJSONBody
CreateSetupSessionJSONRequestBody defines body for CreateSetupSession for application/json ContentType.
type CreateSetupSessionResponse ¶
type CreateSetupSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SetupSessionResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateSetupSessionResponse429Headers
}
func ParseCreateSetupSessionResponse ¶
func ParseCreateSetupSessionResponse(rsp *http.Response) (*CreateSetupSessionResponse, error)
ParseCreateSetupSessionResponse parses an HTTP response from a CreateSetupSessionWithResponse call
func (CreateSetupSessionResponse) ContentType ¶
func (r CreateSetupSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSetupSessionResponse) GetBody ¶
func (r CreateSetupSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateSetupSessionResponse) GetJSON200 ¶
func (r CreateSetupSessionResponse) GetJSON200() *SetupSessionResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateSetupSessionResponse) GetJSON400 ¶
func (r CreateSetupSessionResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateSetupSessionResponse) GetJSON401 ¶
func (r CreateSetupSessionResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateSetupSessionResponse) GetJSON403 ¶
func (r CreateSetupSessionResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateSetupSessionResponse) GetJSON429 ¶
func (r CreateSetupSessionResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateSetupSessionResponse) GetJSON500 ¶
func (r CreateSetupSessionResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateSetupSessionResponse) GetJSON502 ¶
func (r CreateSetupSessionResponse) GetJSON502() *Error
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (CreateSetupSessionResponse) Status ¶
func (r CreateSetupSessionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSetupSessionResponse) StatusCode ¶
func (r CreateSetupSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSetupSessionResponse429Headers ¶
type CreateSetupSessionResponse429Headers struct {
RetryAfter *int
}
CreateSetupSessionResponse429Headers the declared response headers of an HTTP 429 response for CreateSetupSession
type CreateUploadJSONBody ¶
type CreateUploadJSONBody struct {
// ClientCode Free text, trimmed, at most 64 characters; blank is valid. Accepted for backward compatibility: for an org caller the client is always resolved from the matter instead, never from this field.
ClientCode *string `json:"client_code,omitempty"`
// DurationSeconds The declared duration in seconds, from 15 seconds up to the 10 hour cap. Rechecked against the probed exact duration at complete_upload.
DurationSeconds int `json:"duration_seconds"`
// IdempotencyKey An optional client-minted key, 16 to 128 bytes. Resending the same key returns the same job with no second hold.
IdempotencyKey *string `json:"idempotency_key,omitempty"`
// MatterCode Free text, trimmed, at most 64 characters; blank is valid and clears it. Refused with org_matter_code_required when the caller's workspace sets matter_code_policy to required and this is absent or blank.
MatterCode *string `json:"matter_code,omitempty"`
// Mode Optional job mode, e.g. a private-result upload.
Mode *string `json:"mode,omitempty"`
// OriginSource Optional. Whether the audio is an uploaded file or a recording. Any other value is ignored, never refused. When absent, a retry inherits its retry_of job's value, and a Personal Access Token caller outside the Chrome extension is recorded as upload.
OriginSource *CreateUploadJSONBodyOriginSource `json:"origin_source,omitempty"`
// PartSizeBytes Optional smaller part size for a flaky connection. Clamped to this API's supported range; omit for the 32 MiB default.
PartSizeBytes *int `json:"part_size_bytes,omitempty"`
// SizeBytes The exact declared byte size of the audio file, from 1 byte up to the 5 GB cap.
SizeBytes int `json:"size_bytes"`
// Title An optional display title. A value longer than 300 bytes is truncated on a character boundary rather than rejected, and this response does not echo the stored value; read it back from the transcript once the job completes. In `private` mode the title is not stored at all.
Title *string `json:"title,omitempty"`
TranscriptionOptions *CreateUploadRequestTranscriptionOptions `json:"transcription_options,omitempty"`
}
CreateUploadJSONBody defines parameters for CreateUpload.
type CreateUploadJSONBodyOriginSource ¶ added in v1.2.0
type CreateUploadJSONBodyOriginSource string
CreateUploadJSONBodyOriginSource defines parameters for CreateUpload.
const ( CreateUploadJSONBodyOriginSourceLessThannil CreateUploadJSONBodyOriginSource = "<nil>" CreateUploadJSONBodyOriginSourceRecording CreateUploadJSONBodyOriginSource = "recording" CreateUploadJSONBodyOriginSourceUpload CreateUploadJSONBodyOriginSource = "upload" )
Defines values for CreateUploadJSONBodyOriginSource.
func (CreateUploadJSONBodyOriginSource) Valid ¶ added in v1.2.0
func (e CreateUploadJSONBodyOriginSource) Valid() bool
Valid indicates whether the value is a known member of the CreateUploadJSONBodyOriginSource enum.
type CreateUploadJSONRequestBody ¶
type CreateUploadJSONRequestBody CreateUploadJSONBody
CreateUploadJSONRequestBody defines body for CreateUpload for application/json ContentType.
type CreateUploadRequestTranscriptionOptions ¶ added in v1.1.0
type CreateUploadRequestTranscriptionOptions struct {
// AutoGenerateInsights Override the account's automatic-Insights default for this upload alone. Omit to inherit the account default; an explicit false always suppresses automatic generation for this upload.
AutoGenerateInsights *bool `json:"auto_generate_insights,omitempty"`
// KeepDisfluencies Keep disfluencies in the transcript instead of removing them. On many languages this also keeps repetitions, stutters and false starts; on others it keeps filler words only. Free, and allowed in private mode. Defaults to false. Only takes effect for the languages where key terms take effect; for any other language the server stores false.
KeepDisfluencies *bool `json:"keep_disfluencies,omitempty"`
// KeytermsPrompt Domain vocabulary to bias transcription toward, up to 1000 terms of at most 6 words each, and at most 1,000 words in total after merging saved dictionaries and one-off terms. Refused with invalid_transcription_options when the language (language_code, or every expected language under auto-detection) is one where key terms have no effect, or when the merged terms and the prompt together exceed the provider token budget (how many fit depends on the script and the length of the terms).
KeytermsPrompt *[]string `json:"keyterms_prompt,omitempty"`
// LanguageCode Force a specific spoken language instead of auto-detection. Key terms, a prompt and filler words (keep_disfluencies) only take effect for the 33 languages AssemblyAI serves with its newest model; for the other languages, typed key terms or a typed prompt are refused with invalid_transcription_options.
LanguageCode *string `json:"language_code,omitempty"`
// MedicalMode Bill and transcribe as a medical dictation. Requires language_code to be one of en, en_au, en_uk, en_us, es, fr, de, de_ch; billed at a 100 percent surcharge on the duration. Cannot be combined with vet_mode.
MedicalMode *bool `json:"medical_mode,omitempty"`
// Multichannel Transcribe each audio channel independently. Billed per channel: a stereo file counts twice, a 3-channel file three times, up to 8 channels, and the medical or vet surcharge applies on top of that; translation targets stay on a single duration. The channel count is the most channels any audio track of the file carries. A file with more than 8 channels, or one whose channel count cannot be read, falls back to mixed audio with speaker labels and is billed once. Without this option the file is transcribed as one mixed channel and billed once. The initial hold at upload creation is for a single channel; verification raises it to the per-channel amount and fails the job with insufficient_balance if the balance cannot cover it.
Multichannel *bool `json:"multichannel,omitempty"`
// Prompt Free-text context to bias transcription toward. Refused with invalid_transcription_options when the language is one where a prompt has no effect. Sent as written, separately from the key terms; the two share one provider token budget.
Prompt *string `json:"prompt,omitempty"`
// SpeakerDetection Label distinct speakers in the transcript. Independent of translation_targets.
SpeakerDetection *bool `json:"speaker_detection,omitempty"`
// TranslationTargets Locales to additionally translate the transcript into: any language code accepted by language_code except the regional variants (en_au, en_uk, en_us, de_ch), 99 in all. At most 15 distinct targets per upload (a saved edit holds the original plus 15 translations); more is refused with invalid_transcription_options. A target equal to the source language is refused. Each target adds a 25 percent surcharge on the duration.
TranslationTargets *[]string `json:"translation_targets,omitempty"`
// VetMode Beta. Transcribe as a veterinary dictation. Requires a manually set language_code from the supported list; auto-detection is refused. Billed at a 100 percent surcharge on the duration, exactly like medical_mode, and cannot be combined with medical_mode. Not available in private mode.
VetMode *bool `json:"vet_mode,omitempty"`
}
CreateUploadRequestTranscriptionOptions defines parameters for CreateUpload.
type CreateUploadResponse ¶
type CreateUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UploadCreateResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateUploadResponse429Headers
}
func ParseCreateUploadResponse ¶
func ParseCreateUploadResponse(rsp *http.Response) (*CreateUploadResponse, error)
ParseCreateUploadResponse parses an HTTP response from a CreateUploadWithResponse call
func (CreateUploadResponse) ContentType ¶
func (r CreateUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateUploadResponse) GetBody ¶
func (r CreateUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateUploadResponse) GetJSON200 ¶
func (r CreateUploadResponse) GetJSON200() *UploadCreateResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateUploadResponse) GetJSON400 ¶
func (r CreateUploadResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateUploadResponse) GetJSON401 ¶
func (r CreateUploadResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateUploadResponse) GetJSON402 ¶
func (r CreateUploadResponse) GetJSON402() *Error
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (CreateUploadResponse) GetJSON403 ¶
func (r CreateUploadResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateUploadResponse) GetJSON409 ¶
func (r CreateUploadResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateUploadResponse) GetJSON422 ¶
func (r CreateUploadResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateUploadResponse) GetJSON429 ¶
func (r CreateUploadResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateUploadResponse) GetJSON500 ¶
func (r CreateUploadResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateUploadResponse) Status ¶
func (r CreateUploadResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUploadResponse) StatusCode ¶
func (r CreateUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateUploadResponse429Headers ¶
type CreateUploadResponse429Headers struct {
RetryAfter *int
}
CreateUploadResponse429Headers the declared response headers of an HTTP 429 response for CreateUpload
type CreditLedgerEntry ¶
type CreditLedgerEntry struct {
CreatedAt int `json:"created_at"`
DeltaSeconds int `json:"delta_seconds"`
Id int `json:"id"`
JobId *string `json:"job_id"`
Kind string `json:"kind"`
Note *string `json:"note"`
}
CreditLedgerEntry defines model for CreditLedgerEntry.
type CreditLedgerResponse ¶
type CreditLedgerResponse struct {
Entries []CreditLedgerEntry `json:"entries"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
CreditLedgerResponse defines model for CreditLedgerResponse.
type DeletedTranscript ¶
type DeletedTranscript struct {
// Cause Which deletion path removed the transcript: an explicit delete (manual), the transcript's own auto_delete_at retention date (scheduled), the personal-transcript purge after about 24 months of account inactivity and a 30-day warning (dormant; excludes legal holds and firm custody), or the global retention sweep (expired).
Cause DeletedTranscriptCause `json:"cause"`
// CreatedAt When the transcript was originally uploaded, Unix seconds. This is the key the list is ordered and paged on.
CreatedAt int `json:"created_at"`
DeletedAt int `json:"deleted_at"`
DurationSeconds int `json:"duration_seconds"`
Id string `json:"id"`
// Receipt The receipt recorded when the transcript was deleted, kept so the deletion stays evidenced after the content itself is gone. Null when the stored receipt could not be read back.
Receipt *DeletedTranscriptReceipt `json:"receipt"`
Title string `json:"title"`
}
DeletedTranscript defines model for DeletedTranscript.
type DeletedTranscriptCause ¶
type DeletedTranscriptCause string
DeletedTranscriptCause Which deletion path removed the transcript: an explicit delete (manual), the transcript's own auto_delete_at retention date (scheduled), the personal-transcript purge after about 24 months of account inactivity and a 30-day warning (dormant; excludes legal holds and firm custody), or the global retention sweep (expired).
const ( Dormant DeletedTranscriptCause = "dormant" Expired DeletedTranscriptCause = "expired" Manual DeletedTranscriptCause = "manual" Scheduled DeletedTranscriptCause = "scheduled" )
Defines values for DeletedTranscriptCause.
func (DeletedTranscriptCause) Valid ¶
func (e DeletedTranscriptCause) Valid() bool
Valid indicates whether the value is a known member of the DeletedTranscriptCause enum.
type DeletedTranscriptReceipt ¶ added in v1.1.0
type DeletedTranscriptReceipt struct {
// CreatedAt UTC timestamp, seconds precision.
CreatedAt string `json:"created_at"`
Items []DeletedTranscriptReceiptItem `json:"items"`
Type string `json:"type"`
Version int `json:"version"`
}
DeletedTranscriptReceipt The receipt recorded when the transcript was deleted, kept so the deletion stays evidenced after the content itself is gone. Null when the stored receipt could not be read back.
type DeletedTranscriptReceiptItem ¶ added in v1.1.0
type DeletedTranscriptReceiptItem struct {
// DeletedAt UTC timestamp, seconds precision, e.g. 2026-09-07T14:53:35Z.
DeletedAt string `json:"deleted_at"`
Kind string `json:"kind"`
}
DeletedTranscriptReceiptItem defines model for DeletedTranscript.receipt.items.
type DeletedTranscriptsResponse ¶
type DeletedTranscriptsResponse struct {
Deleted []DeletedTranscript `json:"deleted"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
DeletedTranscriptsResponse defines model for DeletedTranscriptsResponse.
type DictionaryEntry ¶
type DictionaryEntry struct {
// Canonical The spelling the transcript should use.
Canonical string `json:"canonical"`
CaseSensitive bool `json:"case_sensitive"`
// Category What kind of term this is. Never empty and never null: an entry saved without a category is stored as other.
Category DictionaryEntryCategory `json:"category"`
CreatedAt int `json:"created_at"`
Id string `json:"id"`
// Note Free-text note about the entry. Empty when unset; never null.
Note string `json:"note"`
UpdatedAt int `json:"updated_at"`
// Variants Alternative spellings that should be normalized to the canonical form.
Variants []string `json:"variants"`
}
DictionaryEntry defines model for DictionaryEntry.
type DictionaryEntryCategory ¶
type DictionaryEntryCategory string
DictionaryEntryCategory What kind of term this is. Never empty and never null: an entry saved without a category is stored as other.
const ( Abbreviation DictionaryEntryCategory = "abbreviation" Acronym DictionaryEntryCategory = "acronym" LegalTerm DictionaryEntryCategory = "legal_term" MedicalTerm DictionaryEntryCategory = "medical_term" Organization DictionaryEntryCategory = "organization" Other DictionaryEntryCategory = "other" PersonName DictionaryEntryCategory = "person_name" Place DictionaryEntryCategory = "place" PreferredSpelling DictionaryEntryCategory = "preferred_spelling" Product DictionaryEntryCategory = "product" TechnicalTerm DictionaryEntryCategory = "technical_term" )
Defines values for DictionaryEntryCategory.
func (DictionaryEntryCategory) Valid ¶
func (e DictionaryEntryCategory) Valid() bool
Valid indicates whether the value is a known member of the DictionaryEntryCategory enum.
type Error ¶
type Error struct {
// BalanceSeconds The account's personal balance in seconds. Present on a personal balance-shortfall error.
BalanceSeconds *int `json:"balance_seconds,omitempty"`
// Code The error's stable numeric code. See x-error-catalog. Never reused or renumbered.
Code int `json:"code"`
// Details Structured recovery detail for an error that is not a plain balance shortfall. Present on agent_pack_locked, agent_purchase_capped and policy_version_stale.
Details *ErrorDetails `json:"details,omitempty"`
// Error The error's slug. See x-error-catalog for the full list.
Error string `json:"error"`
// HeldSeconds Seconds already committed to other in-flight jobs. Present alongside balance_seconds.
HeldSeconds *int `json:"held_seconds,omitempty"`
// Limits The caller's current upload admission limits, shared by every response that carries them.
Limits *UploadLimits `json:"limits,omitempty"`
// NeededSeconds Seconds the failed action needed. Present on a balance-shortfall error.
NeededSeconds *int `json:"needed_seconds,omitempty"`
// OrgBalanceSeconds The organization's shared pool balance in seconds. Present on an org-funded balance-shortfall error instead of balance_seconds.
OrgBalanceSeconds *int `json:"org_balance_seconds,omitempty"`
}
Error The frozen /v1 error body. error and code are always present together; the remaining keys are optional detail this API includes only when the specific error carries them, and they are omitted rather than emitted as null when absent.
type ErrorCatalogEntry ¶
ErrorCatalogEntry is one entry of the API's x-error-catalog.
func LookupError ¶
func LookupError(slug string) (ErrorCatalogEntry, bool)
LookupError returns the catalog entry for an error slug.
type ErrorDetails ¶ added in v1.1.0
type ErrorDetails struct {
// AllowedPacks Pack ids the agent account may buy right now. Present on agent_pack_locked; retry with one of these.
AllowedPacks *[]string `json:"allowed_packs,omitempty"`
// CurrentVersion The server's current terms version. Present on policy_version_stale; send it as accept_terms_version to retry.
CurrentVersion *string `json:"current_version,omitempty"`
// Limit The per-credential purchase cap for the rolling window. Present on agent_purchase_capped.
Limit *int `json:"limit,omitempty"`
// RetryAfterSeconds Seconds until the oldest purchase counted toward the cap leaves the window. Present on agent_purchase_capped; matches the Retry-After header.
RetryAfterSeconds *int `json:"retry_after_seconds,omitempty"`
// WindowSeconds The length of the rolling window in seconds. Present on agent_purchase_capped.
WindowSeconds *int `json:"window_seconds,omitempty"`
}
ErrorDetails Structured recovery detail for an error that is not a plain balance shortfall. Present on agent_pack_locked, agent_purchase_capped and policy_version_stale.
type GetAccountResponse ¶
type GetAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetAccountResponse429Headers
}
func ParseGetAccountResponse ¶
func ParseGetAccountResponse(rsp *http.Response) (*GetAccountResponse, error)
ParseGetAccountResponse parses an HTTP response from a GetAccountWithResponse call
func (GetAccountResponse) ContentType ¶
func (r GetAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAccountResponse) GetBody ¶
func (r GetAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAccountResponse) GetJSON200 ¶
func (r GetAccountResponse) GetJSON200() *AccountResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAccountResponse) GetJSON401 ¶
func (r GetAccountResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetAccountResponse) GetJSON403 ¶
func (r GetAccountResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetAccountResponse) GetJSON429 ¶
func (r GetAccountResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetAccountResponse) GetJSON500 ¶
func (r GetAccountResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetAccountResponse) Status ¶
func (r GetAccountResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountResponse) StatusCode ¶
func (r GetAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccountResponse429Headers ¶
type GetAccountResponse429Headers struct {
RetryAfter *int
}
GetAccountResponse429Headers the declared response headers of an HTTP 429 response for GetAccount
type GetJobResponse ¶
type GetJobResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Job
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetJobResponse429Headers
}
func ParseGetJobResponse ¶
func ParseGetJobResponse(rsp *http.Response) (*GetJobResponse, error)
ParseGetJobResponse parses an HTTP response from a GetJobWithResponse call
func (GetJobResponse) ContentType ¶
func (r GetJobResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetJobResponse) GetBody ¶
func (r GetJobResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetJobResponse) GetJSON200 ¶
func (r GetJobResponse) GetJSON200() *Job
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetJobResponse) GetJSON400 ¶
func (r GetJobResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetJobResponse) GetJSON401 ¶
func (r GetJobResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetJobResponse) GetJSON403 ¶
func (r GetJobResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetJobResponse) GetJSON404 ¶
func (r GetJobResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetJobResponse) GetJSON429 ¶
func (r GetJobResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetJobResponse) GetJSON500 ¶
func (r GetJobResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetJobResponse) Status ¶
func (r GetJobResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobResponse) StatusCode ¶
func (r GetJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobResponse429Headers ¶
type GetJobResponse429Headers struct {
RetryAfter *int
}
GetJobResponse429Headers the declared response headers of an HTTP 429 response for GetJob
type GetOrgResponse ¶
type GetOrgResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgSummaryResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetOrgResponse429Headers
}
func ParseGetOrgResponse ¶
func ParseGetOrgResponse(rsp *http.Response) (*GetOrgResponse, error)
ParseGetOrgResponse parses an HTTP response from a GetOrgWithResponse call
func (GetOrgResponse) ContentType ¶
func (r GetOrgResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOrgResponse) GetBody ¶
func (r GetOrgResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOrgResponse) GetJSON200 ¶
func (r GetOrgResponse) GetJSON200() *OrgSummaryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetOrgResponse) GetJSON401 ¶
func (r GetOrgResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetOrgResponse) GetJSON403 ¶
func (r GetOrgResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetOrgResponse) GetJSON429 ¶
func (r GetOrgResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetOrgResponse) GetJSON500 ¶
func (r GetOrgResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetOrgResponse) Status ¶
func (r GetOrgResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrgResponse) StatusCode ¶
func (r GetOrgResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrgResponse429Headers ¶
type GetOrgResponse429Headers struct {
RetryAfter *int
}
GetOrgResponse429Headers the declared response headers of an HTTP 429 response for GetOrg
type GetTranscriptResponse ¶
type GetTranscriptResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TranscriptDetail
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetTranscriptResponse429Headers
}
func ParseGetTranscriptResponse ¶
func ParseGetTranscriptResponse(rsp *http.Response) (*GetTranscriptResponse, error)
ParseGetTranscriptResponse parses an HTTP response from a GetTranscriptWithResponse call
func (GetTranscriptResponse) ContentType ¶
func (r GetTranscriptResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTranscriptResponse) GetBody ¶
func (r GetTranscriptResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTranscriptResponse) GetJSON200 ¶
func (r GetTranscriptResponse) GetJSON200() *TranscriptDetail
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTranscriptResponse) GetJSON400 ¶
func (r GetTranscriptResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetTranscriptResponse) GetJSON401 ¶
func (r GetTranscriptResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetTranscriptResponse) GetJSON403 ¶
func (r GetTranscriptResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetTranscriptResponse) GetJSON404 ¶
func (r GetTranscriptResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetTranscriptResponse) GetJSON429 ¶
func (r GetTranscriptResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetTranscriptResponse) GetJSON500 ¶
func (r GetTranscriptResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetTranscriptResponse) Status ¶
func (r GetTranscriptResponse) Status() string
Status returns HTTPResponse.Status
func (GetTranscriptResponse) StatusCode ¶
func (r GetTranscriptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTranscriptResponse429Headers ¶
type GetTranscriptResponse429Headers struct {
RetryAfter *int
}
GetTranscriptResponse429Headers the declared response headers of an HTTP 429 response for GetTranscript
type GetTranscriptionContextResponse ¶
type GetTranscriptionContextResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TranscriptionContextResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetTranscriptionContextResponse429Headers
}
func ParseGetTranscriptionContextResponse ¶
func ParseGetTranscriptionContextResponse(rsp *http.Response) (*GetTranscriptionContextResponse, error)
ParseGetTranscriptionContextResponse parses an HTTP response from a GetTranscriptionContextWithResponse call
func (GetTranscriptionContextResponse) ContentType ¶
func (r GetTranscriptionContextResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTranscriptionContextResponse) GetBody ¶
func (r GetTranscriptionContextResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTranscriptionContextResponse) GetJSON200 ¶
func (r GetTranscriptionContextResponse) GetJSON200() *TranscriptionContextResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTranscriptionContextResponse) GetJSON401 ¶
func (r GetTranscriptionContextResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetTranscriptionContextResponse) GetJSON403 ¶
func (r GetTranscriptionContextResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetTranscriptionContextResponse) GetJSON429 ¶
func (r GetTranscriptionContextResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetTranscriptionContextResponse) GetJSON500 ¶
func (r GetTranscriptionContextResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetTranscriptionContextResponse) Status ¶
func (r GetTranscriptionContextResponse) Status() string
Status returns HTTPResponse.Status
func (GetTranscriptionContextResponse) StatusCode ¶
func (r GetTranscriptionContextResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTranscriptionContextResponse429Headers ¶
type GetTranscriptionContextResponse429Headers struct {
RetryAfter *int
}
GetTranscriptionContextResponse429Headers the declared response headers of an HTTP 429 response for GetTranscriptionContext
type GetUploadPartUrlsParams ¶
type GetUploadPartUrlsParams struct {
// Start The first part number to return a URL for.
Start *int `form:"start,omitempty" json:"start,omitempty"`
}
GetUploadPartUrlsParams defines parameters for GetUploadPartUrls.
type GetUploadPartUrlsResponse ¶
type GetUploadPartUrlsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetUploadPartUrlsResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetUploadPartUrlsResponse429Headers
}
func ParseGetUploadPartUrlsResponse ¶
func ParseGetUploadPartUrlsResponse(rsp *http.Response) (*GetUploadPartUrlsResponse, error)
ParseGetUploadPartUrlsResponse parses an HTTP response from a GetUploadPartUrlsWithResponse call
func (GetUploadPartUrlsResponse) ContentType ¶
func (r GetUploadPartUrlsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUploadPartUrlsResponse) GetBody ¶
func (r GetUploadPartUrlsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUploadPartUrlsResponse) GetJSON200 ¶
func (r GetUploadPartUrlsResponse) GetJSON200() *GetUploadPartUrlsResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUploadPartUrlsResponse) GetJSON400 ¶
func (r GetUploadPartUrlsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetUploadPartUrlsResponse) GetJSON401 ¶
func (r GetUploadPartUrlsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetUploadPartUrlsResponse) GetJSON403 ¶
func (r GetUploadPartUrlsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetUploadPartUrlsResponse) GetJSON404 ¶
func (r GetUploadPartUrlsResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetUploadPartUrlsResponse) GetJSON409 ¶
func (r GetUploadPartUrlsResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (GetUploadPartUrlsResponse) GetJSON429 ¶
func (r GetUploadPartUrlsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetUploadPartUrlsResponse) GetJSON500 ¶
func (r GetUploadPartUrlsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetUploadPartUrlsResponse) Status ¶
func (r GetUploadPartUrlsResponse) Status() string
Status returns HTTPResponse.Status
func (GetUploadPartUrlsResponse) StatusCode ¶
func (r GetUploadPartUrlsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUploadPartUrlsResponse429Headers ¶
type GetUploadPartUrlsResponse429Headers struct {
RetryAfter *int
}
GetUploadPartUrlsResponse429Headers the declared response headers of an HTTP 429 response for GetUploadPartUrls
type GetUploadPartUrlsResult ¶ added in v1.1.0
type GetUploadPartUrlsResult struct {
// NextPartNumber The next part number not covered by this page, or null once every part has a URL.
NextPartNumber *int `json:"next_part_number"`
// PartSizeBytes The byte size of every part except the last.
PartSizeBytes int `json:"part_size_bytes"`
// PartUrls Presigned URLs for this page's parts, starting at the requested (or first) part number.
PartUrls []PresignedPartUrl `json:"part_urls"`
// TotalParts The total number of parts this upload is split into.
TotalParts int `json:"total_parts"`
}
GetUploadPartUrlsResult defines parameters for GetUploadPartUrls.
type HeartbeatUploadResponse ¶
type HeartbeatUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HeartbeatUploadResult
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *HeartbeatUploadResponse429Headers
}
func ParseHeartbeatUploadResponse ¶
func ParseHeartbeatUploadResponse(rsp *http.Response) (*HeartbeatUploadResponse, error)
ParseHeartbeatUploadResponse parses an HTTP response from a HeartbeatUploadWithResponse call
func (HeartbeatUploadResponse) ContentType ¶
func (r HeartbeatUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HeartbeatUploadResponse) GetBody ¶
func (r HeartbeatUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HeartbeatUploadResponse) GetJSON200 ¶
func (r HeartbeatUploadResponse) GetJSON200() *HeartbeatUploadResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (HeartbeatUploadResponse) GetJSON401 ¶
func (r HeartbeatUploadResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (HeartbeatUploadResponse) GetJSON403 ¶
func (r HeartbeatUploadResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (HeartbeatUploadResponse) GetJSON409 ¶
func (r HeartbeatUploadResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (HeartbeatUploadResponse) GetJSON429 ¶
func (r HeartbeatUploadResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (HeartbeatUploadResponse) GetJSON500 ¶
func (r HeartbeatUploadResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (HeartbeatUploadResponse) Status ¶
func (r HeartbeatUploadResponse) Status() string
Status returns HTTPResponse.Status
func (HeartbeatUploadResponse) StatusCode ¶
func (r HeartbeatUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeartbeatUploadResponse429Headers ¶
type HeartbeatUploadResponse429Headers struct {
RetryAfter *int
}
HeartbeatUploadResponse429Headers the declared response headers of an HTTP 429 response for HeartbeatUpload
type HeartbeatUploadResult ¶ added in v1.1.0
type HeartbeatUploadResult struct {
Ok bool `json:"ok"`
}
HeartbeatUploadResult defines parameters for HeartbeatUpload.
type HoldsResponse ¶
type HoldsResponse struct {
Holds []ActiveHold `json:"holds"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
HoldsResponse defines model for HoldsResponse.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InternalError ¶
type InternalError = Error
InternalError The frozen /v1 error body. error and code are always present together; the remaining keys are optional detail this API includes only when the specific error carries them, and they are omitted rather than emitted as null when absent.
type Job ¶
type Job struct {
ActualSeconds *int `json:"actual_seconds"`
BillableSeconds int `json:"billable_seconds"`
CreatedAt int `json:"created_at"`
DeclaredSeconds int `json:"declared_seconds"`
// Error A short failure reason when state is failed, otherwise null.
Error *string `json:"error"`
// FailureKind Set when the file itself could not be read: `media_unreadable` when the upload could not be probed as audio, `media_undecodable` when the transcription provider could not decode it. Either way the file needs converting (for example to MP3 or WAV) and uploading again; nothing was charged and the hold was released. Null for every other job, including failures of any other kind and jobs that failed before this field existed.
FailureKind *JobFailureKind `json:"failure_kind"`
// FetchTotalBytes The total byte size a from-url import is fetching toward. Present only while a fetch is in progress.
FetchTotalBytes *int `json:"fetch_total_bytes,omitempty"`
// FetchedBytes Bytes fetched so far for a from-url import. Present only while a fetch is in progress.
FetchedBytes *int `json:"fetched_bytes,omitempty"`
Id string `json:"id"`
Mode string `json:"mode"`
// Options A content-free summary of the transcription options a job was submitted with: what was requested, never the free-text content itself.
Options OptionsSummary `json:"options"`
// OriginApp The app the job was created from: the web app, the Chrome extension, the Android or iOS app, or the API. Null when unknown, which is always the case for rows created before this field existed.
OriginApp *JobOriginApp `json:"origin_app"`
// OriginSource How the audio entered Hushscript: a file upload, an import from a link, or an in-app recording. Null when unknown, which is always the case for rows created before this field existed.
OriginSource *JobOriginSource `json:"origin_source"`
PrivateResultAvailable bool `json:"private_result_available"`
PrivateResultExpiresAt *int `json:"private_result_expires_at"`
// RetryOf The id of an earlier failed job of yours that this job retries, set when the browser app re-uploaded a converted copy of an unreadable file, otherwise null.
RetryOf *string `json:"retry_of"`
// State One of uploading, fetching, queued, processing, awaiting_unlock, done or failed.
State string `json:"state"`
// Title The current title of this job's transcript, or null while the job has no transcript or the transcript has no title. Always null for a private-mode job, and null unless the caller may read transcripts: a personal access token needs the transcripts:read scope (a transcribe-only token always gets null).
Title *string `json:"title"`
// TranscriptId The resulting transcript's id, once transcription has finished.
TranscriptId *string `json:"transcript_id"`
// VerifiedSeconds The probed exact duration, once known.
VerifiedSeconds *int `json:"verified_seconds"`
}
Job defines model for Job.
type JobFailureKind ¶
type JobFailureKind string
JobFailureKind Set when the file itself could not be read: `media_unreadable` when the upload could not be probed as audio, `media_undecodable` when the transcription provider could not decode it. Either way the file needs converting (for example to MP3 or WAV) and uploading again; nothing was charged and the hold was released. Null for every other job, including failures of any other kind and jobs that failed before this field existed.
const ( JobFailureKindLessThannil JobFailureKind = "<nil>" JobFailureKindMediaUndecodable JobFailureKind = "media_undecodable" JobFailureKindMediaUnreadable JobFailureKind = "media_unreadable" )
Defines values for JobFailureKind.
func (JobFailureKind) Valid ¶
func (e JobFailureKind) Valid() bool
Valid indicates whether the value is a known member of the JobFailureKind enum.
type JobList ¶
type JobList struct {
Jobs []Job `json:"jobs"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
JobList defines model for JobList.
type JobOriginApp ¶ added in v1.2.0
type JobOriginApp string
JobOriginApp The app the job was created from: the web app, the Chrome extension, the Android or iOS app, or the API. Null when unknown, which is always the case for rows created before this field existed.
const ( JobOriginAppAndroid JobOriginApp = "android" JobOriginAppApi JobOriginApp = "api" JobOriginAppExtension JobOriginApp = "extension" JobOriginAppIos JobOriginApp = "ios" JobOriginAppLessThannil JobOriginApp = "<nil>" JobOriginAppWeb JobOriginApp = "web" )
Defines values for JobOriginApp.
func (JobOriginApp) Valid ¶ added in v1.2.0
func (e JobOriginApp) Valid() bool
Valid indicates whether the value is a known member of the JobOriginApp enum.
type JobOriginSource ¶ added in v1.2.0
type JobOriginSource string
JobOriginSource How the audio entered Hushscript: a file upload, an import from a link, or an in-app recording. Null when unknown, which is always the case for rows created before this field existed.
const ( JobOriginSourceLessThannil JobOriginSource = "<nil>" JobOriginSourceRecording JobOriginSource = "recording" JobOriginSourceUpload JobOriginSource = "upload" JobOriginSourceUrl JobOriginSource = "url" )
Defines values for JobOriginSource.
func (JobOriginSource) Valid ¶ added in v1.2.0
func (e JobOriginSource) Valid() bool
Valid indicates whether the value is a known member of the JobOriginSource enum.
type LiftTranscriptHoldResponse ¶
type LiftTranscriptHoldResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LiftTranscriptHoldResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *LiftTranscriptHoldResponse429Headers
}
func ParseLiftTranscriptHoldResponse ¶
func ParseLiftTranscriptHoldResponse(rsp *http.Response) (*LiftTranscriptHoldResponse, error)
ParseLiftTranscriptHoldResponse parses an HTTP response from a LiftTranscriptHoldWithResponse call
func (LiftTranscriptHoldResponse) ContentType ¶
func (r LiftTranscriptHoldResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LiftTranscriptHoldResponse) GetBody ¶
func (r LiftTranscriptHoldResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LiftTranscriptHoldResponse) GetJSON200 ¶
func (r LiftTranscriptHoldResponse) GetJSON200() *LiftTranscriptHoldResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (LiftTranscriptHoldResponse) GetJSON400 ¶
func (r LiftTranscriptHoldResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (LiftTranscriptHoldResponse) GetJSON401 ¶
func (r LiftTranscriptHoldResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (LiftTranscriptHoldResponse) GetJSON403 ¶
func (r LiftTranscriptHoldResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (LiftTranscriptHoldResponse) GetJSON404 ¶
func (r LiftTranscriptHoldResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (LiftTranscriptHoldResponse) GetJSON429 ¶
func (r LiftTranscriptHoldResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (LiftTranscriptHoldResponse) GetJSON500 ¶
func (r LiftTranscriptHoldResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (LiftTranscriptHoldResponse) Status ¶
func (r LiftTranscriptHoldResponse) Status() string
Status returns HTTPResponse.Status
func (LiftTranscriptHoldResponse) StatusCode ¶
func (r LiftTranscriptHoldResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LiftTranscriptHoldResponse429Headers ¶
type LiftTranscriptHoldResponse429Headers struct {
RetryAfter *int
}
LiftTranscriptHoldResponse429Headers the declared response headers of an HTTP 429 response for LiftTranscriptHold
type LiftTranscriptHoldResult ¶ added in v1.1.0
type LiftTranscriptHoldResult struct {
Ok bool `json:"ok"`
}
LiftTranscriptHoldResult defines parameters for LiftTranscriptHold.
type ListCreditLedgerParams ¶
type ListCreditLedgerParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListCreditLedgerParams defines parameters for ListCreditLedger.
type ListCreditLedgerResponse ¶
type ListCreditLedgerResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CreditLedgerResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListCreditLedgerResponse429Headers
}
func ParseListCreditLedgerResponse ¶
func ParseListCreditLedgerResponse(rsp *http.Response) (*ListCreditLedgerResponse, error)
ParseListCreditLedgerResponse parses an HTTP response from a ListCreditLedgerWithResponse call
func (ListCreditLedgerResponse) ContentType ¶
func (r ListCreditLedgerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListCreditLedgerResponse) GetBody ¶
func (r ListCreditLedgerResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListCreditLedgerResponse) GetJSON200 ¶
func (r ListCreditLedgerResponse) GetJSON200() *CreditLedgerResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListCreditLedgerResponse) GetJSON400 ¶
func (r ListCreditLedgerResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListCreditLedgerResponse) GetJSON401 ¶
func (r ListCreditLedgerResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListCreditLedgerResponse) GetJSON403 ¶
func (r ListCreditLedgerResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListCreditLedgerResponse) GetJSON429 ¶
func (r ListCreditLedgerResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListCreditLedgerResponse) GetJSON500 ¶
func (r ListCreditLedgerResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListCreditLedgerResponse) Status ¶
func (r ListCreditLedgerResponse) Status() string
Status returns HTTPResponse.Status
func (ListCreditLedgerResponse) StatusCode ¶
func (r ListCreditLedgerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCreditLedgerResponse429Headers ¶
type ListCreditLedgerResponse429Headers struct {
RetryAfter *int
}
ListCreditLedgerResponse429Headers the declared response headers of an HTTP 429 response for ListCreditLedger
type ListDeletedTranscriptsParams ¶
type ListDeletedTranscriptsParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListDeletedTranscriptsParams defines parameters for ListDeletedTranscripts.
type ListDeletedTranscriptsResponse ¶
type ListDeletedTranscriptsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeletedTranscriptsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListDeletedTranscriptsResponse429Headers
}
func ParseListDeletedTranscriptsResponse ¶
func ParseListDeletedTranscriptsResponse(rsp *http.Response) (*ListDeletedTranscriptsResponse, error)
ParseListDeletedTranscriptsResponse parses an HTTP response from a ListDeletedTranscriptsWithResponse call
func (ListDeletedTranscriptsResponse) ContentType ¶
func (r ListDeletedTranscriptsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDeletedTranscriptsResponse) GetBody ¶
func (r ListDeletedTranscriptsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDeletedTranscriptsResponse) GetJSON200 ¶
func (r ListDeletedTranscriptsResponse) GetJSON200() *DeletedTranscriptsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDeletedTranscriptsResponse) GetJSON400 ¶
func (r ListDeletedTranscriptsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListDeletedTranscriptsResponse) GetJSON401 ¶
func (r ListDeletedTranscriptsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListDeletedTranscriptsResponse) GetJSON403 ¶
func (r ListDeletedTranscriptsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListDeletedTranscriptsResponse) GetJSON429 ¶
func (r ListDeletedTranscriptsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListDeletedTranscriptsResponse) GetJSON500 ¶
func (r ListDeletedTranscriptsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListDeletedTranscriptsResponse) Status ¶
func (r ListDeletedTranscriptsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDeletedTranscriptsResponse) StatusCode ¶
func (r ListDeletedTranscriptsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDeletedTranscriptsResponse429Headers ¶
type ListDeletedTranscriptsResponse429Headers struct {
RetryAfter *int
}
ListDeletedTranscriptsResponse429Headers the declared response headers of an HTTP 429 response for ListDeletedTranscripts
type ListHoldsParams ¶
type ListHoldsParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListHoldsParams defines parameters for ListHolds.
type ListHoldsResponse ¶
type ListHoldsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HoldsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListHoldsResponse429Headers
}
func ParseListHoldsResponse ¶
func ParseListHoldsResponse(rsp *http.Response) (*ListHoldsResponse, error)
ParseListHoldsResponse parses an HTTP response from a ListHoldsWithResponse call
func (ListHoldsResponse) ContentType ¶
func (r ListHoldsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListHoldsResponse) GetBody ¶
func (r ListHoldsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListHoldsResponse) GetJSON200 ¶
func (r ListHoldsResponse) GetJSON200() *HoldsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListHoldsResponse) GetJSON400 ¶
func (r ListHoldsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListHoldsResponse) GetJSON401 ¶
func (r ListHoldsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListHoldsResponse) GetJSON403 ¶
func (r ListHoldsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListHoldsResponse) GetJSON429 ¶
func (r ListHoldsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListHoldsResponse) GetJSON500 ¶
func (r ListHoldsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListHoldsResponse) Status ¶
func (r ListHoldsResponse) Status() string
Status returns HTTPResponse.Status
func (ListHoldsResponse) StatusCode ¶
func (r ListHoldsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListHoldsResponse429Headers ¶
type ListHoldsResponse429Headers struct {
RetryAfter *int
}
ListHoldsResponse429Headers the declared response headers of an HTTP 429 response for ListHolds
type ListJobsParams ¶
type ListJobsParams struct {
// Active When set to 1, true or yes, return only jobs that have not reached a terminal state. Any other value, or omitting the parameter, returns every job.
Active *ListJobsParamsActive `form:"active,omitempty" json:"active,omitempty"`
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListJobsParams defines parameters for ListJobs.
type ListJobsParamsActive ¶
type ListJobsParamsActive string
ListJobsParamsActive defines parameters for ListJobs.
const ( N1 ListJobsParamsActive = "1" True ListJobsParamsActive = "true" Yes ListJobsParamsActive = "yes" )
Defines values for ListJobsParamsActive.
func (ListJobsParamsActive) Valid ¶
func (e ListJobsParamsActive) Valid() bool
Valid indicates whether the value is a known member of the ListJobsParamsActive enum.
type ListJobsResponse ¶
type ListJobsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *JobList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListJobsResponse429Headers
}
func ParseListJobsResponse ¶
func ParseListJobsResponse(rsp *http.Response) (*ListJobsResponse, error)
ParseListJobsResponse parses an HTTP response from a ListJobsWithResponse call
func (ListJobsResponse) ContentType ¶
func (r ListJobsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListJobsResponse) GetBody ¶
func (r ListJobsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListJobsResponse) GetJSON200 ¶
func (r ListJobsResponse) GetJSON200() *JobList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListJobsResponse) GetJSON400 ¶
func (r ListJobsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListJobsResponse) GetJSON401 ¶
func (r ListJobsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListJobsResponse) GetJSON403 ¶
func (r ListJobsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListJobsResponse) GetJSON429 ¶
func (r ListJobsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListJobsResponse) GetJSON500 ¶
func (r ListJobsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListJobsResponse) Status ¶
func (r ListJobsResponse) Status() string
Status returns HTTPResponse.Status
func (ListJobsResponse) StatusCode ¶
func (r ListJobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListJobsResponse429Headers ¶
type ListJobsResponse429Headers struct {
RetryAfter *int
}
ListJobsResponse429Headers the declared response headers of an HTTP 429 response for ListJobs
type ListOrgAuditParams ¶
type ListOrgAuditParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListOrgAuditParams defines parameters for ListOrgAudit.
type ListOrgAuditResponse ¶
type ListOrgAuditResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgAuditResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListOrgAuditResponse429Headers
}
func ParseListOrgAuditResponse ¶
func ParseListOrgAuditResponse(rsp *http.Response) (*ListOrgAuditResponse, error)
ParseListOrgAuditResponse parses an HTTP response from a ListOrgAuditWithResponse call
func (ListOrgAuditResponse) ContentType ¶
func (r ListOrgAuditResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOrgAuditResponse) GetBody ¶
func (r ListOrgAuditResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListOrgAuditResponse) GetJSON200 ¶
func (r ListOrgAuditResponse) GetJSON200() *OrgAuditResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListOrgAuditResponse) GetJSON400 ¶
func (r ListOrgAuditResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListOrgAuditResponse) GetJSON401 ¶
func (r ListOrgAuditResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListOrgAuditResponse) GetJSON403 ¶
func (r ListOrgAuditResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListOrgAuditResponse) GetJSON429 ¶
func (r ListOrgAuditResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListOrgAuditResponse) GetJSON500 ¶
func (r ListOrgAuditResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListOrgAuditResponse) Status ¶
func (r ListOrgAuditResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgAuditResponse) StatusCode ¶
func (r ListOrgAuditResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgAuditResponse429Headers ¶
type ListOrgAuditResponse429Headers struct {
RetryAfter *int
}
ListOrgAuditResponse429Headers the declared response headers of an HTTP 429 response for ListOrgAudit
type ListOrgInvoicesParams ¶
type ListOrgInvoicesParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListOrgInvoicesParams defines parameters for ListOrgInvoices.
type ListOrgInvoicesResponse ¶
type ListOrgInvoicesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgInvoicesResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListOrgInvoicesResponse429Headers
}
func ParseListOrgInvoicesResponse ¶
func ParseListOrgInvoicesResponse(rsp *http.Response) (*ListOrgInvoicesResponse, error)
ParseListOrgInvoicesResponse parses an HTTP response from a ListOrgInvoicesWithResponse call
func (ListOrgInvoicesResponse) ContentType ¶
func (r ListOrgInvoicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOrgInvoicesResponse) GetBody ¶
func (r ListOrgInvoicesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListOrgInvoicesResponse) GetJSON200 ¶
func (r ListOrgInvoicesResponse) GetJSON200() *OrgInvoicesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListOrgInvoicesResponse) GetJSON400 ¶
func (r ListOrgInvoicesResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListOrgInvoicesResponse) GetJSON401 ¶
func (r ListOrgInvoicesResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListOrgInvoicesResponse) GetJSON403 ¶
func (r ListOrgInvoicesResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListOrgInvoicesResponse) GetJSON429 ¶
func (r ListOrgInvoicesResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListOrgInvoicesResponse) GetJSON500 ¶
func (r ListOrgInvoicesResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListOrgInvoicesResponse) Status ¶
func (r ListOrgInvoicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgInvoicesResponse) StatusCode ¶
func (r ListOrgInvoicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgInvoicesResponse429Headers ¶
type ListOrgInvoicesResponse429Headers struct {
RetryAfter *int
}
ListOrgInvoicesResponse429Headers the declared response headers of an HTTP 429 response for ListOrgInvoices
type ListOrgLedgerParams ¶
type ListOrgLedgerParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListOrgLedgerParams defines parameters for ListOrgLedger.
type ListOrgLedgerResponse ¶
type ListOrgLedgerResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgLedgerResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListOrgLedgerResponse429Headers
}
func ParseListOrgLedgerResponse ¶
func ParseListOrgLedgerResponse(rsp *http.Response) (*ListOrgLedgerResponse, error)
ParseListOrgLedgerResponse parses an HTTP response from a ListOrgLedgerWithResponse call
func (ListOrgLedgerResponse) ContentType ¶
func (r ListOrgLedgerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOrgLedgerResponse) GetBody ¶
func (r ListOrgLedgerResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListOrgLedgerResponse) GetJSON200 ¶
func (r ListOrgLedgerResponse) GetJSON200() *OrgLedgerResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListOrgLedgerResponse) GetJSON400 ¶
func (r ListOrgLedgerResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListOrgLedgerResponse) GetJSON401 ¶
func (r ListOrgLedgerResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListOrgLedgerResponse) GetJSON403 ¶
func (r ListOrgLedgerResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListOrgLedgerResponse) GetJSON429 ¶
func (r ListOrgLedgerResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListOrgLedgerResponse) GetJSON500 ¶
func (r ListOrgLedgerResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListOrgLedgerResponse) Status ¶
func (r ListOrgLedgerResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgLedgerResponse) StatusCode ¶
func (r ListOrgLedgerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgLedgerResponse429Headers ¶
type ListOrgLedgerResponse429Headers struct {
RetryAfter *int
}
ListOrgLedgerResponse429Headers the declared response headers of an HTTP 429 response for ListOrgLedger
type ListOrgMattersParams ¶
type ListOrgMattersParams struct {
// Status Filter by registry status. An unrecognized value is refused rather than defaulted.
Status *ListOrgMattersParamsStatus `form:"status,omitempty" json:"status,omitempty"`
// Q Case-insensitive prefix match against the matter code.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListOrgMattersParams defines parameters for ListOrgMatters.
type ListOrgMattersParamsStatus ¶
type ListOrgMattersParamsStatus string
ListOrgMattersParamsStatus defines parameters for ListOrgMatters.
const ( ListOrgMattersParamsStatusClosed ListOrgMattersParamsStatus = "closed" ListOrgMattersParamsStatusOpen ListOrgMattersParamsStatus = "open" )
Defines values for ListOrgMattersParamsStatus.
func (ListOrgMattersParamsStatus) Valid ¶
func (e ListOrgMattersParamsStatus) Valid() bool
Valid indicates whether the value is a known member of the ListOrgMattersParamsStatus enum.
type ListOrgMattersResponse ¶
type ListOrgMattersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgMattersResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListOrgMattersResponse429Headers
}
func ParseListOrgMattersResponse ¶
func ParseListOrgMattersResponse(rsp *http.Response) (*ListOrgMattersResponse, error)
ParseListOrgMattersResponse parses an HTTP response from a ListOrgMattersWithResponse call
func (ListOrgMattersResponse) ContentType ¶
func (r ListOrgMattersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOrgMattersResponse) GetBody ¶
func (r ListOrgMattersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListOrgMattersResponse) GetJSON200 ¶
func (r ListOrgMattersResponse) GetJSON200() *OrgMattersResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListOrgMattersResponse) GetJSON400 ¶
func (r ListOrgMattersResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListOrgMattersResponse) GetJSON401 ¶
func (r ListOrgMattersResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListOrgMattersResponse) GetJSON403 ¶
func (r ListOrgMattersResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListOrgMattersResponse) GetJSON429 ¶
func (r ListOrgMattersResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListOrgMattersResponse) GetJSON500 ¶
func (r ListOrgMattersResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListOrgMattersResponse) Status ¶
func (r ListOrgMattersResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgMattersResponse) StatusCode ¶
func (r ListOrgMattersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgMattersResponse429Headers ¶
type ListOrgMattersResponse429Headers struct {
RetryAfter *int
}
ListOrgMattersResponse429Headers the declared response headers of an HTTP 429 response for ListOrgMatters
type ListOrgMembersParams ¶
type ListOrgMembersParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListOrgMembersParams defines parameters for ListOrgMembers.
type ListOrgMembersResponse ¶
type ListOrgMembersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgMembersResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListOrgMembersResponse429Headers
}
func ParseListOrgMembersResponse ¶
func ParseListOrgMembersResponse(rsp *http.Response) (*ListOrgMembersResponse, error)
ParseListOrgMembersResponse parses an HTTP response from a ListOrgMembersWithResponse call
func (ListOrgMembersResponse) ContentType ¶
func (r ListOrgMembersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOrgMembersResponse) GetBody ¶
func (r ListOrgMembersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListOrgMembersResponse) GetJSON200 ¶
func (r ListOrgMembersResponse) GetJSON200() *OrgMembersResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListOrgMembersResponse) GetJSON400 ¶
func (r ListOrgMembersResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListOrgMembersResponse) GetJSON401 ¶
func (r ListOrgMembersResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListOrgMembersResponse) GetJSON403 ¶
func (r ListOrgMembersResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListOrgMembersResponse) GetJSON429 ¶
func (r ListOrgMembersResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListOrgMembersResponse) GetJSON500 ¶
func (r ListOrgMembersResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListOrgMembersResponse) Status ¶
func (r ListOrgMembersResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgMembersResponse) StatusCode ¶
func (r ListOrgMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgMembersResponse429Headers ¶
type ListOrgMembersResponse429Headers struct {
RetryAfter *int
}
ListOrgMembersResponse429Headers the declared response headers of an HTTP 429 response for ListOrgMembers
type ListOrgTranscriptsParams ¶
type ListOrgTranscriptsParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListOrgTranscriptsParams defines parameters for ListOrgTranscripts.
type ListOrgTranscriptsResponse ¶
type ListOrgTranscriptsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgTranscriptsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListOrgTranscriptsResponse429Headers
}
func ParseListOrgTranscriptsResponse ¶
func ParseListOrgTranscriptsResponse(rsp *http.Response) (*ListOrgTranscriptsResponse, error)
ParseListOrgTranscriptsResponse parses an HTTP response from a ListOrgTranscriptsWithResponse call
func (ListOrgTranscriptsResponse) ContentType ¶
func (r ListOrgTranscriptsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOrgTranscriptsResponse) GetBody ¶
func (r ListOrgTranscriptsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListOrgTranscriptsResponse) GetJSON200 ¶
func (r ListOrgTranscriptsResponse) GetJSON200() *OrgTranscriptsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListOrgTranscriptsResponse) GetJSON400 ¶
func (r ListOrgTranscriptsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListOrgTranscriptsResponse) GetJSON401 ¶
func (r ListOrgTranscriptsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListOrgTranscriptsResponse) GetJSON403 ¶
func (r ListOrgTranscriptsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListOrgTranscriptsResponse) GetJSON429 ¶
func (r ListOrgTranscriptsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListOrgTranscriptsResponse) GetJSON500 ¶
func (r ListOrgTranscriptsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListOrgTranscriptsResponse) Status ¶
func (r ListOrgTranscriptsResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgTranscriptsResponse) StatusCode ¶
func (r ListOrgTranscriptsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgTranscriptsResponse429Headers ¶
type ListOrgTranscriptsResponse429Headers struct {
RetryAfter *int
}
ListOrgTranscriptsResponse429Headers the declared response headers of an HTTP 429 response for ListOrgTranscripts
type ListPacksResponse ¶
type ListPacksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PacksResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListPacksResponse429Headers
}
func ParseListPacksResponse ¶
func ParseListPacksResponse(rsp *http.Response) (*ListPacksResponse, error)
ParseListPacksResponse parses an HTTP response from a ListPacksWithResponse call
func (ListPacksResponse) ContentType ¶
func (r ListPacksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListPacksResponse) GetBody ¶
func (r ListPacksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListPacksResponse) GetJSON200 ¶
func (r ListPacksResponse) GetJSON200() *PacksResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListPacksResponse) GetJSON401 ¶
func (r ListPacksResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListPacksResponse) GetJSON403 ¶
func (r ListPacksResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListPacksResponse) GetJSON429 ¶
func (r ListPacksResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListPacksResponse) GetJSON500 ¶
func (r ListPacksResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListPacksResponse) Status ¶
func (r ListPacksResponse) Status() string
Status returns HTTPResponse.Status
func (ListPacksResponse) StatusCode ¶
func (r ListPacksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPacksResponse429Headers ¶
type ListPacksResponse429Headers struct {
RetryAfter *int
}
ListPacksResponse429Headers the declared response headers of an HTTP 429 response for ListPacks
type ListSavedCardsResponse ¶
type ListSavedCardsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CardsResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListSavedCardsResponse429Headers
}
func ParseListSavedCardsResponse ¶
func ParseListSavedCardsResponse(rsp *http.Response) (*ListSavedCardsResponse, error)
ParseListSavedCardsResponse parses an HTTP response from a ListSavedCardsWithResponse call
func (ListSavedCardsResponse) ContentType ¶
func (r ListSavedCardsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSavedCardsResponse) GetBody ¶
func (r ListSavedCardsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSavedCardsResponse) GetJSON200 ¶
func (r ListSavedCardsResponse) GetJSON200() *CardsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSavedCardsResponse) GetJSON401 ¶
func (r ListSavedCardsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSavedCardsResponse) GetJSON403 ¶
func (r ListSavedCardsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListSavedCardsResponse) GetJSON429 ¶
func (r ListSavedCardsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListSavedCardsResponse) GetJSON500 ¶
func (r ListSavedCardsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSavedCardsResponse) Status ¶
func (r ListSavedCardsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSavedCardsResponse) StatusCode ¶
func (r ListSavedCardsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSavedCardsResponse429Headers ¶
type ListSavedCardsResponse429Headers struct {
RetryAfter *int
}
ListSavedCardsResponse429Headers the declared response headers of an HTTP 429 response for ListSavedCards
type ListTransactionsParams ¶
type ListTransactionsParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListTransactionsParams defines parameters for ListTransactions.
type ListTransactionsResponse ¶
type ListTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TransactionsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListTransactionsResponse429Headers
}
func ParseListTransactionsResponse ¶
func ParseListTransactionsResponse(rsp *http.Response) (*ListTransactionsResponse, error)
ParseListTransactionsResponse parses an HTTP response from a ListTransactionsWithResponse call
func (ListTransactionsResponse) ContentType ¶
func (r ListTransactionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTransactionsResponse) GetBody ¶
func (r ListTransactionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListTransactionsResponse) GetJSON200 ¶
func (r ListTransactionsResponse) GetJSON200() *TransactionsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListTransactionsResponse) GetJSON400 ¶
func (r ListTransactionsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListTransactionsResponse) GetJSON401 ¶
func (r ListTransactionsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListTransactionsResponse) GetJSON403 ¶
func (r ListTransactionsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListTransactionsResponse) GetJSON429 ¶
func (r ListTransactionsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListTransactionsResponse) GetJSON500 ¶
func (r ListTransactionsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListTransactionsResponse) Status ¶
func (r ListTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTransactionsResponse) StatusCode ¶
func (r ListTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTransactionsResponse429Headers ¶
type ListTransactionsResponse429Headers struct {
RetryAfter *int
}
ListTransactionsResponse429Headers the declared response headers of an HTTP 429 response for ListTransactions
type ListTranscriptsParams ¶
type ListTranscriptsParams struct {
// Cursor An opaque paging token from a previous page's next_cursor. Omit to fetch the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum rows to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListTranscriptsParams defines parameters for ListTranscripts.
type ListTranscriptsResponse ¶
type ListTranscriptsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TranscriptList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListTranscriptsResponse429Headers
}
func ParseListTranscriptsResponse ¶
func ParseListTranscriptsResponse(rsp *http.Response) (*ListTranscriptsResponse, error)
ParseListTranscriptsResponse parses an HTTP response from a ListTranscriptsWithResponse call
func (ListTranscriptsResponse) ContentType ¶
func (r ListTranscriptsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTranscriptsResponse) GetBody ¶
func (r ListTranscriptsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListTranscriptsResponse) GetJSON200 ¶
func (r ListTranscriptsResponse) GetJSON200() *TranscriptList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListTranscriptsResponse) GetJSON400 ¶
func (r ListTranscriptsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListTranscriptsResponse) GetJSON401 ¶
func (r ListTranscriptsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListTranscriptsResponse) GetJSON403 ¶
func (r ListTranscriptsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListTranscriptsResponse) GetJSON429 ¶
func (r ListTranscriptsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListTranscriptsResponse) GetJSON500 ¶
func (r ListTranscriptsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListTranscriptsResponse) Status ¶
func (r ListTranscriptsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTranscriptsResponse) StatusCode ¶
func (r ListTranscriptsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTranscriptsResponse429Headers ¶
type ListTranscriptsResponse429Headers struct {
RetryAfter *int
}
ListTranscriptsResponse429Headers the declared response headers of an HTTP 429 response for ListTranscripts
type OptionsSummary ¶
type OptionsSummary struct {
// AutoGenerateInsights This upload's override of automatic Insights generation, or null if it used the account default.
AutoGenerateInsights *bool `json:"auto_generate_insights"`
KeepDisfluencies bool `json:"keep_disfluencies"`
// Keyterms Whether a keyterms prompt was set and applies. False when the language cannot use key terms, even if a saved dictionary was selected. The terms themselves are not included.
Keyterms bool `json:"keyterms"`
// LanguageCode The manually forced language, or null if language auto-detection was used.
LanguageCode *string `json:"language_code"`
MedicalMode bool `json:"medical_mode"`
Multichannel bool `json:"multichannel"`
// Prompt Whether a free-text context prompt was set and applies. False when the language cannot use a prompt, even if a saved preset was selected. The prompt itself is not included.
Prompt bool `json:"prompt"`
SpeakerDetection bool `json:"speaker_detection"`
TranslationTargets []string `json:"translation_targets"`
VetMode bool `json:"vet_mode"`
}
OptionsSummary A content-free summary of the transcription options a job was submitted with: what was requested, never the free-text content itself.
type OrgAuditCsvResponse ¶
type OrgAuditCsvResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *OrgAuditCsvResponse429Headers
}
func ParseOrgAuditCsvResponse ¶
func ParseOrgAuditCsvResponse(rsp *http.Response) (*OrgAuditCsvResponse, error)
ParseOrgAuditCsvResponse parses an HTTP response from a OrgAuditCsvWithResponse call
func (OrgAuditCsvResponse) ContentType ¶
func (r OrgAuditCsvResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OrgAuditCsvResponse) GetBody ¶
func (r OrgAuditCsvResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (OrgAuditCsvResponse) GetJSON401 ¶
func (r OrgAuditCsvResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (OrgAuditCsvResponse) GetJSON403 ¶
func (r OrgAuditCsvResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (OrgAuditCsvResponse) GetJSON429 ¶
func (r OrgAuditCsvResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (OrgAuditCsvResponse) GetJSON500 ¶
func (r OrgAuditCsvResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (OrgAuditCsvResponse) Status ¶
func (r OrgAuditCsvResponse) Status() string
Status returns HTTPResponse.Status
func (OrgAuditCsvResponse) StatusCode ¶
func (r OrgAuditCsvResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrgAuditCsvResponse429Headers ¶
type OrgAuditCsvResponse429Headers struct {
RetryAfter *int
}
OrgAuditCsvResponse429Headers the declared response headers of an HTTP 429 response for OrgAuditCsv
type OrgAuditEntry ¶
type OrgAuditEntry struct {
ActorUserId *string `json:"actor_user_id"`
CreatedAt int `json:"created_at"`
Detail *string `json:"detail"`
Event string `json:"event"`
Id int `json:"id"`
}
OrgAuditEntry defines model for OrgAuditEntry.
type OrgAuditResponse ¶
type OrgAuditResponse struct {
Entries []OrgAuditEntry `json:"entries"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
OrgAuditResponse defines model for OrgAuditResponse.
type OrgInvoice ¶
type OrgInvoice struct {
AmountCents int `json:"amount_cents"`
CreatedAt int `json:"created_at"`
Currency string `json:"currency"`
Id string `json:"id"`
IssuedAt int `json:"issued_at"`
Kind string `json:"kind"`
Number *string `json:"number"`
PaidAt *int `json:"paid_at"`
PaymentReference string `json:"payment_reference"`
PoNumber *string `json:"po_number"`
Seconds int `json:"seconds"`
Sku string `json:"sku"`
Status string `json:"status"`
}
OrgInvoice defines model for OrgInvoice.
type OrgInvoicesResponse ¶
type OrgInvoicesResponse struct {
Invoices []OrgInvoice `json:"invoices"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
OrgInvoicesResponse defines model for OrgInvoicesResponse.
type OrgLedgerCsvResponse ¶
type OrgLedgerCsvResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *OrgLedgerCsvResponse429Headers
}
func ParseOrgLedgerCsvResponse ¶
func ParseOrgLedgerCsvResponse(rsp *http.Response) (*OrgLedgerCsvResponse, error)
ParseOrgLedgerCsvResponse parses an HTTP response from a OrgLedgerCsvWithResponse call
func (OrgLedgerCsvResponse) ContentType ¶
func (r OrgLedgerCsvResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OrgLedgerCsvResponse) GetBody ¶
func (r OrgLedgerCsvResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (OrgLedgerCsvResponse) GetJSON401 ¶
func (r OrgLedgerCsvResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (OrgLedgerCsvResponse) GetJSON403 ¶
func (r OrgLedgerCsvResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (OrgLedgerCsvResponse) GetJSON429 ¶
func (r OrgLedgerCsvResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (OrgLedgerCsvResponse) GetJSON500 ¶
func (r OrgLedgerCsvResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (OrgLedgerCsvResponse) Status ¶
func (r OrgLedgerCsvResponse) Status() string
Status returns HTTPResponse.Status
func (OrgLedgerCsvResponse) StatusCode ¶
func (r OrgLedgerCsvResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrgLedgerCsvResponse429Headers ¶
type OrgLedgerCsvResponse429Headers struct {
RetryAfter *int
}
OrgLedgerCsvResponse429Headers the declared response headers of an HTTP 429 response for OrgLedgerCsv
type OrgLedgerEntry ¶
type OrgLedgerEntry struct {
ActorUserId *string `json:"actor_user_id"`
CreatedAt int `json:"created_at"`
DeltaSeconds int `json:"delta_seconds"`
Id int `json:"id"`
InvoiceId *string `json:"invoice_id"`
JobId *string `json:"job_id"`
Kind string `json:"kind"`
MemberEmail *string `json:"member_email"`
Note *string `json:"note"`
}
OrgLedgerEntry defines model for OrgLedgerEntry.
type OrgLedgerResponse ¶
type OrgLedgerResponse struct {
Entries []OrgLedgerEntry `json:"entries"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
OrgLedgerResponse defines model for OrgLedgerResponse.
type OrgMatter ¶
type OrgMatter struct {
Code string `json:"code"`
Id string `json:"id"`
Status OrgMatterStatus `json:"status"`
}
OrgMatter defines model for OrgMatter.
type OrgMatterStatus ¶
type OrgMatterStatus string
OrgMatterStatus defines model for OrgMatter.Status.
const ( OrgMatterStatusClosed OrgMatterStatus = "closed" OrgMatterStatusOpen OrgMatterStatus = "open" )
Defines values for OrgMatterStatus.
func (OrgMatterStatus) Valid ¶
func (e OrgMatterStatus) Valid() bool
Valid indicates whether the value is a known member of the OrgMatterStatus enum.
type OrgMattersResponse ¶
type OrgMattersResponse struct {
Matters []OrgMatter `json:"matters"`
}
OrgMattersResponse defines model for OrgMattersResponse.
type OrgMember ¶
type OrgMember struct {
Email string `json:"email"`
IsAdmin bool `json:"is_admin"`
IsBilling bool `json:"is_billing"`
IsReviewer bool `json:"is_reviewer"`
JoinedAt int `json:"joined_at"`
// MonthlyCapSeconds This member's own monthly seconds cap, or null when unset.
MonthlyCapSeconds *int `json:"monthly_cap_seconds"`
Role string `json:"role"`
UserId string `json:"user_id"`
}
OrgMember defines model for OrgMember.
type OrgMembersResponse ¶
type OrgMembersResponse struct {
Members []OrgMember `json:"members"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
}
OrgMembersResponse defines model for OrgMembersResponse.
type OrgSummaryResponse ¶
type OrgSummaryResponse struct {
AutoRenew bool `json:"auto_renew"`
// BalanceSeconds The pool's raw balance. Can be negative after a void clawback or a negative pool adjustment.
BalanceSeconds int `json:"balance_seconds"`
// BillingDetails Free-text billing details shown on invoices. Null when none are set, and always null unless the caller is an admin or holds the billing right.
BillingDetails *string `json:"billing_details"`
// BillingEmail The workspace's billing contact. Null unless the caller is an admin or holds the billing right.
BillingEmail *string `json:"billing_email"`
// CallerEffectiveCapSeconds The signed-in caller's own effective monthly cap: their personal override if one is set, else member_cap_seconds, else null for no cap. Also null when the caller is outside the org's current funding window.
CallerEffectiveCapSeconds *int `json:"caller_effective_cap_seconds"`
// CallerSpentSecondsThisMonth The signed-in caller's own month-to-date spend against the pool. Null under the same condition caller_effective_cap_seconds is null.
CallerSpentSecondsThisMonth *int `json:"caller_spent_seconds_this_month"`
CreatedAt int `json:"created_at"`
// Custody private or firm. private: transcripts belong to the member, no reviewer can open them. firm: a transcript created while a member belongs to the workspace is workspace property; is_reviewer members can open it.
Custody string `json:"custody"`
// CustodySwitchAt Unix seconds the pending private-to-firm switch takes effect, or null when no switch is scheduled. Only ever set while custody is still private.
CustodySwitchAt *int `json:"custody_switch_at"`
DefaultRetentionDays *int `json:"default_retention_days"`
GraceUntil *int `json:"grace_until"`
Id string `json:"id"`
// IsOwner Whether the signed-in caller is the workspace's single transferable owner (distinct from is_admin).
IsOwner bool `json:"is_owner"`
MaxRetentionDays *int `json:"max_retention_days"`
// MemberCapSeconds The workspace-wide default per-member monthly spending cap against the pool. Null means no org-wide default.
MemberCapSeconds *int `json:"member_cap_seconds"`
Name string `json:"name"`
// OwnerUserId The id of the workspace's transferable owner, visible to every member. Falls back to the org's creator if owner_user_id was never explicitly set on the row.
OwnerUserId string `json:"owner_user_id"`
Plan string `json:"plan"`
// PlanActive Whether the term itself is still running (ignores grace).
PlanActive bool `json:"plan_active"`
// PlanActiveUntil Unix seconds the current term runs until, or null before the org's first plan is paid.
PlanActiveUntil *int `json:"plan_active_until"`
// PlanState pending, active, grace, or frozen.
PlanState string `json:"plan_state"`
// PlanTerm annual or monthly, or null if the org has never had a plan.
PlanTerm *string `json:"plan_term"`
// PoolExpiresAt Always null; minutes do not expire. Retained for compatibility until the next SDK major version.
PoolExpiresAt *int `json:"pool_expires_at"`
// RenewalCapped Whether renewal_failures has reached the cap the daily renewal lane stops retrying at.
RenewalCapped bool `json:"renewal_capped"`
RenewalFailures int `json:"renewal_failures"`
// RenewalSourceStored Whether a saved card is on file for the renewal lane to charge. Never the payment method id itself.
RenewalSourceStored bool `json:"renewal_source_stored"`
// RenewalUserId The id of the member whose saved card the renewal lane charges. Visible to admins only; a non-admin member always sees null here regardless of whether a source is stored (see renewal_source_stored).
RenewalUserId *string `json:"renewal_user_id"`
// RetentionReclampAt Unix seconds the currently armed retention re-clamp takes effect, or null when none is scheduled. Set only while a tightened max_retention_days still has existing transcripts left to pull in.
RetentionReclampAt *int `json:"retention_reclamp_at"`
// RetentionReclampDays The retention day count the armed re-clamp will apply, or null when none is scheduled. Mirrors max_retention_days at the moment the re-clamp was armed, not necessarily the current value.
RetentionReclampDays *int `json:"retention_reclamp_days"`
// Role The caller's own role in this organization: admin or member.
Role string `json:"role"`
SeatsLimit *int `json:"seats_limit"`
// SeatsPending Seats held by pending, unexpired invites.
SeatsPending int `json:"seats_pending"`
SeatsUsed int `json:"seats_used"`
// SpendableSeconds balance_seconds floored at zero, and zeroed outright when the org is outside its funding window (frozen or lapsed past grace).
SpendableSeconds int `json:"spendable_seconds"`
// TaxId The buyer's self-declared tax id, shown on invoices. Not validated against any registry. Null unless the caller is an admin or holds the billing right.
TaxId *string `json:"tax_id"`
// TaxIdLabel The buyer's own word for tax_id, e.g. VAT, EIN, ABN. Null unless the caller is an admin or holds the billing right.
TaxIdLabel *string `json:"tax_id_label"`
}
OrgSummaryResponse defines model for OrgSummaryResponse.
type OrgTranscript ¶
type OrgTranscript struct {
CreatedAt int `json:"created_at"`
DurationSeconds int `json:"duration_seconds"`
Id string `json:"id"`
LegalHold bool `json:"legal_hold"`
Title string `json:"title"`
// UserId The transcript owner's user id.
UserId string `json:"user_id"`
}
OrgTranscript One row of the organization's firm-custody transcript index. Never carries transcript body or content beyond the title.
type OrgTranscriptsResponse ¶
type OrgTranscriptsResponse struct {
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
Transcripts []OrgTranscript `json:"transcripts"`
}
OrgTranscriptsResponse defines model for OrgTranscriptsResponse.
type OrgUsageReportCsvParams ¶
type OrgUsageReportCsvParams struct {
// From Range start, Unix seconds, inclusive.
From int `form:"from" json:"from"`
// To Range end, Unix seconds, exclusive. Must be after from and at most 366 days later.
To int `form:"to" json:"to"`
// GroupBy How to group the aggregated rows. An unrecognized value is refused rather than defaulted.
GroupBy *OrgUsageReportCsvParamsGroupBy `form:"group_by,omitempty" json:"group_by,omitempty"`
}
OrgUsageReportCsvParams defines parameters for OrgUsageReportCsv.
type OrgUsageReportCsvParamsGroupBy ¶
type OrgUsageReportCsvParamsGroupBy string
OrgUsageReportCsvParamsGroupBy defines parameters for OrgUsageReportCsv.
const ( OrgUsageReportCsvParamsGroupByClient OrgUsageReportCsvParamsGroupBy = "client" OrgUsageReportCsvParamsGroupByMatter OrgUsageReportCsvParamsGroupBy = "matter" OrgUsageReportCsvParamsGroupByMember OrgUsageReportCsvParamsGroupBy = "member" )
Defines values for OrgUsageReportCsvParamsGroupBy.
func (OrgUsageReportCsvParamsGroupBy) Valid ¶
func (e OrgUsageReportCsvParamsGroupBy) Valid() bool
Valid indicates whether the value is a known member of the OrgUsageReportCsvParamsGroupBy enum.
type OrgUsageReportCsvResponse ¶
type OrgUsageReportCsvResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *OrgUsageReportCsvResponse429Headers
}
func ParseOrgUsageReportCsvResponse ¶
func ParseOrgUsageReportCsvResponse(rsp *http.Response) (*OrgUsageReportCsvResponse, error)
ParseOrgUsageReportCsvResponse parses an HTTP response from a OrgUsageReportCsvWithResponse call
func (OrgUsageReportCsvResponse) ContentType ¶
func (r OrgUsageReportCsvResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OrgUsageReportCsvResponse) GetBody ¶
func (r OrgUsageReportCsvResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (OrgUsageReportCsvResponse) GetJSON401 ¶
func (r OrgUsageReportCsvResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (OrgUsageReportCsvResponse) GetJSON403 ¶
func (r OrgUsageReportCsvResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (OrgUsageReportCsvResponse) GetJSON422 ¶
func (r OrgUsageReportCsvResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (OrgUsageReportCsvResponse) GetJSON429 ¶
func (r OrgUsageReportCsvResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (OrgUsageReportCsvResponse) GetJSON500 ¶
func (r OrgUsageReportCsvResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (OrgUsageReportCsvResponse) Status ¶
func (r OrgUsageReportCsvResponse) Status() string
Status returns HTTPResponse.Status
func (OrgUsageReportCsvResponse) StatusCode ¶
func (r OrgUsageReportCsvResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrgUsageReportCsvResponse429Headers ¶
type OrgUsageReportCsvResponse429Headers struct {
RetryAfter *int
}
OrgUsageReportCsvResponse429Headers the declared response headers of an HTTP 429 response for OrgUsageReportCsv
type OrgUsageReportParams ¶
type OrgUsageReportParams struct {
// From Range start, Unix seconds, inclusive.
From int `form:"from" json:"from"`
// To Range end, Unix seconds, exclusive. Must be after from and at most 366 days later.
To int `form:"to" json:"to"`
// GroupBy How to group the aggregated rows. An unrecognized value is refused rather than defaulted.
GroupBy *OrgUsageReportParamsGroupBy `form:"group_by,omitempty" json:"group_by,omitempty"`
}
OrgUsageReportParams defines parameters for OrgUsageReport.
type OrgUsageReportParamsGroupBy ¶
type OrgUsageReportParamsGroupBy string
OrgUsageReportParamsGroupBy defines parameters for OrgUsageReport.
const ( OrgUsageReportParamsGroupByClient OrgUsageReportParamsGroupBy = "client" OrgUsageReportParamsGroupByMatter OrgUsageReportParamsGroupBy = "matter" OrgUsageReportParamsGroupByMember OrgUsageReportParamsGroupBy = "member" )
Defines values for OrgUsageReportParamsGroupBy.
func (OrgUsageReportParamsGroupBy) Valid ¶
func (e OrgUsageReportParamsGroupBy) Valid() bool
Valid indicates whether the value is a known member of the OrgUsageReportParamsGroupBy enum.
type OrgUsageReportResponse ¶
type OrgUsageReportResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrgUsageResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *OrgUsageReportResponse429Headers
}
func ParseOrgUsageReportResponse ¶
func ParseOrgUsageReportResponse(rsp *http.Response) (*OrgUsageReportResponse, error)
ParseOrgUsageReportResponse parses an HTTP response from a OrgUsageReportWithResponse call
func (OrgUsageReportResponse) ContentType ¶
func (r OrgUsageReportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OrgUsageReportResponse) GetBody ¶
func (r OrgUsageReportResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (OrgUsageReportResponse) GetJSON200 ¶
func (r OrgUsageReportResponse) GetJSON200() *OrgUsageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (OrgUsageReportResponse) GetJSON401 ¶
func (r OrgUsageReportResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (OrgUsageReportResponse) GetJSON403 ¶
func (r OrgUsageReportResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (OrgUsageReportResponse) GetJSON422 ¶
func (r OrgUsageReportResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (OrgUsageReportResponse) GetJSON429 ¶
func (r OrgUsageReportResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (OrgUsageReportResponse) GetJSON500 ¶
func (r OrgUsageReportResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (OrgUsageReportResponse) Status ¶
func (r OrgUsageReportResponse) Status() string
Status returns HTTPResponse.Status
func (OrgUsageReportResponse) StatusCode ¶
func (r OrgUsageReportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrgUsageReportResponse429Headers ¶
type OrgUsageReportResponse429Headers struct {
RetryAfter *int
}
OrgUsageReportResponse429Headers the declared response headers of an HTTP 429 response for OrgUsageReport
type OrgUsageResponse ¶
type OrgUsageResponse struct {
From int `json:"from"`
GroupBy OrgUsageResponseGroupBy `json:"group_by"`
RateCentsPerHour int `json:"rate_cents_per_hour"`
Rows []OrgUsageRow `json:"rows"`
To int `json:"to"`
}
OrgUsageResponse defines model for OrgUsageResponse.
type OrgUsageResponseGroupBy ¶
type OrgUsageResponseGroupBy string
OrgUsageResponseGroupBy defines model for OrgUsageResponse.GroupBy.
const ( OrgUsageResponseGroupByClient OrgUsageResponseGroupBy = "client" OrgUsageResponseGroupByMatter OrgUsageResponseGroupBy = "matter" OrgUsageResponseGroupByMember OrgUsageResponseGroupBy = "member" )
Defines values for OrgUsageResponseGroupBy.
func (OrgUsageResponseGroupBy) Valid ¶
func (e OrgUsageResponseGroupBy) Valid() bool
Valid indicates whether the value is a known member of the OrgUsageResponseGroupBy enum.
type OrgUsageRow ¶
type OrgUsageRow struct {
BilledSeconds int `json:"billed_seconds"`
// CostCents billed_seconds priced at the workspace's rebill_rate_cents_per_hour, rounded up to the cent.
CostCents int `json:"cost_cents"`
Jobs int `json:"jobs"`
// Key The member email, matter code or client code this row aggregates, or "(none)" for an unfiled job or a purged member.
Key string `json:"key"`
}
OrgUsageRow defines model for OrgUsageRow.
type Pack ¶
type Pack struct {
// Amount The price in minor units of currency, already localized for the account's country.
Amount int `json:"amount"`
// Available Whether the caller's account may buy this pack right now. Present for agent accounts only: an agent's pack tier gates the larger packs until enough prior payments have settled past the dispute window. Absent on every human caller's response, whose packs are all always available.
Available *bool `json:"available,omitempty"`
Currency string `json:"currency"`
Id string `json:"id"`
// ReferralBonusSeconds Extra seconds this purchase would add from an available referral buyer bonus. Zero when none is available.
ReferralBonusSeconds int `json:"referral_bonus_seconds"`
Seconds int `json:"seconds"`
}
Pack defines model for Pack.
type PacksResponse ¶
type PacksResponse struct {
Packs []Pack `json:"packs"`
}
PacksResponse defines model for PacksResponse.
type PatchOrgMemberJSONBody ¶
type PatchOrgMemberJSONBody struct {
// IsAdmin Grant or revoke the admin right. Omit to leave unchanged.
IsAdmin *bool `json:"is_admin,omitempty"`
// IsBilling Grant or revoke the billing right. Omit to leave unchanged.
IsBilling *bool `json:"is_billing,omitempty"`
// IsReviewer Grant or revoke the reviewer right. Omit to leave unchanged.
IsReviewer *bool `json:"is_reviewer,omitempty"`
// MonthlyCapSeconds The member's monthly spend cap in seconds against the pool, or null to clear it. Omit to leave unchanged.
MonthlyCapSeconds *int `json:"monthly_cap_seconds,omitempty"`
}
PatchOrgMemberJSONBody defines parameters for PatchOrgMember.
type PatchOrgMemberJSONRequestBody ¶
type PatchOrgMemberJSONRequestBody PatchOrgMemberJSONBody
PatchOrgMemberJSONRequestBody defines body for PatchOrgMember for application/json ContentType.
type PatchOrgMemberResponse ¶
type PatchOrgMemberResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PatchOrgMemberResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *PatchOrgMemberResponse429Headers
}
func ParsePatchOrgMemberResponse ¶
func ParsePatchOrgMemberResponse(rsp *http.Response) (*PatchOrgMemberResponse, error)
ParsePatchOrgMemberResponse parses an HTTP response from a PatchOrgMemberWithResponse call
func (PatchOrgMemberResponse) ContentType ¶
func (r PatchOrgMemberResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchOrgMemberResponse) GetBody ¶
func (r PatchOrgMemberResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchOrgMemberResponse) GetJSON200 ¶
func (r PatchOrgMemberResponse) GetJSON200() *PatchOrgMemberResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchOrgMemberResponse) GetJSON400 ¶
func (r PatchOrgMemberResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchOrgMemberResponse) GetJSON401 ¶
func (r PatchOrgMemberResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PatchOrgMemberResponse) GetJSON403 ¶
func (r PatchOrgMemberResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PatchOrgMemberResponse) GetJSON404 ¶
func (r PatchOrgMemberResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PatchOrgMemberResponse) GetJSON409 ¶
func (r PatchOrgMemberResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PatchOrgMemberResponse) GetJSON422 ¶
func (r PatchOrgMemberResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PatchOrgMemberResponse) GetJSON429 ¶
func (r PatchOrgMemberResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (PatchOrgMemberResponse) GetJSON500 ¶
func (r PatchOrgMemberResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PatchOrgMemberResponse) Status ¶
func (r PatchOrgMemberResponse) Status() string
Status returns HTTPResponse.Status
func (PatchOrgMemberResponse) StatusCode ¶
func (r PatchOrgMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchOrgMemberResponse429Headers ¶
type PatchOrgMemberResponse429Headers struct {
RetryAfter *int
}
PatchOrgMemberResponse429Headers the declared response headers of an HTTP 429 response for PatchOrgMember
type PatchOrgMemberResult ¶ added in v1.1.0
type PatchOrgMemberResult struct {
Ok bool `json:"ok"`
}
PatchOrgMemberResult defines parameters for PatchOrgMember.
type PlaceTranscriptHoldResponse ¶
type PlaceTranscriptHoldResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PlaceTranscriptHoldResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *PlaceTranscriptHoldResponse429Headers
}
func ParsePlaceTranscriptHoldResponse ¶
func ParsePlaceTranscriptHoldResponse(rsp *http.Response) (*PlaceTranscriptHoldResponse, error)
ParsePlaceTranscriptHoldResponse parses an HTTP response from a PlaceTranscriptHoldWithResponse call
func (PlaceTranscriptHoldResponse) ContentType ¶
func (r PlaceTranscriptHoldResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PlaceTranscriptHoldResponse) GetBody ¶
func (r PlaceTranscriptHoldResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PlaceTranscriptHoldResponse) GetJSON200 ¶
func (r PlaceTranscriptHoldResponse) GetJSON200() *PlaceTranscriptHoldResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PlaceTranscriptHoldResponse) GetJSON400 ¶
func (r PlaceTranscriptHoldResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PlaceTranscriptHoldResponse) GetJSON401 ¶
func (r PlaceTranscriptHoldResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PlaceTranscriptHoldResponse) GetJSON403 ¶
func (r PlaceTranscriptHoldResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PlaceTranscriptHoldResponse) GetJSON404 ¶
func (r PlaceTranscriptHoldResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PlaceTranscriptHoldResponse) GetJSON429 ¶
func (r PlaceTranscriptHoldResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (PlaceTranscriptHoldResponse) GetJSON500 ¶
func (r PlaceTranscriptHoldResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PlaceTranscriptHoldResponse) Status ¶
func (r PlaceTranscriptHoldResponse) Status() string
Status returns HTTPResponse.Status
func (PlaceTranscriptHoldResponse) StatusCode ¶
func (r PlaceTranscriptHoldResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PlaceTranscriptHoldResponse429Headers ¶
type PlaceTranscriptHoldResponse429Headers struct {
RetryAfter *int
}
PlaceTranscriptHoldResponse429Headers the declared response headers of an HTTP 429 response for PlaceTranscriptHold
type PlaceTranscriptHoldResult ¶ added in v1.1.0
type PlaceTranscriptHoldResult struct {
Ok bool `json:"ok"`
}
PlaceTranscriptHoldResult defines parameters for PlaceTranscriptHold.
type PresignedPartUrl ¶
type PresignedPartUrl struct {
// N The 1-based part number this URL is for.
N int `json:"n"`
// Url A presigned R2 PUT URL, valid for a limited time.
Url string `json:"url"`
}
PresignedPartUrl defines model for PresignedPartUrl.
type PurchaseResponse ¶
type PurchaseResponse struct {
// BalanceSeconds The account's net balance after this purchase settled.
BalanceSeconds int `json:"balance_seconds"`
Status PurchaseResponseStatus `json:"status"`
}
PurchaseResponse defines model for PurchaseResponse.
type PurchaseResponseStatus ¶
type PurchaseResponseStatus string
PurchaseResponseStatus defines model for PurchaseResponse.Status.
const (
Ok PurchaseResponseStatus = "ok"
)
Defines values for PurchaseResponseStatus.
func (PurchaseResponseStatus) Valid ¶
func (e PurchaseResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the PurchaseResponseStatus enum.
type RateLimited ¶
type RateLimited = Error
RateLimited The frozen /v1 error body. error and code are always present together; the remaining keys are optional detail this API includes only when the specific error carries them, and they are omitted rather than emitted as null when absent.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RotateAgentCredentialsResponse ¶
type RotateAgentCredentialsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AgentCredentialsRotateResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RotateAgentCredentialsResponse429Headers
}
func ParseRotateAgentCredentialsResponse ¶
func ParseRotateAgentCredentialsResponse(rsp *http.Response) (*RotateAgentCredentialsResponse, error)
ParseRotateAgentCredentialsResponse parses an HTTP response from a RotateAgentCredentialsWithResponse call
func (RotateAgentCredentialsResponse) ContentType ¶
func (r RotateAgentCredentialsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RotateAgentCredentialsResponse) GetBody ¶
func (r RotateAgentCredentialsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RotateAgentCredentialsResponse) GetJSON201 ¶
func (r RotateAgentCredentialsResponse) GetJSON201() *AgentCredentialsRotateResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (RotateAgentCredentialsResponse) GetJSON401 ¶
func (r RotateAgentCredentialsResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RotateAgentCredentialsResponse) GetJSON403 ¶
func (r RotateAgentCredentialsResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (RotateAgentCredentialsResponse) GetJSON429 ¶
func (r RotateAgentCredentialsResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (RotateAgentCredentialsResponse) GetJSON500 ¶
func (r RotateAgentCredentialsResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (RotateAgentCredentialsResponse) Status ¶
func (r RotateAgentCredentialsResponse) Status() string
Status returns HTTPResponse.Status
func (RotateAgentCredentialsResponse) StatusCode ¶
func (r RotateAgentCredentialsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RotateAgentCredentialsResponse429Headers ¶
type RotateAgentCredentialsResponse429Headers struct {
RetryAfter *int
}
RotateAgentCredentialsResponse429Headers the declared response headers of an HTTP 429 response for RotateAgentCredentials
type ScheduleOrgCustodyJSONBody ¶
type ScheduleOrgCustodyJSONBody struct {
// Custody Must be firm; this route only schedules the private to firm switch.
Custody ScheduleOrgCustodyJSONBodyCustody `json:"custody"`
}
ScheduleOrgCustodyJSONBody defines parameters for ScheduleOrgCustody.
type ScheduleOrgCustodyJSONBodyCustody ¶
type ScheduleOrgCustodyJSONBodyCustody string
ScheduleOrgCustodyJSONBodyCustody defines parameters for ScheduleOrgCustody.
const (
Firm ScheduleOrgCustodyJSONBodyCustody = "firm"
)
Defines values for ScheduleOrgCustodyJSONBodyCustody.
func (ScheduleOrgCustodyJSONBodyCustody) Valid ¶
func (e ScheduleOrgCustodyJSONBodyCustody) Valid() bool
Valid indicates whether the value is a known member of the ScheduleOrgCustodyJSONBodyCustody enum.
type ScheduleOrgCustodyJSONRequestBody ¶
type ScheduleOrgCustodyJSONRequestBody ScheduleOrgCustodyJSONBody
ScheduleOrgCustodyJSONRequestBody defines body for ScheduleOrgCustody for application/json ContentType.
type ScheduleOrgCustodyResponse ¶
type ScheduleOrgCustodyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ScheduleOrgCustodyResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ScheduleOrgCustodyResponse429Headers
}
func ParseScheduleOrgCustodyResponse ¶
func ParseScheduleOrgCustodyResponse(rsp *http.Response) (*ScheduleOrgCustodyResponse, error)
ParseScheduleOrgCustodyResponse parses an HTTP response from a ScheduleOrgCustodyWithResponse call
func (ScheduleOrgCustodyResponse) ContentType ¶
func (r ScheduleOrgCustodyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ScheduleOrgCustodyResponse) GetBody ¶
func (r ScheduleOrgCustodyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ScheduleOrgCustodyResponse) GetJSON200 ¶
func (r ScheduleOrgCustodyResponse) GetJSON200() *ScheduleOrgCustodyResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ScheduleOrgCustodyResponse) GetJSON400 ¶
func (r ScheduleOrgCustodyResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ScheduleOrgCustodyResponse) GetJSON401 ¶
func (r ScheduleOrgCustodyResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ScheduleOrgCustodyResponse) GetJSON403 ¶
func (r ScheduleOrgCustodyResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ScheduleOrgCustodyResponse) GetJSON409 ¶
func (r ScheduleOrgCustodyResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ScheduleOrgCustodyResponse) GetJSON429 ¶
func (r ScheduleOrgCustodyResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ScheduleOrgCustodyResponse) GetJSON500 ¶
func (r ScheduleOrgCustodyResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ScheduleOrgCustodyResponse) Status ¶
func (r ScheduleOrgCustodyResponse) Status() string
Status returns HTTPResponse.Status
func (ScheduleOrgCustodyResponse) StatusCode ¶
func (r ScheduleOrgCustodyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScheduleOrgCustodyResponse429Headers ¶
type ScheduleOrgCustodyResponse429Headers struct {
RetryAfter *int
}
ScheduleOrgCustodyResponse429Headers the declared response headers of an HTTP 429 response for ScheduleOrgCustody
type ScheduleOrgCustodyResult ¶ added in v1.1.0
type ScheduleOrgCustodyResult struct {
Ok bool `json:"ok"`
// SwitchAt Unix timestamp when the switch to firm custody takes effect.
SwitchAt int `json:"switch_at"`
}
ScheduleOrgCustodyResult defines parameters for ScheduleOrgCustody.
type SetDefaultCardJSONBody ¶
type SetDefaultCardJSONBody struct {
// PaymentMethodId The id of a card from list_saved_cards to make the new default.
PaymentMethodId string `json:"payment_method_id"`
}
SetDefaultCardJSONBody defines parameters for SetDefaultCard.
type SetDefaultCardJSONRequestBody ¶
type SetDefaultCardJSONRequestBody SetDefaultCardJSONBody
SetDefaultCardJSONRequestBody defines body for SetDefaultCard for application/json ContentType.
type SetDefaultCardResponse ¶
type SetDefaultCardResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SetDefaultCardResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *SetDefaultCardResponse429Headers
}
func ParseSetDefaultCardResponse ¶
func ParseSetDefaultCardResponse(rsp *http.Response) (*SetDefaultCardResponse, error)
ParseSetDefaultCardResponse parses an HTTP response from a SetDefaultCardWithResponse call
func (SetDefaultCardResponse) ContentType ¶
func (r SetDefaultCardResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetDefaultCardResponse) GetBody ¶
func (r SetDefaultCardResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SetDefaultCardResponse) GetJSON200 ¶
func (r SetDefaultCardResponse) GetJSON200() *SetDefaultCardResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SetDefaultCardResponse) GetJSON400 ¶
func (r SetDefaultCardResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SetDefaultCardResponse) GetJSON401 ¶
func (r SetDefaultCardResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (SetDefaultCardResponse) GetJSON403 ¶
func (r SetDefaultCardResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (SetDefaultCardResponse) GetJSON404 ¶
func (r SetDefaultCardResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SetDefaultCardResponse) GetJSON429 ¶
func (r SetDefaultCardResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (SetDefaultCardResponse) GetJSON500 ¶
func (r SetDefaultCardResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (SetDefaultCardResponse) Status ¶
func (r SetDefaultCardResponse) Status() string
Status returns HTTPResponse.Status
func (SetDefaultCardResponse) StatusCode ¶
func (r SetDefaultCardResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetDefaultCardResponse429Headers ¶
type SetDefaultCardResponse429Headers struct {
RetryAfter *int
}
SetDefaultCardResponse429Headers the declared response headers of an HTTP 429 response for SetDefaultCard
type SetDefaultCardResult ¶ added in v1.1.0
type SetDefaultCardResult struct {
Ok bool `json:"ok"`
}
SetDefaultCardResult defines parameters for SetDefaultCard.
type SetupSessionResponse ¶
type SetupSessionResponse struct {
// CheckoutUrl Open this URL in a browser you control to complete the hosted setup page.
CheckoutUrl string `json:"checkout_url"`
// ExpiresAt Unix timestamp after which the Session stops accepting a card.
ExpiresAt int `json:"expires_at"`
SessionId string `json:"session_id"`
}
SetupSessionResponse defines model for SetupSessionResponse.
type Transaction ¶
type Transaction struct {
AmountCents int `json:"amount_cents"`
AmountRefundedCents int `json:"amount_refunded_cents"`
CreatedAt int `json:"created_at"`
Currency string `json:"currency"`
// Id This row's own id.
Id int `json:"id"`
InitiatedVia *string `json:"initiated_via"`
PaymentMethodBrand *string `json:"payment_method_brand"`
PaymentMethodLast4 *string `json:"payment_method_last4"`
PaymentMethodType *string `json:"payment_method_type"`
// Provider Where the purchase was paid: Stripe (card, wallet, bank), or a store (Apple, Google Play).
Provider TransactionProvider `json:"provider"`
// ReceiptNumber The public receipt reference, e.g. HS-20260101-abcdef0123456789-1.
ReceiptNumber *string `json:"receipt_number"`
Seconds int `json:"seconds"`
Status string `json:"status"`
}
Transaction defines model for Transaction.
type TransactionProvider ¶ added in v1.2.0
type TransactionProvider string
TransactionProvider Where the purchase was paid: Stripe (card, wallet, bank), or a store (Apple, Google Play).
const ( Apple TransactionProvider = "apple" Google TransactionProvider = "google" Stripe TransactionProvider = "stripe" )
Defines values for TransactionProvider.
func (TransactionProvider) Valid ¶ added in v1.2.0
func (e TransactionProvider) Valid() bool
Valid indicates whether the value is a known member of the TransactionProvider enum.
type TransactionsResponse ¶
type TransactionsResponse struct {
AccountReference string `json:"account_reference"`
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
Transactions []Transaction `json:"transactions"`
}
TransactionsResponse defines model for TransactionsResponse.
type TranscriptDetail ¶
type TranscriptDetail struct {
// AutoDeleteAt When this transcript is scheduled to be purged, or null to keep it indefinitely.
AutoDeleteAt *int `json:"auto_delete_at"`
// Body The transcript's full structured body.
Body TranscriptEnvelope `json:"body"`
// ClientCode The workspace client this transcript is filed under, or null. Set at upload time and editable afterwards; always null for a transcript that was never funded by a workspace.
ClientCode *string `json:"client_code"`
CreatedAt int `json:"created_at"`
DurationSeconds int `json:"duration_seconds"`
// Edited Whether the original body has been edited since transcription.
Edited bool `json:"edited"`
Id string `json:"id"`
LanguageDetected *string `json:"language_detected"`
// MatterCode The workspace matter this transcript is filed under, or null. Set at upload time and editable afterwards; always null for a transcript that was never funded by a workspace.
MatterCode *string `json:"matter_code"`
// OriginApp The app the job was created from: the web app, the Chrome extension, the Android or iOS app, or the API. Null when unknown, which is always the case for rows created before this field existed.
OriginApp *TranscriptDetailOriginApp `json:"origin_app"`
// OriginSource How the audio entered Hushscript: a file upload, an import from a link, or an in-app recording. Null when unknown, which is always the case for rows created before this field existed.
OriginSource *TranscriptDetailOriginSource `json:"origin_source"`
// SpeakerNames Provider speaker label mapped to a display name, for every speaker the caller has renamed.
SpeakerNames map[string]string `json:"speaker_names"`
Tags []string `json:"tags"`
Title string `json:"title"`
UpdatedAt int `json:"updated_at"`
}
TranscriptDetail defines model for TranscriptDetail.
type TranscriptDetailOriginApp ¶ added in v1.2.0
type TranscriptDetailOriginApp string
TranscriptDetailOriginApp The app the job was created from: the web app, the Chrome extension, the Android or iOS app, or the API. Null when unknown, which is always the case for rows created before this field existed.
const ( TranscriptDetailOriginAppAndroid TranscriptDetailOriginApp = "android" TranscriptDetailOriginAppApi TranscriptDetailOriginApp = "api" TranscriptDetailOriginAppExtension TranscriptDetailOriginApp = "extension" TranscriptDetailOriginAppIos TranscriptDetailOriginApp = "ios" TranscriptDetailOriginAppLessThannil TranscriptDetailOriginApp = "<nil>" TranscriptDetailOriginAppWeb TranscriptDetailOriginApp = "web" )
Defines values for TranscriptDetailOriginApp.
func (TranscriptDetailOriginApp) Valid ¶ added in v1.2.0
func (e TranscriptDetailOriginApp) Valid() bool
Valid indicates whether the value is a known member of the TranscriptDetailOriginApp enum.
type TranscriptDetailOriginSource ¶ added in v1.2.0
type TranscriptDetailOriginSource string
TranscriptDetailOriginSource How the audio entered Hushscript: a file upload, an import from a link, or an in-app recording. Null when unknown, which is always the case for rows created before this field existed.
const ( TranscriptDetailOriginSourceLessThannil TranscriptDetailOriginSource = "<nil>" TranscriptDetailOriginSourceRecording TranscriptDetailOriginSource = "recording" TranscriptDetailOriginSourceUpload TranscriptDetailOriginSource = "upload" TranscriptDetailOriginSourceUrl TranscriptDetailOriginSource = "url" )
Defines values for TranscriptDetailOriginSource.
func (TranscriptDetailOriginSource) Valid ¶ added in v1.2.0
func (e TranscriptDetailOriginSource) Valid() bool
Valid indicates whether the value is a known member of the TranscriptDetailOriginSource enum.
type TranscriptEnvelope ¶
type TranscriptEnvelope struct {
Original TranscriptLanguage `json:"original"`
// Translations Keyed by target locale, plus the reserved key cleaned for the AI-rewritten cleaned body when one exists.
Translations map[string]TranscriptLanguage `json:"translations"`
Version int `json:"version"`
}
TranscriptEnvelope The transcript's full structured body.
type TranscriptLanguage ¶
type TranscriptLanguage struct {
Utterances []Utterance `json:"utterances"`
}
TranscriptLanguage defines model for TranscriptLanguage.
type TranscriptList ¶
type TranscriptList struct {
// NextCursor An opaque token for the next page's cursor parameter, or null on the last page. This API refuses a cursor it did not mint.
NextCursor *string `json:"next_cursor"`
Transcripts []TranscriptListRow `json:"transcripts"`
}
TranscriptList defines model for TranscriptList.
type TranscriptListRow ¶
type TranscriptListRow struct {
AutoDeleteAt *int `json:"auto_delete_at"`
CreatedAt int `json:"created_at"`
DurationSeconds int `json:"duration_seconds"`
Id string `json:"id"`
// InsightsState A display hint only, never an authority on whether Insights may be generated or charged for.
InsightsState TranscriptListRowInsightsState `json:"insights_state"`
LanguageDetected *string `json:"language_detected"`
// Options A content-free summary of the transcription options a job was submitted with: what was requested, never the free-text content itself.
Options OptionsSummary `json:"options"`
// OriginApp The app the job was created from: the web app, the Chrome extension, the Android or iOS app, or the API. Null when unknown, which is always the case for rows created before this field existed.
OriginApp *TranscriptListRowOriginApp `json:"origin_app"`
// OriginSource How the audio entered Hushscript: a file upload, an import from a link, or an in-app recording. Null when unknown, which is always the case for rows created before this field existed.
OriginSource *TranscriptListRowOriginSource `json:"origin_source"`
Tags []string `json:"tags"`
Title string `json:"title"`
}
TranscriptListRow defines model for TranscriptListRow.
type TranscriptListRowInsightsState ¶
type TranscriptListRowInsightsState string
TranscriptListRowInsightsState A display hint only, never an authority on whether Insights may be generated or charged for.
const ( Failed TranscriptListRowInsightsState = "failed" Generating TranscriptListRowInsightsState = "generating" None TranscriptListRowInsightsState = "none" Ready TranscriptListRowInsightsState = "ready" )
Defines values for TranscriptListRowInsightsState.
func (TranscriptListRowInsightsState) Valid ¶
func (e TranscriptListRowInsightsState) Valid() bool
Valid indicates whether the value is a known member of the TranscriptListRowInsightsState enum.
type TranscriptListRowOriginApp ¶ added in v1.2.0
type TranscriptListRowOriginApp string
TranscriptListRowOriginApp The app the job was created from: the web app, the Chrome extension, the Android or iOS app, or the API. Null when unknown, which is always the case for rows created before this field existed.
const ( TranscriptListRowOriginAppAndroid TranscriptListRowOriginApp = "android" TranscriptListRowOriginAppApi TranscriptListRowOriginApp = "api" TranscriptListRowOriginAppExtension TranscriptListRowOriginApp = "extension" TranscriptListRowOriginAppIos TranscriptListRowOriginApp = "ios" TranscriptListRowOriginAppLessThannil TranscriptListRowOriginApp = "<nil>" TranscriptListRowOriginAppWeb TranscriptListRowOriginApp = "web" )
Defines values for TranscriptListRowOriginApp.
func (TranscriptListRowOriginApp) Valid ¶ added in v1.2.0
func (e TranscriptListRowOriginApp) Valid() bool
Valid indicates whether the value is a known member of the TranscriptListRowOriginApp enum.
type TranscriptListRowOriginSource ¶ added in v1.2.0
type TranscriptListRowOriginSource string
TranscriptListRowOriginSource How the audio entered Hushscript: a file upload, an import from a link, or an in-app recording. Null when unknown, which is always the case for rows created before this field existed.
const ( TranscriptListRowOriginSourceLessThannil TranscriptListRowOriginSource = "<nil>" TranscriptListRowOriginSourceRecording TranscriptListRowOriginSource = "recording" TranscriptListRowOriginSourceUpload TranscriptListRowOriginSource = "upload" TranscriptListRowOriginSourceUrl TranscriptListRowOriginSource = "url" )
Defines values for TranscriptListRowOriginSource.
func (TranscriptListRowOriginSource) Valid ¶ added in v1.2.0
func (e TranscriptListRowOriginSource) Valid() bool
Valid indicates whether the value is a known member of the TranscriptListRowOriginSource enum.
type TranscriptionContextResponse ¶
type TranscriptionContextResponse struct {
Dictionaries []ContextDictionary `json:"dictionaries"`
Prompts []ContextPromptPreset `json:"prompts"`
}
TranscriptionContextResponse Not paginated and carrying no cursor: both collections are capped when they are written (50 dictionaries, 20 prompt presets), so this response is always complete.
type UploadCompleteResponse ¶
type UploadCompleteResponse struct {
// BalanceSeconds The account's net balance after the hold was reconciled to the verified duration.
BalanceSeconds int `json:"balance_seconds"`
HeldSeconds int `json:"held_seconds"`
Ok bool `json:"ok"`
// State The job's state immediately after completion, e.g. queued, processing or done.
State string `json:"state"`
// VerifiedSeconds The probed exact duration, once verification has run; null while verification is still pending.
VerifiedSeconds *int `json:"verified_seconds"`
}
UploadCompleteResponse defines model for UploadCompleteResponse.
type UploadCreateResponse ¶
type UploadCreateResponse struct {
// BalanceSeconds The account's net balance after this upload's hold was placed.
BalanceSeconds int `json:"balance_seconds"`
// Funding Which balance this upload's hold was placed against.
Funding UploadCreateResponseFunding `json:"funding"`
HeldSeconds int `json:"held_seconds"`
JobId string `json:"job_id"`
// Limits The caller's current upload admission limits, shared by every response that carries them.
Limits UploadLimits `json:"limits"`
// State The job's initial state, typically uploading.
State string `json:"state"`
// Upload One page of presigned direct-to-R2 PUT URLs, or null when direct-to-R2 uploads are not available for this job and parts must be sent to upload_part instead.
Upload *UploadCreateResponseUpload `json:"upload"`
}
UploadCreateResponse defines model for UploadCreateResponse.
type UploadCreateResponseFunding ¶
type UploadCreateResponseFunding string
UploadCreateResponseFunding Which balance this upload's hold was placed against.
const ( Org UploadCreateResponseFunding = "org" Personal UploadCreateResponseFunding = "personal" )
Defines values for UploadCreateResponseFunding.
func (UploadCreateResponseFunding) Valid ¶
func (e UploadCreateResponseFunding) Valid() bool
Valid indicates whether the value is a known member of the UploadCreateResponseFunding enum.
type UploadCreateResponseUpload ¶ added in v1.1.0
type UploadCreateResponseUpload struct {
// NextPartNumber The next part number not covered by this page, or null once every part has a URL.
NextPartNumber *int `json:"next_part_number"`
// PartSizeBytes The byte size of every part except the last.
PartSizeBytes int `json:"part_size_bytes"`
// PartUrls Presigned URLs for this page's parts, starting at the requested (or first) part number.
PartUrls []PresignedPartUrl `json:"part_urls"`
// TotalParts The total number of parts this upload is split into.
TotalParts int `json:"total_parts"`
}
UploadCreateResponseUpload One page of presigned direct-to-R2 PUT URLs, or null when direct-to-R2 uploads are not available for this job and parts must be sent to upload_part instead.
type UploadLimits ¶
type UploadLimits struct {
// ActiveJobs How many pipeline jobs are currently in flight.
ActiveJobs int `json:"active_jobs"`
// MaxActiveJobs The maximum number of concurrent pipeline jobs this account may have in flight.
MaxActiveJobs int `json:"max_active_jobs"`
// MaxDailySeconds The account's daily transcription-minutes cap, in seconds.
MaxDailySeconds int `json:"max_daily_seconds"`
// UsedTodaySeconds Billable seconds already used today, in the account's own rolling day.
UsedTodaySeconds int `json:"used_today_seconds"`
}
UploadLimits The caller's current upload admission limits, shared by every response that carries them.
type UploadPartResponse ¶
type UploadPartResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UploadPartResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalError
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UploadPartResponse429Headers
}
func ParseUploadPartResponse ¶
func ParseUploadPartResponse(rsp *http.Response) (*UploadPartResponse, error)
ParseUploadPartResponse parses an HTTP response from a UploadPartWithResponse call
func (UploadPartResponse) ContentType ¶
func (r UploadPartResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UploadPartResponse) GetBody ¶
func (r UploadPartResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UploadPartResponse) GetJSON200 ¶
func (r UploadPartResponse) GetJSON200() *UploadPartResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UploadPartResponse) GetJSON400 ¶
func (r UploadPartResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UploadPartResponse) GetJSON401 ¶
func (r UploadPartResponse) GetJSON401() *Error
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UploadPartResponse) GetJSON403 ¶
func (r UploadPartResponse) GetJSON403() *Error
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (UploadPartResponse) GetJSON404 ¶
func (r UploadPartResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UploadPartResponse) GetJSON409 ¶
func (r UploadPartResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (UploadPartResponse) GetJSON422 ¶
func (r UploadPartResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (UploadPartResponse) GetJSON429 ¶
func (r UploadPartResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (UploadPartResponse) GetJSON500 ¶
func (r UploadPartResponse) GetJSON500() *InternalError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UploadPartResponse) Status ¶
func (r UploadPartResponse) Status() string
Status returns HTTPResponse.Status
func (UploadPartResponse) StatusCode ¶
func (r UploadPartResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadPartResponse429Headers ¶
type UploadPartResponse429Headers struct {
RetryAfter *int
}
UploadPartResponse429Headers the declared response headers of an HTTP 429 response for UploadPart
type UploadPartResult ¶ added in v1.1.0
UploadPartResult defines parameters for UploadPart.