Documentation
¶
Overview ¶
Package polymorfa provides handwritten server clients for the Polymorfa Messaging and Platform APIs. Credentials must be kept on the application server. Browser and WASM applications use the TypeScript browser packages.
Index ¶
- Constants
- Variables
- func CreateConnectionID() (string, error)
- func DecodeWebhookPayload[T any](e WebhookEvent) (T, error)
- func DecryptWhatsAppMedia(data []byte, keys WhatsAppMediaKeys, d WhatsAppMediaDescriptor, maxBytes int64) ([]byte, error)
- func DecryptWhatsAppMediaStream(ctx context.Context, source io.Reader, keys WhatsAppMediaKeys, ...) (io.ReadCloser, error)
- func EncodeAudioFrame(pcm []int16) []byte
- func EncodeVideoFrame(v VideoFrame) []byte
- func GraphTransportHeaders(transport MessageTransport) http.Header
- func IsKnownErrorCode(code string) bool
- func IsWhatsAppMediaURL(value string) bool
- func KnownErrorCodes() []string
- func ParseContentDispositionFilename(header string) string
- func RequestLogRetryAfter(header string, now time.Time) time.Duration
- func SignedURLExpiry(value string) *time.Time
- func VerifyFlowForwardSignature(raw []byte, signature, secret string, o VerifyFlowForwardOptions) bool
- func VerifyWebhookSignature(body []byte, signature, secret string) bool
- func WebhookHandler(secret string, maxBodyBytes int64, ...) http.Handler
- func WriteMediaToFile(ctx context.Context, source io.ReadCloser, path string, overwrite bool) (int64, error)
- type APIKeyDeactivation
- type APIKeyRecord
- type APIKeys
- type APIMediaFileResult
- type AcceptCallRequest
- type AcceptedCall
- type AddAudienceMembersRequest
- type AddAudienceMembersResult
- type AddCallParticipantRequest
- type AddCampaignRecipientsRequest
- type AddCampaignRecipientsResult
- type AddPlatformCampaignRecipientsRequest
- type AddressContent
- type Analytics
- type AnalyticsMetricsParams
- type AnalyticsParams
- type AnalyticsPeriod
- type AnalyticsRequestVitals
- type AnalyticsSettings
- type AsyncAccepted
- type AsyncResult
- type Audience
- type AudienceConsentAssertion
- type AudienceFromCampaignResult
- type AudienceImportMapping
- type AudienceImportResult
- type AudienceMember
- type AudienceProfile
- type AudienceProfileAttribute
- type AudienceProfileConsentInput
- type AudienceProfileImportConflictSample
- type AudienceProfileImportInvalidSample
- type AudienceProfileImportJob
- type AudienceProfileImportMapping
- type AudienceProfileImports
- func (r *AudienceProfileImports) Cancel(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[AudienceProfileImportJob]], error)
- func (r *AudienceProfileImports) Create(ctx context.Context, b CreateAudienceProfileImportRequest, o ...RequestOptions) (Response[Envelope[AudienceProfileImportJob]], error)
- func (r *AudienceProfileImports) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[AudienceProfileImportJob]], error)
- type AudienceProfileProvenance
- type AudienceProfileSource
- type AudienceProfiles
- func (r *AudienceProfiles) Delete(ctx context.Context, phone string, revision int64, o ...RequestOptions) (Response[Envelope[DeleteAudienceProfileResult]], error)
- func (r *AudienceProfiles) Imports() *AudienceProfileImports
- func (r *AudienceProfiles) List(ctx context.Context, p ListAudienceProfilesParams, o ...RequestOptions) (Response[CursorEnvelope[AudienceProfile]], error)
- func (r *AudienceProfiles) ListConsent(ctx context.Context, phone string, p ListAudienceProfilesParams, ...) (Response[CursorEnvelope[AudienceConsentAssertion]], error)
- func (r *AudienceProfiles) Put(ctx context.Context, phone string, b PutAudienceProfileRequest, ...) (Response[Envelope[AudienceProfile]], error)
- func (r *AudienceProfiles) Retrieve(ctx context.Context, phone string, o ...RequestOptions) (Response[Envelope[AudienceProfile]], error)
- type AudienceSegment
- type AudienceSegmentAttributeCompare
- type AudienceSegmentAttributeEquals
- type AudienceSegmentAttributeExists
- type AudienceSegmentAttributeIn
- type AudienceSegmentAttributeText
- type AudienceSegmentCampaignOutcome
- type AudienceSegmentCondition
- type AudienceSegmentConsentEquals
- type AudienceSegmentDeletion
- type AudienceSegmentGroup
- type AudienceSegmentMatch
- type AudienceSegmentOperator
- type AudienceSegmentPreview
- type AudienceSegmentRules
- type AudienceSegmentSample
- type AudienceSegmentTagContains
- type AudienceSegmentTagExists
- type AudienceSegmentTagIn
- type AudienceSegmentUnknownCondition
- type AudienceSegments
- func (r *AudienceSegments) Create(ctx context.Context, b CreateAudienceSegmentRequest, o ...RequestOptions) (Response[Envelope[AudienceSegment]], error)
- func (r *AudienceSegments) Delete(ctx context.Context, id string, expectedRevision int, o ...RequestOptions) (Response[Envelope[AudienceSegmentDeletion]], error)
- func (r *AudienceSegments) List(ctx context.Context, p ListAudienceSegmentsParams, o ...RequestOptions) (*CursorPage[AudienceSegment], error)
- func (r *AudienceSegments) Preview(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[SavedAudienceSegmentPreview]], error)
- func (r *AudienceSegments) PreviewRules(ctx context.Context, rules AudienceSegmentRules, o ...RequestOptions) (Response[Envelope[AudienceSegmentPreview]], error)
- func (r *AudienceSegments) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[AudienceSegment]], error)
- func (r *AudienceSegments) Update(ctx context.Context, id string, b UpdateAudienceSegmentRequest, ...) (Response[Envelope[AudienceSegment]], error)
- type Audiences
- func (r *Audiences) AddMembers(ctx context.Context, id string, b AddAudienceMembersRequest, ...) (Response[Envelope[AddAudienceMembersResult]], error)
- func (r *Audiences) Create(ctx context.Context, b CreateAudienceRequest, o ...RequestOptions) (Response[Envelope[AudienceImportResult]], error)
- func (r *Audiences) CreateFromCampaign(ctx context.Context, b CreateAudienceFromCampaignRequest, o ...RequestOptions) (Response[Envelope[AudienceFromCampaignResult]], error)
- func (r *Audiences) CreateUpload(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Audiences) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Audiences) DeleteMember(ctx context.Context, id, phone string, o ...RequestOptions) (Response[Envelope[DeleteAudienceMemberResult]], error)
- func (r *Audiences) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Audiences) ListMembers(ctx context.Context, id string, p ListParams, o ...RequestOptions) (Response[CursorEnvelope[AudienceMember]], error)
- func (r *Audiences) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- type AuditLog
- type AuditLogs
- type BanSafe
- func (r *BanSafe) CreateIncident(ctx context.Context, b ReportBanSafeIncidentRequest, o ...RequestOptions) (Response[Envelope[BanSafeIncidentReceipt]], error)
- func (r *BanSafe) GetClaim(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[BanSafeClaim]], error)
- func (r *BanSafe) GetHealth(ctx context.Context, connection string, o ...RequestOptions) (Response[Envelope[BanSafeConnectionDetail]], error)
- func (r *BanSafe) GetTelemetry(ctx context.Context, connection string, o ...RequestOptions) (Response[Envelope[BanSafeTelemetryDetail]], error)
- func (r *BanSafe) ListClaims(ctx context.Context, p ListBanSafeClaimsParams, o ...RequestOptions) (*CursorPage[BanSafeClaim], error)
- func (r *BanSafe) ListCollection(ctx context.Context, p ListBanSafeCollectionParams, o ...RequestOptions) (*CursorPage[BanSafeCollectionConnection], error)
- func (r *BanSafe) ListEnforcement(ctx context.Context, p ListBanSafeEnforcementParams, o ...RequestOptions) (*CursorPage[BanSafeEnforcementSummary], error)
- func (r *BanSafe) ListFindings(ctx context.Context, p ListBanSafeFindingsParams, o ...RequestOptions) (*CursorPage[BanSafeFinding], error)
- func (r *BanSafe) ListHealth(ctx context.Context, p ListBanSafeHealthParams, o ...RequestOptions) (*CursorPage[BanSafeConnection], error)
- func (r *BanSafe) ListHealthActions(ctx context.Context, p ListBanSafeHealthActionsParams, o ...RequestOptions) (*CursorPage[BanSafeHealthAction], error)
- func (r *BanSafe) ListHealthHistory(ctx context.Context, connection string, p ListBanSafeHealthHistoryParams, ...) (Response[Envelope[BanSafeHealthHistory]], error)
- func (r *BanSafe) ListIncidents(ctx context.Context, p ListBanSafeIncidentsParams, o ...RequestOptions) (*CursorPage[BanSafeIncident], error)
- func (r *BanSafe) ListSignals(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]BanSafeSignalDefinition]], error)
- func (r *BanSafe) ListTelemetryHistory(ctx context.Context, connection string, p ListBanSafeTelemetryHistoryParams, ...) (*CursorPage[BanSafeTelemetrySnapshot], error)
- func (r *BanSafe) RetractIncident(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[BanSafeIncident]], error)
- type BanSafeActionPayload
- type BanSafeClaim
- type BanSafeClaimEvidence
- type BanSafeClaimPayload
- type BanSafeCollectionConnection
- type BanSafeCollectionStatus
- type BanSafeConnection
- type BanSafeConnectionDetail
- type BanSafeConnectionEnforcement
- type BanSafeConnectionWarmup
- type BanSafeEnforcementSummary
- type BanSafeFinding
- type BanSafeHealthAction
- type BanSafeHealthExplanation
- type BanSafeHealthExplanationFactor
- type BanSafeHealthHistory
- type BanSafeHealthPenalties
- type BanSafeHealthPoint
- type BanSafeHealthProbabilities
- type BanSafeHealthProjection
- type BanSafeHealthThresholdPayload
- type BanSafeIncident
- type BanSafeIncidentPayload
- type BanSafeIncidentReceipt
- type BanSafeObservedAccountState
- type BanSafeRequiredFinding
- type BanSafeSignal
- type BanSafeSignalCode
- type BanSafeSignalDefinition
- type BanSafeSignalValue
- type BanSafeTelemetryDetail
- type BanSafeTelemetrySnapshot
- type Billing
- func (r *Billing) GetLimits(ctx context.Context, p BillingReadParams, o ...RequestOptions) (Response[Envelope[BillingLimits]], error)
- func (r *Billing) GetPriorities(ctx context.Context, p BillingReadParams, o ...RequestOptions) (Response[Envelope[BillingPriorities]], error)
- func (r *Billing) GetResourceControls(ctx context.Context, scope BillingScope, id string, o ...RequestOptions) (Response[Envelope[ResourceBillingControls]], error)
- func (r *Billing) ListPricing(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]TierPricing]], error)
- func (r *Billing) ListTransactions(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]BillingTransaction]], error)
- func (r *Billing) ReorderPriorities(ctx context.Context, b ReorderBillingPrioritiesRequest, o ...RequestOptions) (Response[Envelope[BillingPriorities]], error)
- func (r *Billing) Retrieve(ctx context.Context, o ...RequestOptions) (Response[Envelope[BillingBalance]], error)
- func (r *Billing) SetLimit(ctx context.Context, scope BillingScope, id string, b SetBillingLimitRequest, ...) (Response[Envelope[BillingSavedResult]], error)
- func (r *Billing) SetPriority(ctx context.Context, scope BillingScope, id string, ...) (Response[Envelope[BillingPriorities]], error)
- func (r *Billing) SetResourceControls(ctx context.Context, scope BillingScope, id string, ...) (Response[Envelope[ResourceBillingControls]], error)
- func (r *Billing) Usage(ctx context.Context, o ...RequestOptions) (Response[Envelope[BillingUsage]], error)
- type BillingBalance
- type BillingControls
- type BillingCurrency
- type BillingDailyCredits
- type BillingLimit
- type BillingLimits
- type BillingPriorities
- type BillingPriority
- type BillingReadParams
- type BillingReorderResource
- type BillingResourcePriority
- type BillingSavedResult
- type BillingScope
- type BillingTransaction
- type BillingUsage
- type BlocklistUpdatePayload
- type Boleto
- type BridgeClient
- type BridgeRoute
- type Business
- func (r *Business) AppealCollection(ctx context.Context, s, id string, b BusinessCatalogAppealRequest, ...) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
- func (r *Business) AppealProduct(ctx context.Context, s, id string, b BusinessCatalogAppealRequest, ...) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
- func (r *Business) CreateCatalog(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
- func (r *Business) CreateCollection(ctx context.Context, s string, b BusinessCollectionCreateRequest, ...) (Response[Envelope[AsyncResult[BusinessCollectionMutationResult]]], error)
- func (r *Business) CreateProduct(ctx context.Context, s string, b BusinessProductMutationRequest, ...) (Response[Envelope[AsyncResult[BusinessProduct]]], error)
- func (r *Business) DeleteCollection(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
- func (r *Business) DeleteCoverPhoto(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessProfileStatus]]], error)
- func (r *Business) DeleteProduct(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessProductDeleteResult]]], error)
- func (r *Business) GetCatalog(ctx context.Context, s string, p BusinessCatalogParams, o ...RequestOptions) (Response[Envelope[BusinessCatalogPage]], error)
- func (r *Business) GetCollection(ctx context.Context, s, id string, p BusinessCollectionParams, ...) (Response[Envelope[BusinessCollection]], error)
- func (r *Business) GetEligibility(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessEligibility]], error)
- func (r *Business) GetLinkedAccounts(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessLinkedAccounts]], error)
- func (r *Business) GetMerchantCompliance(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessMerchantCompliance]], error)
- func (r *Business) GetOrder(ctx context.Context, s, id string, b BusinessOrderLookupRequest, ...) (Response[Envelope[AsyncResult[BusinessOrder]]], error)
- func (r *Business) GetProduct(ctx context.Context, s, id, businessID string, o ...RequestOptions) (Response[Envelope[BusinessProduct]], error)
- func (r *Business) GetProfile(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessProfile]], error)
- func (r *Business) ListCollections(ctx context.Context, s string, p BusinessCollectionsParams, ...) (Response[Envelope[BusinessCollectionPage]], error)
- func (r *Business) ReorderCollections(ctx context.Context, s string, b BusinessCollectionReorderRequest, ...) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
- func (r *Business) SetCartEnabled(ctx context.Context, s string, enabled bool, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
- func (r *Business) SetCoverPhoto(ctx context.Context, s string, b PictureRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessCoverPhotoResult]]], error)
- func (r *Business) SetMerchantCompliance(ctx context.Context, s string, b BusinessMerchantCompliance, ...) (Response[Envelope[AsyncResult[BusinessMerchantCompliance]]], error)
- func (r *Business) SetProductVisibility(ctx context.Context, s, id string, hidden bool, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
- func (r *Business) UpdateCollection(ctx context.Context, s, id string, b BusinessCollectionUpdateRequest, ...) (Response[Envelope[AsyncResult[BusinessCollectionMutationResult]]], error)
- func (r *Business) UpdateProduct(ctx context.Context, s, id string, b BusinessProductMutationRequest, ...) (Response[Envelope[AsyncResult[BusinessProduct]]], error)
- func (r *Business) UpdateProfile(ctx context.Context, s string, b BusinessProfileUpdateRequest, ...) (Response[Envelope[AsyncResult[BusinessProfileStatus]]], error)
- type BusinessActionSuccess
- type BusinessAdStatus
- type BusinessCatalogAppealRequest
- type BusinessCatalogPage
- type BusinessCatalogParams
- type BusinessCollection
- type BusinessCollectionCreateRequest
- type BusinessCollectionMove
- type BusinessCollectionMutationResult
- type BusinessCollectionPage
- type BusinessCollectionParams
- type BusinessCollectionReorderRequest
- type BusinessCollectionStatus
- type BusinessCollectionUpdateRequest
- type BusinessCollectionsParams
- type BusinessCoverPhotoResult
- type BusinessDimensions
- type BusinessEligibility
- type BusinessFacebookBusiness
- type BusinessFacebookPage
- type BusinessFeatureEligibility
- type BusinessGrievanceOfficer
- type BusinessImporterAddress
- type BusinessInstagramProfessional
- type BusinessLinkedAccounts
- type BusinessMerchantCompliance
- type BusinessMerchantContact
- type BusinessOrder
- type BusinessOrderLookupRequest
- type BusinessOrderPrice
- type BusinessOrderProduct
- type BusinessProduct
- type BusinessProductCompliance
- type BusinessProductDeleteResult
- type BusinessProductImage
- type BusinessProductImageSource
- type BusinessProductMedia
- type BusinessProductMutationRequest
- type BusinessProductStatus
- type BusinessProductVariant
- type BusinessProductVideo
- type BusinessProfile
- type BusinessProfileCategory
- type BusinessProfileDay
- type BusinessProfileHours
- type BusinessProfileHoursUpdate
- type BusinessProfileStatus
- type BusinessProfileUpdateRequest
- type BusinessQuickReplyUpdatePayload
- type BusinessSalePrice
- type BusinessVariantAvailability
- type BusinessVariantAvailabilityItem
- type BusinessVariantListing
- type BusinessVariantOption
- type BusinessVariantProperty
- type BusinessVariantThumbnail
- type BusinessVariantType
- type BusinessWhatsAppAdIdentity
- type ButtonsContent
- type ButtonsMedia
- type Call
- func (c *Call) AddParticipant(ctx context.Context, to string) (CallParticipant, error)
- func (c *Call) AdmitParticipant(ctx context.Context, id string) error
- func (c *Call) Answer(ctx context.Context, b AcceptCallRequest) error
- func (c *Call) ConnectionID() string
- func (c *Call) DenyParticipant(ctx context.Context, id string) error
- func (c *Call) Done() <-chan struct{}
- func (c *Call) Duration() time.Duration
- func (c *Call) End(ctx context.Context) error
- func (c *Call) Events() <-chan CallEvent
- func (c *Call) ID() string
- func (c *Call) Join(ctx context.Context, video *bool) error
- func (c *Call) Leave(ctx context.Context) error
- func (c *Call) Reject(ctx context.Context) error
- func (c *Call) ReportError(code string)
- func (c *Call) ReportQuality(q CallQuality)
- func (c *Call) RingParticipant(ctx context.Context, to string) error
- func (c *Call) SendReaction(ctx context.Context, emoji string) error
- func (c *Call) SetApprovalRequired(ctx context.Context, enabled bool) error
- func (c *Call) SetHandRaised(ctx context.Context, raised bool) error
- func (c *Call) SetMediaState(ctx context.Context, a, v, screen *bool) error
- func (c *Call) Snapshot() CallSnapshot
- func (c *Call) WriteAudio(ctx context.Context, pcm []int16) error
- func (c *Call) WriteVideo(ctx context.Context, frame VideoFrame) error
- type CallAcceptedPayload
- type CallBusinessAppQuality
- type CallBusinessCodeCount
- type CallBusinessDirections
- type CallBusinessFollowUp
- type CallBusinessMediaQuality
- type CallBusinessMetrics
- type CallCapabilities
- type CallCheck
- type CallClaim
- type CallConnectionJoinedPayload
- type CallConnectionLeftPayload
- type CallEndedPayload
- type CallEvent
- type CallFilters
- type CallMissedPayload
- type CallOptOut
- type CallOptOutDeleted
- type CallOptOutImportResult
- type CallOptOutRejection
- type CallOptOuts
- func (r *CallOptOuts) Create(ctx context.Context, b CreateCallOptOutRequest, o ...RequestOptions) (Response[CallOptOut], error)
- func (r *CallOptOuts) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[CallOptOutDeleted], error)
- func (r *CallOptOuts) Import(ctx context.Context, b ImportCallOptOutsRequest, o ...RequestOptions) (Response[CallOptOutImportResult], error)
- func (r *CallOptOuts) List(ctx context.Context, p ListCallOptOutsParams, o ...RequestOptions) (*CursorPage[CallOptOut], error)
- type CallOutcomeMetrics
- type CallParticipant
- type CallParticipantLeftPayload
- type CallParticipantPayload
- type CallPeer
- type CallPermission
- type CallPermissionAction
- type CallPermissionChangedPayload
- type CallPermissionLimit
- type CallPermissionRequestContent
- type CallPermissionState
- type CallPolicy
- type CallPolicyResource
- type CallQuality
- type CallReactionRequest
- type CallReceivedPayload
- type CallRecord
- type CallRecordAppConnection
- type CallRecordAppError
- type CallRecordAppQuality
- type CallRecordAppReports
- type CallRecordConnection
- type CallRecordCorrelation
- type CallRecordDetail
- type CallRecordEndReason
- type CallRecordEvent
- type CallRecordExportPage
- type CallRecordHistory
- type CallRecordParticipant
- type CallRecordSummary
- type CallRecordTelemetry
- type CallRejectedPayload
- type CallReportClient
- type CallReportError
- type CallReportRequest
- type CallReporter
- type CallRetention
- type CallRetentionPolicy
- type CallRetentionResource
- type CallSnapshot
- type CallStats
- type CallStatsGroup
- type CallStatsHeatmapCell
- type CallStatsMetrics
- type CallStatsParams
- type CallTelemetryPayload
- type CallVideoSource
- type CallWaitingRoom
- type CallsClient
- func (c *CallsClient) Answer(ctx context.Context, id string, b AcceptCallRequest, o ...RequestOptions) (Response[Envelope[AcceptedCall]], error)
- func (c *CallsClient) AttachMedia(ctx context.Context, callID, connectionID string) (*CallsMediaSocket, error)
- func (c *CallsClient) Connect(ctx context.Context) (*CallsLifecycle, error)
- func (c *CallsClient) End(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
- func (c *CallsClient) Follow(ctx context.Context, o CallsFollowOptions) (*CallsSession, error)
- func (c *CallsClient) Place(ctx context.Context, b PlaceCallRequest, o ...RequestOptions) (Response[Envelope[PlacedCall]], error)
- func (c *CallsClient) Reject(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
- type CallsClientConfig
- type CallsEvent
- type CallsFollowOptions
- type CallsLifecycle
- func (l *CallsLifecycle) Close() error
- func (l *CallsLifecycle) Next(ctx context.Context) (LifecycleFrame, error)
- func (l *CallsLifecycle) Ping(ctx context.Context) error
- func (l *CallsLifecycle) RefreshAuth(ctx context.Context, token CallsToken) error
- func (l *CallsLifecycle) SendCandidate(ctx context.Context, id, connection string, candidate TrickleCandidate) error
- type CallsMediaFrame
- type CallsMediaSocket
- func (m *CallsMediaSocket) Close() error
- func (m *CallsMediaSocket) Leave(ctx context.Context) error
- func (m *CallsMediaSocket) ModerateWaitingRoom(ctx context.Context, operation, target string, enabled *bool) error
- func (m *CallsMediaSocket) Ping(ctx context.Context) error
- func (m *CallsMediaSocket) Read(ctx context.Context) (CallsMediaFrame, error)
- func (m *CallsMediaSocket) RefreshAuth(ctx context.Context, token CallsToken, participant string) error
- func (m *CallsMediaSocket) UpdateMediaState(ctx context.Context, a, v, screen *bool) (MediaControlFrame, error)
- func (m *CallsMediaSocket) WriteAudio(ctx context.Context, pcm []int16) error
- func (m *CallsMediaSocket) WriteVideo(ctx context.Context, v VideoFrame) error
- type CallsSession
- func (s *CallsSession) Calls() []*Call
- func (s *CallsSession) Close(ctx context.Context) error
- func (s *CallsSession) Connected() bool
- func (s *CallsSession) Done() <-chan struct{}
- func (s *CallsSession) Events() <-chan CallsEvent
- func (s *CallsSession) GetCall(id string) *Call
- func (s *CallsSession) ParticipantReference() string
- func (s *CallsSession) Place(ctx context.Context, b PlaceCallRequest, o ...RequestOptions) (*Call, error)
- type CallsToken
- type CallsTokenProvider
- type CallsTokenRequest
- type CallsTokenSource
- type Campaign
- type CampaignAnalytics
- type CampaignApprovalRequester
- type CampaignBlueprint
- type CampaignCapReachedPayload
- type CampaignColdBlockedPayload
- type CampaignCompletedPayload
- type CampaignComposedButton
- type CampaignComposedMedia
- type CampaignComposedMessage
- type CampaignConversion
- type CampaignConversionAttribution
- type CampaignConversionCounts
- type CampaignConversionCurrencyTotal
- type CampaignConversionModel
- type CampaignConversionReport
- type CampaignConversionValue
- type CampaignDelayUnit
- type CampaignDrip
- type CampaignDripEnrollment
- type CampaignDripExitReason
- type CampaignDripInput
- type CampaignDripPatch
- type CampaignDripStats
- type CampaignDripStepStats
- type CampaignEnrollment
- type CampaignExperimentOutcome
- type CampaignExperimentResults
- type CampaignExperimentVariantResult
- type CampaignFailedPayload
- type CampaignFollowUp
- type CampaignFollowUpMessage
- type CampaignFollowUpReport
- type CampaignFollowUpStatus
- type CampaignFollowUpSummary
- type CampaignFollowUpTemplateMessage
- type CampaignFollowUpTextMessage
- type CampaignFrequencyCap
- type CampaignFrequencyCapAnalytics
- type CampaignFrequencyCapSettings
- type CampaignLaunchApproval
- type CampaignLaunchApprovalSettings
- type CampaignLaunchedPayload
- type CampaignMessageVariation
- type CampaignOperation
- type CampaignPausedPayload
- type CampaignProjectParams
- type CampaignRecipient
- type CampaignRecipientExportPage
- type CampaignRecipientExportParams
- type CampaignRecipientFailedPayload
- type CampaignRecipientFailureReason
- type CampaignRecipientInput
- type CampaignRecipientSentPayload
- type CampaignRecipientSkippedPayload
- type CampaignReplyButton
- type CampaignReplyButtons
- type CampaignReplyChoice
- type CampaignReplyFlow
- type CampaignReplyFlowAssignment
- type CampaignReplyFlowDefinition
- type CampaignReplyFlowEdge
- type CampaignReplyFlowForm
- type CampaignReplyFlowMatch
- type CampaignReplyFlowNode
- type CampaignReplyFlowSend
- type CampaignReplyKeyword
- type CampaignReplyList
- type CampaignReplyRow
- type CampaignReplySubmission
- type CampaignReplyText
- type CampaignRequeueResult
- type CampaignRescheduledPayload
- type CampaignResumedPayload
- type CampaignRetargetOutcome
- type CampaignSegmentSnapshot
- type CampaignSendWindow
- type CampaignSendWindowRange
- type CampaignSendWindowRequest
- type CampaignSettings
- type CampaignStepWindow
- type CampaignStopOperation
- type CampaignStoppedPayload
- type CampaignTestSend
- type CampaignTestSendRequest
- type CampaignTestSender
- type CampaignThrottledPayload
- type CampaignTrackedLink
- type CampaignTrackedLinkReport
- type CampaignTrackedLinks
- type CampaignVariable
- type CampaignVariableBinding
- type CampaignVariableMapping
- type CampaignVariant
- type CampaignVariantStrategy
- type Campaigns
- func (r *Campaigns) AddRecipients(ctx context.Context, id string, b AddPlatformCampaignRecipientsRequest, ...) (Response[Envelope[AddCampaignRecipientsResult]], error)
- func (r *Campaigns) Analytics(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[PlatformCampaignAnalytics]], error)
- func (r *Campaigns) Archive(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) Conversions(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[CampaignConversionReport]], error)
- func (r *Campaigns) Create(ctx context.Context, b CreatePlatformCampaignRequest, o ...RequestOptions) (Response[Envelope[PlatformCampaign]], error)
- func (r *Campaigns) CreateReplyFlow(ctx context.Context, b CreatePlatformCampaignReplyFlowRequest, ...) (Response[Envelope[CampaignReplyFlow]], error)
- func (r *Campaigns) Delete(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) Duplicate(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) Enroll(ctx context.Context, id string, b EnrollPlatformCampaignContactRequest, ...) (Response[Envelope[CampaignEnrollment]], error)
- func (r *Campaigns) Events(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) ExportRecipients(ctx context.Context, id string, p PlatformCampaignRecipientExportParams, ...) (Response[CampaignRecipientExportPage], error)
- func (r *Campaigns) GetFrequencyCap(ctx context.Context, o ...RequestOptions) (Response[Envelope[CampaignFrequencyCapSettings]], error)
- func (r *Campaigns) GetReplyFlow(ctx context.Context, id string, p CampaignProjectParams, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
- func (r *Campaigns) GetSettings(ctx context.Context, o ...RequestOptions) (Response[Envelope[CampaignSettings]], error)
- func (r *Campaigns) Launch(ctx context.Context, id string, b LaunchPlatformCampaignRequest, ...) (Response[Envelope[PlatformCampaignOperation]], error)
- func (r *Campaigns) Links(ctx context.Context, id string, p CampaignProjectParams, o ...RequestOptions) (Response[Envelope[[]CampaignTrackedLinkReport]], error)
- func (r *Campaigns) List(ctx context.Context, p ListCampaignsParams, o ...RequestOptions) (Response[Envelope[[]PlatformCampaign]], error)
- func (r *Campaigns) ListLaunchApprovals(ctx context.Context, id string, p CampaignProjectParams, o ...RequestOptions) (Response[Envelope[[]CampaignLaunchApproval]], error)
- func (r *Campaigns) Pause(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) Recipients(ctx context.Context, id string, p ListPlatformCampaignRecipientsParams, ...) (Response[CursorEnvelope[CampaignRecipient]], error)
- func (r *Campaigns) RecordConversion(ctx context.Context, id string, b RecordCampaignConversionRequest, ...) (Response[Envelope[CampaignConversion]], error)
- func (r *Campaigns) Requeue(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) Reschedule(ctx context.Context, id string, b ReschedulePlatformCampaignRequest, ...) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) Resume(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) Retrieve(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[*PlatformCampaign]], error)
- func (r *Campaigns) SetReplyFlow(ctx context.Context, id string, b SetPlatformCampaignReplyFlowRequest, ...) (Response[Envelope[CampaignReplyFlowAssignment]], error)
- func (r *Campaigns) Stop(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *Campaigns) TestSend(ctx context.Context, id string, b PlatformCampaignTestSendRequest, ...) (Response[Envelope[CampaignTestSend]], error)
- func (r *Campaigns) Update(ctx context.Context, id string, b *UpdatePlatformCampaignRequest, ...) (Response[Envelope[PlatformCampaign]], error)
- func (r *Campaigns) UpdateFrequencyCap(ctx context.Context, b UpdateCampaignFrequencyCapInput, o ...RequestOptions) (Response[Envelope[CampaignFrequencyCapSettings]], error)
- type CarouselCard
- type CarouselContent
- type CarouselVideo
- type CatalogProductsParams
- type Catalogs
- func (r *Catalogs) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[CloudCatalogCacheList]], error)
- func (r *Catalogs) ListProducts(ctx context.Context, s, id string, q CatalogProductsParams, ...) (Response[Envelope[CloudCatalogProductPage]], error)
- func (r *Catalogs) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[CloudCatalogSync]], error)
- func (r *Catalogs) Sync(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[CloudCatalogSync]], error)
- type Channel
- type ChannelActionResult
- type ChannelLiveUpdates
- type ChannelMessage
- type ChannelMessageUpdatesParams
- type ChannelMessagesParams
- type ChannelReactionRequest
- type Channels
- func (r *Channels) Create(ctx context.Context, s string, b CreateChannelRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[Channel]]], error)
- func (r *Channels) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
- func (r *Channels) Follow(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
- func (r *Channels) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[[]Channel]], error)
- func (r *Channels) ListMessageUpdates(ctx context.Context, s, id string, p ChannelMessageUpdatesParams, ...) (Response[Envelope[[]ChannelMessage]], error)
- func (r *Channels) ListMessages(ctx context.Context, s, id string, p ChannelMessagesParams, ...) (Response[Envelope[[]ChannelMessage]], error)
- func (r *Channels) MarkMessageViewed(ctx context.Context, s, id, messageID string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
- func (r *Channels) Mute(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
- func (r *Channels) ReactToMessage(ctx context.Context, s, id, messageID string, b ChannelReactionRequest, ...) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
- func (r *Channels) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[Channel]], error)
- func (r *Channels) SubscribeToLiveUpdates(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelLiveUpdates]]], error)
- func (r *Channels) Unfollow(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
- func (r *Channels) Unmute(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
- type ChatArchivePayload
- type ChatClearPayload
- type ChatDeletePayload
- type ChatMutePayload
- type ChatPresenceData
- type ChatReadPayload
- type Chats
- func (r *Chats) Archive(ctx context.Context, s, id string, o ...RequestOptions) (Response[Success], error)
- func (r *Chats) DeleteMessage(ctx context.Context, s, id, message string, transport MessageTransport, ...) (Response[Success], error)
- func (r *Chats) DownloadMessageMedia(ctx context.Context, s, id, message string, o ...RequestOptions) (Response[[]byte], error)
- func (r *Chats) DownloadMessageMediaStream(ctx context.Context, s, id, message string, o ...RequestOptions) (*MediaDownload, error)
- func (r *Chats) DownloadMessageMediaToFile(ctx context.Context, connection, chat, message, path string, ...) (APIMediaFileResult, error)
- func (r *Chats) EditMessage(ctx context.Context, s, id, message string, b EditMessageRequest, ...) (Response[Success], error)
- func (r *Chats) GetServiceWindow(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[CustomerServiceWindow]], error)
- func (r *Chats) List(ctx context.Context, s string, p ListHistoryChatsParams, o ...RequestOptions) (Response[HistoryPage[HistoryChat]], error)
- func (r *Chats) ListMessages(ctx context.Context, s, id string, p ListHistoryMessagesParams, ...) (Response[HistoryPage[HistoryMessage]], error)
- func (r *Chats) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[HistoryChat]], error)
- func (r *Chats) RetrieveMessage(ctx context.Context, s, id, message string, o ...RequestOptions) (Response[Envelope[HistoryMessage]], error)
- func (r *Chats) SetDisappearingTimer(ctx context.Context, s, id string, b DisappearingTimerRequest, ...) (Response[Success], error)
- func (r *Chats) Unarchive(ctx context.Context, s, id string, o ...RequestOptions) (Response[Success], error)
- type CheckCallRequest
- type CheckContactResult
- type ClientRules
- type ClientTokenValue
- type ClientTokens
- func (r *ClientTokens) DeleteRules(ctx context.Context, s string, o ...RequestOptions) (Response[Success], error)
- func (r *ClientTokens) Mint(ctx context.Context, b MintClientTokenRequest, o ...RequestOptions) (Response[Envelope[ClientTokenValue]], error)
- func (r *ClientTokens) RetrieveRules(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ClientRules]], error)
- func (r *ClientTokens) UpdateRules(ctx context.Context, s string, b SetClientRulesRequest, o ...RequestOptions) (Response[Success], error)
- type CloudAccountStatusPayload
- type CloudCatalogAttempt
- type CloudCatalogCacheList
- type CloudCatalogCacheProduct
- type CloudCatalogList
- type CloudCatalogProduct
- type CloudCatalogProductList
- type CloudCatalogProductPage
- type CloudCatalogSync
- type CloudCatalogs
- type CloudCredentialHealth
- type CloudGraphCursors
- type CloudGraphPaging
- type CloudGraphVersion
- type CloudHistorySyncPayload
- type CloudMarketing
- type CloudMarketingOwnerBusiness
- type CloudMarketingStatus
- type CloudMarketingTerms
- type CloudMessagePayload
- type CloudMessageReferral
- type CloudOnboarding
- type CloudOrder
- type CloudOrderItem
- type CloudProductCatalog
- type CloudReauthorization
- type CloudSyncRequest
- type CloudSyncStatus
- type CloudTemplate
- type CloudTemplateStatusPayload
- type CloudTemplates
- func (r *CloudTemplates) Create(ctx context.Context, s string, b CreateCloudTemplateRequest, ...) (Response[Envelope[CloudTemplate]], error)
- func (r *CloudTemplates) Delete(ctx context.Context, s, name string, o ...RequestOptions) (Response[Success], error)
- func (r *CloudTemplates) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[[]CloudTemplate]], error)
- func (r *CloudTemplates) Retrieve(ctx context.Context, s, name, language string, o ...RequestOptions) (Response[Envelope[CloudTemplate]], error)
- func (r *CloudTemplates) Update(ctx context.Context, s, name, language string, b EditCloudTemplateRequest, ...) (Response[Envelope[EditCloudTemplateResult]], error)
- type CommandResultPayload
- type Config
- type ConfigurationSource
- type ConfigurationValueSource
- type ConfirmPasskeyRequest
- type Connection
- type ConnectionBan
- type ConnectionBans
- type ConnectionBatchRemoveResult
- type ConnectionBatchRequest
- type ConnectionBatchStopResult
- type ConnectionCallRecord
- type ConnectionCallSettings
- type ConnectionCalls
- type ConnectionCallsPage
- type ConnectionCapabilities
- type ConnectionCapabilitiesUpdatedPayload
- type ConnectionCapability
- type ConnectionConfigurationOverrides
- type ConnectionConfigurationPatch
- type ConnectionConfigurationResource
- func (r *ConnectionConfigurationResource) Retrieve(ctx context.Context, o ...RequestOptions) (Response[ConnectionConfigurationView], error)
- func (r *ConnectionConfigurationResource) Update(ctx context.Context, b UpdateConnectionRequest, o ...RequestOptions) (Response[ConnectionConfigurationView], error)
- type ConnectionConfigurationSources
- type ConnectionConfigurationView
- type ConnectionConnectedPayload
- type ConnectionHybridTransition
- type ConnectionLifecycleResult
- type ConnectionLoggedOutPayload
- type ConnectionMethod
- type ConnectionObservationPolicy
- type ConnectionPhoneOfflinePayload
- type ConnectionProjectContext
- type ConnectionRemoveResult
- type ConnectionRestrictionUpdatedPayload
- type ConnectionSafeMode
- type ConnectionStartResult
- type ConnectionStopResult
- type ConnectionTierChange
- type ConnectionTierOverrideRequest
- type ConnectionTierQuote
- type ConnectionTierQuoteRequest
- type ConnectionType
- type Contact
- type ContactBlocklist
- type ContactContent
- type ContactIdentityChange
- type ContactMarketingPreferencePayload
- type ContactOptPayload
- type ContactPicture
- type ContactPreviousIdentity
- type ContactUpdatePayload
- type ContactUserInfo
- type Contacts
- func (r *Contacts) Block(ctx context.Context, s, id string, o ...RequestOptions) (Response[Success], error)
- func (r *Contacts) Blocklist(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ContactBlocklist]], error)
- func (r *Contacts) BusinessProfile(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[BusinessProfile]], error)
- func (r *Contacts) Check(ctx context.Context, s string, phones []string, o ...RequestOptions) (Response[Envelope[[]CheckContactResult]], error)
- func (r *Contacts) Devices(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[[]string]], error)
- func (r *Contacts) Info(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[ContactUserInfo]], error)
- func (r *Contacts) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[[]Contact]], error)
- func (r *Contacts) Picture(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[ContactPicture]], error)
- func (r *Contacts) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[Contact]], error)
- func (r *Contacts) Unblock(ctx context.Context, s, id string, o ...RequestOptions) (Response[Success], error)
- type ContactsSyncPayload
- type ConversationReference
- type CreateAudienceFromCampaignRequest
- type CreateAudienceProfileImportRequest
- type CreateAudienceRequest
- type CreateAudienceSegmentRequest
- type CreateCallLinkRequest
- type CreateCallOptOutRequest
- type CreateCampaignReplyFlowRequest
- type CreateCampaignRequest
- type CreateChannelRequest
- type CreateCloudTemplateRequest
- type CreateCustomerPairingLinkRequest
- type CreateCustomerRequest
- type CreateFlowRequest
- type CreateFunctionDeploymentRequest
- type CreateFunctionInvocationRequest
- type CreateFunctionRequest
- type CreateFunctionSecretRequest
- type CreateGroupRequest
- type CreateLabelRequest
- type CreateMessagingWebhookRequest
- type CreateOfficialGroupRequest
- type CreatePlatformCampaignReplyFlowRequest
- type CreatePlatformCampaignRequest
- type CreateProjectRequest
- type CreateProjectTemplateRequest
- type CreateQuickLinkRequest
- type CreateSIPTrunkRequest
- type CreateVoiceAudioUploadRequest
- type CreateVoiceProviderCredentialRequest
- type CreateWebhookRequest
- type CreatedCallLink
- type CreatedCustomerPairingLink
- type Credential
- type CredentialKind
- type CursorEnvelope
- type CursorPage
- type Customer
- type CustomerArchivedPayload
- type CustomerArchivingPayload
- type CustomerConnection
- type CustomerConnectionAttachedPayload
- type CustomerConnectionDisconnectedPayload
- type CustomerConnectionTransferredPayload
- type CustomerCreatedPayload
- type CustomerEnabledPayload
- type CustomerEvent
- type CustomerEventMetadata
- type CustomerEventPayload
- type CustomerPairingLink
- type CustomerPairingLinkConnectedPayload
- type CustomerPairingLinkCreatedPayload
- type CustomerPairingLinkExpiredPayload
- type CustomerPairingLinkFailedPayload
- type CustomerPairingLinkOpenedPayload
- type CustomerPairingLinkPayload
- type CustomerPairingLinkRevokedPayload
- type CustomerProjectRequest
- type CustomerRestoredPayload
- type CustomerServiceWindow
- type CustomerSignalCustodyUpdate
- type CustomerSummary
- type CustomerUpdatedPayload
- type Customers
- func (r *Customers) Archive(ctx context.Context, id string, b CustomerProjectRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
- func (r *Customers) Create(ctx context.Context, b CreateCustomerRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
- func (r *Customers) CreatePairingLink(ctx context.Context, id string, b CreateCustomerPairingLinkRequest, ...) (Response[Envelope[CreatedCustomerPairingLink]], error)
- func (r *Customers) Enable(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[CustomersEnablement]], error)
- func (r *Customers) GetSignalCustody(ctx context.Context, project, customer string, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
- func (r *Customers) List(ctx context.Context, p ListCustomersParams, o ...RequestOptions) (Response[CursorEnvelope[CustomerSummary]], error)
- func (r *Customers) ListConnections(ctx context.Context, id, project string, o ...RequestOptions) (Response[Envelope[[]CustomerConnection]], error)
- func (r *Customers) ListEvents(ctx context.Context, id string, p ListCustomerEventsParams, ...) (Response[Envelope[[]CustomerEvent]], error)
- func (r *Customers) ListPairingLinks(ctx context.Context, id, project string, o ...RequestOptions) (Response[Envelope[[]CustomerPairingLink]], error)
- func (r *Customers) Restore(ctx context.Context, id string, b CustomerProjectRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
- func (r *Customers) Retrieve(ctx context.Context, id, project string, o ...RequestOptions) (Response[Envelope[Customer]], error)
- func (r *Customers) RevokePairingLink(ctx context.Context, id, link, project string, o ...RequestOptions) (Response[Envelope[CustomerPairingLink]], error)
- func (r *Customers) Status(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[CustomersStatus]], error)
- func (r *Customers) TransferConnection(ctx context.Context, id, connection string, ...) (Response[Envelope[CustomerConnection]], error)
- func (r *Customers) Update(ctx context.Context, id string, b UpdateCustomerRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
- func (r *Customers) UpdateSignalCustody(ctx context.Context, project, customer string, b CustomerSignalCustodyUpdate, ...) (Response[Envelope[SignalCustodyDefault]], error)
- type CustomersEnablement
- type CustomersStatus
- type DecodeHistorySyncOptions
- type DeleteAudienceMemberResult
- type DeleteAudienceProfileResult
- type DeletedQuickReply
- type DirectHistorySyncCommon
- type DirectHistorySyncInline
- type DirectHistorySyncInlinePayload
- type DirectHistorySyncMedia
- type DirectHistorySyncMediaPayload
- type DisappearingTimerRequest
- type DownloadHistoryChunkOptions
- type EditCloudTemplateRequest
- type EditCloudTemplateResult
- type EditMessageRequest
- type EffectiveConnectionConfiguration
- type EmbeddedSignupRequest
- type EmbeddedSignupResult
- type EncodedEventPayload
- type EncryptMediaOptions
- type EncryptedMedia
- type EncryptedMediaInfo
- type EnrollCampaignContactRequest
- type EnrollPlatformCampaignContactRequest
- type Envelope
- type Error
- type ErrorKind
- type EventReplayReceipt
- type EventStream
- type EventStreamAcknowledgement
- type EventStreamAcknowledgementReceipt
- type EventStreamGap
- type EventStreamItem
- type EventStreamParams
- type EventStreamSource
- type Events
- func (r *Events) AcknowledgeStream(ctx context.Context, id string, b EventStreamAcknowledgement, projectID string, ...) (Response[EventStreamAcknowledgementReceipt], error)
- func (r *Events) List(ctx context.Context, p ListEventsParams, o ...RequestOptions) (*CursorPage[PlatformEvent], error)
- func (r *Events) ListIndexed(ctx context.Context, p ListIndexedEventsParams, o ...RequestOptions) (IndexedEventRead, error)
- func (r *Events) LiveSource(p EventStreamParams) (*EventStreamSource, error)
- func (r *Events) Replay(ctx context.Context, id string, b ReplayEventRequest, o ...RequestOptions) (Response[EventReplayReceipt], error)
- func (r *Events) Retrieve(ctx context.Context, id string, includePayload *bool, o ...RequestOptions) (Response[PlatformEvent], error)
- func (r *Events) Stream(p EventStreamParams) (*EventStream, error)
- type ExportCallRecordsParams
- type FlowConnectionLink
- type FlowConnectionRequest
- type FlowContent
- type FlowDraft
- type FlowEncryption
- type FlowEncryptionCustody
- type FlowEncryptionKey
- type FlowEncryptionKeyList
- type FlowEncryptionKeyRotation
- type FlowEndpoint
- type FlowEndpointReceipt
- type FlowEndpointSetResult
- type FlowEndpointState
- type FlowOK
- type FlowProviderOperation
- type FlowProviderRequest
- type FlowProviderResult
- type FlowSummary
- type FlowValidationIssue
- type FlowValidationPointer
- type Flows
- func (r *Flows) Create(ctx context.Context, b CreateFlowRequest, o ...RequestOptions) (Response[FlowDraft], error)
- func (r *Flows) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[FlowOK], error)
- func (r *Flows) DeleteEndpoint(ctx context.Context, id string, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowOK], error)
- func (r *Flows) Deprecate(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
- func (r *Flows) Discard(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
- func (r *Flows) EncryptionKey(ctx context.Context, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowEncryptionCustody], error)
- func (r *Flows) Endpoint(ctx context.Context, id string, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowEndpointState], error)
- func (r *Flows) EndpointReceipts(ctx context.Context, id string, p ListFlowEndpointReceiptsParams, ...) (Response[[]FlowEndpointReceipt], error)
- func (r *Flows) List(ctx context.Context, o ...RequestOptions) (Response[[]FlowSummary], error)
- func (r *Flows) Publish(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
- func (r *Flows) Receipts(ctx context.Context, id string, o ...RequestOptions) (Response[[]FlowProviderOperation], error)
- func (r *Flows) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[*FlowDraft], error)
- func (r *Flows) RotateEncryptionKey(ctx context.Context, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowEncryptionKeyRotation], error)
- func (r *Flows) SetEndpoint(ctx context.Context, id string, b SetFlowEndpointRequest, o ...RequestOptions) (Response[FlowEndpointSetResult], error)
- func (r *Flows) Sync(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
- func (r *Flows) Update(ctx context.Context, id string, b UpdateFlowRequest, o ...RequestOptions) (Response[FlowDraft], error)
- func (r *Flows) Upload(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
- type FollowRequestLogsParams
- type FunctionDefinition
- type FunctionDeployment
- type FunctionDeploymentSummary
- type FunctionDeployments
- func (r *FunctionDeployments) Create(ctx context.Context, id string, b CreateFunctionDeploymentRequest, ...) (Response[FunctionDeployment], error)
- func (r *FunctionDeployments) List(ctx context.Context, id string, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionDeploymentSummary]], error)
- func (r *FunctionDeployments) Promote(ctx context.Context, id string, b PromoteFunctionDeploymentRequest, ...) (Response[FunctionDefinition], error)
- func (r *FunctionDeployments) Retrieve(ctx context.Context, id, deploymentID string, o ...RequestOptions) (Response[FunctionDeployment], error)
- type FunctionInvocation
- type FunctionInvocationResult
- type FunctionInvocations
- func (r *FunctionInvocations) Create(ctx context.Context, id string, b CreateFunctionInvocationRequest, ...) (Response[FunctionInvocationResult], error)
- func (r *FunctionInvocations) List(ctx context.Context, id string, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionInvocation]], error)
- func (r *FunctionInvocations) Retrieve(ctx context.Context, id, invocationID string, o ...RequestOptions) (Response[FunctionInvocation], error)
- type FunctionMutationResult
- type FunctionPage
- type FunctionRequest
- type FunctionResponse
- type FunctionSecretVersion
- type FunctionSecrets
- func (r *FunctionSecrets) Create(ctx context.Context, id string, b CreateFunctionSecretRequest, ...) (Response[FunctionSecretVersion], error)
- func (r *FunctionSecrets) List(ctx context.Context, id string, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionSecretVersion]], error)
- func (r *FunctionSecrets) Revoke(ctx context.Context, id, versionID string, o ...RequestOptions) (Response[FunctionMutationResult], error)
- type Functions
- func (r *Functions) Create(ctx context.Context, b CreateFunctionRequest, o ...RequestOptions) (Response[FunctionDefinition], error)
- func (r *Functions) Delete(ctx context.Context, id string, expectedRevision int64, o ...RequestOptions) (Response[FunctionMutationResult], error)
- func (r *Functions) Deployments() *FunctionDeployments
- func (r *Functions) Invocations() *FunctionInvocations
- func (r *Functions) List(ctx context.Context, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionDefinition]], error)
- func (r *Functions) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[FunctionDefinition], error)
- func (r *Functions) Secrets() *FunctionSecrets
- func (r *Functions) Update(ctx context.Context, id string, b UpdateFunctionRequest, o ...RequestOptions) (Response[FunctionDefinition], error)
- type Group
- type GroupCapabilities
- type GroupInviteCode
- type GroupInviteInfo
- type GroupParticipant
- type GroupParticipantPayload
- type GroupParticipantsRequest
- type GroupUpdatePayload
- type Groups
- func (r *Groups) AddParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, ...) (Response[Success], error)
- func (r *Groups) Create(ctx context.Context, s string, b CreateGroupRequest, o ...RequestOptions) (Response[Envelope[Group]], error)
- func (r *Groups) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) DemoteParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, ...) (Response[Success], error)
- func (r *Groups) GetCapabilities(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[GroupCapabilities]], error)
- func (r *Groups) GetInviteCode(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[GroupInviteCode]], error)
- func (r *Groups) GetJoinInfo(ctx context.Context, s, code string, o ...RequestOptions) (Response[Envelope[GroupInviteInfo]], error)
- func (r *Groups) Join(ctx context.Context, s, code string, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) Leave(ctx context.Context, s, id string, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[[]Group]], error)
- func (r *Groups) ListParticipants(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[[]GroupParticipant]], error)
- func (r *Groups) PromoteParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, ...) (Response[Success], error)
- func (r *Groups) RemoveParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, ...) (Response[Success], error)
- func (r *Groups) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[Group]], error)
- func (r *Groups) RevokeInviteCode(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[GroupInviteCode]], error)
- func (r *Groups) SetDescription(ctx context.Context, s, id, value string, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) SetInfoEditing(ctx context.Context, s, id string, adminsOnly bool, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) SetJoinApproval(ctx context.Context, s, id string, required bool, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) SetMemberAddMode(ctx context.Context, s, id, mode string, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) SetMessaging(ctx context.Context, s, id string, adminsOnly bool, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) SetPicture(ctx context.Context, s, id string, b PictureRequest, o ...RequestOptions) (Response[Success], error)
- func (r *Groups) SetSubject(ctx context.Context, s, id, value string, o ...RequestOptions) (Response[Success], error)
- type HMSConfiguration
- type HandRaisedRequest
- type HealthCheck
- type HealthResponse
- type HistoryChat
- type HistoryConversation
- type HistoryMedia
- type HistoryMessage
- type HistoryMessageSummary
- type HistoryPage
- type HistoryProtobufField
- type HistorySyncChunkDeleteRequest
- type HistorySyncChunkDeleteResult
- type HistorySyncChunkDescriptor
- type HistorySyncChunkInput
- type HistorySyncChunkRetryRequest
- type HistorySyncChunkRetryResult
- type HistorySyncData
- type HistorySyncDelivery
- type HistorySyncDeliveryPatch
- type HistorySyncMessage
- type HistorySyncPolicy
- type HistorySyncPolicyPatch
- type HistorySyncResource
- func (resource *HistorySyncResource) DeleteChunk(ctx context.Context, connection string, body HistorySyncChunkDeleteRequest, ...) (Response[Envelope[HistorySyncChunkDeleteResult]], error)
- func (resource *HistorySyncResource) RequestChunkRetry(ctx context.Context, connection string, body HistorySyncChunkRetryRequest, ...) (Response[Envelope[HistorySyncChunkRetryResult]], error)
- type HistorySyncType
- type HybridConnection
- type HybridLink
- func (r *HybridLink) GetPolicy(ctx context.Context, s HybridScope, o ...RequestOptions) (Response[Envelope[HybridRoutingPolicy]], error)
- func (r *HybridLink) SetPaused(ctx context.Context, s string, b SetHybridPausedRequest, o ...RequestOptions) (Response[Envelope[HybridPaused]], error)
- func (r *HybridLink) SetPolicy(ctx context.Context, s HybridScope, b SetHybridRoutingPolicyRequest, ...) (Response[Envelope[HybridRoutingPolicy]], error)
- func (r *HybridLink) State(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[HybridLinkState]], error)
- type HybridLinkState
- type HybridMerge
- type HybridMergeCandidate
- type HybridMergeCandidateConnection
- type HybridPaused
- type HybridResolution
- type HybridRoutingPolicy
- type HybridScope
- type IdempotencyReceipt
- type Identities
- type IdentityParams
- type ImportCallOptOutsRequest
- type IndexedEventPageMetadata
- type IndexedEventRead
- type InteractiveMediaSource
- type InvalidRecipientRow
- type IssuePasskeyChallengeRequest
- type KnownWebhookPayload
- type Label
- type LabelCollection
- type LabelRead
- type Labels
- func (r *Labels) Create(ctx context.Context, s string, b CreateLabelRequest, o ...RequestOptions) (Response[Envelope[Label]], error)
- func (r *Labels) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Success], error)
- func (r *Labels) List(ctx context.Context, s string, p ListLabelsParams, o ...RequestOptions) (Response[Envelope[LabelRead]], error)
- func (r *Labels) ListForChat(ctx context.Context, s, id string, p ListLabelsParams, o ...RequestOptions) (Response[Envelope[LabelRead]], error)
- func (r *Labels) ReplaceForChat(ctx context.Context, s, id string, b ReplaceChatLabelsRequest, ...) (Response[Success], error)
- func (r *Labels) Update(ctx context.Context, s, id string, b UpdateLabelRequest, o ...RequestOptions) (Response[Success], error)
- type LabelsUpdatePayload
- type LaunchCampaignRequest
- type LaunchPlatformCampaignRequest
- type LeaveCallRequest
- type LifecycleFrame
- type LinkedDeviceMessagePayload
- type LinkedHistorySyncPayload
- type ListAudienceProfilesParams
- type ListAudienceSegmentsParams
- type ListAuditLogsParams
- type ListBanSafeClaimsParams
- type ListBanSafeCollectionParams
- type ListBanSafeEnforcementParams
- type ListBanSafeFindingsParams
- type ListBanSafeHealthActionsParams
- type ListBanSafeHealthHistoryParams
- type ListBanSafeHealthParams
- type ListBanSafeIncidentsParams
- type ListBanSafeTelemetryHistoryParams
- type ListCallOptOutsParams
- type ListCallRecordsParams
- type ListCampaignRecipientsParams
- type ListCampaignsParams
- type ListCloudCatalogProductsParams
- type ListCloudCatalogsParams
- type ListConnectionCallsParams
- type ListContent
- type ListCustomerEventsParams
- type ListCustomersParams
- type ListEventsParams
- type ListFlowEndpointReceiptsParams
- type ListFunctionsParams
- type ListHistoryChatsParams
- type ListHistoryMessagesParams
- type ListIndexedEventsParams
- type ListLabelsParams
- type ListOfficialGroupsParams
- type ListOperationsParams
- type ListParams
- type ListPlatformCampaignRecipientsParams
- type ListRequestLogsParams
- type ListRow
- type ListSection
- type ListVoiceAudioParams
- type ListWebhookDeliveriesParams
- type ListWebhooksParams
- type LiveEventMetadata
- type LiveEventSubscription
- type LiveEventSubscriptionOptions
- type LocationContent
- type ManagedFlowEncryptionKey
- type MarketingMessagesStatus
- type MarketingOnboarding
- type MarketingOnboardingUpdatedPayload
- type MarketingTerms
- type MediaContent
- type MediaControlFrame
- type MediaDownload
- type MediaDownloadURL
- type MediaFileOptions
- type MediaFileResult
- type MediaInfo
- type Members
- type MessageAckPayload
- type MessageButton
- type MessageContent
- type MessageDeletePayload
- type MessageEchoPayload
- type MessageFailedPayload
- type MessageOperation
- type MessageReceipt
- type MessageResult
- type MessageSentPayload
- type MessageTransport
- type Messages
- func (r *Messages) MarkSeen(ctx context.Context, s string, b SeenRequest, o ...RequestOptions) (Response[Envelope[StatusResult]], error)
- func (r *Messages) OperationStatus(ctx context.Context, connection, id string, opts ...RequestOptions) (Response[Envelope[MessageOperation]], error)
- func (r *Messages) React(ctx context.Context, s string, b ReactionRequest, opts ...RequestOptions) (Response[Envelope[MessageReceipt]], error)
- func (r *Messages) Send(ctx context.Context, connection string, b SendMessageRequest, ...) (Response[Envelope[MessageResult]], error)
- func (r *Messages) SetTyping(ctx context.Context, s string, b TypingRequest, o ...RequestOptions) (Response[Envelope[StatusResult]], error)
- func (r *Messages) Star(ctx context.Context, s string, b StarRequest, o ...RequestOptions) (Response[Envelope[StatusResult]], error)
- type MessagingBanSafe
- func (r *MessagingBanSafe) GetConnectionSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionSafeMode]], error)
- func (r *MessagingBanSafe) GetProjectHealthPolicy(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectHealthPolicy]], error)
- func (r *MessagingBanSafe) GetProjectInsuranceEvidence(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectInsuranceEvidence]], error)
- func (r *MessagingBanSafe) GetProjectSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectSafeMode]], error)
- func (r *MessagingBanSafe) GetProjectWarmupPlan(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectWarmupPlan]], error)
- func (r *MessagingBanSafe) UpdateConnectionSafeMode(ctx context.Context, id string, b UpdateConnectionSafeModeRequest, ...) (Response[Envelope[ConnectionSafeMode]], error)
- func (r *MessagingBanSafe) UpdateProjectHealthPolicy(ctx context.Context, id string, b UpdateProjectHealthPolicyRequest, ...) (Response[Envelope[ProjectHealthPolicy]], error)
- func (r *MessagingBanSafe) UpdateProjectInsuranceEvidence(ctx context.Context, id string, b UpdateProjectInsuranceEvidenceRequest, ...) (Response[Envelope[ProjectInsuranceEvidence]], error)
- func (r *MessagingBanSafe) UpdateProjectSafeMode(ctx context.Context, id string, b UpdateProjectSafeModeRequest, ...) (Response[Envelope[ProjectSafeMode]], error)
- func (r *MessagingBanSafe) UpdateProjectWarmupPlan(ctx context.Context, id string, b UpdateProjectWarmupPlanRequest, ...) (Response[Envelope[ProjectWarmupPlan]], error)
- type MessagingCampaigns
- func (r *MessagingCampaigns) AddRecipients(ctx context.Context, project, id string, b AddCampaignRecipientsRequest, ...) (Response[Envelope[AddCampaignRecipientsResult]], error)
- func (r *MessagingCampaigns) Analytics(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignAnalytics]], error)
- func (r *MessagingCampaigns) Create(ctx context.Context, project string, b CreateCampaignRequest, ...) (Response[Envelope[Campaign]], error)
- func (r *MessagingCampaigns) CreateReplyFlow(ctx context.Context, project string, b CreateCampaignReplyFlowRequest, ...) (Response[Envelope[CampaignReplyFlow]], error)
- func (r *MessagingCampaigns) Enroll(ctx context.Context, project, id string, b EnrollCampaignContactRequest, ...) (Response[Envelope[CampaignEnrollment]], error)
- func (r *MessagingCampaigns) ExportRecipients(ctx context.Context, project, id string, p CampaignRecipientExportParams, ...) (Response[CampaignRecipientExportPage], error)
- func (r *MessagingCampaigns) GetReplyFlow(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
- func (r *MessagingCampaigns) Launch(ctx context.Context, project, id string, b LaunchCampaignRequest, ...) (Response[Envelope[CampaignOperation]], error)
- func (r *MessagingCampaigns) Links(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[[]CampaignTrackedLinkReport]], error)
- func (r *MessagingCampaigns) List(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[[]Campaign]], error)
- func (r *MessagingCampaigns) ListRecipients(ctx context.Context, project, id string, p ListCampaignRecipientsParams, ...) (Response[CursorEnvelope[CampaignRecipient]], error)
- func (r *MessagingCampaigns) Pause(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignOperation]], error)
- func (r *MessagingCampaigns) Requeue(ctx context.Context, project, id string, b RequeueCampaignRequest, ...) (Response[Envelope[CampaignRequeueResult]], error)
- func (r *MessagingCampaigns) Reschedule(ctx context.Context, project, id string, b RescheduleCampaignRequest, ...) (Response[Envelope[CampaignOperation]], error)
- func (r *MessagingCampaigns) Resume(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignOperation]], error)
- func (r *MessagingCampaigns) Retrieve(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[Campaign]], error)
- func (r *MessagingCampaigns) SetReplyFlow(ctx context.Context, project, id string, b SetCampaignReplyFlowRequest, ...) (Response[Envelope[CampaignReplyFlowAssignment]], error)
- func (r *MessagingCampaigns) Stop(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignStopOperation]], error)
- func (r *MessagingCampaigns) TestSend(ctx context.Context, project, id string, b CampaignTestSendRequest, ...) (Response[Envelope[CampaignTestSend]], error)
- func (r *MessagingCampaigns) Update(ctx context.Context, project, id string, b UpdateCampaignRequest, ...) (Response[Envelope[Campaign]], error)
- type MessagingClient
- func (c *MessagingClient) BanSafe() *MessagingBanSafe
- func (c *MessagingClient) Business() *Business
- func (c *MessagingClient) Campaigns() *MessagingCampaigns
- func (c *MessagingClient) Catalogs() *Catalogs
- func (c *MessagingClient) Channels() *Channels
- func (c *MessagingClient) Chats() *Chats
- func (c *MessagingClient) ClientTokens() *ClientTokens
- func (c *MessagingClient) CloudCatalogs() *CloudCatalogs
- func (c *MessagingClient) CloudMarketing() *CloudMarketing
- func (c *MessagingClient) CloudOnboarding() *CloudOnboarding
- func (c *MessagingClient) CloudTemplates() *CloudTemplates
- func (c *MessagingClient) ConnectionCalls() *ConnectionCalls
- func (c *MessagingClient) Connections() *MessagingConnections
- func (c *MessagingClient) Contacts() *Contacts
- func (c *MessagingClient) FlowEncryption() *FlowEncryption
- func (c *MessagingClient) Groups() *Groups
- func (client *MessagingClient) HistorySync() *HistorySyncResource
- func (c *MessagingClient) HybridLink() *HybridLink
- func (c *MessagingClient) Identities() *Identities
- func (c *MessagingClient) Labels() *Labels
- func (c *MessagingClient) Media() *MessagingMedia
- func (c *MessagingClient) Messages() *Messages
- func (c *MessagingClient) ObservationPolicies() *ObservationPolicies
- func (c *MessagingClient) OfficialGroups() *OfficialGroups
- func (c *MessagingClient) Passkeys() *Passkeys
- func (c *MessagingClient) Presence() *Presence
- func (c *MessagingClient) Privacy() *Privacy
- func (c *MessagingClient) Profile() *Profile
- func (c *MessagingClient) QuickLinks() *QuickLinks
- func (c *MessagingClient) QuickReplies() *QuickReplies
- func (c *MessagingClient) Raw(ctx context.Context, r RawRequest) (RawResponse, error)
- func (c *MessagingClient) Templates() *Templates
- func (c *MessagingClient) Testing() *Testing
- func (c *MessagingClient) Users() *Users
- func (c *MessagingClient) VoIP() *VoIP
- func (c *MessagingClient) Webhooks() *MessagingWebhooks
- func (client *MessagingClient) WhatsAppMedia() *WhatsAppMediaResource
- type MessagingConnections
- func (r *MessagingConnections) Account(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[WhatsAppAccount]], error)
- func (r *MessagingConnections) Delete(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionLifecycleResult]], error)
- func (r *MessagingConnections) GetCloudCredentialHealth(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[CloudCredentialHealth]], error)
- func (r *MessagingConnections) GetMetaPricing(ctx context.Context, s string, p MetaPricingParams, o ...RequestOptions) (Response[Envelope[MetaPricingSummary]], error)
- func (r *MessagingConnections) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]PlatformConnection]], error)
- func (r *MessagingConnections) Logout(ctx context.Context, s string, o ...RequestOptions) (Response[OperationAccepted], error)
- func (r *MessagingConnections) QR(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[QRCode]], error)
- func (r *MessagingConnections) ReauthorizeCloudCredentials(ctx context.Context, s string, opts ...RequestOptions) (Response[Envelope[CloudReauthorization]], error)
- func (r *MessagingConnections) RequestPairingCode(ctx context.Context, s string, b PairingCodeRequest, o ...RequestOptions) (Response[Envelope[PairingCode]], error)
- func (r *MessagingConnections) Restart(ctx context.Context, s string, o ...RequestOptions) (Response[OperationAccepted], error)
- func (r *MessagingConnections) Retrieve(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[Connection]], error)
- func (r *MessagingConnections) Start(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionLifecycleResult]], error)
- func (r *MessagingConnections) Stop(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionLifecycleResult]], error)
- func (r *MessagingConnections) Update(ctx context.Context, s string, b UpdateConnectionRequest, o ...RequestOptions) (Response[Envelope[Connection]], error)
- type MessagingMedia
- func (r *MessagingMedia) Download(ctx context.Context, id string, o ...RequestOptions) (Response[[]byte], error)
- func (r *MessagingMedia) DownloadFromWhatsApp(ctx context.Context, d WhatsAppMediaDescriptor, o WhatsAppMediaDownloadOptions) (WhatsAppMediaDownload, error)
- func (r *MessagingMedia) DownloadStream(ctx context.Context, id string, o ...RequestOptions) (*MediaDownload, error)
- func (r *MessagingMedia) DownloadToFile(ctx context.Context, id, path string, file MediaFileOptions, ...) (APIMediaFileResult, error)
- func (r *MessagingMedia) DownloadURL(ctx context.Context, id string, opts ...RequestOptions) (MediaDownloadURL, error)
- func (r *MessagingMedia) Persist(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
- func (r *MessagingMedia) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[MediaInfo]], error)
- type MessagingWebhook
- type MessagingWebhooks
- func (r *MessagingWebhooks) Create(ctx context.Context, b CreateMessagingWebhookRequest, o ...RequestOptions) (Response[Envelope[MessagingWebhook]], error)
- func (r *MessagingWebhooks) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
- func (r *MessagingWebhooks) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]MessagingWebhook]], error)
- func (r *MessagingWebhooks) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[MessagingWebhook]], error)
- func (r *MessagingWebhooks) Update(ctx context.Context, id string, b UpdateMessagingWebhookRequest, ...) (Response[Envelope[MessagingWebhook]], error)
- type MetaPricingGroup
- type MetaPricingParams
- type MetaPricingReport
- type MetaPricingSummary
- type Metadata
- type MintClientTokenRequest
- type NativeFlowResponse
- type NewChatCapping
- type NewsletterUpdatePayload
- type Nullable
- type NullableString
- type ObservationConfiguration
- type ObservationPolicies
- func (r *ObservationPolicies) RetrieveForConnection(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionObservationPolicy]], error)
- func (r *ObservationPolicies) RetrieveForProject(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectObservationPolicy]], error)
- type ObservationValues
- type ObservedQuickReply
- type OfficialGroup
- type OfficialGroupAccepted
- type OfficialGroupCursorParams
- type OfficialGroupCursors
- type OfficialGroupInviteLink
- type OfficialGroupJoinDecision
- type OfficialGroupJoinError
- type OfficialGroupJoinFailure
- type OfficialGroupJoinRequest
- type OfficialGroupJoinRequestList
- type OfficialGroupList
- type OfficialGroupSummary
- type OfficialGroupWebhookError
- type OfficialGroups
- func (r *OfficialGroups) ApproveJoinRequests(ctx context.Context, s, id string, ids []string, o ...RequestOptions) (Response[Envelope[OfficialGroupJoinDecision]], error)
- func (r *OfficialGroups) Create(ctx context.Context, s string, b CreateOfficialGroupRequest, ...) (Response[Envelope[AsyncAccepted]], error)
- func (r *OfficialGroups) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
- func (r *OfficialGroups) GetInviteLink(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroupInviteLink]], error)
- func (r *OfficialGroups) List(ctx context.Context, s string, p ListOfficialGroupsParams, o ...RequestOptions) (Response[Envelope[OfficialGroupList]], error)
- func (r *OfficialGroups) ListJoinRequests(ctx context.Context, s, id string, p OfficialGroupCursorParams, ...) (Response[Envelope[OfficialGroupJoinRequestList]], error)
- func (r *OfficialGroups) Pin(ctx context.Context, s, id string, b PinOfficialGroupMessageRequest, ...) (Response[Envelope[OfficialGroupAccepted]], error)
- func (r *OfficialGroups) RejectJoinRequests(ctx context.Context, s, id string, ids []string, o ...RequestOptions) (Response[Envelope[OfficialGroupJoinDecision]], error)
- func (r *OfficialGroups) RemoveParticipants(ctx context.Context, s, id string, participants []string, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
- func (r *OfficialGroups) ResetInviteLink(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroupInviteLink]], error)
- func (r *OfficialGroups) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroup]], error)
- func (r *OfficialGroups) SetPicture(ctx context.Context, s, id string, jpeg []byte, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
- func (r *OfficialGroups) Update(ctx context.Context, s, id string, b UpdateOfficialGroupRequest, ...) (Response[Envelope[OfficialGroupAccepted]], error)
- type Operation
- type OperationAccepted
- type OperationActionRequired
- type OperationCancellationReceipt
- type OperationError
- type OperationProgress
- type OperationTransition
- type Operations
- func (r *Operations) Cancel(ctx context.Context, id string, opts ...RequestOptions) (Response[OperationCancellationReceipt], error)
- func (r *Operations) Get(ctx context.Context, id string, p RetrieveOperationParams, ...) (Response[Operation], error)
- func (r *Operations) List(ctx context.Context, p ListOperationsParams, o ...RequestOptions) (*CursorPage[Operation], error)
- func (r *Operations) ListTransitions(ctx context.Context, id string, p ListParams, afterSequence *int64, ...) (*CursorPage[OperationTransition], error)
- func (r *Operations) Wait(ctx context.Context, id string, p RetrieveOperationParams, ...) (Response[Operation], error)
- type OptOutSettings
- type OptOuts
- func (r *OptOuts) Create(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *OptOuts) CreateBatch(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *OptOuts) Delete(ctx context.Context, phone string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *OptOuts) GetConfirmationSettings(ctx context.Context, o ...RequestOptions) (Response[Envelope[StopConfirmationSettings]], error)
- func (r *OptOuts) GetConfirmationSummary(ctx context.Context, o ...RequestOptions) (Response[Envelope[StopConfirmationSummary]], error)
- func (r *OptOuts) GetSettings(ctx context.Context, o ...RequestOptions) (Response[Envelope[OptOutSettings]], error)
- func (r *OptOuts) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *OptOuts) UpdateConfirmationSettings(ctx context.Context, b UpdateStopConfirmationSettingsRequest, ...) (Response[Envelope[StopConfirmationSettings]], error)
- func (r *OptOuts) UpdateSettings(ctx context.Context, b UpdateOptOutSettingsRequest, o ...RequestOptions) (Response[Envelope[OptOutSettings]], error)
- type OrderContent
- type OrderDetailsContent
- type OrderExpiration
- type OrderItem
- type OrderItemization
- type OrderPaymentConversation
- type OrderPaymentMethodSelectedPayload
- type OrderPaymentStatusPayload
- type OrderPaymentUpdateBase
- type OrderPaymentValue
- type OrderStatusContent
- type OrderStatusValue
- type PageResult
- type PairingCode
- type PairingCodeRequest
- type PasskeyAssertion
- type PasskeyAssertionResponse
- type PasskeyAssertionResult
- type PasskeyConfirmation
- type PasskeyTicket
- type Passkeys
- func (r *Passkeys) Confirm(ctx context.Context, s string, body ConfirmPasskeyRequest, o ...RequestOptions) (Response[Envelope[PasskeyConfirmation]], error)
- func (r *Passkeys) GetChallenge(ctx context.Context, s, ticket string, o ...RequestOptions) (Response[Envelope[PasskeyTicket]], error)
- func (r *Passkeys) GetConfirmation(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[PasskeyConfirmation]], error)
- func (r *Passkeys) IssueChallenge(ctx context.Context, s string, body IssuePasskeyChallengeRequest, ...) (Response[Envelope[PasskeyTicket]], error)
- func (r *Passkeys) SubmitAssertion(ctx context.Context, s string, body SubmitPasskeyAssertionRequest, ...) (Response[Envelope[PasskeyAssertionResult]], error)
- type PaymentAmount
- type PaymentLink
- type PaymentSettings
- type PictureRequest
- type PinOfficialGroupMessageRequest
- type PingResponse
- type PixDynamicCode
- type PlaceCallRequest
- type PlacedCall
- type PlatformCalls
- func (r *PlatformCalls) Export(ctx context.Context, p ExportCallRecordsParams, o ...RequestOptions) (Response[CallRecordExportPage], error)
- func (r *PlatformCalls) ExportAll(ctx context.Context, p ExportCallRecordsParams, o ...RequestOptions) iter.Seq2[string, error]
- func (r *PlatformCalls) List(ctx context.Context, p ListCallRecordsParams, o ...RequestOptions) (*CursorPage[CallRecord], error)
- func (r *PlatformCalls) Retrieve(ctx context.Context, id string, p RetrieveCallRecordParams, ...) (Response[CallRecordDetail], error)
- func (r *PlatformCalls) Stats(ctx context.Context, p CallStatsParams, o ...RequestOptions) (Response[CallStats], error)
- type PlatformCampaign
- type PlatformCampaignAnalytics
- type PlatformCampaignOperation
- type PlatformCampaignParams
- type PlatformCampaignRecipientExportParams
- type PlatformCampaignTestSendRequest
- type PlatformConnection
- type PlatformConnections
- func (r *PlatformConnections) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionRemoveResult]], error)
- func (r *PlatformConnections) DeleteMany(ctx context.Context, b ConnectionBatchRequest, o ...RequestOptions) (Response[Envelope[ConnectionBatchRemoveResult]], error)
- func (r *PlatformConnections) GetCapabilities(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionCapabilities]], error)
- func (r *PlatformConnections) GetSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionSafeMode]], error)
- func (r *PlatformConnections) List(ctx context.Context, projectID string, o ...RequestOptions) (Response[Envelope[[]PlatformConnection]], error)
- func (r *PlatformConnections) QuoteTierChange(ctx context.Context, id string, b ConnectionTierQuoteRequest, ...) (Response[Envelope[ConnectionTierChange]], error)
- func (r *PlatformConnections) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[Connection]], error)
- func (r *PlatformConnections) RetrieveTierChange(ctx context.Context, id, quoteID string, o ...RequestOptions) (Response[Envelope[ConnectionTierChange]], error)
- func (r *PlatformConnections) SetTierOverride(ctx context.Context, id string, b ConnectionTierOverrideRequest, ...) (Response[Envelope[ConnectionTierChange]], error)
- func (r *PlatformConnections) Start(ctx context.Context, id string, b ConnectionProjectContext, ...) (Response[Envelope[ConnectionStartResult]], error)
- func (r *PlatformConnections) Stop(ctx context.Context, id string, b ConnectionProjectContext, ...) (Response[Envelope[ConnectionStopResult]], error)
- func (r *PlatformConnections) StopMany(ctx context.Context, b ConnectionBatchRequest, o ...RequestOptions) (Response[Envelope[ConnectionBatchStopResult]], error)
- func (r *PlatformConnections) Update(ctx context.Context, id string, b UpdateConnectionRequest, o ...RequestOptions) (Response[Envelope[Connection]], error)
- func (r *PlatformConnections) UpdateSafeMode(ctx context.Context, id string, b UpdateConnectionSafeModeRequest, ...) (Response[Envelope[ConnectionSafeMode]], error)
- type PlatformEvent
- type PlatformMedia
- func (r *PlatformMedia) CreateUpload(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *PlatformMedia) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- func (r *PlatformMedia) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
- type PlatformPayload
- type PlatformWebhook
- type PollContent
- type PollVotePayload
- type Presence
- func (r *Presence) Get(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[PresenceData]], error)
- func (r *Presence) GetForChat(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[ChatPresenceData]], error)
- func (r *Presence) Set(ctx context.Context, s, state string, o ...RequestOptions) (Response[PresenceMutationResult], error)
- func (r *Presence) Subscribe(ctx context.Context, s, id string, o ...RequestOptions) (Response[PresenceMutationResult], error)
- type PresenceData
- type PresenceMutationResult
- type PresenceUpdatePayload
- type PreviewCallLinkRequest
- type PreviewProjectTemplateRequest
- type PreviewedCallLink
- type Privacy
- func (r *Privacy) Get(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[PrivacySettings]], error)
- func (r *Privacy) Set(ctx context.Context, s string, setting PrivacySettingName, ...) (Response[Envelope[PrivacySettings]], error)
- func (r *Privacy) SetDefaultDisappearingTimer(ctx context.Context, s string, b DisappearingTimerRequest, o ...RequestOptions) (Response[Success], error)
- type PrivacySettingName
- type PrivacySettingValue
- type PrivacySettings
- type ProductContent
- type ProductListContent
- type ProductListSection
- type ProductionBusiness
- type ProductionEnrollmentCommandResult
- type ProductionEnrollmentRequest
- type ProductionEnrollmentResult
- type Profile
- func (r *Profile) DeletePicture(ctx context.Context, s string, o ...RequestOptions) (Response[Success], error)
- func (r *Profile) Get(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ProfileData]], error)
- func (r *Profile) SetName(ctx context.Context, s, name string, o ...RequestOptions) (Response[Success], error)
- func (r *Profile) SetPicture(ctx context.Context, s string, b PictureRequest, o ...RequestOptions) (Response[Success], error)
- func (r *Profile) SetStatus(ctx context.Context, s, status string, o ...RequestOptions) (Response[Success], error)
- type ProfileData
- type Project
- type ProjectCampaigns
- func (r *ProjectCampaigns) CreateReplyFlow(ctx context.Context, b CreateCampaignReplyFlowRequest, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
- func (r *ProjectCampaigns) ExportRecipients(ctx context.Context, id string, p CampaignRecipientExportParams, ...) (Response[CampaignRecipientExportPage], error)
- func (r *ProjectCampaigns) GetReplyFlow(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
- func (r *ProjectCampaigns) Links(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[[]CampaignTrackedLinkReport]], error)
- func (r *ProjectCampaigns) ListLaunchApprovals(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[[]CampaignLaunchApproval]], error)
- func (r *ProjectCampaigns) SetReplyFlow(ctx context.Context, id string, b SetCampaignReplyFlowRequest, ...) (Response[Envelope[CampaignReplyFlowAssignment]], error)
- func (r *ProjectCampaigns) TestSend(ctx context.Context, id string, b CampaignTestSendRequest, o ...RequestOptions) (Response[Envelope[CampaignTestSend]], error)
- type ProjectClient
- func (c *ProjectClient) Analytics() *Analytics
- func (c *ProjectClient) CallRetention() *CallRetentionResource
- func (c *ProjectClient) Calls() *PlatformCalls
- func (c *ProjectClient) Campaigns() *ProjectCampaigns
- func (c *ProjectClient) ConnectionConfiguration() *ConnectionConfigurationResource
- func (c *ProjectClient) Events() *Events
- func (c *ProjectClient) Flows() *Flows
- func (c *ProjectClient) Functions() *Functions
- func (c *ProjectClient) Operations() *Operations
- func (c *ProjectClient) Project(id string) (*ProjectClient, error)
- func (c *ProjectClient) ProjectID() string
- func (c *ProjectClient) QuickLinkSettings() *QuickLinkSettingsResource
- func (c *ProjectClient) Raw(ctx context.Context, r RawRequest) (RawResponse, error)
- func (c *ProjectClient) RequestLogs() *RequestLogs
- func (c *ProjectClient) SIPTrunks() *SIPTrunks
- func (c *ProjectClient) SignalCustody() *SignalCustodyResource
- func (c *ProjectClient) Usage() *Usage
- func (c *ProjectClient) Voice() *ProjectVoice
- func (c *ProjectClient) WebhookDeliveries() *WebhookDeliveries
- func (c *ProjectClient) Webhooks() *Webhooks
- type ProjectHealthPolicy
- type ProjectHealthPolicyIntegrations
- type ProjectIcon
- type ProjectInsuranceEvidence
- type ProjectObservationPolicy
- type ProjectSafeMode
- type ProjectSignalCustodyUpdate
- type ProjectTemplate
- type ProjectTokenRecord
- type ProjectTokens
- type ProjectVoice
- type ProjectWarmupPlan
- type ProjectWithStats
- type Projects
- func (r *Projects) ApproveProductionEnrollment(ctx context.Context, id, op string, o ...RequestOptions) (Response[Envelope[ProductionEnrollmentCommandResult]], error)
- func (r *Projects) CancelProductionEnrollment(ctx context.Context, id, op string, o ...RequestOptions) (Response[Envelope[ProductionEnrollmentCommandResult]], error)
- func (r *Projects) Create(ctx context.Context, b CreateProjectRequest, o ...RequestOptions) (Response[Envelope[Project]], error)
- func (r *Projects) GetHealthPolicy(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectHealthPolicy]], error)
- func (r *Projects) GetInsuranceEvidence(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectInsuranceEvidence]], error)
- func (r *Projects) GetSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectSafeMode]], error)
- func (r *Projects) GetSignalCustody(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
- func (r *Projects) GetWarmupPlan(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectWarmupPlan]], error)
- func (r *Projects) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]ProjectWithStats]], error)
- func (r *Projects) ListHybridMergeCandidates(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[[]HybridMergeCandidate]], error)
- func (r *Projects) RequestProductionEnrollment(ctx context.Context, id string, b ProductionEnrollmentRequest, ...) (Response[Envelope[ProductionEnrollmentResult]], error)
- func (r *Projects) UpdateHealthPolicy(ctx context.Context, id string, b UpdateProjectHealthPolicyRequest, ...) (Response[Envelope[ProjectHealthPolicy]], error)
- func (r *Projects) UpdateInsuranceEvidence(ctx context.Context, id string, b UpdateProjectInsuranceEvidenceRequest, ...) (Response[Envelope[ProjectInsuranceEvidence]], error)
- func (r *Projects) UpdateSafeMode(ctx context.Context, id string, b UpdateProjectSafeModeRequest, ...) (Response[Envelope[ProjectSafeMode]], error)
- func (r *Projects) UpdateSignalCustody(ctx context.Context, project string, b ProjectSignalCustodyUpdate, ...) (Response[Envelope[SignalCustodyDefault]], error)
- func (r *Projects) UpdateWarmupPlan(ctx context.Context, id string, b UpdateProjectWarmupPlanRequest, ...) (Response[Envelope[ProjectWarmupPlan]], error)
- type PromoteFunctionDeploymentRequest
- type PutAudienceProfileRequest
- type QRCode
- type QuickLink
- type QuickLinkAvailability
- type QuickLinkConfiguration
- type QuickLinkHistorySync
- type QuickLinkOnboarding
- type QuickLinkSettings
- type QuickLinkSettingsResource
- type QuickLinkStatus
- type QuickLinkTesting
- type QuickLinks
- func (r *QuickLinks) Availability(ctx context.Context, projectID, connection string, o ...RequestOptions) (Response[Envelope[QuickLinkAvailability]], error)
- func (r *QuickLinks) Cancel(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
- func (r *QuickLinks) Create(ctx context.Context, b CreateQuickLinkRequest, o ...RequestOptions) (Response[Envelope[QuickLink]], error)
- func (r *QuickLinks) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[QuickLinkStatus]], error)
- type QuickReplies
- func (r *QuickReplies) Create(ctx context.Context, s string, b QuickReplyMutation, o ...RequestOptions) (Response[Envelope[QuickReply]], error)
- func (r *QuickReplies) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[DeletedQuickReply]], error)
- func (r *QuickReplies) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[QuickReplyCollection]], error)
- func (r *QuickReplies) Replace(ctx context.Context, s, id string, b QuickReplyMutation, o ...RequestOptions) (Response[Envelope[QuickReply]], error)
- type QuickReply
- type QuickReplyCollection
- type QuickReplyMutation
- type QuotedMessage
- type RawPageDecoder
- type RawPaginationOptions
- type RawRequest
- type RawRequester
- type RawResponse
- type ReactionRequest
- type RecordCampaignConversionRequest
- type RegisterFlowEncryptionKeyRequest
- type RejectCallRequest
- type ReorderBillingPrioritiesRequest
- type ReplaceChatLabelsRequest
- type ReplayEventRequest
- type ReplyChoice
- type ReportBanSafeIncidentRequest
- type RequestLog
- type RequestLogCredential
- type RequestLogCredentialType
- type RequestLogFilters
- type RequestLogMethod
- type RequestLogPage
- type RequestLogResult
- type RequestLogSource
- type RequestLogStatus
- type RequestLogs
- func (r *RequestLogs) Follow(ctx context.Context, p FollowRequestLogsParams, opts ...RequestOptions) (*RequestLogPage, error)
- func (r *RequestLogs) List(ctx context.Context, p ListRequestLogsParams, opts ...RequestOptions) (*RequestLogPage, error)
- func (r *RequestLogs) Tail(ctx context.Context, p TailRequestLogsParams, opts ...RequestOptions) iter.Seq2[RequestLog, error]
- type RequestOptions
- type RequeueCampaignRequest
- type RescheduleCampaignRequest
- type ReschedulePlatformCampaignRequest
- type ResolvedIdentity
- type ResourceBillingControls
- type Response
- type RetrieveCallRecordParams
- type RetrieveOperationParams
- type RotateWebhookSecretRequest
- type RuntimeConnectionStatusPayload
- type RuntimeTemplateStatusPayload
- type S3ArchiveOptions
- type S3ArchiveResult
- type S3MediaClient
- type S3MediaStore
- func (s *S3MediaStore) Archive(ctx context.Context, descriptor WhatsAppMediaDescriptor, ...) (S3ArchiveResult, error)
- func (s *S3MediaStore) GoString() string
- func (*S3MediaStore) String() string
- func (s *S3MediaStore) UploadToWhatsApp(ctx context.Context, options S3UploadToWhatsAppOptions) (WhatsAppMediaUploadResult, error)
- type S3MediaStoreOptions
- type S3UploadToWhatsAppOptions
- type SIPEndpoint
- type SIPEndpointRTP
- type SIPEndpointTransport
- type SIPInboundInput
- type SIPInboundPatch
- type SIPOutboundInput
- type SIPOutboundPatch
- type SIPTrunk
- type SIPTrunkCreated
- type SIPTrunkCredentials
- type SIPTrunkDeleted
- type SIPTrunkInbound
- type SIPTrunkOutbound
- type SIPTrunks
- func (r *SIPTrunks) Create(ctx context.Context, b CreateSIPTrunkRequest, o ...RequestOptions) (Response[SIPTrunkCreated], error)
- func (r *SIPTrunks) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[SIPTrunkDeleted], error)
- func (r *SIPTrunks) Endpoint(ctx context.Context, o ...RequestOptions) (Response[SIPEndpoint], error)
- func (r *SIPTrunks) List(ctx context.Context, o ...RequestOptions) (Response[[]SIPTrunk], error)
- func (r *SIPTrunks) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[SIPTrunk], error)
- func (r *SIPTrunks) RotateCredentials(ctx context.Context, id string, o ...RequestOptions) (Response[SIPTrunkCredentials], error)
- func (r *SIPTrunks) Update(ctx context.Context, id string, b UpdateSIPTrunkRequest, o ...RequestOptions) (Response[SIPTrunk], error)
- type SafeModeApplied
- type SafeModeOverride
- type SafeModeSettings
- type SavedAudienceSegmentPreview
- type SecurityIncident
- type SecurityIncidentAcknowledgement
- type SecurityIncidents
- type SeenRequest
- type SendMessageRequest
- type SendTestingPhoneMessageRequest
- type SendTestingPhoneMessageResult
- type SetBillingLimitRequest
- type SetBillingPriorityRequest
- type SetCampaignReplyFlowRequest
- type SetClientRulesRequest
- type SetFlowEndpointRequest
- type SetHybridPausedRequest
- type SetHybridRoutingPolicyRequest
- type SetPlatformCampaignReplyFlowRequest
- type SetResourceBillingControlsRequest
- type SignalConnection
- type SignalConnections
- type SignalCustodyDefault
- type SignalCustodyMode
- type SignalCustodyResource
- func (r *SignalCustodyResource) Retrieve(ctx context.Context, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
- func (r *SignalCustodyResource) RetrieveCustomer(ctx context.Context, customer string, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
- func (r *SignalCustodyResource) Update(ctx context.Context, b ProjectSignalCustodyUpdate, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
- func (r *SignalCustodyResource) UpdateCustomer(ctx context.Context, customer string, b CustomerSignalCustodyUpdate, ...) (Response[Envelope[SignalCustodyDefault]], error)
- type SignalEvent
- type SignalEventStream
- type SignalHistoryDescriptor
- type SignalMediaDescriptor
- type SignalSendOutcome
- type SignalSendRequest
- type SignalSidecarClient
- func (c *SignalSidecarClient) Acknowledge(ctx context.Context, eventID string) error
- func (c *SignalSidecarClient) Connections(ctx context.Context) (SignalConnections, error)
- func (v *SignalSidecarClient) GoString() string
- func (c *SignalSidecarClient) Health(ctx context.Context) error
- func (*SignalSidecarClient) MarshalJSON() ([]byte, error)
- func (c *SignalSidecarClient) OpenEvents(ctx context.Context, connectionID string) (*SignalEventStream, error)
- func (c *SignalSidecarClient) Send(ctx context.Context, connection string, body SignalSendRequest) (SignalSendOutcome, error)
- func (*SignalSidecarClient) String() string
- type SignalSidecarOptions
- type SignalWebhookOptions
- type SignalWebhookStore
- type StarRequest
- type StatusResponse
- type StatusResult
- type StickerContent
- type StopConfirmationCounts
- type StopConfirmationLocale
- type StopConfirmationSettings
- type StopConfirmationSummary
- type SubmitPasskeyAssertionRequest
- type SubmitProjectTemplateRequest
- type Success
- type SynthesizeVoiceAudioRequest
- type SystemClient
- func (c *SystemClient) Health(ctx context.Context, o ...RequestOptions) (Response[HealthResponse], error)
- func (c *SystemClient) Ping(ctx context.Context, o ...RequestOptions) (Response[PingResponse], error)
- func (c *SystemClient) Status(ctx context.Context, o ...RequestOptions) (Response[StatusResponse], error)
- func (c *SystemClient) Version(ctx context.Context, o ...RequestOptions) (Response[VersionResponse], error)
- type TailRequestLogsParams
- type Team
- type TeamClient
- func (c *TeamClient) APIKeys() *APIKeys
- func (c *TeamClient) Analytics() *Analytics
- func (c *TeamClient) AudienceProfiles() *AudienceProfiles
- func (c *TeamClient) AudienceSegments() *AudienceSegments
- func (c *TeamClient) Audiences() *Audiences
- func (c *TeamClient) AuditLogs() *AuditLogs
- func (c *TeamClient) BanSafe() *BanSafe
- func (c *TeamClient) Billing() *Billing
- func (c *TeamClient) CallOptOuts() *CallOptOuts
- func (c *TeamClient) CallPolicy() *CallPolicyResource
- func (c *TeamClient) CallRetention() *CallRetentionResource
- func (c *TeamClient) Calls() *PlatformCalls
- func (c *TeamClient) Campaigns() *Campaigns
- func (c *TeamClient) ConnectionBans() *ConnectionBans
- func (c *TeamClient) ConnectionConfiguration() *ConnectionConfigurationResource
- func (c *TeamClient) Connections() *PlatformConnections
- func (c *TeamClient) Customers() *Customers
- func (c *TeamClient) Events() *Events
- func (c *TeamClient) Media() *PlatformMedia
- func (c *TeamClient) Members() *Members
- func (c *TeamClient) Operations() *Operations
- func (c *TeamClient) OptOuts() *OptOuts
- func (c *TeamClient) Project(id string) (*ProjectClient, error)
- func (c *TeamClient) ProjectTokens() *ProjectTokens
- func (c *TeamClient) Projects() *Projects
- func (c *TeamClient) QuickLinkSettings() *QuickLinkSettingsResource
- func (c *TeamClient) Raw(ctx context.Context, r RawRequest) (RawResponse, error)
- func (c *TeamClient) RequestLogs() *RequestLogs
- func (c *TeamClient) SIPTrunks() *TeamSIPTrunks
- func (c *TeamClient) SecurityIncidents() *SecurityIncidents
- func (c *TeamClient) Teams() *Teams
- func (c *TeamClient) Usage() *Usage
- func (c *TeamClient) Voice() *TeamVoice
- func (c *TeamClient) WebhookDeliveries() *WebhookDeliveries
- func (c *TeamClient) Webhooks() *Webhooks
- type TeamMember
- type TeamSIPTrunks
- type TeamVoice
- type Teams
- type TemplateAuthentication
- type TemplateButton
- type TemplateCarousel
- type TemplateCarouselCard
- type TemplateContent
- type TemplateDefinition
- type TemplateHeader
- type TemplateHeaderExample
- type TemplateLimitedTimeOffer
- type TemplateLocationExample
- type TemplateVariable
- type Templates
- func (r *Templates) Create(ctx context.Context, project string, b CreateProjectTemplateRequest, ...) (Response[Envelope[ProjectTemplate]], error)
- func (r *Templates) Delete(ctx context.Context, project, id string, o ...RequestOptions) (Response[Success], error)
- func (r *Templates) List(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[[]ProjectTemplate]], error)
- func (r *Templates) Preview(ctx context.Context, project, id string, b PreviewProjectTemplateRequest, ...) (Response[Envelope[PlatformPayload]], error)
- func (r *Templates) Retrieve(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[ProjectTemplate]], error)
- func (r *Templates) Submit(ctx context.Context, project, id string, b SubmitProjectTemplateRequest, ...) (Response[Envelope[PlatformPayload]], error)
- func (r *Templates) Update(ctx context.Context, project, id string, b UpdateProjectTemplateRequest, ...) (Response[Envelope[ProjectTemplate]], error)
- type TestEventFixtureInfo
- type TestEventOverrides
- type TestWebhookRequest
- type Testing
- func (r *Testing) CreateHistoryFixture(ctx context.Context, project string, messages []TestingHistoryMessage, ...) (..., error)
- func (r *Testing) GetPhone(ctx context.Context, connection string, o ...RequestOptions) (Response[TestingPhone], error)
- func (r *Testing) ListEventFixtures(ctx context.Context, o ...RequestOptions) (..., error)
- func (r *Testing) SendPhoneMessage(ctx context.Context, connection string, b SendTestingPhoneMessageRequest, ...) (Response[SendTestingPhoneMessageResult], error)
- func (r *Testing) TriggerEvent(ctx context.Context, connection string, b TriggerTestEventRequest, ...) (Response[TriggerTestEventResult], error)
- func (r *Testing) UnlinkPhoneDevice(ctx context.Context, connection string, id int, o ...RequestOptions) (Response[UnlinkTestingPhoneDeviceResult], error)
- type TestingConfiguration
- type TestingHistoryMessage
- type TestingPhone
- type TierPricing
- type TransferCustomerConnectionRequest
- type TrickleCandidate
- type TriggerTestEventRequest
- type TriggerTestEventResult
- type TypingRequest
- type UnlinkTestingPhoneDeviceResult
- type UpdateAudienceSegmentRequest
- type UpdateCallPolicyRequest
- type UpdateCallRetentionRequest
- type UpdateCallSettingsRequest
- type UpdateCampaignFrequencyCapInput
- type UpdateCampaignRequest
- type UpdateConnectionRequest
- type UpdateConnectionSafeModeRequest
- type UpdateCustomerRequest
- type UpdateFlowRequest
- type UpdateFunctionRequest
- type UpdateLabelRequest
- type UpdateMessagingWebhookRequest
- type UpdateOfficialGroupRequest
- type UpdateOptOutSettingsRequest
- type UpdatePlatformCampaignRequest
- type UpdateProjectHealthPolicyRequest
- type UpdateProjectInsuranceEvidenceRequest
- type UpdateProjectSafeModeRequest
- type UpdateProjectTemplateRequest
- type UpdateProjectWarmupPlanRequest
- type UpdateQuickLinkSettingsRequest
- type UpdateSIPTrunkRequest
- type UpdateStopConfirmationSettingsRequest
- type UpdateVoiceAudioRequest
- type UpdateWebhookRequest
- type UploadMediaType
- type UploadVoiceAudioRequest
- type UploadWhatsAppMediaOptions
- type Usage
- func (r *Usage) IterateRecords(ctx context.Context, p UsageRecordParams, o ...RequestOptions) iter.Seq2[UsageRecord, error]
- func (r *Usage) ListGates(ctx context.Context, p UsageGateParams, o ...RequestOptions) (Response[UsageGateList], error)
- func (r *Usage) ListRecords(ctx context.Context, p UsageRecordParams, o ...RequestOptions) (Response[UsageRecordPage], error)
- func (r *Usage) Summary(ctx context.Context, p UsageSummaryParams, o ...RequestOptions) (Response[UsageSummary], error)
- type UsageConnectionTotal
- type UsageDimension
- type UsageGate
- type UsageGateDecisions
- type UsageGateList
- type UsageGateParams
- type UsageMeterTotal
- type UsageRateCard
- type UsageRecord
- type UsageRecordPage
- type UsageRecordParams
- type UsageRecordedPayload
- type UsageSummary
- type UsageSummaryParams
- type UserSecurityCode
- type Users
- type VerifiedWebhookDelivery
- type VerifyFlowForwardOptions
- type VerifyLocalWebhookOptions
- type VersionResponse
- type VideoFrame
- type VoIP
- func (r *VoIP) Accept(ctx context.Context, id string, b AcceptCallRequest, o ...RequestOptions) (Response[Envelope[AcceptedCall]], error)
- func (r *VoIP) AddParticipant(ctx context.Context, id string, b AddCallParticipantRequest, ...) (Response[Envelope[CallParticipant]], error)
- func (r *VoIP) Check(ctx context.Context, b CheckCallRequest, o ...RequestOptions) (Response[Envelope[CallCheck]], error)
- func (r *VoIP) CreateCallLink(ctx context.Context, b CreateCallLinkRequest, opts ...RequestOptions) (Response[Envelope[CreatedCallLink]], error)
- func (r *VoIP) End(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
- func (r *VoIP) Leave(ctx context.Context, id string, b LeaveCallRequest, o ...RequestOptions) (Response[Success], error)
- func (r *VoIP) ModerateWaitingRoom(ctx context.Context, id string, b WaitingRoomControlRequest, ...) (Response[Envelope[WaitingRoomControlResult]], error)
- func (r *VoIP) Place(ctx context.Context, b PlaceCallRequest, o ...RequestOptions) (Response[Envelope[PlacedCall]], error)
- func (r *VoIP) PreviewCallLink(ctx context.Context, b PreviewCallLinkRequest, opts ...RequestOptions) (Response[Envelope[PreviewedCallLink]], error)
- func (r *VoIP) Reject(ctx context.Context, id string, b RejectCallRequest, o ...RequestOptions) (Response[Success], error)
- func (r *VoIP) Report(ctx context.Context, id string, b CallReportRequest, o ...RequestOptions) (Response[Success], error)
- func (r *VoIP) RetrieveCallPermission(ctx context.Context, s, to string, o ...RequestOptions) (Response[Envelope[CallPermission]], error)
- func (r *VoIP) RetrieveCallSettings(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionCallSettings]], error)
- func (r *VoIP) RingParticipant(ctx context.Context, id string, b AddCallParticipantRequest, ...) (Response[Success], error)
- func (r *VoIP) SendReaction(ctx context.Context, id string, b CallReactionRequest, o ...RequestOptions) (Response[Success], error)
- func (r *VoIP) SetHandRaised(ctx context.Context, id string, b HandRaisedRequest, o ...RequestOptions) (Response[Success], error)
- func (r *VoIP) UpdateCallSettings(ctx context.Context, s string, b UpdateCallSettingsRequest, ...) (Response[Envelope[ConnectionCallSettings]], error)
- type VoiceAssetEventPayload
- type VoiceAssetFailedPayload
- type VoiceAssetReadyPayload
- type VoiceAudio
- func (r *VoiceAudio) Complete(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceAudioAsset], error)
- func (r *VoiceAudio) CreateUpload(ctx context.Context, b CreateVoiceAudioUploadRequest, o ...RequestOptions) (Response[VoiceAudioUploadCreated], error)
- func (r *VoiceAudio) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceResourceDeleted], error)
- func (r *VoiceAudio) List(ctx context.Context, p ListVoiceAudioParams, o ...RequestOptions) (*CursorPage[VoiceAudioAsset], error)
- func (r *VoiceAudio) PreviewURL(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceAudioPreview], error)
- func (r *VoiceAudio) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceAudioAsset], error)
- func (r *VoiceAudio) Synthesize(ctx context.Context, b SynthesizeVoiceAudioRequest, o ...RequestOptions) (Response[VoiceAudioAsset], error)
- func (r *VoiceAudio) Update(ctx context.Context, id string, b UpdateVoiceAudioRequest, o ...RequestOptions) (Response[VoiceAudioAsset], error)
- func (r *VoiceAudio) Upload(ctx context.Context, b UploadVoiceAudioRequest, opts ...RequestOptions) (Response[VoiceAudioAsset], error)
- func (r *VoiceAudio) WaitUntilReady(ctx context.Context, id string, p WaitForVoiceAudioOptions, ...) (Response[VoiceAudioAsset], error)
- type VoiceAudioAsset
- type VoiceAudioPreview
- type VoiceAudioTTS
- type VoiceAudioUpload
- type VoiceAudioUploadCreated
- type VoiceProviderCredential
- type VoiceProviderCredentials
- func (r *VoiceProviderCredentials) Create(ctx context.Context, b CreateVoiceProviderCredentialRequest, ...) (Response[VoiceProviderCredential], error)
- func (r *VoiceProviderCredentials) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceResourceDeleted], error)
- func (r *VoiceProviderCredentials) List(ctx context.Context, o ...RequestOptions) (Response[[]VoiceProviderCredential], error)
- func (r *VoiceProviderCredentials) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceProviderCredential], error)
- func (r *VoiceProviderCredentials) Verify(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceProviderCredential], error)
- type VoiceResourceDeleted
- type WaitForVoiceAudioOptions
- type WaitingRoomControl
- type WaitingRoomControlRequest
- type WaitingRoomControlResult
- type WarmupCurvePoint
- type WarmupPlanSettings
- type WebhookBatching
- type WebhookBatchingInput
- type WebhookBlocklistChange
- type WebhookCallCapabilities
- type WebhookCallConnection
- type WebhookCallParticipant
- type WebhookConversation
- type WebhookCreationReceipt
- type WebhookDeletionReceipt
- type WebhookDeliveries
- func (r *WebhookDeliveries) List(ctx context.Context, p ListWebhookDeliveriesParams, o ...RequestOptions) (*CursorPage[WebhookDelivery], error)
- func (r *WebhookDeliveries) ListAttempts(ctx context.Context, id string, p ListParams, o ...RequestOptions) (*CursorPage[WebhookDeliveryAttempt], error)
- func (r *WebhookDeliveries) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[WebhookDelivery], error)
- func (r *WebhookDeliveries) RetrieveAttempt(ctx context.Context, id, attempt string, o ...RequestOptions) (Response[WebhookDeliveryAttempt], error)
- func (r *WebhookDeliveries) Retry(ctx context.Context, id string, o ...RequestOptions) (Response[WebhookDeliveryRetryReceipt], error)
- type WebhookDelivery
- type WebhookDeliveryAttempt
- type WebhookDeliveryRetryReceipt
- type WebhookEncodedHistory
- type WebhookEvent
- type WebhookEventBatch
- type WebhookFailedGroupParticipant
- type WebhookFixture
- type WebhookGroupJoinRequest
- type WebhookHeader
- type WebhookHeaderInput
- type WebhookHeaderMetadata
- type WebhookHistoryMessage
- type WebhookIdentity
- type WebhookMessageReference
- type WebhookMutationReceipt
- type WebhookPaymentAmount
- type WebhookPaymentTransaction
- type WebhookPollOption
- type WebhookRetryConfig
- type WebhookRetryPolicy
- type WebhookRotationReceipt
- type WebhookSecretMetadata
- type Webhooks
- func (r *Webhooks) Create(ctx context.Context, b CreateWebhookRequest, o ...RequestOptions) (Response[WebhookCreationReceipt], error)
- func (r *Webhooks) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[WebhookDeletionReceipt], error)
- func (r *Webhooks) List(ctx context.Context, p ListWebhooksParams, o ...RequestOptions) (*CursorPage[PlatformWebhook], error)
- func (r *Webhooks) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[PlatformWebhook], error)
- func (r *Webhooks) RotateSecret(ctx context.Context, id string, b RotateWebhookSecretRequest, ...) (Response[WebhookRotationReceipt], error)
- func (r *Webhooks) Test(ctx context.Context, id string, b TestWebhookRequest, o ...RequestOptions) (Response[EventReplayReceipt], error)
- func (r *Webhooks) Update(ctx context.Context, id string, b UpdateWebhookRequest, o ...RequestOptions) (Response[WebhookMutationReceipt], error)
- type WhatsAppAccount
- type WhatsAppAccountActivity
- type WhatsAppAnalytics
- type WhatsAppAnalyticsConnection
- type WhatsAppAnalyticsSummary
- type WhatsAppBusinessSegment
- type WhatsAppCallSeriesPoint
- type WhatsAppConversationBreakdown
- type WhatsAppConversationBucket
- type WhatsAppConversationGroup
- type WhatsAppCustomerActivity
- type WhatsAppDevice
- type WhatsAppDeviceAnalytics
- type WhatsAppDeviceInventory
- type WhatsAppDevicePlatform
- type WhatsAppEncryptedUploadBody
- func (b *WhatsAppEncryptedUploadBody) EncryptedLength() int64
- func (b *WhatsAppEncryptedUploadBody) FileEncSHA256() []byte
- func (b *WhatsAppEncryptedUploadBody) GoString() string
- func (b *WhatsAppEncryptedUploadBody) MarshalJSON() ([]byte, error)
- func (b *WhatsAppEncryptedUploadBody) MediaType() UploadMediaType
- func (b *WhatsAppEncryptedUploadBody) Open(ctx context.Context, offset int64) (io.ReadCloser, error)
- func (*WhatsAppEncryptedUploadBody) String() string
- type WhatsAppEngagement
- type WhatsAppMediaDescriptor
- type WhatsAppMediaDownload
- type WhatsAppMediaDownloadOptions
- type WhatsAppMediaKeys
- type WhatsAppMediaResource
- func (r *WhatsAppMediaResource) CreateUploadGrant(ctx context.Context, connection string, kind UploadMediaType, ...) (WhatsAppUploadGrant, error)
- func (r *WhatsAppMediaResource) RelayUpload(ctx context.Context, connection string, info EncryptedMediaInfo, ...) (WhatsAppUploadLocation, error)
- func (r *WhatsAppMediaResource) Upload(ctx context.Context, connection string, source WhatsAppMediaSource, ...) (WhatsAppMediaUploadResult, error)
- func (r *WhatsAppMediaResource) UploadBytes(ctx context.Context, connection string, plaintext []byte, ...) (WhatsAppMediaUploadResult, error)
- func (r *WhatsAppMediaResource) UploadTransport(mode string, options UploadWhatsAppMediaOptions) (WhatsAppMediaUploadTransport, error)
- type WhatsAppMediaSendDescriptor
- type WhatsAppMediaSendMetadata
- type WhatsAppMediaSource
- type WhatsAppMediaStream
- type WhatsAppMediaUploadResult
- type WhatsAppMediaUploadTransport
- type WhatsAppMediaVerifyMode
- type WhatsAppMessageAnalysis
- type WhatsAppMessageIDs
- type WhatsAppMetrics
- type WhatsAppRecipientActivity
- type WhatsAppRecipientActivityRow
- type WhatsAppResponseQueue
- type WhatsAppSeriesPoint
- type WhatsAppUploadGrant
- type WhatsAppUploadLocation
Constants ¶
const ( ConfigurationPlatform ConfigurationSource = "platform" ConfigurationTeam ConfigurationSource = "team" ConfigurationProject ConfigurationSource = "project" ConfigurationConnection ConfigurationSource = "connection" ConfigurationConsent ConfigurationValueSource = "consent" )
const ( ConnectionResetHistorySync = "historySync" ConnectionResetHistoryMode = "historySync.mode" ConnectionResetHistoryRequestFull = "historySync.requestFull" ConnectionResetHistoryDelivery = "historySync.delivery" ConnectionResetHMS = "hms" ConnectionResetObservation = "observation" ConnectionResetPresence = "observation.presenceMode" ConnectionResetTyping = "observation.typingMode" ConnectionResetLabel = "observation.labelMode" ConnectionResetQuickReply = "observation.quickReplyMode" )
These reset paths keep existing []string callers source-compatible.
const ( ErrorCampaignApprovalRequired = "campaign_approval_required" ErrorCampaignApprovalStale = "campaign_approval_stale" ErrorCampaignVariablesMissing = "campaign_variables_missing" ErrorZeroKnowledgeConnection = "zero_knowledge_connection" )
const ( ReadinessCredentialsInvalid = "meta_credentials_invalid" ReadinessPhoneNotRegistered = "meta_phone_not_registered" ReadinessWebhookNotSubscribed = "meta_webhook_not_subscribed" ReadinessPaymentMethodMissing = "meta_payment_method_missing" ReadinessQualityFlagged = "meta_quality_flagged" ReadinessUnknown = "meta_readiness_unknown" )
QuickLink error codes remain open strings, including future readiness failures.
const ( RequestLogAPI RequestLogSource = "api" RequestLogMCP RequestLogSource = "mcp" RequestLogTeamKey RequestLogCredentialType = "team_key" RequestLogProjectToken RequestLogCredentialType = "project_token" RequestLogClientToken RequestLogCredentialType = "client_token" RequestLogGET RequestLogMethod = "GET" RequestLogPOST RequestLogMethod = "POST" RequestLogPUT RequestLogMethod = "PUT" RequestLogPATCH RequestLogMethod = "PATCH" RequestLogDELETE RequestLogMethod = "DELETE" RequestLog1xx RequestLogStatus = "1xx" RequestLog2xx RequestLogStatus = "2xx" RequestLog3xx RequestLogStatus = "3xx" RequestLog4xx RequestLogStatus = "4xx" RequestLog5xx RequestLogStatus = "5xx" )
const APIVersion = "2026-09-22"
const CallsDefaultSampleRate = 16000
const CallsMediaSubprotocol = "pmfa.calls.v2"
const CustomerOwnedAPIVersion = "2026-10-14"
const DefaultHistorySyncMaxInflatedBytes int64 = 512 * 1024 * 1024
const DefaultWhatsAppMediaMaxBytes int64 = 256 * 1024 * 1024
const FlowForwardSignatureHeader = "X-Polymorfa-Flow-Signature"
const SignalSidecarSourceCommit = "61209057729b002a2122b898d744a8813a702fc7"
const Version = "0.1.0-preview.20261124042948"
const VoiceAudioMaxUploadBytes int64 = 16777216
Variables ¶
var PasskeyConfirmationStatuses = []string{"none", "challenge_pending", "assertion_sending", "assertion_submitted", "code_available", "confirmation_sending", "waiting_for_pairing", "completed", "failed"}
Functions ¶
func CreateConnectionID ¶
func DecodeWebhookPayload ¶
func DecodeWebhookPayload[T any](e WebhookEvent) (T, error)
DecodeWebhookPayload decodes a verified event into an application-selected payload type. Unknown events remain accessible through Event.Payload.
func DecryptWhatsAppMedia ¶
func DecryptWhatsAppMedia(data []byte, keys WhatsAppMediaKeys, d WhatsAppMediaDescriptor, maxBytes int64) ([]byte, error)
DecryptWhatsAppMedia verifies encrypted hash, MAC, CBC padding and plaintext hash before returning any bytes. Media keys and content never enter errors.
func DecryptWhatsAppMediaStream ¶
func DecryptWhatsAppMediaStream(ctx context.Context, source io.Reader, keys WhatsAppMediaKeys, d WhatsAppMediaDescriptor, maxBytes int64, mode WhatsAppMediaVerifyMode) (io.ReadCloser, error)
DecryptWhatsAppMediaStream consumes and closes source. Before-release buffers verified plaintext; streaming releases plaintext before final integrity checks and reports any failure on the reader. Always check the final read.
func EncodeAudioFrame ¶
func EncodeVideoFrame ¶
func EncodeVideoFrame(v VideoFrame) []byte
func GraphTransportHeaders ¶
func GraphTransportHeaders(transport MessageTransport) http.Header
func IsKnownErrorCode ¶
IsKnownErrorCode reports whether code is in the pinned API catalog.
func IsWhatsAppMediaURL ¶
func KnownErrorCodes ¶
func KnownErrorCodes() []string
KnownErrorCodes returns an independent copy of the stable API error catalog. Error.Code continues to preserve arbitrary new codes returned by the API.
func ParseContentDispositionFilename ¶
ParseContentDispositionFilename returns a sanitized display name, never a path. The first filename* parameter takes precedence when its encoding is valid.
func RequestLogRetryAfter ¶
RequestLogRetryAfter returns a bounded delay; absent or invalid values use one minute.
func SignedURLExpiry ¶
func VerifyFlowForwardSignature ¶
func VerifyFlowForwardSignature(raw []byte, signature, secret string, o VerifyFlowForwardOptions) bool
func VerifyWebhookSignature ¶
func WebhookHandler ¶
func WebhookHandler(secret string, maxBodyBytes int64, handle func(*http.Request, WebhookEvent) error) http.Handler
WebhookHandler is a net/http adapter. It reads and verifies the exact request bytes before invoking the callback. Frameworks can mount it as a handler. Native HMAC signatures have no timestamp/replay claim: deduplicate event IDs in the application's durable store before applying effects.
func WriteMediaToFile ¶
func WriteMediaToFile(ctx context.Context, source io.ReadCloser, path string, overwrite bool) (int64, error)
WriteMediaToFile writes a private sibling file and installs it only after the source completes without error. The default refuses an existing destination.
Types ¶
type APIKeyDeactivation ¶
type APIKeyRecord ¶
type APIKeyRecord struct {
ID string `json:"id"`
StorageID string `json:"_id"`
CreationTime float64 `json:"_creationTime"`
KeyID string `json:"keyId"`
Start string `json:"start"`
Last4 string `json:"last4"`
TeamID string `json:"teamId"`
Label string `json:"label"`
Scopes int64 `json:"scopes"`
Source string `json:"source"`
ExpiresAt *int64 `json:"expiresAt"`
LastUsed *int64 `json:"lastUsed,omitempty"`
IsActive bool `json:"isActive"`
}
type APIKeys ¶
type APIKeys struct {
// contains filtered or unexported fields
}
func (*APIKeys) Deactivate ¶
func (r *APIKeys) Deactivate(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[APIKeyDeactivation]], error)
func (*APIKeys) List ¶
func (r *APIKeys) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]APIKeyRecord]], error)
type APIMediaFileResult ¶
type AcceptCallRequest ¶
type AcceptedCall ¶
type AddAudienceMembersRequest ¶
type AddAudienceMembersRequest struct {
Members []CampaignRecipientInput `json:"members"`
}
type AddCallParticipantRequest ¶
type AddCallParticipantRequest struct {
To string `json:"to"`
}
type AddCampaignRecipientsRequest ¶
type AddCampaignRecipientsRequest struct {
Recipients []CampaignRecipientInput `json:"recipients"`
}
type AddPlatformCampaignRecipientsRequest ¶
type AddPlatformCampaignRecipientsRequest struct {
ProjectID string `json:"projectId"`
Recipients []CampaignRecipientInput `json:"recipients"`
}
type AddressContent ¶
type Analytics ¶
type Analytics struct {
// contains filtered or unexported fields
}
func (*Analytics) Get ¶
func (r *Analytics) Get(ctx context.Context, p AnalyticsParams, o ...RequestOptions) (Response[WhatsAppAnalytics], error)
func (*Analytics) Metrics ¶
func (r *Analytics) Metrics(ctx context.Context, p AnalyticsMetricsParams, o ...RequestOptions) (Response[string], error)
type AnalyticsMetricsParams ¶
type AnalyticsParams ¶
type AnalyticsPeriod ¶
type AnalyticsRequestVitals ¶
type AnalyticsSettings ¶
type AnalyticsSettings struct {
Enabled bool `json:"enabled"`
}
type AsyncAccepted ¶
type AsyncAccepted struct {
RequestID string `json:"requestId"`
}
type AsyncResult ¶
type AsyncResult[T any] struct { Value *T Accepted *AsyncAccepted }
AsyncResult narrows runner admission from the completed resource result. RequestID means accepted asynchronously; Value means a completed response.
func (AsyncResult[T]) MarshalJSON ¶
func (r AsyncResult[T]) MarshalJSON() ([]byte, error)
func (*AsyncResult[T]) UnmarshalJSON ¶
func (r *AsyncResult[T]) UnmarshalJSON(b []byte) error
type Audience ¶
type Audience struct {
ID string `json:"id"`
Name string `json:"name"`
Source string `json:"source"`
RecipientCount int `json:"recipientCount"`
FileID *string `json:"fileId"`
Columns *[]string `json:"columns"`
SampleRow map[string]string `json:"sampleRow"`
Mapping map[string]json.RawMessage `json:"mapping"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type AudienceConsentAssertion ¶
type AudienceConsentAssertion struct {
AudienceProfileConsentInput
ID string `json:"id"`
ProfileRevision int64 `json:"profileRevision"`
CreatedAt int64 `json:"createdAt"`
}
type AudienceFromCampaignResult ¶
type AudienceFromCampaignResult struct {
ID string `json:"id"`
Name string `json:"name"`
Source string `json:"source"`
RecipientCount int64 `json:"recipientCount"`
FileID *string `json:"fileId"`
Columns *[]string `json:"columns"`
SampleRow *map[string]string `json:"sampleRow"`
Mapping *map[string]json.RawMessage `json:"mapping"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
SourceCampaignID string `json:"sourceCampaignId"`
Outcome CampaignRetargetOutcome `json:"outcome"`
MatchedCount int64 `json:"matchedCount"`
OptedOutCount int64 `json:"optedOutCount"`
}
type AudienceImportMapping ¶
type AudienceImportResult ¶
type AudienceImportResult struct {
Audience
DuplicateCount int `json:"duplicateCount"`
InvalidCount int `json:"invalidCount"`
InvalidRows []InvalidRecipientRow `json:"invalidRows"`
}
type AudienceMember ¶
type AudienceProfile ¶
type AudienceProfile struct {
ID string `json:"id"`
Phone string `json:"phone"`
Revision int64 `json:"revision"`
Tags []string `json:"tags"`
Attributes map[string]AudienceProfileAttribute `json:"attributes"`
Provenance *AudienceProfileProvenance `json:"provenance"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type AudienceProfileAttribute ¶
type AudienceProfileAttribute struct{ Value *CampaignVariable }
AudienceProfileAttribute is one JSON scalar or null. A zero value is null. Non-null values use exactly one CampaignVariable scalar variant.
func (AudienceProfileAttribute) MarshalJSON ¶
func (v AudienceProfileAttribute) MarshalJSON() ([]byte, error)
func (*AudienceProfileAttribute) UnmarshalJSON ¶
func (v *AudienceProfileAttribute) UnmarshalJSON(data []byte) error
type AudienceProfileConsentInput ¶
type AudienceProfileConsentInput struct {
AudienceProfileProvenance
Purpose string `json:"purpose"`
Allowed bool `json:"allowed"`
AssertedAt int64 `json:"assertedAt"`
}
type AudienceProfileImportJob ¶
type AudienceProfileImportJob struct {
ID string `json:"id"`
State string `json:"state"`
TotalValid int64 `json:"totalValid"`
InvalidCount int64 `json:"invalidCount"`
InvalidSamples []AudienceProfileImportInvalidSample `json:"invalidSamples"`
ConflictSamples []AudienceProfileImportConflictSample `json:"conflictSamples"`
ProcessedValid int64 `json:"processedValid"`
CreatedCount int64 `json:"createdCount"`
UpdatedCount int64 `json:"updatedCount"`
ConflictCount int64 `json:"conflictCount"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
CompletedAt *int64 `json:"completedAt"`
}
type AudienceProfileImportMapping ¶
type AudienceProfileImportMapping struct {
Phone string `json:"phone"`
Tags string `json:"tags"`
Attributes string `json:"attributes"`
ExpectedRevision *string `json:"expectedRevision,omitempty"`
ProvenanceReference *string `json:"provenanceReference,omitempty"`
ConsentAllowed *string `json:"consentAllowed,omitempty"`
ConsentAssertedAt *string `json:"consentAssertedAt,omitempty"`
ConsentReference *string `json:"consentReference,omitempty"`
}
type AudienceProfileImports ¶
type AudienceProfileImports struct {
// contains filtered or unexported fields
}
func (*AudienceProfileImports) Cancel ¶
func (r *AudienceProfileImports) Cancel(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[AudienceProfileImportJob]], error)
Cancel cancels the durable import. Cancelling an HTTP waiter does not cancel it.
func (*AudienceProfileImports) Create ¶
func (r *AudienceProfileImports) Create(ctx context.Context, b CreateAudienceProfileImportRequest, o ...RequestOptions) (Response[Envelope[AudienceProfileImportJob]], error)
func (*AudienceProfileImports) Retrieve ¶
func (r *AudienceProfileImports) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[AudienceProfileImportJob]], error)
type AudienceProfileProvenance ¶
type AudienceProfileProvenance struct {
Source AudienceProfileSource `json:"source"`
Reference string `json:"reference"`
}
type AudienceProfileSource ¶
type AudienceProfileSource string
const ( AudienceProfileAPI AudienceProfileSource = "api" AudienceProfileCSV AudienceProfileSource = "csv" AudienceProfileForm AudienceProfileSource = "form" )
type AudienceProfiles ¶
type AudienceProfiles struct {
// contains filtered or unexported fields
}
AudienceProfiles stores customer-supplied campaign profiles, not synced contacts.
func (*AudienceProfiles) Delete ¶
func (r *AudienceProfiles) Delete(ctx context.Context, phone string, revision int64, o ...RequestOptions) (Response[Envelope[DeleteAudienceProfileResult]], error)
func (*AudienceProfiles) Imports ¶
func (r *AudienceProfiles) Imports() *AudienceProfileImports
func (*AudienceProfiles) List ¶
func (r *AudienceProfiles) List(ctx context.Context, p ListAudienceProfilesParams, o ...RequestOptions) (Response[CursorEnvelope[AudienceProfile]], error)
func (*AudienceProfiles) ListConsent ¶
func (r *AudienceProfiles) ListConsent(ctx context.Context, phone string, p ListAudienceProfilesParams, o ...RequestOptions) (Response[CursorEnvelope[AudienceConsentAssertion]], error)
func (*AudienceProfiles) Put ¶
func (r *AudienceProfiles) Put(ctx context.Context, phone string, b PutAudienceProfileRequest, o ...RequestOptions) (Response[Envelope[AudienceProfile]], error)
func (*AudienceProfiles) Retrieve ¶
func (r *AudienceProfiles) Retrieve(ctx context.Context, phone string, o ...RequestOptions) (Response[Envelope[AudienceProfile]], error)
type AudienceSegment ¶
type AudienceSegmentAttributeCompare ¶
type AudienceSegmentAttributeCompare struct {
Name string
Operator AudienceSegmentOperator
Value float64
}
AudienceSegmentAttributeCompare uses greater_than or less_than.
func (AudienceSegmentAttributeCompare) MarshalJSON ¶
func (v AudienceSegmentAttributeCompare) MarshalJSON() ([]byte, error)
type AudienceSegmentAttributeEquals ¶
AudienceSegmentAttributeEquals matches a string, number or boolean of the same type.
func (AudienceSegmentAttributeEquals) MarshalJSON ¶
func (v AudienceSegmentAttributeEquals) MarshalJSON() ([]byte, error)
type AudienceSegmentAttributeExists ¶
type AudienceSegmentAttributeExists struct{ Name string }
func (AudienceSegmentAttributeExists) MarshalJSON ¶
func (v AudienceSegmentAttributeExists) MarshalJSON() ([]byte, error)
type AudienceSegmentAttributeIn ¶
AudienceSegmentAttributeIn matches any of up to 50 strings or numbers.
func (AudienceSegmentAttributeIn) MarshalJSON ¶
func (v AudienceSegmentAttributeIn) MarshalJSON() ([]byte, error)
type AudienceSegmentAttributeText ¶
type AudienceSegmentAttributeText struct {
Name string
Operator AudienceSegmentOperator
Value string
}
AudienceSegmentAttributeText uses contains, before or after with a string value.
func (AudienceSegmentAttributeText) MarshalJSON ¶
func (v AudienceSegmentAttributeText) MarshalJSON() ([]byte, error)
type AudienceSegmentCampaignOutcome ¶
AudienceSegmentCampaignOutcome outcome is delivered, not_delivered, read, not_read, replied, not_replied or failed.
func (AudienceSegmentCampaignOutcome) MarshalJSON ¶
func (v AudienceSegmentCampaignOutcome) MarshalJSON() ([]byte, error)
type AudienceSegmentCondition ¶
type AudienceSegmentCondition interface {
// contains filtered or unexported methods
}
AudienceSegmentCondition is one rule condition. Missing, null or wrong-type attributes do not match. Unknown server conditions decode as AudienceSegmentUnknownCondition so reads stay forward compatible.
type AudienceSegmentConsentEquals ¶
type AudienceSegmentConsentEquals struct{ Value bool }
func (AudienceSegmentConsentEquals) MarshalJSON ¶
func (v AudienceSegmentConsentEquals) MarshalJSON() ([]byte, error)
type AudienceSegmentDeletion ¶
type AudienceSegmentGroup ¶
type AudienceSegmentGroup struct {
Match AudienceSegmentMatch `json:"match"`
Negate *bool `json:"negate,omitempty"`
Conditions []AudienceSegmentCondition `json:"conditions"`
}
AudienceSegmentGroup combines up to 20 conditions. Negate inverts the result.
func (*AudienceSegmentGroup) UnmarshalJSON ¶
func (g *AudienceSegmentGroup) UnmarshalJSON(b []byte) error
type AudienceSegmentMatch ¶
type AudienceSegmentMatch string
const ( AudienceSegmentMatchAll AudienceSegmentMatch = "all" AudienceSegmentMatchAny AudienceSegmentMatch = "any" )
type AudienceSegmentOperator ¶
type AudienceSegmentOperator string
const ( AudienceSegmentContains AudienceSegmentOperator = "contains" AudienceSegmentBefore AudienceSegmentOperator = "before" AudienceSegmentAfter AudienceSegmentOperator = "after" AudienceSegmentGreaterThan AudienceSegmentOperator = "greater_than" AudienceSegmentLessThan AudienceSegmentOperator = "less_than" )
type AudienceSegmentPreview ¶
type AudienceSegmentPreview struct {
MatchedCount int `json:"matchedCount"`
OptedOutCount int `json:"optedOutCount"`
ConsentWithheldCount int `json:"consentWithheldCount"`
EligibleCount int `json:"eligibleCount"`
Sample []AudienceSegmentSample `json:"sample"`
EvaluatedAt int64 `json:"evaluatedAt"`
}
type AudienceSegmentRules ¶
type AudienceSegmentRules struct {
Match AudienceSegmentMatch `json:"match"`
Groups []AudienceSegmentGroup `json:"groups"`
}
AudienceSegmentRules allows at most 10 groups, 20 conditions per group, 40 conditions, 5 campaign conditions, 50 values per in condition and 16 KiB. The API enforces these limits.
type AudienceSegmentSample ¶
type AudienceSegmentTagContains ¶
type AudienceSegmentTagContains struct{ Value string }
func (AudienceSegmentTagContains) MarshalJSON ¶
func (v AudienceSegmentTagContains) MarshalJSON() ([]byte, error)
type AudienceSegmentTagExists ¶
type AudienceSegmentTagExists struct{}
func (AudienceSegmentTagExists) MarshalJSON ¶
func (AudienceSegmentTagExists) MarshalJSON() ([]byte, error)
type AudienceSegmentTagIn ¶
type AudienceSegmentTagIn struct{ Values []string }
func (AudienceSegmentTagIn) MarshalJSON ¶
func (v AudienceSegmentTagIn) MarshalJSON() ([]byte, error)
type AudienceSegmentUnknownCondition ¶
type AudienceSegmentUnknownCondition struct{ Raw json.RawMessage }
AudienceSegmentUnknownCondition preserves a condition this SDK does not model. It is read-only: requests containing it are rejected before sending.
func (AudienceSegmentUnknownCondition) MarshalJSON ¶
func (v AudienceSegmentUnknownCondition) MarshalJSON() ([]byte, error)
type AudienceSegments ¶
type AudienceSegments struct {
// contains filtered or unexported fields
}
AudienceSegments are team resources: team keys only, campaigns:read for reads and campaigns:manage for writes and unsaved previews. Revision conflicts and bounded evaluation timeouts return 409 state_conflict; re-read, reconcile or simplify rules before trying again. Writes and previews are sent once.
func (*AudienceSegments) Create ¶
func (r *AudienceSegments) Create(ctx context.Context, b CreateAudienceSegmentRequest, o ...RequestOptions) (Response[Envelope[AudienceSegment]], error)
func (*AudienceSegments) Delete ¶
func (r *AudienceSegments) Delete(ctx context.Context, id string, expectedRevision int, o ...RequestOptions) (Response[Envelope[AudienceSegmentDeletion]], error)
Delete is refused while an unlaunched draft uses the segment. Launched campaigns keep their snapshot and recipients; their segment ID becomes nil.
func (*AudienceSegments) List ¶
func (r *AudienceSegments) List(ctx context.Context, p ListAudienceSegmentsParams, o ...RequestOptions) (*CursorPage[AudienceSegment], error)
func (*AudienceSegments) Preview ¶
func (r *AudienceSegments) Preview(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[SavedAudienceSegmentPreview]], error)
Preview evaluates the saved segment once; a bounded evaluation timeout is a 409.
func (*AudienceSegments) PreviewRules ¶
func (r *AudienceSegments) PreviewRules(ctx context.Context, rules AudienceSegmentRules, o ...RequestOptions) (Response[Envelope[AudienceSegmentPreview]], error)
PreviewRules evaluates unsaved rules once.
func (*AudienceSegments) Retrieve ¶
func (r *AudienceSegments) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[AudienceSegment]], error)
func (*AudienceSegments) Update ¶
func (r *AudienceSegments) Update(ctx context.Context, id string, b UpdateAudienceSegmentRequest, o ...RequestOptions) (Response[Envelope[AudienceSegment]], error)
type Audiences ¶
type Audiences struct {
// contains filtered or unexported fields
}
func (*Audiences) AddMembers ¶
func (r *Audiences) AddMembers(ctx context.Context, id string, b AddAudienceMembersRequest, opts ...RequestOptions) (Response[Envelope[AddAudienceMembersResult]], error)
func (*Audiences) Create ¶
func (r *Audiences) Create(ctx context.Context, b CreateAudienceRequest, o ...RequestOptions) (Response[Envelope[AudienceImportResult]], error)
func (*Audiences) CreateFromCampaign ¶
func (r *Audiences) CreateFromCampaign(ctx context.Context, b CreateAudienceFromCampaignRequest, o ...RequestOptions) (Response[Envelope[AudienceFromCampaignResult]], error)
func (*Audiences) CreateUpload ¶
func (r *Audiences) CreateUpload(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Audiences) Delete ¶
func (r *Audiences) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Audiences) DeleteMember ¶
func (r *Audiences) DeleteMember(ctx context.Context, id, phone string, o ...RequestOptions) (Response[Envelope[DeleteAudienceMemberResult]], error)
func (*Audiences) List ¶
func (r *Audiences) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
List, Retrieve, Delete and CreateUpload preserve the TypeScript contract's open PlatformPayload response. Import/member operations have closed schemas.
func (*Audiences) ListMembers ¶
func (r *Audiences) ListMembers(ctx context.Context, id string, p ListParams, o ...RequestOptions) (Response[CursorEnvelope[AudienceMember]], error)
type AuditLog ¶
type AuditLog struct {
ID string `json:"id"`
ActorEmail string `json:"actorEmail"`
ActorUserID *string `json:"actorUserId"`
ActorRole *string `json:"actorRole"`
Action string `json:"action"`
Resource string `json:"resource"`
ProjectID *string `json:"projectId"`
ProjectName *string `json:"projectName"`
IP *string `json:"ip"`
UserAgent *string `json:"userAgent"`
Duration *float64 `json:"duration"`
Source *string `json:"source"`
Description *string `json:"description"`
Result string `json:"result"`
Metadata json.RawMessage `json:"metadata"`
CreatedAt int64 `json:"createdAt"`
}
type BanSafe ¶
type BanSafe struct {
// contains filtered or unexported fields
}
func (*BanSafe) CreateIncident ¶
func (r *BanSafe) CreateIncident(ctx context.Context, b ReportBanSafeIncidentRequest, o ...RequestOptions) (Response[Envelope[BanSafeIncidentReceipt]], error)
func (*BanSafe) GetClaim ¶
func (r *BanSafe) GetClaim(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[BanSafeClaim]], error)
func (*BanSafe) GetHealth ¶
func (r *BanSafe) GetHealth(ctx context.Context, connection string, o ...RequestOptions) (Response[Envelope[BanSafeConnectionDetail]], error)
func (*BanSafe) GetTelemetry ¶
func (r *BanSafe) GetTelemetry(ctx context.Context, connection string, o ...RequestOptions) (Response[Envelope[BanSafeTelemetryDetail]], error)
func (*BanSafe) ListClaims ¶
func (r *BanSafe) ListClaims(ctx context.Context, p ListBanSafeClaimsParams, o ...RequestOptions) (*CursorPage[BanSafeClaim], error)
func (*BanSafe) ListCollection ¶
func (r *BanSafe) ListCollection(ctx context.Context, p ListBanSafeCollectionParams, o ...RequestOptions) (*CursorPage[BanSafeCollectionConnection], error)
func (*BanSafe) ListEnforcement ¶
func (r *BanSafe) ListEnforcement(ctx context.Context, p ListBanSafeEnforcementParams, o ...RequestOptions) (*CursorPage[BanSafeEnforcementSummary], error)
func (*BanSafe) ListFindings ¶
func (r *BanSafe) ListFindings(ctx context.Context, p ListBanSafeFindingsParams, o ...RequestOptions) (*CursorPage[BanSafeFinding], error)
func (*BanSafe) ListHealth ¶
func (r *BanSafe) ListHealth(ctx context.Context, p ListBanSafeHealthParams, o ...RequestOptions) (*CursorPage[BanSafeConnection], error)
func (*BanSafe) ListHealthActions ¶
func (r *BanSafe) ListHealthActions(ctx context.Context, p ListBanSafeHealthActionsParams, o ...RequestOptions) (*CursorPage[BanSafeHealthAction], error)
func (*BanSafe) ListHealthHistory ¶
func (r *BanSafe) ListHealthHistory(ctx context.Context, connection string, p ListBanSafeHealthHistoryParams, o ...RequestOptions) (Response[Envelope[BanSafeHealthHistory]], error)
func (*BanSafe) ListIncidents ¶
func (r *BanSafe) ListIncidents(ctx context.Context, p ListBanSafeIncidentsParams, o ...RequestOptions) (*CursorPage[BanSafeIncident], error)
func (*BanSafe) ListSignals ¶
func (r *BanSafe) ListSignals(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]BanSafeSignalDefinition]], error)
func (*BanSafe) ListTelemetryHistory ¶
func (r *BanSafe) ListTelemetryHistory(ctx context.Context, connection string, p ListBanSafeTelemetryHistoryParams, o ...RequestOptions) (*CursorPage[BanSafeTelemetrySnapshot], error)
func (*BanSafe) RetractIncident ¶
func (r *BanSafe) RetractIncident(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[BanSafeIncident]], error)
type BanSafeActionPayload ¶
type BanSafeActionPayload struct {
PhoneNumber string `json:"phoneNumber"`
Action string `json:"action"`
Scope string `json:"scope"`
Rung string `json:"rung"`
PreviousRung *string `json:"previousRung"`
Reason string `json:"reason"`
Health *float64 `json:"health"`
HealthBand string `json:"healthBand"`
Requires []BanSafeRequiredFinding `json:"requires"`
ThroughputPerMinute *float64 `json:"throughputPerMinute"`
EligibleLiftAt *string `json:"eligibleLiftAt"`
LiftRequires string `json:"liftRequires"`
AppealURL string `json:"appealUrl"`
StartedAt string `json:"startedAt"`
Docs string `json:"docs"`
// contains filtered or unexported fields
}
type BanSafeClaim ¶
type BanSafeClaim struct {
ID string `json:"id"`
IncidentID string `json:"incidentId"`
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
PhoneNumber string `json:"phoneNumber"`
ProjectID string `json:"projectId"`
Status string `json:"status"`
Verdict string `json:"verdict"`
WindowStart string `json:"windowStart"`
WindowEnd string `json:"windowEnd"`
MeasuredCents float64 `json:"measuredCents"`
CapCents float64 `json:"capCents"`
AmountCents float64 `json:"amountCents"`
Evidence BanSafeClaimEvidence `json:"evidence"`
Summary string `json:"summary"`
Reason string `json:"reason"`
DecidedAt *string `json:"decidedAt"`
PaidAt *string `json:"paidAt"`
CreatedAt string `json:"createdAt"`
}
type BanSafeClaimEvidence ¶
type BanSafeClaimEvidence struct {
SimultaneousCalls bool `json:"simultaneousCalls"`
LinkedDeviceInteractive bool `json:"linkedDeviceInteractive"`
AttributionRuleVersion *int `json:"attributionRuleVersion"`
WindowDays int `json:"windowDays"`
DeviceEvidence bool `json:"deviceEvidence"`
OtherDevices int `json:"otherDevices"`
RestrictedInWindow bool `json:"restrictedInWindow"`
CriticalFindingDays int `json:"criticalFindingDays"`
MeasuredHours int `json:"measuredHours"`
}
type BanSafeClaimPayload ¶
type BanSafeClaimPayload struct {
ID string `json:"id"`
IncidentID string `json:"incidentId"`
PhoneNumber string `json:"phoneNumber"`
Status string `json:"status"`
Verdict string `json:"verdict"`
WindowStart string `json:"windowStart"`
WindowEnd string `json:"windowEnd"`
MeasuredCents float64 `json:"measuredCents"`
CapCents float64 `json:"capCents"`
AmountCents float64 `json:"amountCents"`
Summary string `json:"summary"`
Reason string `json:"reason"`
DecidedAt *string `json:"decidedAt"`
PaidAt *string `json:"paidAt"`
// contains filtered or unexported fields
}
type BanSafeCollectionConnection ¶
type BanSafeCollectionConnection struct {
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
ProjectID string `json:"projectId"`
Collection BanSafeCollectionStatus `json:"collection"`
}
type BanSafeCollectionStatus ¶
type BanSafeCollectionStatus struct {
State string `json:"state"`
LatestFlushedAt *string `json:"latestFlushedAt"`
LatestReceivedAt *string `json:"latestReceivedAt"`
FreshUntil *string `json:"freshUntil"`
RecordVersion *int `json:"recordVersion"`
CollectorVersion *int `json:"collectorVersion"`
Partial *bool `json:"partial"`
DroppedRecords *int `json:"droppedRecords"`
}
type BanSafeConnection ¶
type BanSafeConnection struct {
BanSafeHealthProjection
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
PhoneNumber string `json:"phoneNumber"`
ProjectID string `json:"projectId"`
Enforcement *BanSafeConnectionEnforcement `json:"enforcement"`
}
type BanSafeConnectionDetail ¶
type BanSafeConnectionDetail struct {
BanSafeConnection
Warmup BanSafeConnectionWarmup `json:"warmup"`
Findings []BanSafeFinding `json:"findings"`
LiftRequires *string `json:"liftRequires"`
AppealState string `json:"appealState"`
}
type BanSafeConnectionEnforcement ¶
type BanSafeConnectionEnforcement struct {
Rung string `json:"rung"`
PreviousRung string `json:"previousRung"`
TeamFloor string `json:"teamFloor"`
Reason string `json:"reason"`
Source string `json:"source"`
ThroughputPerMinute *float64 `json:"throughputPerMinute"`
BlocksUnsolicited bool `json:"blocksUnsolicited"`
Suspended bool `json:"suspended"`
StartedAt string `json:"startedAt"`
EligibleLiftAt *string `json:"eligibleLiftAt"`
ExitProgress float64 `json:"exitProgress"`
BlockingFindings []string `json:"blockingFindings"`
OperatorHold bool `json:"operatorHold"`
AppealState string `json:"appealState"`
State string `json:"state"`
}
type BanSafeConnectionWarmup ¶
type BanSafeEnforcementSummary ¶
type BanSafeEnforcementSummary struct {
BanSafeHealthProjection
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
PhoneNumber string `json:"phoneNumber"`
ProjectID string `json:"projectId"`
Rung string `json:"rung"`
PreviousRung string `json:"previousRung"`
TeamFloor string `json:"teamFloor"`
Reason string `json:"reason"`
Source string `json:"source"`
ThroughputPerMinute *float64 `json:"throughputPerMinute"`
BlocksUnsolicited bool `json:"blocksUnsolicited"`
Suspended bool `json:"suspended"`
Enforcement *BanSafeConnectionEnforcement `json:"enforcement,omitempty"`
BlockingFindings []string `json:"blockingFindings"`
StartedAt string `json:"startedAt"`
EligibleLiftAt *string `json:"eligibleLiftAt"`
LiftRequires string `json:"liftRequires"`
OperatorHold bool `json:"operatorHold"`
AppealState string `json:"appealState"`
State string `json:"state"`
}
type BanSafeFinding ¶
type BanSafeFinding struct {
ID *string `json:"id"`
Key string `json:"key"`
Title string `json:"title"`
Summary string `json:"summary"`
Fix string `json:"fix"`
Status string `json:"status"`
Severity *string `json:"severity"`
Occurrences int `json:"occurrences"`
ReopenedCount int `json:"reopenedCount"`
Evidence map[string]float64 `json:"evidence"`
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
PhoneNumber string `json:"phoneNumber"`
FirstSeenAt *string `json:"firstSeenAt"`
LastSeenAt *string `json:"lastSeenAt"`
AcknowledgedAt *string `json:"acknowledgedAt"`
AcknowledgedBy *string `json:"acknowledgedBy"`
AcknowledgementNote *string `json:"acknowledgementNote"`
SnoozedUntil *string `json:"snoozedUntil"`
ResolvedAt *string `json:"resolvedAt"`
ResolveReason *string `json:"resolveReason"`
}
type BanSafeHealthAction ¶
type BanSafeHealthAction struct {
ID string `json:"id"`
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
ProjectID string `json:"projectId"`
Mode string `json:"mode"`
Action string `json:"action"`
Status string `json:"status"`
Health float64 `json:"health"`
Threshold float64 `json:"threshold"`
HealthSource string `json:"healthSource"`
EstimatorVersion string `json:"estimatorVersion"`
ModelVersion *string `json:"modelVersion"`
SlowDownMPS *float64 `json:"slowDownMps"`
EvaluatedAt string `json:"evaluatedAt"`
CreatedAt string `json:"createdAt"`
CompletedAt *string `json:"completedAt"`
Outcome *string `json:"outcome"`
}
type BanSafeHealthExplanation ¶
type BanSafeHealthExplanation struct {
Penalties BanSafeHealthPenalties `json:"penalties"`
Factors []BanSafeHealthExplanationFactor `json:"factors"`
MeasuredGroups []string `json:"measuredGroups"`
MissingGroups []string `json:"missingGroups"`
}
type BanSafeHealthHistory ¶
type BanSafeHealthHistory struct {
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
Points []BanSafeHealthPoint `json:"points"`
}
type BanSafeHealthPenalties ¶
type BanSafeHealthPoint ¶
type BanSafeHealthPoint struct {
BanSafeHealthProjection
Band *string `json:"band"`
HealthEvaluatedAt string `json:"healthEvaluatedAt"`
}
type BanSafeHealthProjection ¶
type BanSafeHealthProjection struct {
Health *float64 `json:"health"`
Band string `json:"band"`
HealthSource string `json:"healthSource"`
HealthEstimatorVersion *string `json:"healthEstimatorVersion"`
HealthModelVersion *string `json:"healthModelVersion"`
HealthEvaluatedAt *string `json:"healthEvaluatedAt"`
HealthFeatureCoverage *float64 `json:"healthFeatureCoverage"`
HealthReliability string `json:"healthReliability"`
HealthProbabilities *BanSafeHealthProbabilities `json:"healthProbabilities"`
MostLikelyHealthState *string `json:"mostLikelyHealthState"`
HealthExplanation *BanSafeHealthExplanation `json:"healthExplanation"`
ObservedAccountState *BanSafeObservedAccountState `json:"observedAccountState"`
}
type BanSafeHealthThresholdPayload ¶
type BanSafeHealthThresholdPayload struct {
ConnectionID string `json:"connectionId"`
ProjectID string `json:"projectId"`
Health float64 `json:"health"`
Threshold float64 `json:"threshold"`
HealthSource string `json:"healthSource"`
EstimatorVersion string `json:"estimatorVersion"`
ModelVersion *string `json:"modelVersion"`
EvaluatedAt string `json:"evaluatedAt"`
PolicyVersion int64 `json:"policyVersion"`
EpisodeID string `json:"episodeId"`
ActionID string `json:"actionId"`
// contains filtered or unexported fields
}
type BanSafeIncident ¶
type BanSafeIncident struct {
ID string `json:"id"`
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
PhoneNumber string `json:"phoneNumber"`
ProjectID string `json:"projectId"`
Kind string `json:"kind"`
Source string `json:"source"`
Ambiguous bool `json:"ambiguous"`
StartedAt string `json:"startedAt"`
EndsAt *string `json:"endsAt"`
Resolution string `json:"resolution"`
ClosedAt *string `json:"closedAt"`
ClosedBy *string `json:"closedBy"`
ClaimID *string `json:"claimId"`
Note *string `json:"note"`
ReportedBy *string `json:"reportedBy"`
CreatedAt string `json:"createdAt"`
}
type BanSafeIncidentPayload ¶
type BanSafeIncidentPayload struct {
ID string `json:"id"`
PhoneNumber string `json:"phoneNumber"`
Kind string `json:"kind"`
Source string `json:"source"`
StartedAt string `json:"startedAt"`
EndsAt *string `json:"endsAt"`
Belief float64 `json:"belief"`
Resolution string `json:"resolution"`
ClaimID *string `json:"claimId"`
ClosedAt *string `json:"closedAt"`
// contains filtered or unexported fields
}
type BanSafeIncidentReceipt ¶
type BanSafeRequiredFinding ¶
type BanSafeSignal ¶
type BanSafeSignal struct {
BanSafeSignalDefinition
Measured bool `json:"measured"`
Value BanSafeSignalValue `json:"value"`
SampleSize *float64 `json:"sampleSize"`
Codes *[]BanSafeSignalCode `json:"codes"`
}
type BanSafeSignalCode ¶
type BanSafeSignalDefinition ¶
type BanSafeSignalValue ¶
BanSafeSignalValue retains the contract's primitive, histogram, and null variants.
func (BanSafeSignalValue) MarshalJSON ¶
func (v BanSafeSignalValue) MarshalJSON() ([]byte, error)
func (*BanSafeSignalValue) UnmarshalJSON ¶
func (v *BanSafeSignalValue) UnmarshalJSON(b []byte) error
type BanSafeTelemetryDetail ¶
type BanSafeTelemetryDetail struct {
BanSafeCollectionConnection
Snapshot *BanSafeTelemetrySnapshot `json:"snapshot"`
}
type Billing ¶
type Billing struct {
// contains filtered or unexported fields
}
func (*Billing) GetLimits ¶
func (r *Billing) GetLimits(ctx context.Context, p BillingReadParams, o ...RequestOptions) (Response[Envelope[BillingLimits]], error)
func (*Billing) GetPriorities ¶
func (r *Billing) GetPriorities(ctx context.Context, p BillingReadParams, o ...RequestOptions) (Response[Envelope[BillingPriorities]], error)
func (*Billing) GetResourceControls ¶
func (r *Billing) GetResourceControls(ctx context.Context, scope BillingScope, id string, o ...RequestOptions) (Response[Envelope[ResourceBillingControls]], error)
func (*Billing) ListPricing ¶
func (r *Billing) ListPricing(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]TierPricing]], error)
func (*Billing) ListTransactions ¶
func (r *Billing) ListTransactions(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]BillingTransaction]], error)
func (*Billing) ReorderPriorities ¶
func (r *Billing) ReorderPriorities(ctx context.Context, b ReorderBillingPrioritiesRequest, o ...RequestOptions) (Response[Envelope[BillingPriorities]], error)
func (*Billing) Retrieve ¶
func (r *Billing) Retrieve(ctx context.Context, o ...RequestOptions) (Response[Envelope[BillingBalance]], error)
func (*Billing) SetLimit ¶
func (r *Billing) SetLimit(ctx context.Context, scope BillingScope, id string, b SetBillingLimitRequest, o ...RequestOptions) (Response[Envelope[BillingSavedResult]], error)
func (*Billing) SetPriority ¶
func (r *Billing) SetPriority(ctx context.Context, scope BillingScope, id string, b SetBillingPriorityRequest, o ...RequestOptions) (Response[Envelope[BillingPriorities]], error)
func (*Billing) SetResourceControls ¶
func (r *Billing) SetResourceControls(ctx context.Context, scope BillingScope, id string, b SetResourceBillingControlsRequest, o ...RequestOptions) (Response[Envelope[ResourceBillingControls]], error)
func (*Billing) Usage ¶
func (r *Billing) Usage(ctx context.Context, o ...RequestOptions) (Response[Envelope[BillingUsage]], error)
type BillingBalance ¶
type BillingBalance struct {
BalanceCents float64 `json:"balanceCents"`
PreferredCurrency BillingCurrency `json:"preferredCurrency"`
}
type BillingControls ¶
type BillingCurrency ¶
type BillingCurrency string
type BillingDailyCredits ¶
type BillingLimit ¶
type BillingLimit struct {
Scope BillingScope `json:"scope"`
ResourceID string `json:"resourceId"`
ProjectID string `json:"projectId"`
Name string `json:"name"`
LimitCredits *float64 `json:"limitCredits"`
SpentCredits float64 `json:"spentCredits"`
ReservedCredits float64 `json:"reservedCredits"`
Revision int64 `json:"revision"`
}
type BillingLimits ¶
type BillingLimits struct {
CheckedAt string `json:"checkedAt"`
PeriodStart string `json:"periodStart"`
PeriodEnd string `json:"periodEnd"`
TodayCredits float64 `json:"todayCredits"`
MonthCredits float64 `json:"monthCredits"`
Daily []BillingDailyCredits `json:"daily"`
Budgets []BillingLimit `json:"budgets"`
}
type BillingPriorities ¶
type BillingPriorities struct {
Revision int64 `json:"revision"`
Projects []BillingPriority `json:"projects"`
Customers []BillingResourcePriority `json:"customers"`
Connections []BillingResourcePriority `json:"connections"`
}
type BillingPriority ¶
type BillingReadParams ¶
type BillingReorderResource ¶
type BillingReorderResource struct {
Scope BillingScope `json:"scope"`
ResourceID string `json:"resourceId"`
}
type BillingResourcePriority ¶
type BillingResourcePriority struct {
BillingPriority
ProjectID string `json:"projectId"`
}
type BillingSavedResult ¶
type BillingSavedResult struct {
Saved bool `json:"saved"`
}
type BillingScope ¶
type BillingScope string
const ( BillingProject BillingScope = "project" BillingCustomer BillingScope = "customer" BillingConnection BillingScope = "connection" )
type BillingTransaction ¶
type BillingTransaction struct {
ID string `json:"id"`
AmountCents float64 `json:"amountCents"`
BalanceAfterCents float64 `json:"balanceAfterCents"`
Type string `json:"type"`
Description string `json:"description"`
ConnectionID *string `json:"connectionId"`
ProjectID *string `json:"projectId"`
Tier *string `json:"tier"`
Currency *string `json:"currency"`
PaymentStatus string `json:"paymentStatus"`
CreatedAt int64 `json:"createdAt"`
}
type BillingUsage ¶
type BlocklistUpdatePayload ¶
type BlocklistUpdatePayload struct {
Action string `json:"action"`
Changes []WebhookBlocklistChange `json:"changes"`
// contains filtered or unexported fields
}
type BridgeClient ¶
type BridgeClient struct {
// contains filtered or unexported fields
}
func NewBridgeClient ¶
func NewBridgeClient(c Config) (*BridgeClient, error)
func (*BridgeClient) Resolve ¶
func (c *BridgeClient) Resolve(ctx context.Context, o ...RequestOptions) (Response[BridgeRoute], error)
type BridgeRoute ¶
type Business ¶
type Business struct {
// contains filtered or unexported fields
}
func (*Business) AppealCollection ¶
func (r *Business) AppealCollection(ctx context.Context, s, id string, b BusinessCatalogAppealRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
func (*Business) AppealProduct ¶
func (r *Business) AppealProduct(ctx context.Context, s, id string, b BusinessCatalogAppealRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
func (*Business) CreateCatalog ¶
func (r *Business) CreateCatalog(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
func (*Business) CreateCollection ¶
func (r *Business) CreateCollection(ctx context.Context, s string, b BusinessCollectionCreateRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessCollectionMutationResult]]], error)
func (*Business) CreateProduct ¶
func (r *Business) CreateProduct(ctx context.Context, s string, b BusinessProductMutationRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessProduct]]], error)
func (*Business) DeleteCollection ¶
func (r *Business) DeleteCollection(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
func (*Business) DeleteCoverPhoto ¶
func (r *Business) DeleteCoverPhoto(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessProfileStatus]]], error)
func (*Business) DeleteProduct ¶
func (r *Business) DeleteProduct(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessProductDeleteResult]]], error)
func (*Business) GetCatalog ¶
func (r *Business) GetCatalog(ctx context.Context, s string, p BusinessCatalogParams, o ...RequestOptions) (Response[Envelope[BusinessCatalogPage]], error)
func (*Business) GetCollection ¶
func (r *Business) GetCollection(ctx context.Context, s, id string, p BusinessCollectionParams, o ...RequestOptions) (Response[Envelope[BusinessCollection]], error)
func (*Business) GetEligibility ¶
func (r *Business) GetEligibility(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessEligibility]], error)
func (*Business) GetLinkedAccounts ¶
func (r *Business) GetLinkedAccounts(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessLinkedAccounts]], error)
func (*Business) GetMerchantCompliance ¶
func (r *Business) GetMerchantCompliance(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessMerchantCompliance]], error)
func (*Business) GetOrder ¶
func (r *Business) GetOrder(ctx context.Context, s, id string, b BusinessOrderLookupRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessOrder]]], error)
func (*Business) GetProduct ¶
func (r *Business) GetProduct(ctx context.Context, s, id, businessID string, o ...RequestOptions) (Response[Envelope[BusinessProduct]], error)
func (*Business) GetProfile ¶
func (r *Business) GetProfile(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[BusinessProfile]], error)
func (*Business) ListCollections ¶
func (r *Business) ListCollections(ctx context.Context, s string, p BusinessCollectionsParams, o ...RequestOptions) (Response[Envelope[BusinessCollectionPage]], error)
func (*Business) ReorderCollections ¶
func (r *Business) ReorderCollections(ctx context.Context, s string, b BusinessCollectionReorderRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
func (*Business) SetCartEnabled ¶
func (r *Business) SetCartEnabled(ctx context.Context, s string, enabled bool, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
func (*Business) SetCoverPhoto ¶
func (r *Business) SetCoverPhoto(ctx context.Context, s string, b PictureRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessCoverPhotoResult]]], error)
func (*Business) SetMerchantCompliance ¶
func (r *Business) SetMerchantCompliance(ctx context.Context, s string, b BusinessMerchantCompliance, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessMerchantCompliance]]], error)
func (*Business) SetProductVisibility ¶
func (r *Business) SetProductVisibility(ctx context.Context, s, id string, hidden bool, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessActionSuccess]]], error)
func (*Business) UpdateCollection ¶
func (r *Business) UpdateCollection(ctx context.Context, s, id string, b BusinessCollectionUpdateRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessCollectionMutationResult]]], error)
func (*Business) UpdateProduct ¶
func (r *Business) UpdateProduct(ctx context.Context, s, id string, b BusinessProductMutationRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessProduct]]], error)
func (*Business) UpdateProfile ¶
func (r *Business) UpdateProfile(ctx context.Context, s string, b BusinessProfileUpdateRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[BusinessProfileStatus]]], error)
type BusinessActionSuccess ¶
type BusinessActionSuccess struct {
Success bool `json:"success"`
}
type BusinessAdStatus ¶
type BusinessCatalogAppealRequest ¶
type BusinessCatalogAppealRequest struct {
Reason string `json:"reason"`
}
type BusinessCatalogPage ¶
type BusinessCatalogPage struct {
Next string `json:"next,omitempty"`
Previous string `json:"previous,omitempty"`
Products []BusinessProduct `json:"products"`
}
type BusinessCatalogParams ¶
type BusinessCollection ¶
type BusinessCollection struct {
ID string `json:"id"`
Name string `json:"name"`
Products []BusinessProduct `json:"products"`
Status BusinessCollectionStatus `json:"status"`
}
type BusinessCollectionMove ¶
type BusinessCollectionPage ¶
type BusinessCollectionPage struct {
Next string `json:"next,omitempty"`
Collections []BusinessCollection `json:"collections"`
}
type BusinessCollectionParams ¶
type BusinessCollectionParams = BusinessCatalogParams
type BusinessCollectionReorderRequest ¶
type BusinessCollectionReorderRequest struct {
Moves []BusinessCollectionMove `json:"moves"`
}
type BusinessCoverPhotoResult ¶
type BusinessCoverPhotoResult struct {
CoverPhotoID string `json:"coverPhotoId"`
}
type BusinessDimensions ¶
type BusinessEligibility ¶
type BusinessEligibility struct {
Features []BusinessFeatureEligibility `json:"features"`
}
type BusinessFacebookPage ¶
type BusinessFacebookPage struct {
BusinessAdStatus
ID string `json:"id"`
DisplayName string `json:"displayName"`
ProfileSync string `json:"profileSync,omitempty"`
ProfilePictureURL string `json:"profilePictureUrl"`
ShowOnProfile bool `json:"showOnProfile"`
WhatsAppAsPageButton bool `json:"whatsAppAsPageButton"`
}
type BusinessFeatureEligibility ¶
type BusinessFeatureEligibility struct {
Feature string `json:"feature"`
Status string `json:"status"`
Expiration *float64 `json:"expiration,omitempty"`
AdditionalParams string `json:"additionalParams,omitempty"`
ShowPrivacyInterstitialToNewUsers *bool `json:"showPrivacyInterstitialToNewUsers,omitempty"`
V1Enabled *bool `json:"v1Enabled,omitempty"`
}
type BusinessGrievanceOfficer ¶
type BusinessGrievanceOfficer struct {
BusinessMerchantContact
Name string `json:"name"`
}
type BusinessImporterAddress ¶
type BusinessLinkedAccounts ¶
type BusinessLinkedAccounts struct {
FacebookPage *BusinessFacebookPage `json:"facebookPage,omitempty"`
FacebookBusiness *BusinessFacebookBusiness `json:"facebookBusiness,omitempty"`
InstagramProfessional *BusinessInstagramProfessional `json:"instagramProfessional,omitempty"`
WhatsAppAdIdentity *BusinessWhatsAppAdIdentity `json:"whatsAppAdIdentity,omitempty"`
}
type BusinessMerchantCompliance ¶
type BusinessMerchantCompliance struct {
EntityName string `json:"entityName"`
EntityType string `json:"entityType"`
IsRegistered bool `json:"isRegistered"`
EntityTypeCustom string `json:"entityTypeCustom"`
CustomerCare BusinessMerchantContact `json:"customerCare"`
GrievanceOfficer BusinessGrievanceOfficer `json:"grievanceOfficer"`
}
type BusinessMerchantContact ¶
type BusinessOrder ¶
type BusinessOrder struct {
ID string `json:"id"`
CreatedAt float64 `json:"createdAt"`
CatalogID string `json:"catalogId,omitempty"`
Price BusinessOrderPrice `json:"price"`
Products []BusinessOrderProduct `json:"products"`
}
type BusinessOrderLookupRequest ¶
type BusinessOrderLookupRequest struct {
Token string `json:"token"`
}
func (BusinessOrderLookupRequest) GoString ¶
func (b BusinessOrderLookupRequest) GoString() string
func (BusinessOrderLookupRequest) String ¶
func (BusinessOrderLookupRequest) String() string
type BusinessOrderPrice ¶
type BusinessOrderProduct ¶
type BusinessOrderProduct struct {
ID string `json:"id"`
Price string `json:"price"`
Currency string `json:"currency"`
Name string `json:"name"`
Quantity float64 `json:"quantity"`
ImageID string `json:"imageId,omitempty"`
ImageURL string `json:"imageUrl,omitempty"`
VariantProperties string `json:"variantProperties,omitempty"`
}
type BusinessProduct ¶
type BusinessProduct struct {
ID string `json:"id"`
Name string `json:"name"`
Price string `json:"price"`
Currency string `json:"currency"`
Hidden bool `json:"hidden"`
Sanctioned bool `json:"sanctioned"`
Media BusinessProductMedia `json:"media"`
Status BusinessProductStatus `json:"status"`
RetailerID string `json:"retailerId,omitempty"`
BelongsTo string `json:"belongsTo,omitempty"`
Description string `json:"description,omitempty"`
URL string `json:"url,omitempty"`
ShimmedURL string `json:"shimmedUrl,omitempty"`
MaxAvailable *float64 `json:"maxAvailable,omitempty"`
Availability string `json:"availability,omitempty"`
ComplianceCategory string `json:"complianceCategory,omitempty"`
Compliance *BusinessProductCompliance `json:"compliance,omitempty"`
SalePrice *BusinessSalePrice `json:"salePrice,omitempty"`
Variant *BusinessProductVariant `json:"variant,omitempty"`
}
type BusinessProductCompliance ¶
type BusinessProductCompliance struct {
CountryCodeOrigin string `json:"countryCodeOrigin,omitempty"`
ImporterName string `json:"importerName,omitempty"`
ImporterAddress *BusinessImporterAddress `json:"importerAddress,omitempty"`
}
type BusinessProductDeleteResult ¶
type BusinessProductDeleteResult struct {
DeletedCount int `json:"deletedCount"`
}
type BusinessProductImage ¶
type BusinessProductMedia ¶
type BusinessProductMedia struct {
Images []BusinessProductImage `json:"images"`
Videos []BusinessProductVideo `json:"videos"`
}
type BusinessProductMutationRequest ¶
type BusinessProductMutationRequest struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
Currency string `json:"currency,omitempty"`
Price string `json:"price,omitempty"`
SalePrice string `json:"salePrice,omitempty"`
URL string `json:"url,omitempty"`
RetailerID *string `json:"retailerId,omitempty"`
Hidden *bool `json:"hidden,omitempty"`
Images []BusinessProductImageSource `json:"images"`
VideoURLs []string `json:"videoUrls,omitempty"`
ComplianceCategory string `json:"complianceCategory,omitempty"`
Compliance *BusinessProductCompliance `json:"compliance,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
}
type BusinessProductStatus ¶
type BusinessProductVariant ¶
type BusinessProductVariant struct {
Availability BusinessVariantAvailability `json:"availability"`
ListingDetails BusinessVariantListing `json:"listingDetails"`
Types []BusinessVariantType `json:"types"`
Properties []BusinessVariantProperty `json:"properties"`
}
type BusinessProductVideo ¶
type BusinessProfile ¶
type BusinessProfile struct {
ConversationReference
Address string `json:"address"`
Email string `json:"email"`
Description string `json:"description"`
Websites []string `json:"websites"`
CoverPhotoID string `json:"coverPhotoId"`
Categories []BusinessProfileCategory `json:"categories"`
Options map[string]string `json:"options"`
HoursTimeZone string `json:"hoursTimeZone"`
Hours []BusinessProfileHours `json:"hours"`
}
type BusinessProfileCategory ¶
type BusinessProfileDay ¶
type BusinessProfileDay struct {
DayOfWeek string `json:"dayOfWeek"`
Mode string `json:"mode"`
OpenTime *int `json:"openTime,omitempty"`
CloseTime *int `json:"closeTime,omitempty"`
}
BusinessProfileDay represents one schedule entry. OpenTime and CloseTime are minutes after midnight and are present only for specific_hours.
type BusinessProfileHours ¶
type BusinessProfileHoursUpdate ¶
type BusinessProfileHoursUpdate struct {
TimeZone string `json:"timeZone"`
Days []BusinessProfileDay `json:"days"`
}
type BusinessProfileStatus ¶
type BusinessProfileStatus struct {
Status string `json:"status"`
}
type BusinessProfileUpdateRequest ¶
type BusinessProfileUpdateRequest struct {
Address *string `json:"address,omitempty"`
Email *string `json:"email,omitempty"`
Description *string `json:"description,omitempty"`
Websites *[]string `json:"websites,omitempty"`
Hours *BusinessProfileHoursUpdate `json:"hours,omitempty"`
}
type BusinessQuickReplyUpdatePayload ¶
type BusinessQuickReplyUpdatePayload struct {
ID string `json:"id"`
Shortcut string `json:"shortcut"`
Message string `json:"message"`
Keywords []string `json:"keywords"`
Count int `json:"count"`
Deleted bool `json:"deleted"`
AssociatedLabelIDs []string `json:"associatedLabelIds"`
ObservedAt int64 `json:"observedAt"`
FromFullSync bool `json:"fromFullSync"`
// contains filtered or unexported fields
}
type BusinessSalePrice ¶
type BusinessVariantAvailability ¶
type BusinessVariantAvailability struct {
Listings []BusinessVariantAvailabilityItem `json:"listings"`
}
type BusinessVariantAvailabilityItem ¶
type BusinessVariantAvailabilityItem struct {
ProductID string `json:"productId,omitempty"`
Available bool `json:"available"`
Options []BusinessVariantProperty `json:"options"`
}
type BusinessVariantListing ¶
type BusinessVariantOption ¶
type BusinessVariantOption struct {
Value string `json:"value"`
Thumbnail *BusinessVariantThumbnail `json:"thumbnail,omitempty"`
}
type BusinessVariantProperty ¶
type BusinessVariantThumbnail ¶
type BusinessVariantThumbnail struct {
ID string `json:"id,omitempty"`
OriginalURL string `json:"originalUrl,omitempty"`
RequestURL string `json:"requestUrl,omitempty"`
OriginalDimensions BusinessDimensions `json:"originalDimensions"`
}
type BusinessVariantType ¶
type BusinessVariantType struct {
Name string `json:"name"`
Options []BusinessVariantOption `json:"options"`
}
type BusinessWhatsAppAdIdentity ¶
type BusinessWhatsAppAdIdentity struct {
BusinessAdStatus
ID string `json:"id"`
}
type ButtonsContent ¶
type ButtonsContent struct {
Media *ButtonsMedia `json:"media,omitempty"`
Title string `json:"title,omitempty"`
Body string `json:"body"`
Buttons []MessageButton `json:"buttons"`
}
type ButtonsMedia ¶
type ButtonsMedia struct {
InteractiveMediaSource
Type string `json:"type"`
Filename *string `json:"filename,omitempty"`
Thumbnail *string `json:"thumbnail,omitempty"`
}
type Call ¶
type Call struct {
// contains filtered or unexported fields
}
func (*Call) AddParticipant ¶
func (*Call) AdmitParticipant ¶
func (*Call) ConnectionID ¶
func (*Call) ReportError ¶
func (*Call) ReportQuality ¶
func (c *Call) ReportQuality(q CallQuality)
func (*Call) SetApprovalRequired ¶
func (*Call) SetMediaState ¶
func (*Call) Snapshot ¶
func (c *Call) Snapshot() CallSnapshot
func (*Call) WriteVideo ¶
func (c *Call) WriteVideo(ctx context.Context, frame VideoFrame) error
type CallAcceptedPayload ¶
type CallAcceptedPayload struct {
From WebhookIdentity `json:"from"`
CallID string `json:"callId"`
AnsweredBy string `json:"answeredBy,omitempty"`
Exclusive *bool `json:"exclusive,omitempty"`
ConnectionMethod string `json:"connectionMethod,omitempty"`
Capabilities *WebhookCallCapabilities `json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
type CallBusinessAppQuality ¶
type CallBusinessCodeCount ¶
type CallBusinessDirections ¶
type CallBusinessDirections struct {
Inbound CallOutcomeMetrics `json:"inbound"`
Outbound CallOutcomeMetrics `json:"outbound"`
}
type CallBusinessFollowUp ¶
type CallBusinessMetrics ¶
type CallBusinessMetrics struct {
CallOutcomeMetrics
Directions CallBusinessDirections `json:"directions"`
MediaQuality CallBusinessMediaQuality `json:"mediaQuality"`
AppQuality CallBusinessAppQuality `json:"appQuality"`
EndReasons []CallBusinessCodeCount `json:"endReasons"`
AppErrors []CallBusinessCodeCount `json:"appErrors"`
Transports []CallBusinessCodeCount `json:"transports"`
MultiParticipantCalls int64 `json:"multiParticipantCalls"`
FollowUp CallBusinessFollowUp `json:"followUp"`
}
type CallCapabilities ¶
type CallCheck ¶
type CallCheck struct {
Allowed bool `json:"allowed"`
Refusal *string `json:"refusal"`
Permission *CallPermissionState `json:"permission"`
}
type CallConnectionJoinedPayload ¶
type CallConnectionJoinedPayload struct {
CallID string `json:"callId"`
Connection WebhookCallConnection `json:"connection"`
// contains filtered or unexported fields
}
type CallEndedPayload ¶
type CallEndedPayload struct {
From *WebhookIdentity `json:"from"`
CallID string `json:"callId"`
DurationSeconds float64 `json:"durationSeconds"`
Reason string `json:"reason"`
Direction string `json:"direction"`
HadVideo bool `json:"hadVideo"`
ConnectionMethod string `json:"connectionMethod,omitempty"`
// contains filtered or unexported fields
}
type CallEvent ¶
type CallEvent struct {
Type string
Audio []int16
Video *VideoFrame
Control *MediaControlFrame
Error error
Reason string
}
type CallFilters ¶
type CallFilters struct{ ProjectID, ConnectionID, Direction, Upstream, Outcome, Since, Until string }
type CallMissedPayload ¶
type CallMissedPayload struct {
From WebhookIdentity `json:"from"`
CallID string `json:"callId"`
Reason string `json:"reason"`
// contains filtered or unexported fields
}
type CallOptOut ¶
type CallOptOutDeleted ¶
type CallOptOutImportResult ¶
type CallOptOutImportResult struct {
Added int `json:"added"`
Existing int `json:"existing"`
Rejected []CallOptOutRejection `json:"rejected"`
}
type CallOptOutRejection ¶
type CallOptOuts ¶
type CallOptOuts struct {
// contains filtered or unexported fields
}
func (*CallOptOuts) Create ¶
func (r *CallOptOuts) Create(ctx context.Context, b CreateCallOptOutRequest, o ...RequestOptions) (Response[CallOptOut], error)
func (*CallOptOuts) Delete ¶
func (r *CallOptOuts) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[CallOptOutDeleted], error)
func (*CallOptOuts) Import ¶
func (r *CallOptOuts) Import(ctx context.Context, b ImportCallOptOutsRequest, o ...RequestOptions) (Response[CallOptOutImportResult], error)
func (*CallOptOuts) List ¶
func (r *CallOptOuts) List(ctx context.Context, p ListCallOptOutsParams, o ...RequestOptions) (*CursorPage[CallOptOut], error)
type CallOutcomeMetrics ¶
type CallOutcomeMetrics struct {
Total int64 `json:"total"`
Answered int64 `json:"answered"`
Missed int64 `json:"missed"`
Declined int64 `json:"declined"`
Failed int64 `json:"failed"`
Ringing int64 `json:"ringing"`
AnswerRate *float64 `json:"answerRate"`
TalkSeconds float64 `json:"talkSeconds"`
TimedAnswered int64 `json:"timedAnswered"`
TimedPickup int64 `json:"timedPickup"`
AverageTalkSeconds *float64 `json:"averageTalkSeconds"`
MedianTalkSeconds *float64 `json:"medianTalkSeconds"`
P95TalkSeconds *float64 `json:"p95TalkSeconds"`
AveragePickupMS *float64 `json:"averagePickupMs"`
P95PickupMS *float64 `json:"p95PickupMs"`
ShortAnswered int64 `json:"shortAnswered"`
Video int64 `json:"video"`
}
type CallParticipant ¶
type CallParticipant struct {
Guest *bool `json:"guest,omitempty"`
Name string `json:"name,omitempty"`
HandRaised *bool `json:"handRaised,omitempty"`
ID string `json:"id"`
PhoneNumber string `json:"phoneNumber,omitempty"`
BSUID string `json:"bsuid,omitempty"`
Username string `json:"username,omitempty"`
AudioMuted bool `json:"audioMuted"`
Video bool `json:"video"`
State string `json:"state"`
}
type CallParticipantPayload ¶
type CallParticipantPayload struct {
CallID string `json:"callId"`
Participant WebhookCallParticipant `json:"participant"`
// contains filtered or unexported fields
}
type CallPeer ¶
type CallPeer struct {
ID string `json:"id,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
Username string `json:"username,omitempty"`
}
CallPeer is the other party on a call: user ID, phone number or username, as the call reported them.
type CallPermission ¶
type CallPermission struct {
CallPermissionState
Conversation ConversationReference `json:"conversation"`
}
type CallPermissionAction ¶
type CallPermissionAction struct {
Allowed bool `json:"allowed"`
Limits []CallPermissionLimit `json:"limits"`
}
type CallPermissionChangedPayload ¶
type CallPermissionChangedPayload struct {
Conversation WebhookIdentity `json:"conversation"`
Status string `json:"status"`
PreviousStatus string `json:"previousStatus"`
ExpiresAt *string `json:"expiresAt"`
Source string `json:"source"`
ChangedAt string `json:"changedAt"`
// contains filtered or unexported fields
}
type CallPermissionLimit ¶
type CallPermissionRequestContent ¶
type CallPermissionRequestContent struct {
Body string `json:"body"`
}
type CallPermissionState ¶
type CallPermissionState struct {
Status string `json:"status"`
ExpiresAt *string `json:"expiresAt"`
Source *string `json:"source"`
UpdatedAt *string `json:"updatedAt"`
CheckedAt *string `json:"checkedAt"`
Fresh bool `json:"fresh"`
Actions *struct {
RequestPermission *CallPermissionAction `json:"requestPermission"`
StartCall *CallPermissionAction `json:"startCall"`
} `json:"actions"`
}
type CallPolicy ¶
type CallPolicyResource ¶
type CallPolicyResource struct {
// contains filtered or unexported fields
}
func (*CallPolicyResource) Retrieve ¶
func (r *CallPolicyResource) Retrieve(ctx context.Context, o ...RequestOptions) (Response[CallPolicy], error)
func (*CallPolicyResource) Update ¶
func (r *CallPolicyResource) Update(ctx context.Context, b UpdateCallPolicyRequest, o ...RequestOptions) (Response[CallPolicy], error)
type CallQuality ¶
type CallQuality struct {
RTTMS *int `json:"rttMs,omitempty"`
JitterMS *int `json:"jitterMs,omitempty"`
PacketsLost *int64 `json:"packetsLost,omitempty"`
PacketsReceived *int64 `json:"packetsReceived,omitempty"`
AudioCodec string `json:"audioCodec,omitempty"`
VideoCodec string `json:"videoCodec,omitempty"`
CandidateType string `json:"candidateType,omitempty"`
Reconnects *int `json:"reconnects,omitempty"`
}
type CallReactionRequest ¶
type CallReceivedPayload ¶
type CallReceivedPayload struct {
From WebhookIdentity `json:"from"`
CallID string `json:"callId"`
HasVideo bool `json:"hasVideo"`
ConnectionMethod string `json:"connectionMethod,omitempty"`
Capabilities *WebhookCallCapabilities `json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
type CallRecord ¶
type CallRecord struct {
CallID string `json:"callId"`
ProjectID *string `json:"projectId"`
ConnectionID string `json:"connectionId"`
Direction string `json:"direction"`
Upstream string `json:"upstream"`
Outcome string `json:"outcome"`
State string `json:"state"`
HasVideo bool `json:"hasVideo"`
PeerRef *string `json:"peerRef"`
StartedAt string `json:"startedAt"`
ConnectedAt *string `json:"connectedAt"`
EndedAt *string `json:"endedAt"`
DurationSeconds *float64 `json:"durationSeconds"`
EndReason *string `json:"endReason"`
}
type CallRecordAppConnection ¶
type CallRecordAppConnection struct {
ConnectionID string `json:"connectionId"`
Participant string `json:"participant"`
Client *CallReportClient `json:"client"`
Quality *CallRecordAppQuality `json:"quality"`
Errors []CallRecordAppError `json:"errors"`
}
type CallRecordAppError ¶
type CallRecordAppQuality ¶
type CallRecordAppQuality struct {
ReportedAt string `json:"reportedAt"`
RTTMS *float64 `json:"rttMs"`
JitterMS *float64 `json:"jitterMs"`
PacketsLost *float64 `json:"packetsLost"`
PacketsReceived *float64 `json:"packetsReceived"`
AudioCodec *string `json:"audioCodec"`
VideoCodec *string `json:"videoCodec"`
CandidateType *string `json:"candidateType"`
Reconnects *int `json:"reconnects"`
}
type CallRecordAppReports ¶
type CallRecordAppReports struct {
Status string `json:"status"`
Connections []CallRecordAppConnection `json:"connections"`
Truncated bool `json:"truncated"`
}
type CallRecordConnection ¶
type CallRecordCorrelation ¶
type CallRecordDetail ¶
type CallRecordDetail struct {
Call CallRecordSummary `json:"call"`
Participants []CallRecordParticipant `json:"participants"`
Connections []CallRecordConnection `json:"connections"`
Telemetry CallRecordTelemetry `json:"telemetry"`
AppReports CallRecordAppReports `json:"appReports"`
History CallRecordHistory `json:"history"`
Correlation CallRecordCorrelation `json:"correlation"`
}
type CallRecordEndReason ¶
type CallRecordEvent ¶
type CallRecordExportPage ¶
type CallRecordHistory ¶
type CallRecordHistory struct {
Events []CallRecordEvent `json:"events"`
Truncated bool `json:"truncated"`
}
type CallRecordParticipant ¶
type CallRecordSummary ¶
type CallRecordSummary struct {
CallID string `json:"callId"`
ConnectionID string `json:"connectionId"`
ProjectID *string `json:"projectId"`
Direction string `json:"direction"`
State string `json:"state"`
Live bool `json:"live"`
Backend string `json:"backend"`
HasVideo bool `json:"hasVideo"`
PeerRef *string `json:"peerRef"`
StartedAt string `json:"startedAt"`
ConnectedAt *string `json:"connectedAt"`
EndedAt *string `json:"endedAt"`
DurationSeconds *float64 `json:"durationSeconds"`
EndReason *CallRecordEndReason `json:"endReason"`
AnsweredBy *string `json:"answeredBy"`
Exclusive *bool `json:"exclusive"`
}
type CallRecordTelemetry ¶
type CallRecordTelemetry struct {
Status string `json:"status"`
Source string `json:"source"`
SetupMS *float64 `json:"setupMs"`
RingMS *float64 `json:"ringMs"`
Codec *string `json:"codec"`
JitterMS *float64 `json:"jitterMs"`
PacketsLost *float64 `json:"packetsLost"`
RTTMS *float64 `json:"rttMs"`
ReceivedKBPS *float64 `json:"receivedKbps"`
SentKBPS *float64 `json:"sentKbps"`
}
type CallRejectedPayload ¶
type CallRejectedPayload struct {
From WebhookIdentity `json:"from"`
CallID string `json:"callId"`
// contains filtered or unexported fields
}
type CallReportClient ¶
type CallReportError ¶
type CallReportError struct {
Code string `json:"code"`
}
type CallReportRequest ¶
type CallReportRequest struct {
Kind string `json:"kind"`
ConnectionID string `json:"connectionId"`
Participant string `json:"participant,omitempty"`
Client *CallReportClient `json:"client,omitempty"`
Quality *CallQuality `json:"quality,omitempty"`
Error *CallReportError `json:"error,omitempty"`
}
type CallReporter ¶
type CallReporter struct {
// contains filtered or unexported fields
}
CallReporter absorbs transport failures and bounds diagnostic traffic. It never includes message content, peer identity, audio, or video.
func NewCallReporter ¶
func NewCallReporter(connectionID string, send func(context.Context, CallReportRequest) error) (*CallReporter, error)
func (*CallReporter) Error ¶
func (r *CallReporter) Error(code string)
func (*CallReporter) Quality ¶
func (r *CallReporter) Quality(q CallQuality)
func (*CallReporter) Stop ¶
func (r *CallReporter) Stop()
func (*CallReporter) Stopped ¶
func (r *CallReporter) Stopped() bool
type CallRetention ¶
type CallRetention struct {
Policy CallRetentionPolicy `json:"policy"`
RetentionDays int `json:"retentionDays"`
AppliesTo []string `json:"appliesTo"`
Revision int64 `json:"revision"`
UpdatedAt *string `json:"updatedAt"`
}
type CallRetentionPolicy ¶
type CallRetentionPolicy string
const ( RetentionShort CallRetentionPolicy = "short" RetentionStandard CallRetentionPolicy = "standard" RetentionExtended CallRetentionPolicy = "extended" RetentionCompliance CallRetentionPolicy = "compliance" RetentionCustom CallRetentionPolicy = "custom" )
type CallRetentionResource ¶
type CallRetentionResource struct {
// contains filtered or unexported fields
}
func NewTeamCallRetentionClient ¶
func NewTeamCallRetentionClient(c Config) (*CallRetentionResource, error)
NewTeamCallRetentionClient accepts a team or project credential without requiring a project ID for the team-wide setting.
func (*CallRetentionResource) Retrieve ¶
func (r *CallRetentionResource) Retrieve(ctx context.Context, o ...RequestOptions) (Response[CallRetention], error)
func (*CallRetentionResource) Update ¶
func (r *CallRetentionResource) Update(ctx context.Context, b UpdateCallRetentionRequest, o ...RequestOptions) (Response[CallRetention], error)
type CallSnapshot ¶
type CallSnapshot struct {
WaitingRoom *CallWaitingRoom
ID, Direction, Peer, State, EndReason string
HasVideo bool
Capabilities CallCapabilities
Claim CallClaim
StartedAt, ConnectedAt, EndedAt time.Time
SampleRate int
AudioMuted, VideoEnabled, ScreenSharing bool
RemoteAudioMuted *bool
HandRaised, SocialSupported bool
Participants []CallParticipant
VideoSources map[uint32]CallVideoSource
Reconnects int
}
type CallStats ¶
type CallStats struct {
Since string `json:"since"`
Until string `json:"until"`
Timezone string `json:"timezone"`
GroupBy string `json:"groupBy"`
Totals CallStatsMetrics `json:"totals"`
Groups []CallStatsGroup `json:"groups"`
GroupsTruncated bool `json:"groupsTruncated"`
Heatmap []CallStatsHeatmapCell `json:"heatmap"`
}
type CallStatsGroup ¶
type CallStatsGroup struct {
CallStatsMetrics
Key string `json:"key"`
Start *string `json:"start"`
}
type CallStatsHeatmapCell ¶
type CallStatsMetrics ¶
type CallStatsMetrics struct {
Calls int64 `json:"calls"`
Answered int64 `json:"answered"`
Missed int64 `json:"missed"`
Declined int64 `json:"declined"`
Failed int64 `json:"failed"`
InProgress int64 `json:"inProgress"`
AnswerRate *float64 `json:"answerRate"`
TotalDurationSeconds float64 `json:"totalDurationSeconds"`
AverageDurationSeconds *float64 `json:"averageDurationSeconds"`
}
type CallStatsParams ¶
type CallStatsParams struct {
CallFilters
GroupBy, Timezone string
}
type CallTelemetryPayload ¶
type CallTelemetryPayload struct {
CallID string `json:"callId"`
SetupMS float64 `json:"setupMs"`
RingMS float64 `json:"ringMs"`
DurationSeconds float64 `json:"durationSeconds"`
TerminateReason string `json:"terminateReason"`
Codec string `json:"codec"`
JitterMS float64 `json:"jitterMs"`
PacketsLost float64 `json:"packetsLost"`
RTTMS float64 `json:"rttMs"`
RecvKBPS float64 `json:"recvKbps"`
SendKBPS float64 `json:"sendKbps"`
// contains filtered or unexported fields
}
type CallVideoSource ¶
type CallVideoSource struct {
ID uint32
Label string
Participant *CallParticipant
ConnectionID, ConnectionParticipant string
}
type CallWaitingRoom ¶
type CallWaitingRoom struct {
Enabled bool `json:"enabled"`
IsAdmin bool `json:"isAdmin"`
InWaitingRoom bool `json:"inWaitingRoom"`
Users []CallParticipant `json:"users"`
}
type CallsClient ¶
type CallsClient struct {
// contains filtered or unexported fields
}
func NewCallsClient ¶
func NewCallsClient(c CallsClientConfig) (*CallsClient, error)
func (*CallsClient) Answer ¶
func (c *CallsClient) Answer(ctx context.Context, id string, b AcceptCallRequest, o ...RequestOptions) (Response[Envelope[AcceptedCall]], error)
func (*CallsClient) AttachMedia ¶
func (c *CallsClient) AttachMedia(ctx context.Context, callID, connectionID string) (*CallsMediaSocket, error)
func (*CallsClient) Connect ¶
func (c *CallsClient) Connect(ctx context.Context) (*CallsLifecycle, error)
func (*CallsClient) End ¶
func (c *CallsClient) End(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
func (*CallsClient) Follow ¶
func (c *CallsClient) Follow(ctx context.Context, o CallsFollowOptions) (*CallsSession, error)
Follow authenticates one lifecycle connection, then follows the session until Close or context cancellation. Events applies backpressure to the reader.
func (*CallsClient) Place ¶
func (c *CallsClient) Place(ctx context.Context, b PlaceCallRequest, o ...RequestOptions) (Response[Envelope[PlacedCall]], error)
func (*CallsClient) Reject ¶
func (c *CallsClient) Reject(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
type CallsClientConfig ¶
type CallsEvent ¶
type CallsEvent struct {
Type string
Call *Call
Frame *LifecycleFrame
Error error
}
type CallsFollowOptions ¶
type CallsLifecycle ¶
type CallsLifecycle struct {
Ready LifecycleFrame
Token CallsToken
// contains filtered or unexported fields
}
func (*CallsLifecycle) Close ¶
func (l *CallsLifecycle) Close() error
func (*CallsLifecycle) Next ¶
func (l *CallsLifecycle) Next(ctx context.Context) (LifecycleFrame, error)
func (*CallsLifecycle) RefreshAuth ¶
func (l *CallsLifecycle) RefreshAuth(ctx context.Context, token CallsToken) error
func (*CallsLifecycle) SendCandidate ¶
func (l *CallsLifecycle) SendCandidate(ctx context.Context, id, connection string, candidate TrickleCandidate) error
type CallsMediaFrame ¶
type CallsMediaFrame struct {
Audio []int16
Video *VideoFrame
Control *MediaControlFrame
}
func DecodeMediaFrame ¶
func DecodeMediaFrame(bytes []byte) (CallsMediaFrame, error)
type CallsMediaSocket ¶
type CallsMediaSocket struct {
ConnectionID string
SampleRate int
Video bool
Token CallsToken
// contains filtered or unexported fields
}
func (*CallsMediaSocket) Close ¶
func (m *CallsMediaSocket) Close() error
func (*CallsMediaSocket) ModerateWaitingRoom ¶
func (m *CallsMediaSocket) ModerateWaitingRoom(ctx context.Context, operation, target string, enabled *bool) error
ModerateWaitingRoom sends one command without automatic replay. The public target ID must come from the latest authoritative pending roster.
func (*CallsMediaSocket) Read ¶
func (m *CallsMediaSocket) Read(ctx context.Context) (CallsMediaFrame, error)
func (*CallsMediaSocket) RefreshAuth ¶
func (m *CallsMediaSocket) RefreshAuth(ctx context.Context, token CallsToken, participant string) error
func (*CallsMediaSocket) UpdateMediaState ¶
func (m *CallsMediaSocket) UpdateMediaState(ctx context.Context, a, v, screen *bool) (MediaControlFrame, error)
UpdateMediaState serializes at most 16 queued commands while the sole socket reader continues delivering audio, video and roster events. An unconfirmed command is never replayed automatically.
func (*CallsMediaSocket) WriteAudio ¶
func (m *CallsMediaSocket) WriteAudio(ctx context.Context, pcm []int16) error
func (*CallsMediaSocket) WriteVideo ¶
func (m *CallsMediaSocket) WriteVideo(ctx context.Context, v VideoFrame) error
type CallsSession ¶
type CallsSession struct {
// contains filtered or unexported fields
}
func (*CallsSession) Calls ¶
func (s *CallsSession) Calls() []*Call
func (*CallsSession) Connected ¶
func (s *CallsSession) Connected() bool
func (*CallsSession) Done ¶
func (s *CallsSession) Done() <-chan struct{}
Done closes when the session stops. Event channels remain open so concurrent call cleanup can finish safely; consumers select on Done.
func (*CallsSession) Events ¶
func (s *CallsSession) Events() <-chan CallsEvent
func (*CallsSession) GetCall ¶
func (s *CallsSession) GetCall(id string) *Call
func (*CallsSession) ParticipantReference ¶
func (s *CallsSession) ParticipantReference() string
func (*CallsSession) Place ¶
func (s *CallsSession) Place(ctx context.Context, b PlaceCallRequest, o ...RequestOptions) (*Call, error)
type CallsToken ¶
func (CallsToken) GoString ¶
func (t CallsToken) GoString() string
func (CallsToken) String ¶
func (t CallsToken) String() string
type CallsTokenProvider ¶
type CallsTokenProvider func(context.Context, CallsTokenRequest) (CallsToken, error)
type CallsTokenRequest ¶
type CallsTokenRequest struct{ Refresh bool }
type CallsTokenSource ¶
type CallsTokenSource struct {
// contains filtered or unexported fields
}
func NewCallsTokenSource ¶
func NewCallsTokenSource(provider CallsTokenProvider) (*CallsTokenSource, error)
func (*CallsTokenSource) Get ¶
func (s *CallsTokenSource) Get(ctx context.Context, refresh bool) (CallsToken, error)
func (*CallsTokenSource) Invalidate ¶
func (s *CallsTokenSource) Invalidate()
type Campaign ¶
type Campaign struct {
VariableMapping *CampaignVariableMapping `json:"variableMapping,omitempty"`
TrackedLinks CampaignTrackedLinks `json:"trackedLinks"`
ID string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
TemplateID *string `json:"templateId"`
RecipientListID *string `json:"recipientListId"`
RecipientCount int `json:"recipientCount"`
SentCount int `json:"sentCount"`
DeliveredCount int `json:"deliveredCount"`
ReadCount int `json:"readCount"`
FailedCount int `json:"failedCount"`
SkippedCount int `json:"skippedCount"`
ScheduledAt *int64 `json:"scheduledAt"`
LaunchedAt *int64 `json:"launchedAt"`
CompletedAt *int64 `json:"completedAt"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
SendWindow *CampaignSendWindow `json:"sendWindow"`
ComposerBlueprint json.RawMessage `json:"composerBlueprint,omitempty"`
Messages json.RawMessage `json:"messages,omitempty"`
AudienceRef json.RawMessage `json:"audienceRef,omitempty"`
SenderConfig json.RawMessage `json:"senderConfig,omitempty"`
ComplianceConfig json.RawMessage `json:"complianceConfig,omitempty"`
Variants []CampaignVariant `json:"variants,omitempty"`
VariantStrategy *CampaignVariantStrategy `json:"variantStrategy,omitempty"`
ExperimentOutcome *CampaignExperimentOutcome `json:"experimentOutcome"`
MessageVariations []CampaignMessageVariation `json:"messageVariations,omitempty"`
FollowUp *CampaignFollowUp `json:"followUp"`
// FrequencyCap is this campaign's own cap; nil when only the team cap applies.
FrequencyCap *CampaignFrequencyCap `json:"frequencyCap,omitempty"`
// Drip is nil for a campaign that is not a drip.
Drip *CampaignDrip `json:"drip,omitempty"`
// EnrollmentOpen reports continuous enrollment; nil for a non-drip.
EnrollmentOpen *bool `json:"enrollmentOpen,omitempty"`
// PauseReason is the stored reason while paused, or nil.
PauseReason *string `json:"pauseReason,omitempty"`
// SegmentID is the saved segment evaluated at launch, or nil. Read-only on
// the Messaging API; choose segments with a team key.
SegmentID *string `json:"segmentId,omitempty"`
SegmentSnapshot *CampaignSegmentSnapshot `json:"segmentSnapshot,omitempty"`
}
type CampaignAnalytics ¶
type CampaignAnalytics struct {
AverageResponseTimeMS *float64 `json:"averageResponseTimeMs"`
MinResponseTimeMS *float64 `json:"minResponseTimeMs"`
MaxResponseTimeMS *float64 `json:"maxResponseTimeMs"`
CampaignID string `json:"campaignId"`
RecipientCount int `json:"recipientCount"`
SentCount int `json:"sentCount"`
DeliveredCount int `json:"deliveredCount"`
ReadCount int `json:"readCount"`
FailedCount int `json:"failedCount"`
SkippedCount int `json:"skippedCount"`
RespondedCount int `json:"respondedCount"`
ResponseRate float64 `json:"responseRate"`
Experiment *CampaignExperimentResults `json:"experiment"`
FollowUps CampaignFollowUpReport `json:"followUps"`
// FrequencyCap counts recipients with a message skipped by the cap.
FrequencyCap *CampaignFrequencyCapAnalytics `json:"frequencyCap,omitempty"`
// Drip reports results by step; nil for a campaign that is not a drip.
Drip *CampaignDripStats `json:"drip,omitempty"`
}
type CampaignBlueprint ¶
type CampaignBlueprint struct {
Version int `json:"version"`
Source string `json:"source"`
Extra PlatformPayload `json:"-"`
}
func (CampaignBlueprint) MarshalJSON ¶
func (v CampaignBlueprint) MarshalJSON() ([]byte, error)
func (*CampaignBlueprint) UnmarshalJSON ¶
func (v *CampaignBlueprint) UnmarshalJSON(b []byte) error
type CampaignCapReachedPayload ¶
type CampaignCapReachedPayload struct {
CampaignID string `json:"campaignId"`
ConnectionKey string `json:"connectionKey"`
Phone string `json:"phone"`
CapType string `json:"capType"`
CapLimit int `json:"capLimit"`
WindowResetsAt int64 `json:"windowResetsAt"`
At int64 `json:"at"`
// contains filtered or unexported fields
}
type CampaignCompletedPayload ¶
type CampaignCompletedPayload struct {
CampaignID string `json:"campaignId"`
SentCount int `json:"sentCount"`
DeliveredCount int `json:"deliveredCount"`
ReadCount int `json:"readCount"`
FailedCount int `json:"failedCount"`
SkippedCount int `json:"skippedCount"`
ResponseCount int `json:"responseCount"`
CompletedAt int64 `json:"completedAt"`
DurationMS int64 `json:"durationMs"`
// contains filtered or unexported fields
}
type CampaignComposedButton ¶
type CampaignComposedButton struct {
ID *string `json:"id,omitempty"`
Kind string `json:"kind"`
Label string `json:"label"`
URL *string `json:"url,omitempty"`
Phone *string `json:"phone,omitempty"`
Extra PlatformPayload `json:"-"`
}
func (CampaignComposedButton) MarshalJSON ¶
func (v CampaignComposedButton) MarshalJSON() ([]byte, error)
MarshalJSON retains a legacy extension ID when no typed ID is set. Both forms may agree; conflicting or nonstring extension values fail without mutating v.
func (*CampaignComposedButton) UnmarshalJSON ¶
func (v *CampaignComposedButton) UnmarshalJSON(b []byte) error
type CampaignComposedMedia ¶
type CampaignComposedMedia struct {
Kind string `json:"kind"`
URL string `json:"url"`
Filename *string `json:"filename,omitempty"`
Caption *string `json:"caption,omitempty"`
Extra PlatformPayload `json:"-"`
}
func (CampaignComposedMedia) MarshalJSON ¶
func (v CampaignComposedMedia) MarshalJSON() ([]byte, error)
func (*CampaignComposedMedia) UnmarshalJSON ¶
func (v *CampaignComposedMedia) UnmarshalJSON(b []byte) error
type CampaignComposedMessage ¶
type CampaignComposedMessage struct {
Version *int `json:"version,omitempty"`
Source *string `json:"source,omitempty"`
Media *CampaignComposedMedia `json:"media,omitempty"`
Buttons *[]CampaignComposedButton `json:"buttons,omitempty"`
// DelayAfterSec is 0..86400, or 0..2592000 for drip steps, in whole
// multiples of DelayUnit when set.
DelayAfterSec *int `json:"delayAfterSec,omitempty"`
DelayUnit *CampaignDelayUnit `json:"delayUnit,omitempty"`
// SendWindow applies to later drip steps only; null removes a step window.
SendWindow *Nullable[CampaignStepWindow] `json:"sendWindow,omitempty"`
Extra PlatformPayload `json:"-"`
}
Composed messages and their nested media/buttons preserve declared extensions.
func (CampaignComposedMessage) MarshalJSON ¶
func (v CampaignComposedMessage) MarshalJSON() ([]byte, error)
func (*CampaignComposedMessage) UnmarshalJSON ¶
func (v *CampaignComposedMessage) UnmarshalJSON(b []byte) error
type CampaignConversion ¶
type CampaignConversion struct {
ID string `json:"id"`
CampaignID string `json:"campaignId"`
RecipientID *string `json:"recipientId"`
EventType string `json:"eventType"`
OccurredAt string `json:"occurredAt"`
Value *CampaignConversionValue `json:"value"`
Evidence string `json:"evidence"`
Attribution CampaignConversionAttribution `json:"attribution"`
RecordedAt string `json:"recordedAt"`
Replayed bool `json:"replayed"`
}
type CampaignConversionCurrencyTotal ¶
type CampaignConversionCurrencyTotal struct {
Currency string `json:"currency"`
Evidence string `json:"evidence"`
AttributedConversions int `json:"attributedConversions"`
AttributedAmountMinor string `json:"attributedAmountMinor"`
UnattributedConversions int `json:"unattributedConversions"`
UnattributedAmountMinor string `json:"unattributedAmountMinor"`
}
type CampaignConversionModel ¶
type CampaignConversionReport ¶
type CampaignConversionReport struct {
CampaignID string `json:"campaignId"`
Model CampaignConversionModel `json:"model"`
SentCount int `json:"sentCount"`
Conversions CampaignConversionCounts `json:"conversions"`
ConvertedRecipients int `json:"convertedRecipients"`
ConversionRate float64 `json:"conversionRate"`
Values []CampaignConversionCurrencyTotal `json:"values"`
}
type CampaignConversionValue ¶
type CampaignDelayUnit ¶
type CampaignDelayUnit string
const ( CampaignDelayMinutes CampaignDelayUnit = "minutes" CampaignDelayHours CampaignDelayUnit = "hours" CampaignDelayDays CampaignDelayUnit = "days" )
type CampaignDrip ¶
type CampaignDrip struct {
Enrollment CampaignDripEnrollment `json:"enrollment"`
ExitOnReply bool `json:"exitOnReply"`
ExitOnLinkClick bool `json:"exitOnLinkClick"`
}
CampaignDrip is the stored beta drip configuration. A GET request to a tracked link counts as a click, including link previews and scanners.
type CampaignDripEnrollment ¶
type CampaignDripEnrollment string
const ( CampaignDripAudience CampaignDripEnrollment = "audience" CampaignDripContinuous CampaignDripEnrollment = "continuous" )
type CampaignDripExitReason ¶
type CampaignDripExitReason string
CampaignDripExitReason values appear in CampaignRecipient.SequenceError; arbitrary send failure codes also occur there.
const ( CampaignDripExitReplied CampaignDripExitReason = "replied" CampaignDripExitLinkClicked CampaignDripExitReason = "link_clicked" CampaignDripExitOptedOut CampaignDripExitReason = "opted_out" )
type CampaignDripInput ¶
type CampaignDripInput struct {
Enrollment CampaignDripEnrollment `json:"enrollment,omitempty"`
ExitOnReply *bool `json:"exitOnReply,omitempty"`
ExitOnLinkClick *bool `json:"exitOnLinkClick,omitempty"`
}
CampaignDripInput creates a drip. The API applies the defaults audience, exit on reply and no exit on link click to omitted fields.
type CampaignDripPatch ¶
type CampaignDripPatch struct {
Enrollment CampaignDripEnrollment `json:"enrollment,omitempty"`
ExitOnReply *bool `json:"exitOnReply,omitempty"`
ExitOnLinkClick *bool `json:"exitOnLinkClick,omitempty"`
}
CampaignDripPatch changes stored drip settings. Omitted fields keep their stored values; the SDK applies no defaults.
type CampaignDripStats ¶
type CampaignDripStats struct {
Enrollment CampaignDripEnrollment `json:"enrollment"`
Enrolled int `json:"enrolled"`
EnrolledByAPI int `json:"enrolledByApi"`
Active int `json:"active"`
Completed int `json:"completed"`
Exited int `json:"exited"`
Steps []CampaignDripStepStats `json:"steps"`
}
type CampaignDripStepStats ¶
type CampaignEnrollment ¶
type CampaignExperimentResults ¶
type CampaignExperimentResults struct {
Criterion string `json:"criterion"`
Outcome *CampaignExperimentOutcome `json:"outcome"`
HoldoutCount int `json:"holdoutCount"`
ReserveCount int `json:"reserveCount"`
Variants []CampaignExperimentVariantResult `json:"variants"`
}
type CampaignExperimentVariantResult ¶
type CampaignExperimentVariantResult struct {
Key string `json:"key"`
Label string `json:"label"`
Weight int `json:"weight"`
Assigned int `json:"assigned"`
Sent int `json:"sent"`
Delivered int `json:"delivered"`
Read int `json:"read"`
Replied int `json:"replied"`
OutcomeRate float64 `json:"outcomeRate"`
}
type CampaignFailedPayload ¶
type CampaignFollowUp ¶
type CampaignFollowUp struct {
// DelaySeconds is optional, 60 through 604800; the API defaults to 86400.
DelaySeconds *int `json:"delaySeconds,omitempty"`
// ExpirySeconds is optional, 86400 through 2592000 and longer than the delay;
// the API defaults to 604800. Expiry starts at the first message's send.
ExpirySeconds *int `json:"expirySeconds,omitempty"`
Message CampaignFollowUpMessage `json:"message"`
}
CampaignFollowUp configures one receipt-timed follow-up (beta). The first delivery starts the wait; the first read restarts it before sending starts. Replies and opt-outs cancel it. The API enforces enrollment and bounds.
func (CampaignFollowUp) MarshalJSON ¶
func (v CampaignFollowUp) MarshalJSON() ([]byte, error)
func (*CampaignFollowUp) UnmarshalJSON ¶
func (v *CampaignFollowUp) UnmarshalJSON(data []byte) error
type CampaignFollowUpMessage ¶
type CampaignFollowUpMessage interface {
// contains filtered or unexported methods
}
CampaignFollowUpMessage is a sealed text/template union. Each variant supplies its own fixed discriminator, so callers cannot mix text and template fields.
type CampaignFollowUpReport ¶
type CampaignFollowUpReport struct {
Total int `json:"total"`
Waiting int `json:"waiting"`
Scheduled int `json:"scheduled"`
Sending int `json:"sending"`
Sent int `json:"sent"`
Delivered int `json:"delivered"`
Read int `json:"read"`
Replied int `json:"replied"`
Cancelled int `json:"cancelled"`
Expired int `json:"expired"`
Failed int `json:"failed"`
Unknown int `json:"unknown"`
NextDueAt *int64 `json:"nextDueAt"`
}
CampaignFollowUpReport counts follow-up outcomes separately from first messages.
type CampaignFollowUpStatus ¶
type CampaignFollowUpStatus string
const ( CampaignFollowUpWaitingReceipt CampaignFollowUpStatus = "waiting_receipt" CampaignFollowUpScheduled CampaignFollowUpStatus = "scheduled" CampaignFollowUpSending CampaignFollowUpStatus = "sending" CampaignFollowUpSent CampaignFollowUpStatus = "sent" CampaignFollowUpCancelled CampaignFollowUpStatus = "cancelled" CampaignFollowUpExpired CampaignFollowUpStatus = "expired" CampaignFollowUpFailed CampaignFollowUpStatus = "failed" CampaignFollowUpOutcomeUnknown CampaignFollowUpStatus = "outcome_unknown" )
type CampaignFollowUpSummary ¶
type CampaignFollowUpSummary struct {
ID string `json:"id"`
ConnectionID string `json:"connectionId"`
Status CampaignFollowUpStatus `json:"status"`
AnchorKind *string `json:"anchorKind"`
FirstDeliveredAt *int64 `json:"firstDeliveredAt"`
FirstReadAt *int64 `json:"firstReadAt"`
DueAt *int64 `json:"dueAt"`
ExpiresAt int64 `json:"expiresAt"`
SentAt *int64 `json:"sentAt"`
DeliveredAt *int64 `json:"deliveredAt"`
ReadAt *int64 `json:"readAt"`
RepliedAt *int64 `json:"repliedAt"`
Reason *string `json:"reason"`
CommandID *string `json:"commandId"`
}
CampaignFollowUpSummary describes one recipient's follow-up. Times are Unix milliseconds; a nil anchor means that no delivery or read receipt timed it.
type CampaignFollowUpTemplateMessage ¶
type CampaignFollowUpTemplateMessage struct {
TemplateID string `json:"templateId"`
}
func (CampaignFollowUpTemplateMessage) MarshalJSON ¶
func (v CampaignFollowUpTemplateMessage) MarshalJSON() ([]byte, error)
type CampaignFollowUpTextMessage ¶
type CampaignFollowUpTextMessage struct {
Text string `json:"text"`
}
func (CampaignFollowUpTextMessage) MarshalJSON ¶
func (v CampaignFollowUpTextMessage) MarshalJSON() ([]byte, error)
type CampaignFrequencyCap ¶
type CampaignFrequencyCap struct {
MaxPer24Hours *int `json:"maxPer24Hours"`
MaxPer7Days *int `json:"maxPer7Days"`
}
CampaignFrequencyCap holds rolling per-contact limits. A nil limit means no additional limit for that window. MaxPer24Hours is 1..50 and cannot exceed MaxPer7Days (1..200) when both are set.
type CampaignFrequencyCapAnalytics ¶
type CampaignFrequencyCapAnalytics struct {
SkippedRecipientCount int `json:"skippedRecipientCount"`
}
CampaignFrequencyCapAnalytics counts recipients with a message skipped by the cap.
type CampaignFrequencyCapSettings ¶
type CampaignFrequencyCapSettings struct {
CampaignFrequencyCap
TeamID string `json:"teamId"`
Revision int `json:"revision"`
UpdatedAt *int64 `json:"updatedAt"`
}
CampaignFrequencyCapSettings is the team cap. Revision is 0 and UpdatedAt is nil until the team first saves.
type CampaignLaunchApproval ¶
type CampaignLaunchApproval struct {
ID string `json:"id"`
CampaignID string `json:"campaignId"`
Action string `json:"action"`
Status string `json:"status"`
Reasons []string `json:"reasons"`
RecipientCount int64 `json:"recipientCount"`
ScheduledAt *int64 `json:"scheduledAt"`
RequestedBy CampaignApprovalRequester `json:"requestedBy"`
RequestedAt int64 `json:"requestedAt"`
ExpiresAt int64 `json:"expiresAt"`
DecidedBy *string `json:"decidedBy"`
DecidedAt *int64 `json:"decidedAt"`
OperationID *string `json:"operationId"`
}
type CampaignLaunchApprovalSettings ¶
type CampaignLaunchApprovalSettings struct {
RecipientThreshold *int64 `json:"recipientThreshold"`
}
type CampaignLaunchedPayload ¶
type CampaignMessageVariation ¶
type CampaignMessageVariation struct {
Key string `json:"key"`
Weight int `json:"weight"`
Blueprint CampaignBlueprint `json:"blueprint"`
}
type CampaignOperation ¶
type CampaignPausedPayload ¶
type CampaignPausedPayload struct {
CampaignID string `json:"campaignId"`
SentCount int `json:"sentCount"`
RemainingCount int `json:"remainingCount"`
PausedAt int64 `json:"pausedAt"` // Unix seconds.
Reason *string `json:"reason,omitempty"` // Automatic pauses only; open string.
Code *string `json:"code,omitempty"` // Automatic pauses only; open string.
// contains filtered or unexported fields
}
type CampaignProjectParams ¶
type CampaignProjectParams struct{ ProjectID string }
type CampaignRecipient ¶
type CampaignRecipient struct {
FailureReason *CampaignRecipientFailureReason `json:"failureReason"`
MessagesSent int `json:"messagesSent"`
NextMessageAt *float64 `json:"nextMessageAt"`
SequenceError *string `json:"sequenceError"`
ID string `json:"id"`
Phone string `json:"phone"`
Variables PlatformPayload `json:"variables"`
VariantKey *string `json:"variantKey"`
Status string `json:"status"`
Attempts int `json:"attempts"`
LastError *string `json:"lastError"`
ExternalMessageID *string `json:"externalMessageId"`
QueuedAt int64 `json:"queuedAt"`
SentAt *int64 `json:"sentAt"`
DeliveredAt *int64 `json:"deliveredAt"`
ReadAt *int64 `json:"readAt"`
FailedAt *int64 `json:"failedAt"`
RespondedAt *int64 `json:"respondedAt"`
FollowUp *CampaignFollowUpSummary `json:"followUp"`
}
type CampaignRecipientFailureReason ¶
type CampaignRecipientFailureReason string
const ( CampaignFailureOptedOut CampaignRecipientFailureReason = "opted_out" CampaignFailureColdHeld CampaignRecipientFailureReason = "cold_held" CampaignFailureCancelled CampaignRecipientFailureReason = "campaign_cancelled" CampaignFailureInvalidRecipient CampaignRecipientFailureReason = "invalid_recipient" CampaignFailureConnectionNotConnected CampaignRecipientFailureReason = "connection_not_connected" CampaignFailureAckTimeout CampaignRecipientFailureReason = "ack_timeout" CampaignFailureBlockedBySafety CampaignRecipientFailureReason = "blocked_by_safety" CampaignFailureSendFailed CampaignRecipientFailureReason = "send_failed" CampaignFailureMissingVariable CampaignRecipientFailureReason = "missing_variable" CampaignFailureFrequencyCap CampaignRecipientFailureReason = "frequency_cap" CampaignFailureOther CampaignRecipientFailureReason = "other" )
type CampaignRecipientInput ¶
type CampaignRecipientInput struct {
Phone string `json:"phone"`
Variables map[string]CampaignVariable `json:"variables,omitempty"`
}
type CampaignRecipientSentPayload ¶
type CampaignRecipientSentPayload struct {
CampaignID string `json:"campaignId"`
RecipientID string `json:"recipientId"`
Phone string `json:"phone"`
ConnectionKey string `json:"connectionKey"`
ExternalMessageID string `json:"externalMessageId"`
VariantKey string `json:"variantKey"`
Attempt int `json:"attempt"`
// contains filtered or unexported fields
}
type CampaignRecipientSkippedPayload ¶
type CampaignRecipientSkippedPayload struct {
CampaignID string `json:"campaignId"`
RecipientID string `json:"recipientId"`
Phone string `json:"phone"`
Reason string `json:"reason"`
SkippedAt int64 `json:"skippedAt"` // Unix milliseconds.
MessageIndex *int `json:"messageIndex,omitempty"` // Nonnegative sequence position; zero is meaningful.
FollowUpID *string `json:"followUpId,omitempty"` // UUID of a capped follow-up.
// contains filtered or unexported fields
}
type CampaignReplyButton ¶
type CampaignReplyButtons ¶
type CampaignReplyButtons struct {
Body string `json:"body"`
Buttons []CampaignReplyButton `json:"buttons"`
}
func (CampaignReplyButtons) MarshalJSON ¶
func (v CampaignReplyButtons) MarshalJSON() ([]byte, error)
type CampaignReplyChoice ¶
func (CampaignReplyChoice) MarshalJSON ¶
func (v CampaignReplyChoice) MarshalJSON() ([]byte, error)
type CampaignReplyFlow ¶
type CampaignReplyFlowDefinition ¶
type CampaignReplyFlowDefinition struct {
EntryNodeID string `json:"entryNodeId"`
Nodes []CampaignReplyFlowNode `json:"nodes"`
}
type CampaignReplyFlowEdge ¶
type CampaignReplyFlowEdge struct {
Match CampaignReplyFlowMatch `json:"match"`
To string `json:"to"`
}
func (*CampaignReplyFlowEdge) UnmarshalJSON ¶
func (e *CampaignReplyFlowEdge) UnmarshalJSON(data []byte) error
type CampaignReplyFlowForm ¶
type CampaignReplyFlowForm struct {
FlowID string `json:"flowId"`
Body string `json:"body"`
ButtonText string `json:"buttonText"`
Screen string `json:"screen"`
}
func (CampaignReplyFlowForm) MarshalJSON ¶
func (v CampaignReplyFlowForm) MarshalJSON() ([]byte, error)
type CampaignReplyFlowMatch ¶
type CampaignReplyFlowMatch interface {
// contains filtered or unexported methods
}
type CampaignReplyFlowNode ¶
type CampaignReplyFlowNode struct {
ID string `json:"id"`
Send CampaignReplyFlowSend `json:"send,omitempty"`
Edges []CampaignReplyFlowEdge `json:"edges"`
}
func (*CampaignReplyFlowNode) UnmarshalJSON ¶
func (n *CampaignReplyFlowNode) UnmarshalJSON(data []byte) error
type CampaignReplyFlowSend ¶
type CampaignReplyFlowSend interface {
// contains filtered or unexported methods
}
CampaignReplyFlowSend is a closed set of supported public message variants.
type CampaignReplyKeyword ¶
type CampaignReplyKeyword struct {
Value string `json:"value"`
}
func (CampaignReplyKeyword) MarshalJSON ¶
func (v CampaignReplyKeyword) MarshalJSON() ([]byte, error)
type CampaignReplyList ¶
type CampaignReplyList struct {
Body string `json:"body"`
ButtonText string `json:"buttonText"`
Rows []CampaignReplyRow `json:"rows"`
}
func (CampaignReplyList) MarshalJSON ¶
func (v CampaignReplyList) MarshalJSON() ([]byte, error)
type CampaignReplyRow ¶
type CampaignReplySubmission ¶
type CampaignReplySubmission struct{}
func (CampaignReplySubmission) MarshalJSON ¶
func (CampaignReplySubmission) MarshalJSON() ([]byte, error)
type CampaignReplyText ¶
type CampaignReplyText struct {
Text string `json:"text"`
}
func (CampaignReplyText) MarshalJSON ¶
func (v CampaignReplyText) MarshalJSON() ([]byte, error)
type CampaignRequeueResult ¶
type CampaignRequeueResult struct {
Requeued int `json:"requeued"`
}
type CampaignResumedPayload ¶
type CampaignRetargetOutcome ¶
type CampaignRetargetOutcome string
const ( CampaignOutcomeDelivered CampaignRetargetOutcome = "delivered" CampaignOutcomeNotDelivered CampaignRetargetOutcome = "not_delivered" CampaignOutcomeRead CampaignRetargetOutcome = "read" CampaignOutcomeNotRead CampaignRetargetOutcome = "not_read" CampaignOutcomeReplied CampaignRetargetOutcome = "replied" CampaignOutcomeNotReplied CampaignRetargetOutcome = "not_replied" CampaignOutcomeFailed CampaignRetargetOutcome = "failed" )
type CampaignSegmentSnapshot ¶
type CampaignSegmentSnapshot struct {
Revision int `json:"revision"`
EvaluatedAt int64 `json:"evaluatedAt"`
MatchedCount int `json:"matchedCount"`
}
CampaignSegmentSnapshot is what launch froze from a saved segment.
type CampaignSendWindow ¶
type CampaignSendWindow struct {
TimeZone string `json:"timeZone"`
Days []string `json:"days"`
Hours []CampaignSendWindowRange `json:"hours"`
RecipientTimeZone bool `json:"recipientTimeZone"`
TimeZoneVariable string `json:"timeZoneVariable"`
}
type CampaignSendWindowRange ¶
type CampaignSendWindowRequest ¶
type CampaignSendWindowRequest struct {
TimeZone string `json:"timeZone,omitempty"`
Days []string `json:"days"`
Hours []CampaignSendWindowRange `json:"hours"`
RecipientTimeZone *bool `json:"recipientTimeZone,omitempty"`
TimeZoneVariable string `json:"timeZoneVariable,omitempty"`
}
type CampaignSettings ¶
type CampaignSettings struct {
LaunchApproval CampaignLaunchApprovalSettings `json:"launchApproval"`
}
type CampaignStepWindow ¶
type CampaignStepWindow struct {
Days []string `json:"days"`
Hours []CampaignSendWindowRange `json:"hours"`
}
CampaignStepWindow replaces the campaign weekdays and hours for a later drip step. At most four hour ranges, in the campaign's time zone.
type CampaignStopOperation ¶
type CampaignStoppedPayload ¶
type CampaignTestSend ¶
type CampaignTestSend struct {
ID string `json:"id"`
CampaignID string `json:"campaignId"`
Status string `json:"status"`
From CampaignTestSender `json:"from"`
To string `json:"to"`
MessageID *string `json:"messageId"`
Variables map[string]string `json:"variables"`
CreatedAt int64 `json:"createdAt"`
}
type CampaignTestSendRequest ¶
type CampaignTestSendRequest struct {
ConnectionID string `json:"connectionId"`
To string `json:"to"`
SampleRecipientID *string `json:"sampleRecipientId,omitempty"`
Variables *map[string]CampaignVariable `json:"variables,omitempty"`
}
type CampaignTestSender ¶
type CampaignTrackedLink ¶
type CampaignTrackedLinks ¶
type CampaignTrackedLinks []CampaignTrackedLink
func (CampaignTrackedLinks) MarshalJSON ¶
func (v CampaignTrackedLinks) MarshalJSON() ([]byte, error)
type CampaignVariable ¶
type CampaignVariable = UsageDimension
CampaignVariable is a JSON string, number or boolean, as the API accepts.
type CampaignVariableBinding ¶
type CampaignVariableBinding struct {
Extra PlatformPayload `json:"-"`
Source *string `json:"source,omitempty"`
Fallback *string `json:"fallback,omitempty"`
}
CampaignVariableBinding selects a customer field and/or fallback text.
func (CampaignVariableBinding) MarshalJSON ¶
func (v CampaignVariableBinding) MarshalJSON() ([]byte, error)
func (*CampaignVariableBinding) UnmarshalJSON ¶
func (v *CampaignVariableBinding) UnmarshalJSON(b []byte) error
type CampaignVariableMapping ¶
type CampaignVariableMapping map[string]CampaignVariableBinding
func (CampaignVariableMapping) MarshalJSON ¶
func (v CampaignVariableMapping) MarshalJSON() ([]byte, error)
type CampaignVariant ¶
type CampaignVariant struct {
Key string `json:"key"`
Label string `json:"label"`
Weight int `json:"weight"`
Blueprint CampaignBlueprint `json:"blueprint"`
}
type CampaignVariantStrategy ¶
type Campaigns ¶
type Campaigns struct {
// contains filtered or unexported fields
}
func (*Campaigns) AddRecipients ¶
func (r *Campaigns) AddRecipients(ctx context.Context, id string, b AddPlatformCampaignRecipientsRequest, o ...RequestOptions) (Response[Envelope[AddCampaignRecipientsResult]], error)
func (*Campaigns) Analytics ¶
func (r *Campaigns) Analytics(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[PlatformCampaignAnalytics]], error)
func (*Campaigns) Archive ¶
func (r *Campaigns) Archive(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) Conversions ¶
func (r *Campaigns) Conversions(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[CampaignConversionReport]], error)
func (*Campaigns) Create ¶
func (r *Campaigns) Create(ctx context.Context, b CreatePlatformCampaignRequest, o ...RequestOptions) (Response[Envelope[PlatformCampaign]], error)
func (*Campaigns) CreateReplyFlow ¶
func (r *Campaigns) CreateReplyFlow(ctx context.Context, b CreatePlatformCampaignReplyFlowRequest, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
func (*Campaigns) Delete ¶
func (r *Campaigns) Delete(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) Duplicate ¶
func (r *Campaigns) Duplicate(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) Enroll ¶
func (r *Campaigns) Enroll(ctx context.Context, id string, b EnrollPlatformCampaignContactRequest, o ...RequestOptions) (Response[Envelope[CampaignEnrollment]], error)
Enroll adds a contact to a running or paused continuous drip. The write is sent once: per-phone server idempotency does not make an ambiguous retry safe.
func (*Campaigns) Events ¶
func (r *Campaigns) Events(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) ExportRecipients ¶
func (r *Campaigns) ExportRecipients(ctx context.Context, id string, p PlatformCampaignRecipientExportParams, o ...RequestOptions) (Response[CampaignRecipientExportPage], error)
func (*Campaigns) GetFrequencyCap ¶
func (r *Campaigns) GetFrequencyCap(ctx context.Context, o ...RequestOptions) (Response[Envelope[CampaignFrequencyCapSettings]], error)
GetFrequencyCap reads the team cap. Team key with campaigns:read.
func (*Campaigns) GetReplyFlow ¶
func (r *Campaigns) GetReplyFlow(ctx context.Context, id string, p CampaignProjectParams, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
func (*Campaigns) GetSettings ¶
func (r *Campaigns) GetSettings(ctx context.Context, o ...RequestOptions) (Response[Envelope[CampaignSettings]], error)
func (*Campaigns) Launch ¶
func (r *Campaigns) Launch(ctx context.Context, id string, b LaunchPlatformCampaignRequest, o ...RequestOptions) (Response[Envelope[PlatformCampaignOperation]], error)
func (*Campaigns) Links ¶
func (r *Campaigns) Links(ctx context.Context, id string, p CampaignProjectParams, o ...RequestOptions) (Response[Envelope[[]CampaignTrackedLinkReport]], error)
func (*Campaigns) List ¶
func (r *Campaigns) List(ctx context.Context, p ListCampaignsParams, o ...RequestOptions) (Response[Envelope[[]PlatformCampaign]], error)
func (*Campaigns) ListLaunchApprovals ¶
func (r *Campaigns) ListLaunchApprovals(ctx context.Context, id string, p CampaignProjectParams, o ...RequestOptions) (Response[Envelope[[]CampaignLaunchApproval]], error)
func (*Campaigns) Pause ¶
func (r *Campaigns) Pause(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) Recipients ¶
func (r *Campaigns) Recipients(ctx context.Context, id string, p ListPlatformCampaignRecipientsParams, o ...RequestOptions) (Response[CursorEnvelope[CampaignRecipient]], error)
func (*Campaigns) RecordConversion ¶
func (r *Campaigns) RecordConversion(ctx context.Context, id string, b RecordCampaignConversionRequest, o ...RequestOptions) (Response[Envelope[CampaignConversion]], error)
func (*Campaigns) Requeue ¶
func (r *Campaigns) Requeue(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) Reschedule ¶
func (r *Campaigns) Reschedule(ctx context.Context, id string, b ReschedulePlatformCampaignRequest, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) Resume ¶
func (r *Campaigns) Resume(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) Retrieve ¶
func (r *Campaigns) Retrieve(ctx context.Context, id string, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[*PlatformCampaign]], error)
func (*Campaigns) SetReplyFlow ¶
func (r *Campaigns) SetReplyFlow(ctx context.Context, id string, b SetPlatformCampaignReplyFlowRequest, o ...RequestOptions) (Response[Envelope[CampaignReplyFlowAssignment]], error)
func (*Campaigns) Stop ¶
func (r *Campaigns) Stop(ctx context.Context, id string, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Campaigns) TestSend ¶
func (r *Campaigns) TestSend(ctx context.Context, id string, b PlatformCampaignTestSendRequest, o ...RequestOptions) (Response[Envelope[CampaignTestSend]], error)
func (*Campaigns) Update ¶
func (r *Campaigns) Update(ctx context.Context, id string, b *UpdatePlatformCampaignRequest, p PlatformCampaignParams, o ...RequestOptions) (Response[Envelope[PlatformCampaign]], error)
func (*Campaigns) UpdateFrequencyCap ¶
func (r *Campaigns) UpdateFrequencyCap(ctx context.Context, b UpdateCampaignFrequencyCapInput, o ...RequestOptions) (Response[Envelope[CampaignFrequencyCapSettings]], error)
UpdateFrequencyCap replaces both team limits. A stale revision returns a conflict; read again and reconcile. Setting limits requires beta access. Sent once: reconcile a lost response with a fresh read.
type CarouselCard ¶
type CarouselCard struct {
Body string `json:"body"`
Buttons []MessageButton `json:"buttons"`
Image *InteractiveMediaSource `json:"image,omitempty"`
Video *CarouselVideo `json:"video,omitempty"`
}
A card has no footer. Set the footer on CarouselContent instead.
type CarouselContent ¶
type CarouselContent struct {
Body string `json:"body"`
Cards []CarouselCard `json:"cards"`
}
type CarouselVideo ¶
type CarouselVideo struct {
InteractiveMediaSource
Thumbnail *string `json:"thumbnail,omitempty"`
}
type CatalogProductsParams ¶
type Catalogs ¶
type Catalogs struct {
// contains filtered or unexported fields
}
Catalogs reads the Connection's saved Official catalog cache, separately from Graph.
func (*Catalogs) List ¶
func (r *Catalogs) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[CloudCatalogCacheList]], error)
func (*Catalogs) ListProducts ¶
func (r *Catalogs) ListProducts(ctx context.Context, s, id string, q CatalogProductsParams, o ...RequestOptions) (Response[Envelope[CloudCatalogProductPage]], error)
type Channel ¶
type Channel struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ProfileURL string `json:"profileUrl,omitempty"`
Followers *int64 `json:"followers,omitempty"`
Muted *bool `json:"muted,omitempty"`
Preview *bool `json:"preview,omitempty"`
}
type ChannelActionResult ¶
type ChannelActionResult struct {
Status string `json:"status"`
}
type ChannelLiveUpdates ¶
type ChannelLiveUpdates struct {
DurationSeconds int `json:"durationSeconds"`
}
type ChannelMessage ¶
type ChannelMessage struct {
Position int64 `json:"position"`
ID string `json:"id"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
Conversation ConversationReference `json:"conversation"`
Type string `json:"type"`
Timestamp string `json:"timestamp"`
Views int64 `json:"views"`
ReactionCounts map[string]int64 `json:"reactionCounts"`
Text string `json:"text,omitempty"`
}
type ChannelMessagesParams ¶
type ChannelReactionRequest ¶
type ChannelReactionRequest struct {
Reaction string `json:"reaction"`
}
type Channels ¶
type Channels struct {
// contains filtered or unexported fields
}
func (*Channels) Create ¶
func (r *Channels) Create(ctx context.Context, s string, b CreateChannelRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[Channel]]], error)
func (*Channels) Delete ¶
func (r *Channels) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
func (*Channels) Follow ¶
func (r *Channels) Follow(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
func (*Channels) ListMessageUpdates ¶
func (r *Channels) ListMessageUpdates(ctx context.Context, s, id string, p ChannelMessageUpdatesParams, o ...RequestOptions) (Response[Envelope[[]ChannelMessage]], error)
func (*Channels) ListMessages ¶
func (r *Channels) ListMessages(ctx context.Context, s, id string, p ChannelMessagesParams, o ...RequestOptions) (Response[Envelope[[]ChannelMessage]], error)
func (*Channels) MarkMessageViewed ¶
func (r *Channels) MarkMessageViewed(ctx context.Context, s, id, messageID string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
func (*Channels) Mute ¶
func (r *Channels) Mute(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
func (*Channels) ReactToMessage ¶
func (r *Channels) ReactToMessage(ctx context.Context, s, id, messageID string, b ChannelReactionRequest, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
func (*Channels) SubscribeToLiveUpdates ¶
func (r *Channels) SubscribeToLiveUpdates(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelLiveUpdates]]], error)
func (*Channels) Unfollow ¶
func (r *Channels) Unfollow(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
func (*Channels) Unmute ¶
func (r *Channels) Unmute(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[AsyncResult[ChannelActionResult]]], error)
type ChatArchivePayload ¶
type ChatArchivePayload struct {
From WebhookIdentity `json:"from"`
Archive *bool `json:"archive,omitempty"`
Pinned *bool `json:"pinned,omitempty"`
// contains filtered or unexported fields
}
type ChatClearPayload ¶
type ChatClearPayload struct {
From WebhookIdentity `json:"from"`
// contains filtered or unexported fields
}
type ChatDeletePayload ¶
type ChatDeletePayload struct {
From WebhookIdentity `json:"from"`
// contains filtered or unexported fields
}
type ChatMutePayload ¶
type ChatMutePayload struct {
From WebhookIdentity `json:"from"`
Muted bool `json:"muted"`
MuteEndTimestamp *int64 `json:"muteEndTimestamp,omitempty"`
// contains filtered or unexported fields
}
type ChatPresenceData ¶
type ChatPresenceData struct {
Policy string `json:"policy"`
Status string `json:"status"`
UnknownReason string `json:"unknownReason,omitempty"`
Available *bool `json:"available,omitempty"`
LastSeen string `json:"lastSeen,omitempty"`
ObservedAt string `json:"observedAt,omitempty"`
SubscriptionExpiresAt string `json:"subscriptionExpiresAt,omitempty"`
Stale bool `json:"stale"`
TypingPolicy string `json:"typingPolicy"`
TypingStatus string `json:"typingStatus"`
TypingUnknownReason string `json:"typingUnknownReason,omitempty"`
ChatState *struct {
Sender string `json:"sender"`
State string `json:"state"`
Media string `json:"media,omitempty"`
ObservedAt string `json:"observedAt"`
Stale bool `json:"stale"`
} `json:"chatState,omitempty"`
}
type ChatReadPayload ¶
type ChatReadPayload struct {
From WebhookIdentity `json:"from"`
Read bool `json:"read"`
// contains filtered or unexported fields
}
type Chats ¶
type Chats struct {
// contains filtered or unexported fields
}
func (*Chats) DeleteMessage ¶
func (r *Chats) DeleteMessage(ctx context.Context, s, id, message string, transport MessageTransport, opts ...RequestOptions) (Response[Success], error)
func (*Chats) DownloadMessageMedia ¶
func (*Chats) DownloadMessageMediaStream ¶
func (r *Chats) DownloadMessageMediaStream(ctx context.Context, s, id, message string, o ...RequestOptions) (*MediaDownload, error)
func (*Chats) DownloadMessageMediaToFile ¶
func (r *Chats) DownloadMessageMediaToFile(ctx context.Context, connection, chat, message, path string, file MediaFileOptions, o ...RequestOptions) (APIMediaFileResult, error)
func (*Chats) EditMessage ¶
func (r *Chats) EditMessage(ctx context.Context, s, id, message string, b EditMessageRequest, opts ...RequestOptions) (Response[Success], error)
func (*Chats) GetServiceWindow ¶
func (r *Chats) GetServiceWindow(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[CustomerServiceWindow]], error)
func (*Chats) List ¶
func (r *Chats) List(ctx context.Context, s string, p ListHistoryChatsParams, o ...RequestOptions) (Response[HistoryPage[HistoryChat]], error)
func (*Chats) ListMessages ¶
func (r *Chats) ListMessages(ctx context.Context, s, id string, p ListHistoryMessagesParams, o ...RequestOptions) (Response[HistoryPage[HistoryMessage]], error)
func (*Chats) Retrieve ¶
func (r *Chats) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[HistoryChat]], error)
func (*Chats) RetrieveMessage ¶
func (r *Chats) RetrieveMessage(ctx context.Context, s, id, message string, o ...RequestOptions) (Response[Envelope[HistoryMessage]], error)
func (*Chats) SetDisappearingTimer ¶
func (r *Chats) SetDisappearingTimer(ctx context.Context, s, id string, b DisappearingTimerRequest, o ...RequestOptions) (Response[Success], error)
type CheckCallRequest ¶
type CheckContactResult ¶
type CheckContactResult struct {
ConversationReference
Exists bool `json:"exists"`
}
type ClientRules ¶
type ClientRules struct {
RecipientMode string `json:"recipientMode"`
AllowedActions string `json:"allowedActions"`
RateLimit int `json:"rateLimit"`
MaxDaily int `json:"maxDaily"`
AllowedOrigins string `json:"allowedOrigins"`
ConversationTTLSeconds *int `json:"conversationTtlSeconds,omitempty"`
MaxConcurrency *int `json:"maxConcurrency,omitempty"`
MaxSetupsPerMinute *int `json:"maxSetupsPerMinute,omitempty"`
AllowedNumber string `json:"allowedNumber,omitempty"`
}
type ClientTokenValue ¶
func (ClientTokenValue) GoString ¶
func (v ClientTokenValue) GoString() string
func (ClientTokenValue) String ¶
func (v ClientTokenValue) String() string
type ClientTokens ¶
type ClientTokens struct {
// contains filtered or unexported fields
}
func (*ClientTokens) DeleteRules ¶
func (r *ClientTokens) DeleteRules(ctx context.Context, s string, o ...RequestOptions) (Response[Success], error)
func (*ClientTokens) Mint ¶
func (r *ClientTokens) Mint(ctx context.Context, b MintClientTokenRequest, o ...RequestOptions) (Response[Envelope[ClientTokenValue]], error)
func (*ClientTokens) RetrieveRules ¶
func (r *ClientTokens) RetrieveRules(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ClientRules]], error)
func (*ClientTokens) UpdateRules ¶
func (r *ClientTokens) UpdateRules(ctx context.Context, s string, b SetClientRulesRequest, o ...RequestOptions) (Response[Success], error)
type CloudAccountStatusPayload ¶
type CloudAccountStatusPayload struct {
Source string `json:"source"`
Kind string `json:"kind"`
WABAID string `json:"wabaId,omitempty"`
Value PlatformPayload `json:"value"`
// contains filtered or unexported fields
}
type CloudCatalogAttempt ¶
type CloudCatalogCacheList ¶
type CloudCatalogCacheList struct {
Catalogs []CloudCatalogSync `json:"catalogs"`
}
type CloudCatalogCacheProduct ¶
type CloudCatalogCacheProduct struct {
ID string `json:"id"`
RetailerID string `json:"retailerId,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Price string `json:"price,omitempty"`
Currency string `json:"currency,omitempty"`
Availability string `json:"availability,omitempty"`
ReviewStatus string `json:"reviewStatus,omitempty"`
Visibility string `json:"visibility,omitempty"`
ImageURL string `json:"imageUrl,omitempty"`
URL string `json:"url,omitempty"`
}
type CloudCatalogList ¶
type CloudCatalogList struct {
Data []CloudProductCatalog `json:"data"`
Paging *CloudGraphPaging `json:"paging,omitempty"`
}
type CloudCatalogProduct ¶
type CloudCatalogProductList ¶
type CloudCatalogProductList struct {
Data []CloudCatalogProduct `json:"data"`
Paging *CloudGraphPaging `json:"paging,omitempty"`
}
type CloudCatalogProductPage ¶
type CloudCatalogProductPage struct {
Catalog CloudCatalogSync `json:"catalog"`
Products []CloudCatalogCacheProduct `json:"products"`
NextCursor string `json:"nextCursor,omitempty"`
}
type CloudCatalogSync ¶
type CloudCatalogSync struct {
CatalogID string `json:"catalogId"`
SyncedAt *string `json:"syncedAt"`
Stale bool `json:"stale"`
ProductCount int `json:"productCount"`
LastAttempt CloudCatalogAttempt `json:"lastAttempt"`
}
type CloudCatalogs ¶
type CloudCatalogs struct {
// contains filtered or unexported fields
}
func (*CloudCatalogs) List ¶
func (r *CloudCatalogs) List(ctx context.Context, waba string, p ListCloudCatalogsParams, o ...RequestOptions) (Response[CloudCatalogList], error)
func (*CloudCatalogs) ListProducts ¶
func (r *CloudCatalogs) ListProducts(ctx context.Context, waba, catalog string, p ListCloudCatalogProductsParams, o ...RequestOptions) (Response[CloudCatalogProductList], error)
type CloudCredentialHealth ¶
type CloudCredentialHealth struct {
Status string `json:"status"`
CheckedAt *string `json:"checkedAt"`
NextCheckAt *string `json:"nextCheckAt"`
Token struct {
Status string `json:"status"`
ExpiresAt *string `json:"expiresAt"`
} `json:"token"`
MissingPermissions []string `json:"missingPermissions"`
PhoneRegistration string `json:"phoneRegistration"`
WebhookSubscription string `json:"webhookSubscription"`
FailureCode *string `json:"failureCode"`
}
type CloudGraphCursors ¶
type CloudGraphPaging ¶
type CloudGraphPaging struct {
Cursors CloudGraphCursors `json:"cursors"`
}
type CloudGraphVersion ¶
type CloudGraphVersion struct{ Version string }
type CloudHistorySyncPayload ¶
type CloudHistorySyncPayload struct {
Kind string `json:"kind"`
Value PlatformPayload `json:"value"`
// contains filtered or unexported fields
}
type CloudMarketing ¶
type CloudMarketing struct {
// contains filtered or unexported fields
}
func (*CloudMarketing) GetStatus ¶
func (r *CloudMarketing) GetStatus(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[MarketingMessagesStatus]], error)
func (*CloudMarketing) Status ¶
func (r *CloudMarketing) Status(ctx context.Context, waba string, p CloudGraphVersion, o ...RequestOptions) (Response[CloudMarketingStatus], error)
type CloudMarketingOwnerBusiness ¶
type CloudMarketingOwnerBusiness struct {
MarketingMessagesOnboardingStatus *CloudMarketingTerms `json:"marketing_messages_onboarding_status,omitempty"`
}
type CloudMarketingStatus ¶
type CloudMarketingStatus struct {
OwnerBusinessInfo *CloudMarketingOwnerBusiness `json:"owner_business_info,omitempty"`
DisableMarketingMessagesOnCloudAPI *bool `json:"disable_marketing_messages_on_cloud_api,omitempty"`
ID string `json:"id"`
MarketingMessagesOnboardingStatus string `json:"marketing_messages_onboarding_status,omitempty"`
}
type CloudMarketingTerms ¶
type CloudMessagePayload ¶
type CloudMessagePayload struct {
Order *CloudOrder `json:"order,omitempty"`
ID string `json:"id"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
Conversation WebhookConversation `json:"conversation"`
Timestamp string `json:"timestamp"`
Type string `json:"type"`
SenderName string `json:"senderName,omitempty"`
NativeFlowResponse *NativeFlowResponse `json:"nativeFlowResponse,omitempty"`
ReplyChoice *ReplyChoice `json:"replyChoice,omitempty"`
ParentMessageID string `json:"parentMessageId,omitempty"`
Interactive PlatformPayload `json:"interactive,omitempty"`
Referral *CloudMessageReferral `json:"referral,omitempty"`
Extra PlatformPayload `json:"-"`
// contains filtered or unexported fields
}
func (CloudMessagePayload) MarshalJSON ¶
func (v CloudMessagePayload) MarshalJSON() ([]byte, error)
func (*CloudMessagePayload) UnmarshalJSON ¶
func (v *CloudMessagePayload) UnmarshalJSON(b []byte) error
type CloudMessageReferral ¶
type CloudMessageReferral struct {
SourceType string `json:"source_type,omitempty"`
SourceID string `json:"source_id,omitempty"`
SourceURL string `json:"source_url,omitempty"`
CTWAClid string `json:"ctwa_clid,omitempty"`
Extra PlatformPayload `json:"-"`
}
func (CloudMessageReferral) MarshalJSON ¶
func (v CloudMessageReferral) MarshalJSON() ([]byte, error)
func (*CloudMessageReferral) UnmarshalJSON ¶
func (v *CloudMessageReferral) UnmarshalJSON(b []byte) error
type CloudOnboarding ¶
type CloudOnboarding struct {
// contains filtered or unexported fields
}
func (*CloudOnboarding) Advance ¶
func (r *CloudOnboarding) Advance(ctx context.Context, b EmbeddedSignupRequest, o ...RequestOptions) (Response[Envelope[struct { Stage string `json:"stage"` }]], error)
type CloudOrder ¶
type CloudOrder struct {
CatalogID string `json:"catalogId"`
Text string `json:"text,omitempty"`
Items []CloudOrderItem `json:"items"`
}
type CloudOrderItem ¶
type CloudProductCatalog ¶
type CloudReauthorization ¶
type CloudReauthorization struct {
}
type CloudSyncRequest ¶
type CloudSyncStatus ¶
type CloudSyncStatus struct {
Contacts CloudSyncRequest `json:"contacts"`
History CloudSyncRequest `json:"history"`
}
type CloudTemplate ¶
type CloudTemplate struct {
ID string `json:"id"`
TenantID string `json:"tenantId"`
Connection string `json:"connection"`
WABAID string `json:"wabaId"`
Name string `json:"name"`
Language string `json:"language"`
Category string `json:"category"`
Status string `json:"status"`
Components []json.RawMessage `json:"components"`
MetaTemplateID string `json:"metaTemplateId,omitempty"`
RejectionReason string `json:"rejectionReason,omitempty"`
QualityScore string `json:"qualityScore,omitempty"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type CloudTemplateStatusPayload ¶
type CloudTemplateStatusPayload struct {
Kind string `json:"kind"`
Event string `json:"event,omitempty"`
TemplateID string `json:"templateId,omitempty"`
TemplateName string `json:"templateName,omitempty"`
Language string `json:"language,omitempty"`
Reason string `json:"reason,omitempty"`
PreviousQualityScore string `json:"previousQualityScore,omitempty"`
NewQualityScore string `json:"newQualityScore,omitempty"`
WABAID string `json:"wabaId,omitempty"`
// contains filtered or unexported fields
}
type CloudTemplates ¶
type CloudTemplates struct {
// contains filtered or unexported fields
}
func (*CloudTemplates) Create ¶
func (r *CloudTemplates) Create(ctx context.Context, s string, b CreateCloudTemplateRequest, o ...RequestOptions) (Response[Envelope[CloudTemplate]], error)
func (*CloudTemplates) Delete ¶
func (r *CloudTemplates) Delete(ctx context.Context, s, name string, o ...RequestOptions) (Response[Success], error)
func (*CloudTemplates) List ¶
func (r *CloudTemplates) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[[]CloudTemplate]], error)
func (*CloudTemplates) Retrieve ¶
func (r *CloudTemplates) Retrieve(ctx context.Context, s, name, language string, o ...RequestOptions) (Response[Envelope[CloudTemplate]], error)
func (*CloudTemplates) Update ¶
func (r *CloudTemplates) Update(ctx context.Context, s, name, language string, b EditCloudTemplateRequest, o ...RequestOptions) (Response[Envelope[EditCloudTemplateResult]], error)
type CommandResultPayload ¶
type CommandResultPayload struct {
RequestID string `json:"requestId"`
Command string `json:"command"`
Success bool `json:"success"`
Data PlatformPayload `json:"data,omitempty"`
Error string `json:"error,omitempty"`
// contains filtered or unexported fields
}
type ConfigurationSource ¶
type ConfigurationSource string
type ConfigurationValueSource ¶
type ConfigurationValueSource string
type ConfirmPasskeyRequest ¶
type Connection ¶
type Connection struct {
SignalMode *SignalCustodyMode `json:"signalMode,omitempty"`
ConnectionID string `json:"connectionId"`
Name string `json:"name"`
ExternalID string `json:"externalId,omitempty"`
TenantID string `json:"tenantId"`
Type ConnectionType `json:"type"`
Method ConnectionMethod `json:"method"`
PhoneNumberID string `json:"phoneNumberId,omitempty"`
TestMode bool `json:"testMode"`
Status string `json:"status"`
StatusReason string `json:"statusReason,omitempty"`
Configuration *ConnectionConfigurationView `json:"configuration,omitempty"`
NewChatCapping *NewChatCapping `json:"newChatCapping,omitempty"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
OperationID string `json:"operationId,omitempty"`
}
func (*Connection) UnmarshalJSON ¶
func (v *Connection) UnmarshalJSON(b []byte) error
type ConnectionBan ¶
type ConnectionBans ¶
type ConnectionBans struct {
// contains filtered or unexported fields
}
func (*ConnectionBans) List ¶
func (r *ConnectionBans) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]ConnectionBan]], error)
func (*ConnectionBans) ListActive ¶
func (r *ConnectionBans) ListActive(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]ConnectionBan]], error)
type ConnectionBatchRemoveResult ¶
type ConnectionBatchRemoveResult struct {
Removed int `json:"removed"`
}
type ConnectionBatchRequest ¶
type ConnectionBatchStopResult ¶
type ConnectionBatchStopResult struct {
Stopping int `json:"stopping"`
}
type ConnectionCallRecord ¶
type ConnectionCallRecord struct {
CallID string `json:"callId"`
ProjectID string `json:"projectId"`
ConnectionID string `json:"connectionId"`
Direction string `json:"direction"`
Upstream string `json:"upstream"`
Outcome string `json:"outcome"`
State string `json:"state"`
HasVideo bool `json:"hasVideo"`
Peer *CallPeer `json:"peer"`
StartedAt string `json:"startedAt"`
ConnectedAt *string `json:"connectedAt"`
EndedAt *string `json:"endedAt"`
DurationSeconds *int `json:"durationSeconds"`
EndReason *string `json:"endReason"`
}
ConnectionCallRecord is one call on a Connection, read from the Connection's data region.
type ConnectionCallSettings ¶
type ConnectionCallSettings struct {
// Read-only server projection. Nil is not a coverage guarantee.
SimultaneousCallsCoverageExcludedUntil *string `json:"simultaneousCallsCoverageExcludedUntil"`
SimultaneousCalls bool `json:"simultaneousCalls"`
CallsEnabled bool `json:"callsEnabled"`
ConferenceMode bool `json:"conferenceMode"`
InboundRoute string `json:"inboundRoute"`
SIPTrunkID *string `json:"sipTrunkId"`
SIPClaim bool `json:"sipClaim"`
HostCloudAPICalls bool `json:"hostCloudApiCalls"`
Revision int64 `json:"revision"`
UpdatedAt *string `json:"updatedAt"`
}
type ConnectionCalls ¶
type ConnectionCalls struct {
// contains filtered or unexported fields
}
ConnectionCalls reads a Connection's call history with the other party's identity. Client tokens need the read_calls action.
func (*ConnectionCalls) List ¶
func (r *ConnectionCalls) List(ctx context.Context, s string, p ListConnectionCallsParams, o ...RequestOptions) (Response[ConnectionCallsPage], error)
List returns one page of the Connection's calls, newest first.
type ConnectionCallsPage ¶
type ConnectionCallsPage struct {
Success bool `json:"success"`
Data []ConnectionCallRecord `json:"data"`
NextCursor *string `json:"nextCursor"`
}
ConnectionCallsPage is one page of a Connection's calls, newest first.
type ConnectionCapabilities ¶
type ConnectionCapabilities struct {
Connection string `json:"connection"`
ProjectID string `json:"projectId"`
Status string `json:"status"`
SyncedAt *string `json:"syncedAt"`
CheckedAt *string `json:"checkedAt"`
AccountType *string `json:"accountType"`
Capabilities []ConnectionCapability `json:"capabilities"`
}
type ConnectionCapabilitiesUpdatedPayload ¶
type ConnectionCapabilitiesUpdatedPayload struct {
ConnectionCapabilities
ChangedKeys []string `json:"changedKeys"`
// contains filtered or unexported fields
}
type ConnectionCapability ¶
type ConnectionCapability struct {
Key string `json:"key"`
Source *string `json:"source"`
Kind string `json:"kind"`
Unit *string `json:"unit"`
FeatureValue *bool `json:"-"`
LimitValue *int64 `json:"-"`
}
ConnectionCapability keeps unknown capability keys while narrowing value by kind.
func (ConnectionCapability) MarshalJSON ¶
func (c ConnectionCapability) MarshalJSON() ([]byte, error)
func (*ConnectionCapability) UnmarshalJSON ¶
func (c *ConnectionCapability) UnmarshalJSON(b []byte) error
type ConnectionConfigurationOverrides ¶
type ConnectionConfigurationOverrides struct {
Observation *ObservationConfiguration `json:"observation,omitempty"`
HistorySync *HistorySyncPolicyPatch `json:"historySync,omitempty"`
HMS *HMSConfiguration `json:"hms,omitempty"`
}
type ConnectionConfigurationPatch ¶
type ConnectionConfigurationPatch struct {
Set *ConnectionConfigurationOverrides `json:"set,omitempty"`
Reset []string `json:"reset,omitempty"`
}
type ConnectionConfigurationResource ¶
type ConnectionConfigurationResource struct {
// contains filtered or unexported fields
}
func (*ConnectionConfigurationResource) Retrieve ¶
func (r *ConnectionConfigurationResource) Retrieve(ctx context.Context, o ...RequestOptions) (Response[ConnectionConfigurationView], error)
func (*ConnectionConfigurationResource) Update ¶
func (r *ConnectionConfigurationResource) Update(ctx context.Context, b UpdateConnectionRequest, o ...RequestOptions) (Response[ConnectionConfigurationView], error)
type ConnectionConfigurationSources ¶
type ConnectionConfigurationSources struct {
HistorySyncMode ConfigurationValueSource `json:"historySync.mode"`
HistorySyncRequestFull ConfigurationValueSource `json:"historySync.requestFull"`
HistorySyncDelivery *ConfigurationSource `json:"historySync.delivery,omitempty"`
HMS ConfigurationSource `json:"hms"`
PresenceMode ConfigurationSource `json:"observation.presenceMode"`
TypingMode ConfigurationSource `json:"observation.typingMode"`
LabelMode ConfigurationSource `json:"observation.labelMode"`
QuickReplyMode ConfigurationSource `json:"observation.quickReplyMode"`
}
func (*ConnectionConfigurationSources) UnmarshalJSON ¶
func (v *ConnectionConfigurationSources) UnmarshalJSON(b []byte) error
type ConnectionConfigurationView ¶
type ConnectionConfigurationView struct {
Effective EffectiveConnectionConfiguration `json:"effective"`
Overrides ConnectionConfigurationOverrides `json:"overrides"`
Sources ConnectionConfigurationSources `json:"sources"`
RequestedHistory HistorySyncPolicy `json:"requestedHistory"`
HistoryConsent string `json:"historyConsent,omitempty"`
Revisions struct {
Team int `json:"team"`
Project int `json:"project"`
Connection int `json:"connection"`
} `json:"revisions"`
Application *struct {
DesiredGeneration int `json:"desiredGeneration"`
AppliedGeneration int `json:"appliedGeneration"`
Status string `json:"status"`
} `json:"application,omitempty"`
}
type ConnectionConnectedPayload ¶
type ConnectionConnectedPayload struct {
PhoneNumber string `json:"phoneNumber"`
ID string `json:"id,omitempty"`
PushName string `json:"pushName"`
PhonePlatform string `json:"phonePlatform"`
AccountType string `json:"accountType"`
BusinessName string `json:"businessName,omitempty"`
// contains filtered or unexported fields
}
type ConnectionHybridTransition ¶
type ConnectionHybridTransition struct {
Action string `json:"action"`
SurvivingConnectionID string `json:"survivingConnectionId"`
Status string `json:"status,omitempty"`
FailureReason *string `json:"failureReason,omitempty"`
MetaDisconnectRequired *bool `json:"metaDisconnectRequired,omitempty"`
EffectiveAtMs *int64 `json:"effectiveAtMs,omitempty"`
KeepTransport string `json:"keepTransport,omitempty"`
ExistingConnectionTransport string `json:"existingConnectionTransport,omitempty"`
NewConnectionName string `json:"newConnectionName,omitempty"`
NewConnectionID string `json:"newConnectionId,omitempty"`
AbsorbConnectionID string `json:"absorbConnectionId,omitempty"`
}
type ConnectionMethod ¶
type ConnectionMethod string
const ( ConnectionMethodLinkedDevice ConnectionMethod = "linked_device" ConnectionMethodCloudAPI ConnectionMethod = "cloud_api" ConnectionMethodHybrid ConnectionMethod = "hybrid" )
type ConnectionObservationPolicy ¶
type ConnectionObservationPolicy struct {
ConnectionName string `json:"connectionName"`
ProjectID string `json:"projectId"`
Project ObservationValues `json:"project"`
Override ObservationValues `json:"override"`
Effective ObservationValues `json:"effective"`
}
type ConnectionProjectContext ¶
type ConnectionProjectContext struct {
ProjectID string `json:"projectId,omitempty"`
}
type ConnectionRemoveResult ¶
type ConnectionSafeMode ¶
type ConnectionSafeMode struct {
Connection string `json:"connection"`
ProjectID string `json:"projectId"`
Project SafeModeSettings `json:"project"`
Override SafeModeOverride `json:"override"`
Effective SafeModeSettings `json:"effective"`
Applied *SafeModeApplied `json:"applied"`
Mismatch bool `json:"mismatch"`
Entitled bool `json:"entitled"`
EntitlementReason *string `json:"entitlementReason"`
}
type ConnectionStartResult ¶
type ConnectionStopResult ¶
type ConnectionTierChange ¶
type ConnectionTierChange struct {
ID string `json:"id"`
Status string `json:"status"`
FailureReason *string `json:"failureReason"`
ExpiresAtMs int64 `json:"expiresAtMs"`
Quote ConnectionTierQuote `json:"quote"`
}
type ConnectionTierQuote ¶
type ConnectionTierQuote struct {
Tier string `json:"tier"`
TierOverride *string `json:"tierOverride"`
AmountCents float64 `json:"amountCents"`
PriceVersion string `json:"priceVersion"`
Action string `json:"action"`
EffectiveAtMs int64 `json:"effectiveAtMs"`
ReplacesWindowID *string `json:"replacesWindowId"`
HybridTransition *ConnectionHybridTransition `json:"hybridTransition,omitempty"`
}
type ConnectionTierQuoteRequest ¶
type ConnectionTierQuoteRequest struct {
ProjectID string `json:"projectId,omitempty"`
TierOverride *string `json:"tierOverride"`
HybridResolution *HybridResolution `json:"hybridResolution,omitempty"`
HybridMerge *HybridMerge `json:"hybridMerge,omitempty"`
}
type ConnectionType ¶
type ConnectionType string
const ConnectionTypeWhatsApp ConnectionType = "whatsapp"
type Contact ¶
type Contact struct {
ConversationReference
Name string `json:"name"`
PushName string `json:"pushName"`
BusinessName string `json:"businessName,omitempty"`
ProfileURL string `json:"profileUrl,omitempty"`
}
type ContactBlocklist ¶
type ContactBlocklist struct {
Hash string `json:"hash"`
Contacts []ConversationReference `json:"contacts"`
}
type ContactContent ¶
type ContactContent struct {
VCard string `json:"vcard"`
}
type ContactIdentityChange ¶
type ContactIdentityChange struct {
Reason string `json:"reason"`
MessageID string `json:"messageId"`
Previous *ContactPreviousIdentity `json:"previous,omitempty"`
}
type ContactOptPayload ¶
type ContactPicture ¶
type ContactPicture struct {
URL string `json:"url"`
}
type ContactPreviousIdentity ¶
type ContactUpdatePayload ¶
type ContactUpdatePayload struct {
IdentityChange *ContactIdentityChange `json:"identityChange,omitempty"`
ParentBSUID string `json:"parentBsuid,omitempty"`
ID string `json:"id"`
PhoneNumber string `json:"phoneNumber,omitempty"`
BSUID string `json:"bsuid,omitempty"`
FullName string `json:"fullName,omitempty"`
FirstName string `json:"firstName,omitempty"`
PushName string `json:"pushName,omitempty"`
OldPushName string `json:"oldPushName,omitempty"`
BusinessName string `json:"businessName,omitempty"`
OldBusinessName string `json:"oldBusinessName,omitempty"`
PictureID string `json:"pictureId,omitempty"`
PictureRemoved *bool `json:"pictureRemoved,omitempty"`
Username string `json:"username,omitempty"`
// contains filtered or unexported fields
}
type ContactUserInfo ¶
type ContactUserInfo struct {
ConversationReference
Status string `json:"status"`
PictureID string `json:"pictureId"`
VerifiedName string `json:"verifiedName"`
Devices []struct {
ConversationReference
Device int `json:"device"`
} `json:"devices"`
}
type Contacts ¶
type Contacts struct {
// contains filtered or unexported fields
}
func (*Contacts) Blocklist ¶
func (r *Contacts) Blocklist(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ContactBlocklist]], error)
func (*Contacts) BusinessProfile ¶
func (r *Contacts) BusinessProfile(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[BusinessProfile]], error)
func (*Contacts) Check ¶
func (r *Contacts) Check(ctx context.Context, s string, phones []string, o ...RequestOptions) (Response[Envelope[[]CheckContactResult]], error)
func (*Contacts) Info ¶
func (r *Contacts) Info(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[ContactUserInfo]], error)
func (*Contacts) Picture ¶
func (r *Contacts) Picture(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[ContactPicture]], error)
type ContactsSyncPayload ¶
type ContactsSyncPayload struct {
Kind string `json:"kind"`
Value PlatformPayload `json:"value"`
// contains filtered or unexported fields
}
type ConversationReference ¶
type ConversationReference struct {
ParentBSUID string `json:"parentBsuid,omitempty"`
ID string `json:"id,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
BSUID string `json:"bsuid,omitempty"`
Username string `json:"username,omitempty"`
}
ConversationReference accepts public IDs, E.164 phone numbers, or BSUIDs.
type CreateAudienceFromCampaignRequest ¶
type CreateAudienceFromCampaignRequest struct {
Name string `json:"name"`
CampaignID string `json:"campaignId"`
Outcome CampaignRetargetOutcome `json:"outcome"`
ProjectID *string `json:"projectId,omitempty"`
}
type CreateAudienceProfileImportRequest ¶
type CreateAudienceProfileImportRequest struct {
ReplayKey string `json:"replayKey"`
CSVBase64 string `json:"csvBase64"`
Mapping *AudienceProfileImportMapping `json:"mapping,omitempty"`
}
type CreateAudienceRequest ¶
type CreateAudienceRequest struct {
Name string `json:"name"`
Source string `json:"source,omitempty"`
Members *[]CampaignRecipientInput `json:"members,omitempty"`
FileID string `json:"fileId,omitempty"`
Mapping *AudienceImportMapping `json:"mapping,omitempty"`
}
type CreateAudienceSegmentRequest ¶
type CreateAudienceSegmentRequest struct {
Name string `json:"name"`
Rules AudienceSegmentRules `json:"rules"`
}
type CreateCallLinkRequest ¶
type CreateCallOptOutRequest ¶
type CreateCampaignReplyFlowRequest ¶
type CreateCampaignReplyFlowRequest struct {
Name string `json:"name"`
Definition CampaignReplyFlowDefinition `json:"definition"`
FlowKey *string `json:"flowKey,omitempty"`
Revision *int64 `json:"revision,omitempty"`
}
type CreateCampaignRequest ¶
type CreateCampaignRequest struct {
VariableMapping *CampaignVariableMapping `json:"variableMapping,omitempty"`
TrackedLinks *Nullable[CampaignTrackedLinks] `json:"trackedLinks,omitempty"`
Name string `json:"name"`
TemplateID string `json:"templateId,omitempty"`
RecipientListID string `json:"recipientListId,omitempty"`
SenderConfig PlatformPayload `json:"senderConfig,omitempty"`
ScheduledAt *int64 `json:"scheduledAt,omitempty"`
SendWindow *Nullable[CampaignSendWindowRequest] `json:"sendWindow,omitempty"`
Recipients []CampaignRecipientInput `json:"recipients,omitempty"`
MessageVariations *Nullable[[]CampaignMessageVariation] `json:"messageVariations,omitempty"`
Variants *Nullable[[]CampaignVariant] `json:"variants,omitempty"`
VariantStrategy *Nullable[CampaignVariantStrategy] `json:"variantStrategy,omitempty"`
FollowUp *Nullable[CampaignFollowUp] `json:"followUp,omitempty"`
// FrequencyCap is a beta campaign cap stricter than the team cap; null uses the team cap.
FrequencyCap *Nullable[CampaignFrequencyCap] `json:"frequencyCap,omitempty"`
// Drip is beta; null creates an ordinary campaign.
Drip *Nullable[CampaignDripInput] `json:"drip,omitempty"`
}
func (*CreateCampaignRequest) UnmarshalJSON ¶
func (v *CreateCampaignRequest) UnmarshalJSON(b []byte) error
type CreateChannelRequest ¶
type CreateCloudTemplateRequest ¶
type CreateCloudTemplateRequest struct {
Name string `json:"name"`
Language string `json:"language"`
Category string `json:"category"`
Components []json.RawMessage `json:"components"`
}
type CreateCustomerRequest ¶
type CreateFlowRequest ¶
type CreateFlowRequest struct {
DraftID string `json:"draftId,omitempty"`
Name string `json:"name"`
Definition map[string]json.RawMessage `json:"definition"`
}
type CreateFunctionDeploymentRequest ¶
type CreateFunctionDeploymentRequest struct {
DeploymentID string `json:"deploymentId"`
Source string `json:"source"`
Language string `json:"language"`
Region string `json:"region"`
CompatibilityDate string `json:"compatibilityDate"`
SecretVersionIDs []string `json:"secretVersionIds,omitempty"`
EgressOrigins []string `json:"egressOrigins,omitempty"`
}
type CreateFunctionInvocationRequest ¶
type CreateFunctionInvocationRequest struct {
DeploymentID string `json:"deploymentId,omitempty"`
Request FunctionRequest `json:"request"`
Trigger string `json:"trigger,omitempty"`
}
type CreateFunctionRequest ¶
type CreateFunctionSecretRequest ¶
func (CreateFunctionSecretRequest) GoString ¶
func (r CreateFunctionSecretRequest) GoString() string
func (CreateFunctionSecretRequest) String ¶
func (r CreateFunctionSecretRequest) String() string
type CreateGroupRequest ¶
type CreateLabelRequest ¶
type CreateMessagingWebhookRequest ¶
type CreateMessagingWebhookRequest struct {
Connection string `json:"connection,omitempty"`
URL string `json:"url"`
Events *[]string `json:"events,omitempty"`
HMACKey string `json:"hmacKey,omitempty"`
Retries *WebhookRetryConfig `json:"retries,omitempty"`
Headers *[]WebhookHeader `json:"headers,omitempty"`
Format string `json:"format,omitempty"`
}
func (CreateMessagingWebhookRequest) GoString ¶
func (b CreateMessagingWebhookRequest) GoString() string
func (CreateMessagingWebhookRequest) String ¶
func (CreateMessagingWebhookRequest) String() string
type CreatePlatformCampaignReplyFlowRequest ¶
type CreatePlatformCampaignReplyFlowRequest struct {
CreateCampaignReplyFlowRequest
ProjectID string `json:"projectId"`
}
type CreatePlatformCampaignRequest ¶
type CreatePlatformCampaignRequest struct {
VariableMapping *CampaignVariableMapping `json:"variableMapping,omitempty"`
TrackedLinks *Nullable[CampaignTrackedLinks] `json:"trackedLinks,omitempty"`
ProjectID string `json:"projectId"`
Name string `json:"name"`
TemplateID string `json:"templateId,omitempty"`
RecipientListID string `json:"recipientListId,omitempty"`
SenderConfig PlatformPayload `json:"senderConfig,omitempty"`
ScheduledAt *int64 `json:"scheduledAt,omitempty"`
SendWindow *Nullable[CampaignSendWindowRequest] `json:"sendWindow,omitempty"`
Recipients []CampaignRecipientInput `json:"recipients,omitempty"`
RecipientCount *int `json:"recipientCount,omitempty"`
ComposerBlueprint json.RawMessage `json:"composerBlueprint,omitempty"`
MessagesArray *[]CampaignComposedMessage `json:"messagesArray,omitempty"`
AudienceRef json.RawMessage `json:"audienceRef,omitempty"`
ComplianceConfig json.RawMessage `json:"complianceConfig,omitempty"`
Variants []CampaignVariant `json:"variants,omitempty"`
VariantStrategy *CampaignVariantStrategy `json:"variantStrategy,omitempty"`
MessageVariations []CampaignMessageVariation `json:"messageVariations,omitempty"`
FollowUp *Nullable[CampaignFollowUp] `json:"followUp,omitempty"`
FrequencyCap *Nullable[CampaignFrequencyCap] `json:"frequencyCap,omitempty"`
// SegmentID is a beta saved segment evaluated at launch. The create schema
// permits omission, not null, and cannot combine it with RecipientListID.
SegmentID string `json:"segmentId,omitempty"`
Drip *Nullable[CampaignDripInput] `json:"drip,omitempty"`
}
func (*CreatePlatformCampaignRequest) UnmarshalJSON ¶
func (v *CreatePlatformCampaignRequest) UnmarshalJSON(b []byte) error
type CreateProjectRequest ¶
type CreateProjectRequest struct {
Name string `json:"name"`
Icon *ProjectIcon `json:"icon,omitempty"`
DefaultTier string `json:"defaultTier,omitempty"`
}
type CreateProjectTemplateRequest ¶
type CreateProjectTemplateRequest struct {
Name string `json:"name"`
Definition TemplateDefinition `json:"definition"`
SampleValues map[string]string `json:"sampleValues,omitempty"`
}
type CreateQuickLinkRequest ¶
type CreateQuickLinkRequest struct {
SignalMode *SignalCustodyMode `json:"signalMode,omitempty"`
BillingControls *BillingControls `json:"billingControls,omitempty"`
Purpose string `json:"purpose,omitempty"`
Connection string `json:"connection,omitempty"`
ConnectionGoal string `json:"connectionGoal,omitempty"`
AddMethod string `json:"addMethod,omitempty"`
ProjectID string `json:"projectId,omitempty"`
CustomerID string `json:"customerId,omitempty"`
ExternalID string `json:"externalId,omitempty"`
Configuration *QuickLinkConfiguration `json:"configuration,omitempty"`
}
func (*CreateQuickLinkRequest) UnmarshalJSON ¶
func (v *CreateQuickLinkRequest) UnmarshalJSON(b []byte) error
Reject unknown aliases and null named fields before decoding can discard them.
type CreateSIPTrunkRequest ¶
type CreateSIPTrunkRequest struct {
Name string `json:"name"`
Enabled *bool `json:"enabled,omitempty"`
Direction string `json:"direction"`
Outbound *SIPOutboundInput `json:"outbound,omitempty"`
Inbound *SIPInboundInput `json:"inbound,omitempty"`
Codecs *[]string `json:"codecs,omitempty"`
MaxConcurrentCalls *int `json:"maxConcurrentCalls,omitempty"`
}
type CreateVoiceProviderCredentialRequest ¶
type CreateVoiceProviderCredentialRequest struct {
Provider string `json:"provider"`
Label string `json:"label"`
APIKey string `json:"apiKey"`
ProjectID *Nullable[string] `json:"projectId,omitempty"`
}
func (CreateVoiceProviderCredentialRequest) GoString ¶
func (v CreateVoiceProviderCredentialRequest) GoString() string
func (CreateVoiceProviderCredentialRequest) String ¶
func (CreateVoiceProviderCredentialRequest) String() string
type CreateWebhookRequest ¶
type CreateWebhookRequest struct {
Batching *WebhookBatchingInput `json:"batching,omitempty"`
URL string `json:"url"`
EventTypes []string `json:"eventTypes"`
Enabled *bool `json:"enabled,omitempty"`
Format string `json:"format,omitempty"`
RetryPolicy *WebhookRetryPolicy `json:"retryPolicy,omitempty"`
Headers []WebhookHeaderInput `json:"headers,omitempty"`
}
type CreatedCallLink ¶
type CreatedCustomerPairingLink ¶
type CreatedCustomerPairingLink struct {
CustomerPairingLink
URL *string `json:"url"`
}
type Credential ¶
type Credential struct {
Kind CredentialKind
Value string
}
func (Credential) GoString ¶
func (c Credential) GoString() string
func (Credential) String ¶
func (c Credential) String() string
String deliberately redacts the bearer credential.
type CredentialKind ¶
type CredentialKind string
const ( TeamAPIKey CredentialKind = "teamApiKey" ProjectToken CredentialKind = "projectToken" ClientToken CredentialKind = "clientToken" )
type CursorEnvelope ¶
type CursorPage ¶
type CursorPage[T any] struct { Items []T NextCursor string NextOffset string HighWatermark string Metadata Metadata // contains filtered or unexported fields }
CursorPage supports manual NextPage and lazy All iteration. It does not fetch another page until the consumer asks for it.
func PaginateRaw ¶
func PaginateRaw[T any](ctx context.Context, client RawRequester, request RawRequest, decode RawPageDecoder[T], options ...RawPaginationOptions) (*CursorPage[T], error)
PaginateRaw loads one page using an application decoder. Use NextPage or All on the result to continue lazily. cursorParameter defaults to "cursor".
func (*CursorPage[T]) HasMore ¶
func (p *CursorPage[T]) HasMore() bool
func (*CursorPage[T]) NextPage ¶
func (p *CursorPage[T]) NextPage(ctx context.Context) (*CursorPage[T], error)
type Customer ¶
type Customer struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
ProjectID string `json:"projectId"`
Name *string `json:"name"`
ExternalCustomerID *string `json:"externalCustomerId"`
Status string `json:"status"`
IsDefault bool `json:"isDefault"`
ArchivedAt *int64 `json:"archivedAt"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type CustomerArchivedPayload ¶
type CustomerArchivedPayload = CustomerEventPayload
type CustomerArchivingPayload ¶
type CustomerArchivingPayload struct {
CustomerEventPayload
BlockingConnectionCount int `json:"blockingConnectionCount"`
RevokedPairingLinkCount int `json:"revokedPairingLinkCount"`
}
type CustomerConnection ¶
type CustomerConnection struct {
ID string `json:"id"`
CustomerID string `json:"customerId"`
ConnectionID string `json:"connectionId"`
Name *string `json:"name"`
PhoneMasked *string `json:"phoneMasked"`
Status string `json:"status"`
Backend *string `json:"backend"`
CreatedAt int64 `json:"createdAt"`
}
type CustomerConnectionAttachedPayload ¶
type CustomerConnectionAttachedPayload struct {
CustomerEventPayload
ConnectionID string `json:"connectionId"`
PairingLinkID string `json:"pairingLinkId,omitempty"`
}
type CustomerConnectionDisconnectedPayload ¶
type CustomerConnectionDisconnectedPayload struct {
CustomerEventPayload
ConnectionID string `json:"connectionId"`
Reason string `json:"reason"`
}
type CustomerConnectionTransferredPayload ¶
type CustomerConnectionTransferredPayload struct {
CustomerEventPayload
ConnectionID string `json:"connectionId"`
SourceCustomerID string `json:"sourceCustomerId"`
}
type CustomerCreatedPayload ¶
type CustomerCreatedPayload = CustomerEventPayload
type CustomerEnabledPayload ¶
type CustomerEnabledPayload struct {
CustomerEventPayload
MigratedConnectionCount int `json:"migratedConnectionCount"`
}
type CustomerEvent ¶
type CustomerEvent struct {
ID string `json:"id"`
Action string `json:"action"`
FromStatus *string `json:"fromStatus"`
ToStatus *string `json:"toStatus"`
ConnectionID *string `json:"connectionId"`
PairingLinkID *string `json:"pairingLinkId"`
Metadata CustomerEventMetadata `json:"metadata"`
OccurredAt int64 `json:"occurredAt"`
}
type CustomerEventMetadata ¶
type CustomerEventMetadata struct {
Fields []string `json:"fields,omitempty"`
}
type CustomerEventPayload ¶
type CustomerPairingLink ¶
type CustomerPairingLink struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
ProjectID string `json:"projectId"`
CustomerID string `json:"customerId"`
ExpectedPhoneMasked *string `json:"expectedPhoneMasked"`
Methods []string `json:"methods"`
Locale *string `json:"locale"`
Theme *string `json:"theme"`
ExpiresAt int64 `json:"expiresAt"`
Status string `json:"status"`
AttemptCount int `json:"attemptCount"`
MaxAttempts int `json:"maxAttempts"`
PendingConnectionID *string `json:"pendingConnectionId"`
CreatedBy *string `json:"createdBy"`
ReservedAt *int64 `json:"reservedAt"`
OpenedAt *int64 `json:"openedAt"`
ConnectingAt *int64 `json:"connectingAt"`
ConnectedAt *int64 `json:"connectedAt"`
FailedAt *int64 `json:"failedAt"`
ExpiredAt *int64 `json:"expiredAt"`
RevokedAt *int64 `json:"revokedAt"`
LastErrorCode *string `json:"lastErrorCode"`
FailedExchangeCount int `json:"failedExchangeCount"`
PhoneMismatchCount int `json:"phoneMismatchCount"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type CustomerPairingLinkConnectedPayload ¶
type CustomerPairingLinkConnectedPayload struct {
CustomerPairingLinkPayload
ConnectionID string `json:"connectionId"`
}
type CustomerPairingLinkCreatedPayload ¶
type CustomerPairingLinkCreatedPayload = CustomerPairingLinkPayload
type CustomerPairingLinkExpiredPayload ¶
type CustomerPairingLinkExpiredPayload = CustomerPairingLinkPayload
type CustomerPairingLinkFailedPayload ¶
type CustomerPairingLinkFailedPayload struct {
CustomerPairingLinkPayload
ErrorCode string `json:"errorCode"`
}
type CustomerPairingLinkOpenedPayload ¶
type CustomerPairingLinkOpenedPayload = CustomerPairingLinkPayload
type CustomerPairingLinkPayload ¶
type CustomerPairingLinkPayload struct {
CustomerEventPayload
PairingLinkID string `json:"pairingLinkId"`
}
type CustomerPairingLinkRevokedPayload ¶
type CustomerPairingLinkRevokedPayload struct {
CustomerPairingLinkPayload
Reason string `json:"reason,omitempty"`
}
type CustomerProjectRequest ¶
type CustomerProjectRequest struct {
ProjectID string `json:"projectId,omitempty"`
}
type CustomerRestoredPayload ¶
type CustomerRestoredPayload = CustomerEventPayload
type CustomerServiceWindow ¶
type CustomerServiceWindow struct {
State string `json:"state"`
Reason *string `json:"reason"`
OpenedAt *string `json:"openedAt"`
ExpiresAt *string `json:"expiresAt"`
CheckedAt string `json:"checkedAt"`
}
CustomerServiceWindow is observed state; unknown never authorizes a send.
type CustomerSignalCustodyUpdate ¶
type CustomerSignalCustodyUpdate struct {
ExpectedRevision int64 `json:"expectedRevision"`
SignalModeDefault Nullable[SignalCustodyMode] `json:"signalModeDefault"`
}
A zero Nullable SignalModeDefault restores Customer inheritance.
type CustomerSummary ¶
type CustomerSummary struct {
Customer
ConnectionCount int `json:"connectionCount"`
ConnectedConnectionCount int `json:"connectedConnectionCount"`
ActivePairingLinkState *string `json:"activePairingLinkState"`
LastActivityAt *int64 `json:"lastActivityAt"`
NeedsAttention bool `json:"needsAttention"`
}
type CustomerUpdatedPayload ¶
type CustomerUpdatedPayload struct {
CustomerEventPayload
Fields []string `json:"fields"`
}
type Customers ¶
type Customers struct {
// contains filtered or unexported fields
}
func (*Customers) Archive ¶
func (r *Customers) Archive(ctx context.Context, id string, b CustomerProjectRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
func (*Customers) Create ¶
func (r *Customers) Create(ctx context.Context, b CreateCustomerRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
func (*Customers) CreatePairingLink ¶
func (r *Customers) CreatePairingLink(ctx context.Context, id string, b CreateCustomerPairingLinkRequest, o ...RequestOptions) (Response[Envelope[CreatedCustomerPairingLink]], error)
func (*Customers) Enable ¶
func (r *Customers) Enable(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[CustomersEnablement]], error)
func (*Customers) GetSignalCustody ¶
func (r *Customers) GetSignalCustody(ctx context.Context, project, customer string, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
func (*Customers) List ¶
func (r *Customers) List(ctx context.Context, p ListCustomersParams, o ...RequestOptions) (Response[CursorEnvelope[CustomerSummary]], error)
func (*Customers) ListConnections ¶
func (r *Customers) ListConnections(ctx context.Context, id, project string, o ...RequestOptions) (Response[Envelope[[]CustomerConnection]], error)
func (*Customers) ListEvents ¶
func (r *Customers) ListEvents(ctx context.Context, id string, p ListCustomerEventsParams, o ...RequestOptions) (Response[Envelope[[]CustomerEvent]], error)
func (*Customers) ListPairingLinks ¶
func (r *Customers) ListPairingLinks(ctx context.Context, id, project string, o ...RequestOptions) (Response[Envelope[[]CustomerPairingLink]], error)
func (*Customers) Restore ¶
func (r *Customers) Restore(ctx context.Context, id string, b CustomerProjectRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
func (*Customers) RevokePairingLink ¶
func (r *Customers) RevokePairingLink(ctx context.Context, id, link, project string, o ...RequestOptions) (Response[Envelope[CustomerPairingLink]], error)
func (*Customers) Status ¶
func (r *Customers) Status(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[CustomersStatus]], error)
func (*Customers) TransferConnection ¶
func (r *Customers) TransferConnection(ctx context.Context, id, connection string, b TransferCustomerConnectionRequest, o ...RequestOptions) (Response[Envelope[CustomerConnection]], error)
func (*Customers) Update ¶
func (r *Customers) Update(ctx context.Context, id string, b UpdateCustomerRequest, o ...RequestOptions) (Response[Envelope[Customer]], error)
func (*Customers) UpdateSignalCustody ¶
func (r *Customers) UpdateSignalCustody(ctx context.Context, project, customer string, b CustomerSignalCustodyUpdate, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
type CustomersEnablement ¶
type CustomersEnablement struct {
CustomersStatus
MigratedConnectionCount int `json:"migratedConnectionCount"`
}
type CustomersStatus ¶
type DeletedQuickReply ¶
type DirectHistorySyncCommon ¶
type DirectHistorySyncCommon struct {
Delivery string `json:"delivery"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
OriginalWhatsAppIDs *WhatsAppMessageIDs `json:"original_whatsapp_ids,omitempty"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
OriginalWhatsAppID string `json:"original_whatsapp_id,omitempty"`
SyncType string `json:"syncType"`
ChunkOrder *uint64 `json:"chunkOrder,omitempty"`
Progress *int `json:"progress,omitempty"`
FileLength uint64 `json:"fileLength"`
OldestMessageAt *string `json:"oldestMessageAt,omitempty"`
PeerDataRequestSessionID *string `json:"peerDataRequestSessionId,omitempty"`
// contains filtered or unexported fields
}
DirectHistorySyncCommon carries projected public IDs. Retry identity is the linked_devices ID, never the event UUID. Length checks belong to downloaders.
type DirectHistorySyncInline ¶
func (DirectHistorySyncInline) GoString ¶
func (v DirectHistorySyncInline) GoString() string
func (DirectHistorySyncInline) MarshalJSON ¶
func (DirectHistorySyncInline) MarshalJSON() ([]byte, error)
func (DirectHistorySyncInline) String ¶
func (DirectHistorySyncInline) String() string
type DirectHistorySyncInlinePayload ¶
type DirectHistorySyncInlinePayload struct {
DirectHistorySyncCommon
Inline DirectHistorySyncInline `json:"inline"`
}
func (DirectHistorySyncInlinePayload) GoString ¶
func (v DirectHistorySyncInlinePayload) GoString() string
func (DirectHistorySyncInlinePayload) MarshalJSON ¶
func (DirectHistorySyncInlinePayload) MarshalJSON() ([]byte, error)
func (DirectHistorySyncInlinePayload) String ¶
func (DirectHistorySyncInlinePayload) String() string
type DirectHistorySyncMedia ¶
type DirectHistorySyncMedia struct {
Type string `json:"type"`
DirectPath string `json:"directPath"`
MediaKey string `json:"mediaKey"`
FileSHA256 string `json:"fileSha256"`
FileEncSHA256 string `json:"fileEncSha256"`
EncHandle *string `json:"encHandle,omitempty"`
}
func (DirectHistorySyncMedia) GoString ¶
func (v DirectHistorySyncMedia) GoString() string
func (DirectHistorySyncMedia) MarshalJSON ¶
func (DirectHistorySyncMedia) MarshalJSON() ([]byte, error)
Descriptor-bearing diagnostic serialization follows the media descriptor policy. The original signed webhook bytes remain on WebhookEvent.Payload.
func (DirectHistorySyncMedia) String ¶
func (DirectHistorySyncMedia) String() string
type DirectHistorySyncMediaPayload ¶
type DirectHistorySyncMediaPayload struct {
DirectHistorySyncCommon
Media DirectHistorySyncMedia `json:"media"`
}
func (DirectHistorySyncMediaPayload) GoString ¶
func (v DirectHistorySyncMediaPayload) GoString() string
func (DirectHistorySyncMediaPayload) MarshalJSON ¶
func (DirectHistorySyncMediaPayload) MarshalJSON() ([]byte, error)
func (DirectHistorySyncMediaPayload) String ¶
func (DirectHistorySyncMediaPayload) String() string
type DisappearingTimerRequest ¶
type DisappearingTimerRequest struct {
DurationSeconds int `json:"durationSeconds"`
}
type DownloadHistoryChunkOptions ¶
type DownloadHistoryChunkOptions struct {
DecodeHistorySyncOptions
MaxBytes int64
HTTPClient *http.Client
}
type EditCloudTemplateRequest ¶
type EditCloudTemplateRequest struct {
Components []json.RawMessage `json:"components"`
}
type EditCloudTemplateResult ¶
type EditMessageRequest ¶
type EditMessageRequest struct {
Transport MessageTransport `json:"transport,omitempty"`
Text string `json:"text"`
}
type EffectiveConnectionConfiguration ¶
type EffectiveConnectionConfiguration struct {
Observation *ObservationConfiguration `json:"observation,omitempty"`
HistorySync *HistorySyncPolicy `json:"historySync,omitempty"`
HMS *HMSConfiguration `json:"hms,omitempty"`
}
type EmbeddedSignupRequest ¶
type EmbeddedSignupRequest struct {
QuickLinkID string `json:"quicklinkId"`
ProjectID string `json:"projectId,omitempty"`
Result *EmbeddedSignupResult `json:"result,omitempty"`
}
type EmbeddedSignupResult ¶
type EncodedEventPayload ¶
type EncryptMediaOptions ¶
type EncryptMediaOptions struct {
MediaType UploadMediaType
MimeType string
// MediaKey is optional. Supply a fixed key only for a repeat pass of the same immutable source or a test vector.
MediaKey []byte
MaxBytes int64
}
type EncryptedMedia ¶
type EncryptedMedia struct {
EncryptedMediaInfo
Ciphertext []byte `json:"-"`
}
func EncryptWhatsAppMedia ¶
func EncryptWhatsAppMedia(ctx context.Context, plaintext []byte, options EncryptMediaOptions) (EncryptedMedia, error)
func (EncryptedMedia) GoString ¶
func (media EncryptedMedia) GoString() string
func (EncryptedMedia) String ¶
func (media EncryptedMedia) String() string
type EncryptedMediaInfo ¶
type EncryptedMediaInfo struct {
MediaType UploadMediaType `json:"mediaType"`
MediaKey []byte `json:"-"`
FileSHA256 []byte `json:"fileSha256"`
FileEncSHA256 []byte `json:"fileEncSha256"`
FileLength int64 `json:"fileLength"`
EncryptedLength int64 `json:"encryptedLength"`
MimeType string `json:"mimeType,omitempty"`
}
func EncryptWhatsAppMediaTo ¶
func EncryptWhatsAppMediaTo(ctx context.Context, source io.Reader, destination io.Writer, options EncryptMediaOptions, expected *EncryptedMediaInfo) (EncryptedMediaInfo, error)
EncryptWhatsAppMediaTo encrypts incrementally with bounded working memory. expected is used for a repeat pass. The source must reach EOF and match its hashes and length before the final ciphertext block and MAC are released. Cellar whatsapp-1049950004 WAMediaCrypto.js:75-101 defines ciphertext || mac10.
func (EncryptedMediaInfo) GoString ¶
func (info EncryptedMediaInfo) GoString() string
func (EncryptedMediaInfo) String ¶
func (info EncryptedMediaInfo) String() string
type EnrollCampaignContactRequest ¶
type EnrollCampaignContactRequest struct {
Phone string `json:"phone"`
Variables map[string]CampaignVariable `json:"variables,omitempty"`
}
EnrollCampaignContactRequest enrolls one phone in a continuous drip. A phone already in the drip returns created=false and is never restarted.
type EnrollPlatformCampaignContactRequest ¶
type EnrollPlatformCampaignContactRequest struct {
ProjectID string `json:"projectId"`
EnrollCampaignContactRequest
}
EnrollPlatformCampaignContactRequest selects the owning project explicitly.
type Error ¶
type Error struct {
Kind ErrorKind
Code string
Message string
Field string
Status int
RequestID string
RequestLogURL string
DocURL string
RateLimitReason string
Details json.RawMessage
Metadata Metadata
Cause error
}
Error preserves API error codes, including codes added after this SDK release.
type ErrorKind ¶
type ErrorKind string
const ( ConfigurationError ErrorKind = "configuration" ValidationError ErrorKind = "validation" AuthenticationError ErrorKind = "authentication" AuthorizationError ErrorKind = "authorization" PaymentRequiredError ErrorKind = "payment_required" NotFoundError ErrorKind = "not_found" ConflictError ErrorKind = "conflict" RateLimitError ErrorKind = "rate_limit" ServerError ErrorKind = "server" ConnectionError ErrorKind = "connection" TimeoutError ErrorKind = "timeout" CancelledError ErrorKind = "cancelled" )
type EventReplayReceipt ¶
type EventReplayReceipt struct {
EventID string `json:"eventId"`
DeliveryID string `json:"deliveryId"`
OperationID string `json:"operationId"`
Idempotency IdempotencyReceipt `json:"idempotency"`
}
type EventStream ¶
type EventStream struct {
// contains filtered or unexported fields
}
func (*EventStream) Cursor ¶
func (s *EventStream) Cursor() string
func (*EventStream) Items ¶
func (s *EventStream) Items(ctx context.Context) iter.Seq2[EventStreamItem, error]
Items reads one stream, reconnecting with the last delivered cursor. Cancel context to close the connection. Only one iterator should consume a stream.
type EventStreamGap ¶
type EventStreamItem ¶
type EventStreamItem struct {
Event PlatformEvent
StreamID string
Sequence int64
Webhook *WebhookEvent
Cursor string
}
type EventStreamParams ¶
type EventStreamSource ¶
type EventStreamSource struct {
// contains filtered or unexported fields
}
EventStreamSource adapts retained webhook bodies to an application-owned live event consumer.
func NewEventStreamSource ¶
func NewEventStreamSource(open func(EventStreamParams) (*EventStream, error), p EventStreamParams) (*EventStreamSource, error)
func (*EventStreamSource) Subscribe ¶
func (s *EventStreamSource) Subscribe(ctx context.Context, listener func([]WebhookEvent, LiveEventMetadata), o LiveEventSubscriptionOptions) (*LiveEventSubscription, error)
Subscribe starts one cancellable reader. Cancel returns immediately; Done closes after the body and watchdog are released.
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
func (*Events) AcknowledgeStream ¶
func (r *Events) AcknowledgeStream(ctx context.Context, id string, b EventStreamAcknowledgement, projectID string, o ...RequestOptions) (Response[EventStreamAcknowledgementReceipt], error)
func (*Events) List ¶
func (r *Events) List(ctx context.Context, p ListEventsParams, o ...RequestOptions) (*CursorPage[PlatformEvent], error)
func (*Events) ListIndexed ¶
func (r *Events) ListIndexed(ctx context.Context, p ListIndexedEventsParams, o ...RequestOptions) (IndexedEventRead, error)
func (*Events) LiveSource ¶
func (r *Events) LiveSource(p EventStreamParams) (*EventStreamSource, error)
func (*Events) Replay ¶
func (r *Events) Replay(ctx context.Context, id string, b ReplayEventRequest, o ...RequestOptions) (Response[EventReplayReceipt], error)
func (*Events) Retrieve ¶
func (r *Events) Retrieve(ctx context.Context, id string, includePayload *bool, o ...RequestOptions) (Response[PlatformEvent], error)
func (*Events) Stream ¶
func (r *Events) Stream(p EventStreamParams) (*EventStream, error)
type ExportCallRecordsParams ¶
type ExportCallRecordsParams struct {
CallFilters
ListParams
Format string
}
type FlowConnectionLink ¶
type FlowConnectionLink struct {
Connection string `json:"connection"`
ConnectionID string `json:"connectionId,omitempty"`
WABAID string `json:"wabaId"`
MetaFlowID string `json:"metaFlowId"`
Status string `json:"status"`
Categories []string `json:"categories"`
ValidationErrors []FlowValidationIssue `json:"validationErrors"`
UploadState string `json:"uploadState"`
PreviewURL string `json:"previewUrl,omitempty"`
PreviewExpiresAt *int64 `json:"previewExpiresAt,omitempty"`
LastSyncedAt int64 `json:"lastSyncedAt"`
DefinitionDigest string `json:"definitionDigest,omitempty"`
Simulated *bool `json:"simulated,omitempty"`
}
type FlowConnectionRequest ¶
type FlowConnectionRequest struct {
ConnectionID string `json:"connectionId"`
}
type FlowContent ¶
type FlowDraft ¶
type FlowDraft struct {
FlowSummary
Definition map[string]json.RawMessage `json:"definition"`
}
type FlowEncryption ¶
type FlowEncryption struct {
// contains filtered or unexported fields
}
func (*FlowEncryption) Register ¶
func (r *FlowEncryption) Register(ctx context.Context, phone string, b RegisterFlowEncryptionKeyRequest, p CloudGraphVersion, o ...RequestOptions) (Response[Success], error)
func (*FlowEncryption) Retrieve ¶
func (r *FlowEncryption) Retrieve(ctx context.Context, phone string, p CloudGraphVersion, o ...RequestOptions) (Response[FlowEncryptionKeyList], error)
type FlowEncryptionCustody ¶
type FlowEncryptionCustody struct {
Custody string `json:"custody"`
ActiveKeyID *string `json:"activeKeyId"`
Keys []ManagedFlowEncryptionKey `json:"keys"`
}
type FlowEncryptionKey ¶
type FlowEncryptionKeyList ¶
type FlowEncryptionKeyList struct {
Data []FlowEncryptionKey `json:"data"`
}
type FlowEncryptionKeyRotation ¶
type FlowEncryptionKeyRotation struct {
FlowEncryptionCustody
Key ManagedFlowEncryptionKey `json:"key"`
}
type FlowEndpoint ¶
type FlowEndpoint struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
ProjectID string `json:"projectId"`
FlowID string `json:"flowId"`
ConnectionID string `json:"connectionId"`
Mode string `json:"mode"`
URL *string `json:"url"`
FunctionID *string `json:"functionId"`
DeploymentID *string `json:"deploymentId"`
Enabled bool `json:"enabled"`
Revision int64 `json:"revision"`
EndpointURI string `json:"endpointUri"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type FlowEndpointReceipt ¶
type FlowEndpointReceipt struct {
ID string `json:"id"`
FlowID string `json:"flowId"`
EndpointID string `json:"endpointId"`
ConnectionID string `json:"connectionId"`
Mode string `json:"mode"`
Action *string `json:"action"`
Outcome string `json:"outcome"`
HTTPStatus *int `json:"httpStatus"`
ErrorCode *string `json:"errorCode"`
KeyID *string `json:"keyId"`
FunctionInvocationID *string `json:"functionInvocationId"`
DurationMS *float64 `json:"durationMs"`
CreatedAt int64 `json:"createdAt"`
CompletedAt *int64 `json:"completedAt"`
}
type FlowEndpointSetResult ¶
type FlowEndpointSetResult struct {
Endpoint FlowEndpoint `json:"endpoint"`
SigningSecret string `json:"signingSecret,omitempty"`
Encryption FlowEncryptionCustody `json:"encryption"`
}
func (FlowEndpointSetResult) GoString ¶
func (v FlowEndpointSetResult) GoString() string
func (FlowEndpointSetResult) String ¶
func (FlowEndpointSetResult) String() string
type FlowEndpointState ¶
type FlowEndpointState struct {
Endpoint *FlowEndpoint `json:"endpoint"`
Encryption FlowEncryptionCustody `json:"encryption"`
}
type FlowProviderOperation ¶
type FlowProviderOperation struct {
ID string `json:"id"`
RequestID *string `json:"requestId"`
FlowID string `json:"flowId"`
FlowName string `json:"flowName"`
ConnectionID string `json:"connectionId"`
Connection string `json:"connection"`
Action string `json:"action"`
State string `json:"state"`
Resolution *string `json:"resolution"`
WABAID *string `json:"wabaId"`
MetaFlowID *string `json:"metaFlowId"`
DefinitionDigest *string `json:"definitionDigest"`
ProviderStatus *string `json:"providerStatus"`
ErrorCode *string `json:"errorCode"`
ProviderCode *int `json:"providerCode"`
ProviderSubcode *int `json:"providerSubcode"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
CompletedAt *int64 `json:"completedAt"`
}
type FlowProviderRequest ¶
type FlowProviderResult ¶
type FlowProviderResult struct {
Operation *FlowProviderOperation `json:"operation"`
Flow FlowDraft `json:"flow"`
}
type FlowSummary ¶
type FlowValidationIssue ¶
type FlowValidationIssue struct {
LineStart *int `json:"lineStart,omitempty"`
LineEnd *int `json:"lineEnd,omitempty"`
ColumnStart *int `json:"columnStart,omitempty"`
ColumnEnd *int `json:"columnEnd,omitempty"`
Error string `json:"error,omitempty"`
ErrorType string `json:"errorType,omitempty"`
Message string `json:"message,omitempty"`
Pointers []FlowValidationPointer `json:"pointers,omitempty"`
}
type FlowValidationPointer ¶
type Flows ¶
type Flows struct {
// contains filtered or unexported fields
}
func (*Flows) Create ¶
func (r *Flows) Create(ctx context.Context, b CreateFlowRequest, o ...RequestOptions) (Response[FlowDraft], error)
func (*Flows) DeleteEndpoint ¶
func (r *Flows) DeleteEndpoint(ctx context.Context, id string, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowOK], error)
func (*Flows) Deprecate ¶
func (r *Flows) Deprecate(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
func (*Flows) Discard ¶
func (r *Flows) Discard(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
func (*Flows) EncryptionKey ¶
func (r *Flows) EncryptionKey(ctx context.Context, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowEncryptionCustody], error)
func (*Flows) Endpoint ¶
func (r *Flows) Endpoint(ctx context.Context, id string, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowEndpointState], error)
func (*Flows) EndpointReceipts ¶
func (r *Flows) EndpointReceipts(ctx context.Context, id string, p ListFlowEndpointReceiptsParams, o ...RequestOptions) (Response[[]FlowEndpointReceipt], error)
func (*Flows) List ¶
func (r *Flows) List(ctx context.Context, o ...RequestOptions) (Response[[]FlowSummary], error)
func (*Flows) Publish ¶
func (r *Flows) Publish(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
func (*Flows) Receipts ¶
func (r *Flows) Receipts(ctx context.Context, id string, o ...RequestOptions) (Response[[]FlowProviderOperation], error)
func (*Flows) RotateEncryptionKey ¶
func (r *Flows) RotateEncryptionKey(ctx context.Context, p FlowConnectionRequest, o ...RequestOptions) (Response[FlowEncryptionKeyRotation], error)
func (*Flows) SetEndpoint ¶
func (r *Flows) SetEndpoint(ctx context.Context, id string, b SetFlowEndpointRequest, o ...RequestOptions) (Response[FlowEndpointSetResult], error)
func (*Flows) Sync ¶
func (r *Flows) Sync(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
func (*Flows) Update ¶
func (r *Flows) Update(ctx context.Context, id string, b UpdateFlowRequest, o ...RequestOptions) (Response[FlowDraft], error)
func (*Flows) Upload ¶
func (r *Flows) Upload(ctx context.Context, id string, b FlowProviderRequest, o ...RequestOptions) (Response[FlowProviderResult], error)
type FollowRequestLogsParams ¶
type FunctionDefinition ¶
type FunctionDefinition struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
Revision int64 `json:"revision"`
ActiveDeploymentID *string `json:"activeDeploymentId"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type FunctionDeployment ¶
type FunctionDeployment struct {
FunctionDeploymentSummary
Source string `json:"source"`
}
type FunctionDeploymentSummary ¶
type FunctionDeploymentSummary struct {
ID string `json:"id"`
FunctionID string `json:"functionId"`
Language string `json:"language"`
Region string `json:"region"`
CompatibilityDate string `json:"compatibilityDate"`
SHA256 string `json:"sha256"`
SecretVersionIDs []string `json:"secretVersionIds"`
EgressOrigins []string `json:"egressOrigins"`
CreatedAt string `json:"createdAt"`
}
type FunctionDeployments ¶
type FunctionDeployments struct {
// contains filtered or unexported fields
}
func (*FunctionDeployments) Create ¶
func (r *FunctionDeployments) Create(ctx context.Context, id string, b CreateFunctionDeploymentRequest, o ...RequestOptions) (Response[FunctionDeployment], error)
func (*FunctionDeployments) List ¶
func (r *FunctionDeployments) List(ctx context.Context, id string, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionDeploymentSummary]], error)
func (*FunctionDeployments) Promote ¶
func (r *FunctionDeployments) Promote(ctx context.Context, id string, b PromoteFunctionDeploymentRequest, o ...RequestOptions) (Response[FunctionDefinition], error)
func (*FunctionDeployments) Retrieve ¶
func (r *FunctionDeployments) Retrieve(ctx context.Context, id, deploymentID string, o ...RequestOptions) (Response[FunctionDeployment], error)
type FunctionInvocation ¶
type FunctionInvocation struct {
ID string `json:"id"`
FunctionID string `json:"functionId"`
DeploymentID string `json:"deploymentId"`
Outcome string `json:"outcome"`
Trigger string `json:"trigger"`
ErrorCode *string `json:"errorCode"`
DurationMs *int64 `json:"durationMs"`
ResponseBytes *int64 `json:"responseBytes"`
Attempt int `json:"attempt"`
CreatedAt string `json:"createdAt"`
CompletedAt *string `json:"completedAt"`
}
type FunctionInvocationResult ¶
type FunctionInvocationResult struct {
Receipt FunctionInvocation `json:"receipt"`
Replayed bool `json:"replayed"`
Response *FunctionResponse `json:"response,omitempty"`
ResponseRetained bool `json:"responseRetained"`
Retryable bool `json:"retryable"`
}
type FunctionInvocations ¶
type FunctionInvocations struct {
// contains filtered or unexported fields
}
func (*FunctionInvocations) Create ¶
func (r *FunctionInvocations) Create(ctx context.Context, id string, b CreateFunctionInvocationRequest, o RequestOptions) (Response[FunctionInvocationResult], error)
func (*FunctionInvocations) List ¶
func (r *FunctionInvocations) List(ctx context.Context, id string, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionInvocation]], error)
func (*FunctionInvocations) Retrieve ¶
func (r *FunctionInvocations) Retrieve(ctx context.Context, id, invocationID string, o ...RequestOptions) (Response[FunctionInvocation], error)
type FunctionMutationResult ¶
type FunctionMutationResult struct {
OK bool `json:"ok"`
}
type FunctionPage ¶
type FunctionRequest ¶
type FunctionResponse ¶
type FunctionSecretVersion ¶
type FunctionSecrets ¶
type FunctionSecrets struct {
// contains filtered or unexported fields
}
func (*FunctionSecrets) Create ¶
func (r *FunctionSecrets) Create(ctx context.Context, id string, b CreateFunctionSecretRequest, o ...RequestOptions) (Response[FunctionSecretVersion], error)
func (*FunctionSecrets) List ¶
func (r *FunctionSecrets) List(ctx context.Context, id string, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionSecretVersion]], error)
func (*FunctionSecrets) Revoke ¶
func (r *FunctionSecrets) Revoke(ctx context.Context, id, versionID string, o ...RequestOptions) (Response[FunctionMutationResult], error)
type Functions ¶
type Functions struct {
// contains filtered or unexported fields
}
func (*Functions) Create ¶
func (r *Functions) Create(ctx context.Context, b CreateFunctionRequest, o ...RequestOptions) (Response[FunctionDefinition], error)
func (*Functions) Delete ¶
func (r *Functions) Delete(ctx context.Context, id string, expectedRevision int64, o ...RequestOptions) (Response[FunctionMutationResult], error)
func (*Functions) Deployments ¶
func (r *Functions) Deployments() *FunctionDeployments
func (*Functions) Invocations ¶
func (r *Functions) Invocations() *FunctionInvocations
func (*Functions) List ¶
func (r *Functions) List(ctx context.Context, p ListFunctionsParams, o ...RequestOptions) (Response[FunctionPage[FunctionDefinition]], error)
func (*Functions) Retrieve ¶
func (r *Functions) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[FunctionDefinition], error)
func (*Functions) Secrets ¶
func (r *Functions) Secrets() *FunctionSecrets
func (*Functions) Update ¶
func (r *Functions) Update(ctx context.Context, id string, b UpdateFunctionRequest, o ...RequestOptions) (Response[FunctionDefinition], error)
type GroupCapabilities ¶
type GroupCapabilities struct {
Status string `json:"status"`
SyncedAt *string `json:"syncedAt"`
CheckedAt *string `json:"checkedAt"`
Capabilities []struct {
Key string `json:"key"`
Kind string `json:"kind"`
Unit *string `json:"unit"`
Value *bool `json:"value"`
Source *string `json:"source"`
} `json:"capabilities"`
}
type GroupInviteCode ¶
type GroupInviteCode struct {
Code string `json:"code"`
}
type GroupInviteInfo ¶
type GroupParticipant ¶
type GroupParticipant struct {
ConversationReference
IsAdmin bool `json:"isAdmin"`
IsSuperAdmin bool `json:"isSuperAdmin"`
}
type GroupParticipantPayload ¶
type GroupParticipantPayload struct {
ID string `json:"id"`
Joined []WebhookIdentity `json:"joined,omitempty"`
Left []WebhookIdentity `json:"left,omitempty"`
Promoted []WebhookIdentity `json:"promoted,omitempty"`
Demoted []WebhookIdentity `json:"demoted,omitempty"`
Reason string `json:"reason,omitempty"`
InitiatedBy string `json:"initiatedBy,omitempty"`
RequestID string `json:"requestId,omitempty"`
FailedParticipants []WebhookFailedGroupParticipant `json:"failedParticipants,omitempty"`
Errors []OfficialGroupWebhookError `json:"errors,omitempty"`
JoinRequest *WebhookGroupJoinRequest `json:"joinRequest,omitempty"`
// contains filtered or unexported fields
}
type GroupParticipantsRequest ¶
type GroupParticipantsRequest struct {
Participants []string `json:"participants"`
}
type GroupUpdatePayload ¶
type GroupUpdatePayload struct {
ID string `json:"id"`
NewSubject string `json:"newSubject,omitempty"`
NewDescription string `json:"newDescription,omitempty"`
Action string `json:"action,omitempty"`
RequestID string `json:"requestId,omitempty"`
InviteLink string `json:"inviteLink,omitempty"`
JoinApprovalRequired *bool `json:"joinApprovalRequired,omitempty"`
PictureChanged *bool `json:"pictureChanged,omitempty"`
FailedChanges []string `json:"failedChanges,omitempty"`
Errors []OfficialGroupWebhookError `json:"errors,omitempty"`
// contains filtered or unexported fields
}
type Groups ¶
type Groups struct {
// contains filtered or unexported fields
}
func (*Groups) AddParticipants ¶
func (r *Groups) AddParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, o ...RequestOptions) (Response[Success], error)
func (*Groups) Create ¶
func (r *Groups) Create(ctx context.Context, s string, b CreateGroupRequest, o ...RequestOptions) (Response[Envelope[Group]], error)
func (*Groups) DemoteParticipants ¶
func (r *Groups) DemoteParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, o ...RequestOptions) (Response[Success], error)
func (*Groups) GetCapabilities ¶
func (r *Groups) GetCapabilities(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[GroupCapabilities]], error)
func (*Groups) GetInviteCode ¶
func (r *Groups) GetInviteCode(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[GroupInviteCode]], error)
func (*Groups) GetJoinInfo ¶
func (r *Groups) GetJoinInfo(ctx context.Context, s, code string, o ...RequestOptions) (Response[Envelope[GroupInviteInfo]], error)
func (*Groups) ListParticipants ¶
func (r *Groups) ListParticipants(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[[]GroupParticipant]], error)
func (*Groups) PromoteParticipants ¶
func (r *Groups) PromoteParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, o ...RequestOptions) (Response[Success], error)
func (*Groups) RemoveParticipants ¶
func (r *Groups) RemoveParticipants(ctx context.Context, s, id string, b GroupParticipantsRequest, o ...RequestOptions) (Response[Success], error)
func (*Groups) RevokeInviteCode ¶
func (r *Groups) RevokeInviteCode(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[GroupInviteCode]], error)
func (*Groups) SetDescription ¶
func (*Groups) SetInfoEditing ¶
func (*Groups) SetJoinApproval ¶
func (*Groups) SetMemberAddMode ¶
func (*Groups) SetMessaging ¶
func (*Groups) SetPicture ¶
func (r *Groups) SetPicture(ctx context.Context, s, id string, b PictureRequest, o ...RequestOptions) (Response[Success], error)
func (*Groups) SetSubject ¶
type HMSConfiguration ¶
type HandRaisedRequest ¶
type HealthCheck ¶
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
Checks map[string]HealthCheck `json:"checks"`
}
type HistoryChat ¶
type HistoryChat struct {
Conversation ConversationReference `json:"conversation"`
Kind string `json:"kind"`
LastActivityAt string `json:"lastActivityAt"`
LastMessage HistoryMessageSummary `json:"lastMessage"`
}
type HistoryConversation ¶
type HistoryConversation struct {
ID string
Protobuf []byte
Fields []HistoryProtobufField
Messages []HistorySyncMessage
}
func (HistoryConversation) GoString ¶
func (v HistoryConversation) GoString() string
func (HistoryConversation) MarshalJSON ¶
func (HistoryConversation) MarshalJSON() ([]byte, error)
func (HistoryConversation) String ¶
func (HistoryConversation) String() string
type HistoryMedia ¶
type HistoryMessage ¶
type HistoryMessage struct {
Order *CloudOrder `json:"order,omitempty"`
HistoryMessageSummary
Conversation struct {
ConversationReference
Sender *ConversationReference `json:"sender,omitempty"`
} `json:"conversation"`
FromMe bool `json:"fromMe"`
PushName string `json:"pushName,omitempty"`
Text string `json:"text,omitempty"`
Caption string `json:"caption,omitempty"`
MimeType string `json:"mimeType,omitempty"`
Filename string `json:"filename,omitempty"`
PTT *bool `json:"ptt,omitempty"`
Latitude *float64 `json:"latitude,omitempty"`
Longitude *float64 `json:"longitude,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Title string `json:"title,omitempty"`
Reaction string `json:"reaction,omitempty"`
ReactionTo string `json:"reactionTo,omitempty"`
Edited *bool `json:"edited,omitempty"`
PollOptions []struct {
Name string `json:"name"`
Hash string `json:"hash"`
} `json:"pollOptions,omitempty"`
Media []HistoryMedia `json:"media,omitempty"`
MediaRetrieval *struct {
State string `json:"state"`
Reason string `json:"reason,omitempty"`
} `json:"mediaRetrieval,omitempty"`
}
type HistoryMessageSummary ¶
type HistoryPage ¶
type HistoryProtobufField ¶
type HistoryProtobufField struct {
Number uint32
WireType uint8
Raw []byte
Bytes []byte
Integer uint64
}
HistoryProtobufField preserves the original tag, value and complete wire bytes. Length-delimited data is opaque unless the pinned schema identifies a message.
func (HistoryProtobufField) GoString ¶
func (v HistoryProtobufField) GoString() string
func (HistoryProtobufField) MarshalJSON ¶
func (HistoryProtobufField) MarshalJSON() ([]byte, error)
func (HistoryProtobufField) String ¶
func (HistoryProtobufField) String() string
type HistorySyncChunkDeleteRequest ¶
type HistorySyncChunkDeleteRequest struct {
DirectPath string `json:"-"`
FileEncSHA256 []byte `json:"-"`
EncHandle string `json:"-"`
CompanionMetaNonce string `json:"-"`
}
func (HistorySyncChunkDeleteRequest) GoString ¶
func (v HistorySyncChunkDeleteRequest) GoString() string
func (HistorySyncChunkDeleteRequest) MarshalJSON ¶
func (HistorySyncChunkDeleteRequest) MarshalJSON() ([]byte, error)
func (HistorySyncChunkDeleteRequest) String ¶
func (HistorySyncChunkDeleteRequest) String() string
type HistorySyncChunkDeleteResult ¶
type HistorySyncChunkDeleteResult struct {
Status string `json:"status"`
}
type HistorySyncChunkDescriptor ¶
type HistorySyncChunkDescriptor struct {
DirectPath string
MediaKey []byte
FileSHA256 []byte
FileEncSHA256 []byte
FileLength *int64
}
func (HistorySyncChunkDescriptor) GoString ¶
func (v HistorySyncChunkDescriptor) GoString() string
func (HistorySyncChunkDescriptor) MarshalJSON ¶
func (HistorySyncChunkDescriptor) MarshalJSON() ([]byte, error)
func (HistorySyncChunkDescriptor) String ¶
func (HistorySyncChunkDescriptor) String() string
type HistorySyncChunkInput ¶
type HistorySyncChunkInput struct {
Descriptor *HistorySyncChunkDescriptor
InlinePayload []byte
}
HistorySyncChunkInput chooses exactly one descriptor or compressed inline blob.
func (HistorySyncChunkInput) GoString ¶
func (v HistorySyncChunkInput) GoString() string
func (HistorySyncChunkInput) MarshalJSON ¶
func (HistorySyncChunkInput) MarshalJSON() ([]byte, error)
func (HistorySyncChunkInput) String ¶
func (HistorySyncChunkInput) String() string
type HistorySyncChunkRetryRequest ¶
type HistorySyncChunkRetryRequest struct {
SyncType HistorySyncType `json:"syncType"`
ChunkOrder uint32 `json:"chunkOrder"`
ChunkMessageID string `json:"chunkMessageId,omitempty"`
Regenerate *bool `json:"regenerate,omitempty"`
}
type HistorySyncData ¶
type HistorySyncData struct {
Protobuf []byte
Fields []HistoryProtobufField
SyncType uint32
ChunkOrder *uint32
Progress *uint32
Conversations []HistoryConversation
Decoded any
}
func DecodeHistorySyncPayload ¶
func DecodeHistorySyncPayload(ctx context.Context, compressed []byte, options DecodeHistorySyncOptions) (HistorySyncData, error)
DecodeHistorySyncPayload accepts gzip, zlib or raw deflate, as WAGzip.js:37-38 in Cellar whatsapp-1049950004. It never discards protobuf or unknown fields. The handwritten model exposes core history fields; Decoder handles the full schema.
func DownloadHistoryChunk ¶
func DownloadHistoryChunk(ctx context.Context, input HistorySyncChunkInput, options DownloadHistoryChunkOptions) (HistorySyncData, error)
func (HistorySyncData) GoString ¶
func (v HistorySyncData) GoString() string
func (HistorySyncData) MarshalJSON ¶
func (HistorySyncData) MarshalJSON() ([]byte, error)
func (HistorySyncData) String ¶
func (HistorySyncData) String() string
type HistorySyncDelivery ¶
type HistorySyncDelivery string
const ( HistoryDeliveryArchive HistorySyncDelivery = "archive" HistoryDeliveryDescriptor HistorySyncDelivery = "descriptor" )
type HistorySyncDeliveryPatch ¶
type HistorySyncDeliveryPatch string
HistorySyncDeliveryPatch permits descriptor writes; archive is read-only.
const HistoryDeliverySetDescriptor HistorySyncDeliveryPatch = "descriptor"
type HistorySyncMessage ¶
type HistorySyncMessage struct {
Protobuf []byte
Fields []HistoryProtobufField
MessageProtobuf []byte
MessageOrderID *uint64
}
func (HistorySyncMessage) GoString ¶
func (v HistorySyncMessage) GoString() string
func (HistorySyncMessage) MarshalJSON ¶
func (HistorySyncMessage) MarshalJSON() ([]byte, error)
func (HistorySyncMessage) String ¶
func (HistorySyncMessage) String() string
type HistorySyncPolicy ¶
type HistorySyncPolicy struct {
Delivery *HistorySyncDelivery `json:"delivery,omitempty"`
Mode string `json:"mode,omitempty"`
RequestFull *bool `json:"requestFull,omitempty"`
}
func (*HistorySyncPolicy) UnmarshalJSON ¶
func (v *HistorySyncPolicy) UnmarshalJSON(b []byte) error
type HistorySyncPolicyPatch ¶
type HistorySyncPolicyPatch struct {
Mode string `json:"mode,omitempty"`
RequestFull *bool `json:"requestFull,omitempty"`
Delivery *HistorySyncDeliveryPatch `json:"delivery,omitempty"`
}
type HistorySyncResource ¶
type HistorySyncResource struct {
// contains filtered or unexported fields
}
func (*HistorySyncResource) DeleteChunk ¶
func (resource *HistorySyncResource) DeleteChunk(ctx context.Context, connection string, body HistorySyncChunkDeleteRequest, opts ...RequestOptions) (Response[Envelope[HistorySyncChunkDeleteResult]], error)
DeleteChunk is explicit. Call only after durable local processing; it never deletes the application's copy. Timeout/cancellation does not undo deletion.
func (*HistorySyncResource) RequestChunkRetry ¶
func (resource *HistorySyncResource) RequestChunkRetry(ctx context.Context, connection string, body HistorySyncChunkRetryRequest, opts ...RequestOptions) (Response[Envelope[HistorySyncChunkRetryResult]], error)
RequestChunkRetry explicitly asks the phone for another history.sync event. API authority enforces history consent and connections:manage. No automatic retry.
type HistorySyncType ¶
type HistorySyncType string
const ( HistoryInitialBootstrap HistorySyncType = "INITIAL_BOOTSTRAP" HistoryInitialStatusV3 HistorySyncType = "INITIAL_STATUS_V3" HistoryFull HistorySyncType = "FULL" HistoryRecent HistorySyncType = "RECENT" HistoryPushName HistorySyncType = "PUSH_NAME" HistoryNonBlockingData HistorySyncType = "NON_BLOCKING_DATA" HistoryOnDemand HistorySyncType = "ON_DEMAND" )
type HybridConnection ¶
type HybridLink ¶
type HybridLink struct {
// contains filtered or unexported fields
}
func (*HybridLink) GetPolicy ¶
func (r *HybridLink) GetPolicy(ctx context.Context, s HybridScope, o ...RequestOptions) (Response[Envelope[HybridRoutingPolicy]], error)
func (*HybridLink) SetPaused ¶
func (r *HybridLink) SetPaused(ctx context.Context, s string, b SetHybridPausedRequest, o ...RequestOptions) (Response[Envelope[HybridPaused]], error)
func (*HybridLink) SetPolicy ¶
func (r *HybridLink) SetPolicy(ctx context.Context, s HybridScope, b SetHybridRoutingPolicyRequest, o ...RequestOptions) (Response[Envelope[HybridRoutingPolicy]], error)
func (*HybridLink) State ¶
func (r *HybridLink) State(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[HybridLinkState]], error)
type HybridLinkState ¶
type HybridLinkState struct {
Revision string `json:"revision"`
Paused bool `json:"paused"`
Connections []HybridConnection `json:"connections"`
}
type HybridMerge ¶
type HybridMerge struct {
AbsorbConnectionID string `json:"absorbConnectionId"`
}
type HybridMergeCandidate ¶
type HybridMergeCandidate struct {
Connections [2]HybridMergeCandidateConnection `json:"connections"`
Eligible bool `json:"eligible"`
IneligibleReason string `json:"ineligibleReason,omitempty"`
}
type HybridMergeCandidateConnection ¶
type HybridMergeCandidateConnection struct {
ID string `json:"id"`
Name string `json:"name"`
Method ConnectionMethod `json:"method"`
Status string `json:"status"`
CanBeAbsorbed bool `json:"canBeAbsorbed"`
}
type HybridPaused ¶
type HybridResolution ¶
type HybridRoutingPolicy ¶
type HybridScope ¶
type IdempotencyReceipt ¶
type Identities ¶
type Identities struct {
// contains filtered or unexported fields
}
func (*Identities) Resolve ¶
func (r *Identities) Resolve(ctx context.Context, s string, p IdentityParams, o ...RequestOptions) (Response[Envelope[ResolvedIdentity]], error)
type IdentityParams ¶
type ImportCallOptOutsRequest ¶
type ImportCallOptOutsRequest struct {
Entries []CreateCallOptOutRequest `json:"entries"`
}
type IndexedEventPageMetadata ¶
type IndexedEventPageMetadata struct {
HasMore bool `json:"hasMore"`
NextOffset *string `json:"nextOffset"`
HighWatermark string `json:"highWatermark"`
}
func (*IndexedEventPageMetadata) UnmarshalJSON ¶
func (p *IndexedEventPageMetadata) UnmarshalJSON(b []byte) error
type IndexedEventRead ¶
type IndexedEventRead struct {
Items []PlatformEvent
Page IndexedEventPageMetadata
Metadata Metadata
}
type InteractiveMediaSource ¶
type InteractiveMediaSource struct {
URL *string `json:"url,omitempty"`
Base64 *string `json:"base64,omitempty"`
MimeType *string `json:"mimeType,omitempty"`
}
InteractiveMediaSource carries exactly one URL or base64 source. Bounds and transport availability remain authoritative at the API.
type InvalidRecipientRow ¶
type IssuePasskeyChallengeRequest ¶
type IssuePasskeyChallengeRequest struct {
ChallengeB64URL *string `json:"challengeB64Url,omitempty"`
TTLSeconds *int64 `json:"ttlSeconds,omitempty"`
// Deprecated: ignored by the server; runner authority determines this value.
UserVerification *string `json:"userVerification,omitempty"`
// Deprecated: ignored by the server; runner authority determines this value.
TimeoutMS *int64 `json:"timeoutMs,omitempty"`
}
type KnownWebhookPayload ¶
type KnownWebhookPayload interface {
// contains filtered or unexported methods
}
KnownWebhookPayload is a closed union of the payload families in the pinned TypeScript contract. Use a type switch after TypedPayload; raw bytes remain available on WebhookEvent.Payload for forward-compatible fields and events.
type LabelCollection ¶
type LabelRead ¶
type LabelRead struct {
Labels []Label
Collection *LabelCollection
}
LabelRead preserves the two documented response shapes. Collection is present when observation metadata was requested; Labels holds the older array shape.
func (LabelRead) MarshalJSON ¶
func (*LabelRead) UnmarshalJSON ¶
type Labels ¶
type Labels struct {
// contains filtered or unexported fields
}
func (*Labels) Create ¶
func (r *Labels) Create(ctx context.Context, s string, b CreateLabelRequest, o ...RequestOptions) (Response[Envelope[Label]], error)
func (*Labels) List ¶
func (r *Labels) List(ctx context.Context, s string, p ListLabelsParams, o ...RequestOptions) (Response[Envelope[LabelRead]], error)
func (*Labels) ListForChat ¶
func (r *Labels) ListForChat(ctx context.Context, s, id string, p ListLabelsParams, o ...RequestOptions) (Response[Envelope[LabelRead]], error)
func (*Labels) ReplaceForChat ¶
func (r *Labels) ReplaceForChat(ctx context.Context, s, id string, b ReplaceChatLabelsRequest, o ...RequestOptions) (Response[Success], error)
type LabelsUpdatePayload ¶
type LabelsUpdatePayload struct {
Action string `json:"action"`
LabelID string `json:"labelId,omitempty"`
From *WebhookIdentity `json:"from,omitempty"`
Label string `json:"label,omitempty"`
Name string `json:"name,omitempty"`
Color *int `json:"color,omitempty"`
OrderIndex *int `json:"orderIndex,omitempty"`
Deleted *bool `json:"deleted,omitempty"`
Labeled *bool `json:"labeled,omitempty"`
ObservedAt *int64 `json:"observedAt,omitempty"`
MessageID string `json:"messageId,omitempty"`
Starred *bool `json:"starred,omitempty"`
// contains filtered or unexported fields
}
type LaunchCampaignRequest ¶
type LaunchCampaignRequest struct {
SkipMissingVariables *bool `json:"skipMissingVariables,omitempty"`
ScheduledAt *float64 `json:"scheduledAt,omitempty"`
}
func (*LaunchCampaignRequest) UnmarshalJSON ¶
func (v *LaunchCampaignRequest) UnmarshalJSON(b []byte) error
type LaunchPlatformCampaignRequest ¶
type LaunchPlatformCampaignRequest struct {
ProjectID string `json:"projectId"`
LaunchCampaignRequest
}
LaunchPlatformCampaignRequest selects an explicit project and retains false/zero.
func (*LaunchPlatformCampaignRequest) UnmarshalJSON ¶
func (v *LaunchPlatformCampaignRequest) UnmarshalJSON(b []byte) error
type LeaveCallRequest ¶
type LifecycleFrame ¶
type LifecycleFrame struct {
Type string `json:"type"`
Connection string `json:"connection,omitempty"`
Participant string `json:"participant,omitempty"`
Event string `json:"event,omitempty"`
CallID string `json:"callId,omitempty"`
Payload json.RawMessage `json:"payload,omitempty"`
Timestamp string `json:"timestamp,omitempty"`
ConnectionID string `json:"connectionId,omitempty"`
Candidate *TrickleCandidate `json:"candidate,omitempty"`
Code string `json:"code,omitempty"`
Message string `json:"message,omitempty"`
}
type LinkedDeviceMessagePayload ¶
type LinkedDeviceMessagePayload struct {
ID string `json:"id"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
Conversation WebhookConversation `json:"conversation"`
FromMe bool `json:"fromMe"`
Timestamp int64 `json:"timestamp"`
PushName string `json:"pushName"`
IsGroup bool `json:"isGroup"`
Type string `json:"type"`
Text string `json:"text,omitempty"`
Caption string `json:"caption,omitempty"`
MimeType string `json:"mimeType,omitempty"`
PTT *bool `json:"ptt,omitempty"`
Filename string `json:"filename,omitempty"`
Latitude *float64 `json:"latitude,omitempty"`
Longitude *float64 `json:"longitude,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Title string `json:"title,omitempty"`
Reaction string `json:"reaction,omitempty"`
ReactionTo string `json:"reactionTo,omitempty"`
RevokedID string `json:"revokedId,omitempty"`
Media string `json:"media,omitempty"`
MediaURL string `json:"mediaUrl,omitempty"`
Edited *bool `json:"edited,omitempty"`
PollOptions []WebhookPollOption `json:"pollOptions,omitempty"`
NativeFlowResponse *NativeFlowResponse `json:"nativeFlowResponse,omitempty"`
ReplyChoice *ReplyChoice `json:"replyChoice,omitempty"`
ParentMessageID string `json:"parentMessageId,omitempty"`
Extra PlatformPayload `json:"-"`
// contains filtered or unexported fields
}
func (LinkedDeviceMessagePayload) MarshalJSON ¶
func (v LinkedDeviceMessagePayload) MarshalJSON() ([]byte, error)
func (*LinkedDeviceMessagePayload) UnmarshalJSON ¶
func (v *LinkedDeviceMessagePayload) UnmarshalJSON(b []byte) error
type LinkedHistorySyncPayload ¶
type LinkedHistorySyncPayload struct {
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
OriginalWhatsAppIDs *WhatsAppMessageIDs `json:"original_whatsapp_ids,omitempty"`
OriginalWhatsAppID string `json:"original_whatsapp_id,omitempty"`
Messages []WebhookHistoryMessage `json:"messages"`
Mode string `json:"mode"`
SyncType string `json:"syncType"`
ChunkOrder *int `json:"chunkOrder,omitempty"`
Progress *float64 `json:"progress,omitempty"`
FileLength int64 `json:"fileLength"`
ConversationCount int `json:"conversationCount"`
MessageCount int `json:"messageCount"`
PushNameCount int `json:"pushNameCount"`
StatusMessageCount int `json:"statusMessageCount"`
WhatsApp WebhookEncodedHistory `json:"whatsapp"`
// contains filtered or unexported fields
}
type ListAudienceSegmentsParams ¶
type ListAudienceSegmentsParams struct{ ListParams }
type ListAuditLogsParams ¶
type ListBanSafeClaimsParams ¶
type ListBanSafeClaimsParams struct {
ListBanSafeHealthParams
Connection, Status string
}
type ListBanSafeCollectionParams ¶
type ListBanSafeCollectionParams = ListBanSafeHealthParams
type ListBanSafeEnforcementParams ¶
type ListBanSafeEnforcementParams struct {
ListBanSafeHealthParams
Rung string
}
type ListBanSafeFindingsParams ¶
type ListBanSafeFindingsParams struct {
ListBanSafeHealthParams
Connection, Status, Severity string
}
type ListBanSafeHealthActionsParams ¶
type ListBanSafeHealthActionsParams struct {
ListBanSafeHealthParams
Connection, Status string
}
type ListBanSafeHealthParams ¶
type ListBanSafeHealthParams struct {
ListParams
ProjectID string
}
type ListBanSafeIncidentsParams ¶
type ListBanSafeIncidentsParams struct {
ListBanSafeHealthParams
Connection string
}
type ListBanSafeTelemetryHistoryParams ¶
type ListBanSafeTelemetryHistoryParams struct {
ListParams
Since, Until string
}
type ListCallOptOutsParams ¶
type ListCallOptOutsParams struct {
ListParams
PhoneNumber string
BSUID string
}
type ListCallRecordsParams ¶
type ListCallRecordsParams struct {
CallFilters
ListParams
}
type ListCampaignRecipientsParams ¶
type ListCampaignRecipientsParams struct {
Reason CampaignRecipientFailureReason
ListParams
Status string
}
type ListCampaignsParams ¶
type ListCampaignsParams struct{ ProjectID, ProjectSlug string }
type ListCloudCatalogProductsParams ¶
type ListCloudCatalogProductsParams = ListCloudCatalogsParams
type ListCloudCatalogsParams ¶
type ListConnectionCallsParams ¶
type ListConnectionCallsParams struct {
ListParams
Direction string
Outcome string
Since string
Until string
}
ListConnectionCallsParams filters a Connection's calls. Since and Until are ISO 8601 times bounding when a call started.
type ListContent ¶
type ListContent struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
ButtonText string `json:"buttonText"`
Sections []ListSection `json:"sections"`
}
type ListCustomersParams ¶
type ListCustomersParams struct {
ProjectID string
ListParams
Search, Status string
IsDefault, HasConnections, NeedsAttention *bool
}
type ListEventsParams ¶
type ListEventsParams struct {
ListParams
AfterOffset string
Type string
Since string
Until string
}
type ListFunctionsParams ¶
type ListHistoryChatsParams ¶
type ListHistoryChatsParams struct {
ListParams
Kind string
ActiveSince string
ActiveBefore string
}
type ListIndexedEventsParams ¶
type ListLabelsParams ¶
type ListLabelsParams struct{ IncludeObservation *bool }
type ListOperationsParams ¶
type ListParams ¶
type ListPlatformCampaignRecipientsParams ¶
type ListPlatformCampaignRecipientsParams struct {
ListCampaignRecipientsParams
ProjectID string
}
type ListRequestLogsParams ¶
type ListRequestLogsParams struct {
RequestLogFilters
ProjectID string
Limit *int
Cursor *string
}
type ListSection ¶
type ListVoiceAudioParams ¶
type ListVoiceAudioParams struct {
ListParams
Status string
}
type ListWebhooksParams ¶
type ListWebhooksParams struct {
ListParams
EventType string
Enabled *bool
}
type LiveEventMetadata ¶
type LiveEventMetadata struct{ Cursor string }
type LiveEventSubscription ¶
type LiveEventSubscription struct {
// contains filtered or unexported fields
}
func (*LiveEventSubscription) Cancel ¶
func (s *LiveEventSubscription) Cancel()
func (*LiveEventSubscription) Done ¶
func (s *LiveEventSubscription) Done() <-chan struct{}
type LocationContent ¶
type ManagedFlowEncryptionKey ¶
type ManagedFlowEncryptionKey struct {
ID string `json:"id"`
State string `json:"state"`
Fingerprint string `json:"fingerprint"`
PublicKey string `json:"publicKey"`
ErrorCode *string `json:"errorCode"`
CreatedAt int64 `json:"createdAt"`
ActivatedAt *int64 `json:"activatedAt"`
RetireAfter *int64 `json:"retireAfter"`
}
type MarketingMessagesStatus ¶
type MarketingMessagesStatus struct {
WABAID string `json:"wabaId"`
Onboarding MarketingOnboarding `json:"onboarding"`
Terms MarketingTerms `json:"terms"`
CloudAPIMarketingDisabled *bool `json:"cloudApiMarketingDisabled"`
NextAction string `json:"nextAction"`
GuideURL string `json:"guideUrl"`
ObservedAt string `json:"observedAt"`
}
type MarketingOnboarding ¶
type MarketingTerms ¶
type MediaContent ¶
type MediaContent struct {
Descriptor *WhatsAppMediaSendDescriptor `json:"-"`
URL string `json:"url,omitempty"`
Base64 string `json:"base64,omitempty"`
MimeType string `json:"mimeType,omitempty"`
Caption string `json:"caption,omitempty"`
Filename string `json:"filename,omitempty"`
PTT *bool `json:"ptt,omitempty"`
}
type MediaControlFrame ¶
type MediaControlFrame struct {
WaitingRoom *CallWaitingRoom `json:"state,omitempty"`
OK *bool `json:"ok,omitempty"`
Operation string `json:"operation,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Type string `json:"type"`
CallID string `json:"callId,omitempty"`
ConnectionID string `json:"connectionId,omitempty"`
SampleRate int `json:"sampleRate,omitempty"`
Video *bool `json:"video,omitempty"`
AudioMuted *bool `json:"audioMuted,omitempty"`
VideoEnabled *bool `json:"videoEnabled,omitempty"`
ScreenSharing *bool `json:"screenSharing,omitempty"`
RequestID string `json:"requestId,omitempty"`
Code string `json:"code,omitempty"`
Message string `json:"message,omitempty"`
Participant *CallParticipant `json:"participant,omitempty"`
ParticipantID string `json:"participantId,omitempty"`
Source uint32 `json:"source,omitempty"`
ConnectionParticipant string `json:"connectionParticipant,omitempty"`
Reason string `json:"reason,omitempty"`
Emoji *string `json:"emoji,omitempty"`
Self *bool `json:"self,omitempty"`
Raised *bool `json:"raised,omitempty"`
Supported *bool `json:"supported,omitempty"`
}
type MediaDownload ¶
type MediaDownloadURL ¶
func (MediaDownloadURL) GoString ¶
func (d MediaDownloadURL) GoString() string
func (MediaDownloadURL) String ¶
func (d MediaDownloadURL) String() string
type MediaFileOptions ¶
MediaFileOptions replaces a destination only after a complete successful download. Set Overwrite to false to protect an existing file; nil defaults to true.
type MediaFileResult ¶
type MediaFileResult struct {
Path string
Bytes int64
MediaKind, MimeType, Filename string
FileLength *int64
}
func DownloadWhatsAppMediaToFile ¶
func DownloadWhatsAppMediaToFile(ctx context.Context, d WhatsAppMediaDescriptor, path string, o WhatsAppMediaDownloadOptions, overwrite bool) (MediaFileResult, error)
type Members ¶
type Members struct {
// contains filtered or unexported fields
}
func (*Members) List ¶
func (r *Members) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]TeamMember]], error)
type MessageAckPayload ¶
type MessageAckPayload struct {
Messages []WebhookMessageReference `json:"messages"`
Conversation WebhookConversation `json:"conversation"`
From *WebhookIdentity `json:"from,omitempty"`
Sender *WebhookIdentity `json:"sender,omitempty"`
Type string `json:"type"`
Timestamp int64 `json:"timestamp"`
Pricing *MetaPricingReport `json:"pricing,omitempty"`
// contains filtered or unexported fields
}
type MessageButton ¶
type MessageButton struct {
Type string `json:"type"`
Text string `json:"text"`
URL string `json:"url,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
ID string `json:"id,omitempty"`
CopyCode string `json:"copyCode,omitempty"`
BusinessPhoneNumber string `json:"businessPhoneNumber,omitempty"`
CatalogProductID string `json:"catalogProductId,omitempty"`
}
type MessageContent ¶
type MessageContent struct {
Sticker *StickerContent `json:"sticker,omitempty"`
Text *string `json:"text,omitempty"`
Image *MediaContent `json:"image,omitempty"`
Video *MediaContent `json:"video,omitempty"`
File *MediaContent `json:"file,omitempty"`
Voice *MediaContent `json:"voice,omitempty"`
Poll *PollContent `json:"poll,omitempty"`
Location *LocationContent `json:"location,omitempty"`
Contact *ContactContent `json:"contact,omitempty"`
RequestPhoneNumber *struct{} `json:"requestPhoneNumber,omitempty"`
Product *ProductContent `json:"product,omitempty"`
ProductList *ProductListContent `json:"productList,omitempty"`
Order *OrderContent `json:"order,omitempty"`
List *ListContent `json:"list,omitempty"`
Carousel *CarouselContent `json:"carousel,omitempty"`
Buttons *ButtonsContent `json:"buttons,omitempty"`
AddressMessage *AddressContent `json:"addressMessage,omitempty"`
Flow *FlowContent `json:"flow,omitempty"`
CallPermissionRequest *CallPermissionRequestContent `json:"callPermissionRequest,omitempty"`
OrderDetails *OrderDetailsContent `json:"orderDetails,omitempty"`
OrderStatus *OrderStatusContent `json:"orderStatus,omitempty"`
Template *TemplateContent `json:"template,omitempty"`
}
MessageContent is a tagged union: set exactly one field. Send validates this invariant before transport while leaving API business validation authoritative.
func (*MessageContent) UnmarshalJSON ¶
func (content *MessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON preserves descriptor responses as typed secret-redacted values. The enclosing media kind supplies its HKDF identity; the wire object has none.
type MessageDeletePayload ¶
type MessageDeletePayload struct {
From WebhookIdentity `json:"from"`
Sender WebhookIdentity `json:"sender"`
ID string `json:"id"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
Conversation WebhookConversation `json:"conversation"`
FromMe bool `json:"fromMe"`
// contains filtered or unexported fields
}
type MessageEchoPayload ¶
type MessageEchoPayload struct {
Source string `json:"source"`
Value PlatformPayload `json:"value"`
// contains filtered or unexported fields
}
type MessageFailedPayload ¶
type MessageOperation ¶
type MessageOperation struct {
OperationID string `json:"operationId"`
Status string `json:"status"`
Transport MessageTransport `json:"transport,omitempty"`
RejectionCode string `json:"rejectionCode,omitempty"`
Receipt *struct {
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
Timestamp string `json:"timestamp"`
} `json:"receipt,omitempty"`
}
type MessageReceipt ¶
type MessageReceipt struct {
ID string `json:"id"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
Conversation ConversationReference `json:"conversation"`
Timestamp string `json:"timestamp"`
Status string `json:"status"`
Transport MessageTransport `json:"transport,omitempty"`
RoutingReason string `json:"routingReason,omitempty"`
OperationID string `json:"operationId,omitempty"`
}
type MessageResult ¶
type MessageResult struct {
MessageReceipt
Type string `json:"type"`
Content *MessageContent `json:"content,omitempty"`
MediaID string `json:"mediaId,omitempty"`
}
type MessageSentPayload ¶
type MessageSentPayload struct {
ID string `json:"id"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
Conversation WebhookConversation `json:"conversation"`
Type string `json:"type"`
Timestamp int64 `json:"timestamp"`
// contains filtered or unexported fields
}
type MessageTransport ¶
type MessageTransport string
const ( TransportAuto MessageTransport = "auto" TransportLinkedDevices MessageTransport = "linked_devices" TransportOfficialAPI MessageTransport = "official_api" )
type Messages ¶
type Messages struct {
// contains filtered or unexported fields
}
func (*Messages) MarkSeen ¶
func (r *Messages) MarkSeen(ctx context.Context, s string, b SeenRequest, o ...RequestOptions) (Response[Envelope[StatusResult]], error)
func (*Messages) OperationStatus ¶
func (r *Messages) OperationStatus(ctx context.Context, connection, id string, opts ...RequestOptions) (Response[Envelope[MessageOperation]], error)
func (*Messages) React ¶
func (r *Messages) React(ctx context.Context, s string, b ReactionRequest, opts ...RequestOptions) (Response[Envelope[MessageReceipt]], error)
func (*Messages) Send ¶
func (r *Messages) Send(ctx context.Context, connection string, b SendMessageRequest, opts ...RequestOptions) (Response[Envelope[MessageResult]], error)
Send validates one content variant and its interactive media before HTTP, then submits an idempotent request with descriptor-specific version handling.
func (*Messages) SetTyping ¶
func (r *Messages) SetTyping(ctx context.Context, s string, b TypingRequest, o ...RequestOptions) (Response[Envelope[StatusResult]], error)
func (*Messages) Star ¶
func (r *Messages) Star(ctx context.Context, s string, b StarRequest, o ...RequestOptions) (Response[Envelope[StatusResult]], error)
type MessagingBanSafe ¶
type MessagingBanSafe struct {
// contains filtered or unexported fields
}
func (*MessagingBanSafe) GetConnectionSafeMode ¶
func (r *MessagingBanSafe) GetConnectionSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionSafeMode]], error)
func (*MessagingBanSafe) GetProjectHealthPolicy ¶
func (r *MessagingBanSafe) GetProjectHealthPolicy(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectHealthPolicy]], error)
func (*MessagingBanSafe) GetProjectInsuranceEvidence ¶
func (r *MessagingBanSafe) GetProjectInsuranceEvidence(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectInsuranceEvidence]], error)
func (*MessagingBanSafe) GetProjectSafeMode ¶
func (r *MessagingBanSafe) GetProjectSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectSafeMode]], error)
func (*MessagingBanSafe) GetProjectWarmupPlan ¶
func (r *MessagingBanSafe) GetProjectWarmupPlan(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectWarmupPlan]], error)
func (*MessagingBanSafe) UpdateConnectionSafeMode ¶
func (r *MessagingBanSafe) UpdateConnectionSafeMode(ctx context.Context, id string, b UpdateConnectionSafeModeRequest, o ...RequestOptions) (Response[Envelope[ConnectionSafeMode]], error)
func (*MessagingBanSafe) UpdateProjectHealthPolicy ¶
func (r *MessagingBanSafe) UpdateProjectHealthPolicy(ctx context.Context, id string, b UpdateProjectHealthPolicyRequest, o ...RequestOptions) (Response[Envelope[ProjectHealthPolicy]], error)
func (*MessagingBanSafe) UpdateProjectInsuranceEvidence ¶
func (r *MessagingBanSafe) UpdateProjectInsuranceEvidence(ctx context.Context, id string, b UpdateProjectInsuranceEvidenceRequest, o ...RequestOptions) (Response[Envelope[ProjectInsuranceEvidence]], error)
func (*MessagingBanSafe) UpdateProjectSafeMode ¶
func (r *MessagingBanSafe) UpdateProjectSafeMode(ctx context.Context, id string, b UpdateProjectSafeModeRequest, o ...RequestOptions) (Response[Envelope[ProjectSafeMode]], error)
func (*MessagingBanSafe) UpdateProjectWarmupPlan ¶
func (r *MessagingBanSafe) UpdateProjectWarmupPlan(ctx context.Context, id string, b UpdateProjectWarmupPlanRequest, o ...RequestOptions) (Response[Envelope[ProjectWarmupPlan]], error)
type MessagingCampaigns ¶
type MessagingCampaigns struct {
// contains filtered or unexported fields
}
func (*MessagingCampaigns) AddRecipients ¶
func (r *MessagingCampaigns) AddRecipients(ctx context.Context, project, id string, b AddCampaignRecipientsRequest, o ...RequestOptions) (Response[Envelope[AddCampaignRecipientsResult]], error)
func (*MessagingCampaigns) Analytics ¶
func (r *MessagingCampaigns) Analytics(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignAnalytics]], error)
func (*MessagingCampaigns) Create ¶
func (r *MessagingCampaigns) Create(ctx context.Context, project string, b CreateCampaignRequest, o ...RequestOptions) (Response[Envelope[Campaign]], error)
func (*MessagingCampaigns) CreateReplyFlow ¶
func (r *MessagingCampaigns) CreateReplyFlow(ctx context.Context, project string, b CreateCampaignReplyFlowRequest, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
func (*MessagingCampaigns) Enroll ¶
func (r *MessagingCampaigns) Enroll(ctx context.Context, project, id string, b EnrollCampaignContactRequest, o ...RequestOptions) (Response[Envelope[CampaignEnrollment]], error)
Enroll adds a contact to a running or paused continuous drip; sent once.
func (*MessagingCampaigns) ExportRecipients ¶
func (r *MessagingCampaigns) ExportRecipients(ctx context.Context, project, id string, p CampaignRecipientExportParams, o ...RequestOptions) (Response[CampaignRecipientExportPage], error)
func (*MessagingCampaigns) GetReplyFlow ¶
func (r *MessagingCampaigns) GetReplyFlow(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
func (*MessagingCampaigns) Launch ¶
func (r *MessagingCampaigns) Launch(ctx context.Context, project, id string, b LaunchCampaignRequest, o ...RequestOptions) (Response[Envelope[CampaignOperation]], error)
func (*MessagingCampaigns) Links ¶
func (r *MessagingCampaigns) Links(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[[]CampaignTrackedLinkReport]], error)
func (*MessagingCampaigns) List ¶
func (r *MessagingCampaigns) List(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[[]Campaign]], error)
func (*MessagingCampaigns) ListRecipients ¶
func (r *MessagingCampaigns) ListRecipients(ctx context.Context, project, id string, p ListCampaignRecipientsParams, o ...RequestOptions) (Response[CursorEnvelope[CampaignRecipient]], error)
func (*MessagingCampaigns) Pause ¶
func (r *MessagingCampaigns) Pause(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignOperation]], error)
func (*MessagingCampaigns) Requeue ¶
func (r *MessagingCampaigns) Requeue(ctx context.Context, project, id string, b RequeueCampaignRequest, o ...RequestOptions) (Response[Envelope[CampaignRequeueResult]], error)
func (*MessagingCampaigns) Reschedule ¶
func (r *MessagingCampaigns) Reschedule(ctx context.Context, project, id string, b RescheduleCampaignRequest, o ...RequestOptions) (Response[Envelope[CampaignOperation]], error)
func (*MessagingCampaigns) Resume ¶
func (r *MessagingCampaigns) Resume(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignOperation]], error)
func (*MessagingCampaigns) Retrieve ¶
func (r *MessagingCampaigns) Retrieve(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[Campaign]], error)
func (*MessagingCampaigns) SetReplyFlow ¶
func (r *MessagingCampaigns) SetReplyFlow(ctx context.Context, project, id string, b SetCampaignReplyFlowRequest, o ...RequestOptions) (Response[Envelope[CampaignReplyFlowAssignment]], error)
func (*MessagingCampaigns) Stop ¶
func (r *MessagingCampaigns) Stop(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[CampaignStopOperation]], error)
func (*MessagingCampaigns) TestSend ¶
func (r *MessagingCampaigns) TestSend(ctx context.Context, project, id string, b CampaignTestSendRequest, o ...RequestOptions) (Response[Envelope[CampaignTestSend]], error)
func (*MessagingCampaigns) Update ¶
func (r *MessagingCampaigns) Update(ctx context.Context, project, id string, b UpdateCampaignRequest, o ...RequestOptions) (Response[Envelope[Campaign]], error)
type MessagingClient ¶
type MessagingClient struct {
// contains filtered or unexported fields
}
MessagingClient accepts a team key, project token, or scoped client token. Resource-specific restrictions are enforced before HTTP.
func NewMessagingClient ¶
func NewMessagingClient(c Config) (*MessagingClient, error)
func (*MessagingClient) BanSafe ¶
func (c *MessagingClient) BanSafe() *MessagingBanSafe
func (*MessagingClient) Business ¶
func (c *MessagingClient) Business() *Business
func (*MessagingClient) Campaigns ¶
func (c *MessagingClient) Campaigns() *MessagingCampaigns
func (*MessagingClient) Catalogs ¶
func (c *MessagingClient) Catalogs() *Catalogs
func (*MessagingClient) Channels ¶
func (c *MessagingClient) Channels() *Channels
func (*MessagingClient) Chats ¶
func (c *MessagingClient) Chats() *Chats
func (*MessagingClient) ClientTokens ¶
func (c *MessagingClient) ClientTokens() *ClientTokens
func (*MessagingClient) CloudCatalogs ¶
func (c *MessagingClient) CloudCatalogs() *CloudCatalogs
func (*MessagingClient) CloudMarketing ¶
func (c *MessagingClient) CloudMarketing() *CloudMarketing
func (*MessagingClient) CloudOnboarding ¶
func (c *MessagingClient) CloudOnboarding() *CloudOnboarding
func (*MessagingClient) CloudTemplates ¶
func (c *MessagingClient) CloudTemplates() *CloudTemplates
func (*MessagingClient) ConnectionCalls ¶
func (c *MessagingClient) ConnectionCalls() *ConnectionCalls
func (*MessagingClient) Connections ¶
func (c *MessagingClient) Connections() *MessagingConnections
func (*MessagingClient) Contacts ¶
func (c *MessagingClient) Contacts() *Contacts
func (*MessagingClient) FlowEncryption ¶
func (c *MessagingClient) FlowEncryption() *FlowEncryption
func (*MessagingClient) Groups ¶
func (c *MessagingClient) Groups() *Groups
func (*MessagingClient) HistorySync ¶
func (client *MessagingClient) HistorySync() *HistorySyncResource
func (*MessagingClient) HybridLink ¶
func (c *MessagingClient) HybridLink() *HybridLink
func (*MessagingClient) Identities ¶
func (c *MessagingClient) Identities() *Identities
func (*MessagingClient) Labels ¶
func (c *MessagingClient) Labels() *Labels
func (*MessagingClient) Media ¶
func (c *MessagingClient) Media() *MessagingMedia
func (*MessagingClient) Messages ¶
func (c *MessagingClient) Messages() *Messages
func (*MessagingClient) ObservationPolicies ¶
func (c *MessagingClient) ObservationPolicies() *ObservationPolicies
func (*MessagingClient) OfficialGroups ¶
func (c *MessagingClient) OfficialGroups() *OfficialGroups
func (*MessagingClient) Passkeys ¶
func (c *MessagingClient) Passkeys() *Passkeys
func (*MessagingClient) Presence ¶
func (c *MessagingClient) Presence() *Presence
func (*MessagingClient) Privacy ¶
func (c *MessagingClient) Privacy() *Privacy
func (*MessagingClient) Profile ¶
func (c *MessagingClient) Profile() *Profile
func (*MessagingClient) QuickLinks ¶
func (c *MessagingClient) QuickLinks() *QuickLinks
func (*MessagingClient) QuickReplies ¶
func (c *MessagingClient) QuickReplies() *QuickReplies
func (*MessagingClient) Raw ¶
func (c *MessagingClient) Raw(ctx context.Context, r RawRequest) (RawResponse, error)
func (*MessagingClient) Templates ¶
func (c *MessagingClient) Templates() *Templates
func (*MessagingClient) Testing ¶
func (c *MessagingClient) Testing() *Testing
func (*MessagingClient) Users ¶
func (c *MessagingClient) Users() *Users
func (*MessagingClient) VoIP ¶
func (c *MessagingClient) VoIP() *VoIP
func (*MessagingClient) Webhooks ¶
func (c *MessagingClient) Webhooks() *MessagingWebhooks
func (*MessagingClient) WhatsAppMedia ¶
func (client *MessagingClient) WhatsAppMedia() *WhatsAppMediaResource
type MessagingConnections ¶
type MessagingConnections struct {
// contains filtered or unexported fields
}
func (*MessagingConnections) Account ¶
func (r *MessagingConnections) Account(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[WhatsAppAccount]], error)
func (*MessagingConnections) Delete ¶
func (r *MessagingConnections) Delete(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionLifecycleResult]], error)
func (*MessagingConnections) GetCloudCredentialHealth ¶
func (r *MessagingConnections) GetCloudCredentialHealth(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[CloudCredentialHealth]], error)
func (*MessagingConnections) GetMetaPricing ¶
func (r *MessagingConnections) GetMetaPricing(ctx context.Context, s string, p MetaPricingParams, o ...RequestOptions) (Response[Envelope[MetaPricingSummary]], error)
func (*MessagingConnections) List ¶
func (r *MessagingConnections) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]PlatformConnection]], error)
func (*MessagingConnections) Logout ¶
func (r *MessagingConnections) Logout(ctx context.Context, s string, o ...RequestOptions) (Response[OperationAccepted], error)
func (*MessagingConnections) QR ¶
func (r *MessagingConnections) QR(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[QRCode]], error)
func (*MessagingConnections) ReauthorizeCloudCredentials ¶
func (r *MessagingConnections) ReauthorizeCloudCredentials(ctx context.Context, s string, opts ...RequestOptions) (Response[Envelope[CloudReauthorization]], error)
func (*MessagingConnections) RequestPairingCode ¶
func (r *MessagingConnections) RequestPairingCode(ctx context.Context, s string, b PairingCodeRequest, o ...RequestOptions) (Response[Envelope[PairingCode]], error)
func (*MessagingConnections) Restart ¶
func (r *MessagingConnections) Restart(ctx context.Context, s string, o ...RequestOptions) (Response[OperationAccepted], error)
func (*MessagingConnections) Retrieve ¶
func (r *MessagingConnections) Retrieve(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[Connection]], error)
func (*MessagingConnections) Start ¶
func (r *MessagingConnections) Start(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionLifecycleResult]], error)
func (*MessagingConnections) Stop ¶
func (r *MessagingConnections) Stop(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionLifecycleResult]], error)
func (*MessagingConnections) Update ¶
func (r *MessagingConnections) Update(ctx context.Context, s string, b UpdateConnectionRequest, o ...RequestOptions) (Response[Envelope[Connection]], error)
type MessagingMedia ¶
type MessagingMedia struct {
// contains filtered or unexported fields
}
func (*MessagingMedia) Download ¶
func (r *MessagingMedia) Download(ctx context.Context, id string, o ...RequestOptions) (Response[[]byte], error)
func (*MessagingMedia) DownloadFromWhatsApp ¶
func (r *MessagingMedia) DownloadFromWhatsApp(ctx context.Context, d WhatsAppMediaDescriptor, o WhatsAppMediaDownloadOptions) (WhatsAppMediaDownload, error)
func (*MessagingMedia) DownloadStream ¶
func (r *MessagingMedia) DownloadStream(ctx context.Context, id string, o ...RequestOptions) (*MediaDownload, error)
func (*MessagingMedia) DownloadToFile ¶
func (r *MessagingMedia) DownloadToFile(ctx context.Context, id, path string, file MediaFileOptions, o ...RequestOptions) (APIMediaFileResult, error)
func (*MessagingMedia) DownloadURL ¶
func (r *MessagingMedia) DownloadURL(ctx context.Context, id string, opts ...RequestOptions) (MediaDownloadURL, error)
func (*MessagingMedia) Persist ¶
func (r *MessagingMedia) Persist(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
type MessagingWebhook ¶
type MessagingWebhook struct {
ID string `json:"id"`
TenantID string `json:"tenantId"`
Connection string `json:"connection,omitempty"`
URL string `json:"url"`
Events []string `json:"events"`
Retries WebhookRetryConfig `json:"retries"`
Headers []WebhookHeader `json:"headers"`
Enabled bool `json:"enabled"`
Format string `json:"format,omitempty"`
CreatedAt string `json:"createdAt"`
}
type MessagingWebhooks ¶
type MessagingWebhooks struct {
// contains filtered or unexported fields
}
func (*MessagingWebhooks) Create ¶
func (r *MessagingWebhooks) Create(ctx context.Context, b CreateMessagingWebhookRequest, o ...RequestOptions) (Response[Envelope[MessagingWebhook]], error)
func (*MessagingWebhooks) Delete ¶
func (r *MessagingWebhooks) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
func (*MessagingWebhooks) List ¶
func (r *MessagingWebhooks) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]MessagingWebhook]], error)
func (*MessagingWebhooks) Retrieve ¶
func (r *MessagingWebhooks) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[MessagingWebhook]], error)
func (*MessagingWebhooks) Update ¶
func (r *MessagingWebhooks) Update(ctx context.Context, id string, b UpdateMessagingWebhookRequest, o ...RequestOptions) (Response[Envelope[MessagingWebhook]], error)
type MetaPricingGroup ¶
type MetaPricingParams ¶
type MetaPricingParams struct{ Since, Until string }
type MetaPricingReport ¶
type MetaPricingSummary ¶
type MetaPricingSummary struct {
Source string `json:"source"`
Since string `json:"since"`
Until string `json:"until"`
Messages int64 `json:"messages"`
Groups []MetaPricingGroup `json:"groups"`
}
type MintClientTokenRequest ¶
type MintClientTokenRequest struct {
EphemeralID string `json:"ephemeralId"`
TTLSeconds *int `json:"ttlSeconds,omitempty"`
Connection string `json:"connection,omitempty"`
Customer string `json:"customer,omitempty"`
// A nil ceiling is omitted; an explicit empty slice seals zero actions.
Allow []string `json:"allow,omitzero"`
}
type NativeFlowResponse ¶
type NewChatCapping ¶
type NewChatCapping struct {
Enabled *bool `json:"enabled"`
Pacing bool `json:"pacing"`
Status *string `json:"status"`
Capped bool `json:"capped"`
Limit *int `json:"limit"`
Used *int `json:"used"`
Remaining *int `json:"remaining"`
CycleStartsAt *string `json:"cycleStartsAt"`
ResetsAt *string `json:"resetsAt"`
ObservedAt string `json:"observedAt"`
}
type NewsletterUpdatePayload ¶
type Nullable ¶
type Nullable[T any] struct{ Value *T }
Nullable separates an omitted pointer field from an explicit JSON null.
func (Nullable[T]) MarshalJSON ¶
func (*Nullable[T]) UnmarshalJSON ¶
type NullableString ¶
type NullableString struct{ Value *string }
NullableString preserves the difference between omitted and explicitly null.
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
type ObservationPolicies ¶
type ObservationPolicies struct {
// contains filtered or unexported fields
}
func (*ObservationPolicies) RetrieveForConnection ¶
func (r *ObservationPolicies) RetrieveForConnection(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionObservationPolicy]], error)
func (*ObservationPolicies) RetrieveForProject ¶
func (r *ObservationPolicies) RetrieveForProject(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectObservationPolicy]], error)
type ObservationValues ¶
type ObservedQuickReply ¶
type ObservedQuickReply struct {
QuickReply
AssociatedLabelIDs []string `json:"associatedLabelIds"`
ObservedAt string `json:"observedAt"`
}
type OfficialGroup ¶
type OfficialGroup struct {
ID string `json:"id"`
Subject string `json:"subject,omitempty"`
Description string `json:"description,omitempty"`
Suspended *bool `json:"suspended,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
ParticipantCount *int `json:"participantCount,omitempty"`
JoinApprovalRequired *bool `json:"joinApprovalRequired,omitempty"`
Participants []ConversationReference `json:"participants"`
}
type OfficialGroupAccepted ¶
type OfficialGroupAccepted struct {
Accepted bool `json:"accepted"`
}
type OfficialGroupCursors ¶
type OfficialGroupInviteLink ¶
type OfficialGroupInviteLink struct {
InviteLink string `json:"inviteLink"`
}
type OfficialGroupJoinDecision ¶
type OfficialGroupJoinDecision struct {
Succeeded []string `json:"succeeded"`
Failed []OfficialGroupJoinFailure `json:"failed"`
}
type OfficialGroupJoinError ¶
type OfficialGroupJoinFailure ¶
type OfficialGroupJoinFailure struct {
JoinRequestID string `json:"joinRequestId"`
Errors []OfficialGroupJoinError `json:"errors"`
}
type OfficialGroupJoinRequest ¶
type OfficialGroupJoinRequest struct {
JoinRequestID string `json:"joinRequestId"`
User ConversationReference `json:"user"`
CreatedAt string `json:"createdAt,omitempty"`
}
type OfficialGroupJoinRequestList ¶
type OfficialGroupJoinRequestList struct {
Items []OfficialGroupJoinRequest `json:"items"`
Cursors OfficialGroupCursors `json:"cursors"`
HasMore bool `json:"hasMore"`
}
type OfficialGroupList ¶
type OfficialGroupList struct {
Groups []OfficialGroupSummary `json:"groups"`
Cursors OfficialGroupCursors `json:"cursors"`
HasMore bool `json:"hasMore"`
}
type OfficialGroupSummary ¶
type OfficialGroups ¶
type OfficialGroups struct {
// contains filtered or unexported fields
}
func (*OfficialGroups) ApproveJoinRequests ¶
func (r *OfficialGroups) ApproveJoinRequests(ctx context.Context, s, id string, ids []string, o ...RequestOptions) (Response[Envelope[OfficialGroupJoinDecision]], error)
func (*OfficialGroups) Create ¶
func (r *OfficialGroups) Create(ctx context.Context, s string, b CreateOfficialGroupRequest, o ...RequestOptions) (Response[Envelope[AsyncAccepted]], error)
func (*OfficialGroups) Delete ¶
func (r *OfficialGroups) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
func (*OfficialGroups) GetInviteLink ¶
func (r *OfficialGroups) GetInviteLink(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroupInviteLink]], error)
func (*OfficialGroups) List ¶
func (r *OfficialGroups) List(ctx context.Context, s string, p ListOfficialGroupsParams, o ...RequestOptions) (Response[Envelope[OfficialGroupList]], error)
func (*OfficialGroups) ListJoinRequests ¶
func (r *OfficialGroups) ListJoinRequests(ctx context.Context, s, id string, p OfficialGroupCursorParams, o ...RequestOptions) (Response[Envelope[OfficialGroupJoinRequestList]], error)
func (*OfficialGroups) Pin ¶
func (r *OfficialGroups) Pin(ctx context.Context, s, id string, b PinOfficialGroupMessageRequest, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
func (*OfficialGroups) RejectJoinRequests ¶
func (r *OfficialGroups) RejectJoinRequests(ctx context.Context, s, id string, ids []string, o ...RequestOptions) (Response[Envelope[OfficialGroupJoinDecision]], error)
func (*OfficialGroups) RemoveParticipants ¶
func (r *OfficialGroups) RemoveParticipants(ctx context.Context, s, id string, participants []string, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
func (*OfficialGroups) ResetInviteLink ¶
func (r *OfficialGroups) ResetInviteLink(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroupInviteLink]], error)
func (*OfficialGroups) Retrieve ¶
func (r *OfficialGroups) Retrieve(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[OfficialGroup]], error)
func (*OfficialGroups) SetPicture ¶
func (r *OfficialGroups) SetPicture(ctx context.Context, s, id string, jpeg []byte, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
SetPicture sends JPEG bytes as multipart file; the server checks image dimensions.
func (*OfficialGroups) Update ¶
func (r *OfficialGroups) Update(ctx context.Context, s, id string, b UpdateOfficialGroupRequest, o ...RequestOptions) (Response[Envelope[OfficialGroupAccepted]], error)
type Operation ¶
type Operation struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
ProjectID *string `json:"projectId"`
Kind string `json:"kind"`
Resource struct {
Type string `json:"type"`
ID string `json:"id"`
} `json:"resource"`
Status string `json:"status"`
Sequence int64 `json:"sequence"`
Capabilities struct {
Cancellable bool `json:"cancellable"`
Watchable bool `json:"watchable"`
} `json:"capabilities"`
Progress *OperationProgress `json:"progress"`
Result json.RawMessage `json:"result"`
Error *OperationError `json:"error"`
ActionRequired *OperationActionRequired `json:"actionRequired"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
CompletedAt *string `json:"completedAt"`
}
type OperationAccepted ¶
type OperationActionRequired ¶
type OperationActionRequired struct {
Code string `json:"code"`
Details json.RawMessage `json:"details"`
}
type OperationCancellationReceipt ¶
type OperationCancellationReceipt struct {
Operation Operation `json:"operation"`
OperationID string `json:"operationId"`
Idempotency IdempotencyReceipt `json:"idempotency"`
}
type OperationError ¶
type OperationError struct {
Code string `json:"code"`
Retryable bool `json:"retryable"`
Details json.RawMessage `json:"details"`
}
type OperationProgress ¶
type OperationTransition ¶
type OperationTransition struct {
OperationID string `json:"operationId"`
Sequence int64 `json:"sequence"`
FromStatus *string `json:"fromStatus"`
ToStatus string `json:"toStatus"`
ReasonCode *string `json:"reasonCode"`
OccurredAt string `json:"occurredAt"`
Snapshot struct {
Progress *OperationProgress `json:"progress"`
Error *OperationError `json:"error"`
ActionRequired *OperationActionRequired `json:"actionRequired"`
} `json:"snapshot"`
}
type Operations ¶
type Operations struct {
// contains filtered or unexported fields
}
func (*Operations) Cancel ¶
func (r *Operations) Cancel(ctx context.Context, id string, opts ...RequestOptions) (Response[OperationCancellationReceipt], error)
func (*Operations) Get ¶
func (r *Operations) Get(ctx context.Context, id string, p RetrieveOperationParams, opts ...RequestOptions) (Response[Operation], error)
func (*Operations) List ¶
func (r *Operations) List(ctx context.Context, p ListOperationsParams, o ...RequestOptions) (*CursorPage[Operation], error)
func (*Operations) ListTransitions ¶
func (r *Operations) ListTransitions(ctx context.Context, id string, p ListParams, afterSequence *int64, o ...RequestOptions) (*CursorPage[OperationTransition], error)
func (*Operations) Wait ¶
func (r *Operations) Wait(ctx context.Context, id string, p RetrieveOperationParams, maxWait time.Duration, o ...RequestOptions) (Response[Operation], error)
type OptOutSettings ¶
type OptOuts ¶
type OptOuts struct {
// contains filtered or unexported fields
}
func (*OptOuts) Create ¶
func (r *OptOuts) Create(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*OptOuts) CreateBatch ¶
func (r *OptOuts) CreateBatch(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*OptOuts) Delete ¶
func (r *OptOuts) Delete(ctx context.Context, phone string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*OptOuts) GetConfirmationSettings ¶
func (r *OptOuts) GetConfirmationSettings(ctx context.Context, o ...RequestOptions) (Response[Envelope[StopConfirmationSettings]], error)
func (*OptOuts) GetConfirmationSummary ¶
func (r *OptOuts) GetConfirmationSummary(ctx context.Context, o ...RequestOptions) (Response[Envelope[StopConfirmationSummary]], error)
func (*OptOuts) GetSettings ¶
func (r *OptOuts) GetSettings(ctx context.Context, o ...RequestOptions) (Response[Envelope[OptOutSettings]], error)
func (*OptOuts) List ¶
func (r *OptOuts) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*OptOuts) UpdateConfirmationSettings ¶
func (r *OptOuts) UpdateConfirmationSettings(ctx context.Context, b UpdateStopConfirmationSettingsRequest, o ...RequestOptions) (Response[Envelope[StopConfirmationSettings]], error)
func (*OptOuts) UpdateSettings ¶
func (r *OptOuts) UpdateSettings(ctx context.Context, b UpdateOptOutSettingsRequest, o ...RequestOptions) (Response[Envelope[OptOutSettings]], error)
type OrderContent ¶
type OrderContent struct {
ID string `json:"id"`
ThumbnailBase64 string `json:"thumbnailBase64,omitempty"`
ItemCount int `json:"itemCount"`
Status string `json:"status"`
Message string `json:"message,omitempty"`
Title string `json:"title,omitempty"`
SellerID string `json:"sellerId"`
Token string `json:"token,omitempty"`
TotalAmount1000 int64 `json:"totalAmount1000"`
TotalCurrencyCode string `json:"totalCurrencyCode"`
CatalogType string `json:"catalogType,omitempty"`
}
type OrderDetailsContent ¶
type OrderDetailsContent struct {
ReferenceID string `json:"referenceId"`
Type string `json:"type"`
Body string `json:"body"`
Currency string `json:"currency"`
TotalAmount PaymentAmount `json:"totalAmount"`
PaymentSettings PaymentSettings `json:"paymentSettings"`
Order *OrderItemization `json:"order,omitempty"`
HeaderImageURL string `json:"headerImageUrl,omitempty"`
}
type OrderExpiration ¶
type OrderItem ¶
type OrderItem struct {
RetailerID string `json:"retailerId"`
Name string `json:"name"`
Amount PaymentAmount `json:"amount"`
Quantity int `json:"quantity"`
SaleAmount *PaymentAmount `json:"saleAmount,omitempty"`
}
type OrderItemization ¶
type OrderItemization struct {
CatalogID string `json:"catalogId,omitempty"`
Expiration *OrderExpiration `json:"expiration,omitempty"`
Items []OrderItem `json:"items"`
Subtotal PaymentAmount `json:"subtotal"`
Tax PaymentAmount `json:"tax"`
Shipping *PaymentAmount `json:"shipping,omitempty"`
Discount *PaymentAmount `json:"discount,omitempty"`
}
type OrderPaymentMethodSelectedPayload ¶
type OrderPaymentMethodSelectedPayload struct {
OrderPaymentUpdateBase
MessageID string `json:"messageId"`
PaymentMethod string `json:"paymentMethod"`
LastFourDigits string `json:"lastFourDigits,omitempty"`
CredentialID string `json:"credentialId,omitempty"`
PaymentTimestamp *int64 `json:"paymentTimestamp,omitempty"`
}
type OrderPaymentStatusPayload ¶
type OrderPaymentStatusPayload struct {
OrderPaymentUpdateBase
Status string `json:"status"`
Amount *WebhookPaymentAmount `json:"amount,omitempty"`
Currency string `json:"currency,omitempty"`
Transaction *WebhookPaymentTransaction `json:"transaction,omitempty"`
}
type OrderPaymentUpdateBase ¶
type OrderPaymentUpdateBase struct {
ReportedBy string `json:"reportedBy"`
ProviderEventID string `json:"providerEventId"`
ReferenceID string `json:"referenceId"`
Conversation OrderPaymentConversation `json:"conversation"`
Kind string `json:"kind"`
// contains filtered or unexported fields
}
type OrderPaymentValue ¶
type OrderStatusContent ¶
type OrderStatusContent struct {
ReferenceID string `json:"referenceId"`
Body string `json:"body"`
Order *OrderStatusValue `json:"order,omitempty"`
Payment *OrderPaymentValue `json:"payment,omitempty"`
}
type OrderStatusValue ¶
type PageResult ¶
type PairingCode ¶
type PairingCode struct {
Code string `json:"code"`
}
type PairingCodeRequest ¶
type PairingCodeRequest struct {
Phone string `json:"phone"`
}
type PasskeyAssertion ¶
type PasskeyAssertion struct {
ID string `json:"id"`
RawIDB64URL string `json:"rawIdB64Url"`
Response PasskeyAssertionResponse `json:"response"`
}
type PasskeyAssertionResult ¶
type PasskeyConfirmation ¶
type PasskeyTicket ¶
type PasskeyTicket struct {
Version int `json:"version"`
Ticket string `json:"ticket"`
Connection string `json:"connection"`
RPID string `json:"rpId"`
ChallengeB64URL string `json:"challengeB64Url"`
UserVerification string `json:"userVerification"`
ExpiresAt string `json:"expiresAt"`
TimeoutMS *int64 `json:"timeoutMs,omitempty"`
}
type Passkeys ¶
type Passkeys struct {
// contains filtered or unexported fields
}
Passkeys relays supplied assertions. It never runs a browser ceremony.
func (*Passkeys) Confirm ¶
func (r *Passkeys) Confirm(ctx context.Context, s string, body ConfirmPasskeyRequest, o ...RequestOptions) (Response[Envelope[PasskeyConfirmation]], error)
func (*Passkeys) GetChallenge ¶
func (r *Passkeys) GetChallenge(ctx context.Context, s, ticket string, o ...RequestOptions) (Response[Envelope[PasskeyTicket]], error)
func (*Passkeys) GetConfirmation ¶
func (r *Passkeys) GetConfirmation(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[PasskeyConfirmation]], error)
func (*Passkeys) IssueChallenge ¶
func (r *Passkeys) IssueChallenge(ctx context.Context, s string, body IssuePasskeyChallengeRequest, o ...RequestOptions) (Response[Envelope[PasskeyTicket]], error)
func (*Passkeys) SubmitAssertion ¶
func (r *Passkeys) SubmitAssertion(ctx context.Context, s string, body SubmitPasskeyAssertionRequest, o ...RequestOptions) (Response[Envelope[PasskeyAssertionResult]], error)
type PaymentAmount ¶
type PaymentLink ¶
type PaymentLink struct {
URI string `json:"uri"`
}
type PaymentSettings ¶
type PaymentSettings struct {
PixDynamicCode *PixDynamicCode `json:"pixDynamicCode,omitempty"`
PaymentLink *PaymentLink `json:"paymentLink,omitempty"`
Boleto *Boleto `json:"boleto,omitempty"`
}
type PictureRequest ¶
type PingResponse ¶
type PingResponse struct {
Status string `json:"status"`
}
type PixDynamicCode ¶
type PlaceCallRequest ¶
type PlaceCallRequest struct {
To string `json:"to,omitempty"`
Participants []string `json:"participants,omitempty"`
GroupID string `json:"groupId,omitempty"`
Connection string `json:"connection,omitempty"`
Video *bool `json:"video,omitempty"`
Exclusive *bool `json:"exclusive,omitempty"`
Participant string `json:"participant,omitempty"`
}
type PlacedCall ¶
type PlatformCalls ¶
type PlatformCalls struct {
// contains filtered or unexported fields
}
func (*PlatformCalls) Export ¶
func (r *PlatformCalls) Export(ctx context.Context, p ExportCallRecordsParams, o ...RequestOptions) (Response[CallRecordExportPage], error)
func (*PlatformCalls) ExportAll ¶
func (r *PlatformCalls) ExportAll(ctx context.Context, p ExportCallRecordsParams, o ...RequestOptions) iter.Seq2[string, error]
func (*PlatformCalls) List ¶
func (r *PlatformCalls) List(ctx context.Context, p ListCallRecordsParams, o ...RequestOptions) (*CursorPage[CallRecord], error)
func (*PlatformCalls) Retrieve ¶
func (r *PlatformCalls) Retrieve(ctx context.Context, id string, p RetrieveCallRecordParams, o ...RequestOptions) (Response[CallRecordDetail], error)
func (*PlatformCalls) Stats ¶
func (r *PlatformCalls) Stats(ctx context.Context, p CallStatsParams, o ...RequestOptions) (Response[CallStats], error)
type PlatformCampaign ¶
type PlatformCampaign struct {
Campaign
Extra PlatformPayload `json:"-"`
}
func (PlatformCampaign) MarshalJSON ¶
func (v PlatformCampaign) MarshalJSON() ([]byte, error)
func (*PlatformCampaign) UnmarshalJSON ¶
func (v *PlatformCampaign) UnmarshalJSON(b []byte) error
type PlatformCampaignAnalytics ¶
type PlatformCampaignAnalytics struct {
CampaignAnalytics
}
type PlatformCampaignOperation ¶
type PlatformCampaignOperation struct {
PlatformCampaign
OperationID string `json:"operationId"`
}
func (PlatformCampaignOperation) MarshalJSON ¶
func (v PlatformCampaignOperation) MarshalJSON() ([]byte, error)
func (*PlatformCampaignOperation) UnmarshalJSON ¶
func (v *PlatformCampaignOperation) UnmarshalJSON(b []byte) error
type PlatformCampaignParams ¶
type PlatformCampaignParams struct{ ProjectID string }
type PlatformCampaignRecipientExportParams ¶
type PlatformCampaignRecipientExportParams struct {
CampaignRecipientExportParams
ProjectID string
}
type PlatformCampaignTestSendRequest ¶
type PlatformCampaignTestSendRequest struct {
CampaignTestSendRequest
ProjectID string `json:"projectId"`
}
type PlatformConnection ¶
type PlatformConnection struct {
ID string `json:"_id"`
CreationTime int64 `json:"_creationTime"`
ProjectID string `json:"projectId"`
ConnectionID string `json:"connectionId"`
Name string `json:"name"`
Phone *string `json:"phone"`
Platform *string `json:"platform"`
IsBusiness bool `json:"isBusiness"`
TestMode bool `json:"testMode"`
TierOverride *string `json:"tierOverride"`
Status string `json:"status"`
MessageCount int64 `json:"messageCount"`
LastActiveAt *int64 `json:"lastActiveAt"`
PaidUntil *int64 `json:"paidUntil"`
}
type PlatformConnections ¶
type PlatformConnections struct {
// contains filtered or unexported fields
}
func (*PlatformConnections) Delete ¶
func (r *PlatformConnections) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionRemoveResult]], error)
func (*PlatformConnections) DeleteMany ¶
func (r *PlatformConnections) DeleteMany(ctx context.Context, b ConnectionBatchRequest, o ...RequestOptions) (Response[Envelope[ConnectionBatchRemoveResult]], error)
func (*PlatformConnections) GetCapabilities ¶
func (r *PlatformConnections) GetCapabilities(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionCapabilities]], error)
func (*PlatformConnections) GetSafeMode ¶
func (r *PlatformConnections) GetSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ConnectionSafeMode]], error)
func (*PlatformConnections) List ¶
func (r *PlatformConnections) List(ctx context.Context, projectID string, o ...RequestOptions) (Response[Envelope[[]PlatformConnection]], error)
func (*PlatformConnections) QuoteTierChange ¶
func (r *PlatformConnections) QuoteTierChange(ctx context.Context, id string, b ConnectionTierQuoteRequest, o ...RequestOptions) (Response[Envelope[ConnectionTierChange]], error)
func (*PlatformConnections) Retrieve ¶
func (r *PlatformConnections) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[Connection]], error)
func (*PlatformConnections) RetrieveTierChange ¶
func (r *PlatformConnections) RetrieveTierChange(ctx context.Context, id, quoteID string, o ...RequestOptions) (Response[Envelope[ConnectionTierChange]], error)
func (*PlatformConnections) SetTierOverride ¶
func (r *PlatformConnections) SetTierOverride(ctx context.Context, id string, b ConnectionTierOverrideRequest, o ...RequestOptions) (Response[Envelope[ConnectionTierChange]], error)
func (*PlatformConnections) Start ¶
func (r *PlatformConnections) Start(ctx context.Context, id string, b ConnectionProjectContext, o ...RequestOptions) (Response[Envelope[ConnectionStartResult]], error)
func (*PlatformConnections) Stop ¶
func (r *PlatformConnections) Stop(ctx context.Context, id string, b ConnectionProjectContext, o ...RequestOptions) (Response[Envelope[ConnectionStopResult]], error)
func (*PlatformConnections) StopMany ¶
func (r *PlatformConnections) StopMany(ctx context.Context, b ConnectionBatchRequest, o ...RequestOptions) (Response[Envelope[ConnectionBatchStopResult]], error)
func (*PlatformConnections) Update ¶
func (r *PlatformConnections) Update(ctx context.Context, id string, b UpdateConnectionRequest, o ...RequestOptions) (Response[Envelope[Connection]], error)
func (*PlatformConnections) UpdateSafeMode ¶
func (r *PlatformConnections) UpdateSafeMode(ctx context.Context, id string, b UpdateConnectionSafeModeRequest, o ...RequestOptions) (Response[Envelope[ConnectionSafeMode]], error)
type PlatformEvent ¶
type PlatformEvent struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
ProjectID *string `json:"projectId"`
Type string `json:"type"`
Source string `json:"source"`
Environment string `json:"environment"`
CreatedAt string `json:"createdAt"`
PayloadAvailability string `json:"payloadAvailability"`
Payload *EncodedEventPayload `json:"payload"`
ReplayableUntil *string `json:"replayableUntil"`
MetadataExpiresAt string `json:"metadataExpiresAt"`
}
type PlatformMedia ¶
type PlatformMedia struct {
// contains filtered or unexported fields
}
func (*PlatformMedia) CreateUpload ¶
func (r *PlatformMedia) CreateUpload(ctx context.Context, b PlatformPayload, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*PlatformMedia) Delete ¶
func (r *PlatformMedia) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*PlatformMedia) Retrieve ¶
func (r *PlatformMedia) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
type PlatformPayload ¶
type PlatformPayload map[string]json.RawMessage
PlatformPayload is intentionally open in the pinned TypeScript contract. Strict resource schemas use their own handwritten request/response structs.
type PlatformWebhook ¶
type PlatformWebhook struct {
Batching WebhookBatching `json:"batching"`
ID string `json:"id"`
TeamID string `json:"teamId"`
Owner string `json:"owner"`
ProjectID *string `json:"projectId"`
URL string `json:"url"`
EventTypes []string `json:"eventTypes"`
Enabled bool `json:"enabled"`
Format string `json:"format"`
RetryPolicy WebhookRetryPolicy `json:"retryPolicy"`
Headers []WebhookHeaderMetadata `json:"headers"`
Secret WebhookSecretMetadata `json:"secret"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type PollContent ¶
type PollVotePayload ¶
type PollVotePayload struct {
Conversation WebhookConversation `json:"conversation"`
PollMessageID string `json:"pollMessageId"`
Voter WebhookIdentity `json:"voter"`
SelectedHashes []string `json:"selectedHashes"`
Timestamp int64 `json:"timestamp"`
// contains filtered or unexported fields
}
type Presence ¶
type Presence struct {
// contains filtered or unexported fields
}
func (*Presence) Get ¶
func (r *Presence) Get(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[PresenceData]], error)
func (*Presence) GetForChat ¶
func (r *Presence) GetForChat(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[ChatPresenceData]], error)
func (*Presence) Set ¶
func (r *Presence) Set(ctx context.Context, s, state string, o ...RequestOptions) (Response[PresenceMutationResult], error)
func (*Presence) Subscribe ¶
func (r *Presence) Subscribe(ctx context.Context, s, id string, o ...RequestOptions) (Response[PresenceMutationResult], error)
type PresenceData ¶
type PresenceMutationResult ¶
type PresenceUpdatePayload ¶
type PresenceUpdatePayload struct {
ObservedAt int64 `json:"observedAt"`
From *WebhookIdentity `json:"from,omitempty"`
Sender *WebhookIdentity `json:"sender,omitempty"`
State string `json:"state,omitempty"`
Media string `json:"media,omitempty"`
LastSeen *int64 `json:"lastSeen,omitempty"`
// contains filtered or unexported fields
}
type PreviewCallLinkRequest ¶
type PreviewCallLinkRequest struct {
CreateCallLinkRequest
Token string `json:"token"`
}
type PreviewedCallLink ¶
type PreviewedCallLink struct {
Connection string `json:"connection"`
Video bool `json:"video"`
Creator ConversationReference `json:"creator"`
ApprovalRequired bool `json:"approvalRequired"`
IsAdmin bool `json:"isAdmin"`
}
type Privacy ¶
type Privacy struct {
// contains filtered or unexported fields
}
func (*Privacy) Get ¶
func (r *Privacy) Get(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[PrivacySettings]], error)
func (*Privacy) Set ¶
func (r *Privacy) Set(ctx context.Context, s string, setting PrivacySettingName, value PrivacySettingValue, o ...RequestOptions) (Response[Envelope[PrivacySettings]], error)
func (*Privacy) SetDefaultDisappearingTimer ¶
func (r *Privacy) SetDefaultDisappearingTimer(ctx context.Context, s string, b DisappearingTimerRequest, o ...RequestOptions) (Response[Success], error)
type PrivacySettingName ¶
type PrivacySettingName string
PrivacySettingName and PrivacySettingValue retain the named privacy boundary.
type PrivacySettingValue ¶
type PrivacySettingValue string
type PrivacySettings ¶
type PrivacySettings struct {
GroupAdd string `json:"groupAdd"`
LastSeen string `json:"lastSeen"`
Status string `json:"status"`
Profile string `json:"profile"`
ReadReceipts string `json:"readReceipts"`
Online string `json:"online"`
CallAdd string `json:"callAdd"`
Messages string `json:"messages"`
Defense string `json:"defense"`
Stickers string `json:"stickers"`
}
type ProductContent ¶
type ProductContent struct {
BusinessOwnerID string `json:"businessOwnerId"`
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
CurrencyCode string `json:"currencyCode"`
PriceAmount1000 int64 `json:"priceAmount1000"`
SalePriceAmount1000 *int64 `json:"salePriceAmount1000,omitempty"`
RetailerID string `json:"retailerId,omitempty"`
URL string `json:"url,omitempty"`
ImageCount *int `json:"imageCount,omitempty"`
Image *MediaContent `json:"image,omitempty"`
Body string `json:"body,omitempty"`
}
type ProductListContent ¶
type ProductListContent struct {
BusinessOwnerID string `json:"businessOwnerId"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
ButtonText string `json:"buttonText"`
Sections []ProductListSection `json:"sections"`
}
type ProductListSection ¶
type ProductionBusiness ¶
type ProductionEnrollmentRequest ¶
type ProductionEnrollmentRequest struct {
Business ProductionBusiness `json:"business"`
}
type ProductionEnrollmentResult ¶
type ProductionEnrollmentResult struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
Name string `json:"name"`
Slug string `json:"slug"`
Stage string `json:"stage"`
OperationID string `json:"operationId"`
EnrollmentStatus string `json:"enrollmentStatus"`
BillingMode string `json:"billingMode"`
}
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
func (*Profile) DeletePicture ¶
func (*Profile) Get ¶
func (r *Profile) Get(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ProfileData]], error)
func (*Profile) SetPicture ¶
func (r *Profile) SetPicture(ctx context.Context, s string, b PictureRequest, o ...RequestOptions) (Response[Success], error)
type ProfileData ¶
type ProjectCampaigns ¶
type ProjectCampaigns struct {
// contains filtered or unexported fields
}
ProjectCampaigns exposes only the seven project-confined campaign operations. A resource retains its selected project; requests cannot retarget it.
func (*ProjectCampaigns) CreateReplyFlow ¶
func (r *ProjectCampaigns) CreateReplyFlow(ctx context.Context, b CreateCampaignReplyFlowRequest, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
func (*ProjectCampaigns) ExportRecipients ¶
func (r *ProjectCampaigns) ExportRecipients(ctx context.Context, id string, p CampaignRecipientExportParams, o ...RequestOptions) (Response[CampaignRecipientExportPage], error)
func (*ProjectCampaigns) GetReplyFlow ¶
func (r *ProjectCampaigns) GetReplyFlow(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[CampaignReplyFlow]], error)
func (*ProjectCampaigns) Links ¶
func (r *ProjectCampaigns) Links(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[[]CampaignTrackedLinkReport]], error)
func (*ProjectCampaigns) ListLaunchApprovals ¶
func (r *ProjectCampaigns) ListLaunchApprovals(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[[]CampaignLaunchApproval]], error)
func (*ProjectCampaigns) SetReplyFlow ¶
func (r *ProjectCampaigns) SetReplyFlow(ctx context.Context, id string, b SetCampaignReplyFlowRequest, o ...RequestOptions) (Response[Envelope[CampaignReplyFlowAssignment]], error)
func (*ProjectCampaigns) TestSend ¶
func (r *ProjectCampaigns) TestSend(ctx context.Context, id string, b CampaignTestSendRequest, o ...RequestOptions) (Response[Envelope[CampaignTestSend]], error)
type ProjectClient ¶
type ProjectClient struct {
// contains filtered or unexported fields
}
func NewProjectClient ¶
func NewProjectClient(c Config, projectID string) (*ProjectClient, error)
func (*ProjectClient) Analytics ¶
func (c *ProjectClient) Analytics() *Analytics
func (*ProjectClient) CallRetention ¶
func (c *ProjectClient) CallRetention() *CallRetentionResource
func (*ProjectClient) Calls ¶
func (c *ProjectClient) Calls() *PlatformCalls
func (*ProjectClient) Campaigns ¶
func (c *ProjectClient) Campaigns() *ProjectCampaigns
func (*ProjectClient) ConnectionConfiguration ¶
func (c *ProjectClient) ConnectionConfiguration() *ConnectionConfigurationResource
func (*ProjectClient) Events ¶
func (c *ProjectClient) Events() *Events
func (*ProjectClient) Flows ¶
func (c *ProjectClient) Flows() *Flows
func (*ProjectClient) Functions ¶
func (c *ProjectClient) Functions() *Functions
func (*ProjectClient) Operations ¶
func (c *ProjectClient) Operations() *Operations
func (*ProjectClient) Project ¶
func (c *ProjectClient) Project(id string) (*ProjectClient, error)
func (*ProjectClient) ProjectID ¶
func (c *ProjectClient) ProjectID() string
func (*ProjectClient) QuickLinkSettings ¶
func (c *ProjectClient) QuickLinkSettings() *QuickLinkSettingsResource
func (*ProjectClient) Raw ¶
func (c *ProjectClient) Raw(ctx context.Context, r RawRequest) (RawResponse, error)
func (*ProjectClient) RequestLogs ¶
func (c *ProjectClient) RequestLogs() *RequestLogs
func (*ProjectClient) SIPTrunks ¶
func (c *ProjectClient) SIPTrunks() *SIPTrunks
func (*ProjectClient) SignalCustody ¶
func (c *ProjectClient) SignalCustody() *SignalCustodyResource
func (*ProjectClient) Usage ¶
func (c *ProjectClient) Usage() *Usage
func (*ProjectClient) Voice ¶
func (c *ProjectClient) Voice() *ProjectVoice
func (*ProjectClient) WebhookDeliveries ¶
func (c *ProjectClient) WebhookDeliveries() *WebhookDeliveries
func (*ProjectClient) Webhooks ¶
func (c *ProjectClient) Webhooks() *Webhooks
type ProjectHealthPolicy ¶
type ProjectHealthPolicy struct {
ProjectID string `json:"projectId"`
Version int64 `json:"version"`
Enabled bool `json:"enabled"`
Threshold float64 `json:"threshold"`
ConnectionAction string `json:"connectionAction"`
SlowDownMPS *float64 `json:"slowDownMps"`
EmailNotification bool `json:"emailNotification"`
WebhookNotification bool `json:"webhookNotification"`
Integrations ProjectHealthPolicyIntegrations `json:"integrations"`
}
type ProjectIcon ¶
type ProjectObservationPolicy ¶
type ProjectObservationPolicy struct {
ProjectID string `json:"projectId"`
ObservationValues
}
type ProjectSafeMode ¶
type ProjectSafeMode struct {
ProjectID string `json:"projectId"`
Ceiling SafeModeSettings `json:"ceiling"`
Entitled bool `json:"entitled"`
EntitlementReason *string `json:"entitlementReason"`
}
type ProjectSignalCustodyUpdate ¶
type ProjectSignalCustodyUpdate struct {
ExpectedRevision int64 `json:"expectedRevision"`
SignalModeDefault SignalCustodyMode `json:"signalModeDefault"`
}
type ProjectTemplate ¶
type ProjectTemplate struct {
ID string `json:"id"`
Name string `json:"name"`
Category string `json:"category"`
Language string `json:"language"`
Status string `json:"status"`
Kind string `json:"kind"`
Definition *TemplateDefinition `json:"definition,omitempty"`
SampleValues map[string]string `json:"sampleValues,omitempty"`
CloudLinks []json.RawMessage `json:"cloudLinks"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type ProjectTokenRecord ¶
type ProjectTokenRecord struct {
ID string `json:"id"`
Start string `json:"start"`
Last4 string `json:"last4"`
Label *string `json:"label"`
Scopes int64 `json:"scopes"`
ExpiresAt *int64 `json:"expiresAt"`
CreatedAt int64 `json:"createdAt"`
LastUsedAt *int64 `json:"lastUsedAt"`
RevokedAt *int64 `json:"revokedAt"`
}
type ProjectTokens ¶
type ProjectTokens struct {
// contains filtered or unexported fields
}
func (*ProjectTokens) List ¶
func (r *ProjectTokens) List(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[[]ProjectTokenRecord]], error)
type ProjectVoice ¶
type ProjectVoice struct {
// contains filtered or unexported fields
}
func (*ProjectVoice) Audio ¶
func (v *ProjectVoice) Audio() *VoiceAudio
func (*ProjectVoice) ProviderCredentials ¶
func (v *ProjectVoice) ProviderCredentials() *VoiceProviderCredentials
type ProjectWarmupPlan ¶
type ProjectWarmupPlan struct {
ProjectID string `json:"projectId"`
Plan WarmupPlanSettings `json:"plan"`
Ceiling int `json:"ceiling"`
Curve []WarmupCurvePoint `json:"curve"`
Entitled bool `json:"entitled"`
EntitlementReason *string `json:"entitlementReason"`
}
type ProjectWithStats ¶
type ProjectWithStats struct {
ID string `json:"_id"`
CreationTime int64 `json:"_creationTime"`
TeamID string `json:"teamId"`
Name string `json:"name"`
Slug string `json:"slug"`
Icon ProjectIcon `json:"icon"`
DefaultTier string `json:"defaultTier"`
IsActive bool `json:"isActive"`
Stage string `json:"stage"`
ActiveConnections int64 `json:"activeConnections"`
TotalConnections int64 `json:"totalConnections"`
TotalMessages int64 `json:"totalMessages"`
LastActivity *int64 `json:"lastActivity"`
IconURL *string `json:"iconUrl"`
}
type Projects ¶
type Projects struct {
// contains filtered or unexported fields
}
func (*Projects) ApproveProductionEnrollment ¶
func (r *Projects) ApproveProductionEnrollment(ctx context.Context, id, op string, o ...RequestOptions) (Response[Envelope[ProductionEnrollmentCommandResult]], error)
func (*Projects) CancelProductionEnrollment ¶
func (r *Projects) CancelProductionEnrollment(ctx context.Context, id, op string, o ...RequestOptions) (Response[Envelope[ProductionEnrollmentCommandResult]], error)
func (*Projects) Create ¶
func (r *Projects) Create(ctx context.Context, b CreateProjectRequest, o ...RequestOptions) (Response[Envelope[Project]], error)
func (*Projects) GetHealthPolicy ¶
func (r *Projects) GetHealthPolicy(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectHealthPolicy]], error)
func (*Projects) GetInsuranceEvidence ¶
func (r *Projects) GetInsuranceEvidence(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectInsuranceEvidence]], error)
func (*Projects) GetSafeMode ¶
func (r *Projects) GetSafeMode(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectSafeMode]], error)
func (*Projects) GetSignalCustody ¶
func (r *Projects) GetSignalCustody(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
func (*Projects) GetWarmupPlan ¶
func (r *Projects) GetWarmupPlan(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[ProjectWarmupPlan]], error)
func (*Projects) List ¶
func (r *Projects) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]ProjectWithStats]], error)
func (*Projects) ListHybridMergeCandidates ¶
func (r *Projects) ListHybridMergeCandidates(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[[]HybridMergeCandidate]], error)
func (*Projects) RequestProductionEnrollment ¶
func (r *Projects) RequestProductionEnrollment(ctx context.Context, id string, b ProductionEnrollmentRequest, o ...RequestOptions) (Response[Envelope[ProductionEnrollmentResult]], error)
func (*Projects) UpdateHealthPolicy ¶
func (r *Projects) UpdateHealthPolicy(ctx context.Context, id string, b UpdateProjectHealthPolicyRequest, o ...RequestOptions) (Response[Envelope[ProjectHealthPolicy]], error)
func (*Projects) UpdateInsuranceEvidence ¶
func (r *Projects) UpdateInsuranceEvidence(ctx context.Context, id string, b UpdateProjectInsuranceEvidenceRequest, o ...RequestOptions) (Response[Envelope[ProjectInsuranceEvidence]], error)
func (*Projects) UpdateSafeMode ¶
func (r *Projects) UpdateSafeMode(ctx context.Context, id string, b UpdateProjectSafeModeRequest, o ...RequestOptions) (Response[Envelope[ProjectSafeMode]], error)
func (*Projects) UpdateSignalCustody ¶
func (r *Projects) UpdateSignalCustody(ctx context.Context, project string, b ProjectSignalCustodyUpdate, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
func (*Projects) UpdateWarmupPlan ¶
func (r *Projects) UpdateWarmupPlan(ctx context.Context, id string, b UpdateProjectWarmupPlanRequest, o ...RequestOptions) (Response[Envelope[ProjectWarmupPlan]], error)
type PutAudienceProfileRequest ¶
type PutAudienceProfileRequest struct {
Tags []string `json:"tags"`
Attributes map[string]AudienceProfileAttribute `json:"attributes"`
ExpectedRevision *int64 `json:"expectedRevision,omitempty"`
Provenance *AudienceProfileProvenance `json:"provenance,omitempty"`
Consent *AudienceProfileConsentInput `json:"consent,omitempty"`
}
type QuickLinkAvailability ¶
type QuickLinkConfiguration ¶
type QuickLinkConfiguration struct {
ConnectionConfigurationOverrides
Testing *QuickLinkTesting `json:"testing,omitempty"`
ConnectionPreference string `json:"connectionPreference,omitempty"`
ConnectionEnforcement string `json:"connectionEnforcement,omitempty"`
Methods []string `json:"methods,omitempty"`
DefaultMethod *string `json:"defaultMethod,omitempty"`
PrefillPhone string `json:"prefillPhone,omitempty"`
AllowPhoneChange *bool `json:"allowPhoneChange,omitempty"`
HistorySync *QuickLinkHistorySync `json:"historySync,omitempty"`
}
type QuickLinkHistorySync ¶
type QuickLinkHistorySync struct {
Delivery *HistorySyncDeliveryPatch `json:"delivery,omitempty"`
Consent string `json:"consent,omitempty"`
Mode string `json:"mode,omitempty"`
RequestFull *bool `json:"requestFull,omitempty"`
}
type QuickLinkOnboarding ¶
type QuickLinkOnboarding struct {
Stage string `json:"stage"`
Connection *string `json:"connection"`
Coexistence *bool `json:"coexistence"`
ContactsSync string `json:"contactsSync"`
HistorySync string `json:"historySync"`
HistoryProgress float64 `json:"historyProgress"`
Sync CloudSyncStatus `json:"sync"`
ErrorCode *string `json:"errorCode"`
}
type QuickLinkSettings ¶
type QuickLinkSettings struct {
ID string `json:"id"`
ProjectID *string `json:"projectId"`
Enabled bool `json:"enabled"`
SuccessCallbackURL *string `json:"successCallbackUrl"`
FailureCallbackURL *string `json:"failureCallbackUrl"`
BusinessName *string `json:"businessName"`
Headline *string `json:"headline"`
Description *string `json:"description"`
SuccessMessage *string `json:"successMessage"`
SupportURL *string `json:"supportUrl"`
PrivacyURL *string `json:"privacyUrl"`
TermsURL *string `json:"termsUrl"`
Accent *string `json:"accent"`
Theme string `json:"theme"`
HideWatermark bool `json:"hideWatermark"`
AllowPhoneChange bool `json:"allowPhoneChange"`
Shape *string `json:"shape"`
RadiusPx *int `json:"radiusPx"`
LogoMode string `json:"logoMode"`
LogoStorageID *string `json:"logoStorageId"`
LogoSourceStorageID *string `json:"logoSourceStorageId"`
LogoURL *string `json:"logoUrl"`
HistorySync string `json:"historySync"`
Methods []string `json:"methods"`
DefaultMethod *string `json:"defaultMethod"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type QuickLinkSettingsResource ¶
type QuickLinkSettingsResource struct {
// contains filtered or unexported fields
}
func (*QuickLinkSettingsResource) Retrieve ¶
func (r *QuickLinkSettingsResource) Retrieve(ctx context.Context, o ...RequestOptions) (Response[*QuickLinkSettings], error)
func (*QuickLinkSettingsResource) Update ¶
func (r *QuickLinkSettingsResource) Update(ctx context.Context, b UpdateQuickLinkSettingsRequest, o ...RequestOptions) (Response[QuickLinkSettings], error)
type QuickLinkStatus ¶
type QuickLinkStatus struct {
Purpose string `json:"purpose"`
ConnectionGoal string `json:"connectionGoal"`
AddMethod string `json:"addMethod,omitempty"`
HybridPhase *string `json:"hybridPhase"`
Onboarding *QuickLinkOnboarding `json:"onboarding,omitempty"`
ID string `json:"id"`
Status string `json:"status"`
Connection string `json:"connection"`
ExpiresAt *string `json:"expiresAt"`
OpenedAt *string `json:"openedAt"`
ConnectedAt *string `json:"connectedAt"`
Phone *string `json:"phone"`
ErrorCode *string `json:"errorCode"`
}
type QuickLinkTesting ¶
type QuickLinkTesting struct {
Country string `json:"country,omitempty"`
Configuration *TestingConfiguration `json:"configuration,omitempty"`
Editable []string `json:"editable,omitempty"`
}
type QuickLinks ¶
type QuickLinks struct {
// contains filtered or unexported fields
}
func (*QuickLinks) Availability ¶
func (r *QuickLinks) Availability(ctx context.Context, projectID, connection string, o ...RequestOptions) (Response[Envelope[QuickLinkAvailability]], error)
func (*QuickLinks) Cancel ¶
func (r *QuickLinks) Cancel(ctx context.Context, id string, o ...RequestOptions) (Response[Success], error)
func (*QuickLinks) Create ¶
func (r *QuickLinks) Create(ctx context.Context, b CreateQuickLinkRequest, o ...RequestOptions) (Response[Envelope[QuickLink]], error)
func (*QuickLinks) Retrieve ¶
func (r *QuickLinks) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[QuickLinkStatus]], error)
type QuickReplies ¶
type QuickReplies struct {
// contains filtered or unexported fields
}
func (*QuickReplies) Create ¶
func (r *QuickReplies) Create(ctx context.Context, s string, b QuickReplyMutation, o ...RequestOptions) (Response[Envelope[QuickReply]], error)
func (*QuickReplies) Delete ¶
func (r *QuickReplies) Delete(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[DeletedQuickReply]], error)
func (*QuickReplies) List ¶
func (r *QuickReplies) List(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[QuickReplyCollection]], error)
func (*QuickReplies) Replace ¶
func (r *QuickReplies) Replace(ctx context.Context, s, id string, b QuickReplyMutation, o ...RequestOptions) (Response[Envelope[QuickReply]], error)
type QuickReply ¶
type QuickReply struct {
QuickReplyMutation
ID string `json:"id"`
}
type QuickReplyCollection ¶
type QuickReplyCollection struct {
Policy string `json:"policy"`
Status string `json:"status"`
UnknownReason string `json:"unknownReason,omitempty"`
ObservedAt string `json:"observedAt,omitempty"`
QuickReplies []ObservedQuickReply `json:"quickReplies"`
}
type QuickReplyMutation ¶
type QuotedMessage ¶
type RawPageDecoder ¶
type RawPageDecoder[T any] func(json.RawMessage, Metadata) (PageResult[T], error)
type RawPaginationOptions ¶
type RawPaginationOptions struct{ CursorParameter string }
type RawRequest ¶
type RawRequester ¶
type RawRequester interface {
Raw(context.Context, RawRequest) (RawResponse, error)
}
RawRequester is implemented by team, project and Messaging clients. Every page uses Raw, preserving the client's credential and project boundary.
type RawResponse ¶
type RawResponse = Response[json.RawMessage]
RawResponse is the explicit escape hatch for contracts not yet modeled.
type ReactionRequest ¶
type ReactionRequest struct {
Conversation ConversationReference `json:"conversation"`
Transport MessageTransport `json:"transport,omitempty"`
ID string `json:"id"`
Reaction string `json:"reaction"`
}
type RegisterFlowEncryptionKeyRequest ¶
type RegisterFlowEncryptionKeyRequest struct{ BusinessPublicKey string }
type RejectCallRequest ¶
type RejectCallRequest struct {
Participant string `json:"participant,omitempty"`
}
type ReorderBillingPrioritiesRequest ¶
type ReorderBillingPrioritiesRequest struct {
Scope string `json:"scope"`
ProjectID string `json:"projectId,omitempty"`
ResourceIDs *[]string `json:"resourceIds,omitempty"`
Resources *[]BillingReorderResource `json:"resources,omitempty"`
ExpectedRevision int64 `json:"expectedRevision"`
}
type ReplaceChatLabelsRequest ¶
type ReplaceChatLabelsRequest struct {
Labels []string `json:"labels"`
}
type ReplayEventRequest ¶
type ReplayEventRequest struct {
WebhookID string `json:"webhookId"`
}
type ReplyChoice ¶
type RequestLog ¶
type RequestLog struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
CreatedAt string `json:"createdAt"`
Method string `json:"method"`
Route string `json:"route"`
Status *int `json:"status"`
DurationMs *float64 `json:"durationMs"`
Result RequestLogResult `json:"result"`
Source RequestLogSource `json:"source"`
RequestID *string `json:"requestId"`
TraceID *string `json:"traceId"`
ErrorCode *string `json:"errorCode"`
MCPTool *string `json:"mcpTool"`
Credential *RequestLogCredential `json:"credential"`
}
type RequestLogCredential ¶
type RequestLogCredential struct {
Type RequestLogCredentialType `json:"type"`
ID *string `json:"id"`
Last4 *string `json:"last4"`
}
type RequestLogCredentialType ¶
type RequestLogCredentialType string
type RequestLogFilters ¶
type RequestLogFilters struct {
Status []RequestLogStatus
Method []RequestLogMethod
Route *string
Source RequestLogSource
CredentialID, RequestID, TraceID *string
Since, Until *string
SinceTime, UntilTime *time.Time
}
type RequestLogMethod ¶
type RequestLogMethod string
type RequestLogPage ¶
type RequestLogPage struct {
Items []RequestLog
HasMore bool
NextCursor *string
FollowCursor string
Metadata Metadata
}
type RequestLogResult ¶
type RequestLogResult string
const ( RequestLogSuccess RequestLogResult = "success" RequestLogFailure RequestLogResult = "failure" )
type RequestLogSource ¶
type RequestLogSource string
type RequestLogStatus ¶
type RequestLogStatus string
func RequestLogStatusCode ¶
func RequestLogStatusCode(status int) RequestLogStatus
type RequestLogs ¶
type RequestLogs struct {
// contains filtered or unexported fields
}
func (*RequestLogs) Follow ¶
func (r *RequestLogs) Follow(ctx context.Context, p FollowRequestLogsParams, opts ...RequestOptions) (*RequestLogPage, error)
func (*RequestLogs) List ¶
func (r *RequestLogs) List(ctx context.Context, p ListRequestLogsParams, opts ...RequestOptions) (*RequestLogPage, error)
func (*RequestLogs) Tail ¶
func (r *RequestLogs) Tail(ctx context.Context, p TailRequestLogsParams, opts ...RequestOptions) iter.Seq2[RequestLog, error]
Tail yields chronologically, follows without delay while pages remain, and stops gracefully on cancellation or loop exit.
type RequestOptions ¶
type RequeueCampaignRequest ¶
type RequeueCampaignRequest struct {
IncludeSkippedError *bool `json:"includeSkippedError,omitempty"`
}
type RescheduleCampaignRequest ¶
type RescheduleCampaignRequest struct {
ScheduledAt *int64 `json:"scheduledAt"`
}
type ResolvedIdentity ¶
type ResolvedIdentity struct {
ConversationReference
KeyRequired *bool `json:"keyRequired,omitempty"`
}
type ResourceBillingControls ¶
type ResourceBillingControls struct {
Budget BillingLimit `json:"budget"`
Priority int `json:"priority"`
PriorityRevision int64 `json:"priorityRevision"`
}
type RetrieveCallRecordParams ¶
type RetrieveCallRecordParams struct{ ProjectID string }
type RetrieveOperationParams ¶
type RotateWebhookSecretRequest ¶
type RotateWebhookSecretRequest struct {
OverlapSeconds *int `json:"overlapSeconds,omitempty"`
}
type RuntimeConnectionStatusPayload ¶
type RuntimeConnectionStatusPayload struct {
Status string `json:"status"`
StatusReason string `json:"statusReason,omitempty"`
BanCode *int `json:"banCode,omitempty"`
BanReason string `json:"banReason,omitempty"`
BanExpiresAt *int64 `json:"banExpiresAt,omitempty"`
Detail string `json:"detail,omitempty"`
// contains filtered or unexported fields
}
type RuntimeTemplateStatusPayload ¶
type RuntimeTemplateStatusPayload struct {
TemplateName string `json:"templateName"`
TemplateID string `json:"templateId"`
Status string `json:"status"`
Category string `json:"category"`
Reason string `json:"reason"`
QualityRating string `json:"qualityRating"`
// contains filtered or unexported fields
}
type S3ArchiveOptions ¶
type S3ArchiveOptions struct {
Key, ScratchDirectory string
Metadata map[string]string
WhatsAppMediaDownloadOptions
}
type S3ArchiveResult ¶
type S3MediaClient ¶
type S3MediaClient interface {
HeadObject(context.Context, *s3.HeadObjectInput, ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
GetObject(context.Context, *s3.GetObjectInput, ...func(*s3.Options)) (*s3.GetObjectOutput, error)
PutObject(context.Context, *s3.PutObjectInput, ...func(*s3.Options)) (*s3.PutObjectOutput, error)
}
S3MediaClient is the official AWS SDK v2 boundary, also implemented by a caller-configured client for an S3-compatible customer bucket.
type S3MediaStore ¶
type S3MediaStore struct {
// contains filtered or unexported fields
}
func NewS3MediaStore ¶
func NewS3MediaStore(options S3MediaStoreOptions) (*S3MediaStore, error)
func (*S3MediaStore) Archive ¶
func (s *S3MediaStore) Archive(ctx context.Context, descriptor WhatsAppMediaDescriptor, options S3ArchiveOptions) (S3ArchiveResult, error)
Archive verifies into a private spool before issuing any object PUT, so corrupt incoming media cannot replace a previously valid object.
func (*S3MediaStore) GoString ¶
func (s *S3MediaStore) GoString() string
func (*S3MediaStore) String ¶
func (*S3MediaStore) String() string
func (*S3MediaStore) UploadToWhatsApp ¶
func (s *S3MediaStore) UploadToWhatsApp(ctx context.Context, options S3UploadToWhatsAppOptions) (WhatsAppMediaUploadResult, error)
UploadToWhatsApp performs two ETag-pinned object reads. The encryption repeat pass verifies EOF/hash before releasing its last bytes to the media provider.
type S3MediaStoreOptions ¶
type S3MediaStoreOptions struct {
Client S3MediaClient
Bucket, Prefix string
}
type S3UploadToWhatsAppOptions ¶
type S3UploadToWhatsAppOptions struct {
Messaging *WhatsAppMediaResource
Connection, Key string
UploadWhatsAppMediaOptions
}
type SIPEndpoint ¶
type SIPEndpoint struct {
Status string `json:"status"`
Host *string `json:"host"`
Transports []SIPEndpointTransport `json:"transports"`
RTP *SIPEndpointRTP `json:"rtp"`
}
type SIPEndpointRTP ¶
type SIPEndpointTransport ¶
type SIPInboundInput ¶
type SIPInboundPatch ¶
type SIPOutboundInput ¶
type SIPOutboundInput struct {
TargetURI string `json:"targetUri"`
Transport string `json:"transport,omitempty"`
AuthUsername *Nullable[string] `json:"authUsername,omitempty"`
AuthPassword string `json:"authPassword,omitempty"`
FromUser *Nullable[string] `json:"fromUser,omitempty"`
}
func (SIPOutboundInput) GoString ¶
func (c SIPOutboundInput) GoString() string
func (SIPOutboundInput) String ¶
func (c SIPOutboundInput) String() string
type SIPOutboundPatch ¶
type SIPOutboundPatch struct {
TargetURI *string `json:"targetUri,omitempty"`
Transport *string `json:"transport,omitempty"`
AuthUsername *Nullable[string] `json:"authUsername,omitempty"`
AuthPassword *string `json:"authPassword,omitempty"`
FromUser *Nullable[string] `json:"fromUser,omitempty"`
}
func (SIPOutboundPatch) GoString ¶
func (c SIPOutboundPatch) GoString() string
func (SIPOutboundPatch) String ¶
func (c SIPOutboundPatch) String() string
type SIPTrunk ¶
type SIPTrunk struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
Direction string `json:"direction"`
Outbound *SIPTrunkOutbound `json:"outbound"`
Inbound *SIPTrunkInbound `json:"inbound"`
Codecs []string `json:"codecs"`
MaxConcurrentCalls int `json:"maxConcurrentCalls"`
Revision int64 `json:"revision"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type SIPTrunkCreated ¶
type SIPTrunkCreated struct {
Trunk SIPTrunk `json:"trunk"`
InboundCredentials *SIPTrunkCredentials `json:"inboundCredentials,omitempty"`
}
type SIPTrunkCredentials ¶
type SIPTrunkCredentials struct {
Username string `json:"username"`
Password string `json:"password"`
Realm string `json:"realm"`
}
func (SIPTrunkCredentials) GoString ¶
func (c SIPTrunkCredentials) GoString() string
func (SIPTrunkCredentials) String ¶
func (c SIPTrunkCredentials) String() string
type SIPTrunkDeleted ¶
type SIPTrunkInbound ¶
type SIPTrunkOutbound ¶
type SIPTrunks ¶
type SIPTrunks struct {
// contains filtered or unexported fields
}
func (*SIPTrunks) Create ¶
func (r *SIPTrunks) Create(ctx context.Context, b CreateSIPTrunkRequest, o ...RequestOptions) (Response[SIPTrunkCreated], error)
func (*SIPTrunks) Delete ¶
func (r *SIPTrunks) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[SIPTrunkDeleted], error)
func (*SIPTrunks) Endpoint ¶
func (r *SIPTrunks) Endpoint(ctx context.Context, o ...RequestOptions) (Response[SIPEndpoint], error)
func (*SIPTrunks) RotateCredentials ¶
func (r *SIPTrunks) RotateCredentials(ctx context.Context, id string, o ...RequestOptions) (Response[SIPTrunkCredentials], error)
type SafeModeApplied ¶
type SafeModeOverride ¶
type SafeModeSettings ¶
type SavedAudienceSegmentPreview ¶
type SavedAudienceSegmentPreview struct {
AudienceSegmentPreview
Revision int `json:"revision"`
}
type SecurityIncident ¶
type SecurityIncident struct {
ID string `json:"id"`
KeyID string `json:"keyId"`
TokenType string `json:"tokenType"`
Source string `json:"source"`
URL *string `json:"url"`
Ref *string `json:"ref"`
Resolution string `json:"resolution"`
DetectedAt int64 `json:"detectedAt"`
AcknowledgedAt *int64 `json:"acknowledgedAt"`
AcknowledgedBy *string `json:"acknowledgedBy"`
CreatedAt int64 `json:"createdAt"`
}
type SecurityIncidentAcknowledgement ¶
type SecurityIncidentAcknowledgement struct {
Acknowledged bool `json:"acknowledged"`
}
type SecurityIncidents ¶
type SecurityIncidents struct {
// contains filtered or unexported fields
}
func (*SecurityIncidents) Acknowledge ¶
func (r *SecurityIncidents) Acknowledge(ctx context.Context, id string, o ...RequestOptions) (Response[Envelope[SecurityIncidentAcknowledgement]], error)
func (*SecurityIncidents) List ¶
func (r *SecurityIncidents) List(ctx context.Context, o ...RequestOptions) (Response[Envelope[[]SecurityIncident]], error)
type SeenRequest ¶
type SeenRequest struct {
Conversation ConversationReference `json:"conversation"`
ID string `json:"id"`
}
type SendMessageRequest ¶
type SendMessageRequest struct {
Transport MessageTransport `json:"transport,omitempty"`
Conversation ConversationReference `json:"conversation"`
IsForwarded *bool `json:"isForwarded,omitempty"`
Mentions []string `json:"mentions,omitempty"`
QuotedMessage *QuotedMessage `json:"quotedMessage,omitempty"`
Content MessageContent `json:"content"`
}
type SetBillingLimitRequest ¶
type SetCampaignReplyFlowRequest ¶
ReplyFlowID is required. Its zero Nullable value explicitly detaches a flow.
type SetClientRulesRequest ¶
type SetClientRulesRequest struct {
RecipientMode string `json:"recipientMode,omitempty"`
AllowedActions string `json:"allowedActions,omitempty"`
RateLimit *int `json:"rateLimit,omitempty"`
MaxDaily *int `json:"maxDaily,omitempty"`
AllowedOrigins *string `json:"allowedOrigins,omitempty"`
ConversationTTLSeconds *int `json:"conversationTtlSeconds,omitempty"`
MaxConcurrency *int `json:"maxConcurrency,omitempty"`
MaxSetupsPerMinute *int `json:"maxSetupsPerMinute,omitempty"`
AllowedNumber *string `json:"allowedNumber,omitempty"`
}
type SetFlowEndpointRequest ¶
type SetFlowEndpointRequest struct {
ConnectionID string `json:"connectionId"`
Enabled *bool `json:"enabled,omitempty"`
ExpectedRevision *int64 `json:"expectedRevision,omitempty"`
Mode string `json:"mode"`
URL string `json:"url,omitempty"`
RotateSigningSecret *bool `json:"rotateSigningSecret,omitempty"`
FunctionID string `json:"functionId,omitempty"`
DeploymentID *Nullable[string] `json:"deploymentId,omitempty"`
}
type SetHybridPausedRequest ¶
type SetPlatformCampaignReplyFlowRequest ¶
type SetPlatformCampaignReplyFlowRequest struct {
SetCampaignReplyFlowRequest
ProjectID string `json:"projectId"`
}
type SignalConnection ¶
type SignalConnection struct {
ID string `json:"id"`
LeaseGeneration uint64 `json:"lease_generation"`
Claimed bool `json:"claimed"`
HasDeviceKeys bool `json:"has_device_keys"`
State string `json:"state"`
PN *string `json:"pn"`
LID *string `json:"lid"`
}
func (SignalConnection) GoString ¶
func (v SignalConnection) GoString() string
func (SignalConnection) MarshalJSON ¶
func (SignalConnection) MarshalJSON() ([]byte, error)
func (SignalConnection) String ¶
func (SignalConnection) String() string
type SignalConnections ¶
type SignalConnections struct {
NodeID string `json:"node_id"`
Connections []SignalConnection `json:"connections"`
}
func (SignalConnections) GoString ¶
func (v SignalConnections) GoString() string
func (SignalConnections) MarshalJSON ¶
func (SignalConnections) MarshalJSON() ([]byte, error)
func (SignalConnections) String ¶
func (SignalConnections) String() string
type SignalCustodyDefault ¶
type SignalCustodyDefault struct {
SignalModeDefault *SignalCustodyMode `json:"signalModeDefault"`
EffectiveSignalMode SignalCustodyMode `json:"effectiveSignalMode"`
Revision int64 `json:"revision"`
}
type SignalCustodyMode ¶
type SignalCustodyMode string
const ( SignalCustodyStandard SignalCustodyMode = "standard" SignalCustodyZeroKnowledge SignalCustodyMode = "zero_knowledge" )
type SignalCustodyResource ¶
type SignalCustodyResource struct {
// contains filtered or unexported fields
}
SignalCustodyResource controls future reservation defaults, never existing Connections.
func (*SignalCustodyResource) Retrieve ¶
func (r *SignalCustodyResource) Retrieve(ctx context.Context, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
func (*SignalCustodyResource) RetrieveCustomer ¶
func (r *SignalCustodyResource) RetrieveCustomer(ctx context.Context, customer string, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
func (*SignalCustodyResource) Update ¶
func (r *SignalCustodyResource) Update(ctx context.Context, b ProjectSignalCustodyUpdate, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
func (*SignalCustodyResource) UpdateCustomer ¶
func (r *SignalCustodyResource) UpdateCustomer(ctx context.Context, customer string, b CustomerSignalCustodyUpdate, o ...RequestOptions) (Response[Envelope[SignalCustodyDefault]], error)
type SignalEvent ¶
type SignalEvent struct {
ID string `json:"id"`
Type string `json:"type"`
ConnectionID string `json:"connection_id"`
Chat string `json:"chat"`
Sender string `json:"sender"`
SenderAlt *string `json:"sender_alt,omitempty"`
MessageID string `json:"message_id"`
Timestamp int64 `json:"timestamp"`
IsFromMe bool `json:"is_from_me"`
Redelivered bool `json:"redelivered"`
IdentityChanged bool `json:"identity_changed"`
MessageProto []byte `json:"message_proto"`
Text *string `json:"text,omitempty"`
Media *SignalMediaDescriptor `json:"media,omitempty"`
History *SignalHistoryDescriptor `json:"history,omitempty"`
RawJSON json.RawMessage `json:"-"`
}
func ProcessSignalWebhook ¶
func ProcessSignalWebhook(ctx context.Context, raw []byte, headers http.Header, secret string, options SignalWebhookOptions, store SignalWebhookStore) (SignalEvent, bool, error)
ProcessSignalWebhook returns only after the caller's atomic durable dedup and effects commit. An HTTP handler may return 2xx after success. No fallback store is supplied and this helper never acknowledges an SSE event.
func VerifySignalWebhook ¶
func VerifySignalWebhook(raw []byte, headers http.Header, secret string, options SignalWebhookOptions) (SignalEvent, error)
func (SignalEvent) GoString ¶
func (v SignalEvent) GoString() string
func (SignalEvent) MarshalJSON ¶
func (SignalEvent) MarshalJSON() ([]byte, error)
func (SignalEvent) String ¶
func (SignalEvent) String() string
type SignalEventStream ¶
type SignalEventStream struct {
// contains filtered or unexported fields
}
SignalEventStream reads one connection. There is no resume cursor, automatic reconnect or automatic ACK in the pinned sidecar service contract.
func (*SignalEventStream) Close ¶
func (s *SignalEventStream) Close() error
func (*SignalEventStream) GoString ¶
func (s *SignalEventStream) GoString() string
func (*SignalEventStream) Items ¶
func (s *SignalEventStream) Items() iter.Seq2[SignalEvent, error]
func (*SignalEventStream) MarshalJSON ¶
func (*SignalEventStream) MarshalJSON() ([]byte, error)
func (*SignalEventStream) String ¶
func (*SignalEventStream) String() string
type SignalHistoryDescriptor ¶
type SignalHistoryDescriptor struct {
NotificationProto []byte `json:"notification_proto"`
DirectPath *string `json:"direct_path"`
MediaKey []byte `json:"media_key"`
FileSHA256 []byte `json:"file_sha256"`
FileEncSHA256 []byte `json:"file_enc_sha256"`
OriginalMessageID *string `json:"original_message_id"`
PeerDataRequestSessionID *string `json:"peer_data_request_session_id"`
InlinePayload []byte `json:"inline_payload"`
SyncType *int64 `json:"sync_type"`
ChunkOrder *int64 `json:"chunk_order"`
Progress *int64 `json:"progress"`
FileLength *uint64 `json:"file_length"`
}
func (SignalHistoryDescriptor) GoString ¶
func (v SignalHistoryDescriptor) GoString() string
func (SignalHistoryDescriptor) MarshalJSON ¶
func (SignalHistoryDescriptor) MarshalJSON() ([]byte, error)
func (SignalHistoryDescriptor) String ¶
func (SignalHistoryDescriptor) String() string
type SignalMediaDescriptor ¶
type SignalMediaDescriptor struct {
Kind string `json:"kind"`
DirectPath string `json:"direct_path"`
URL string `json:"url,omitempty"`
MediaKey []byte `json:"media_key"`
FileSHA256 []byte `json:"file_sha256"`
FileEncSHA256 []byte `json:"file_enc_sha256"`
FileLength uint64 `json:"file_length"`
MimeType string `json:"mimetype"`
Caption *string `json:"caption,omitempty"`
FileName *string `json:"file_name,omitempty"`
Width *uint32 `json:"width,omitempty"`
Height *uint32 `json:"height,omitempty"`
Seconds *uint32 `json:"seconds,omitempty"`
MediaKeyTimestamp *int64 `json:"media_key_timestamp,omitempty"`
PTT *bool `json:"ptt,omitempty"`
}
func ToSignalMediaDescriptor ¶
func ToSignalMediaDescriptor(upload WhatsAppMediaUploadResult) (SignalMediaDescriptor, error)
ToSignalMediaDescriptor keeps attachment keys on the customer's service path.
func (SignalMediaDescriptor) GoString ¶
func (v SignalMediaDescriptor) GoString() string
func (SignalMediaDescriptor) MarshalJSON ¶
func (SignalMediaDescriptor) MarshalJSON() ([]byte, error)
func (SignalMediaDescriptor) String ¶
func (SignalMediaDescriptor) String() string
type SignalSendOutcome ¶
type SignalSendRequest ¶
type SignalSendRequest struct {
To string
Text *string
Media *SignalMediaDescriptor
}
func (SignalSendRequest) GoString ¶
func (v SignalSendRequest) GoString() string
func (SignalSendRequest) MarshalJSON ¶
func (SignalSendRequest) MarshalJSON() ([]byte, error)
func (SignalSendRequest) String ¶
func (SignalSendRequest) String() string
type SignalSidecarClient ¶
type SignalSidecarClient struct {
// contains filtered or unexported fields
}
func NewSignalSidecarClient ¶
func NewSignalSidecarClient(options SignalSidecarOptions) (*SignalSidecarClient, error)
func (*SignalSidecarClient) Acknowledge ¶
func (c *SignalSidecarClient) Acknowledge(ctx context.Context, eventID string) error
Acknowledge is manual. Call after durable application processing. Cancellation or timeout does not undo an ACK or send that the service already accepted.
func (*SignalSidecarClient) Connections ¶
func (c *SignalSidecarClient) Connections(ctx context.Context) (SignalConnections, error)
func (*SignalSidecarClient) GoString ¶
func (v *SignalSidecarClient) GoString() string
func (*SignalSidecarClient) Health ¶
func (c *SignalSidecarClient) Health(ctx context.Context) error
func (*SignalSidecarClient) MarshalJSON ¶
func (*SignalSidecarClient) MarshalJSON() ([]byte, error)
func (*SignalSidecarClient) OpenEvents ¶
func (c *SignalSidecarClient) OpenEvents(ctx context.Context, connectionID string) (*SignalEventStream, error)
func (*SignalSidecarClient) Send ¶
func (c *SignalSidecarClient) Send(ctx context.Context, connection string, body SignalSendRequest) (SignalSendOutcome, error)
func (*SignalSidecarClient) String ¶
func (*SignalSidecarClient) String() string
type SignalSidecarOptions ¶
type SignalSidecarOptions struct {
URL string
Secret string
HTTPClient *http.Client
Timeout time.Duration
}
func (SignalSidecarOptions) GoString ¶
func (v SignalSidecarOptions) GoString() string
func (SignalSidecarOptions) MarshalJSON ¶
func (SignalSidecarOptions) MarshalJSON() ([]byte, error)
func (SignalSidecarOptions) String ¶
func (SignalSidecarOptions) String() string
type SignalWebhookOptions ¶
type SignalWebhookStore ¶
type SignalWebhookStore interface {
ApplyOnce(context.Context, SignalEvent) (bool, error)
}
SignalWebhookStore atomically deduplicates and durably applies the event. true means newly applied; false means previously applied. No in-memory fallback.
type StarRequest ¶
type StarRequest struct {
Conversation ConversationReference `json:"conversation"`
ID string `json:"id"`
Star bool `json:"star"`
}
type StatusResponse ¶
type StatusResult ¶
type StatusResult struct {
Status string `json:"status"`
}
type StickerContent ¶
type StickerContent struct {
Descriptor *WhatsAppMediaSendDescriptor `json:"-"`
}
type StopConfirmationCounts ¶
type StopConfirmationLocale ¶
type StopConfirmationLocale string
const ( StopConfirmationEnglish StopConfirmationLocale = "en" StopConfirmationPortuguese StopConfirmationLocale = "pt-BR" StopConfirmationSpanish StopConfirmationLocale = "es" )
type StopConfirmationSettings ¶
type StopConfirmationSettings struct {
TeamID string `json:"teamId"`
Enabled bool `json:"enabled"`
Locale *StopConfirmationLocale `json:"locale"`
Revision int64 `json:"revision"`
TextRevision int `json:"textRevision"`
Acknowledgement *string `json:"acknowledgement"`
UpdatedAt *int64 `json:"updatedAt"`
}
type StopConfirmationSummary ¶
type StopConfirmationSummary struct {
Enabled bool `json:"enabled"`
Counts StopConfirmationCounts `json:"counts"`
}
type SubmitPasskeyAssertionRequest ¶
type SubmitPasskeyAssertionRequest struct {
TicketID string `json:"ticketId"`
Assertion PasskeyAssertion `json:"assertion"`
}
type SubmitProjectTemplateRequest ¶
type SubmitProjectTemplateRequest struct {
Connection string `json:"connection"`
}
type SynthesizeVoiceAudioRequest ¶
type SynthesizeVoiceAudioRequest struct {
Name string `json:"name"`
Text string `json:"text"`
CredentialID string `json:"credentialId,omitempty"`
RetentionDays *int `json:"retentionDays,omitempty"`
Provider string `json:"provider"`
VoiceID string `json:"voiceId"`
Model string `json:"model,omitempty"`
}
func (SynthesizeVoiceAudioRequest) GoString ¶
func (v SynthesizeVoiceAudioRequest) GoString() string
func (SynthesizeVoiceAudioRequest) String ¶
func (SynthesizeVoiceAudioRequest) String() string
type SystemClient ¶
type SystemClient struct {
// contains filtered or unexported fields
}
func NewSystemClient ¶
func NewSystemClient(c Config) (*SystemClient, error)
NewSystemClient creates credential-free health and version probes. Any supplied credential is discarded and is never sent to the service.
func (*SystemClient) Health ¶
func (c *SystemClient) Health(ctx context.Context, o ...RequestOptions) (Response[HealthResponse], error)
func (*SystemClient) Ping ¶
func (c *SystemClient) Ping(ctx context.Context, o ...RequestOptions) (Response[PingResponse], error)
func (*SystemClient) Status ¶
func (c *SystemClient) Status(ctx context.Context, o ...RequestOptions) (Response[StatusResponse], error)
func (*SystemClient) Version ¶
func (c *SystemClient) Version(ctx context.Context, o ...RequestOptions) (Response[VersionResponse], error)
type TailRequestLogsParams ¶
type TailRequestLogsParams struct {
RequestLogFilters
ProjectID string
Interval time.Duration
Backfill int
}
type Team ¶
type Team struct {
ID string `json:"id"`
ExternalID string `json:"externalId"`
Name string `json:"name"`
Slug *string `json:"slug"`
Email string `json:"email"`
Timezone *string `json:"timezone"`
CreditBalanceCents float64 `json:"creditBalanceCents"`
LowBalanceThresholdCents float64 `json:"lowBalanceThresholdCents"`
BillingEmail string `json:"billingEmail"`
Status string `json:"status"`
Plan string `json:"plan"`
PlanStatus string `json:"planStatus"`
IsActive bool `json:"isActive"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type TeamClient ¶
type TeamClient struct {
// contains filtered or unexported fields
}
TeamClient owns the team control plane. Project creates a separate, immutable view using the same configuration and HTTP transport.
func NewTeamClient ¶
func NewTeamClient(c Config) (*TeamClient, error)
func (*TeamClient) APIKeys ¶
func (c *TeamClient) APIKeys() *APIKeys
func (*TeamClient) Analytics ¶
func (c *TeamClient) Analytics() *Analytics
func (*TeamClient) AudienceProfiles ¶
func (c *TeamClient) AudienceProfiles() *AudienceProfiles
func (*TeamClient) AudienceSegments ¶
func (c *TeamClient) AudienceSegments() *AudienceSegments
func (*TeamClient) Audiences ¶
func (c *TeamClient) Audiences() *Audiences
func (*TeamClient) AuditLogs ¶
func (c *TeamClient) AuditLogs() *AuditLogs
func (*TeamClient) BanSafe ¶
func (c *TeamClient) BanSafe() *BanSafe
func (*TeamClient) Billing ¶
func (c *TeamClient) Billing() *Billing
func (*TeamClient) CallOptOuts ¶
func (c *TeamClient) CallOptOuts() *CallOptOuts
func (*TeamClient) CallPolicy ¶
func (c *TeamClient) CallPolicy() *CallPolicyResource
func (*TeamClient) CallRetention ¶
func (c *TeamClient) CallRetention() *CallRetentionResource
func (*TeamClient) Calls ¶
func (c *TeamClient) Calls() *PlatformCalls
func (*TeamClient) Campaigns ¶
func (c *TeamClient) Campaigns() *Campaigns
func (*TeamClient) ConnectionBans ¶
func (c *TeamClient) ConnectionBans() *ConnectionBans
func (*TeamClient) ConnectionConfiguration ¶
func (c *TeamClient) ConnectionConfiguration() *ConnectionConfigurationResource
func (*TeamClient) Connections ¶
func (c *TeamClient) Connections() *PlatformConnections
func (*TeamClient) Customers ¶
func (c *TeamClient) Customers() *Customers
func (*TeamClient) Events ¶
func (c *TeamClient) Events() *Events
func (*TeamClient) Media ¶
func (c *TeamClient) Media() *PlatformMedia
func (*TeamClient) Members ¶
func (c *TeamClient) Members() *Members
func (*TeamClient) Operations ¶
func (c *TeamClient) Operations() *Operations
func (*TeamClient) OptOuts ¶
func (c *TeamClient) OptOuts() *OptOuts
func (*TeamClient) Project ¶
func (c *TeamClient) Project(id string) (*ProjectClient, error)
func (*TeamClient) ProjectTokens ¶
func (c *TeamClient) ProjectTokens() *ProjectTokens
func (*TeamClient) Projects ¶
func (c *TeamClient) Projects() *Projects
func (*TeamClient) QuickLinkSettings ¶
func (c *TeamClient) QuickLinkSettings() *QuickLinkSettingsResource
func (*TeamClient) Raw ¶
func (c *TeamClient) Raw(ctx context.Context, r RawRequest) (RawResponse, error)
func (*TeamClient) RequestLogs ¶
func (c *TeamClient) RequestLogs() *RequestLogs
func (*TeamClient) SIPTrunks ¶
func (c *TeamClient) SIPTrunks() *TeamSIPTrunks
func (*TeamClient) SecurityIncidents ¶
func (c *TeamClient) SecurityIncidents() *SecurityIncidents
func (*TeamClient) Teams ¶
func (c *TeamClient) Teams() *Teams
func (*TeamClient) Usage ¶
func (c *TeamClient) Usage() *Usage
func (*TeamClient) Voice ¶
func (c *TeamClient) Voice() *TeamVoice
func (*TeamClient) WebhookDeliveries ¶
func (c *TeamClient) WebhookDeliveries() *WebhookDeliveries
func (*TeamClient) Webhooks ¶
func (c *TeamClient) Webhooks() *Webhooks
type TeamMember ¶
type TeamMember struct {
ID string `json:"_id"`
CreationTime float64 `json:"_creationTime"`
TeamID string `json:"teamId"`
UserID string `json:"userId"`
Email string `json:"email"`
Name *string `json:"name"`
Role string `json:"role"`
Status string `json:"status"`
InvitedAt *int64 `json:"invitedAt"`
JoinedAt *int64 `json:"joinedAt"`
}
type TeamSIPTrunks ¶
type TeamSIPTrunks struct{ *SIPTrunks }
func (*TeamSIPTrunks) Create ¶
func (r *TeamSIPTrunks) Create(ctx context.Context, projectID string, b CreateSIPTrunkRequest, o ...RequestOptions) (Response[SIPTrunkCreated], error)
func (*TeamSIPTrunks) List ¶
func (r *TeamSIPTrunks) List(ctx context.Context, projectID string, o ...RequestOptions) (Response[[]SIPTrunk], error)
type TeamVoice ¶
type TeamVoice struct {
// contains filtered or unexported fields
}
func (*TeamVoice) Audio ¶
func (v *TeamVoice) Audio(projectID string) *VoiceAudio
Audio creates a project-specific audio view from a team client.
func (*TeamVoice) ProviderCredentials ¶
func (v *TeamVoice) ProviderCredentials(projectID ...string) *VoiceProviderCredentials
type TemplateAuthentication ¶
type TemplateButton ¶
type TemplateCarousel ¶
type TemplateCarousel struct {
Cards []TemplateCarouselCard `json:"cards"`
}
type TemplateCarouselCard ¶
type TemplateCarouselCard struct {
Header TemplateHeader `json:"header"`
Body string `json:"body"`
Buttons []TemplateButton `json:"buttons,omitempty"`
}
type TemplateContent ¶
type TemplateDefinition ¶
type TemplateDefinition struct {
Version int `json:"version"`
Kind string `json:"kind"`
Category string `json:"category"`
Language string `json:"language"`
Header *TemplateHeader `json:"header,omitempty"`
Body string `json:"body"`
Buttons []TemplateButton `json:"buttons,omitempty"`
Carousel *TemplateCarousel `json:"carousel,omitempty"`
Authentication *TemplateAuthentication `json:"authentication,omitempty"`
LimitedTimeOffer *TemplateLimitedTimeOffer `json:"limitedTimeOffer,omitempty"`
Variables []TemplateVariable `json:"variables"`
}
type TemplateHeader ¶
type TemplateHeader struct {
Format string `json:"format"`
Text string `json:"text,omitempty"`
Example *TemplateHeaderExample `json:"example,omitempty"`
Filename string `json:"filename,omitempty"`
}
type TemplateHeaderExample ¶
type TemplateHeaderExample struct {
Media *string
Location *TemplateLocationExample
}
func (TemplateHeaderExample) MarshalJSON ¶
func (v TemplateHeaderExample) MarshalJSON() ([]byte, error)
func (*TemplateHeaderExample) UnmarshalJSON ¶
func (v *TemplateHeaderExample) UnmarshalJSON(b []byte) error
type TemplateLocationExample ¶
type TemplateVariable ¶
type Templates ¶
type Templates struct {
// contains filtered or unexported fields
}
func (*Templates) Create ¶
func (r *Templates) Create(ctx context.Context, project string, b CreateProjectTemplateRequest, o ...RequestOptions) (Response[Envelope[ProjectTemplate]], error)
func (*Templates) List ¶
func (r *Templates) List(ctx context.Context, project string, o ...RequestOptions) (Response[Envelope[[]ProjectTemplate]], error)
func (*Templates) Preview ¶
func (r *Templates) Preview(ctx context.Context, project, id string, b PreviewProjectTemplateRequest, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Templates) Retrieve ¶
func (r *Templates) Retrieve(ctx context.Context, project, id string, o ...RequestOptions) (Response[Envelope[ProjectTemplate]], error)
func (*Templates) Submit ¶
func (r *Templates) Submit(ctx context.Context, project, id string, b SubmitProjectTemplateRequest, o ...RequestOptions) (Response[Envelope[PlatformPayload]], error)
func (*Templates) Update ¶
func (r *Templates) Update(ctx context.Context, project, id string, b UpdateProjectTemplateRequest, o ...RequestOptions) (Response[Envelope[ProjectTemplate]], error)
type TestEventFixtureInfo ¶
type TestEventOverrides ¶
type TestEventOverrides struct {
Text string `json:"text,omitempty"`
From string `json:"from,omitempty"`
PushName string `json:"pushName,omitempty"`
MediaType string `json:"mediaType,omitempty"`
Caption string `json:"caption,omitempty"`
AckStatus string `json:"ackStatus,omitempty"`
MessageID string `json:"messageId,omitempty"`
FailureReason string `json:"failureReason,omitempty"`
Video *bool `json:"video,omitempty"`
DurationSeconds *int `json:"durationSeconds,omitempty"`
CallEndReason string `json:"callEndReason,omitempty"`
RestrictionActive *bool `json:"restrictionActive,omitempty"`
Status string `json:"status,omitempty"`
StatusReason string `json:"statusReason,omitempty"`
TemplateName string `json:"templateName,omitempty"`
TemplateStatus string `json:"templateStatus,omitempty"`
Reason string `json:"reason,omitempty"`
}
type TestWebhookRequest ¶
type TestWebhookRequest struct {
EventType string `json:"eventType,omitempty"`
Body *EncodedEventPayload `json:"body,omitempty"`
ConnectionID string `json:"connectionId,omitempty"`
}
type Testing ¶
type Testing struct {
// contains filtered or unexported fields
}
func (*Testing) CreateHistoryFixture ¶
func (r *Testing) CreateHistoryFixture(ctx context.Context, project string, messages []TestingHistoryMessage, o ...RequestOptions) (Response[struct { FixtureID string `json:"fixtureId"` }], error)
func (*Testing) GetPhone ¶
func (r *Testing) GetPhone(ctx context.Context, connection string, o ...RequestOptions) (Response[TestingPhone], error)
func (*Testing) ListEventFixtures ¶
func (r *Testing) ListEventFixtures(ctx context.Context, o ...RequestOptions) (Response[struct { Fixtures []TestEventFixtureInfo `json:"fixtures"` }], error)
func (*Testing) SendPhoneMessage ¶
func (r *Testing) SendPhoneMessage(ctx context.Context, connection string, b SendTestingPhoneMessageRequest, o ...RequestOptions) (Response[SendTestingPhoneMessageResult], error)
func (*Testing) TriggerEvent ¶
func (r *Testing) TriggerEvent(ctx context.Context, connection string, b TriggerTestEventRequest, o ...RequestOptions) (Response[TriggerTestEventResult], error)
func (*Testing) UnlinkPhoneDevice ¶
func (r *Testing) UnlinkPhoneDevice(ctx context.Context, connection string, id int, o ...RequestOptions) (Response[UnlinkTestingPhoneDeviceResult], error)
type TestingConfiguration ¶
type TestingConfiguration struct {
Profile *struct {
Name string `json:"name,omitempty"`
Status string `json:"status,omitempty"`
} `json:"profile,omitempty"`
AccountType string `json:"accountType,omitempty"`
PrimaryPlatform string `json:"primaryPlatform,omitempty"`
ReplyBehavior string `json:"replyBehavior,omitempty"`
FailureScenario string `json:"failureScenario,omitempty"`
HistoryFixtureID string `json:"historyFixtureId,omitempty"`
}
type TestingHistoryMessage ¶
type TestingPhone ¶
type TierPricing ¶
type TrickleCandidate ¶
type TriggerTestEventRequest ¶
type TriggerTestEventRequest struct {
Event string `json:"event"`
Overrides *TestEventOverrides `json:"overrides,omitempty"`
FromConnection string `json:"fromConnection,omitempty"`
}
type TriggerTestEventResult ¶
type TypingRequest ¶
type TypingRequest struct {
Conversation ConversationReference `json:"conversation"`
ID string `json:"id,omitempty"`
State string `json:"state"`
}
type UpdateAudienceSegmentRequest ¶
type UpdateAudienceSegmentRequest struct {
ExpectedRevision int `json:"expectedRevision"`
Name *string `json:"name,omitempty"`
Rules *AudienceSegmentRules `json:"rules,omitempty"`
}
UpdateAudienceSegmentRequest requires the last observed revision.
type UpdateCallPolicyRequest ¶
type UpdateCallRetentionRequest ¶
type UpdateCallRetentionRequest struct {
Policy CallRetentionPolicy `json:"policy"`
RetentionDays *int `json:"retentionDays,omitempty"`
ExpectedRevision *int64 `json:"expectedRevision,omitempty"`
}
type UpdateCallSettingsRequest ¶
type UpdateCallSettingsRequest struct {
SimultaneousCalls *bool `json:"simultaneousCalls,omitempty"`
AcknowledgeRisk *bool `json:"acknowledgeRisk,omitempty"`
CallsEnabled *bool `json:"callsEnabled,omitempty"`
ConferenceMode *bool `json:"conferenceMode,omitempty"`
InboundRoute string `json:"inboundRoute,omitempty"`
SIPTrunkID *NullableString `json:"sipTrunkId,omitempty"`
SIPClaim *bool `json:"sipClaim,omitempty"`
HostCloudAPICalls *bool `json:"hostCloudApiCalls,omitempty"`
ExpectedRevision *int64 `json:"expectedRevision,omitempty"`
}
type UpdateCampaignFrequencyCapInput ¶
type UpdateCampaignFrequencyCapInput struct {
CampaignFrequencyCap
Revision int `json:"revision"`
}
UpdateCampaignFrequencyCapInput replaces both windows. Revision is the value from the last read; nil limits remove the cap without beta access.
type UpdateCampaignRequest ¶
type UpdateCampaignRequest struct {
TemplateID *Nullable[string] `json:"templateId,omitempty"`
VariableMapping *Nullable[CampaignVariableMapping] `json:"variableMapping,omitempty"`
TrackedLinks *Nullable[CampaignTrackedLinks] `json:"trackedLinks,omitempty"`
Name *string `json:"name,omitempty"`
RecipientListID *Nullable[string] `json:"recipientListId,omitempty"`
SenderConfig PlatformPayload `json:"senderConfig,omitempty"`
ScheduledAt *Nullable[int64] `json:"scheduledAt,omitempty"`
SendWindow *Nullable[CampaignSendWindowRequest] `json:"sendWindow,omitempty"`
MessageVariations *Nullable[[]CampaignMessageVariation] `json:"messageVariations,omitempty"`
Variants *Nullable[[]CampaignVariant] `json:"variants,omitempty"`
VariantStrategy *Nullable[CampaignVariantStrategy] `json:"variantStrategy,omitempty"`
FollowUp *Nullable[CampaignFollowUp] `json:"followUp,omitempty"`
// FrequencyCap replaces the campaign cap; null removes it. Draft or paused only.
FrequencyCap *Nullable[CampaignFrequencyCap] `json:"frequencyCap,omitempty"`
// Drip changes only the fields set; null makes the draft an ordinary campaign.
Drip *Nullable[CampaignDripPatch] `json:"drip,omitempty"`
}
func (*UpdateCampaignRequest) UnmarshalJSON ¶
func (v *UpdateCampaignRequest) UnmarshalJSON(b []byte) error
type UpdateConnectionRequest ¶
type UpdateConnectionRequest struct {
Configuration ConnectionConfigurationPatch `json:"configuration"`
Revision int64 `json:"revision"`
}
func (*UpdateConnectionRequest) UnmarshalJSON ¶
func (v *UpdateConnectionRequest) UnmarshalJSON(b []byte) error
type UpdateCustomerRequest ¶
type UpdateCustomerRequest = CreateCustomerRequest
type UpdateFlowRequest ¶
type UpdateFunctionRequest ¶
type UpdateLabelRequest ¶
type UpdateMessagingWebhookRequest ¶
type UpdateMessagingWebhookRequest struct {
URL *string `json:"url,omitempty"`
Events *[]string `json:"events,omitempty"`
HMACKey *string `json:"hmacKey,omitempty"`
Retries *WebhookRetryConfig `json:"retries,omitempty"`
Headers *[]WebhookHeader `json:"headers,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Format string `json:"format,omitempty"`
}
func (UpdateMessagingWebhookRequest) GoString ¶
func (b UpdateMessagingWebhookRequest) GoString() string
func (UpdateMessagingWebhookRequest) String ¶
func (UpdateMessagingWebhookRequest) String() string
type UpdatePlatformCampaignRequest ¶
type UpdatePlatformCampaignRequest struct {
UpdateCampaignRequest
MessagesArray *[]CampaignComposedMessage `json:"messagesArray,omitempty"`
// SegmentID sets the saved segment, or null clears it. Unlaunched drafts only.
SegmentID *Nullable[string] `json:"segmentId,omitempty"`
Extra PlatformPayload `json:"-"`
}
func (UpdatePlatformCampaignRequest) MarshalJSON ¶
func (v UpdatePlatformCampaignRequest) MarshalJSON() ([]byte, error)
func (*UpdatePlatformCampaignRequest) UnmarshalJSON ¶
func (v *UpdatePlatformCampaignRequest) UnmarshalJSON(b []byte) error
type UpdateProjectHealthPolicyRequest ¶
type UpdateProjectHealthPolicyRequest struct {
Version int64 `json:"version"`
Enabled bool `json:"enabled"`
Threshold float64 `json:"threshold"`
ConnectionAction string `json:"connectionAction"`
SlowDownMPS *float64 `json:"slowDownMps"`
EmailNotification bool `json:"emailNotification"`
WebhookNotification bool `json:"webhookNotification"`
}
type UpdateProjectInsuranceEvidenceRequest ¶
type UpdateProjectInsuranceEvidenceRequest struct {
Enabled bool `json:"enabled"`
}
type UpdateProjectTemplateRequest ¶
type UpdateProjectTemplateRequest struct {
Name *string `json:"name,omitempty"`
Status string `json:"status,omitempty"`
Definition *TemplateDefinition `json:"definition,omitempty"`
SampleValues *map[string]string `json:"sampleValues,omitempty"`
}
type UpdateQuickLinkSettingsRequest ¶
type UpdateQuickLinkSettingsRequest struct {
Enabled *bool `json:"enabled,omitempty"`
SuccessCallbackURL *Nullable[string] `json:"successCallbackUrl,omitempty"`
FailureCallbackURL *Nullable[string] `json:"failureCallbackUrl,omitempty"`
BusinessName *Nullable[string] `json:"businessName,omitempty"`
Headline *Nullable[string] `json:"headline,omitempty"`
Description *Nullable[string] `json:"description,omitempty"`
SuccessMessage *Nullable[string] `json:"successMessage,omitempty"`
SupportURL *Nullable[string] `json:"supportUrl,omitempty"`
PrivacyURL *Nullable[string] `json:"privacyUrl,omitempty"`
TermsURL *Nullable[string] `json:"termsUrl,omitempty"`
Accent *Nullable[string] `json:"accent,omitempty"`
Theme string `json:"theme,omitempty"`
HideWatermark *bool `json:"hideWatermark,omitempty"`
AllowPhoneChange *bool `json:"allowPhoneChange,omitempty"`
Shape *Nullable[string] `json:"shape,omitempty"`
RadiusPx *Nullable[int] `json:"radiusPx,omitempty"`
LogoMode string `json:"logoMode,omitempty"`
LogoStorageID *Nullable[string] `json:"logoStorageId,omitempty"`
LogoSourceStorageID *Nullable[string] `json:"logoSourceStorageId,omitempty"`
HistorySync string `json:"historySync,omitempty"`
Methods *Nullable[[]string] `json:"methods,omitempty"`
DefaultMethod *Nullable[string] `json:"defaultMethod,omitempty"`
}
type UpdateSIPTrunkRequest ¶
type UpdateSIPTrunkRequest struct {
ExpectedRevision *int64 `json:"expectedRevision,omitempty"`
Name *string `json:"name,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Direction *string `json:"direction,omitempty"`
Outbound *SIPOutboundPatch `json:"outbound,omitempty"`
Inbound *SIPInboundPatch `json:"inbound,omitempty"`
Codecs *[]string `json:"codecs,omitempty"`
MaxConcurrentCalls *int `json:"maxConcurrentCalls,omitempty"`
}
type UpdateStopConfirmationSettingsRequest ¶
type UpdateStopConfirmationSettingsRequest struct {
TeamID string `json:"teamId"`
Enabled bool `json:"enabled"`
Locale Nullable[StopConfirmationLocale] `json:"locale"`
Revision int64 `json:"revision"`
}
type UpdateVoiceAudioRequest ¶
type UpdateWebhookRequest ¶
type UpdateWebhookRequest struct {
Batching *WebhookBatchingInput `json:"batching,omitempty"`
URL string `json:"url,omitempty"`
EventTypes *[]string `json:"eventTypes,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Format string `json:"format,omitempty"`
RetryPolicy *WebhookRetryPolicy `json:"retryPolicy,omitempty"`
Headers *[]WebhookHeaderInput `json:"headers,omitempty"`
}
type UploadMediaType ¶
type UploadMediaType string
UploadMediaType uses WhatsApp's transport name. Voice notes use ptt with audio keys.
const ( UploadImage UploadMediaType = "image" UploadVideo UploadMediaType = "video" UploadAudio UploadMediaType = "audio" UploadVoiceNote UploadMediaType = "ptt" UploadDocument UploadMediaType = "document" UploadSticker UploadMediaType = "sticker" )
type UploadVoiceAudioRequest ¶
type UploadWhatsAppMediaOptions ¶
type UploadWhatsAppMediaOptions struct {
EncryptMediaOptions
Egress string // relay (default) or direct
UploadTransport WhatsAppMediaUploadTransport // optional customer encrypted-byte transport
MaxAttempts int // direct attempts per request; default 3
DocumentPartSize int64 // bounded document part; default 50 MiB
RequestOptions RequestOptions
}
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
func (*Usage) IterateRecords ¶
func (r *Usage) IterateRecords(ctx context.Context, p UsageRecordParams, o ...RequestOptions) iter.Seq2[UsageRecord, error]
func (*Usage) ListGates ¶
func (r *Usage) ListGates(ctx context.Context, p UsageGateParams, o ...RequestOptions) (Response[UsageGateList], error)
func (*Usage) ListRecords ¶
func (r *Usage) ListRecords(ctx context.Context, p UsageRecordParams, o ...RequestOptions) (Response[UsageRecordPage], error)
func (*Usage) Summary ¶
func (r *Usage) Summary(ctx context.Context, p UsageSummaryParams, o ...RequestOptions) (Response[UsageSummary], error)
type UsageConnectionTotal ¶
type UsageConnectionTotal struct {
Connection string `json:"connection"`
ProjectID *string `json:"projectId"`
Meters []UsageMeterTotal `json:"meters"`
}
type UsageDimension ¶
func (UsageDimension) MarshalJSON ¶
func (d UsageDimension) MarshalJSON() ([]byte, error)
func (*UsageDimension) UnmarshalJSON ¶
func (d *UsageDimension) UnmarshalJSON(b []byte) error
type UsageGate ¶
type UsageGate struct {
Key string `json:"key"`
Kind string `json:"kind"`
Subject string `json:"subject"`
Mode string `json:"mode"`
Active bool `json:"active"`
Limit *float64 `json:"limit"`
Used *float64 `json:"used"`
Unit *string `json:"unit"`
OverLimit *bool `json:"overLimit"`
Decisions UsageGateDecisions `json:"decisions"`
}
type UsageGateDecisions ¶
type UsageGateList ¶
type UsageGateParams ¶
type UsageMeterTotal ¶
type UsageRateCard ¶
type UsageRecord ¶
type UsageRecord struct {
ID string `json:"id"`
Meter string `json:"meter"`
Quantity float64 `json:"quantity"`
Unit string `json:"unit"`
Dimensions map[string]UsageDimension `json:"dimensions"`
KeySource string `json:"keySource"`
SourceKind string `json:"sourceKind"`
SourceID string `json:"sourceId"`
ProjectID *string `json:"projectId"`
Connection *string `json:"connection"`
OccurredAt string `json:"occurredAt"`
RecordedAt string `json:"recordedAt"`
Revision int64 `json:"revision"`
PricingState string `json:"pricingState"`
RateCard *UsageRateCard `json:"rateCard"`
PricedCredits *float64 `json:"pricedCredits"`
}
type UsageRecordPage ¶
type UsageRecordPage struct {
Records []UsageRecord `json:"records"`
NextCursor *string `json:"nextCursor"`
}
type UsageRecordParams ¶
type UsageRecordParams struct {
UsageSummaryParams
CallID string
Meter string
ListParams
}
type UsageRecordedPayload ¶
type UsageRecordedPayload struct {
ID string `json:"id"`
Meter string `json:"meter"`
Quantity float64 `json:"quantity"`
Unit string `json:"unit"`
Dimensions map[string]UsageDimension `json:"dimensions"`
KeySource string `json:"keySource"`
SourceKind string `json:"sourceKind"`
SourceID string `json:"sourceId"`
ProjectID *string `json:"projectId"`
Connection *string `json:"connection"`
OccurredAt string `json:"occurredAt"`
RecordedAt string `json:"recordedAt"`
Revision int `json:"revision"`
PricingState string `json:"pricingState"`
RateCard *UsageRateCard `json:"rateCard"`
PricedCredits *float64 `json:"pricedCredits"`
// contains filtered or unexported fields
}
type UsageSummary ¶
type UsageSummary struct {
Period string `json:"period"`
Start string `json:"start"`
End string `json:"end"`
ProjectID *string `json:"projectId"`
Connection *string `json:"connection"`
BillingEnabled bool `json:"billingEnabled"`
Meters []UsageMeterTotal `json:"meters"`
Connections []UsageConnectionTotal `json:"connections"`
ConnectionsTruncated bool `json:"connectionsTruncated"`
}
type UsageSummaryParams ¶
type UserSecurityCode ¶
type UserSecurityCode struct {
ConversationReference
NumericCode string `json:"numericCode"`
QRCode string `json:"qrCode"`
}
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func (*Users) GetSecurityCode ¶
func (r *Users) GetSecurityCode(ctx context.Context, s, id string, o ...RequestOptions) (Response[Envelope[UserSecurityCode]], error)
type VerifiedWebhookDelivery ¶
type VerifiedWebhookDelivery struct {
Event *WebhookEvent
Batch *WebhookEventBatch
}
WebhookDelivery contains exactly one of Event or Batch. Verify before dispatch; deduplicate batch and member IDs and acknowledge the entire delivery.
func ConstructWebhookDelivery ¶
func ConstructWebhookDelivery(body []byte, signature, secret string) (VerifiedWebhookDelivery, error)
func ParseVerifiedWebhookDelivery ¶
func ParseVerifiedWebhookDelivery(body []byte) (VerifiedWebhookDelivery, error)
type VersionResponse ¶
type VideoFrame ¶
type VoIP ¶
type VoIP struct {
// contains filtered or unexported fields
}
func (*VoIP) Accept ¶
func (r *VoIP) Accept(ctx context.Context, id string, b AcceptCallRequest, o ...RequestOptions) (Response[Envelope[AcceptedCall]], error)
func (*VoIP) AddParticipant ¶
func (r *VoIP) AddParticipant(ctx context.Context, id string, b AddCallParticipantRequest, o ...RequestOptions) (Response[Envelope[CallParticipant]], error)
func (*VoIP) Check ¶
func (r *VoIP) Check(ctx context.Context, b CheckCallRequest, o ...RequestOptions) (Response[Envelope[CallCheck]], error)
func (*VoIP) CreateCallLink ¶
func (r *VoIP) CreateCallLink(ctx context.Context, b CreateCallLinkRequest, opts ...RequestOptions) (Response[Envelope[CreatedCallLink]], error)
func (*VoIP) Leave ¶
func (r *VoIP) Leave(ctx context.Context, id string, b LeaveCallRequest, o ...RequestOptions) (Response[Success], error)
func (*VoIP) ModerateWaitingRoom ¶
func (r *VoIP) ModerateWaitingRoom(ctx context.Context, id string, b WaitingRoomControlRequest, o ...RequestOptions) (Response[Envelope[WaitingRoomControlResult]], error)
ModerateWaitingRoom reauthorizes through the API and never automatically retries. Inspect Data.Data.OK; an unknown outcome must not be replayed.
func (*VoIP) Place ¶
func (r *VoIP) Place(ctx context.Context, b PlaceCallRequest, o ...RequestOptions) (Response[Envelope[PlacedCall]], error)
func (*VoIP) PreviewCallLink ¶
func (r *VoIP) PreviewCallLink(ctx context.Context, b PreviewCallLinkRequest, opts ...RequestOptions) (Response[Envelope[PreviewedCallLink]], error)
func (*VoIP) Reject ¶
func (r *VoIP) Reject(ctx context.Context, id string, b RejectCallRequest, o ...RequestOptions) (Response[Success], error)
func (*VoIP) Report ¶
func (r *VoIP) Report(ctx context.Context, id string, b CallReportRequest, o ...RequestOptions) (Response[Success], error)
func (*VoIP) RetrieveCallPermission ¶
func (r *VoIP) RetrieveCallPermission(ctx context.Context, s, to string, o ...RequestOptions) (Response[Envelope[CallPermission]], error)
func (*VoIP) RetrieveCallSettings ¶
func (r *VoIP) RetrieveCallSettings(ctx context.Context, s string, o ...RequestOptions) (Response[Envelope[ConnectionCallSettings]], error)
func (*VoIP) RingParticipant ¶
func (r *VoIP) RingParticipant(ctx context.Context, id string, b AddCallParticipantRequest, o ...RequestOptions) (Response[Success], error)
func (*VoIP) SendReaction ¶
func (r *VoIP) SendReaction(ctx context.Context, id string, b CallReactionRequest, o ...RequestOptions) (Response[Success], error)
func (*VoIP) SetHandRaised ¶
func (r *VoIP) SetHandRaised(ctx context.Context, id string, b HandRaisedRequest, o ...RequestOptions) (Response[Success], error)
func (*VoIP) UpdateCallSettings ¶
func (r *VoIP) UpdateCallSettings(ctx context.Context, s string, b UpdateCallSettingsRequest, o ...RequestOptions) (Response[Envelope[ConnectionCallSettings]], error)
type VoiceAssetEventPayload ¶
type VoiceAssetEventPayload struct {
EventID string `json:"eventId"`
OccurredAt string `json:"occurredAt"`
TeamID string `json:"teamId"`
ProjectID string `json:"projectId"`
AssetID string `json:"assetId"`
Name string `json:"name"`
Source string `json:"source"`
// contains filtered or unexported fields
}
type VoiceAssetFailedPayload ¶
type VoiceAssetFailedPayload struct {
VoiceAssetEventPayload
FailureReason string `json:"failureReason"`
}
type VoiceAssetReadyPayload ¶
type VoiceAssetReadyPayload struct {
VoiceAssetEventPayload
DurationMS int64 `json:"durationMs"`
ContentSHA256 string `json:"contentSha256"`
OriginalFormat string `json:"originalFormat"`
}
type VoiceAudio ¶
type VoiceAudio struct {
// contains filtered or unexported fields
}
func (*VoiceAudio) Complete ¶
func (r *VoiceAudio) Complete(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceAudioAsset], error)
func (*VoiceAudio) CreateUpload ¶
func (r *VoiceAudio) CreateUpload(ctx context.Context, b CreateVoiceAudioUploadRequest, o ...RequestOptions) (Response[VoiceAudioUploadCreated], error)
func (*VoiceAudio) Delete ¶
func (r *VoiceAudio) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceResourceDeleted], error)
func (*VoiceAudio) List ¶
func (r *VoiceAudio) List(ctx context.Context, p ListVoiceAudioParams, o ...RequestOptions) (*CursorPage[VoiceAudioAsset], error)
func (*VoiceAudio) PreviewURL ¶
func (r *VoiceAudio) PreviewURL(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceAudioPreview], error)
func (*VoiceAudio) Retrieve ¶
func (r *VoiceAudio) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceAudioAsset], error)
func (*VoiceAudio) Synthesize ¶
func (r *VoiceAudio) Synthesize(ctx context.Context, b SynthesizeVoiceAudioRequest, o ...RequestOptions) (Response[VoiceAudioAsset], error)
func (*VoiceAudio) Update ¶
func (r *VoiceAudio) Update(ctx context.Context, id string, b UpdateVoiceAudioRequest, o ...RequestOptions) (Response[VoiceAudioAsset], error)
func (*VoiceAudio) Upload ¶
func (r *VoiceAudio) Upload(ctx context.Context, b UploadVoiceAudioRequest, opts ...RequestOptions) (Response[VoiceAudioAsset], error)
Upload uses only the issued upload headers and then completes the asset.
func (*VoiceAudio) WaitUntilReady ¶
func (r *VoiceAudio) WaitUntilReady(ctx context.Context, id string, p WaitForVoiceAudioOptions, o ...RequestOptions) (Response[VoiceAudioAsset], error)
type VoiceAudioAsset ¶
type VoiceAudioAsset struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
Name string `json:"name"`
Source string `json:"source"`
Status string `json:"status"`
FailureReason *string `json:"failureReason"`
OriginalFormat *string `json:"originalFormat"`
OriginalContentType *string `json:"originalContentType"`
SizeBytes *int64 `json:"sizeBytes"`
DurationMS *int64 `json:"durationMs"`
ContentSHA256 *string `json:"contentSha256"`
TTS *VoiceAudioTTS `json:"tts"`
RetentionDays *int `json:"retentionDays"`
ExpiresAt *string `json:"expiresAt"`
InUseCount int `json:"inUseCount"`
Revision int64 `json:"revision"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
ReadyAt *string `json:"readyAt"`
}
type VoiceAudioPreview ¶
type VoiceAudioPreview struct {
URL string `json:"url"`
ContentType string `json:"contentType"`
ExpiresAt string `json:"expiresAt"`
}
func (VoiceAudioPreview) GoString ¶
func (v VoiceAudioPreview) GoString() string
func (VoiceAudioPreview) String ¶
func (VoiceAudioPreview) String() string
type VoiceAudioTTS ¶
type VoiceAudioUpload ¶
type VoiceAudioUpload struct {
URL string `json:"url"`
Method string `json:"method"`
Headers map[string]string `json:"headers"`
MaxBytes int64 `json:"maxBytes"`
ExpiresAt string `json:"expiresAt"`
}
func (VoiceAudioUpload) GoString ¶
func (v VoiceAudioUpload) GoString() string
func (VoiceAudioUpload) String ¶
func (VoiceAudioUpload) String() string
type VoiceAudioUploadCreated ¶
type VoiceAudioUploadCreated struct {
Asset VoiceAudioAsset `json:"asset"`
Upload VoiceAudioUpload `json:"upload"`
}
type VoiceProviderCredential ¶
type VoiceProviderCredential struct {
ID string `json:"id"`
ProjectID *string `json:"projectId"`
Provider string `json:"provider"`
Label string `json:"label"`
KeyFingerprint string `json:"keyFingerprint"`
Status string `json:"status"`
VerifiedAt *string `json:"verifiedAt"`
LastError *string `json:"lastError"`
Revision int64 `json:"revision"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type VoiceProviderCredentials ¶
type VoiceProviderCredentials struct {
// contains filtered or unexported fields
}
func (*VoiceProviderCredentials) Create ¶
func (r *VoiceProviderCredentials) Create(ctx context.Context, b CreateVoiceProviderCredentialRequest, o ...RequestOptions) (Response[VoiceProviderCredential], error)
func (*VoiceProviderCredentials) Delete ¶
func (r *VoiceProviderCredentials) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceResourceDeleted], error)
func (*VoiceProviderCredentials) List ¶
func (r *VoiceProviderCredentials) List(ctx context.Context, o ...RequestOptions) (Response[[]VoiceProviderCredential], error)
func (*VoiceProviderCredentials) Retrieve ¶
func (r *VoiceProviderCredentials) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceProviderCredential], error)
func (*VoiceProviderCredentials) Verify ¶
func (r *VoiceProviderCredentials) Verify(ctx context.Context, id string, o ...RequestOptions) (Response[VoiceProviderCredential], error)
type VoiceResourceDeleted ¶
type WaitingRoomControl ¶
type WaitingRoomControl struct {
Type string `json:"type"`
RequestID string `json:"requestId"`
Operation string `json:"operation"`
Enabled *bool `json:"enabled,omitempty"`
ParticipantID string `json:"participantId,omitempty"`
}
WaitingRoomControl is a correlated action on the provider's pending roster.
type WaitingRoomControlRequest ¶
type WaitingRoomControlRequest struct {
ConnectionID string `json:"connectionId"`
Participant string `json:"participant,omitempty"`
Control WaitingRoomControl `json:"control"`
}
type WarmupCurvePoint ¶
type WarmupPlanSettings ¶
type WebhookBatching ¶
type WebhookBatchingInput ¶
type WebhookBlocklistChange ¶
type WebhookCallCapabilities ¶
type WebhookCallConnection ¶
type WebhookCallParticipant ¶
type WebhookConversation ¶
type WebhookConversation struct {
WebhookIdentity
Sender *WebhookIdentity `json:"sender,omitempty"`
}
type WebhookCreationReceipt ¶
type WebhookCreationReceipt struct {
Webhook PlatformWebhook `json:"webhook"`
OperationID *string `json:"operationId"`
Idempotency IdempotencyReceipt `json:"idempotency"`
Secret *string `json:"secret"`
SecretAvailable bool `json:"secretAvailable"`
}
type WebhookDeletionReceipt ¶
type WebhookDeletionReceipt struct {
WebhookID string `json:"webhookId"`
Deleted bool `json:"deleted"`
OperationID *string `json:"operationId"`
Idempotency IdempotencyReceipt `json:"idempotency"`
}
type WebhookDeliveries ¶
type WebhookDeliveries struct {
// contains filtered or unexported fields
}
func (*WebhookDeliveries) List ¶
func (r *WebhookDeliveries) List(ctx context.Context, p ListWebhookDeliveriesParams, o ...RequestOptions) (*CursorPage[WebhookDelivery], error)
func (*WebhookDeliveries) ListAttempts ¶
func (r *WebhookDeliveries) ListAttempts(ctx context.Context, id string, p ListParams, o ...RequestOptions) (*CursorPage[WebhookDeliveryAttempt], error)
func (*WebhookDeliveries) Retrieve ¶
func (r *WebhookDeliveries) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[WebhookDelivery], error)
func (*WebhookDeliveries) RetrieveAttempt ¶
func (r *WebhookDeliveries) RetrieveAttempt(ctx context.Context, id, attempt string, o ...RequestOptions) (Response[WebhookDeliveryAttempt], error)
func (*WebhookDeliveries) Retry ¶
func (r *WebhookDeliveries) Retry(ctx context.Context, id string, o ...RequestOptions) (Response[WebhookDeliveryRetryReceipt], error)
type WebhookDelivery ¶
type WebhookDelivery struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
ProjectID *string `json:"projectId"`
EventID string `json:"eventId"`
WebhookID string `json:"webhookId"`
Status string `json:"status"`
AttemptCount int `json:"attemptCount"`
Capabilities struct {
Retryable bool `json:"retryable"`
} `json:"capabilities"`
PayloadAvailability string `json:"payloadAvailability"`
ReplayableUntil *string `json:"replayableUntil"`
MetadataExpiresAt string `json:"metadataExpiresAt"`
NextAttemptAt *string `json:"nextAttemptAt"`
LastAttemptAt *string `json:"lastAttemptAt"`
CompletedAt *string `json:"completedAt"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
LastOutcome *struct {
StatusCode *int `json:"statusCode"`
ErrorCode *string `json:"errorCode"`
} `json:"lastOutcome"`
}
type WebhookDeliveryAttempt ¶
type WebhookDeliveryAttempt struct {
ID string `json:"id"`
TeamID string `json:"teamId"`
ProjectID *string `json:"projectId"`
DeliveryID string `json:"deliveryId"`
Number int `json:"number"`
Status string `json:"status"`
StartedAt *string `json:"startedAt"`
CompletedAt *string `json:"completedAt"`
NextRetryAt *string `json:"nextRetryAt"`
DurationMS *int `json:"durationMs"`
StatusCode *int `json:"statusCode"`
ErrorCode *string `json:"errorCode"`
Response *struct {
ContentType string `json:"contentType"`
Excerpt string `json:"excerpt"`
Truncated bool `json:"truncated"`
} `json:"response"`
MetadataExpiresAt string `json:"metadataExpiresAt"`
}
type WebhookDeliveryRetryReceipt ¶
type WebhookDeliveryRetryReceipt struct {
DeliveryID string `json:"deliveryId"`
AttemptID string `json:"attemptId"`
OperationID string `json:"operationId"`
Idempotency IdempotencyReceipt `json:"idempotency"`
}
type WebhookEncodedHistory ¶
type WebhookEvent ¶
type WebhookEvent struct {
ID string `json:"id"`
Connection string `json:"connection"`
ExternalID string `json:"externalId,omitempty"`
Timestamp string `json:"timestamp"`
Event string `json:"event"`
Payload json.RawMessage `json:"payload"`
}
WebhookEvent retains unknown payloads without coercion. Connection can be empty on project events. The raw signed bytes must be verified before parsing.
func ConstructLocalWebhookEvent ¶
func ConstructLocalWebhookEvent(raw []byte, signature, secret string, o VerifyLocalWebhookOptions) (WebhookEvent, error)
func ConstructWebhookEvent ¶
func ConstructWebhookEvent(body []byte, signature, secret string) (WebhookEvent, error)
func ParseVerifiedWebhookEvent ¶
func ParseVerifiedWebhookEvent(body []byte) (WebhookEvent, error)
func (WebhookEvent) Known ¶
func (e WebhookEvent) Known() bool
func (WebhookEvent) TypedPayload ¶
func (e WebhookEvent) TypedPayload() (KnownWebhookPayload, bool, error)
TypedPayload decodes a known payload into its public native type. The second result is false for unknown event names; unknown raw payloads are preserved.
type WebhookEventBatch ¶
type WebhookEventBatch struct {
Object string `json:"object"`
Version int `json:"version"`
ID string `json:"id"`
Events []WebhookEvent `json:"events"`
}
type WebhookFailedGroupParticipant ¶
type WebhookFailedGroupParticipant struct {
Participant WebhookIdentity `json:"participant"`
Errors []OfficialGroupWebhookError `json:"errors,omitempty"`
}
type WebhookFixture ¶
func CreateWebhookFixture ¶
func CreateWebhookFixture(event WebhookEvent, secret string) (WebhookFixture, error)
type WebhookGroupJoinRequest ¶
type WebhookGroupJoinRequest struct {
JoinRequestID string `json:"joinRequestId"`
User WebhookIdentity `json:"user"`
State string `json:"state"`
}
type WebhookHeader ¶
type WebhookHeaderInput ¶
type WebhookHeaderMetadata ¶
type WebhookHeaderMetadata struct {
Name string `json:"name"`
}
type WebhookHistoryMessage ¶
type WebhookHistoryMessage struct {
WebhookMessageReference
Conversation WebhookIdentity `json:"conversation"`
FromMe *bool `json:"fromMe,omitempty"`
}
type WebhookIdentity ¶
type WebhookMessageReference ¶
type WebhookMessageReference struct {
ID string `json:"id"`
WhatsAppIDs WhatsAppMessageIDs `json:"whatsapp_ids"`
WhatsAppID string `json:"whatsapp_id,omitempty"`
}
type WebhookMutationReceipt ¶
type WebhookMutationReceipt struct {
Webhook PlatformWebhook `json:"webhook"`
OperationID *string `json:"operationId"`
Idempotency IdempotencyReceipt `json:"idempotency"`
}
type WebhookPaymentAmount ¶
type WebhookPaymentTransaction ¶
type WebhookPaymentTransaction struct {
ID string `json:"id,omitempty"`
ProviderTransactionID string `json:"providerTransactionId,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Method string `json:"method,omitempty"`
ErrorCode string `json:"errorCode,omitempty"`
}
type WebhookPollOption ¶
type WebhookRetryConfig ¶
type WebhookRetryPolicy ¶
type WebhookRotationReceipt ¶
type WebhookRotationReceipt struct {
WebhookID string `json:"webhookId"`
OperationID *string `json:"operationId"`
Secret *string `json:"secret"`
SecretAvailable bool `json:"secretAvailable"`
SecretMetadata WebhookSecretMetadata `json:"secretMetadata"`
Idempotency IdempotencyReceipt `json:"idempotency"`
}
type WebhookSecretMetadata ¶
type Webhooks ¶
type Webhooks struct {
// contains filtered or unexported fields
}
func (*Webhooks) Create ¶
func (r *Webhooks) Create(ctx context.Context, b CreateWebhookRequest, o ...RequestOptions) (Response[WebhookCreationReceipt], error)
func (*Webhooks) Delete ¶
func (r *Webhooks) Delete(ctx context.Context, id string, o ...RequestOptions) (Response[WebhookDeletionReceipt], error)
func (*Webhooks) List ¶
func (r *Webhooks) List(ctx context.Context, p ListWebhooksParams, o ...RequestOptions) (*CursorPage[PlatformWebhook], error)
func (*Webhooks) Retrieve ¶
func (r *Webhooks) Retrieve(ctx context.Context, id string, o ...RequestOptions) (Response[PlatformWebhook], error)
func (*Webhooks) RotateSecret ¶
func (r *Webhooks) RotateSecret(ctx context.Context, id string, b RotateWebhookSecretRequest, o ...RequestOptions) (Response[WebhookRotationReceipt], error)
func (*Webhooks) Test ¶
func (r *Webhooks) Test(ctx context.Context, id string, b TestWebhookRequest, o ...RequestOptions) (Response[EventReplayReceipt], error)
func (*Webhooks) Update ¶
func (r *Webhooks) Update(ctx context.Context, id string, b UpdateWebhookRequest, o ...RequestOptions) (Response[WebhookMutationReceipt], error)
type WhatsAppAccount ¶
type WhatsAppAccount struct {
ID string `json:"id,omitempty"`
BSUID string `json:"bsuid,omitempty"`
Username string `json:"username,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
PushName string `json:"pushName"`
BusinessName string `json:"businessName,omitempty"`
PhonePlatform string `json:"phonePlatform,omitempty"`
AccountType string `json:"accountType,omitempty"`
ProfilePictureURL string `json:"profilePicUrl,omitempty"`
}
type WhatsAppAccountActivity ¶
type WhatsAppAccountActivity struct {
Observed bool `json:"observed"`
PrimaryPhoneActivitySignals int64 `json:"primaryPhoneActivitySignals"`
PrimaryPhoneActivePeriods int64 `json:"primaryPhoneActivePeriods"`
CompletedPhoneActivityPeriods int64 `json:"completedPhoneActivityPeriods"`
PhoneActivityMS float64 `json:"phoneActivityMs"`
AveragePhoneActivityMS *float64 `json:"averagePhoneActivityMs"`
PhoneQuietGaps int64 `json:"phoneQuietGaps"`
PhoneQuietMS float64 `json:"phoneQuietMs"`
AveragePhoneQuietMS *float64 `json:"averagePhoneQuietMs"`
PrimaryPhoneMessages int64 `json:"primaryPhoneMessages"`
OtherDeviceMessages int64 `json:"otherDeviceMessages"`
PrimaryPhoneReplies int64 `json:"primaryPhoneReplies"`
OtherDeviceReplies int64 `json:"otherDeviceReplies"`
AveragePrimaryPhoneResponseMS *float64 `json:"averagePrimaryPhoneResponseMs"`
AverageOtherDeviceResponseMS *float64 `json:"averageOtherDeviceResponseMs"`
LastPrimaryPhoneAt *int64 `json:"lastPrimaryPhoneAt"`
}
type WhatsAppAnalytics ¶
type WhatsAppAnalytics struct {
CallSeries []WhatsAppCallSeriesPoint `json:"callSeries"`
Enabled bool `json:"enabled"`
Period AnalyticsPeriod `json:"period"`
RequestVitals AnalyticsRequestVitals `json:"requestVitals"`
Summary *WhatsAppAnalyticsSummary `json:"summary"`
Connections []WhatsAppAnalyticsConnection `json:"connections"`
Series []WhatsAppSeriesPoint `json:"series"`
}
type WhatsAppAnalyticsSummary ¶
type WhatsAppAnalyticsSummary struct {
WhatsAppMetrics
TotalConnections int `json:"totalConnections"`
MeasuredConnections int `json:"measuredConnections"`
ConnectedConnections int `json:"connectedConnections"`
}
type WhatsAppBusinessSegment ¶
type WhatsAppBusinessSegment struct {
Dimension string `json:"dimension"`
Key string `json:"key"`
SendAttempts int64 `json:"sendAttempts"`
Sent int64 `json:"sent"`
SendFailures int64 `json:"sendFailures"`
SendFailureRate *float64 `json:"sendFailureRate"`
CompletedConversations int64 `json:"completedConversations"`
DeliveredConversations int64 `json:"deliveredConversations"`
ReadConversations int64 `json:"readConversations"`
RepliedConversations int64 `json:"repliedConversations"`
DeliveryRate *float64 `json:"deliveryRate"`
ReadRate *float64 `json:"readRate"`
ReplyRate *float64 `json:"replyRate"`
AverageCustomerReplyMS *float64 `json:"averageCustomerReplyMs"`
ReadRateInterval95 *[2]float64 `json:"readRateInterval95"`
ReplyRateInterval95 *[2]float64 `json:"replyRateInterval95"`
ReadRateDifference *float64 `json:"readRateDifference"`
ReplyRateDifference *float64 `json:"replyRateDifference"`
}
type WhatsAppCallSeriesPoint ¶
type WhatsAppCallSeriesPoint struct {
CallOutcomeMetrics
ConnectionID string `json:"connectionId"`
TS int64 `json:"ts"`
}
type WhatsAppConversationBreakdown ¶
type WhatsAppConversationBreakdown struct {
Measured bool `json:"measured"`
Complete bool `json:"complete"`
ObservedBuckets int `json:"observedBuckets"`
DroppedConversations int64 `json:"droppedConversations"`
Truncated bool `json:"truncated"`
Buckets []WhatsAppConversationBucket `json:"buckets"`
Rows []WhatsAppConversationGroup `json:"rows"`
}
type WhatsAppConversationGroup ¶
type WhatsAppConversationGroup struct {
RecipientCountry string `json:"recipientCountry,omitempty"`
RecipientDeviceCount string `json:"recipientDeviceCount,omitempty"`
TS int64 `json:"ts"`
MessageType string `json:"messageType"`
TextBand string `json:"textBand"`
Origin string `json:"origin"`
CallingCode string `json:"callingCode"`
CustomerDevices string `json:"customerDevices"`
CompletedConversations int64 `json:"completedConversations"`
DeliveredConversations int64 `json:"deliveredConversations"`
ReadConversations int64 `json:"readConversations"`
RepliedConversations int64 `json:"repliedConversations"`
ReplyLatencySumMS float64 `json:"replyLatencySumMs"`
ReadRate *float64 `json:"readRate"`
ReplyRate *float64 `json:"replyRate"`
AverageCustomerReplyMS *float64 `json:"averageCustomerReplyMs"`
}
type WhatsAppDevice ¶
type WhatsAppDeviceAnalytics ¶
type WhatsAppDeviceAnalytics struct {
Detector string `json:"detector"`
Measured bool `json:"measured"`
Complete bool `json:"complete"`
ObservedBuckets int `json:"observedBuckets"`
CustomerMessages *int64 `json:"customerMessages"`
AccountMessages *int64 `json:"accountMessages"`
CustomerPlatforms []WhatsAppDevicePlatform `json:"customerPlatforms"`
AccountPlatforms []WhatsAppDevicePlatform `json:"accountPlatforms"`
Inventory *WhatsAppDeviceInventory `json:"inventory"`
}
type WhatsAppDeviceInventory ¶
type WhatsAppDevicePlatform ¶
type WhatsAppEncryptedUploadBody ¶
type WhatsAppEncryptedUploadBody struct {
// contains filtered or unexported fields
}
WhatsAppEncryptedUploadBody opens repeatable ciphertext||MAC streams. The underlying repeat pass checks EOF/hash before the final bytes are released.
func (*WhatsAppEncryptedUploadBody) EncryptedLength ¶
func (b *WhatsAppEncryptedUploadBody) EncryptedLength() int64
func (*WhatsAppEncryptedUploadBody) FileEncSHA256 ¶
func (b *WhatsAppEncryptedUploadBody) FileEncSHA256() []byte
func (*WhatsAppEncryptedUploadBody) GoString ¶
func (b *WhatsAppEncryptedUploadBody) GoString() string
func (*WhatsAppEncryptedUploadBody) MarshalJSON ¶
func (b *WhatsAppEncryptedUploadBody) MarshalJSON() ([]byte, error)
func (*WhatsAppEncryptedUploadBody) MediaType ¶
func (b *WhatsAppEncryptedUploadBody) MediaType() UploadMediaType
func (*WhatsAppEncryptedUploadBody) Open ¶
func (b *WhatsAppEncryptedUploadBody) Open(ctx context.Context, offset int64) (io.ReadCloser, error)
func (*WhatsAppEncryptedUploadBody) String ¶
func (*WhatsAppEncryptedUploadBody) String() string
type WhatsAppEngagement ¶
type WhatsAppEngagement struct {
WindowHours int `json:"windowHours"`
CompletedConversations int64 `json:"completedConversations"`
DeliveredConversations int64 `json:"deliveredConversations"`
ReadConversations int64 `json:"readConversations"`
RepliedConversations int64 `json:"repliedConversations"`
DeliveryRate *float64 `json:"deliveryRate"`
ReadRate *float64 `json:"readRate"`
ReplyRate *float64 `json:"replyRate"`
AverageCustomerReplyMS *float64 `json:"averageCustomerReplyMs"`
Complete bool `json:"complete"`
DroppedConversations int64 `json:"droppedConversations"`
DroppedRecords int64 `json:"droppedRecords"`
DroppedReceiptJoins int64 `json:"droppedReceiptJoins"`
}
type WhatsAppMediaDescriptor ¶
type WhatsAppMediaDescriptor struct {
MediaKind string
URL string
DirectPath string
MediaKey []byte
FileSHA256 []byte
FileEncSHA256 []byte
FileLength *int64
MimeType string
Filename string
}
func DecodeWhatsAppMedia ¶
func DecodeWhatsAppMedia(encoded, kind string) (WhatsAppMediaDescriptor, error)
func MediaDescriptorFromEvent ¶
func MediaDescriptorFromEvent(e WebhookEvent) (WhatsAppMediaDescriptor, error)
func (WhatsAppMediaDescriptor) GoString ¶
func (d WhatsAppMediaDescriptor) GoString() string
func (WhatsAppMediaDescriptor) String ¶
func (d WhatsAppMediaDescriptor) String() string
type WhatsAppMediaDownload ¶
type WhatsAppMediaDownload struct {
Bytes []byte
MediaKind string
MimeType string
Filename string
FileLength *int64
}
func DownloadWhatsAppMedia ¶
func DownloadWhatsAppMedia(ctx context.Context, d WhatsAppMediaDescriptor, o WhatsAppMediaDownloadOptions) (WhatsAppMediaDownload, error)
func (WhatsAppMediaDownload) GoString ¶
func (d WhatsAppMediaDownload) GoString() string
func (WhatsAppMediaDownload) String ¶
func (d WhatsAppMediaDownload) String() string
type WhatsAppMediaKeys ¶
func DeriveWhatsAppMediaKeys ¶
func DeriveWhatsAppMediaKeys(key []byte, kind string) (WhatsAppMediaKeys, error)
func (WhatsAppMediaKeys) GoString ¶
func (k WhatsAppMediaKeys) GoString() string
func (WhatsAppMediaKeys) String ¶
func (k WhatsAppMediaKeys) String() string
type WhatsAppMediaResource ¶
type WhatsAppMediaResource struct {
// contains filtered or unexported fields
}
func (*WhatsAppMediaResource) CreateUploadGrant ¶
func (r *WhatsAppMediaResource) CreateUploadGrant(ctx context.Context, connection string, kind UploadMediaType, encryptedHash []byte, options ...RequestOptions) (WhatsAppUploadGrant, error)
func (*WhatsAppMediaResource) RelayUpload ¶
func (r *WhatsAppMediaResource) RelayUpload(ctx context.Context, connection string, info EncryptedMediaInfo, open func(context.Context) (io.ReadCloser, error), opts ...RequestOptions) (WhatsAppUploadLocation, error)
func (*WhatsAppMediaResource) Upload ¶
func (r *WhatsAppMediaResource) Upload(ctx context.Context, connection string, source WhatsAppMediaSource, options UploadWhatsAppMediaOptions) (WhatsAppMediaUploadResult, error)
func (*WhatsAppMediaResource) UploadBytes ¶
func (r *WhatsAppMediaResource) UploadBytes(ctx context.Context, connection string, plaintext []byte, options UploadWhatsAppMediaOptions) (WhatsAppMediaUploadResult, error)
func (*WhatsAppMediaResource) UploadTransport ¶
func (r *WhatsAppMediaResource) UploadTransport(mode string, options UploadWhatsAppMediaOptions) (WhatsAppMediaUploadTransport, error)
UploadTransport returns a reusable built-in transport that customer code can wrap. Only its encrypted-body upload boundary is exposed to the wrapper.
type WhatsAppMediaSendDescriptor ¶
type WhatsAppMediaSendDescriptor struct {
MediaType UploadMediaType `json:"-"`
DirectPath string `json:"-"`
URL string `json:"-"`
MediaKey []byte `json:"-"`
FileSHA256 []byte `json:"-"`
FileEncSHA256 []byte `json:"-"`
FileLength int64 `json:"-"`
MimeType string `json:"-"`
WhatsAppMediaSendMetadata
}
WhatsAppMediaSendDescriptor is secret. Standard message sends transmit its media key to Polymorfa. Zero-knowledge sends belong to the application sidecar.
func ToWhatsAppMediaSendDescriptor ¶
func ToWhatsAppMediaSendDescriptor(upload WhatsAppMediaUploadResult, metadata ...WhatsAppMediaSendMetadata) (WhatsAppMediaSendDescriptor, error)
func (WhatsAppMediaSendDescriptor) GoString ¶
func (descriptor WhatsAppMediaSendDescriptor) GoString() string
func (WhatsAppMediaSendDescriptor) MarshalJSON ¶
func (descriptor WhatsAppMediaSendDescriptor) MarshalJSON() ([]byte, error)
func (WhatsAppMediaSendDescriptor) String ¶
func (descriptor WhatsAppMediaSendDescriptor) String() string
type WhatsAppMediaSource ¶
type WhatsAppMediaSource func(context.Context) (io.ReadCloser, error)
WhatsAppMediaSource opens a fresh immutable plaintext stream on each pass. The SDK closes each returned stream; implementations must honor ctx.
type WhatsAppMediaStream ¶
type WhatsAppMediaStream struct {
Body io.ReadCloser
MediaKind, MimeType, Filename string
FileLength *int64
}
func DownloadWhatsAppMediaStream ¶
func DownloadWhatsAppMediaStream(ctx context.Context, d WhatsAppMediaDescriptor, o WhatsAppMediaDownloadOptions, mode WhatsAppMediaVerifyMode) (WhatsAppMediaStream, error)
type WhatsAppMediaUploadResult ¶
type WhatsAppMediaUploadResult struct {
EncryptedMediaInfo
WhatsAppUploadLocation
Egress string `json:"egress"`
}
func (WhatsAppMediaUploadResult) GoString ¶
func (result WhatsAppMediaUploadResult) GoString() string
func (WhatsAppMediaUploadResult) String ¶
func (result WhatsAppMediaUploadResult) String() string
type WhatsAppMediaUploadTransport ¶
type WhatsAppMediaUploadTransport interface {
Name() string
Upload(context.Context, string, *WhatsAppEncryptedUploadBody) (WhatsAppUploadLocation, error)
}
WhatsAppMediaUploadTransport moves encrypted bytes. Implementations receive no plaintext, media key, API credential or signed grant from this interface.
type WhatsAppMediaVerifyMode ¶
type WhatsAppMediaVerifyMode string
const VerifyBeforeRelease WhatsAppMediaVerifyMode = "before-release"
const VerifyStreaming WhatsAppMediaVerifyMode = "streaming"
type WhatsAppMessageAnalysis ¶
type WhatsAppMessageAnalysis struct {
Complete bool `json:"complete"`
Segments []WhatsAppBusinessSegment `json:"segments"`
}
type WhatsAppMessageIDs ¶
type WhatsAppMetrics ¶
type WhatsAppMetrics struct {
RecipientActivity *WhatsAppRecipientActivity `json:"recipientActivity,omitempty"`
DeviceAnalytics WhatsAppDeviceAnalytics `json:"deviceAnalytics"`
ConversationBreakdown WhatsAppConversationBreakdown `json:"conversationBreakdown"`
Calls CallBusinessMetrics `json:"calls"`
Measured bool `json:"measured"`
ObservedHours int `json:"observedHours"`
LastObservedAt *int64 `json:"lastObservedAt"`
OutgoingMessages int64 `json:"outgoingMessages"`
IncomingMessages int64 `json:"incomingMessages"`
SendAttempts int64 `json:"sendAttempts"`
SendFailures int64 `json:"sendFailures"`
SendFailureRate *float64 `json:"sendFailureRate"`
BusinessReplies int64 `json:"businessReplies"`
AverageBusinessResponseMS *float64 `json:"averageBusinessResponseMs"`
OnlineMS float64 `json:"onlineMs"`
Disconnects int64 `json:"disconnects"`
ConnectFailures int64 `json:"connectFailures"`
StreamErrors int64 `json:"streamErrors"`
KeepaliveTimeouts int64 `json:"keepaliveTimeouts"`
Engagement WhatsAppEngagement `json:"engagement"`
MessageAnalysis WhatsAppMessageAnalysis `json:"messageAnalysis"`
CustomerActivity WhatsAppCustomerActivity `json:"customerActivity"`
AccountActivity WhatsAppAccountActivity `json:"accountActivity"`
ResponseQueue *WhatsAppResponseQueue `json:"responseQueue"`
}
type WhatsAppRecipientActivityRow ¶
type WhatsAppRecipientActivityRow struct {
TS int64 `json:"ts"`
RecipientCountry string `json:"recipientCountry"`
RecipientDeviceCount string `json:"recipientDeviceCount"`
DeviceSource string `json:"deviceSource"`
IncomingMessages int64 `json:"incomingMessages"`
DeliveryReceipts int64 `json:"deliveryReceipts"`
ReadReceipts int64 `json:"readReceipts"`
OnlineSignals int64 `json:"onlineSignals"`
OfflineSignals int64 `json:"offlineSignals"`
TypingSignals int64 `json:"typingSignals"`
LastSignalAt int64 `json:"lastSignalAt"`
QuietGaps int64 `json:"quietGaps"`
QuietGapMS float64 `json:"quietGapMs"`
AverageQuietGapMS *float64 `json:"averageQuietGapMs"`
}
type WhatsAppResponseQueue ¶
type WhatsAppSeriesPoint ¶
type WhatsAppSeriesPoint struct {
CustomerOnlineSignals int64 `json:"customerOnlineSignals"`
CustomerTypingSignals int64 `json:"customerTypingSignals"`
PrimaryPhoneMessages int64 `json:"primaryPhoneMessages"`
OtherDeviceMessages int64 `json:"otherDeviceMessages"`
PrimaryPhoneReplies int64 `json:"primaryPhoneReplies"`
PhoneActivePeriods int64 `json:"phoneActivePeriods"`
CompletedPhoneActivityPeriods int64 `json:"completedPhoneActivityPeriods"`
PhoneActivityMS float64 `json:"phoneActivityMs"`
PhoneQuietGaps int64 `json:"phoneQuietGaps"`
PhoneQuietMS float64 `json:"phoneQuietMs"`
ConnectionID string `json:"connectionId"`
TS int64 `json:"ts"`
OutgoingMessages int64 `json:"outgoingMessages"`
IncomingMessages int64 `json:"incomingMessages"`
SendFailures int64 `json:"sendFailures"`
BusinessReplies int64 `json:"businessReplies"`
AverageBusinessResponseMS *float64 `json:"averageBusinessResponseMs"`
OnlineMS float64 `json:"onlineMs"`
Disconnects int64 `json:"disconnects"`
}
type WhatsAppUploadGrant ¶
func (WhatsAppUploadGrant) GoString ¶
func (grant WhatsAppUploadGrant) GoString() string
func (WhatsAppUploadGrant) String ¶
func (grant WhatsAppUploadGrant) String() string
type WhatsAppUploadLocation ¶
type WhatsAppUploadLocation struct {
DirectPath string `json:"-"`
URL string `json:"-"`
Handle string `json:"-"`
}
func (WhatsAppUploadLocation) GoString ¶
func (location WhatsAppUploadLocation) GoString() string
func (WhatsAppUploadLocation) String ¶
func (location WhatsAppUploadLocation) String() string
Source Files
¶
- accounts.go
- analytics.go
- analytics_types.go
- audience_profile_types.go
- audience_profiles.go
- audiences.go
- bansafe.go
- billing.go
- business.go
- business_types.go
- call_consent.go
- calls_diagnostics.go
- calls_model.go
- calls_protocol.go
- calls_socket.go
- calls_token.go
- campaign_contract_types.go
- campaign_contract_validation.go
- campaign_contracts.go
- campaign_existing.go
- campaign_segments_drip.go
- campaign_types.go
- campaigns.go
- channels.go
- chats.go
- client.go
- cloud_credentials.go
- cloud_graph.go
- cloud_templates.go
- connection_calls.go
- connection_delivery.go
- contacts.go
- content_disposition.go
- customers.go
- doc.go
- endpoint_response.go
- error_codes.go
- event_source.go
- event_stream.go
- flows.go
- flows_types.go
- functions.go
- groups.go
- history_descriptor_payload.go
- history_resource.go
- history_sync.go
- indexed_events.go
- interactive.go
- media.go
- media_direct.go
- media_encrypt.go
- media_file.go
- media_send.go
- media_upload.go
- media_upload_transport.go
- messaging.go
- messaging_types.go
- messaging_webhooks.go
- observations.go
- official_groups.go
- official_round2.go
- opt_outs.go
- pagination.go
- passkeys.go
- platform.go
- platform_calls.go
- platform_connections.go
- platform_types.go
- presence.go
- project_campaigns.go
- project_health.go
- raw_pagination.go
- request_logs.go
- s3_media.go
- security_records.go
- settings.go
- signal_custody.go
- signal_sidecar.go
- signal_sidecar_events.go
- signal_sidecar_types.go
- signal_sidecar_webhooks.go
- sip_trunks.go
- system.go
- templates.go
- testing.go
- text_transport.go
- transport.go
- usage.go
- voice.go
- voice_types.go
- voip.go
- webhook_payloads.go
- webhook_utilities.go
- webhooks.go
- whatsapp_media.go
- whatsapp_stream.go