apiclient

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: AGPL-3.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package apiclient provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAcceptRouteSuggestionRequest

func NewAcceptRouteSuggestionRequest(server string, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody) (*http.Request, error)

NewAcceptRouteSuggestionRequest calls the generic AcceptRouteSuggestion builder with application/json body

func NewAcceptRouteSuggestionRequestWithBody

func NewAcceptRouteSuggestionRequestWithBody(server string, suggestionId SuggestionId, contentType string, body io.Reader) (*http.Request, error)

NewAcceptRouteSuggestionRequestWithBody constructs an http.Request for the AcceptRouteSuggestion method, with any body, and a specified content type

func NewAcknowledgeAlertGroupRequest

func NewAcknowledgeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)

NewAcknowledgeAlertGroupRequest constructs an http.Request for the AcknowledgeAlertGroup method

func NewAddTeamUserRequest

func NewAddTeamUserRequest(server string, teamId TeamId, body AddTeamUserJSONRequestBody) (*http.Request, error)

NewAddTeamUserRequest calls the generic AddTeamUser builder with application/json body

func NewAddTeamUserRequestWithBody

func NewAddTeamUserRequestWithBody(server string, teamId TeamId, contentType string, body io.Reader) (*http.Request, error)

NewAddTeamUserRequestWithBody constructs an http.Request for the AddTeamUser method, with any body, and a specified content type

func NewAnswerReminderRequest

func NewAnswerReminderRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)

NewAnswerReminderRequest constructs an http.Request for the AnswerReminder method

func NewBeginTotpEnrolmentRequest

func NewBeginTotpEnrolmentRequest(server string) (*http.Request, error)

NewBeginTotpEnrolmentRequest constructs an http.Request for the BeginTotpEnrolment method

func NewBridgeEventRequest

func NewBridgeEventRequest(server string, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody) (*http.Request, error)

NewBridgeEventRequest calls the generic BridgeEvent builder with application/json body

func NewBridgeEventRequestWithBody

func NewBridgeEventRequestWithBody(server string, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader) (*http.Request, error)

NewBridgeEventRequestWithBody constructs an http.Request for the BridgeEvent method, with any body, and a specified content type

func NewChangePasswordRequest

func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)

NewChangePasswordRequest calls the generic ChangePassword builder with application/json body

func NewChangePasswordRequestWithBody

func NewChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewChangePasswordRequestWithBody constructs an http.Request for the ChangePassword method, with any body, and a specified content type

func NewCheckConnectionDraftRequest

func NewCheckConnectionDraftRequest(server string, body CheckConnectionDraftJSONRequestBody) (*http.Request, error)

NewCheckConnectionDraftRequest calls the generic CheckConnectionDraft builder with application/json body

func NewCheckConnectionDraftRequestWithBody

func NewCheckConnectionDraftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCheckConnectionDraftRequestWithBody constructs an http.Request for the CheckConnectionDraft method, with any body, and a specified content type

func NewCheckConnectionRequest

func NewCheckConnectionRequest(server string, connectionId ConnectionId, body CheckConnectionJSONRequestBody) (*http.Request, error)

NewCheckConnectionRequest calls the generic CheckConnection builder with application/json body

func NewCheckConnectionRequestWithBody

func NewCheckConnectionRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)

NewCheckConnectionRequestWithBody constructs an http.Request for the CheckConnection method, with any body, and a specified content type

func NewCheckDestinationRequest

func NewCheckDestinationRequest(server string, destinationId DestinationId) (*http.Request, error)

NewCheckDestinationRequest constructs an http.Request for the CheckDestination method

func NewCheckOidcSettingsRequest

func NewCheckOidcSettingsRequest(server string) (*http.Request, error)

NewCheckOidcSettingsRequest constructs an http.Request for the CheckOidcSettings method

func NewCompleteOidcLinkRequest

func NewCompleteOidcLinkRequest(server string, params *CompleteOidcLinkParams) (*http.Request, error)

NewCompleteOidcLinkRequest constructs an http.Request for the CompleteOidcLink method

func NewCompleteOidcSignInRequest

func NewCompleteOidcSignInRequest(server string, params *CompleteOidcSignInParams) (*http.Request, error)

NewCompleteOidcSignInRequest constructs an http.Request for the CompleteOidcSignIn method

func NewCompletePasswordSetupRequest

func NewCompletePasswordSetupRequest(server string, body CompletePasswordSetupJSONRequestBody) (*http.Request, error)

NewCompletePasswordSetupRequest calls the generic CompletePasswordSetup builder with application/json body

func NewCompletePasswordSetupRequestWithBody

func NewCompletePasswordSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCompletePasswordSetupRequestWithBody constructs an http.Request for the CompletePasswordSetup method, with any body, and a specified content type

func NewConfirmBridgeLinkRequest

func NewConfirmBridgeLinkRequest(server string, body ConfirmBridgeLinkJSONRequestBody) (*http.Request, error)

NewConfirmBridgeLinkRequest calls the generic ConfirmBridgeLink builder with application/json body

func NewConfirmBridgeLinkRequestWithBody

func NewConfirmBridgeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewConfirmBridgeLinkRequestWithBody constructs an http.Request for the ConfirmBridgeLink method, with any body, and a specified content type

func NewConfirmMattermostLinkRequest

func NewConfirmMattermostLinkRequest(server string, body ConfirmMattermostLinkJSONRequestBody) (*http.Request, error)

NewConfirmMattermostLinkRequest calls the generic ConfirmMattermostLink builder with application/json body

func NewConfirmMattermostLinkRequestWithBody

func NewConfirmMattermostLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewConfirmMattermostLinkRequestWithBody constructs an http.Request for the ConfirmMattermostLink method, with any body, and a specified content type

func NewConfirmMyGatewayContactRequest

func NewConfirmMyGatewayContactRequest(server string, gatewayContactId GatewayContactId, body ConfirmMyGatewayContactJSONRequestBody) (*http.Request, error)

NewConfirmMyGatewayContactRequest calls the generic ConfirmMyGatewayContact builder with application/json body

func NewConfirmMyGatewayContactRequestWithBody

func NewConfirmMyGatewayContactRequestWithBody(server string, gatewayContactId GatewayContactId, contentType string, body io.Reader) (*http.Request, error)

NewConfirmMyGatewayContactRequestWithBody constructs an http.Request for the ConfirmMyGatewayContact method, with any body, and a specified content type

func NewConfirmSlackLinkRequest

func NewConfirmSlackLinkRequest(server string, body ConfirmSlackLinkJSONRequestBody) (*http.Request, error)

NewConfirmSlackLinkRequest calls the generic ConfirmSlackLink builder with application/json body

func NewConfirmSlackLinkRequestWithBody

func NewConfirmSlackLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewConfirmSlackLinkRequestWithBody constructs an http.Request for the ConfirmSlackLink method, with any body, and a specified content type

func NewConfirmTotpEnrolmentRequest

func NewConfirmTotpEnrolmentRequest(server string, body ConfirmTotpEnrolmentJSONRequestBody) (*http.Request, error)

NewConfirmTotpEnrolmentRequest calls the generic ConfirmTotpEnrolment builder with application/json body

func NewConfirmTotpEnrolmentRequestWithBody

func NewConfirmTotpEnrolmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewConfirmTotpEnrolmentRequestWithBody constructs an http.Request for the ConfirmTotpEnrolment method, with any body, and a specified content type

func NewConvertUserToLocalRequest

func NewConvertUserToLocalRequest(server string, userId UserId) (*http.Request, error)

NewConvertUserToLocalRequest constructs an http.Request for the ConvertUserToLocal method

func NewCreateAlertGroupNoteRequest

func NewCreateAlertGroupNoteRequest(server string, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody) (*http.Request, error)

NewCreateAlertGroupNoteRequest calls the generic CreateAlertGroupNote builder with application/json body

func NewCreateAlertGroupNoteRequestWithBody

func NewCreateAlertGroupNoteRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)

NewCreateAlertGroupNoteRequestWithBody constructs an http.Request for the CreateAlertGroupNote method, with any body, and a specified content type

func NewCreateConnectionRequest

func NewCreateConnectionRequest(server string, body CreateConnectionJSONRequestBody) (*http.Request, error)

NewCreateConnectionRequest calls the generic CreateConnection builder with application/json body

func NewCreateConnectionRequestWithBody

func NewCreateConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateConnectionRequestWithBody constructs an http.Request for the CreateConnection method, with any body, and a specified content type

func NewCreateDestinationRequest

func NewCreateDestinationRequest(server string, body CreateDestinationJSONRequestBody) (*http.Request, error)

NewCreateDestinationRequest calls the generic CreateDestination builder with application/json body

func NewCreateDestinationRequestWithBody

func NewCreateDestinationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateDestinationRequestWithBody constructs an http.Request for the CreateDestination method, with any body, and a specified content type

func NewCreateEscalationChainRequest

func NewCreateEscalationChainRequest(server string, body CreateEscalationChainJSONRequestBody) (*http.Request, error)

NewCreateEscalationChainRequest calls the generic CreateEscalationChain builder with application/json body

func NewCreateEscalationChainRequestWithBody

func NewCreateEscalationChainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateEscalationChainRequestWithBody constructs an http.Request for the CreateEscalationChain method, with any body, and a specified content type

func NewCreateIntegrationRequest

func NewCreateIntegrationRequest(server string, body CreateIntegrationJSONRequestBody) (*http.Request, error)

NewCreateIntegrationRequest calls the generic CreateIntegration builder with application/json body

func NewCreateIntegrationRequestWithBody

func NewCreateIntegrationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateIntegrationRequestWithBody constructs an http.Request for the CreateIntegration method, with any body, and a specified content type

func NewCreateIntegrationTokenRequest

func NewCreateIntegrationTokenRequest(server string, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody) (*http.Request, error)

NewCreateIntegrationTokenRequest calls the generic CreateIntegrationToken builder with application/json body

func NewCreateIntegrationTokenRequestWithBody

func NewCreateIntegrationTokenRequestWithBody(server string, integrationId IntegrationId, contentType string, body io.Reader) (*http.Request, error)

NewCreateIntegrationTokenRequestWithBody constructs an http.Request for the CreateIntegrationToken method, with any body, and a specified content type

func NewCreateLinkRuleRequest

func NewCreateLinkRuleRequest(server string, body CreateLinkRuleJSONRequestBody) (*http.Request, error)

NewCreateLinkRuleRequest calls the generic CreateLinkRule builder with application/json body

func NewCreateLinkRuleRequestWithBody

func NewCreateLinkRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateLinkRuleRequestWithBody constructs an http.Request for the CreateLinkRule method, with any body, and a specified content type

func NewCreateLookupTableRequest

func NewCreateLookupTableRequest(server string, body CreateLookupTableJSONRequestBody) (*http.Request, error)

NewCreateLookupTableRequest calls the generic CreateLookupTable builder with application/json body

func NewCreateLookupTableRequestWithBody

func NewCreateLookupTableRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateLookupTableRequestWithBody constructs an http.Request for the CreateLookupTable method, with any body, and a specified content type

func NewCreateMyGatewayContactRequest

func NewCreateMyGatewayContactRequest(server string, body CreateMyGatewayContactJSONRequestBody) (*http.Request, error)

NewCreateMyGatewayContactRequest calls the generic CreateMyGatewayContact builder with application/json body

func NewCreateMyGatewayContactRequestWithBody

func NewCreateMyGatewayContactRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateMyGatewayContactRequestWithBody constructs an http.Request for the CreateMyGatewayContact method, with any body, and a specified content type

func NewCreatePasswordSetupLinkRequest

func NewCreatePasswordSetupLinkRequest(server string, userId UserId) (*http.Request, error)

NewCreatePasswordSetupLinkRequest constructs an http.Request for the CreatePasswordSetupLink method

func NewCreatePersonalAccessTokenRequest

func NewCreatePersonalAccessTokenRequest(server string, body CreatePersonalAccessTokenJSONRequestBody) (*http.Request, error)

NewCreatePersonalAccessTokenRequest calls the generic CreatePersonalAccessToken builder with application/json body

func NewCreatePersonalAccessTokenRequestWithBody

func NewCreatePersonalAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePersonalAccessTokenRequestWithBody constructs an http.Request for the CreatePersonalAccessToken method, with any body, and a specified content type

func NewCreateRouteRequest

func NewCreateRouteRequest(server string, body CreateRouteJSONRequestBody) (*http.Request, error)

NewCreateRouteRequest calls the generic CreateRoute builder with application/json body

func NewCreateRouteRequestWithBody

func NewCreateRouteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRouteRequestWithBody constructs an http.Request for the CreateRoute method, with any body, and a specified content type

func NewCreateScheduleOverrideRequest

func NewCreateScheduleOverrideRequest(server string, scheduleId ScheduleId, body CreateScheduleOverrideJSONRequestBody) (*http.Request, error)

NewCreateScheduleOverrideRequest calls the generic CreateScheduleOverride builder with application/json body

func NewCreateScheduleOverrideRequestWithBody

func NewCreateScheduleOverrideRequestWithBody(server string, scheduleId ScheduleId, contentType string, body io.Reader) (*http.Request, error)

NewCreateScheduleOverrideRequestWithBody constructs an http.Request for the CreateScheduleOverride method, with any body, and a specified content type

func NewCreateScheduleRequest

func NewCreateScheduleRequest(server string, body CreateScheduleJSONRequestBody) (*http.Request, error)

NewCreateScheduleRequest calls the generic CreateSchedule builder with application/json body

func NewCreateScheduleRequestWithBody

func NewCreateScheduleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateScheduleRequestWithBody constructs an http.Request for the CreateSchedule method, with any body, and a specified content type

func NewCreateServiceAccountRequest

func NewCreateServiceAccountRequest(server string, body CreateServiceAccountJSONRequestBody) (*http.Request, error)

NewCreateServiceAccountRequest calls the generic CreateServiceAccount builder with application/json body

func NewCreateServiceAccountRequestWithBody

func NewCreateServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateServiceAccountRequestWithBody constructs an http.Request for the CreateServiceAccount method, with any body, and a specified content type

func NewCreateServiceAccountTokenRequest

func NewCreateServiceAccountTokenRequest(server string, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody) (*http.Request, error)

NewCreateServiceAccountTokenRequest calls the generic CreateServiceAccountToken builder with application/json body

func NewCreateServiceAccountTokenRequestWithBody

func NewCreateServiceAccountTokenRequestWithBody(server string, serviceAccountId ServiceAccountId, contentType string, body io.Reader) (*http.Request, error)

NewCreateServiceAccountTokenRequestWithBody constructs an http.Request for the CreateServiceAccountToken method, with any body, and a specified content type

func NewCreateSessionRequest

func NewCreateSessionRequest(server string, body CreateSessionJSONRequestBody) (*http.Request, error)

NewCreateSessionRequest calls the generic CreateSession builder with application/json body

func NewCreateSessionRequestWithBody

func NewCreateSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSessionRequestWithBody constructs an http.Request for the CreateSession method, with any body, and a specified content type

func NewCreateTeamRequest

func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*http.Request, error)

NewCreateTeamRequest calls the generic CreateTeam builder with application/json body

func NewCreateTeamRequestWithBody

func NewCreateTeamRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateTeamRequestWithBody constructs an http.Request for the CreateTeam method, with any body, and a specified content type

func NewCreateUserGatewayContactRequest

func NewCreateUserGatewayContactRequest(server string, userId UserId, body CreateUserGatewayContactJSONRequestBody) (*http.Request, error)

NewCreateUserGatewayContactRequest calls the generic CreateUserGatewayContact builder with application/json body

func NewCreateUserGatewayContactRequestWithBody

func NewCreateUserGatewayContactRequestWithBody(server string, userId UserId, contentType string, body io.Reader) (*http.Request, error)

NewCreateUserGatewayContactRequestWithBody constructs an http.Request for the CreateUserGatewayContact method, with any body, and a specified content type

func NewCreateUserRequest

func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)

NewCreateUserRequest calls the generic CreateUser builder with application/json body

func NewCreateUserRequestWithBody

func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateUserRequestWithBody constructs an http.Request for the CreateUser method, with any body, and a specified content type

func NewDeleteConnectionRequest

func NewDeleteConnectionRequest(server string, connectionId ConnectionId, params *DeleteConnectionParams) (*http.Request, error)

NewDeleteConnectionRequest constructs an http.Request for the DeleteConnection method

func NewDeleteCurrentSessionRequest

func NewDeleteCurrentSessionRequest(server string) (*http.Request, error)

NewDeleteCurrentSessionRequest constructs an http.Request for the DeleteCurrentSession method

func NewDeleteDestinationRequest

func NewDeleteDestinationRequest(server string, destinationId DestinationId, params *DeleteDestinationParams) (*http.Request, error)

NewDeleteDestinationRequest constructs an http.Request for the DeleteDestination method

func NewDeleteDestinationSecretRequest

func NewDeleteDestinationSecretRequest(server string, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams) (*http.Request, error)

NewDeleteDestinationSecretRequest constructs an http.Request for the DeleteDestinationSecret method

func NewDeleteEscalationChainRequest

func NewDeleteEscalationChainRequest(server string, escalationChainId EscalationChainId, params *DeleteEscalationChainParams) (*http.Request, error)

NewDeleteEscalationChainRequest constructs an http.Request for the DeleteEscalationChain method

func NewDeleteIntegrationRequest

func NewDeleteIntegrationRequest(server string, integrationId IntegrationId, params *DeleteIntegrationParams) (*http.Request, error)

NewDeleteIntegrationRequest constructs an http.Request for the DeleteIntegration method

func NewDeleteLinkRuleRequest

func NewDeleteLinkRuleRequest(server string, linkRuleId LinkRuleId, params *DeleteLinkRuleParams) (*http.Request, error)

NewDeleteLinkRuleRequest constructs an http.Request for the DeleteLinkRule method

func NewDeleteLookupTableRequest

func NewDeleteLookupTableRequest(server string, lookupTableId LookupTableId, params *DeleteLookupTableParams) (*http.Request, error)

NewDeleteLookupTableRequest constructs an http.Request for the DeleteLookupTable method

func NewDeleteMyAccountLinkRequest

func NewDeleteMyAccountLinkRequest(server string, accountLinkId AccountLinkId) (*http.Request, error)

NewDeleteMyAccountLinkRequest constructs an http.Request for the DeleteMyAccountLink method

func NewDeleteMyGatewayContactRequest

func NewDeleteMyGatewayContactRequest(server string, gatewayContactId GatewayContactId) (*http.Request, error)

NewDeleteMyGatewayContactRequest constructs an http.Request for the DeleteMyGatewayContact method

func NewDeleteMySessionsRequest

func NewDeleteMySessionsRequest(server string) (*http.Request, error)

NewDeleteMySessionsRequest constructs an http.Request for the DeleteMySessions method

func NewDeleteRouteRequest

func NewDeleteRouteRequest(server string, routeId RouteId, params *DeleteRouteParams) (*http.Request, error)

NewDeleteRouteRequest constructs an http.Request for the DeleteRoute method

func NewDeleteScheduleOverrideRequest

func NewDeleteScheduleOverrideRequest(server string, scheduleId ScheduleId, overrideId OverrideId, params *DeleteScheduleOverrideParams) (*http.Request, error)

NewDeleteScheduleOverrideRequest constructs an http.Request for the DeleteScheduleOverride method

func NewDeleteScheduleRequest

func NewDeleteScheduleRequest(server string, scheduleId ScheduleId, params *DeleteScheduleParams) (*http.Request, error)

NewDeleteScheduleRequest constructs an http.Request for the DeleteSchedule method

func NewDeleteServiceAccountRequest

func NewDeleteServiceAccountRequest(server string, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams) (*http.Request, error)

NewDeleteServiceAccountRequest constructs an http.Request for the DeleteServiceAccount method

func NewDeleteTeamRequest

func NewDeleteTeamRequest(server string, teamId TeamId, params *DeleteTeamParams) (*http.Request, error)

NewDeleteTeamRequest constructs an http.Request for the DeleteTeam method

func NewDeleteUserAccountLinkRequest

func NewDeleteUserAccountLinkRequest(server string, userId UserId, accountLinkId AccountLinkId) (*http.Request, error)

NewDeleteUserAccountLinkRequest constructs an http.Request for the DeleteUserAccountLink method

func NewDeleteUserGatewayContactRequest

func NewDeleteUserGatewayContactRequest(server string, userId UserId, gatewayContactId GatewayContactId) (*http.Request, error)

NewDeleteUserGatewayContactRequest constructs an http.Request for the DeleteUserGatewayContact method

func NewDeleteUserRequest

func NewDeleteUserRequest(server string, userId UserId, params *DeleteUserParams) (*http.Request, error)

NewDeleteUserRequest constructs an http.Request for the DeleteUser method

func NewDeliverAlertGroupEventWebhookRequest

func NewDeliverAlertGroupEventWebhookRequest(targetURL string, params *DeliverAlertGroupEventParams, body DeliverAlertGroupEventJSONRequestBody) (*http.Request, error)

NewDeliverAlertGroupEventWebhookRequest builds a application/json POST request for the alertGroupEvent webhook

func NewDeliverAlertGroupEventWebhookRequestWithBody

func NewDeliverAlertGroupEventWebhookRequestWithBody(targetURL string, params *DeliverAlertGroupEventParams, contentType string, body io.Reader) (*http.Request, error)

NewDeliverAlertGroupEventWebhookRequestWithBody builds a POST request for the alertGroupEvent webhook with any body

func NewDisableServiceAccountRequest

func NewDisableServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)

NewDisableServiceAccountRequest constructs an http.Request for the DisableServiceAccount method

func NewDisableUserRequest

func NewDisableUserRequest(server string, userId UserId) (*http.Request, error)

NewDisableUserRequest constructs an http.Request for the DisableUser method

func NewDismissRouteSuggestionRequest

func NewDismissRouteSuggestionRequest(server string, suggestionId SuggestionId) (*http.Request, error)

NewDismissRouteSuggestionRequest constructs an http.Request for the DismissRouteSuggestion method

func NewEnableServiceAccountRequest

func NewEnableServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)

NewEnableServiceAccountRequest constructs an http.Request for the EnableServiceAccount method

func NewEnableUserRequest

func NewEnableUserRequest(server string, userId UserId) (*http.Request, error)

NewEnableUserRequest constructs an http.Request for the EnableUser method

func NewGenerateSigningSecretRequest

func NewGenerateSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)

NewGenerateSigningSecretRequest constructs an http.Request for the GenerateSigningSecret method

func NewGetAlertGroupActorStatisticsRequest

func NewGetAlertGroupActorStatisticsRequest(server string, params *GetAlertGroupActorStatisticsParams) (*http.Request, error)

NewGetAlertGroupActorStatisticsRequest constructs an http.Request for the GetAlertGroupActorStatistics method

func NewGetAlertGroupCountsRequest

func NewGetAlertGroupCountsRequest(server string, params *GetAlertGroupCountsParams) (*http.Request, error)

NewGetAlertGroupCountsRequest constructs an http.Request for the GetAlertGroupCounts method

func NewGetAlertGroupRequest

func NewGetAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)

NewGetAlertGroupRequest constructs an http.Request for the GetAlertGroup method

func NewGetAlertGroupStatisticsRequest

func NewGetAlertGroupStatisticsRequest(server string, params *GetAlertGroupStatisticsParams) (*http.Request, error)

NewGetAlertGroupStatisticsRequest constructs an http.Request for the GetAlertGroupStatistics method

func NewGetAlertGroupTimelineRequest

func NewGetAlertGroupTimelineRequest(server string, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams) (*http.Request, error)

NewGetAlertGroupTimelineRequest constructs an http.Request for the GetAlertGroupTimeline method

func NewGetConnectionRequest

func NewGetConnectionRequest(server string, connectionId ConnectionId) (*http.Request, error)

NewGetConnectionRequest constructs an http.Request for the GetConnection method

func NewGetCurrentSessionRequest

func NewGetCurrentSessionRequest(server string) (*http.Request, error)

NewGetCurrentSessionRequest constructs an http.Request for the GetCurrentSession method

func NewGetDestinationRequest

func NewGetDestinationRequest(server string, destinationId DestinationId) (*http.Request, error)

NewGetDestinationRequest constructs an http.Request for the GetDestination method

func NewGetEscalationChainRequest

func NewGetEscalationChainRequest(server string, escalationChainId EscalationChainId) (*http.Request, error)

NewGetEscalationChainRequest constructs an http.Request for the GetEscalationChain method

func NewGetIntegrationRequest

func NewGetIntegrationRequest(server string, integrationId IntegrationId) (*http.Request, error)

NewGetIntegrationRequest constructs an http.Request for the GetIntegration method

func NewGetKeyringRequest

func NewGetKeyringRequest(server string) (*http.Request, error)

NewGetKeyringRequest constructs an http.Request for the GetKeyring method

func NewGetLinkRuleRequest

func NewGetLinkRuleRequest(server string, linkRuleId LinkRuleId) (*http.Request, error)

NewGetLinkRuleRequest constructs an http.Request for the GetLinkRule method

func NewGetLookupTableRequest

func NewGetLookupTableRequest(server string, lookupTableId LookupTableId) (*http.Request, error)

NewGetLookupTableRequest constructs an http.Request for the GetLookupTable method

func NewGetMeRequest

func NewGetMeRequest(server string) (*http.Request, error)

NewGetMeRequest constructs an http.Request for the GetMe method

func NewGetMyIcalFeedRequest

func NewGetMyIcalFeedRequest(server string) (*http.Request, error)

NewGetMyIcalFeedRequest constructs an http.Request for the GetMyIcalFeed method

func NewGetMyNotificationRulesRequest

func NewGetMyNotificationRulesRequest(server string) (*http.Request, error)

NewGetMyNotificationRulesRequest constructs an http.Request for the GetMyNotificationRules method

func NewGetMyTotpRequest

func NewGetMyTotpRequest(server string) (*http.Request, error)

NewGetMyTotpRequest constructs an http.Request for the GetMyTotp method

func NewGetOidcSettingsRequest

func NewGetOidcSettingsRequest(server string) (*http.Request, error)

NewGetOidcSettingsRequest constructs an http.Request for the GetOidcSettings method

func NewGetOnCallNowRequest

func NewGetOnCallNowRequest(server string, params *GetOnCallNowParams) (*http.Request, error)

NewGetOnCallNowRequest constructs an http.Request for the GetOnCallNow method

func NewGetOpenApiSpecRequest

func NewGetOpenApiSpecRequest(server string) (*http.Request, error)

NewGetOpenApiSpecRequest constructs an http.Request for the GetOpenApiSpec method

func NewGetOrganizationRequest

func NewGetOrganizationRequest(server string) (*http.Request, error)

NewGetOrganizationRequest constructs an http.Request for the GetOrganization method

func NewGetOutboundPolicyRequest

func NewGetOutboundPolicyRequest(server string) (*http.Request, error)

NewGetOutboundPolicyRequest constructs an http.Request for the GetOutboundPolicy method

func NewGetRequestRecordRequest

func NewGetRequestRecordRequest(server string, requestRecordId RequestRecordId) (*http.Request, error)

NewGetRequestRecordRequest constructs an http.Request for the GetRequestRecord method

func NewGetRouteRequest

func NewGetRouteRequest(server string, routeId RouteId) (*http.Request, error)

NewGetRouteRequest constructs an http.Request for the GetRoute method

func NewGetScheduleOnCallRequest

func NewGetScheduleOnCallRequest(server string, scheduleId ScheduleId, params *GetScheduleOnCallParams) (*http.Request, error)

NewGetScheduleOnCallRequest constructs an http.Request for the GetScheduleOnCall method

func NewGetScheduleRequest

func NewGetScheduleRequest(server string, scheduleId ScheduleId) (*http.Request, error)

NewGetScheduleRequest constructs an http.Request for the GetSchedule method

func NewGetServiceAccountRequest

func NewGetServiceAccountRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)

NewGetServiceAccountRequest constructs an http.Request for the GetServiceAccount method

func NewGetSignInOptionsRequest

func NewGetSignInOptionsRequest(server string) (*http.Request, error)

NewGetSignInOptionsRequest constructs an http.Request for the GetSignInOptions method

func NewGetSigningSecretRequest

func NewGetSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)

NewGetSigningSecretRequest constructs an http.Request for the GetSigningSecret method

func NewGetStoredSnapshotRequest

func NewGetStoredSnapshotRequest(server string, storedSnapshotId StoredSnapshotId) (*http.Request, error)

NewGetStoredSnapshotRequest constructs an http.Request for the GetStoredSnapshot method

func NewGetSystemStatusRequest

func NewGetSystemStatusRequest(server string) (*http.Request, error)

NewGetSystemStatusRequest constructs an http.Request for the GetSystemStatus method

func NewGetTeamRequest

func NewGetTeamRequest(server string, teamId TeamId) (*http.Request, error)

NewGetTeamRequest constructs an http.Request for the GetTeam method

func NewGetUserNotificationRulesRequest

func NewGetUserNotificationRulesRequest(server string, userId UserId) (*http.Request, error)

NewGetUserNotificationRulesRequest constructs an http.Request for the GetUserNotificationRules method

func NewGetUserRequest

func NewGetUserRequest(server string, userId UserId) (*http.Request, error)

NewGetUserRequest constructs an http.Request for the GetUser method

func NewHeartbeatGetRequest

func NewHeartbeatGetRequest(server string) (*http.Request, error)

NewHeartbeatGetRequest constructs an http.Request for the HeartbeatGet method

func NewHeartbeatGetWithPathTokenRequest

func NewHeartbeatGetWithPathTokenRequest(server string, ingestToken IngestTokenInPath) (*http.Request, error)

NewHeartbeatGetWithPathTokenRequest constructs an http.Request for the HeartbeatGetWithPathToken method

func NewHeartbeatPostRequest

func NewHeartbeatPostRequest(server string) (*http.Request, error)

NewHeartbeatPostRequest constructs an http.Request for the HeartbeatPost method

func NewHeartbeatPostWithPathTokenRequest

func NewHeartbeatPostWithPathTokenRequest(server string, ingestToken IngestTokenInPath) (*http.Request, error)

NewHeartbeatPostWithPathTokenRequest constructs an http.Request for the HeartbeatPostWithPathToken method

func NewIngestSnapshotRequestWithBody

func NewIngestSnapshotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewIngestSnapshotRequestWithBody constructs an http.Request for the IngestSnapshot method, with any body, and a specified content type

func NewIngestSnapshotWithPathTokenRequestWithBody

func NewIngestSnapshotWithPathTokenRequestWithBody(server string, ingestToken IngestTokenInPath, contentType string, body io.Reader) (*http.Request, error)

NewIngestSnapshotWithPathTokenRequestWithBody constructs an http.Request for the IngestSnapshotWithPathToken method, with any body, and a specified content type

func NewIssueMyIcalFeedRequest

func NewIssueMyIcalFeedRequest(server string) (*http.Request, error)

NewIssueMyIcalFeedRequest constructs an http.Request for the IssueMyIcalFeed method

func NewListAlertGroupAlertsRequest

func NewListAlertGroupAlertsRequest(server string, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams) (*http.Request, error)

NewListAlertGroupAlertsRequest constructs an http.Request for the ListAlertGroupAlerts method

func NewListAlertGroupDeliveriesRequest

func NewListAlertGroupDeliveriesRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)

NewListAlertGroupDeliveriesRequest constructs an http.Request for the ListAlertGroupDeliveries method

func NewListAlertGroupNotesRequest

func NewListAlertGroupNotesRequest(server string, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams) (*http.Request, error)

NewListAlertGroupNotesRequest constructs an http.Request for the ListAlertGroupNotes method

func NewListAlertGroupsRequest

func NewListAlertGroupsRequest(server string, params *ListAlertGroupsParams) (*http.Request, error)

NewListAlertGroupsRequest constructs an http.Request for the ListAlertGroups method

func NewListAlertmanagerRoutesRequest

func NewListAlertmanagerRoutesRequest(server string, integrationId IntegrationId) (*http.Request, error)

NewListAlertmanagerRoutesRequest constructs an http.Request for the ListAlertmanagerRoutes method

func NewListAuditLogRequest

func NewListAuditLogRequest(server string, params *ListAuditLogParams) (*http.Request, error)

NewListAuditLogRequest constructs an http.Request for the ListAuditLog method

func NewListConnectionChannelsRequest

func NewListConnectionChannelsRequest(server string, connectionId ConnectionId, params *ListConnectionChannelsParams) (*http.Request, error)

NewListConnectionChannelsRequest constructs an http.Request for the ListConnectionChannels method

func NewListConnectionGroupsRequest

func NewListConnectionGroupsRequest(server string, connectionId ConnectionId, params *ListConnectionGroupsParams) (*http.Request, error)

NewListConnectionGroupsRequest constructs an http.Request for the ListConnectionGroups method

func NewListConnectionsRequest

func NewListConnectionsRequest(server string, params *ListConnectionsParams) (*http.Request, error)

NewListConnectionsRequest constructs an http.Request for the ListConnections method

func NewListDestinationSecretsRequest

func NewListDestinationSecretsRequest(server string, destinationId DestinationId) (*http.Request, error)

NewListDestinationSecretsRequest constructs an http.Request for the ListDestinationSecrets method

func NewListDestinationsRequest

func NewListDestinationsRequest(server string, params *ListDestinationsParams) (*http.Request, error)

NewListDestinationsRequest constructs an http.Request for the ListDestinations method

func NewListEscalationChainRunsRequest

func NewListEscalationChainRunsRequest(server string, escalationChainId EscalationChainId, params *ListEscalationChainRunsParams) (*http.Request, error)

NewListEscalationChainRunsRequest constructs an http.Request for the ListEscalationChainRuns method

func NewListEscalationChainsRequest

func NewListEscalationChainsRequest(server string, params *ListEscalationChainsParams) (*http.Request, error)

NewListEscalationChainsRequest constructs an http.Request for the ListEscalationChains method

func NewListIntegrationAlertsRequest

func NewListIntegrationAlertsRequest(server string, integrationId IntegrationId, params *ListIntegrationAlertsParams) (*http.Request, error)

NewListIntegrationAlertsRequest constructs an http.Request for the ListIntegrationAlerts method

func NewListIntegrationTokensRequest

func NewListIntegrationTokensRequest(server string, integrationId IntegrationId) (*http.Request, error)

NewListIntegrationTokensRequest constructs an http.Request for the ListIntegrationTokens method

func NewListIntegrationsRequest

func NewListIntegrationsRequest(server string, params *ListIntegrationsParams) (*http.Request, error)

NewListIntegrationsRequest constructs an http.Request for the ListIntegrations method

func NewListLinkRulesRequest

func NewListLinkRulesRequest(server string, params *ListLinkRulesParams) (*http.Request, error)

NewListLinkRulesRequest constructs an http.Request for the ListLinkRules method

func NewListLinkableConnectionsRequest

func NewListLinkableConnectionsRequest(server string) (*http.Request, error)

NewListLinkableConnectionsRequest constructs an http.Request for the ListLinkableConnections method

func NewListLookupTablesRequest

func NewListLookupTablesRequest(server string, params *ListLookupTablesParams) (*http.Request, error)

NewListLookupTablesRequest constructs an http.Request for the ListLookupTables method

func NewListMyAccountLinksRequest

func NewListMyAccountLinksRequest(server string) (*http.Request, error)

NewListMyAccountLinksRequest constructs an http.Request for the ListMyAccountLinks method

func NewListMyGatewayContactsRequest

func NewListMyGatewayContactsRequest(server string) (*http.Request, error)

NewListMyGatewayContactsRequest constructs an http.Request for the ListMyGatewayContacts method

func NewListMySessionsRequest

func NewListMySessionsRequest(server string) (*http.Request, error)

NewListMySessionsRequest constructs an http.Request for the ListMySessions method

func NewListPersonalAccessTokensRequest

func NewListPersonalAccessTokensRequest(server string) (*http.Request, error)

NewListPersonalAccessTokensRequest constructs an http.Request for the ListPersonalAccessTokens method

func NewListRelatedAlertGroupsRequest

func NewListRelatedAlertGroupsRequest(server string, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams) (*http.Request, error)

NewListRelatedAlertGroupsRequest constructs an http.Request for the ListRelatedAlertGroups method

func NewListRequestLogRequest

func NewListRequestLogRequest(server string, params *ListRequestLogParams) (*http.Request, error)

NewListRequestLogRequest constructs an http.Request for the ListRequestLog method

func NewListRolesRequest

func NewListRolesRequest(server string) (*http.Request, error)

NewListRolesRequest constructs an http.Request for the ListRoles method

func NewListRouteLabelSuggestionsRequest

func NewListRouteLabelSuggestionsRequest(server string, routeId RouteId) (*http.Request, error)

NewListRouteLabelSuggestionsRequest constructs an http.Request for the ListRouteLabelSuggestions method

func NewListRouteProfilesRequest

func NewListRouteProfilesRequest(server string) (*http.Request, error)

NewListRouteProfilesRequest constructs an http.Request for the ListRouteProfiles method

func NewListRouteSuggestionsRequest

func NewListRouteSuggestionsRequest(server string) (*http.Request, error)

NewListRouteSuggestionsRequest constructs an http.Request for the ListRouteSuggestions method

func NewListRoutesRequest

func NewListRoutesRequest(server string, params *ListRoutesParams) (*http.Request, error)

NewListRoutesRequest constructs an http.Request for the ListRoutes method

func NewListScheduleOverridesRequest

func NewListScheduleOverridesRequest(server string, scheduleId ScheduleId, params *ListScheduleOverridesParams) (*http.Request, error)

NewListScheduleOverridesRequest constructs an http.Request for the ListScheduleOverrides method

func NewListSchedulesRequest

func NewListSchedulesRequest(server string, params *ListSchedulesParams) (*http.Request, error)

NewListSchedulesRequest constructs an http.Request for the ListSchedules method

func NewListServiceAccountTokensRequest

func NewListServiceAccountTokensRequest(server string, serviceAccountId ServiceAccountId) (*http.Request, error)

NewListServiceAccountTokensRequest constructs an http.Request for the ListServiceAccountTokens method

func NewListServiceAccountsRequest

func NewListServiceAccountsRequest(server string, params *ListServiceAccountsParams) (*http.Request, error)

NewListServiceAccountsRequest constructs an http.Request for the ListServiceAccounts method

func NewListSeverityValuesRequest

func NewListSeverityValuesRequest(server string) (*http.Request, error)

NewListSeverityValuesRequest constructs an http.Request for the ListSeverityValues method

func NewListSnoozePresetsRequest

func NewListSnoozePresetsRequest(server string, params *ListSnoozePresetsParams) (*http.Request, error)

NewListSnoozePresetsRequest constructs an http.Request for the ListSnoozePresets method

func NewListStoredSnapshotsRequest

func NewListStoredSnapshotsRequest(server string, params *ListStoredSnapshotsParams) (*http.Request, error)

NewListStoredSnapshotsRequest constructs an http.Request for the ListStoredSnapshots method

func NewListSystemNoticesRequest

func NewListSystemNoticesRequest(server string) (*http.Request, error)

NewListSystemNoticesRequest constructs an http.Request for the ListSystemNotices method

func NewListTeamLabelValuesRequest

func NewListTeamLabelValuesRequest(server string) (*http.Request, error)

NewListTeamLabelValuesRequest constructs an http.Request for the ListTeamLabelValues method

func NewListTeamUsersRequest

func NewListTeamUsersRequest(server string, teamId TeamId) (*http.Request, error)

NewListTeamUsersRequest constructs an http.Request for the ListTeamUsers method

func NewListTeamsRequest

func NewListTeamsRequest(server string, params *ListTeamsParams) (*http.Request, error)

NewListTeamsRequest constructs an http.Request for the ListTeams method

func NewListUserAccountLinksRequest

func NewListUserAccountLinksRequest(server string, userId UserId) (*http.Request, error)

NewListUserAccountLinksRequest constructs an http.Request for the ListUserAccountLinks method

func NewListUserDirectoryRequest

func NewListUserDirectoryRequest(server string, params *ListUserDirectoryParams) (*http.Request, error)

NewListUserDirectoryRequest constructs an http.Request for the ListUserDirectory method

func NewListUserGatewayContactsRequest

func NewListUserGatewayContactsRequest(server string, userId UserId) (*http.Request, error)

NewListUserGatewayContactsRequest constructs an http.Request for the ListUserGatewayContacts method

func NewListUsersRequest

func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)

NewListUsersRequest constructs an http.Request for the ListUsers method

func NewMattermostActionRequest

func NewMattermostActionRequest(server string, connectionId ConnectionId, body MattermostActionJSONRequestBody) (*http.Request, error)

NewMattermostActionRequest calls the generic MattermostAction builder with application/json body

func NewMattermostActionRequestWithBody

func NewMattermostActionRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)

NewMattermostActionRequestWithBody constructs an http.Request for the MattermostAction method, with any body, and a specified content type

func NewMoveOpenAlertGroupsRequest

func NewMoveOpenAlertGroupsRequest(server string, routeId RouteId) (*http.Request, error)

NewMoveOpenAlertGroupsRequest constructs an http.Request for the MoveOpenAlertGroups method

func NewPreviewDestinationRequest

func NewPreviewDestinationRequest(server string, destinationId DestinationId, body PreviewDestinationJSONRequestBody) (*http.Request, error)

NewPreviewDestinationRequest calls the generic PreviewDestination builder with application/json body

func NewPreviewDestinationRequestWithBody

func NewPreviewDestinationRequestWithBody(server string, destinationId DestinationId, contentType string, body io.Reader) (*http.Request, error)

NewPreviewDestinationRequestWithBody constructs an http.Request for the PreviewDestination method, with any body, and a specified content type

func NewPreviewGroupKeyRequest

func NewPreviewGroupKeyRequest(server string, body PreviewGroupKeyJSONRequestBody) (*http.Request, error)

NewPreviewGroupKeyRequest calls the generic PreviewGroupKey builder with application/json body

func NewPreviewGroupKeyRequestWithBody

func NewPreviewGroupKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPreviewGroupKeyRequestWithBody constructs an http.Request for the PreviewGroupKey method, with any body, and a specified content type

func NewPreviewTemplateRequest

func NewPreviewTemplateRequest(server string, body PreviewTemplateJSONRequestBody) (*http.Request, error)

NewPreviewTemplateRequest calls the generic PreviewTemplate builder with application/json body

func NewPreviewTemplateRequestWithBody

func NewPreviewTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPreviewTemplateRequestWithBody constructs an http.Request for the PreviewTemplate method, with any body, and a specified content type

func NewRegenerateTotpRecoveryCodesRequest

func NewRegenerateTotpRecoveryCodesRequest(server string, body RegenerateTotpRecoveryCodesJSONRequestBody) (*http.Request, error)

NewRegenerateTotpRecoveryCodesRequest calls the generic RegenerateTotpRecoveryCodes builder with application/json body

func NewRegenerateTotpRecoveryCodesRequestWithBody

func NewRegenerateTotpRecoveryCodesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRegenerateTotpRecoveryCodesRequestWithBody constructs an http.Request for the RegenerateTotpRecoveryCodes method, with any body, and a specified content type

func NewRemoveTeamUserRequest

func NewRemoveTeamUserRequest(server string, teamId TeamId, userId UserId) (*http.Request, error)

NewRemoveTeamUserRequest constructs an http.Request for the RemoveTeamUser method

func NewRemoveTotpRequest

func NewRemoveTotpRequest(server string, body RemoveTotpJSONRequestBody) (*http.Request, error)

NewRemoveTotpRequest calls the generic RemoveTotp builder with application/json body

func NewRemoveTotpRequestWithBody

func NewRemoveTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRemoveTotpRequestWithBody constructs an http.Request for the RemoveTotp method, with any body, and a specified content type

func NewReorderRoutesRequest

func NewReorderRoutesRequest(server string, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody) (*http.Request, error)

NewReorderRoutesRequest calls the generic ReorderRoutes builder with application/json body

func NewReorderRoutesRequestWithBody

func NewReorderRoutesRequestWithBody(server string, params *ReorderRoutesParams, contentType string, body io.Reader) (*http.Request, error)

NewReorderRoutesRequestWithBody constructs an http.Request for the ReorderRoutes method, with any body, and a specified content type

func NewResetMyNotificationRulesRequest

func NewResetMyNotificationRulesRequest(server string) (*http.Request, error)

NewResetMyNotificationRulesRequest constructs an http.Request for the ResetMyNotificationRules method

func NewResetUserTotpRequest

func NewResetUserTotpRequest(server string, userId UserId) (*http.Request, error)

NewResetUserTotpRequest constructs an http.Request for the ResetUserTotp method

func NewResolveAlertGroupRequest

func NewResolveAlertGroupRequest(server string, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody) (*http.Request, error)

NewResolveAlertGroupRequest calls the generic ResolveAlertGroup builder with application/json body

func NewResolveAlertGroupRequestWithBody

func NewResolveAlertGroupRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)

NewResolveAlertGroupRequestWithBody constructs an http.Request for the ResolveAlertGroup method, with any body, and a specified content type

func NewRetirePreviousSigningSecretRequest

func NewRetirePreviousSigningSecretRequest(server string, destinationId DestinationId) (*http.Request, error)

NewRetirePreviousSigningSecretRequest constructs an http.Request for the RetirePreviousSigningSecret method

func NewRevokeIntegrationTokenRequest

func NewRevokeIntegrationTokenRequest(server string, integrationId IntegrationId, integrationTokenId IntegrationTokenId) (*http.Request, error)

NewRevokeIntegrationTokenRequest constructs an http.Request for the RevokeIntegrationToken method

func NewRevokeMyIcalFeedRequest

func NewRevokeMyIcalFeedRequest(server string) (*http.Request, error)

NewRevokeMyIcalFeedRequest constructs an http.Request for the RevokeMyIcalFeed method

func NewRevokePersonalAccessTokenRequest

func NewRevokePersonalAccessTokenRequest(server string, tokenId TokenId) (*http.Request, error)

NewRevokePersonalAccessTokenRequest constructs an http.Request for the RevokePersonalAccessToken method

func NewRevokeServiceAccountTokenRequest

func NewRevokeServiceAccountTokenRequest(server string, serviceAccountId ServiceAccountId, tokenId TokenId) (*http.Request, error)

NewRevokeServiceAccountTokenRequest constructs an http.Request for the RevokeServiceAccountToken method

func NewRevokeUserIcalFeedRequest

func NewRevokeUserIcalFeedRequest(server string, userId UserId) (*http.Request, error)

NewRevokeUserIcalFeedRequest constructs an http.Request for the RevokeUserIcalFeed method

func NewRunBulkCommandRequest

func NewRunBulkCommandRequest(server string, body RunBulkCommandJSONRequestBody) (*http.Request, error)

NewRunBulkCommandRequest calls the generic RunBulkCommand builder with application/json body

func NewRunBulkCommandRequestWithBody

func NewRunBulkCommandRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRunBulkCommandRequestWithBody constructs an http.Request for the RunBulkCommand method, with any body, and a specified content type

func NewSendMyGatewayContactCodeRequest

func NewSendMyGatewayContactCodeRequest(server string, gatewayContactId GatewayContactId) (*http.Request, error)

NewSendMyGatewayContactCodeRequest constructs an http.Request for the SendMyGatewayContactCode method

func NewSetDestinationSecretRequest

func NewSetDestinationSecretRequest(server string, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody) (*http.Request, error)

NewSetDestinationSecretRequest calls the generic SetDestinationSecret builder with application/json body

func NewSetDestinationSecretRequestWithBody

func NewSetDestinationSecretRequestWithBody(server string, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader) (*http.Request, error)

NewSetDestinationSecretRequestWithBody constructs an http.Request for the SetDestinationSecret method, with any body, and a specified content type

func NewSlackInteractionRequestWithBody

func NewSlackInteractionRequestWithBody(server string, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader) (*http.Request, error)

NewSlackInteractionRequestWithBody constructs an http.Request for the SlackInteraction method, with any body, and a specified content type

func NewSlackInteractionRequestWithFormdataBody

func NewSlackInteractionRequestWithFormdataBody(server string, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody) (*http.Request, error)

NewSlackInteractionRequestWithFormdataBody calls the generic SlackInteraction builder with application/x-www-form-urlencoded body

func NewSnoozeAlertGroupRequest

func NewSnoozeAlertGroupRequest(server string, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody) (*http.Request, error)

NewSnoozeAlertGroupRequest calls the generic SnoozeAlertGroup builder with application/json body

func NewSnoozeAlertGroupRequestWithBody

func NewSnoozeAlertGroupRequestWithBody(server string, alertGroupId AlertGroupId, contentType string, body io.Reader) (*http.Request, error)

NewSnoozeAlertGroupRequestWithBody constructs an http.Request for the SnoozeAlertGroup method, with any body, and a specified content type

func NewStartBridgeCodeLinkRequest

func NewStartBridgeCodeLinkRequest(server string, body StartBridgeCodeLinkJSONRequestBody) (*http.Request, error)

NewStartBridgeCodeLinkRequest calls the generic StartBridgeCodeLink builder with application/json body

func NewStartBridgeCodeLinkRequestWithBody

func NewStartBridgeCodeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStartBridgeCodeLinkRequestWithBody constructs an http.Request for the StartBridgeCodeLink method, with any body, and a specified content type

func NewStartBridgeLinkRequest

func NewStartBridgeLinkRequest(server string, body StartBridgeLinkJSONRequestBody) (*http.Request, error)

NewStartBridgeLinkRequest calls the generic StartBridgeLink builder with application/json body

func NewStartBridgeLinkRequestWithBody

func NewStartBridgeLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStartBridgeLinkRequestWithBody constructs an http.Request for the StartBridgeLink method, with any body, and a specified content type

func NewStartMattermostLinkRequest

func NewStartMattermostLinkRequest(server string, body StartMattermostLinkJSONRequestBody) (*http.Request, error)

NewStartMattermostLinkRequest calls the generic StartMattermostLink builder with application/json body

func NewStartMattermostLinkRequestWithBody

func NewStartMattermostLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStartMattermostLinkRequestWithBody constructs an http.Request for the StartMattermostLink method, with any body, and a specified content type

func NewStartOidcLinkRequest

func NewStartOidcLinkRequest(server string) (*http.Request, error)

NewStartOidcLinkRequest constructs an http.Request for the StartOidcLink method

func NewStartOidcSignInRequest

func NewStartOidcSignInRequest(server string, params *StartOidcSignInParams) (*http.Request, error)

NewStartOidcSignInRequest constructs an http.Request for the StartOidcSignIn method

func NewStartSlackLinkRequest

func NewStartSlackLinkRequest(server string, body StartSlackLinkJSONRequestBody) (*http.Request, error)

NewStartSlackLinkRequest calls the generic StartSlackLink builder with application/json body

func NewStartSlackLinkRequestWithBody

func NewStartSlackLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStartSlackLinkRequestWithBody constructs an http.Request for the StartSlackLink method, with any body, and a specified content type

func NewStartTelegramLinkRequest

func NewStartTelegramLinkRequest(server string, body StartTelegramLinkJSONRequestBody) (*http.Request, error)

NewStartTelegramLinkRequest calls the generic StartTelegramLink builder with application/json body

func NewStartTelegramLinkRequestWithBody

func NewStartTelegramLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStartTelegramLinkRequestWithBody constructs an http.Request for the StartTelegramLink method, with any body, and a specified content type

func NewStreamLiveUpdatesRequest

func NewStreamLiveUpdatesRequest(server string) (*http.Request, error)

NewStreamLiveUpdatesRequest constructs an http.Request for the StreamLiveUpdates method

func NewSubmitSessionTotpRequest

func NewSubmitSessionTotpRequest(server string, body SubmitSessionTotpJSONRequestBody) (*http.Request, error)

NewSubmitSessionTotpRequest calls the generic SubmitSessionTotp builder with application/json body

func NewSubmitSessionTotpRequestWithBody

func NewSubmitSessionTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSubmitSessionTotpRequestWithBody constructs an http.Request for the SubmitSessionTotp method, with any body, and a specified content type

func NewTelegramWebhookRequest

func NewTelegramWebhookRequest(server string, connectionId ConnectionId, body TelegramWebhookJSONRequestBody) (*http.Request, error)

NewTelegramWebhookRequest calls the generic TelegramWebhook builder with application/json body

func NewTelegramWebhookRequestWithBody

func NewTelegramWebhookRequestWithBody(server string, connectionId ConnectionId, contentType string, body io.Reader) (*http.Request, error)

NewTelegramWebhookRequestWithBody constructs an http.Request for the TelegramWebhook method, with any body, and a specified content type

func NewTestDestinationRequest

func NewTestDestinationRequest(server string, destinationId DestinationId, body TestDestinationJSONRequestBody) (*http.Request, error)

NewTestDestinationRequest calls the generic TestDestination builder with application/json body

func NewTestDestinationRequestWithBody

func NewTestDestinationRequestWithBody(server string, destinationId DestinationId, contentType string, body io.Reader) (*http.Request, error)

NewTestDestinationRequestWithBody constructs an http.Request for the TestDestination method, with any body, and a specified content type

func NewUnacknowledgeAlertGroupRequest

func NewUnacknowledgeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)

NewUnacknowledgeAlertGroupRequest constructs an http.Request for the UnacknowledgeAlertGroup method

func NewUnresolveAlertGroupRequest

func NewUnresolveAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)

NewUnresolveAlertGroupRequest constructs an http.Request for the UnresolveAlertGroup method

func NewUnsnoozeAlertGroupRequest

func NewUnsnoozeAlertGroupRequest(server string, alertGroupId AlertGroupId) (*http.Request, error)

NewUnsnoozeAlertGroupRequest constructs an http.Request for the UnsnoozeAlertGroup method

func NewUpdateConnectionRequest

func NewUpdateConnectionRequest(server string, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody) (*http.Request, error)

NewUpdateConnectionRequest calls the generic UpdateConnection builder with application/json body

func NewUpdateConnectionRequestWithBody

func NewUpdateConnectionRequestWithBody(server string, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateConnectionRequestWithBody constructs an http.Request for the UpdateConnection method, with any body, and a specified content type

func NewUpdateDestinationRequest

func NewUpdateDestinationRequest(server string, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody) (*http.Request, error)

NewUpdateDestinationRequest calls the generic UpdateDestination builder with application/json body

func NewUpdateDestinationRequestWithBody

func NewUpdateDestinationRequestWithBody(server string, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateDestinationRequestWithBody constructs an http.Request for the UpdateDestination method, with any body, and a specified content type

func NewUpdateEscalationChainRequest

func NewUpdateEscalationChainRequest(server string, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, body UpdateEscalationChainJSONRequestBody) (*http.Request, error)

NewUpdateEscalationChainRequest calls the generic UpdateEscalationChain builder with application/json body

func NewUpdateEscalationChainRequestWithBody

func NewUpdateEscalationChainRequestWithBody(server string, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateEscalationChainRequestWithBody constructs an http.Request for the UpdateEscalationChain method, with any body, and a specified content type

func NewUpdateIntegrationRequest

func NewUpdateIntegrationRequest(server string, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody) (*http.Request, error)

NewUpdateIntegrationRequest calls the generic UpdateIntegration builder with application/json body

func NewUpdateIntegrationRequestWithBody

func NewUpdateIntegrationRequestWithBody(server string, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateIntegrationRequestWithBody constructs an http.Request for the UpdateIntegration method, with any body, and a specified content type

func NewUpdateLinkRuleRequest

func NewUpdateLinkRuleRequest(server string, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody) (*http.Request, error)

NewUpdateLinkRuleRequest calls the generic UpdateLinkRule builder with application/json body

func NewUpdateLinkRuleRequestWithBody

func NewUpdateLinkRuleRequestWithBody(server string, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateLinkRuleRequestWithBody constructs an http.Request for the UpdateLinkRule method, with any body, and a specified content type

func NewUpdateLookupTableRequest

func NewUpdateLookupTableRequest(server string, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody) (*http.Request, error)

NewUpdateLookupTableRequest calls the generic UpdateLookupTable builder with application/json body

func NewUpdateLookupTableRequestWithBody

func NewUpdateLookupTableRequestWithBody(server string, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateLookupTableRequestWithBody constructs an http.Request for the UpdateLookupTable method, with any body, and a specified content type

func NewUpdateMeRequest

func NewUpdateMeRequest(server string, body UpdateMeJSONRequestBody) (*http.Request, error)

NewUpdateMeRequest calls the generic UpdateMe builder with application/json body

func NewUpdateMeRequestWithBody

func NewUpdateMeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMeRequestWithBody constructs an http.Request for the UpdateMe method, with any body, and a specified content type

func NewUpdateMyNotificationRulesRequest

func NewUpdateMyNotificationRulesRequest(server string, params *UpdateMyNotificationRulesParams, body UpdateMyNotificationRulesJSONRequestBody) (*http.Request, error)

NewUpdateMyNotificationRulesRequest calls the generic UpdateMyNotificationRules builder with application/json body

func NewUpdateMyNotificationRulesRequestWithBody

func NewUpdateMyNotificationRulesRequestWithBody(server string, params *UpdateMyNotificationRulesParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMyNotificationRulesRequestWithBody constructs an http.Request for the UpdateMyNotificationRules method, with any body, and a specified content type

func NewUpdateOidcSettingsRequest

func NewUpdateOidcSettingsRequest(server string, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody) (*http.Request, error)

NewUpdateOidcSettingsRequest calls the generic UpdateOidcSettings builder with application/json body

func NewUpdateOidcSettingsRequestWithBody

func NewUpdateOidcSettingsRequestWithBody(server string, params *UpdateOidcSettingsParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOidcSettingsRequestWithBody constructs an http.Request for the UpdateOidcSettings method, with any body, and a specified content type

func NewUpdateOrganizationRequest

func NewUpdateOrganizationRequest(server string, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody) (*http.Request, error)

NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body

func NewUpdateOrganizationRequestWithBody

func NewUpdateOrganizationRequestWithBody(server string, params *UpdateOrganizationParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOrganizationRequestWithBody constructs an http.Request for the UpdateOrganization method, with any body, and a specified content type

func NewUpdateOutboundPolicyRequest

func NewUpdateOutboundPolicyRequest(server string, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody) (*http.Request, error)

NewUpdateOutboundPolicyRequest calls the generic UpdateOutboundPolicy builder with application/json body

func NewUpdateOutboundPolicyRequestWithBody

func NewUpdateOutboundPolicyRequestWithBody(server string, params *UpdateOutboundPolicyParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOutboundPolicyRequestWithBody constructs an http.Request for the UpdateOutboundPolicy method, with any body, and a specified content type

func NewUpdateRouteRequest

func NewUpdateRouteRequest(server string, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody) (*http.Request, error)

NewUpdateRouteRequest calls the generic UpdateRoute builder with application/json body

func NewUpdateRouteRequestWithBody

func NewUpdateRouteRequestWithBody(server string, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRouteRequestWithBody constructs an http.Request for the UpdateRoute method, with any body, and a specified content type

func NewUpdateScheduleOverrideRequest

func NewUpdateScheduleOverrideRequest(server string, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, body UpdateScheduleOverrideJSONRequestBody) (*http.Request, error)

NewUpdateScheduleOverrideRequest calls the generic UpdateScheduleOverride builder with application/json body

func NewUpdateScheduleOverrideRequestWithBody

func NewUpdateScheduleOverrideRequestWithBody(server string, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateScheduleOverrideRequestWithBody constructs an http.Request for the UpdateScheduleOverride method, with any body, and a specified content type

func NewUpdateScheduleRequest

func NewUpdateScheduleRequest(server string, scheduleId ScheduleId, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody) (*http.Request, error)

NewUpdateScheduleRequest calls the generic UpdateSchedule builder with application/json body

func NewUpdateScheduleRequestWithBody

func NewUpdateScheduleRequestWithBody(server string, scheduleId ScheduleId, params *UpdateScheduleParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateScheduleRequestWithBody constructs an http.Request for the UpdateSchedule method, with any body, and a specified content type

func NewUpdateServiceAccountRequest

func NewUpdateServiceAccountRequest(server string, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody) (*http.Request, error)

NewUpdateServiceAccountRequest calls the generic UpdateServiceAccount builder with application/json body

func NewUpdateServiceAccountRequestWithBody

func NewUpdateServiceAccountRequestWithBody(server string, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateServiceAccountRequestWithBody constructs an http.Request for the UpdateServiceAccount method, with any body, and a specified content type

func NewUpdateTeamRequest

func NewUpdateTeamRequest(server string, teamId TeamId, params *UpdateTeamParams, body UpdateTeamJSONRequestBody) (*http.Request, error)

NewUpdateTeamRequest calls the generic UpdateTeam builder with application/json body

func NewUpdateTeamRequestWithBody

func NewUpdateTeamRequestWithBody(server string, teamId TeamId, params *UpdateTeamParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTeamRequestWithBody constructs an http.Request for the UpdateTeam method, with any body, and a specified content type

func NewUpdateUserNotificationRulesRequest

func NewUpdateUserNotificationRulesRequest(server string, userId UserId, params *UpdateUserNotificationRulesParams, body UpdateUserNotificationRulesJSONRequestBody) (*http.Request, error)

NewUpdateUserNotificationRulesRequest calls the generic UpdateUserNotificationRules builder with application/json body

func NewUpdateUserNotificationRulesRequestWithBody

func NewUpdateUserNotificationRulesRequestWithBody(server string, userId UserId, params *UpdateUserNotificationRulesParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserNotificationRulesRequestWithBody constructs an http.Request for the UpdateUserNotificationRules method, with any body, and a specified content type

func NewUpdateUserRequest

func NewUpdateUserRequest(server string, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody) (*http.Request, error)

NewUpdateUserRequest calls the generic UpdateUser builder with application/json body

func NewUpdateUserRequestWithBody

func NewUpdateUserRequestWithBody(server string, userId UserId, params *UpdateUserParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserRequestWithBody constructs an http.Request for the UpdateUser method, with any body, and a specified content type

Types

type AcceptRouteSuggestionJSONRequestBody

type AcceptRouteSuggestionJSONRequestBody = RouteSuggestionAcceptance

AcceptRouteSuggestionJSONRequestBody defines body for AcceptRouteSuggestion for application/json ContentType.

type AcceptRouteSuggestionResponse

type AcceptRouteSuggestionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Route
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *AcceptRouteSuggestionResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *AcceptRouteSuggestionResponse429Headers
}

func ParseAcceptRouteSuggestionResponse

func ParseAcceptRouteSuggestionResponse(rsp *http.Response) (*AcceptRouteSuggestionResponse, error)

ParseAcceptRouteSuggestionResponse parses an HTTP response from a AcceptRouteSuggestionWithResponse call

func (AcceptRouteSuggestionResponse) ContentType

func (r AcceptRouteSuggestionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON400

func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON401

func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON403

func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON404

func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON409

func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON422

func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (AcceptRouteSuggestionResponse) GetApplicationproblemJSON429

func (r AcceptRouteSuggestionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (AcceptRouteSuggestionResponse) GetBody

func (r AcceptRouteSuggestionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AcceptRouteSuggestionResponse) GetJSON201

func (r AcceptRouteSuggestionResponse) GetJSON201() *Route

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (AcceptRouteSuggestionResponse) Status

Status returns HTTPResponse.Status

func (AcceptRouteSuggestionResponse) StatusCode

func (r AcceptRouteSuggestionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AcceptRouteSuggestionResponse201Headers

type AcceptRouteSuggestionResponse201Headers struct {
	ETag     *string
	Location *string
}

AcceptRouteSuggestionResponse201Headers the declared response headers of an HTTP 201 response for AcceptRouteSuggestion

type AcceptRouteSuggestionResponse429Headers

type AcceptRouteSuggestionResponse429Headers struct {
	RetryAfter *int
}

AcceptRouteSuggestionResponse429Headers the declared response headers of an HTTP 429 response for AcceptRouteSuggestion

type AccountLink struct {
	// Connection The Connection the link was made through; Mattermost, Bridge and Slack links belong to it.
	Connection *EntityRef `json:"connection,omitempty"`
	CreatedAt  time.Time  `json:"created_at"`

	// DisplayName Set on Bridge and Slack links; the account's name as the bridge reported it, which a Bridge's Mentions and footers show, or a Slack account's `profile.display_name`, else `profile.real_name`, which names the account where Muster shows the link (Slack Mentions and footers write `<@external_id>`).
	DisplayName *string `json:"display_name,omitempty"`
	ExternalId  string  `json:"external_id"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id         PublicId                     `json:"id"`
	LastUsedAt nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
	Messenger  Messenger                    `json:"messenger"`

	// Username The account's username; for a Bridge link, the handle the bridge reported; for a Slack link, the account's `name`.
	Username nullable.Nullable[string] `json:"username,omitempty"`
}

AccountLink defines model for AccountLink.

type AccountLinkId

type AccountLinkId = PublicId

AccountLinkId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type AccountLinkList struct {
	Items []AccountLink `json:"items"`
}

AccountLinkList defines model for AccountLinkList.

type AckTimeoutPolicy

type AckTimeoutPolicy struct {
	Enabled bool `json:"enabled"`

	// FirstIntervalSeconds Notices come at F, 3F and 7F after the start (intervals double, at most three).
	FirstIntervalSeconds int `json:"first_interval_seconds"`
}

AckTimeoutPolicy defines model for AckTimeoutPolicy.

type AcknowledgeAlertGroupResponse

type AcknowledgeAlertGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommandResult
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *AcknowledgeAlertGroupResponse429Headers
}

func ParseAcknowledgeAlertGroupResponse

func ParseAcknowledgeAlertGroupResponse(rsp *http.Response) (*AcknowledgeAlertGroupResponse, error)

ParseAcknowledgeAlertGroupResponse parses an HTTP response from a AcknowledgeAlertGroupWithResponse call

func (AcknowledgeAlertGroupResponse) ContentType

func (r AcknowledgeAlertGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON401

func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON403

func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON404

func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON409

func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (AcknowledgeAlertGroupResponse) GetApplicationproblemJSON429

func (r AcknowledgeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (AcknowledgeAlertGroupResponse) GetBody

func (r AcknowledgeAlertGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AcknowledgeAlertGroupResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AcknowledgeAlertGroupResponse) Status

Status returns HTTPResponse.Status

func (AcknowledgeAlertGroupResponse) StatusCode

func (r AcknowledgeAlertGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AcknowledgeAlertGroupResponse429Headers

type AcknowledgeAlertGroupResponse429Headers struct {
	RetryAfter *int
}

AcknowledgeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for AcknowledgeAlertGroup

type ActiveStorm

type ActiveStorm struct {
	AlertGroupCount int       `json:"alert_group_count"`
	Route           EntityRef `json:"route"`
	Since           time.Time `json:"since"`
}

ActiveStorm defines model for ActiveStorm.

type ActorKind

type ActorKind string

ActorKind defines model for ActorKind.

const (
	ActorKindServiceAccount ActorKind = "service_account"
	ActorKindSystem         ActorKind = "system"
	ActorKindUser           ActorKind = "user"
)

Defines values for ActorKind.

func (ActorKind) Valid

func (e ActorKind) Valid() bool

Valid indicates whether the value is a known member of the ActorKind enum.

type ActorRef

type ActorRef struct {
	// Deactivated The user or Service account was deleted; the UI shows "(deactivated)".
	Deactivated bool `json:"deactivated"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId     `json:"id"`
	Kind ActorRefKind `json:"kind"`

	// Login Users only.
	Login *string `json:"login,omitempty"`
	Name  string  `json:"name"`
}

ActorRef Who resolved an Alert Group or wrote a Note, or is a row of the statistics by people: a User or a Service account. An Owner is always a User (`UserRef`), because a Service account cannot become an Owner; a Service account is a row of the statistics by people only through what it resolved.

type ActorRefKind

type ActorRefKind string

ActorRefKind defines model for ActorRef.Kind.

const (
	ActorRefKindServiceAccount ActorRefKind = "service_account"
	ActorRefKindUser           ActorRefKind = "user"
)

Defines values for ActorRefKind.

func (ActorRefKind) Valid

func (e ActorRefKind) Valid() bool

Valid indicates whether the value is a known member of the ActorRefKind enum.

type AddTeamUserJSONRequestBody

type AddTeamUserJSONRequestBody = TeamUserAdd

AddTeamUserJSONRequestBody defines body for AddTeamUser for application/json ContentType.

type AddTeamUserResponse

type AddTeamUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TeamUser
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *TeamUser
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *AddTeamUserResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *AddTeamUserResponse429Headers
}

func ParseAddTeamUserResponse

func ParseAddTeamUserResponse(rsp *http.Response) (*AddTeamUserResponse, error)

ParseAddTeamUserResponse parses an HTTP response from a AddTeamUserWithResponse call

func (AddTeamUserResponse) ContentType

func (r AddTeamUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AddTeamUserResponse) GetApplicationproblemJSON400

func (r AddTeamUserResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (AddTeamUserResponse) GetApplicationproblemJSON401

func (r AddTeamUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (AddTeamUserResponse) GetApplicationproblemJSON403

func (r AddTeamUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (AddTeamUserResponse) GetApplicationproblemJSON404

func (r AddTeamUserResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (AddTeamUserResponse) GetApplicationproblemJSON422

func (r AddTeamUserResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (AddTeamUserResponse) GetApplicationproblemJSON429

func (r AddTeamUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (AddTeamUserResponse) GetBody

func (r AddTeamUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AddTeamUserResponse) GetJSON200

func (r AddTeamUserResponse) GetJSON200() *TeamUser

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AddTeamUserResponse) GetJSON201

func (r AddTeamUserResponse) GetJSON201() *TeamUser

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (AddTeamUserResponse) Status

func (r AddTeamUserResponse) Status() string

Status returns HTTPResponse.Status

func (AddTeamUserResponse) StatusCode

func (r AddTeamUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddTeamUserResponse201Headers

type AddTeamUserResponse201Headers struct {
	Location *string
}

AddTeamUserResponse201Headers the declared response headers of an HTTP 201 response for AddTeamUser

type AddTeamUserResponse429Headers

type AddTeamUserResponse429Headers struct {
	RetryAfter *int
}

AddTeamUserResponse429Headers the declared response headers of an HTTP 429 response for AddTeamUser

type AgAssignee

type AgAssignee = string

AgAssignee defines model for AgAssignee.

type AgDeliveryProblem

type AgDeliveryProblem = bool

AgDeliveryProblem defines model for AgDeliveryProblem.

type AgFirstAcknowledgedBy

type AgFirstAcknowledgedBy = string

AgFirstAcknowledgedBy defines model for AgFirstAcknowledgedBy.

type AgIntegration

type AgIntegration = []string

AgIntegration defines model for AgIntegration.

type AgLabelColumns

type AgLabelColumns = []string

AgLabelColumns defines model for AgLabelColumns.

type AgNumber

type AgNumber = int

AgNumber defines model for AgNumber.

type AgOwner

type AgOwner = string

AgOwner defines model for AgOwner.

type AgQuery

type AgQuery = string

AgQuery defines model for AgQuery.

type AgReopened

type AgReopened = bool

AgReopened defines model for AgReopened.

type AgResolveReason

type AgResolveReason = ResolveReason

AgResolveReason Why an Alert resolved.

type AgResolvedBy

type AgResolvedBy = ResolverKind

AgResolvedBy Who resolved an Alert Group: a person or the system.

type AgRoute

type AgRoute = []string

AgRoute defines model for AgRoute.

type AgSeverity

type AgSeverity = []SeverityLevel

AgSeverity defines model for AgSeverity.

type AgSnoozedNoEnd

type AgSnoozedNoEnd = bool

AgSnoozedNoEnd defines model for AgSnoozedNoEnd.

type AgSort

type AgSort string

AgSort defines model for AgSort.

const (
	AgSortLastChangedAt      AgSort = "last_changed_at"
	AgSortMinusLastChangedAt AgSort = "-last_changed_at"
	AgSortMinusStartedAt     AgSort = "-started_at"
	AgSortStartedAt          AgSort = "started_at"
)

Defines values for AgSort.

func (AgSort) Valid

func (e AgSort) Valid() bool

Valid indicates whether the value is a known member of the AgSort enum.

type AgStatus

type AgStatus = []AlertGroupStatus

AgStatus defines model for AgStatus.

type AgTeam

type AgTeam = string

AgTeam defines model for AgTeam.

type AgUnclaimed

type AgUnclaimed = bool

AgUnclaimed defines model for AgUnclaimed.

type AgUrgent

type AgUrgent = bool

AgUrgent defines model for AgUrgent.

type AlertGroup

type AlertGroup struct {
	// AllowedCommands Commands the current status allows for the caller's Permissions and identity; Acknowledge on another user's Alert Group is a Takeover. A Service account is not offered `acknowledge` or `still_on_it`.
	AllowedCommands []CommandName `json:"allowed_commands"`

	// Assignees The Assignees of the Alert Group (C-32.FR-12): for each chain started on it, running or run out, the people its latest step Paging people by name reached, each with the owning Team of the chain; in the order they became Assignees, by chain. Empty before the chains reach anyone and once acknowledged, snoozed or resolved. Changes arrive as the `alert-group` hint.
	Assignees []Assignee `json:"assignees"`

	// CommonAnnotations Label names and values.
	CommonAnnotations *Labels `json:"common_annotations,omitempty"`

	// CommonLabels Label names and values.
	CommonLabels *Labels `json:"common_labels,omitempty"`

	// DeliveryProblem Any Destination is Not delivered, waiting for a Broken Destination, deleted in the messenger or has a Thread not attached.
	DeliveryProblem bool `json:"delivery_problem"`

	// DetailsRemoved Alerts, Timeline and delivery state were removed by retention; only the summary row and its Notes remain.
	DetailsRemoved *bool `json:"details_removed,omitempty"`

	// EscalationChains The runs of the Escalation chains of the Alert Group since they last started (C-32.FR-18): one per chain, in the order they started, empty before its chains first started or where none applies. A run stays here, `ran_out` or `stopped`, until the chains start over. Changes arrive as the `alert-group` hint.
	EscalationChains []AlertGroupChain `json:"escalation_chains"`
	FiringAlertCount int               `json:"firing_alert_count"`

	// GroupLabels Label names and values.
	GroupLabels *Labels `json:"group_labels,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id           PublicId    `json:"id"`
	Integrations []EntityRef `json:"integrations"`

	// LabelValues Values of the labels requested with `label_columns`, when all Alerts share them.
	LabelValues   *Labels           `json:"label_values,omitempty"`
	LastChangedAt time.Time         `json:"last_changed_at"`
	Links         *[]AlertGroupLink `json:"links,omitempty"`

	// NextNotice The next scheduled ack timeout notice or Reminder.
	NextNotice *NextNotice         `json:"next_notice,omitempty"`
	Notices    *[]AlertGroupNotice `json:"notices,omitempty"`

	// Number The `#N`, assigned per Organization without gaps.
	Number int `json:"number"`

	// Owner Set while acknowledged. Always a User: a Service account cannot become an Owner; a Personal access token acts as its User.
	Owner       *UserRef `json:"owner,omitempty"`
	ReopenCount int      `json:"reopen_count"`

	// Resolution Set when resolved.
	Resolution         *ResolvedBy                  `json:"resolution,omitempty"`
	ResolvedAlertCount int                          `json:"resolved_alert_count"`
	ResolvedAt         nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`
	Route              EntityRef                    `json:"route"`

	// SeverityLevel The highest Severity level of the firing Alerts, raised to the Route's Minimum severity (`minimum_severity`); each Alert keeps its own level.
	SeverityLevel SeverityLevel `json:"severity_level"`

	// SnoozeUntil Null while snoozed means no end.
	SnoozeUntil nullable.Nullable[time.Time] `json:"snooze_until,omitempty"`

	// SnoozedBy Set while snoozed: who set the current Snooze, a User or a Service account ("Snoozed by" in the Root message). Stored on the Alert Group by Snooze, restored with the Snooze by a Reopen into snoozed, and cleared when the Snooze ends.
	SnoozedBy *ActorRef                 `json:"snoozed_by,omitempty"`
	StartedAt time.Time                 `json:"started_at"`
	Status    AlertGroupStatus          `json:"status"`
	Summary   nullable.Nullable[string] `json:"summary,omitempty"`

	// Teams The Teams of the Alert Group (C-25.FR-6), those of every Alert that ever joined it, in the order they joined; they only grow.
	Teams     []AlertGroupTeam `json:"teams"`
	Title     string           `json:"title"`
	Unclaimed bool             `json:"unclaimed"`

	// Urgent True exactly when `severity_level` is `critical`.
	Urgent bool `json:"urgent"`
}

AlertGroup defines model for AlertGroup.

type AlertGroupActorStatistics

type AlertGroupActorStatistics struct {
	From  time.Time                       `json:"from"`
	Items []AlertGroupActorStatisticsItem `json:"items"`
	To    time.Time                       `json:"to"`
}

AlertGroupActorStatistics defines model for AlertGroupActorStatistics.

type AlertGroupActorStatisticsItem

type AlertGroupActorStatisticsItem struct {
	// AcknowledgedFirstCount The Alert Groups whose first acknowledgement the actor made; 0 for a Service account.
	AcknowledgedFirstCount int `json:"acknowledged_first_count"`

	// Actor The User or Service account; null for the item of the Alert Groups whose first acknowledgement names nobody ("Unknown").
	Actor nullable.Nullable[ActorRef] `json:"actor"`

	// ResolvedCount The Alert Groups the actor resolved, by their resolver; 0 for the item with `actor` null.
	ResolvedCount int `json:"resolved_count"`

	// TimeToAcknowledge From the start of each Alert Group to its first acknowledgement, over the Alert Groups the actor acknowledged first; its `count` is `acknowledged_first_count`.
	TimeToAcknowledge DurationStats `json:"time_to_acknowledge"`
}

AlertGroupActorStatisticsItem defines model for AlertGroupActorStatisticsItem.

type AlertGroupAlert

type AlertGroupAlert struct {
	AlertmanagerGroups []string `json:"alertmanager_groups"`

	// Annotations Label names and values.
	Annotations *Labels    `json:"annotations,omitempty"`
	Fingerprint string     `json:"fingerprint"`
	Integration *EntityRef `json:"integration,omitempty"`

	// Labels Label names and values.
	Labels     Labels    `json:"labels"`
	LastSeenAt time.Time `json:"last_seen_at"`

	// ResolveReason Why an Alert resolved; null while it fires.
	ResolveReason     nullable.Nullable[NullableResolveReason] `json:"resolve_reason,omitempty"`
	ResolveReasonText nullable.Nullable[string]                `json:"resolve_reason_text,omitempty"`
	ResolvedAt        nullable.Nullable[time.Time]             `json:"resolved_at,omitempty"`

	// SourceUrl The Alert's `generatorURL`.
	SourceUrl nullable.Nullable[string] `json:"source_url,omitempty"`
	StartsAt  time.Time                 `json:"starts_at"`
	State     AlertState                `json:"state"`

	// Teams The Teams the Alert belongs to, decided when it last started firing (C-25.FR-5).
	Teams []TeamMembership `json:"teams"`
}

AlertGroupAlert defines model for AlertGroupAlert.

type AlertGroupAlertList

type AlertGroupAlertList struct {
	Items      []AlertGroupAlert         `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

AlertGroupAlertList defines model for AlertGroupAlertList.

type AlertGroupChain

type AlertGroupChain struct {
	// Chain The chain, null once it was deleted.
	Chain nullable.Nullable[EscalationChainRef] `json:"chain"`

	// ChainName The name of the chain when the run started.
	ChainName string `json:"chain_name"`

	// NextStepAt When the next step is due, on the business clock; null once it ran out or stopped.
	NextStepAt nullable.Nullable[time.Time] `json:"next_step_at"`

	// RunId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	RunId PublicId `json:"run_id"`

	// Sources What named the chain on the Alert Group, one run however many name it (P-70).
	Sources   []EscalationRunSource `json:"sources"`
	StartedAt time.Time             `json:"started_at"`

	// State The state of a run: `running`, `ran_out` once it passed its last step without an acknowledgement, `stopped` by Acknowledge, Snooze or Resolve.
	State EscalationRunState `json:"state"`

	// Step The step the run is at while it runs — a wait it waits out, or the step due next — and null once it ran out or stopped.
	Step nullable.Nullable[EscalationStepPosition] `json:"step"`
}

AlertGroupChain A run of an Escalation chain on an Alert Group, of the current start of its chains.

type AlertGroupCounts

type AlertGroupCounts struct {
	Acknowledged int `json:"acknowledged"`
	All          int `json:"all"`
	Firing       int `json:"firing"`
	Resolved     int `json:"resolved"`
	Snoozed      int `json:"snoozed"`
}

AlertGroupCounts Alert Groups matching the other filters, per status tab. The default tab Open is the sum of `firing`, `acknowledged` and `snoozed`.

type AlertGroupDelivery

type AlertGroupDelivery struct {
	Destination DestinationRef `json:"destination"`

	// Entries The entries that reached the Destination, the Route's first; empty for a delivery made before 0.2.0 until the Alert Group's next change.
	Entries []DeliveryEntry `json:"entries"`

	// Error Provider error text of Not delivered. Secrets, the Signing secret and tokens are masked. Untrusted: render as plain text.
	Error nullable.Nullable[string] `json:"error,omitempty"`

	// MessageUrl Link to the Root message where the messenger provides one.
	MessageUrl nullable.Nullable[string] `json:"message_url,omitempty"`

	// PastEditWindow The Root message is past its bridge's edit window (C-22.FR-9) while the delivery is pending or delivered. Muster no longer edits it and posts a new Root message on the next change of status. Always false for other Destination types.
	PastEditWindow    bool `json:"past_edit_window"`
	PossibleDuplicate bool `json:"possible_duplicate"`

	// State `waiting_for_broken_destination` — derived, never stored: a `pending` delivery whose Destination is Broken; `withheld` — never posted to this Destination: the Alert Group resolved while a Storm summary stood for it or while the Destination was Broken; `retired` — no longer updated there after its final edit, because the Destination left the Route or was deleted.
	State             DeliveryState `json:"state"`
	ThreadNotAttached bool          `json:"thread_not_attached"`
	UpdatedAt         *time.Time    `json:"updated_at,omitempty"`
}

AlertGroupDelivery defines model for AlertGroupDelivery.

type AlertGroupDeliveryList

type AlertGroupDeliveryList struct {
	Items []AlertGroupDelivery `json:"items"`
}

AlertGroupDeliveryList defines model for AlertGroupDeliveryList.

type AlertGroupId

type AlertGroupId = PublicId

AlertGroupId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type AlertGroupLink struct {
	// Kind `runbook` and `dashboard` come from the `runbook_url` and `dashboard_url` annotations, `source` from the `generatorURL` of a firing Alert, `link_rule` from a Link rule (see `link_rule_id`).
	Kind AlertGroupLinkKind `json:"kind"`

	// LinkRuleId The `public_id` of the Link rule; set only for the kind `link_rule`.
	LinkRuleId *PublicId `json:"link_rule_id,omitempty"`

	// Name The name of a `link_rule` link — the rule's name, followed by `: ` and the label value for the scope `label_value` — or the English name of a built-in link (`Runbook`, `Dashboard`, `Source`).
	Name string `json:"name"`
	Url  string `json:"url"`
}

AlertGroupLink One link of an Alert Group. `kind` says where it comes from, so a client can name the built-in links in its own language and tell them from a Link rule that has the same name.

type AlertGroupLinkKind

type AlertGroupLinkKind string

AlertGroupLinkKind `runbook` and `dashboard` come from the `runbook_url` and `dashboard_url` annotations, `source` from the `generatorURL` of a firing Alert, `link_rule` from a Link rule (see `link_rule_id`).

const (
	AlertGroupLinkKindDashboard AlertGroupLinkKind = "dashboard"
	AlertGroupLinkKindLinkRule  AlertGroupLinkKind = "link_rule"
	AlertGroupLinkKindRunbook   AlertGroupLinkKind = "runbook"
	AlertGroupLinkKindSource    AlertGroupLinkKind = "source"
)

Defines values for AlertGroupLinkKind.

func (AlertGroupLinkKind) Valid

func (e AlertGroupLinkKind) Valid() bool

Valid indicates whether the value is a known member of the AlertGroupLinkKind enum.

type AlertGroupList

type AlertGroupList struct {
	Items      []AlertGroup              `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

AlertGroupList defines model for AlertGroupList.

type AlertGroupNotice

type AlertGroupNotice struct {
	Count nullable.Nullable[int] `json:"count,omitempty"`
	Kind  AlertGroupNoticeKind   `json:"kind"`

	// Label The Instance label that changed, for `replacement`.
	Label nullable.Nullable[string] `json:"label,omitempty"`

	// RelatedAlertGroup For `newer_alert_group_exists`: the open Alert Group of the same Route and Group key values that takes part in grouping, shown as a link in place of Unresolve.
	RelatedAlertGroup *AlertGroupRef `json:"related_alert_group,omitempty"`

	// ResolvedNumber The `#N` of the manually resolved Alert Group, for `firing_again_after_manual_resolve`.
	ResolvedNumber nullable.Nullable[int] `json:"resolved_number,omitempty"`
	RetentionDays  nullable.Nullable[int] `json:"retention_days,omitempty"`
}

AlertGroupNotice A banner for the Alert Group page; the UI owns the wording.

type AlertGroupNoticeKind

type AlertGroupNoticeKind string

AlertGroupNoticeKind defines model for AlertGroupNotice.Kind.

const (
	AlertsStillFiring             AlertGroupNoticeKind = "alerts_still_firing"
	DetailsRemoved                AlertGroupNoticeKind = "details_removed"
	FiringAgainAfterManualResolve AlertGroupNoticeKind = "firing_again_after_manual_resolve"
	NewerAlertGroupExists         AlertGroupNoticeKind = "newer_alert_group_exists"
	Replacement                   AlertGroupNoticeKind = "replacement"
)

Defines values for AlertGroupNoticeKind.

func (AlertGroupNoticeKind) Valid

func (e AlertGroupNoticeKind) Valid() bool

Valid indicates whether the value is a known member of the AlertGroupNoticeKind enum.

type AlertGroupRef

type AlertGroupRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Number The `#N` of the Alert Group.
	Number int `json:"number"`
}

AlertGroupRef defines model for AlertGroupRef.

type AlertGroupStatistics

type AlertGroupStatistics struct {
	From    time.Time                   `json:"from"`
	GroupBy AlertGroupStatisticsGroupBy `json:"group_by"`
	Items   []AlertGroupStatisticsItem  `json:"items"`
	To      time.Time                   `json:"to"`
}

AlertGroupStatistics defines model for AlertGroupStatistics.

type AlertGroupStatisticsGroupBy

type AlertGroupStatisticsGroupBy string

AlertGroupStatisticsGroupBy defines model for AlertGroupStatistics.GroupBy.

const (
	AlertGroupStatisticsGroupByIntegration AlertGroupStatisticsGroupBy = "integration"
	AlertGroupStatisticsGroupByRoute       AlertGroupStatisticsGroupBy = "route"
	AlertGroupStatisticsGroupByTeam        AlertGroupStatisticsGroupBy = "team"
)

Defines values for AlertGroupStatisticsGroupBy.

func (AlertGroupStatisticsGroupBy) Valid

Valid indicates whether the value is a known member of the AlertGroupStatisticsGroupBy enum.

type AlertGroupStatisticsItem

type AlertGroupStatisticsItem struct {
	AlertGroupCount int             `json:"alert_group_count"`
	PerDay          []StatisticsDay `json:"per_day"`
	Subject         EntityRef       `json:"subject"`

	// TimeToAcknowledge From the start of each Alert Group to its first acknowledgement. Takeover, Unacknowledge and Reopen do not change it; Alert Groups resolved without ever being acknowledged are left out, so `count` may be lower than `alert_group_count`.
	TimeToAcknowledge DurationStats `json:"time_to_acknowledge"`
	TimeToResolve     DurationStats `json:"time_to_resolve"`
}

AlertGroupStatisticsItem defines model for AlertGroupStatisticsItem.

type AlertGroupStatus

type AlertGroupStatus string

AlertGroupStatus defines model for AlertGroupStatus.

const (
	AlertGroupStatusAcknowledged AlertGroupStatus = "acknowledged"
	AlertGroupStatusFiring       AlertGroupStatus = "firing"
	AlertGroupStatusResolved     AlertGroupStatus = "resolved"
	AlertGroupStatusSnoozed      AlertGroupStatus = "snoozed"
)

Defines values for AlertGroupStatus.

func (AlertGroupStatus) Valid

func (e AlertGroupStatus) Valid() bool

Valid indicates whether the value is a known member of the AlertGroupStatus enum.

type AlertGroupTeam

type AlertGroupTeam struct {
	JoinedAt time.Time `json:"joined_at"`

	// Matcher The Team matcher that picked the Alert, in the Alertmanager syntax, for the rule `matcher`.
	Matcher nullable.Nullable[string] `json:"matcher"`

	// Rule How an Alert belongs to a Team (C-25.FR-5) — by the value of the Team label, equal to the Team's slug, or by one of its Team matchers.
	Rule TeamRule `json:"rule"`

	// Team The Team an object names, with its slug; `deleted` is true for a Team that was deleted since.
	Team TeamRef `json:"team"`
}

AlertGroupTeam A Team of an Alert Group (C-25.FR-6), with the rule of the first Alert that brought it and when it joined; a Team deleted since keeps its name, with `deleted` true.

type AlertState

type AlertState string

AlertState defines model for AlertState.

const (
	AlertStateFiring   AlertState = "firing"
	AlertStateResolved AlertState = "resolved"
)

Defines values for AlertState.

func (AlertState) Valid

func (e AlertState) Valid() bool

Valid indicates whether the value is a known member of the AlertState enum.

type AlertmanagerAlert

type AlertmanagerAlert struct {
	// Annotations Label names and values.
	Annotations *Labels `json:"annotations,omitempty"`

	// EndsAt RFC 3339; Alertmanager sends `0001-01-01T00:00:00Z` for firing alerts.
	EndsAt       *string `json:"endsAt,omitempty"`
	Fingerprint  *string `json:"fingerprint,omitempty"`
	GeneratorURL *string `json:"generatorURL,omitempty"`

	// Labels Label names and values.
	Labels               Labels                 `json:"labels"`
	StartsAt             time.Time              `json:"startsAt"`
	Status               AlertState             `json:"status"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertmanagerAlert defines model for AlertmanagerAlert.

func (AlertmanagerAlert) Get

func (a AlertmanagerAlert) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for AlertmanagerAlert. Returns the specified element and whether it was found

func (AlertmanagerAlert) MarshalJSON

func (a AlertmanagerAlert) MarshalJSON() ([]byte, error)

Override default JSON handling for AlertmanagerAlert to handle AdditionalProperties

func (*AlertmanagerAlert) Set

func (a *AlertmanagerAlert) Set(fieldName string, value interface{})

Setter for additional properties for AlertmanagerAlert

func (*AlertmanagerAlert) UnmarshalJSON

func (a *AlertmanagerAlert) UnmarshalJSON(b []byte) error

Override default JSON handling for AlertmanagerAlert to handle AdditionalProperties

type AlertmanagerRoute

type AlertmanagerRoute struct {
	LearnedRepeatIntervalSeconds nullable.Nullable[int] `json:"learned_repeat_interval_seconds,omitempty"`
	LongIntervalWarning          bool                   `json:"long_interval_warning"`

	// RecommendedSnippet Route snippet with a recommended repeat interval, set with `long_interval_warning`.
	RecommendedSnippet nullable.Nullable[string] `json:"recommended_snippet,omitempty"`

	// ResolveByAbsenceAfterSeconds Time to resolve by absence (`processing.stale_after_factor` times the interval, or `processing.stale_after_unlearned`).
	ResolveByAbsenceAfterSeconds nullable.Nullable[int] `json:"resolve_by_absence_after_seconds,omitempty"`
	RoutePath                    string                 `json:"route_path"`
	TruncatedGroupCount          int                    `json:"truncated_group_count"`
}

AlertmanagerRoute An Alertmanager route Muster learned from the `groupKey` of Snapshots.

type AlertmanagerRouteList

type AlertmanagerRouteList struct {
	Items []AlertmanagerRoute `json:"items"`
}

AlertmanagerRouteList defines model for AlertmanagerRouteList.

type AlertmanagerWebhook

type AlertmanagerWebhook struct {
	Alerts []AlertmanagerAlert `json:"alerts"`

	// CommonAnnotations Label names and values.
	CommonAnnotations *Labels `json:"commonAnnotations,omitempty"`

	// CommonLabels Label names and values.
	CommonLabels *Labels `json:"commonLabels,omitempty"`
	ExternalURL  *string `json:"externalURL,omitempty"`
	GroupKey     string  `json:"groupKey"`

	// GroupLabels Label names and values.
	GroupLabels *Labels `json:"groupLabels,omitempty"`

	// NotificationReason Present in newer Alertmanager versions; one value marks a repeat. Grafana does not send it, and its repeats are learned from identical Snapshots.
	NotificationReason *string `json:"notification_reason,omitempty"`

	// OrgId The id of the Grafana organization. Only Grafana's webhook contact point sends it, and a Snapshot whose `orgId` is present and not null is a Snapshot from Grafana. Grafana computes `status` from the alerts it lists, so a truncated Snapshot from Grafana with `status: resolved` resolves only the Alerts it lists as resolved, and the Alerts it leaves out stay firing; an untruncated one, like Alertmanager's, resolves its whole Alertmanager group.
	OrgId    *int       `json:"orgId,omitempty"`
	Receiver *string    `json:"receiver,omitempty"`
	Status   AlertState `json:"status"`

	// TruncatedAlerts Number of alerts left out because of Alertmanager's `max_alerts`, or because of Max alerts of Grafana's webhook contact point.
	TruncatedAlerts *int `json:"truncatedAlerts,omitempty"`

	// Version `"4"` from Alertmanager, `"1"` from Grafana's webhook contact point. Not read.
	Version              *string                `json:"version,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertmanagerWebhook Alertmanager webhook payload, a Snapshot, as Muster expects to read it during processing: the payload of Alertmanager (version 4), and the payload of the webhook contact point of Grafana Alerting (version `"1"`), whose built-in Alertmanager sends the same format with additions. Fields this schema does not name are ignored, Grafana's `title`, `message`, `state` and `appVersion` and its per-alert fields included. It documents the payload only: the ingestion endpoints do not validate against it and store the body as received, so a payload that differs in details, or is not JSON at all, is a processing error of that Snapshot, never a rejected request.

func (AlertmanagerWebhook) Get

func (a AlertmanagerWebhook) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for AlertmanagerWebhook. Returns the specified element and whether it was found

func (AlertmanagerWebhook) MarshalJSON

func (a AlertmanagerWebhook) MarshalJSON() ([]byte, error)

Override default JSON handling for AlertmanagerWebhook to handle AdditionalProperties

func (*AlertmanagerWebhook) Set

func (a *AlertmanagerWebhook) Set(fieldName string, value interface{})

Setter for additional properties for AlertmanagerWebhook

func (*AlertmanagerWebhook) UnmarshalJSON

func (a *AlertmanagerWebhook) UnmarshalJSON(b []byte) error

Override default JSON handling for AlertmanagerWebhook to handle AdditionalProperties

type AnswerReminderResponse

type AnswerReminderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommandResult
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *AnswerReminderResponse429Headers
}

func ParseAnswerReminderResponse

func ParseAnswerReminderResponse(rsp *http.Response) (*AnswerReminderResponse, error)

ParseAnswerReminderResponse parses an HTTP response from a AnswerReminderWithResponse call

func (AnswerReminderResponse) ContentType

func (r AnswerReminderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AnswerReminderResponse) GetApplicationproblemJSON401

func (r AnswerReminderResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (AnswerReminderResponse) GetApplicationproblemJSON403

func (r AnswerReminderResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (AnswerReminderResponse) GetApplicationproblemJSON404

func (r AnswerReminderResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (AnswerReminderResponse) GetApplicationproblemJSON409

func (r AnswerReminderResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (AnswerReminderResponse) GetApplicationproblemJSON429

func (r AnswerReminderResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (AnswerReminderResponse) GetBody

func (r AnswerReminderResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AnswerReminderResponse) GetJSON200

func (r AnswerReminderResponse) GetJSON200() *CommandResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AnswerReminderResponse) Status

func (r AnswerReminderResponse) Status() string

Status returns HTTPResponse.Status

func (AnswerReminderResponse) StatusCode

func (r AnswerReminderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AnswerReminderResponse429Headers

type AnswerReminderResponse429Headers struct {
	RetryAfter *int
}

AnswerReminderResponse429Headers the declared response headers of an HTTP 429 response for AnswerReminder

type Assignee

type Assignee struct {
	// Chain The chain, null once it was deleted.
	Chain nullable.Nullable[EscalationChainRef] `json:"chain"`

	// Since When the person became an Assignee of the chain, on the business clock.
	Since time.Time `json:"since"`

	// Team The owning Team of the chain when its run started; null when none owns it.
	Team nullable.Nullable[TeamRef] `json:"team"`

	// User A User. Used wherever the person must be a User: the Owner and the previous Owner.
	User UserRef `json:"user"`
}

Assignee A person the Escalation chain `chain` Paged last and reached (C-32.FR-12), with the owning Team of the chain, since when.

type AuditActor

type AuditActor struct {
	// Id A `public_id` in the format of `PublicId`, or null.
	Id   nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
	Kind AuditActorKind                      `json:"kind"`

	// Name Current name; `deleted-user-<id>` for deleted users.
	Name string `json:"name"`
}

AuditActor defines model for AuditActor.

type AuditActorKind

type AuditActorKind string

AuditActorKind defines model for AuditActor.Kind.

const (
	AuditActorKindBootstrap      AuditActorKind = "bootstrap"
	AuditActorKindCli            AuditActorKind = "cli"
	AuditActorKindServiceAccount AuditActorKind = "service_account"
	AuditActorKindSystem         AuditActorKind = "system"
	AuditActorKindUser           AuditActorKind = "user"
)

Defines values for AuditActorKind.

func (AuditActorKind) Valid

func (e AuditActorKind) Valid() bool

Valid indicates whether the value is a known member of the AuditActorKind enum.

type AuditDiffEntry

type AuditDiffEntry struct {
	// After New value; any JSON type.
	After interface{} `json:"after,omitempty"`

	// Before Previous value; any JSON type.
	Before        interface{} `json:"before,omitempty"`
	Pointer       string      `json:"pointer"`
	SecretChanged *bool       `json:"secret_changed,omitempty"`
}

AuditDiffEntry One changed field. For Secrets only `secret_changed` is true and no values are present.

type AuditEntry

type AuditEntry struct {
	// Action Stable action type such as `integration.update`, `alert_group.acknowledge`, `alert_group.takeover`, `auth.sign_in`, `auth.sign_in_refused`, `token.issue`, `account_link.link_rejected`.
	Action string     `json:"action"`
	Actor  AuditActor `json:"actor"`
	At     time.Time  `json:"at"`

	// Details Action-specific context, for example the groups a refused OIDC sign-in carried. Never contains Secrets.
	Details *map[string]interface{} `json:"details,omitempty"`
	Diff    *[]AuditDiffEntry       `json:"diff,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id           PublicId                  `json:"id"`
	ResourceId   nullable.Nullable[string] `json:"resource_id,omitempty"`
	ResourceName nullable.Nullable[string] `json:"resource_name,omitempty"`
	ResourceType nullable.Nullable[string] `json:"resource_type,omitempty"`

	// TokenId A `public_id` in the format of `PublicId`, or null.
	TokenId   nullable.Nullable[NullablePublicId] `json:"token_id,omitempty"`
	TokenName nullable.Nullable[string]           `json:"token_name,omitempty"`

	// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `gateway` marks an Acknowledge from a call through a Notification gateway; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
	Transport Transport `json:"transport"`
}

AuditEntry defines model for AuditEntry.

type AuditEntryList

type AuditEntryList struct {
	Items      []AuditEntry              `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

AuditEntryList defines model for AuditEntryList.

type BadRequest

type BadRequest = Problem

BadRequest RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type BeginTotpEnrolmentResponse

type BeginTotpEnrolmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *TotpEnrolment
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *BeginTotpEnrolmentResponse429Headers
}

func ParseBeginTotpEnrolmentResponse

func ParseBeginTotpEnrolmentResponse(rsp *http.Response) (*BeginTotpEnrolmentResponse, error)

ParseBeginTotpEnrolmentResponse parses an HTTP response from a BeginTotpEnrolmentWithResponse call

func (BeginTotpEnrolmentResponse) ContentType

func (r BeginTotpEnrolmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON401

func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON403

func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON409

func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (BeginTotpEnrolmentResponse) GetApplicationproblemJSON429

func (r BeginTotpEnrolmentResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (BeginTotpEnrolmentResponse) GetBody

func (r BeginTotpEnrolmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (BeginTotpEnrolmentResponse) GetJSON201

func (r BeginTotpEnrolmentResponse) GetJSON201() *TotpEnrolment

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (BeginTotpEnrolmentResponse) Status

Status returns HTTPResponse.Status

func (BeginTotpEnrolmentResponse) StatusCode

func (r BeginTotpEnrolmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BeginTotpEnrolmentResponse429Headers

type BeginTotpEnrolmentResponse429Headers struct {
	RetryAfter *int
}

BeginTotpEnrolmentResponse429Headers the declared response headers of an HTTP 429 response for BeginTotpEnrolment

type BridgeAccountLinkEvent

type BridgeAccountLinkEvent struct {
	// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
	Id string `json:"id"`

	// OccurredAt When it happened in the messenger, or when the bridge learned of it.
	OccurredAt time.Time   `json:"occurred_at"`
	Token      string      `json:"token"`
	Type       interface{} `json:"type"`

	// User A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.
	User BridgePerson `json:"user"`
}

BridgeAccountLinkEvent defines model for BridgeAccountLinkEvent.

type BridgeButtonStyle

type BridgeButtonStyle string

BridgeButtonStyle A hint; the bridge maps it to the closest style its messenger has, or shows a plain button.

const (
	Danger  BridgeButtonStyle = "danger"
	Neutral BridgeButtonStyle = "neutral"
	Primary BridgeButtonStyle = "primary"
	Success BridgeButtonStyle = "success"
)

Defines values for BridgeButtonStyle.

func (BridgeButtonStyle) Valid

func (e BridgeButtonStyle) Valid() bool

Valid indicates whether the value is a known member of the BridgeButtonStyle enum.

type BridgeCapabilities

type BridgeCapabilities struct {
	// Buttons The bridge shows buttons and reports presses on them.
	Buttons *struct {
		DataMaxBytes int `json:"data_max_bytes"`

		// MaxPerMessage Muster sends at most this many, dropping Snooze buttons first: the Snooze presets, then the durations from the longest.
		MaxPerMessage int `json:"max_per_message"`
		MaxPerRow     int `json:"max_per_row"`

		// Styles The style hints the messenger can show as such; the bridge maps the others to the closest one, or shows a plain button.
		Styles []BridgeButtonStyle `json:"styles"`
	} `json:"buttons,omitempty"`

	// Delete The bot can delete its own messages (unused by Muster L1).
	Delete *struct {
		MaxAgeSeconds nullable.Nullable[int] `json:"max_age_seconds"`
	} `json:"delete,omitempty"`

	// DeletionEvents The bridge reports `message_deleted` when a message of the bot is deleted in the messenger.
	DeletionEvents *bool `json:"deletion_events,omitempty"`

	// DirectMessages The bot can send direct messages, which Account links by code need.
	DirectMessages *struct {
		// BotCanStart Whether the bot can write to a person who never wrote to it.
		BotCanStart bool `json:"bot_can_start"`
	} `json:"direct_messages,omitempty"`

	// EveryoneMentions The mentions of everyone in the chat that the bridge's messenger has, by their symbolic names.
	EveryoneMentions *[]BridgeCapabilitiesEveryoneMentions `json:"everyone_mentions,omitempty"`

	// GroupMentions The bridge renders a group mention that Muster sends as a `mentions` entry of the kind `group`; the Team mentions and group entries of a Destination need it.
	GroupMentions *bool `json:"group_mentions,omitempty"`

	// NativeMentions Mention markers become the messenger's own mentions, which notify the person.
	NativeMentions *bool `json:"native_mentions,omitempty"`

	// PrivateAnswers How the bridge can show an answer to one person only: an ephemeral message, a pop-up (short plain text), or both.
	PrivateAnswers *[]BridgeCapabilitiesPrivateAnswers `json:"private_answers,omitempty"`

	// QuietMessages The messenger can post a new message without notifying anyone (`notify` false).
	QuietMessages *bool `json:"quiet_messages,omitempty"`

	// StatusColor The messenger can colour a message by `color`; otherwise the bridge shows `emoji`.
	StatusColor *bool `json:"status_color,omitempty"`

	// ThreadMessages The bridge reports people's messages in Threads of the bot's messages — every one, or only those that mention the bot. Text commands need it.
	ThreadMessages *BridgeCapabilitiesThreadMessages `json:"thread_messages,omitempty"`
}

BridgeCapabilities The optional features of the bridge. A missing member means the feature is not offered.

type BridgeCapabilitiesEveryoneMentions

type BridgeCapabilitiesEveryoneMentions string

BridgeCapabilitiesEveryoneMentions defines model for BridgeCapabilities.EveryoneMentions.

const (
	BridgeCapabilitiesEveryoneMentionsAll      BridgeCapabilitiesEveryoneMentions = "all"
	BridgeCapabilitiesEveryoneMentionsChannel  BridgeCapabilitiesEveryoneMentions = "channel"
	BridgeCapabilitiesEveryoneMentionsEveryone BridgeCapabilitiesEveryoneMentions = "everyone"
	BridgeCapabilitiesEveryoneMentionsHere     BridgeCapabilitiesEveryoneMentions = "here"
)

Defines values for BridgeCapabilitiesEveryoneMentions.

func (BridgeCapabilitiesEveryoneMentions) Valid

Valid indicates whether the value is a known member of the BridgeCapabilitiesEveryoneMentions enum.

type BridgeCapabilitiesPrivateAnswers

type BridgeCapabilitiesPrivateAnswers string

BridgeCapabilitiesPrivateAnswers defines model for BridgeCapabilities.PrivateAnswers.

const (
	Ephemeral BridgeCapabilitiesPrivateAnswers = "ephemeral"
	Popup     BridgeCapabilitiesPrivateAnswers = "popup"
)

Defines values for BridgeCapabilitiesPrivateAnswers.

func (BridgeCapabilitiesPrivateAnswers) Valid

Valid indicates whether the value is a known member of the BridgeCapabilitiesPrivateAnswers enum.

type BridgeCapabilitiesThreadMessages

type BridgeCapabilitiesThreadMessages string

BridgeCapabilitiesThreadMessages The bridge reports people's messages in Threads of the bot's messages — every one, or only those that mention the bot. Text commands need it.

const (
	BridgeCapabilitiesThreadMessagesAll          BridgeCapabilitiesThreadMessages = "all"
	BridgeCapabilitiesThreadMessagesMentionsOnly BridgeCapabilitiesThreadMessages = "mentions_only"
)

Defines values for BridgeCapabilitiesThreadMessages.

func (BridgeCapabilitiesThreadMessages) Valid

Valid indicates whether the value is a known member of the BridgeCapabilitiesThreadMessages enum.

type BridgeCodeLinkRequest

type BridgeCodeLinkRequest struct {
	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Handle The handle of the account to link, of the kind the Connection's `handle_kind` names.
	Handle string `json:"handle"`
}

BridgeCodeLinkRequest defines model for BridgeCodeLinkRequest.

type BridgeCodeLinkStarted

type BridgeCodeLinkStarted struct {
	AttemptsRemaining int       `json:"attempts_remaining"`
	ExpiresAt         time.Time `json:"expires_at"`

	// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	RequestId PublicId `json:"request_id"`
}

BridgeCodeLinkStarted defines model for BridgeCodeLinkStarted.

type BridgeConnection

type BridgeConnection struct {
	// BaseUrl Absolute http(s) URL of the bridge without query, fragment or user information; a path prefix is allowed and a trailing `/` is dropped. Requests go to `<base>/v1/…` with the token as `Authorization: Bearer`, only to this address.
	BaseUrl string `json:"base_url"`

	// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
	BotTokenStatus SecretStatus `json:"bot_token_status"`

	// CallbackUrl `bridgeEvent` at `MUSTER_INGEST_URL` (`<MUSTER_INGEST_URL>/api/v1/callbacks/bridge/<id>`), where a bridge in push mode posts events signed with the push secret.
	CallbackUrl *string   `json:"callback_url,omitempty"`
	CreatedAt   time.Time `json:"created_at"`

	// DestinationCount A Connection used by Destinations cannot be deleted.
	DestinationCount int `json:"destination_count"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
	EventDelivery BridgeEventDelivery `json:"event_delivery"`

	// Gateway The state of the Connection as a Notification gateway (C-30.FR-8), kept apart from the health of its Destinations; null when it is not one, neither declaring the role `gateway` in its stored `info` nor Broken.
	Gateway nullable.Nullable[GatewayState] `json:"gateway,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Info The last `info` a Connection check read, with the members of `BridgeInfo`; Muster stores the whole answer, and members this version does not know are not returned. Null before the first check and after the base URL or the token changed.
	Info nullable.Nullable[BridgeInfo] `json:"info,omitempty"`

	// InfoReadAt When Muster read `info`; null while `info` is null.
	InfoReadAt nullable.Nullable[time.Time] `json:"info_read_at,omitempty"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as read. The password is a Secret.
	Proxy ProxyConfig `json:"proxy"`

	// PushSecretStatus What a read shows instead of a Secret. The value itself is never returned.
	PushSecretStatus SecretStatus `json:"push_secret_status"`

	// Roles The roles of the bridge from the stored `info`, `["messenger"]` while `info` is null or declares none. A Connection whose only role is `gateway` is a Notification gateway and cannot be a Destination.
	Roles *[]BridgeInfoRole    `json:"roles,omitempty"`
	Type  BridgeConnectionType `json:"type"`

	// Warnings Problems of the saved settings that do not stop the Connection. `push_secret_too_short` (`push`): the stored push secret has a key shorter than 24 bytes, saved before Muster refused one; the push callback still accepts events signed with it, and saving a new `push_secret` of 24 bytes or more ends the warning.
	Warnings []BridgeConnectionWarnings `json:"warnings"`
}

BridgeConnection defines model for BridgeConnection.

type BridgeConnectionBase

type BridgeConnectionBase struct {
	// BaseUrl Absolute http(s) URL of the bridge without query, fragment or user information; a path prefix is allowed and a trailing `/` is dropped. Requests go to `<base>/v1/…` with the token as `Authorization: Bearer`, only to this address.
	BaseUrl string `json:"base_url"`

	// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
	EventDelivery BridgeEventDelivery `json:"event_delivery"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`
	Type      BridgeConnectionBaseType  `json:"type"`
}

BridgeConnectionBase defines model for BridgeConnectionBase.

type BridgeConnectionBaseType

type BridgeConnectionBaseType string

BridgeConnectionBaseType defines model for BridgeConnectionBase.Type.

const (
	BridgeConnectionBaseTypeBridge BridgeConnectionBaseType = "bridge"
)

Defines values for BridgeConnectionBaseType.

func (BridgeConnectionBaseType) Valid

func (e BridgeConnectionBaseType) Valid() bool

Valid indicates whether the value is a known member of the BridgeConnectionBaseType enum.

type BridgeConnectionDraft

type BridgeConnectionDraft struct {
	// BaseUrl The bridge's base URL as `BridgeConnectionBase` takes it.
	BaseUrl string `json:"base_url"`

	// BotToken A token typed in the form, sent only to `base_url`. Omit it to use the stored token of `connection_id`, which goes only to its saved base URL through its saved proxy.
	BotToken *string `json:"bot_token,omitempty"`

	// ConnectionId The saved Bridge Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
	ConnectionId *PublicId `json:"connection_id,omitempty"`

	// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
	EventDelivery BridgeEventDelivery `json:"event_delivery"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy *ProxyConfigInput         `json:"proxy,omitempty"`
	Type  BridgeConnectionDraftType `json:"type"`
}

BridgeConnectionDraft A Bridge Connection as its form holds it, for `checkConnectionDraft`; the push secret is not checked.

type BridgeConnectionDraftType

type BridgeConnectionDraftType string

BridgeConnectionDraftType defines model for BridgeConnectionDraft.Type.

const (
	BridgeConnectionDraftTypeBridge BridgeConnectionDraftType = "bridge"
)

Defines values for BridgeConnectionDraftType.

func (BridgeConnectionDraftType) Valid

func (e BridgeConnectionDraftType) Valid() bool

Valid indicates whether the value is a known member of the BridgeConnectionDraftType enum.

type BridgeConnectionInput

type BridgeConnectionInput struct {
	// BaseUrl Absolute http(s) URL of the bridge without query, fragment or user information; a path prefix is allowed and a trailing `/` is dropped. Requests go to `<base>/v1/…` with the token as `Authorization: Bearer`, only to this address.
	BaseUrl string `json:"base_url"`

	// BotToken Write-only Secret. Omit on update to keep the stored one; a new `base_url` needs it again.
	BotToken *string `json:"bot_token,omitempty"`

	// EventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.
	EventDelivery BridgeEventDelivery `json:"event_delivery"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy ProxyConfigInput `json:"proxy"`

	// PushSecret Write-only Secret in the Standard Webhooks form, `whsec_` and the base64 of a key of at least 24 bytes, such as 32 random bytes; a shorter key is `invalid_format`. Required with `event_delivery` `push`. Omit on update to keep the stored one, even one shorter than 24 bytes saved before that minimum, which `warnings` reports; a save in `poll` clears it.
	PushSecret *string                   `json:"push_secret,omitempty"`
	Type       BridgeConnectionInputType `json:"type"`
}

BridgeConnectionInput defines model for BridgeConnectionInput.

type BridgeConnectionInputType

type BridgeConnectionInputType string

BridgeConnectionInputType defines model for BridgeConnectionInput.Type.

const (
	BridgeConnectionInputTypeBridge BridgeConnectionInputType = "bridge"
)

Defines values for BridgeConnectionInputType.

func (BridgeConnectionInputType) Valid

func (e BridgeConnectionInputType) Valid() bool

Valid indicates whether the value is a known member of the BridgeConnectionInputType enum.

type BridgeConnectionType

type BridgeConnectionType string

BridgeConnectionType defines model for BridgeConnection.Type.

const (
	BridgeConnectionTypeBridge BridgeConnectionType = "bridge"
)

Defines values for BridgeConnectionType.

func (BridgeConnectionType) Valid

func (e BridgeConnectionType) Valid() bool

Valid indicates whether the value is a known member of the BridgeConnectionType enum.

type BridgeConnectionWarnings

type BridgeConnectionWarnings string

BridgeConnectionWarnings defines model for BridgeConnection.Warnings.

const (
	PushSecretTooShort BridgeConnectionWarnings = "push_secret_too_short"
)

Defines values for BridgeConnectionWarnings.

func (BridgeConnectionWarnings) Valid

func (e BridgeConnectionWarnings) Valid() bool

Valid indicates whether the value is a known member of the BridgeConnectionWarnings enum.

type BridgeDestination

type BridgeDestination struct {
	// Buttons A Destination's button set, `destination.buttons` (C-28.FR-8): `organization`, "As in the Organization", the default, follows the Organization's set and its later changes; `own` shows only `items`, which are then required. A change re-renders the Destination's open Root messages, as edits.
	Buttons DestinationButtonSet `json:"buttons"`

	// ChannelId The channel as its messenger names it, an opaque string of up to 512 characters; surrounding white space is trimmed.
	ChannelId string `json:"channel_id"`

	// ChannelName The channel's name as the bridge's `checkChannel` answered it when the Destination was last saved. Untrusted text from the bridge.
	ChannelName nullable.Nullable[string] `json:"channel_name,omitempty"`

	// ConnectionId A Bridge Connection.
	ConnectionId PublicId  `json:"connection_id"`
	CreatedAt    time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag   *string           `json:"etag,omitempty"`
	Health DestinationHealth `json:"health"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter `destination.bridge.limiter`: the form proposes 30 requests per minute, sends and edits together, or half of the Connection's `info.limits.send_per_second_per_channel` when its info has it.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries in order, each with what it mentions now.
	MentionEntries []MentionEntry `json:"mention_entries"`

	// MentionWarnings The people and entries whose Mentions were not delivered (C-28.FR-3), by entry and then by the person's name; always empty on an outgoing webhook, which takes every person as data.
	MentionWarnings []MentionWarning `json:"mention_warnings"`

	// Mentions The L1 form of the Mention entries that L1 can express on the Destination's type (C-28.FR-5), removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions MentionSettings `json:"mentions"`
	Name     string          `json:"name"`

	// OwningTeam The Team that owns the Destination, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Routes       []EntityRef                         `json:"routes"`

	// Teams The Teams that name the Destination as a Destination of the Team, by name.
	Teams         []TeamRef             `json:"teams"`
	TemplateError *TemplateErrorState   `json:"template_error,omitempty"`
	Type          BridgeDestinationType `json:"type"`
}

BridgeDestination defines model for BridgeDestination.

type BridgeDestinationInput

type BridgeDestinationInput struct {
	// Buttons The Destination's button set (C-28.FR-8, FR-10); omitted on create is `organization`, omitted on an update keeps it.
	Buttons *DestinationButtonSet `json:"buttons,omitempty"`

	// ChannelId The channel as its messenger names it, an opaque string of up to 512 characters; surrounding white space is trimmed.
	ChannelId string `json:"channel_id"`

	// ConnectionId A Bridge Connection.
	ConnectionId PublicId `json:"connection_id"`

	// Limiter `destination.bridge.limiter`: the form proposes 30 requests per minute, sends and edits together, or half of the Connection's `info.limits.send_per_second_per_channel` when its info has it.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries (C-28.FR-1, FR-2), in order, each a target and the Loud events it applies to; omitted on create is none, which mentions nobody, and omitted on an update keeps them. A target the Destination's Connection cannot mention is refused with `422` `mention_unsupported` at `/mention_entries/{i}/target` — a Bridge takes the words of everyone its bridge declares in `everyone_mentions`, groups and Teams only when it declares `group_mentions`, and any person — and an entry whose target equals a stored one is kept whatever the Connection can mention now. An unknown or deleted User or Team is refused with `unknown_id` at its `user_id` or `team_id` unless the entry's target equals a stored one, and a target listed twice with `duplicate` at `/mention_entries/{i}/target`.
	MentionEntries *[]MentionEntryInput `json:"mention_entries,omitempty"`

	// Mentions The Mention settings of L1 (C-12.FR-8), deprecated since 0.2.0 and removed in 0.3.0 (C-28.FR-5). In a read, computed from the `mention_entries` that L1 can express on the Destination's type — the everyone choices, chosen Users and messenger groups L1 took there, for the six kinds of L1 — so that the other entries are not seen in it. In a request it is optional: when a request has no `mention_entries`, it sets them by the conversion of the 0.2.0 migration — on create they are its result; on update it replaces the entries that L1 can express, keeps the others after them, keeps the `storm_started` of a target present before and after, and changes nothing when it equals the stored form — validated as L1 validated it, at pointers under `/mentions`; ignored when `mention_entries` is present.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions *MentionSettings `json:"mentions,omitempty"`
	Name     string           `json:"name"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Type         BridgeDestinationInputType          `json:"type"`
}

BridgeDestinationInput A Bridge Destination (C-22.FR-3) is a channel of the bridge's messenger, named by its id. Saving it runs the bridge's `checkChannel`, which posts nothing, and keeps the channel's name the bridge answers.

type BridgeDestinationInputType

type BridgeDestinationInputType string

BridgeDestinationInputType defines model for BridgeDestinationInput.Type.

const (
	BridgeDestinationInputTypeBridge BridgeDestinationInputType = "bridge"
)

Defines values for BridgeDestinationInputType.

func (BridgeDestinationInputType) Valid

func (e BridgeDestinationInputType) Valid() bool

Valid indicates whether the value is a known member of the BridgeDestinationInputType enum.

type BridgeDestinationType

type BridgeDestinationType string

BridgeDestinationType defines model for BridgeDestination.Type.

const (
	BridgeDestinationTypeBridge BridgeDestinationType = "bridge"
)

Defines values for BridgeDestinationType.

func (BridgeDestinationType) Valid

func (e BridgeDestinationType) Valid() bool

Valid indicates whether the value is a known member of the BridgeDestinationType enum.

type BridgeEvent

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

BridgeEvent An event of a bridge, pushed by `bridgeEvent`; a copy of the schema `Event` of the Bridge protocol (`api/bridge.yaml`). `type` selects the variant.

func (BridgeEvent) AsBridgeAccountLinkEvent

func (t BridgeEvent) AsBridgeAccountLinkEvent() (BridgeAccountLinkEvent, error)

AsBridgeAccountLinkEvent returns the union data inside the BridgeEvent as a BridgeAccountLinkEvent

func (BridgeEvent) AsBridgeMessageDeletedEvent

func (t BridgeEvent) AsBridgeMessageDeletedEvent() (BridgeMessageDeletedEvent, error)

AsBridgeMessageDeletedEvent returns the union data inside the BridgeEvent as a BridgeMessageDeletedEvent

func (BridgeEvent) AsBridgeNotificationAcknowledgedEvent

func (t BridgeEvent) AsBridgeNotificationAcknowledgedEvent() (BridgeNotificationAcknowledgedEvent, error)

AsBridgeNotificationAcknowledgedEvent returns the union data inside the BridgeEvent as a BridgeNotificationAcknowledgedEvent

func (BridgeEvent) AsBridgePressEvent

func (t BridgeEvent) AsBridgePressEvent() (BridgePressEvent, error)

AsBridgePressEvent returns the union data inside the BridgeEvent as a BridgePressEvent

func (BridgeEvent) AsBridgeThreadMessageEvent

func (t BridgeEvent) AsBridgeThreadMessageEvent() (BridgeThreadMessageEvent, error)

AsBridgeThreadMessageEvent returns the union data inside the BridgeEvent as a BridgeThreadMessageEvent

func (BridgeEvent) Discriminator

func (t BridgeEvent) Discriminator() (string, error)

func (*BridgeEvent) FromBridgeAccountLinkEvent

func (t *BridgeEvent) FromBridgeAccountLinkEvent(v BridgeAccountLinkEvent) error

FromBridgeAccountLinkEvent overwrites any union data inside the BridgeEvent as the provided BridgeAccountLinkEvent

func (*BridgeEvent) FromBridgeMessageDeletedEvent

func (t *BridgeEvent) FromBridgeMessageDeletedEvent(v BridgeMessageDeletedEvent) error

FromBridgeMessageDeletedEvent overwrites any union data inside the BridgeEvent as the provided BridgeMessageDeletedEvent

func (*BridgeEvent) FromBridgeNotificationAcknowledgedEvent

func (t *BridgeEvent) FromBridgeNotificationAcknowledgedEvent(v BridgeNotificationAcknowledgedEvent) error

FromBridgeNotificationAcknowledgedEvent overwrites any union data inside the BridgeEvent as the provided BridgeNotificationAcknowledgedEvent

func (*BridgeEvent) FromBridgePressEvent

func (t *BridgeEvent) FromBridgePressEvent(v BridgePressEvent) error

FromBridgePressEvent overwrites any union data inside the BridgeEvent as the provided BridgePressEvent

func (*BridgeEvent) FromBridgeThreadMessageEvent

func (t *BridgeEvent) FromBridgeThreadMessageEvent(v BridgeThreadMessageEvent) error

FromBridgeThreadMessageEvent overwrites any union data inside the BridgeEvent as the provided BridgeThreadMessageEvent

func (BridgeEvent) MarshalJSON

func (t BridgeEvent) MarshalJSON() ([]byte, error)

func (*BridgeEvent) MergeBridgeAccountLinkEvent

func (t *BridgeEvent) MergeBridgeAccountLinkEvent(v BridgeAccountLinkEvent) error

MergeBridgeAccountLinkEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgeAccountLinkEvent

func (*BridgeEvent) MergeBridgeMessageDeletedEvent

func (t *BridgeEvent) MergeBridgeMessageDeletedEvent(v BridgeMessageDeletedEvent) error

MergeBridgeMessageDeletedEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgeMessageDeletedEvent

func (*BridgeEvent) MergeBridgeNotificationAcknowledgedEvent

func (t *BridgeEvent) MergeBridgeNotificationAcknowledgedEvent(v BridgeNotificationAcknowledgedEvent) error

MergeBridgeNotificationAcknowledgedEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgeNotificationAcknowledgedEvent

func (*BridgeEvent) MergeBridgePressEvent

func (t *BridgeEvent) MergeBridgePressEvent(v BridgePressEvent) error

MergeBridgePressEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgePressEvent

func (*BridgeEvent) MergeBridgeThreadMessageEvent

func (t *BridgeEvent) MergeBridgeThreadMessageEvent(v BridgeThreadMessageEvent) error

MergeBridgeThreadMessageEvent performs a merge with any union data inside the BridgeEvent, using the provided BridgeThreadMessageEvent

func (*BridgeEvent) UnmarshalJSON

func (t *BridgeEvent) UnmarshalJSON(b []byte) error

func (BridgeEvent) ValueByDiscriminator

func (t BridgeEvent) ValueByDiscriminator() (interface{}, error)

type BridgeEventBase

type BridgeEventBase struct {
	// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
	Id string `json:"id"`

	// OccurredAt When it happened in the messenger, or when the bridge learned of it.
	OccurredAt time.Time `json:"occurred_at"`
	Type       string    `json:"type"`
}

BridgeEventBase The members of every Bridge event, a copy of the schema `EventBase` of the Bridge protocol.

type BridgeEventDelivery

type BridgeEventDelivery string

BridgeEventDelivery How a Bridge Connection receives events (`connection.bridge.event_delivery`): `poll` — Muster polls the bridge from the Leader; `push` — the bridge posts each event to the Connection's `callback_url`, signed with the push secret.

const (
	BridgeEventDeliveryPoll BridgeEventDelivery = "poll"
	BridgeEventDeliveryPush BridgeEventDelivery = "push"
)

Defines values for BridgeEventDelivery.

func (BridgeEventDelivery) Valid

func (e BridgeEventDelivery) Valid() bool

Valid indicates whether the value is a known member of the BridgeEventDelivery enum.

type BridgeEventJSONRequestBody

type BridgeEventJSONRequestBody = BridgeEvent

BridgeEventJSONRequestBody defines body for BridgeEvent for application/json ContentType.

type BridgeEventParams

type BridgeEventParams struct {
	// WebhookId The event's `id`, kept across retries.
	WebhookId string `json:"webhook-id"`

	// WebhookTimestamp Unix time of this attempt, in seconds.
	WebhookTimestamp string `json:"webhook-timestamp"`

	// WebhookSignature `v1,<base64 HMAC-SHA256>`; several signatures separated by spaces are allowed while a secret is rotated.
	WebhookSignature string `json:"webhook-signature"`
}

BridgeEventParams defines parameters for BridgeEvent.

type BridgeEventResponse

type BridgeEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
	ApplicationproblemJSON500 *InternalError
}

func ParseBridgeEventResponse

func ParseBridgeEventResponse(rsp *http.Response) (*BridgeEventResponse, error)

ParseBridgeEventResponse parses an HTTP response from a BridgeEventWithResponse call

func (BridgeEventResponse) ContentType

func (r BridgeEventResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BridgeEventResponse) GetApplicationproblemJSON400

func (r BridgeEventResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (BridgeEventResponse) GetApplicationproblemJSON401

func (r BridgeEventResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (BridgeEventResponse) GetApplicationproblemJSON500

func (r BridgeEventResponse) GetApplicationproblemJSON500() *InternalError

GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response

func (BridgeEventResponse) GetBody

func (r BridgeEventResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (BridgeEventResponse) Status

func (r BridgeEventResponse) Status() string

Status returns HTTPResponse.Status

func (BridgeEventResponse) StatusCode

func (r BridgeEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BridgeInfo

type BridgeInfo struct {
	Bridge struct {
		Name    string `json:"name"`
		Version string `json:"version"`
	} `json:"bridge"`

	// Capabilities The optional features of the bridge. A missing member means the feature is not offered.
	Capabilities BridgeCapabilities `json:"capabilities"`

	// EventDelivery The event delivery modes the bridge offers; each Connection chooses one.
	EventDelivery []BridgeInfoEventDelivery `json:"event_delivery"`

	// Limits The limits of the bridge, a copy of the schema `Limits` of the Bridge protocol.
	Limits BridgeLimits `json:"limits"`

	// LinkUrlTemplate An `http` or `https` link that opens a chat with the bot and hands it the Account link token, with `{token}` where the token goes.
	LinkUrlTemplate nullable.Nullable[string] `json:"link_url_template,omitempty"`
	Messenger       struct {
		// Name The messenger's name as people know it; Muster shows it on the Connection and the Destinations.
		Name string `json:"name"`
	} `json:"messenger"`

	// ProtocolVersion The major version of this protocol the bridge speaks.
	ProtocolVersion BridgeInfoProtocolVersion `json:"protocol_version"`

	// Roles What the bridge is; `messenger` when it is missing.
	Roles *[]BridgeInfoRole `json:"roles,omitempty"`

	// UserLookup What a person enters to be found for an Account link by code, and what `findUsers` searches by. `none` offers only the token sent to the bot.
	UserLookup BridgeInfoUserLookup `json:"user_lookup"`
}

BridgeInfo The `info` of a bridge, a copy of the schema `Info` of the Bridge protocol (`api/bridge.yaml`).

type BridgeInfoEventDelivery

type BridgeInfoEventDelivery string

BridgeInfoEventDelivery defines model for BridgeInfo.EventDelivery.

const (
	BridgeInfoEventDeliveryPoll BridgeInfoEventDelivery = "poll"
	BridgeInfoEventDeliveryPush BridgeInfoEventDelivery = "push"
)

Defines values for BridgeInfoEventDelivery.

func (BridgeInfoEventDelivery) Valid

func (e BridgeInfoEventDelivery) Valid() bool

Valid indicates whether the value is a known member of the BridgeInfoEventDelivery enum.

type BridgeInfoProtocolVersion

type BridgeInfoProtocolVersion string

BridgeInfoProtocolVersion The major version of this protocol the bridge speaks.

const (
	BridgeInfoProtocolVersionN1 BridgeInfoProtocolVersion = "1"
)

Defines values for BridgeInfoProtocolVersion.

func (BridgeInfoProtocolVersion) Valid

func (e BridgeInfoProtocolVersion) Valid() bool

Valid indicates whether the value is a known member of the BridgeInfoProtocolVersion enum.

type BridgeInfoRole

type BridgeInfoRole string

BridgeInfoRole `messenger`: a bridge to a messenger, whose channels are Destinations; `gateway`: a Notification gateway, which reaches people outside messengers.

const (
	BridgeInfoRoleGateway   BridgeInfoRole = "gateway"
	BridgeInfoRoleMessenger BridgeInfoRole = "messenger"
)

Defines values for BridgeInfoRole.

func (BridgeInfoRole) Valid

func (e BridgeInfoRole) Valid() bool

Valid indicates whether the value is a known member of the BridgeInfoRole enum.

type BridgeInfoUserLookup

type BridgeInfoUserLookup string

BridgeInfoUserLookup What a person enters to be found for an Account link by code, and what `findUsers` searches by. `none` offers only the token sent to the bot.

const (
	BridgeInfoUserLookupEmail    BridgeInfoUserLookup = "email"
	BridgeInfoUserLookupLogin    BridgeInfoUserLookup = "login"
	BridgeInfoUserLookupNone     BridgeInfoUserLookup = "none"
	BridgeInfoUserLookupUserId   BridgeInfoUserLookup = "user_id"
	BridgeInfoUserLookupUsername BridgeInfoUserLookup = "username"
)

Defines values for BridgeInfoUserLookup.

func (BridgeInfoUserLookup) Valid

func (e BridgeInfoUserLookup) Valid() bool

Valid indicates whether the value is a known member of the BridgeInfoUserLookup enum.

type BridgeLimits

type BridgeLimits struct {
	// EditMaxAgeSeconds How long after posting the bot can still edit a message; `null` when edits never expire. Muster stops editing a minute earlier.
	EditMaxAgeSeconds nullable.Nullable[int] `json:"edit_max_age_seconds"`

	// MaxBodyLength The longest `body`, in Unicode code points of the CommonMark Muster sends, that the bridge always accepts for a post and for an edit alike, after its own rendering.
	MaxBodyLength int `json:"max_body_length"`

	// SendPerSecond A hint for the Connection limiter, over all channels of the bot.
	SendPerSecond *float32 `json:"send_per_second,omitempty"`

	// SendPerSecondPerChannel A hint for the Destination limiter; `rate_limited` stays the truth.
	SendPerSecondPerChannel *float32 `json:"send_per_second_per_channel,omitempty"`
}

BridgeLimits The limits of the bridge, a copy of the schema `Limits` of the Bridge protocol.

type BridgeLinkConfirm

type BridgeLinkConfirm struct {
	// Code The code the bot sent as a direct message.
	Code *string `json:"code,omitempty"`

	// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	RequestId PublicId `json:"request_id"`
}

BridgeLinkConfirm defines model for BridgeLinkConfirm.

type BridgeLinkRequest

type BridgeLinkRequest struct {
	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`
}

BridgeLinkRequest defines model for BridgeLinkRequest.

type BridgeLinkStart

type BridgeLinkStart struct {
	ExpiresAt time.Time `json:"expires_at"`

	// LinkUrl The bridge's `link_url_template` with the token, which opens a chat with the bot and hands it the token; null without a template.
	LinkUrl nullable.Nullable[string] `json:"link_url"`

	// Token Send it to the bot in a direct message. Single use and bound to the User and the Connection.
	Token string `json:"token"`
}

BridgeLinkStart defines model for BridgeLinkStart.

type BridgeMessageDeletedEvent

type BridgeMessageDeletedEvent struct {
	// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
	Id        string `json:"id"`
	MessageId string `json:"message_id"`

	// OccurredAt When it happened in the messenger, or when the bridge learned of it.
	OccurredAt time.Time   `json:"occurred_at"`
	Type       interface{} `json:"type"`
}

BridgeMessageDeletedEvent defines model for BridgeMessageDeletedEvent.

type BridgeNotificationAcknowledgedEvent

type BridgeNotificationAcknowledgedEvent struct {
	Data string `json:"data"`

	// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
	Id             string `json:"id"`
	NotificationId string `json:"notification_id"`

	// OccurredAt When it happened in the messenger, or when the bridge learned of it.
	OccurredAt time.Time   `json:"occurred_at"`
	Type       interface{} `json:"type"`
}

BridgeNotificationAcknowledgedEvent defines model for BridgeNotificationAcknowledgedEvent.

type BridgePerson

type BridgePerson struct {
	DisplayName string `json:"display_name"`

	// ExternalId The account's stable id in the messenger.
	ExternalId string `json:"external_id"`

	// Handle The account's handle of the kind `user_lookup` declares, when the bridge knows it.
	Handle nullable.Nullable[string] `json:"handle,omitempty"`
}

BridgePerson A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.

type BridgePressEvent

type BridgePressEvent struct {
	// Data The button's `data`, unchanged.
	Data string `json:"data"`

	// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
	Id string `json:"id"`

	// MessageId The message the button belongs to, a Root message or a Thread reply.
	MessageId string `json:"message_id"`

	// OccurredAt When it happened in the messenger, or when the bridge learned of it.
	OccurredAt time.Time   `json:"occurred_at"`
	Type       interface{} `json:"type"`

	// User A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.
	User BridgePerson `json:"user"`
}

BridgePressEvent defines model for BridgePressEvent.

type BridgeThreadMessageEvent

type BridgeThreadMessageEvent struct {
	// Id Stable across retries and polls; Muster handles each id of a Connection once. Printable ASCII without spaces, so that it can travel as the `webhook-id` header.
	Id string `json:"id"`

	// MessageId The message whose Thread it is in, usually a Root message, never the id of a reply.
	MessageId string `json:"message_id"`

	// OccurredAt When it happened in the messenger, or when the bridge learned of it.
	OccurredAt time.Time `json:"occurred_at"`

	// Text The message as plain text, mentions of the bot removed.
	Text      string                    `json:"text"`
	ThreadRef nullable.Nullable[string] `json:"thread_ref"`
	Type      interface{}               `json:"type"`

	// User A messenger account as a bridge names it, a copy of the schema `Person` of the Bridge protocol.
	User BridgePerson `json:"user"`
}

BridgeThreadMessageEvent defines model for BridgeThreadMessageEvent.

type BrokenDestination

type BrokenDestination struct {
	Destination EntityRef `json:"destination"`
	Reason      string    `json:"reason"`
	Since       time.Time `json:"since"`
}

BrokenDestination defines model for BrokenDestination.

type BulkCommandItem

type BulkCommandItem struct {
	// AlertGroupId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	AlertGroupId PublicId `json:"alert_group_id"`

	// Code Stable code of a result other than `done` and `unchanged`: with `refused`, a `command-refused` code such as `already_resolved` or `owner_must_be_user` (Acknowledge by a Service account); with `skipped`, `owned_by_other` for an Acknowledge skipped because another user owns the Alert Group; with `failed`, `not_found` for an id that names no Alert Group the caller may see.
	Code nullable.Nullable[string] `json:"code,omitempty"`

	// Message For example "skipped: owned by Alice".
	Message nullable.Nullable[string] `json:"message,omitempty"`
	Number  nullable.Nullable[int]    `json:"number,omitempty"`
	Outcome BulkOutcome               `json:"outcome"`
}

BulkCommandItem defines model for BulkCommandItem.

type BulkCommandRequest

type BulkCommandRequest struct {
	// AlertGroupIds At most `alert_group.bulk_max`.
	AlertGroupIds []PublicId                `json:"alert_group_ids"`
	Command       BulkCommandRequestCommand `json:"command"`

	// Note For `resolve`; optional.
	Note *string `json:"note,omitempty"`

	// Snooze Required for `snooze`.
	Snooze *SnoozeRequest `json:"snooze,omitempty"`
}

BulkCommandRequest A Command on up to `alert_group.bulk_max` Alert Groups. Arguments belong to their command: `snooze` for `snooze`, `note` for `resolve`; others are ignored.

type BulkCommandRequestCommand

type BulkCommandRequestCommand string

BulkCommandRequestCommand defines model for BulkCommandRequest.Command.

const (
	BulkCommandRequestCommandAcknowledge BulkCommandRequestCommand = "acknowledge"
	BulkCommandRequestCommandResolve     BulkCommandRequestCommand = "resolve"
	BulkCommandRequestCommandSnooze      BulkCommandRequestCommand = "snooze"
	BulkCommandRequestCommandUnsnooze    BulkCommandRequestCommand = "unsnooze"
)

Defines values for BulkCommandRequestCommand.

func (BulkCommandRequestCommand) Valid

func (e BulkCommandRequestCommand) Valid() bool

Valid indicates whether the value is a known member of the BulkCommandRequestCommand enum.

type BulkCommandResult

type BulkCommandResult struct {
	Results []BulkCommandItem `json:"results"`
}

BulkCommandResult One outcome per Alert Group; a refusal never stops the others.

type BulkOutcome

type BulkOutcome string

BulkOutcome defines model for BulkOutcome.

const (
	BulkOutcomeDone      BulkOutcome = "done"
	BulkOutcomeFailed    BulkOutcome = "failed"
	BulkOutcomeRefused   BulkOutcome = "refused"
	BulkOutcomeSkipped   BulkOutcome = "skipped"
	BulkOutcomeUnchanged BulkOutcome = "unchanged"
)

Defines values for BulkOutcome.

func (BulkOutcome) Valid

func (e BulkOutcome) Valid() bool

Valid indicates whether the value is a known member of the BulkOutcome enum.

type ButtonSetItem

type ButtonSetItem struct {
	Button ButtonSetItemButton `json:"button"`

	// Preset A Snooze preset. `tomorrow` ends at the first start of the working day (`organization.workday_start`) after now, `week_start` at the first start of the working day on the first day of the week (`organization.week_start`) after now. After now is strict, so at the start itself the next one counts, and before the start of the working day `tomorrow` ends the same morning.
	Preset *SnoozePreset `json:"preset,omitempty"`

	// SnoozeSeconds The Snooze duration in seconds, as `route.snooze_durations` names it; at least 1.
	SnoozeSeconds *int64 `json:"snooze_seconds,omitempty"`
}

ButtonSetItem One entry of a button set (C-28.FR-8): `acknowledge` (Acknowledge, with Unacknowledge on an acknowledged Root message), `resolve`, `snooze` — one Snooze duration by its value, `snooze_seconds`, at least 1 and required with `snooze` — or `snooze_preset` — one Snooze preset, `preset`, required with `snooze_preset`. Fields the button does not take are ignored. A duration that no Route has is accepted and simply never shown. Refused with `422` `validation-failed` at the item's pointer: `required` for a missing `snooze_seconds` or `preset`, `out_of_range` for a `snooze_seconds` below 1, `duplicate` for the same button, duration or preset a second time.

type ButtonSetItemButton

type ButtonSetItemButton string

ButtonSetItemButton defines model for ButtonSetItem.Button.

const (
	ButtonSetItemButtonAcknowledge  ButtonSetItemButton = "acknowledge"
	ButtonSetItemButtonResolve      ButtonSetItemButton = "resolve"
	ButtonSetItemButtonSnooze       ButtonSetItemButton = "snooze"
	ButtonSetItemButtonSnoozePreset ButtonSetItemButton = "snooze_preset"
)

Defines values for ButtonSetItemButton.

func (ButtonSetItemButton) Valid

func (e ButtonSetItemButton) Valid() bool

Valid indicates whether the value is a known member of the ButtonSetItemButton enum.

type ChainEntry

type ChainEntry struct {
	// ChainId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ChainId PublicId `json:"chain_id"`

	// SeverityCondition Omitted, `any`.
	SeverityCondition *SeverityCondition `json:"severity_condition,omitempty"`
}

ChainEntry An Escalation chain that a Route or a Team names, with its Severity condition (C-32.FR-2), checked against the Severity level of the Alert Group.

type ChangePasswordJSONRequestBody

type ChangePasswordJSONRequestBody = PasswordChange

ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.

type ChangePasswordResponse

type ChangePasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ChangePasswordResponse429Headers
}

func ParseChangePasswordResponse

func ParseChangePasswordResponse(rsp *http.Response) (*ChangePasswordResponse, error)

ParseChangePasswordResponse parses an HTTP response from a ChangePasswordWithResponse call

func (ChangePasswordResponse) ContentType

func (r ChangePasswordResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangePasswordResponse) GetApplicationproblemJSON400

func (r ChangePasswordResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ChangePasswordResponse) GetApplicationproblemJSON401

func (r ChangePasswordResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ChangePasswordResponse) GetApplicationproblemJSON403

func (r ChangePasswordResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ChangePasswordResponse) GetApplicationproblemJSON409

func (r ChangePasswordResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ChangePasswordResponse) GetApplicationproblemJSON422

func (r ChangePasswordResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ChangePasswordResponse) GetApplicationproblemJSON429

func (r ChangePasswordResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ChangePasswordResponse) GetBody

func (r ChangePasswordResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ChangePasswordResponse) Status

func (r ChangePasswordResponse) Status() string

Status returns HTTPResponse.Status

func (ChangePasswordResponse) StatusCode

func (r ChangePasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangePasswordResponse429Headers

type ChangePasswordResponse429Headers struct {
	RetryAfter *int
}

ChangePasswordResponse429Headers the declared response headers of an HTTP 429 response for ChangePassword

type CheckConnectionDraftJSONRequestBody

type CheckConnectionDraftJSONRequestBody = ConnectionDraft

CheckConnectionDraftJSONRequestBody defines body for CheckConnectionDraft for application/json ContentType.

type CheckConnectionDraftResponse

type CheckConnectionDraftResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ConnectionCheckResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CheckConnectionDraftResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CheckConnectionDraftResponse503Headers
}

func ParseCheckConnectionDraftResponse

func ParseCheckConnectionDraftResponse(rsp *http.Response) (*CheckConnectionDraftResponse, error)

ParseCheckConnectionDraftResponse parses an HTTP response from a CheckConnectionDraftWithResponse call

func (CheckConnectionDraftResponse) ContentType

func (r CheckConnectionDraftResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CheckConnectionDraftResponse) GetApplicationproblemJSON400

func (r CheckConnectionDraftResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CheckConnectionDraftResponse) GetApplicationproblemJSON401

func (r CheckConnectionDraftResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CheckConnectionDraftResponse) GetApplicationproblemJSON403

func (r CheckConnectionDraftResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CheckConnectionDraftResponse) GetApplicationproblemJSON422

func (r CheckConnectionDraftResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CheckConnectionDraftResponse) GetApplicationproblemJSON429

func (r CheckConnectionDraftResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CheckConnectionDraftResponse) GetApplicationproblemJSON503

func (r CheckConnectionDraftResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CheckConnectionDraftResponse) GetBody

func (r CheckConnectionDraftResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CheckConnectionDraftResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CheckConnectionDraftResponse) Status

Status returns HTTPResponse.Status

func (CheckConnectionDraftResponse) StatusCode

func (r CheckConnectionDraftResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckConnectionDraftResponse429Headers

type CheckConnectionDraftResponse429Headers struct {
	RetryAfter *int
}

CheckConnectionDraftResponse429Headers the declared response headers of an HTTP 429 response for CheckConnectionDraft

type CheckConnectionDraftResponse503Headers

type CheckConnectionDraftResponse503Headers struct {
	RetryAfter *int
}

CheckConnectionDraftResponse503Headers the declared response headers of an HTTP 503 response for CheckConnectionDraft

type CheckConnectionJSONRequestBody

type CheckConnectionJSONRequestBody = ConnectionCheckRequest

CheckConnectionJSONRequestBody defines body for CheckConnection for application/json ContentType.

type CheckConnectionResponse

type CheckConnectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ConnectionCheckResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CheckConnectionResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CheckConnectionResponse503Headers
}

func ParseCheckConnectionResponse

func ParseCheckConnectionResponse(rsp *http.Response) (*CheckConnectionResponse, error)

ParseCheckConnectionResponse parses an HTTP response from a CheckConnectionWithResponse call

func (CheckConnectionResponse) ContentType

func (r CheckConnectionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CheckConnectionResponse) GetApplicationproblemJSON400

func (r CheckConnectionResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CheckConnectionResponse) GetApplicationproblemJSON401

func (r CheckConnectionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CheckConnectionResponse) GetApplicationproblemJSON403

func (r CheckConnectionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CheckConnectionResponse) GetApplicationproblemJSON404

func (r CheckConnectionResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CheckConnectionResponse) GetApplicationproblemJSON429

func (r CheckConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CheckConnectionResponse) GetApplicationproblemJSON503

func (r CheckConnectionResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CheckConnectionResponse) GetBody

func (r CheckConnectionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CheckConnectionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CheckConnectionResponse) Status

func (r CheckConnectionResponse) Status() string

Status returns HTTPResponse.Status

func (CheckConnectionResponse) StatusCode

func (r CheckConnectionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckConnectionResponse429Headers

type CheckConnectionResponse429Headers struct {
	RetryAfter *int
}

CheckConnectionResponse429Headers the declared response headers of an HTTP 429 response for CheckConnection

type CheckConnectionResponse503Headers

type CheckConnectionResponse503Headers struct {
	RetryAfter *int
}

CheckConnectionResponse503Headers the declared response headers of an HTTP 503 response for CheckConnection

type CheckDestinationResponse

type CheckDestinationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DestinationCheckResult
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CheckDestinationResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CheckDestinationResponse503Headers
}

func ParseCheckDestinationResponse

func ParseCheckDestinationResponse(rsp *http.Response) (*CheckDestinationResponse, error)

ParseCheckDestinationResponse parses an HTTP response from a CheckDestinationWithResponse call

func (CheckDestinationResponse) ContentType

func (r CheckDestinationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CheckDestinationResponse) GetApplicationproblemJSON401

func (r CheckDestinationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CheckDestinationResponse) GetApplicationproblemJSON403

func (r CheckDestinationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CheckDestinationResponse) GetApplicationproblemJSON404

func (r CheckDestinationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CheckDestinationResponse) GetApplicationproblemJSON422

func (r CheckDestinationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CheckDestinationResponse) GetApplicationproblemJSON429

func (r CheckDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CheckDestinationResponse) GetApplicationproblemJSON503

func (r CheckDestinationResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CheckDestinationResponse) GetBody

func (r CheckDestinationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CheckDestinationResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CheckDestinationResponse) Status

func (r CheckDestinationResponse) Status() string

Status returns HTTPResponse.Status

func (CheckDestinationResponse) StatusCode

func (r CheckDestinationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckDestinationResponse429Headers

type CheckDestinationResponse429Headers struct {
	RetryAfter *int
}

CheckDestinationResponse429Headers the declared response headers of an HTTP 429 response for CheckDestination

type CheckDestinationResponse503Headers

type CheckDestinationResponse503Headers struct {
	RetryAfter *int
}

CheckDestinationResponse503Headers the declared response headers of an HTTP 503 response for CheckDestination

type CheckOidcSettingsResponse

type CheckOidcSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OidcCheckResult
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CheckOidcSettingsResponse429Headers
}

func ParseCheckOidcSettingsResponse

func ParseCheckOidcSettingsResponse(rsp *http.Response) (*CheckOidcSettingsResponse, error)

ParseCheckOidcSettingsResponse parses an HTTP response from a CheckOidcSettingsWithResponse call

func (CheckOidcSettingsResponse) ContentType

func (r CheckOidcSettingsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CheckOidcSettingsResponse) GetApplicationproblemJSON401

func (r CheckOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CheckOidcSettingsResponse) GetApplicationproblemJSON403

func (r CheckOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CheckOidcSettingsResponse) GetApplicationproblemJSON429

func (r CheckOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CheckOidcSettingsResponse) GetBody

func (r CheckOidcSettingsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CheckOidcSettingsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CheckOidcSettingsResponse) Status

func (r CheckOidcSettingsResponse) Status() string

Status returns HTTPResponse.Status

func (CheckOidcSettingsResponse) StatusCode

func (r CheckOidcSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckOidcSettingsResponse429Headers

type CheckOidcSettingsResponse429Headers struct {
	RetryAfter *int
}

CheckOidcSettingsResponse429Headers the declared response headers of an HTTP 429 response for CheckOidcSettings

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AcceptRouteSuggestion

func (c *Client) AcceptRouteSuggestion(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AcceptRouteSuggestion Accept a Route suggestion

Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.

Takes a body of the `application/json` content type.

Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).

func (*Client) AcceptRouteSuggestionWithBody

func (c *Client) AcceptRouteSuggestionWithBody(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AcceptRouteSuggestionWithBody Accept a Route suggestion

Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.

Takes any type of body and a specified content type.

Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).

func (*Client) AcknowledgeAlertGroup

func (c *Client) AcknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

AcknowledgeAlertGroup Acknowledge

From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.

Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).

func (*Client) AddTeamUser

func (c *Client) AddTeamUser(ctx context.Context, teamId TeamId, body AddTeamUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AddTeamUser Add a person to a Team

Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.

Takes a body of the `application/json` content type.

Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).

func (*Client) AddTeamUserWithBody

func (c *Client) AddTeamUserWithBody(ctx context.Context, teamId TeamId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AddTeamUserWithBody Add a person to a Team

Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.

Takes any type of body and a specified content type.

Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).

func (*Client) AnswerReminder

func (c *Client) AnswerReminder(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

AnswerReminder Answer a Reminder with "Still on it"

Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.

Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).

func (*Client) BeginTotpEnrolment

func (c *Client) BeginTotpEnrolment(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

BeginTotpEnrolment Begin TOTP enrolment

Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.

Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).

func (*Client) BridgeEvent

func (c *Client) BridgeEvent(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

BridgeEvent Receive a Bridge event (push event delivery)

Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.

Takes a body of the `application/json` content type.

Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).

func (*Client) BridgeEventWithBody

func (c *Client) BridgeEventWithBody(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

BridgeEventWithBody Receive a Bridge event (push event delivery)

Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.

Takes any type of body and a specified content type.

Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).

func (*Client) ChangePassword

func (c *Client) ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ChangePassword Change own password

Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.

Takes a body of the `application/json` content type.

Corresponds with PUT /me/password (the `ChangePassword` operationId).

func (*Client) ChangePasswordWithBody

func (c *Client) ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ChangePasswordWithBody Change own password

Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.

Takes any type of body and a specified content type.

Corresponds with PUT /me/password (the `ChangePassword` operationId).

func (*Client) CheckConnection

func (c *Client) CheckConnection(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckConnection Check a Connection

Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.

Takes a body of the `application/json` content type.

Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).

func (*Client) CheckConnectionDraft

func (c *Client) CheckConnectionDraft(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckConnectionDraft Check a Connection before saving it

Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.

Takes a body of the `application/json` content type.

Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).

func (*Client) CheckConnectionDraftWithBody

func (c *Client) CheckConnectionDraftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckConnectionDraftWithBody Check a Connection before saving it

Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.

Takes any type of body and a specified content type.

Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).

func (*Client) CheckConnectionWithBody

func (c *Client) CheckConnectionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckConnectionWithBody Check a Connection

Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.

Takes any type of body and a specified content type.

Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).

func (*Client) CheckDestination

func (c *Client) CheckDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckDestination Run the Destination check

Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.

Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).

func (*Client) CheckOidcSettings

func (c *Client) CheckOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckOidcSettings Check the connection to the identity provider

Fetches discovery through the outbound HTTP package, with the saved proxy, keeps its `claims_supported` for the settings, and reports, for the groups claim and every claim an entry of the mapping names, whether it is advertised. While no sign-in has seen a claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` for it and a listed one clears it; once a sign-in has seen the claim, the check changes nothing for it.

Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).

func (c *Client) CompleteOidcLink(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CompleteOidcLink Complete linking an OIDC identity

Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.

Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).

func (*Client) CompleteOidcSignIn

func (c *Client) CompleteOidcSignIn(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CompleteOidcSignIn Complete OIDC sign-in

Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).

Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).

func (*Client) CompletePasswordSetup

func (c *Client) CompletePasswordSetup(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CompletePasswordSetup Set a password from a setup link

Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).

Takes a body of the `application/json` content type.

Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).

func (*Client) CompletePasswordSetupWithBody

func (c *Client) CompletePasswordSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CompletePasswordSetupWithBody Set a password from a setup link

Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).

Takes any type of body and a specified content type.

Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).

func (c *Client) ConfirmBridgeLink(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmBridgeLink Confirm a Bridge link with the code

At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).

func (*Client) ConfirmBridgeLinkWithBody

func (c *Client) ConfirmBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmBridgeLinkWithBody Confirm a Bridge link with the code

At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).

func (c *Client) ConfirmMattermostLink(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmMattermostLink Confirm a Mattermost link with the code

At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).

func (*Client) ConfirmMattermostLinkWithBody

func (c *Client) ConfirmMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmMattermostLinkWithBody Confirm a Mattermost link with the code

At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).

func (*Client) ConfirmMyGatewayContact

func (c *Client) ConfirmMyGatewayContact(ctx context.Context, gatewayContactId GatewayContactId, body ConfirmMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmMyGatewayContact Confirm an own contact with the code

Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).

Takes a body of the `application/json` content type.

Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).

func (*Client) ConfirmMyGatewayContactWithBody

func (c *Client) ConfirmMyGatewayContactWithBody(ctx context.Context, gatewayContactId GatewayContactId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmMyGatewayContactWithBody Confirm an own contact with the code

Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).

Takes any type of body and a specified content type.

Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).

func (c *Client) ConfirmSlackLink(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmSlackLink Confirm a Slack link with the code

At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).

func (*Client) ConfirmSlackLinkWithBody

func (c *Client) ConfirmSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmSlackLinkWithBody Confirm a Slack link with the code

At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).

func (*Client) ConfirmTotpEnrolment

func (c *Client) ConfirmTotpEnrolment(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmTotpEnrolment Confirm TOTP enrolment

Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.

Takes a body of the `application/json` content type.

Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).

func (*Client) ConfirmTotpEnrolmentWithBody

func (c *Client) ConfirmTotpEnrolmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ConfirmTotpEnrolmentWithBody Confirm TOTP enrolment

Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.

Takes any type of body and a specified content type.

Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).

func (*Client) ConvertUserToLocal

func (c *Client) ConvertUserToLocal(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

ConvertUserToLocal Convert an OIDC account to local

Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.

Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).

func (*Client) CreateAlertGroupNote

func (c *Client) CreateAlertGroupNote(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateAlertGroupNote Add a Note

Adds a Note. Service accounts may add Notes; the author is shown as the Service account.

Takes a body of the `application/json` content type.

Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).

func (*Client) CreateAlertGroupNoteWithBody

func (c *Client) CreateAlertGroupNoteWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateAlertGroupNoteWithBody Add a Note

Adds a Note. Service accounts may add Notes; the author is shown as the Service account.

Takes any type of body and a specified content type.

Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).

func (*Client) CreateConnection

func (c *Client) CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateConnection Create Connection

`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.

Takes a body of the `application/json` content type.

Corresponds with POST /connections (the `CreateConnection` operationId).

func (*Client) CreateConnectionWithBody

func (c *Client) CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateConnectionWithBody Create Connection

`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.

Takes any type of body and a specified content type.

Corresponds with POST /connections (the `CreateConnection` operationId).

func (*Client) CreateDestination

func (c *Client) CreateDestination(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateDestination Create Destination

`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.

Takes a body of the `application/json` content type.

Corresponds with POST /destinations (the `CreateDestination` operationId).

func (*Client) CreateDestinationWithBody

func (c *Client) CreateDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateDestinationWithBody Create Destination

`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.

Takes any type of body and a specified content type.

Corresponds with POST /destinations (the `CreateDestination` operationId).

func (*Client) CreateEscalationChain

func (c *Client) CreateEscalationChain(ctx context.Context, body CreateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateEscalationChain Create an Escalation chain

A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.

Takes a body of the `application/json` content type.

Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).

func (*Client) CreateEscalationChainWithBody

func (c *Client) CreateEscalationChainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateEscalationChainWithBody Create an Escalation chain

A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.

Takes any type of body and a specified content type.

Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).

func (*Client) CreateIntegration

func (c *Client) CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIntegration Create Integration

Takes a body of the `application/json` content type.

Corresponds with POST /integrations (the `CreateIntegration` operationId).

func (*Client) CreateIntegrationToken

func (c *Client) CreateIntegrationToken(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIntegrationToken Create an Integration token

The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.

Takes a body of the `application/json` content type.

Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).

func (*Client) CreateIntegrationTokenWithBody

func (c *Client) CreateIntegrationTokenWithBody(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIntegrationTokenWithBody Create an Integration token

The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.

Takes any type of body and a specified content type.

Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).

func (*Client) CreateIntegrationWithBody

func (c *Client) CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIntegrationWithBody Create Integration

Takes any type of body and a specified content type.

Corresponds with POST /integrations (the `CreateIntegration` operationId).

func (*Client) CreateLinkRule

func (c *Client) CreateLinkRule(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateLinkRule Create LinkRule

Takes a body of the `application/json` content type.

Corresponds with POST /link-rules (the `CreateLinkRule` operationId).

func (*Client) CreateLinkRuleWithBody

func (c *Client) CreateLinkRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateLinkRuleWithBody Create LinkRule

Takes any type of body and a specified content type.

Corresponds with POST /link-rules (the `CreateLinkRule` operationId).

func (*Client) CreateLookupTable

func (c *Client) CreateLookupTable(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateLookupTable Create LookupTable

Takes a body of the `application/json` content type.

Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).

func (*Client) CreateLookupTableWithBody

func (c *Client) CreateLookupTableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateLookupTableWithBody Create LookupTable

Takes any type of body and a specified content type.

Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).

func (*Client) CreateMyGatewayContact

func (c *Client) CreateMyGatewayContact(ctx context.Context, body CreateMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateMyGatewayContact Add an own contact at a Notification gateway

Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.

Takes a body of the `application/json` content type.

Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).

func (*Client) CreateMyGatewayContactWithBody

func (c *Client) CreateMyGatewayContactWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateMyGatewayContactWithBody Add an own contact at a Notification gateway

Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.

Takes any type of body and a specified content type.

Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).

func (c *Client) CreatePasswordSetupLink(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

CreatePasswordSetupLink Issue a password setup link

Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).

Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).

func (*Client) CreatePersonalAccessToken

func (c *Client) CreatePersonalAccessToken(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreatePersonalAccessToken Create a Personal access token

Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.

Takes a body of the `application/json` content type.

Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).

func (*Client) CreatePersonalAccessTokenWithBody

func (c *Client) CreatePersonalAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreatePersonalAccessTokenWithBody Create a Personal access token

Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.

Takes any type of body and a specified content type.

Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).

func (*Client) CreateRoute

func (c *Client) CreateRoute(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRoute Create a Route

Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.

Takes a body of the `application/json` content type.

Corresponds with POST /routes (the `CreateRoute` operationId).

func (*Client) CreateRouteWithBody

func (c *Client) CreateRouteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRouteWithBody Create a Route

Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.

Takes any type of body and a specified content type.

Corresponds with POST /routes (the `CreateRoute` operationId).

func (*Client) CreateSchedule

func (c *Client) CreateSchedule(ctx context.Context, body CreateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSchedule Create a Schedule

A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).

Takes a body of the `application/json` content type.

Corresponds with POST /schedules (the `CreateSchedule` operationId).

func (*Client) CreateScheduleOverride

func (c *Client) CreateScheduleOverride(ctx context.Context, scheduleId ScheduleId, body CreateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateScheduleOverride Create an Override

From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).

Takes a body of the `application/json` content type.

Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).

func (*Client) CreateScheduleOverrideWithBody

func (c *Client) CreateScheduleOverrideWithBody(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateScheduleOverrideWithBody Create an Override

From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).

Takes any type of body and a specified content type.

Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).

func (*Client) CreateScheduleWithBody

func (c *Client) CreateScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateScheduleWithBody Create a Schedule

A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).

Takes any type of body and a specified content type.

Corresponds with POST /schedules (the `CreateSchedule` operationId).

func (*Client) CreateServiceAccount

func (c *Client) CreateServiceAccount(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateServiceAccount Create a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type.

Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).

func (*Client) CreateServiceAccountToken

func (c *Client) CreateServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateServiceAccountToken Create a Service account token

Shows the token once. Web session only: a token can never mint another token.

Takes a body of the `application/json` content type.

Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).

func (*Client) CreateServiceAccountTokenWithBody

func (c *Client) CreateServiceAccountTokenWithBody(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateServiceAccountTokenWithBody Create a Service account token

Shows the token once. Web session only: a token can never mint another token.

Takes any type of body and a specified content type.

Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).

func (*Client) CreateServiceAccountWithBody

func (c *Client) CreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateServiceAccountWithBody Create a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type.

Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).

func (*Client) CreateSession

func (c *Client) CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSession Sign in with a local account

Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).

Takes a body of the `application/json` content type.

Corresponds with POST /sessions (the `CreateSession` operationId).

func (*Client) CreateSessionWithBody

func (c *Client) CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSessionWithBody Sign in with a local account

Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).

Takes any type of body and a specified content type.

Corresponds with POST /sessions (the `CreateSession` operationId).

func (*Client) CreateTeam

func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTeam Create a Team

The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.

Takes a body of the `application/json` content type.

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*Client) CreateTeamWithBody

func (c *Client) CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTeamWithBody Create a Team

The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.

Takes any type of body and a specified content type.

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUser Create a local user

Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type.

Corresponds with POST /users (the `CreateUser` operationId).

func (*Client) CreateUserGatewayContact

func (c *Client) CreateUserGatewayContact(ctx context.Context, userId UserId, body CreateUserGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUserGatewayContact Set a user's contact (always refused)

Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.

Takes a body of the `application/json` content type.

Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).

func (*Client) CreateUserGatewayContactWithBody

func (c *Client) CreateUserGatewayContactWithBody(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUserGatewayContactWithBody Set a user's contact (always refused)

Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.

Takes any type of body and a specified content type.

Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).

func (*Client) CreateUserWithBody

func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUserWithBody Create a local user

Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type.

Corresponds with POST /users (the `CreateUser` operationId).

func (*Client) DeleteConnection

func (c *Client) DeleteConnection(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteConnection Delete Connection

A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered. The deletion also deletes the Team mentions of the Connection, each recorded in the Audit log of its Team; when Teams keep giving the Connection a first Team mention while it runs, it is run again, and after three attempts it answers `409` (`team_mentions_changed`) and deletes nothing: delete it again.

Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).

func (*Client) DeleteCurrentSession

func (c *Client) DeleteCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteCurrentSession Sign out

Ends the session, in any state.

Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).

func (*Client) DeleteDestination

func (c *Client) DeleteDestination(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteDestination Delete Destination

Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.

Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).

func (*Client) DeleteDestinationSecret

func (c *Client) DeleteDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteDestinationSecret Delete a Secret of a webhook Destination

`If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.

Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).

func (*Client) DeleteEscalationChain

func (c *Client) DeleteEscalationChain(ctx context.Context, escalationChainId EscalationChainId, params *DeleteEscalationChainParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteEscalationChain Delete an Escalation chain

Deletes the chain with its steps. A chain that a Route or a Team names is refused with `409` `chain_in_use`, which names them in `in_use_by`.

Corresponds with DELETE /escalation-chains/{escalation_chain_id} (the `DeleteEscalationChain` operationId).

func (*Client) DeleteIntegration

func (c *Client) DeleteIntegration(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteIntegration Delete Integration

Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).

Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).

func (*Client) DeleteLinkRule

func (c *Client) DeleteLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteLinkRule Delete LinkRule

The built-in "Explore" rule cannot be deleted (`409`).

Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).

func (*Client) DeleteLookupTable

func (c *Client) DeleteLookupTable(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteLookupTable Delete LookupTable

Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.

Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).

func (c *Client) DeleteMyAccountLink(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteMyAccountLink Unlink an own messenger account

Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).

Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).

func (*Client) DeleteMyGatewayContact

func (c *Client) DeleteMyGatewayContact(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteMyGatewayContact Remove an own contact at a Notification gateway

Removes one of the caller's contacts, confirmed or not; a confirmed contact is no longer called. Its codes can no longer confirm anything, but stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, so that removing and adding a contact again does not reset the limits. Recorded in the Audit log as `gateway_contact.deleted`. Web session only: a token gets `403` (`session_required`).

Corresponds with DELETE /me/gateway-contacts/{gateway_contact_id} (the `DeleteMyGatewayContact` operationId).

func (*Client) DeleteMySessions

func (c *Client) DeleteMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteMySessions Sign out everywhere

Ends every session of the user, the current one included. Web session only.

Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).

func (*Client) DeleteRoute

func (c *Client) DeleteRoute(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteRoute Delete a Route

Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.

Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).

func (*Client) DeleteSchedule

func (c *Client) DeleteSchedule(ctx context.Context, scheduleId ScheduleId, params *DeleteScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteSchedule Delete a Schedule

Deletes the Schedule with its Rotation layers and Overrides. Deleting a Team's main Schedule leaves the Team without one until an Admin marks another (P-66). A Schedule that an Escalation step names is refused with `409` `schedule_in_use`, which names the chains in `in_use_by`.

Corresponds with DELETE /schedules/{schedule_id} (the `DeleteSchedule` operationId).

func (*Client) DeleteScheduleOverride

func (c *Client) DeleteScheduleOverride(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *DeleteScheduleOverrideParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteScheduleOverride Delete an Override

With the precondition of `createScheduleOverride`. An Override that has ended is refused with `409` `override_ended`, so that the past Result stays as it was. An Override that has begun is ended now instead of removed — its `end` becomes the business clock”s now and its past part stays in the Result — and the Audit log records `schedule_override.deleted` with that change of the end.

Corresponds with DELETE /schedules/{schedule_id}/overrides/{override_id} (the `DeleteScheduleOverride` operationId).

func (*Client) DeleteServiceAccount

func (c *Client) DeleteServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteServiceAccount Delete a Service account

Revokes its tokens.

Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).

func (*Client) DeleteTeam

func (c *Client) DeleteTeam(ctx context.Context, teamId TeamId, params *DeleteTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteTeam Delete a Team

Removes the Team's people and Working hours and leaves the Routes and Destinations it owned without an owner, each with a new `version`; the Team stays, marked deleted, for what names it, and its slug is free at once. A Team that has Schedules or owns Escalation chains is refused with `409` `team_in_use`, which names them in `in_use_by`; its `chain_entries` are removed with it.

Corresponds with DELETE /teams/{team_id} (the `DeleteTeam` operationId).

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteUser Delete a user

Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked, Account links are removed and the iCal feed is deleted. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).

Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).

func (c *Client) DeleteUserAccountLink(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteUserAccountLink Remove a user's Account link

Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).

Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).

func (*Client) DeleteUserGatewayContact

func (c *Client) DeleteUserGatewayContact(ctx context.Context, userId UserId, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteUserGatewayContact Remove a user's contact at a Notification gateway

Admins can remove any contact but never set one. Its codes stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, as for `deleteMyGatewayContact`. Recorded in the Audit log as `gateway_contact.deleted`. An Admin's own contact is removed from the web session only; with a token the answer is `403` (`session_required`).

Corresponds with DELETE /users/{user_id}/gateway-contacts/{gateway_contact_id} (the `DeleteUserGatewayContact` operationId).

func (*Client) DisableServiceAccount

func (c *Client) DisableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

DisableServiceAccount Disable a Service account

Its tokens stop working until the account is enabled again.

Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).

func (*Client) DisableUser

func (c *Client) DisableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

DisableUser Disable a user

Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).

Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).

func (*Client) DismissRouteSuggestion

func (c *Client) DismissRouteSuggestion(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*http.Response, error)

DismissRouteSuggestion Dismiss a Route suggestion

Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.

Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).

func (*Client) EnableServiceAccount

func (c *Client) EnableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

EnableServiceAccount Enable a Service account

Makes a disabled Service account usable again; its tokens work again.

Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).

func (*Client) EnableUser

func (c *Client) EnableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

EnableUser Enable a user

Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).

func (*Client) GenerateSigningSecret

func (c *Client) GenerateSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

GenerateSigningSecret Regenerate the Signing secret

The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.

Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).

func (*Client) GetAlertGroup

func (c *Client) GetAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetAlertGroup Read an Alert Group

An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.

Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).

func (*Client) GetAlertGroupActorStatistics

func (c *Client) GetAlertGroupActorStatistics(ctx context.Context, params *GetAlertGroupActorStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetAlertGroupActorStatistics Read Alert Group statistics by people

Who acted on the Alert Groups that started in [`from`, `to`) and match the filters, which combine with AND, matched as in `getAlertGroupStatistics`: one item per User that acknowledged at least one of them first or resolved at least one, and one per Service account that resolved at least one. `acknowledged_first_count` counts the Alert Groups whose first acknowledgement the actor made, also after `to`, with its time to acknowledge; `resolved_count` those the actor resolved, by its resolver. An Alert Group gives at most one of each, to one actor; one never acknowledged counts in no `acknowledged_first_count`, and one resolved by the system in no `resolved_count`. The Alert Groups that were acknowledged but whose first acknowledgement names nobody — an Alert Group acknowledged before 0.2.0 whose Timeline was no longer whole, or on a replica of an earlier version — make one item with `actor` null, last, with `resolved_count` 0; never with `first_acknowledged_by`. So `acknowledged_first_count` adds up over the items to the `time_to_acknowledge.count` of `getAlertGroupStatistics?group_by=route` for the same period and filters. The items are complete, not paginated: by `acknowledged_first_count`, most first, then by name regardless of case, then by the exact name, then by `public_id`.

Corresponds with GET /alert-group-actor-statistics (the `GetAlertGroupActorStatistics` operationId).

func (*Client) GetAlertGroupCounts

func (c *Client) GetAlertGroupCounts(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetAlertGroupCounts Count Alert Groups per status

Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.

Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).

func (*Client) GetAlertGroupStatistics

func (c *Client) GetAlertGroupStatistics(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetAlertGroupStatistics Read Alert Group statistics

Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route, per Integration or per Team as `group_by` says. The period selects the Alert Groups that started in [`from`, `to`), not those whose lifetime overlaps it, as the list's time range does. The filters `route`, `integration`, `severity`, `urgent`, `team`, `reopened`, `label` and `first_acknowledged_by` combine with AND, matched as `listAlertGroups` matches them, for every `group_by`; the filter of the kind of `group_by` also chooses the items (`team=mine` the caller's Teams). Without it every Route, Integration or Team that is not deleted is an item, and each deleted one with Alert Groups in the period. An Alert Group with Alerts from several Integrations counts for each, and one with several Teams for each Team; one without a Team counts for no Team.

Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).

func (*Client) GetAlertGroupTimeline

func (c *Client) GetAlertGroupTimeline(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetAlertGroupTimeline Read the Timeline of an Alert Group

Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.

Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).

func (*Client) GetConnection

func (c *Client) GetConnection(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetConnection Read Connection

Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).

func (*Client) GetCurrentSession

func (c *Client) GetCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCurrentSession Read the current session

Returns the session in any state, including the CSRF token the SPA sends on mutating requests.

Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).

func (*Client) GetDestination

func (c *Client) GetDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDestination Read Destination

Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).

func (*Client) GetEscalationChain

func (c *Client) GetEscalationChain(ctx context.Context, escalationChainId EscalationChainId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetEscalationChain Read an Escalation chain

Corresponds with GET /escalation-chains/{escalation_chain_id} (the `GetEscalationChain` operationId).

func (*Client) GetIntegration

func (c *Client) GetIntegration(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetIntegration Read Integration

Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).

func (*Client) GetKeyring

func (c *Client) GetKeyring(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetKeyring Read the Keyring status

Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.

Corresponds with GET /organization/keyring (the `GetKeyring` operationId).

func (*Client) GetLinkRule

func (c *Client) GetLinkRule(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetLinkRule Read LinkRule

Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).

func (*Client) GetLookupTable

func (c *Client) GetLookupTable(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetLookupTable Read LookupTable

Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).

func (*Client) GetMe

func (c *Client) GetMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMe Read own profile

The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).

Corresponds with GET /me (the `GetMe` operationId).

func (*Client) GetMyIcalFeed

func (c *Client) GetMyIcalFeed(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMyIcalFeed Read whether the caller has an iCal feed

Whether the caller's personal iCal feed exists and when it was issued; the token and the link are never shown again. Service account tokens get `403` (`service_account_not_allowed`).

Corresponds with GET /me/ical-feed (the `GetMyIcalFeed` operationId).

func (*Client) GetMyNotificationRules

func (c *Client) GetMyNotificationRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMyNotificationRules Read own Notification rules

The caller's normal and important rule as in effect (C-31.FR-1, FR-2): in the state `organization` the Organization's current rules, otherwise those stored when the caller chose the state. A call action reads `available` false with `unavailable_reason` `gateway_deleted` once its gateway was deleted or is no Notification gateway any more, and `no_confirmed_contact` once the caller has no confirmed contact there; it stays in the rule. Web session only: a token gets `403` (`session_required`).

Corresponds with GET /me/notification-rules (the `GetMyNotificationRules` operationId).

func (*Client) GetMyTotp

func (c *Client) GetMyTotp(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMyTotp Read own TOTP status

Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).

Corresponds with GET /me/totp (the `GetMyTotp` operationId).

func (*Client) GetOidcSettings

func (c *Client) GetOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOidcSettings Read OIDC settings

The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.

Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).

func (*Client) GetOnCallNow

func (c *Client) GetOnCallNow(ctx context.Context, params *GetOnCallNowParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOnCallNow Read who is On-call now in each Team

"On call now" (C-27.FR-9): for each Team that is not deleted, sorted by name ignoring case, the On-call of its main Schedule at the business clock's now with the Rotation layer that decides it, until when, and the segment that follows — its person, or a gap — within `schedule.gap_view`, and the Destinations of the Team, and of the Escalation chains that Page the main Schedule, that a Mention of the On-call cannot reach (C-27.FR-8, FR-9); a Team without a main Schedule has `no_schedule` true. Overrides count as in the Result of the Schedule. Every Role reads it.

Corresponds with GET /on-call-now (the `GetOnCallNow` operationId).

func (*Client) GetOpenApiSpec

func (c *Client) GetOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOpenApiSpec Read this specification

The specification the binary was built from, as checked in at `api/openapi.yaml`.

Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).

func (*Client) GetOrganization

func (c *Client) GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOrganization Read the Organization

Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.

Corresponds with GET /organization (the `GetOrganization` operationId).

func (*Client) GetOutboundPolicy

func (c *Client) GetOutboundPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOutboundPolicy Read the outbound address policy

The outbound address policy with the rules that always apply. Needs `organization:read`.

Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).

func (*Client) GetRequestRecord

func (c *Client) GetRequestRecord(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRequestRecord Read a record of the Request log

One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.

Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).

func (*Client) GetRoute

func (c *Client) GetRoute(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRoute Read a Route

Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).

func (*Client) GetSchedule

func (c *Client) GetSchedule(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSchedule Read a Schedule

Corresponds with GET /schedules/{schedule_id} (the `GetSchedule` operationId).

func (*Client) GetScheduleOnCall

func (c *Client) GetScheduleOnCall(ctx context.Context, scheduleId ScheduleId, params *GetScheduleOnCallParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetScheduleOnCall Read the On-call and the Result of a Schedule

The Result of the Schedule over a period on the business clock: its segments, each with the person On-call or none in a gap, the Shifts of each Rotation layer and the Overrides in the period, and the warnings about the people who may not be Paged — Viewers, disabled Users and Users not in the Team, whose Shifts and Overrides are skipped — followed by a warning `gap` with its `start` and `end` for each gap of the period, cut to it (C-27.FR-7), and by a warning `unreachable` for each segment of the period with a person, for each Destination of the Schedule's Team, and each Destination of a Route or a Team that names an Escalation chain with a `page_on_call` step on the Schedule, that a Mention of the person cannot reach, each once, with the reason (C-27.FR-8, C-32.FR-8). The period is from `from` to `to`, by default the business clock's now and `schedule.gap_view` after it; `from` and `to` are at most 10 years from now, else `422` `out_of_range` at `/query/from` or `/query/to`, and `to` must be after `from` and at most the length of `ical.window` after it, else `422` `out_of_range` at `/query/to`. A wall-clock time that a change of the clocks skips is the instant the clocks move, and one that happens twice its first occurrence.

Corresponds with GET /schedules/{schedule_id}/on-call (the `GetScheduleOnCall` operationId).

func (*Client) GetServiceAccount

func (c *Client) GetServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServiceAccount Read a Service account

Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).

func (*Client) GetSignInOptions

func (c *Client) GetSignInOptions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSignInOptions Read sign-in options

Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.

Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).

func (*Client) GetSigningSecret

func (c *Client) GetSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSigningSecret Read the Signing secret status

`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.

Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).

func (*Client) GetStoredSnapshot

func (c *Client) GetStoredSnapshot(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetStoredSnapshot Read a Stored Snapshot as received

Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).

func (*Client) GetSystemStatus

func (c *Client) GetSystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSystemStatus Read the System status

Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.

Corresponds with GET /system-status (the `GetSystemStatus` operationId).

func (*Client) GetTeam

func (c *Client) GetTeam(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTeam Read a Team

Corresponds with GET /teams/{team_id} (the `GetTeam` operationId).

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUser Read a user

Corresponds with GET /users/{user_id} (the `GetUser` operationId).

func (*Client) GetUserNotificationRules

func (c *Client) GetUserNotificationRules(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUserNotificationRules Read a user's Notification rules

The rules of a User, as `getMyNotificationRules` reads them for the caller (C-31.FR-4); a deleted User answers `404`.

Corresponds with GET /users/{user_id}/notification-rules (the `GetUserNotificationRules` operationId).

func (*Client) HeartbeatGet

func (c *Client) HeartbeatGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

HeartbeatGet Heartbeat signal (GET)

Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.

Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).

func (*Client) HeartbeatGetWithPathToken

func (c *Client) HeartbeatGetWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)

HeartbeatGetWithPathToken Heartbeat signal (GET, token in the path)

Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).

func (*Client) HeartbeatPost

func (c *Client) HeartbeatPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

HeartbeatPost Heartbeat signal (POST)

Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.

Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).

func (*Client) HeartbeatPostWithPathToken

func (c *Client) HeartbeatPostWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)

HeartbeatPostWithPathToken Heartbeat signal (POST, token in the path)

Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).

func (*Client) IngestSnapshotWithBody

func (c *Client) IngestSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IngestSnapshotWithBody Receive an Alertmanager webhook

Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.

Takes any type of body and a specified content type.

Corresponds with POST /ingest (the `IngestSnapshot` operationId).

func (*Client) IngestSnapshotWithPathTokenWithBody

func (c *Client) IngestSnapshotWithPathTokenWithBody(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IngestSnapshotWithPathTokenWithBody Receive an Alertmanager webhook (token in the path)

For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.

Takes any type of body and a specified content type.

Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).

func (*Client) IssueMyIcalFeed

func (c *Client) IssueMyIcalFeed(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

IssueMyIcalFeed Issue the caller's iCal feed

Issues a new link of the caller's personal iCal feed (`ical.token`) and shows it once; the previous link, if any, stops working at once. The feed lists the times when the caller is On-call in every Schedule (`getIcalCalendar`). Recorded in the Audit log as `ical_feed.issued`, without the token. Web session only.

Corresponds with POST /me/ical-feed (the `IssueMyIcalFeed` operationId).

func (*Client) ListAlertGroupAlerts

func (c *Client) ListAlertGroupAlerts(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAlertGroupAlerts List the Alerts of an Alert Group

Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).

func (*Client) ListAlertGroupDeliveries

func (c *Client) ListAlertGroupDeliveries(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAlertGroupDeliveries Read delivery state per Destination

The delivery state of the Alert Group in each Destination. The retention removes it with the details once `retention.alert_details` has passed since the Alert Group resolved (`details_removed`), and it is no longer listed.

Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).

func (*Client) ListAlertGroupNotes

func (c *Client) ListAlertGroupNotes(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAlertGroupNotes List Notes

Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.

Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).

func (*Client) ListAlertGroups

func (c *Client) ListAlertGroups(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAlertGroups List Alert Groups

The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.

Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).

func (*Client) ListAlertmanagerRoutes

func (c *Client) ListAlertmanagerRoutes(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAlertmanagerRoutes List learned Alertmanager routes

Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.

Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).

func (*Client) ListAuditLog

func (c *Client) ListAuditLog(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListAuditLog List Audit log entries

Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.

Corresponds with GET /audit-log (the `ListAuditLog` operationId).

func (*Client) ListConnectionChannels

func (c *Client) ListConnectionChannels(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListConnectionChannels List channels visible to the bot

The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.

Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).

func (*Client) ListConnectionGroups

func (c *Client) ListConnectionGroups(ctx context.Context, connectionId ConnectionId, params *ListConnectionGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListConnectionGroups List the groups a Connection can mention

The groups of a Connection for its Team mentions and the group entries of its Destinations (C-25.FR-8), by name. A Mattermost Connection answers the groups that may be mentioned, read with `GET /api/v4/groups?filter_allow_reference=true&include_member_count=true&per_page=200` (F-122), `truncated` when that page was full. A Slack Connection whose last check found `usergroups:read` answers the user groups that are not disabled, read with `usergroups.list` (F-125); `name` is the handle. A Telegram or Bridge Connection, and a Slack Connection without the scope, answer `409` `groups_not_listed`; a server that refuses the read answers `409`. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one.

Corresponds with GET /connections/{connection_id}/groups (the `ListConnectionGroups` operationId).

func (*Client) ListConnections

func (c *Client) ListConnections(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListConnections List connections

Corresponds with GET /connections (the `ListConnections` operationId).

func (*Client) ListDestinationSecrets

func (c *Client) ListDestinationSecrets(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListDestinationSecrets List the Secrets of a webhook Destination

Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.

Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).

func (*Client) ListDestinations

func (c *Client) ListDestinations(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListDestinations List destinations

All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.

Corresponds with GET /destinations (the `ListDestinations` operationId).

func (*Client) ListEscalationChainRuns

func (c *Client) ListEscalationChainRuns(ctx context.Context, escalationChainId EscalationChainId, params *ListEscalationChainRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListEscalationChainRuns List the runs of an Escalation chain

The recent runs of the chain on Alert Groups, newest first, for "How it went" (C-32.FR-18): one per start of the chains of an Alert Group, so an Alert Group whose chains started over has a run per start. Each run names its Alert Group, the steps it made and skipped with the reason of each skip and the Pages of each step it made, and what stopped it — the Command and its actor — or that it ran out. Runs of a chain keep its steps from when they started (P-73).

Corresponds with GET /escalation-chains/{escalation_chain_id}/runs (the `ListEscalationChainRuns` operationId).

func (*Client) ListEscalationChains

func (c *Client) ListEscalationChains(ctx context.Context, params *ListEscalationChainsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListEscalationChains List Escalation chains

The Escalation chains by name, each with its steps, the Routes and Teams that name it, the Destinations it writes in and its warnings. Every Role reads them.

Corresponds with GET /escalation-chains (the `ListEscalationChains` operationId).

func (*Client) ListIntegrationAlerts

func (c *Client) ListIntegrationAlerts(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIntegrationAlerts List the Alerts view of an Integration

The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.

Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).

func (*Client) ListIntegrationTokens

func (c *Client) ListIntegrationTokens(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIntegrationTokens List Integration tokens

Values are never returned.

Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).

func (*Client) ListIntegrations

func (c *Client) ListIntegrations(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIntegrations List integrations

Includes the built-in "Muster" Integration, marked `builtin`.

Corresponds with GET /integrations (the `ListIntegrations` operationId).

func (*Client) ListLinkRules

func (c *Client) ListLinkRules(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListLinkRules List linkrules

Corresponds with GET /link-rules (the `ListLinkRules` operationId).

func (*Client) ListLinkableConnections

func (c *Client) ListLinkableConnections(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListLinkableConnections List the Connections an account can be linked through

The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).

Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).

func (*Client) ListLookupTables

func (c *Client) ListLookupTables(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListLookupTables List lookuptables

Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).

func (c *Client) ListMyAccountLinks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListMyAccountLinks List own Account links

Service account tokens get `403` (`service_account_not_allowed`).

Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).

func (*Client) ListMyGatewayContacts

func (c *Client) ListMyGatewayContacts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListMyGatewayContacts List own contacts at Notification gateways

The caller's contacts, confirmed and unconfirmed, each with its Notification gateway; a new contact for a gateway at which the caller has a confirmed one names that one in `replaces` until it is confirmed, and until then the confirmed one stays the one called. Service account tokens get `403` (`service_account_not_allowed`).

Corresponds with GET /me/gateway-contacts (the `ListMyGatewayContacts` operationId).

func (*Client) ListMySessions

func (c *Client) ListMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListMySessions List own sessions

Sessions of the user, the current one marked.

Corresponds with GET /me/sessions (the `ListMySessions` operationId).

func (*Client) ListPersonalAccessTokens

func (c *Client) ListPersonalAccessTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListPersonalAccessTokens List own Personal access tokens

Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).

Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).

func (*Client) ListRelatedAlertGroups

func (c *Client) ListRelatedAlertGroups(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRelatedAlertGroups List previous Alert Groups with the same key

Alert Groups of the same Route with the same Group key values, newest first.

Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).

func (*Client) ListRequestLog

func (c *Client) ListRequestLog(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRequestLog List the Request log of a Connection, a Destination or a check run

The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.

Corresponds with GET /request-log (the `ListRequestLog` operationId).

func (*Client) ListRoles

func (c *Client) ListRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRoles List Roles with their Permissions

Corresponds with GET /roles (the `ListRoles` operationId).

func (*Client) ListRouteLabelSuggestions

func (c *Client) ListRouteLabelSuggestions(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRouteLabelSuggestions List the labels to suggest for "Labels in the message"

The labels of the Alerts of the Route's Alert Groups created within `routing.group_key_preview_period` (the last 24 hours), each with an example value — its most frequent value — and the number of those Alert Groups whose Alerts carry it, most frequent first, at most 50 (C-29.FR-2). The Route form offers them as "From recent Alert Groups of the Route".

Corresponds with GET /routes/{route_id}/label-suggestions (the `ListRouteLabelSuggestions` operationId).

func (*Client) ListRouteProfiles

func (c *Client) ListRouteProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRouteProfiles List Route profiles

The two starting sets of Route settings, Paging and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.

Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).

func (*Client) ListRouteSuggestions

func (c *Client) ListRouteSuggestions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRouteSuggestions List Route suggestions

A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.

Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).

func (*Client) ListRoutes

func (c *Client) ListRoutes(ctx context.Context, params *ListRoutesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRoutes List Routes in evaluation order

The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.

Corresponds with GET /routes (the `ListRoutes` operationId).

func (*Client) ListScheduleOverrides

func (c *Client) ListScheduleOverrides(ctx context.Context, scheduleId ScheduleId, params *ListScheduleOverridesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListScheduleOverrides List the Overrides of a Schedule

The Overrides that end after `from` — the business clock's now by default — and, with `to`, start before it, by start.

Corresponds with GET /schedules/{schedule_id}/overrides (the `ListScheduleOverrides` operationId).

func (*Client) ListSchedules

func (c *Client) ListSchedules(ctx context.Context, params *ListSchedulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSchedules List Schedules

The Schedules by name, each with its Team and its Rotation layers. Every Role reads them.

Corresponds with GET /schedules (the `ListSchedules` operationId).

func (*Client) ListServiceAccountTokens

func (c *Client) ListServiceAccountTokens(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListServiceAccountTokens List tokens of a Service account

Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).

func (*Client) ListServiceAccounts

func (c *Client) ListServiceAccounts(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListServiceAccounts List Service accounts

Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).

func (*Client) ListSeverityValues

func (c *Client) ListSeverityValues(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSeverityValues List severity values seen

Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.

Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).

func (*Client) ListSnoozePresets

func (c *Client) ListSnoozePresets(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSnoozePresets List the ends of the Snooze presets

The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.

Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).

func (*Client) ListStoredSnapshots

func (c *Client) ListStoredSnapshots(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListStoredSnapshots List Stored Snapshots

Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.

Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).

func (*Client) ListSystemNotices

func (c *Client) ListSystemNotices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSystemNotices List active Organization-wide notices

"Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.

Corresponds with GET /system-notices (the `ListSystemNotices` operationId).

func (*Client) ListTeamLabelValues

func (c *Client) ListTeamLabelValues(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTeamLabelValues List values of the Team label without a Team

The values of the Organization's Team label, with the Static labels of their Integrations, that Alerts last seen in the last `organization.team_values_window` carried and that name no Team that is not deleted, the most recently seen first and at most 500 values; `valid_slug` is false for a value outside `team.slug_format`, which reaches a Team only through a Team matcher.

Corresponds with GET /team-label-values (the `ListTeamLabelValues` operationId).

func (*Client) ListTeamUsers

func (c *Client) ListTeamUsers(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTeamUsers List the people in a Team

Each person with their Role, how they are in the Team and the messengers they linked, by name. The complete list, not paginated.

Corresponds with GET /teams/{team_id}/users (the `ListTeamUsers` operationId).

func (*Client) ListTeams

func (c *Client) ListTeams(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTeams List Teams

The Teams that are not deleted, by name. A Team grants no access of its own; every Role reads them.

Corresponds with GET /teams (the `ListTeams` operationId).

func (c *Client) ListUserAccountLinks(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUserAccountLinks List a user's Account links

Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).

func (*Client) ListUserDirectory

func (c *Client) ListUserDirectory(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUserDirectory List users for pickers and filters

Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.

Corresponds with GET /user-directory (the `ListUserDirectory` operationId).

func (*Client) ListUserGatewayContacts

func (c *Client) ListUserGatewayContacts(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUserGatewayContacts List a user's contacts at Notification gateways

The contacts of a User with their state, confirmed or not; a deleted User has none (C-03.FR-13).

Corresponds with GET /users/{user_id}/gateway-contacts (the `ListUserGatewayContacts` operationId).

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUsers List users

Corresponds with GET /users (the `ListUsers` operationId).

func (*Client) MattermostAction

func (c *Client) MattermostAction(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

MattermostAction Receive a Mattermost button press

Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.

Takes a body of the `application/json` content type.

Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).

func (*Client) MattermostActionWithBody

func (c *Client) MattermostActionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

MattermostActionWithBody Receive a Mattermost button press

Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.

Takes any type of body and a specified content type.

Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).

func (*Client) MoveOpenAlertGroups

func (c *Client) MoveOpenAlertGroups(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)

MoveOpenAlertGroups Move open Alert Groups to the Default route

Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.

Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).

func (*Client) PreviewDestination

func (c *Client) PreviewDestination(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PreviewDestination Preview a message or request

Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.

Takes a body of the `application/json` content type.

Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).

func (*Client) PreviewDestinationWithBody

func (c *Client) PreviewDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PreviewDestinationWithBody Preview a message or request

Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.

Takes any type of body and a specified content type.

Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).

func (*Client) PreviewGroupKey

func (c *Client) PreviewGroupKey(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PreviewGroupKey Preview a Group key

Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.

Takes a body of the `application/json` content type.

Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).

func (*Client) PreviewGroupKeyWithBody

func (c *Client) PreviewGroupKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PreviewGroupKeyWithBody Preview a Group key

Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.

Takes any type of body and a specified content type.

Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).

func (*Client) PreviewTemplate

func (c *Client) PreviewTemplate(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PreviewTemplate Render a template against a sample

Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.

Takes a body of the `application/json` content type.

Corresponds with POST /template-previews (the `PreviewTemplate` operationId).

func (*Client) PreviewTemplateWithBody

func (c *Client) PreviewTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PreviewTemplateWithBody Render a template against a sample

Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.

Takes any type of body and a specified content type.

Corresponds with POST /template-previews (the `PreviewTemplate` operationId).

func (*Client) RegenerateTotpRecoveryCodes

func (c *Client) RegenerateTotpRecoveryCodes(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RegenerateTotpRecoveryCodes Regenerate recovery codes

Invalidates the previous codes. Requires a current TOTP code. Web session only.

Takes a body of the `application/json` content type.

Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).

func (*Client) RegenerateTotpRecoveryCodesWithBody

func (c *Client) RegenerateTotpRecoveryCodesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

RegenerateTotpRecoveryCodesWithBody Regenerate recovery codes

Invalidates the previous codes. Requires a current TOTP code. Web session only.

Takes any type of body and a specified content type.

Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).

func (*Client) RemoveTeamUser

func (c *Client) RemoveTeamUser(ctx context.Context, teamId TeamId, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

RemoveTeamUser Remove a person from a Team

Takes away the source `by_hand` of a person in the Team. A person also in it through the identity provider stays in it with the source `idp`, until a later sign-in or re-check finds that no entry of the Team matches them. `404` when the User has no source `by_hand` in the Team, including a person who is in it only through the identity provider.

Corresponds with DELETE /teams/{team_id}/users/{user_id} (the `RemoveTeamUser` operationId).

func (*Client) RemoveTotp

func (c *Client) RemoveTotp(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RemoveTotp Remove own TOTP

Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.

Takes a body of the `application/json` content type.

Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).

func (*Client) RemoveTotpWithBody

func (c *Client) RemoveTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

RemoveTotpWithBody Remove own TOTP

Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.

Takes any type of body and a specified content type.

Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).

func (*Client) ReorderRoutes

func (c *Client) ReorderRoutes(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ReorderRoutes Reorder Routes

Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).

Takes a body of the `application/json` content type.

Corresponds with PUT /route-order (the `ReorderRoutes` operationId).

func (*Client) ReorderRoutesWithBody

func (c *Client) ReorderRoutesWithBody(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ReorderRoutesWithBody Reorder Routes

Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).

Takes any type of body and a specified content type.

Corresponds with PUT /route-order (the `ReorderRoutes` operationId).

func (*Client) ResetMyNotificationRules

func (c *Client) ResetMyNotificationRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ResetMyNotificationRules Reset own Notification rules to the Organization's

"Reset to the Organization's rules": the caller's rules return to the state `organization` and follow the Organization's rules again (C-31.FR-2). Recorded in the Audit log as `notification_rules.updated`; a caller already in that state records nothing. Web session only: a token gets `403` (`session_required`).

Corresponds with POST /me/notification-rules/reset (the `ResetMyNotificationRules` operationId).

func (*Client) ResetUserTotp

func (c *Client) ResetUserTotp(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

ResetUserTotp Reset a user's TOTP

Audited. The user enrols again at the next sign-in if the policy requires it.

Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).

func (*Client) ResolveAlertGroup

func (c *Client) ResolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ResolveAlertGroup Resolve

Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.

Takes a body of the `application/json` content type.

Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).

func (*Client) ResolveAlertGroupWithBody

func (c *Client) ResolveAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ResolveAlertGroupWithBody Resolve

Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.

Takes any type of body and a specified content type.

Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).

func (*Client) RetirePreviousSigningSecret

func (c *Client) RetirePreviousSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

RetirePreviousSigningSecret Retire the previous Signing secret

`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.

Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).

func (*Client) RevokeIntegrationToken

func (c *Client) RevokeIntegrationToken(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeIntegrationToken Revoke an Integration token

Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).

func (*Client) RevokeMyIcalFeed

func (c *Client) RevokeMyIcalFeed(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeMyIcalFeed Revoke the caller's iCal feed

Its link answers `404` at once; `204` also when the caller has no feed. Recorded in the Audit log as `ical_feed.revoked` when a feed existed. Web session only.

Corresponds with DELETE /me/ical-feed (the `RevokeMyIcalFeed` operationId).

func (*Client) RevokePersonalAccessToken

func (c *Client) RevokePersonalAccessToken(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokePersonalAccessToken Revoke a Personal access token

Revokes the token at once. Web session only.

Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).

func (*Client) RevokeServiceAccountToken

func (c *Client) RevokeServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeServiceAccountToken Revoke a Service account token

Revokes the token at once. Web session only: a token can never revoke a token.

Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).

func (*Client) RevokeUserIcalFeed

func (c *Client) RevokeUserIcalFeed(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeUserIcalFeed Revoke a user's iCal feed

Revokes the user's personal iCal feed, for example after its link leaked. The link answers `404` at once on every replica, and the user can issue a new one (`issueMyIcalFeed`). `204` also when the user has no feed. Recorded in the Audit log as `ical_feed.revoked` with the reason `revoked_by_admin` when a feed existed. A deleted user is `404`.

Corresponds with DELETE /users/{user_id}/ical-feed (the `RevokeUserIcalFeed` operationId).

func (*Client) RunBulkCommand

func (c *Client) RunBulkCommand(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RunBulkCommand Run a Command on several Alert Groups

Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.

Takes a body of the `application/json` content type.

Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).

func (*Client) RunBulkCommandWithBody

func (c *Client) RunBulkCommandWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

RunBulkCommandWithBody Run a Command on several Alert Groups

Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.

Takes any type of body and a specified content type.

Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).

func (*Client) SendMyGatewayContactCode

func (c *Client) SendMyGatewayContactCode(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*http.Response, error)

SendMyGatewayContactCode Send a new code for an own contact

Sends a new code of `gateway.contact_code` for one of the caller's contacts through its gateway, as `createMyGatewayContact` does; once the gateway accepted it, it voids the earlier codes of the contact, which a failed sending leaves as they were. The new code is checked only in this web session. Limited by `gateway.contact_code_requests` (`429` `contact_code_requests_exceeded` with `Retry-After`). Runs on the interactive path (`503` with `Retry-After`); a refusal of the gateway answers `502` `gateway_refused`. A contact whose gateway is no longer a Notification gateway answers `422` `unknown_id` at `/connection_id`. Web session only: a token gets `403` (`session_required`).

Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/code (the `SendMyGatewayContactCode` operationId).

func (*Client) SetDestinationSecret

func (c *Client) SetDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetDestinationSecret Set a Secret of a webhook Destination

Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.

Takes a body of the `application/json` content type.

Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).

func (*Client) SetDestinationSecretWithBody

func (c *Client) SetDestinationSecretWithBody(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetDestinationSecretWithBody Set a Secret of a webhook Destination

Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.

Takes any type of body and a specified content type.

Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).

func (*Client) SlackInteractionWithBody

func (c *Client) SlackInteractionWithBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SlackInteractionWithBody Receive a Slack button press (http event mode)

Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.

Takes any type of body and a specified content type.

Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).

func (*Client) SlackInteractionWithFormdataBody

func (c *Client) SlackInteractionWithFormdataBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SlackInteractionWithFormdataBody Receive a Slack button press (http event mode)

Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.

Takes a body of the `application/x-www-form-urlencoded` content type.

Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).

func (*Client) SnoozeAlertGroup

func (c *Client) SnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SnoozeAlertGroup Snooze

A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.

Takes a body of the `application/json` content type.

Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).

func (*Client) SnoozeAlertGroupWithBody

func (c *Client) SnoozeAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SnoozeAlertGroupWithBody Snooze

A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.

Takes any type of body and a specified content type.

Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).

func (c *Client) StartBridgeCodeLink(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

StartBridgeCodeLink Start linking an account through a Bridge with a code

Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).

func (*Client) StartBridgeCodeLinkWithBody

func (c *Client) StartBridgeCodeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

StartBridgeCodeLinkWithBody Start linking an account through a Bridge with a code

Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).

func (c *Client) StartBridgeLink(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

StartBridgeLink Start linking an account through a Bridge with a token

Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).

func (*Client) StartBridgeLinkWithBody

func (c *Client) StartBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

StartBridgeLinkWithBody Start linking an account through a Bridge with a token

Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).

func (c *Client) StartMattermostLink(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

StartMattermostLink Start linking a Mattermost account

The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).

func (*Client) StartMattermostLinkWithBody

func (c *Client) StartMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

StartMattermostLinkWithBody Start linking a Mattermost account

The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).

func (c *Client) StartOidcLink(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

StartOidcLink Start linking an OIDC identity

Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.

Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).

func (*Client) StartOidcSignIn

func (c *Client) StartOidcSignIn(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)

StartOidcSignIn Start OIDC sign-in

Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.

Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).

func (c *Client) StartSlackLink(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

StartSlackLink Start linking a Slack account with a code

Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).

func (*Client) StartSlackLinkWithBody

func (c *Client) StartSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

StartSlackLinkWithBody Start linking a Slack account with a code

Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).

func (c *Client) StartTelegramLink(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

StartTelegramLink Start linking a Telegram account

Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.

Takes a body of the `application/json` content type.

Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).

func (*Client) StartTelegramLinkWithBody

func (c *Client) StartTelegramLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

StartTelegramLinkWithBody Start linking a Telegram account

Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.

Takes any type of body and a specified content type.

Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).

func (*Client) StreamLiveUpdates

func (c *Client) StreamLiveUpdates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

StreamLiveUpdates Stream change hints

Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.

Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).

Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).

func (*Client) SubmitSessionTotp

func (c *Client) SubmitSessionTotp(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SubmitSessionTotp Give the second factor

Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.

Takes a body of the `application/json` content type.

Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).

func (*Client) SubmitSessionTotpWithBody

func (c *Client) SubmitSessionTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SubmitSessionTotpWithBody Give the second factor

Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.

Takes any type of body and a specified content type.

Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).

func (*Client) TelegramWebhook

func (c *Client) TelegramWebhook(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TelegramWebhook Receive a Telegram update (webhook update mode)

Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.

Takes a body of the `application/json` content type.

Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).

func (*Client) TelegramWebhookWithBody

func (c *Client) TelegramWebhookWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TelegramWebhookWithBody Receive a Telegram update (webhook update mode)

Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.

Takes any type of body and a specified content type.

Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).

func (*Client) TestDestination

func (c *Client) TestDestination(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TestDestination Send a test message

One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.

Takes a body of the `application/json` content type.

Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).

func (*Client) TestDestinationWithBody

func (c *Client) TestDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TestDestinationWithBody Send a test message

One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.

Takes any type of body and a specified content type.

Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).

func (*Client) UnacknowledgeAlertGroup

func (c *Client) UnacknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

UnacknowledgeAlertGroup Unacknowledge

Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.

Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).

func (*Client) UnresolveAlertGroup

func (c *Client) UnresolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

UnresolveAlertGroup Unresolve

Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.

Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).

func (*Client) UnsnoozeAlertGroup

func (c *Client) UnsnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

UnsnoozeAlertGroup Unsnooze

The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.

Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).

func (*Client) UpdateConnection

func (c *Client) UpdateConnection(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateConnection Update Connection

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.

Takes a body of the `application/json` content type.

Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).

func (*Client) UpdateConnectionWithBody

func (c *Client) UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateConnectionWithBody Update Connection

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.

Takes any type of body and a specified content type.

Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).

func (*Client) UpdateDestination

func (c *Client) UpdateDestination(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateDestination Update Destination

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.

Takes a body of the `application/json` content type.

Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).

func (*Client) UpdateDestinationWithBody

func (c *Client) UpdateDestinationWithBody(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateDestinationWithBody Update Destination

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.

Takes any type of body and a specified content type.

Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).

func (*Client) UpdateEscalationChain

func (c *Client) UpdateEscalationChain(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, body UpdateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEscalationChain Update an Escalation chain

Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).

Takes a body of the `application/json` content type.

Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).

func (*Client) UpdateEscalationChainWithBody

func (c *Client) UpdateEscalationChainWithBody(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEscalationChainWithBody Update an Escalation chain

Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).

Takes any type of body and a specified content type.

Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).

func (*Client) UpdateIntegration

func (c *Client) UpdateIntegration(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateIntegration Update Integration

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes a body of the `application/json` content type.

Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).

func (*Client) UpdateIntegrationWithBody

func (c *Client) UpdateIntegrationWithBody(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateIntegrationWithBody Update Integration

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes any type of body and a specified content type.

Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).

func (*Client) UpdateLinkRule

func (c *Client) UpdateLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateLinkRule Update LinkRule

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes a body of the `application/json` content type.

Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).

func (*Client) UpdateLinkRuleWithBody

func (c *Client) UpdateLinkRuleWithBody(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateLinkRuleWithBody Update LinkRule

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes any type of body and a specified content type.

Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).

func (*Client) UpdateLookupTable

func (c *Client) UpdateLookupTable(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateLookupTable Update LookupTable

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.

Takes a body of the `application/json` content type.

Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).

func (*Client) UpdateLookupTableWithBody

func (c *Client) UpdateLookupTableWithBody(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateLookupTableWithBody Update LookupTable

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.

Takes any type of body and a specified content type.

Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).

func (*Client) UpdateMe

func (c *Client) UpdateMe(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMe Update own profile

Changes name, time zone and language. Web session only.

Takes a body of the `application/json` content type.

Corresponds with PUT /me (the `UpdateMe` operationId).

func (*Client) UpdateMeWithBody

func (c *Client) UpdateMeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMeWithBody Update own profile

Changes name, time zone and language. Web session only.

Takes any type of body and a specified content type.

Corresponds with PUT /me (the `UpdateMe` operationId).

func (*Client) UpdateMyNotificationRules

func (c *Client) UpdateMyNotificationRules(ctx context.Context, params *UpdateMyNotificationRulesParams, body UpdateMyNotificationRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMyNotificationRules Change own Notification rules

Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).

Takes a body of the `application/json` content type.

Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).

func (*Client) UpdateMyNotificationRulesWithBody

func (c *Client) UpdateMyNotificationRulesWithBody(ctx context.Context, params *UpdateMyNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMyNotificationRulesWithBody Change own Notification rules

Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).

Takes any type of body and a specified content type.

Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).

func (*Client) UpdateOidcSettings

func (c *Client) UpdateOidcSettings(ctx context.Context, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOidcSettings Update OIDC settings

Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.

Takes a body of the `application/json` content type.

Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).

func (*Client) UpdateOidcSettingsWithBody

func (c *Client) UpdateOidcSettingsWithBody(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOidcSettingsWithBody Update OIDC settings

Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.

Takes any type of body and a specified content type.

Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).

func (*Client) UpdateOrganization

func (c *Client) UpdateOrganization(ctx context.Context, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrganization Update the Organization

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.

Takes a body of the `application/json` content type.

Corresponds with PUT /organization (the `UpdateOrganization` operationId).

func (*Client) UpdateOrganizationWithBody

func (c *Client) UpdateOrganizationWithBody(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrganizationWithBody Update the Organization

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.

Takes any type of body and a specified content type.

Corresponds with PUT /organization (the `UpdateOrganization` operationId).

func (*Client) UpdateOutboundPolicy

func (c *Client) UpdateOutboundPolicy(ctx context.Context, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOutboundPolicy Update the outbound address policy

Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.

Takes a body of the `application/json` content type.

Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).

func (*Client) UpdateOutboundPolicyWithBody

func (c *Client) UpdateOutboundPolicyWithBody(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOutboundPolicyWithBody Update the outbound address policy

Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.

Takes any type of body and a specified content type.

Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).

func (*Client) UpdateRoute

func (c *Client) UpdateRoute(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRoute Update a Route

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes a body of the `application/json` content type.

Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).

func (*Client) UpdateRouteWithBody

func (c *Client) UpdateRouteWithBody(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRouteWithBody Update a Route

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes any type of body and a specified content type.

Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).

func (*Client) UpdateSchedule

func (c *Client) UpdateSchedule(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateSchedule Update a Schedule

Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.

Takes a body of the `application/json` content type.

Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).

func (*Client) UpdateScheduleOverride

func (c *Client) UpdateScheduleOverride(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, body UpdateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateScheduleOverride Update an Override

Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.

Takes a body of the `application/json` content type.

Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).

func (*Client) UpdateScheduleOverrideWithBody

func (c *Client) UpdateScheduleOverrideWithBody(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateScheduleOverrideWithBody Update an Override

Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.

Takes any type of body and a specified content type.

Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).

func (*Client) UpdateScheduleWithBody

func (c *Client) UpdateScheduleWithBody(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateScheduleWithBody Update a Schedule

Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.

Takes any type of body and a specified content type.

Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).

func (*Client) UpdateServiceAccount

func (c *Client) UpdateServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateServiceAccount Update a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type.

Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).

func (*Client) UpdateServiceAccountWithBody

func (c *Client) UpdateServiceAccountWithBody(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateServiceAccountWithBody Update a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type.

Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).

func (*Client) UpdateTeam

func (c *Client) UpdateTeam(ctx context.Context, teamId TeamId, params *UpdateTeamParams, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTeam Update a Team

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.

Takes a body of the `application/json` content type.

Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).

func (*Client) UpdateTeamWithBody

func (c *Client) UpdateTeamWithBody(ctx context.Context, teamId TeamId, params *UpdateTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTeamWithBody Update a Team

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.

Takes any type of body and a specified content type.

Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUser Update a user

Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type.

Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).

func (*Client) UpdateUserNotificationRules

func (c *Client) UpdateUserNotificationRules(ctx context.Context, userId UserId, params *UpdateUserNotificationRulesParams, body UpdateUserNotificationRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUserNotificationRules Change a user's Notification rules

An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).

Takes a body of the `application/json` content type.

Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).

func (*Client) UpdateUserNotificationRulesWithBody

func (c *Client) UpdateUserNotificationRulesWithBody(ctx context.Context, userId UserId, params *UpdateUserNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUserNotificationRulesWithBody Change a user's Notification rules

An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).

Takes any type of body and a specified content type.

Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).

func (*Client) UpdateUserWithBody

func (c *Client) UpdateUserWithBody(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUserWithBody Update a user

Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type.

Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).

type ClientInterface

type ClientInterface interface {

	// GetAlertGroupActorStatistics Read Alert Group statistics by people
	//
	// Who acted on the Alert Groups that started in [`from`, `to`) and match the filters, which combine with AND, matched as in `getAlertGroupStatistics`: one item per User that acknowledged at least one of them first or resolved at least one, and one per Service account that resolved at least one. `acknowledged_first_count` counts the Alert Groups whose first acknowledgement the actor made, also after `to`, with its time to acknowledge; `resolved_count` those the actor resolved, by its resolver. An Alert Group gives at most one of each, to one actor; one never acknowledged counts in no `acknowledged_first_count`, and one resolved by the system in no `resolved_count`. The Alert Groups that were acknowledged but whose first acknowledgement names nobody — an Alert Group acknowledged before 0.2.0 whose Timeline was no longer whole, or on a replica of an earlier version — make one item with `actor` null, last, with `resolved_count` 0; never with `first_acknowledged_by`. So `acknowledged_first_count` adds up over the items to the `time_to_acknowledge.count` of `getAlertGroupStatistics?group_by=route` for the same period and filters. The items are complete, not paginated: by `acknowledged_first_count`, most first, then by name regardless of case, then by the exact name, then by `public_id`.
	//
	// Corresponds with GET /alert-group-actor-statistics (the `GetAlertGroupActorStatistics` operationId).
	GetAlertGroupActorStatistics(ctx context.Context, params *GetAlertGroupActorStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlertGroupCounts Count Alert Groups per status
	//
	// Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.
	//
	// Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).
	GetAlertGroupCounts(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlertGroupStatistics Read Alert Group statistics
	//
	// Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route, per Integration or per Team as `group_by` says. The period selects the Alert Groups that started in [`from`, `to`), not those whose lifetime overlaps it, as the list's time range does. The filters `route`, `integration`, `severity`, `urgent`, `team`, `reopened`, `label` and `first_acknowledged_by` combine with AND, matched as `listAlertGroups` matches them, for every `group_by`; the filter of the kind of `group_by` also chooses the items (`team=mine` the caller's Teams). Without it every Route, Integration or Team that is not deleted is an item, and each deleted one with Alert Groups in the period. An Alert Group with Alerts from several Integrations counts for each, and one with several Teams for each Team; one without a Team counts for no Team.
	//
	// Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).
	GetAlertGroupStatistics(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAlertGroups List Alert Groups
	//
	// The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.
	//
	// Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).
	ListAlertGroups(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RunBulkCommandWithBody Run a Command on several Alert Groups
	//
	// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
	RunBulkCommandWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RunBulkCommand Run a Command on several Alert Groups
	//
	// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
	RunBulkCommand(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlertGroup Read an Alert Group
	//
	// An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.
	//
	// Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).
	GetAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AcknowledgeAlertGroup Acknowledge
	//
	// From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).
	AcknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAlertGroupAlerts List the Alerts of an Alert Group
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).
	ListAlertGroupAlerts(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAlertGroupDeliveries Read delivery state per Destination
	//
	// The delivery state of the Alert Group in each Destination. The retention removes it with the details once `retention.alert_details` has passed since the Alert Group resolved (`details_removed`), and it is no longer listed.
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).
	ListAlertGroupDeliveries(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAlertGroupNotes List Notes
	//
	// Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).
	ListAlertGroupNotes(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAlertGroupNoteWithBody Add a Note
	//
	// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
	CreateAlertGroupNoteWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAlertGroupNote Add a Note
	//
	// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
	CreateAlertGroupNote(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRelatedAlertGroups List previous Alert Groups with the same key
	//
	// Alert Groups of the same Route with the same Group key values, newest first.
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).
	ListRelatedAlertGroups(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResolveAlertGroupWithBody Resolve
	//
	// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
	ResolveAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResolveAlertGroup Resolve
	//
	// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
	ResolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SnoozeAlertGroupWithBody Snooze
	//
	// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
	SnoozeAlertGroupWithBody(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SnoozeAlertGroup Snooze
	//
	// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
	SnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AnswerReminder Answer a Reminder with "Still on it"
	//
	// Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).
	AnswerReminder(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlertGroupTimeline Read the Timeline of an Alert Group
	//
	// Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).
	GetAlertGroupTimeline(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnacknowledgeAlertGroup Unacknowledge
	//
	// Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).
	UnacknowledgeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnresolveAlertGroup Unresolve
	//
	// Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).
	UnresolveAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnsnoozeAlertGroup Unsnooze
	//
	// The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).
	UnsnoozeAlertGroup(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAuditLog List Audit log entries
	//
	// Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.
	//
	// Corresponds with GET /audit-log (the `ListAuditLog` operationId).
	ListAuditLog(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BridgeEventWithBody Receive a Bridge event (push event delivery)
	//
	// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
	BridgeEventWithBody(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BridgeEvent Receive a Bridge event (push event delivery)
	//
	// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
	BridgeEvent(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MattermostActionWithBody Receive a Mattermost button press
	//
	// Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
	MattermostActionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MattermostAction Receive a Mattermost button press
	//
	// Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
	MattermostAction(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SlackInteractionWithBody Receive a Slack button press (http event mode)
	//
	// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
	SlackInteractionWithBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SlackInteractionWithFormdataBody Receive a Slack button press (http event mode)
	//
	// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
	//
	// Takes a body of the `application/x-www-form-urlencoded` content type.
	//
	// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
	SlackInteractionWithFormdataBody(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TelegramWebhookWithBody Receive a Telegram update (webhook update mode)
	//
	// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
	TelegramWebhookWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TelegramWebhook Receive a Telegram update (webhook update mode)
	//
	// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
	TelegramWebhook(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListConnections List connections
	//
	// Corresponds with GET /connections (the `ListConnections` operationId).
	ListConnections(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateConnectionWithBody Create Connection
	//
	// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /connections (the `CreateConnection` operationId).
	CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateConnection Create Connection
	//
	// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /connections (the `CreateConnection` operationId).
	CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckConnectionDraftWithBody Check a Connection before saving it
	//
	// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
	CheckConnectionDraftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckConnectionDraft Check a Connection before saving it
	//
	// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
	CheckConnectionDraft(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteConnection Delete Connection
	//
	// A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered. The deletion also deletes the Team mentions of the Connection, each recorded in the Audit log of its Team; when Teams keep giving the Connection a first Team mention while it runs, it is run again, and after three attempts it answers `409` (`team_mentions_changed`) and deletes nothing: delete it again.
	//
	// Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).
	DeleteConnection(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConnection Read Connection
	//
	// Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).
	GetConnection(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateConnectionWithBody Update Connection
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
	UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateConnection Update Connection
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
	UpdateConnection(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListConnectionChannels List channels visible to the bot
	//
	// The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.
	//
	// Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).
	ListConnectionChannels(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckConnectionWithBody Check a Connection
	//
	// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
	CheckConnectionWithBody(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckConnection Check a Connection
	//
	// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
	CheckConnection(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListConnectionGroups List the groups a Connection can mention
	//
	// The groups of a Connection for its Team mentions and the group entries of its Destinations (C-25.FR-8), by name. A Mattermost Connection answers the groups that may be mentioned, read with `GET /api/v4/groups?filter_allow_reference=true&include_member_count=true&per_page=200` (F-122), `truncated` when that page was full. A Slack Connection whose last check found `usergroups:read` answers the user groups that are not disabled, read with `usergroups.list` (F-125); `name` is the handle. A Telegram or Bridge Connection, and a Slack Connection without the scope, answer `409` `groups_not_listed`; a server that refuses the read answers `409`. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one.
	//
	// Corresponds with GET /connections/{connection_id}/groups (the `ListConnectionGroups` operationId).
	ListConnectionGroups(ctx context.Context, connectionId ConnectionId, params *ListConnectionGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDestinations List destinations
	//
	// All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.
	//
	// Corresponds with GET /destinations (the `ListDestinations` operationId).
	ListDestinations(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateDestinationWithBody Create Destination
	//
	// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /destinations (the `CreateDestination` operationId).
	CreateDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateDestination Create Destination
	//
	// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /destinations (the `CreateDestination` operationId).
	CreateDestination(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDestination Delete Destination
	//
	// Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.
	//
	// Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).
	DeleteDestination(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDestination Read Destination
	//
	// Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).
	GetDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDestinationWithBody Update Destination
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
	UpdateDestinationWithBody(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDestination Update Destination
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
	UpdateDestination(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckDestination Run the Destination check
	//
	// Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
	//
	// Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).
	CheckDestination(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewDestinationWithBody Preview a message or request
	//
	// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
	PreviewDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewDestination Preview a message or request
	//
	// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
	PreviewDestination(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDestinationSecrets List the Secrets of a webhook Destination
	//
	// Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
	//
	// Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).
	ListDestinationSecrets(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDestinationSecret Delete a Secret of a webhook Destination
	//
	// `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
	//
	// Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).
	DeleteDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetDestinationSecretWithBody Set a Secret of a webhook Destination
	//
	// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
	SetDestinationSecretWithBody(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetDestinationSecret Set a Secret of a webhook Destination
	//
	// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
	SetDestinationSecret(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSigningSecret Read the Signing secret status
	//
	// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
	//
	// Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).
	GetSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateSigningSecret Regenerate the Signing secret
	//
	// The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.
	//
	// Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).
	GenerateSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetirePreviousSigningSecret Retire the previous Signing secret
	//
	// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
	//
	// Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).
	RetirePreviousSigningSecret(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TestDestinationWithBody Send a test message
	//
	// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
	TestDestinationWithBody(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TestDestination Send a test message
	//
	// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
	TestDestination(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEscalationChains List Escalation chains
	//
	// The Escalation chains by name, each with its steps, the Routes and Teams that name it, the Destinations it writes in and its warnings. Every Role reads them.
	//
	// Corresponds with GET /escalation-chains (the `ListEscalationChains` operationId).
	ListEscalationChains(ctx context.Context, params *ListEscalationChainsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEscalationChainWithBody Create an Escalation chain
	//
	// A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).
	CreateEscalationChainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEscalationChain Create an Escalation chain
	//
	// A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).
	CreateEscalationChain(ctx context.Context, body CreateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteEscalationChain Delete an Escalation chain
	//
	// Deletes the chain with its steps. A chain that a Route or a Team names is refused with `409` `chain_in_use`, which names them in `in_use_by`.
	//
	// Corresponds with DELETE /escalation-chains/{escalation_chain_id} (the `DeleteEscalationChain` operationId).
	DeleteEscalationChain(ctx context.Context, escalationChainId EscalationChainId, params *DeleteEscalationChainParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEscalationChain Read an Escalation chain
	//
	// Corresponds with GET /escalation-chains/{escalation_chain_id} (the `GetEscalationChain` operationId).
	GetEscalationChain(ctx context.Context, escalationChainId EscalationChainId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEscalationChainWithBody Update an Escalation chain
	//
	// Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).
	UpdateEscalationChainWithBody(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEscalationChain Update an Escalation chain
	//
	// Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).
	UpdateEscalationChain(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, body UpdateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEscalationChainRuns List the runs of an Escalation chain
	//
	// The recent runs of the chain on Alert Groups, newest first, for "How it went" (C-32.FR-18): one per start of the chains of an Alert Group, so an Alert Group whose chains started over has a run per start. Each run names its Alert Group, the steps it made and skipped with the reason of each skip and the Pages of each step it made, and what stopped it — the Command and its actor — or that it ran out. Runs of a chain keep its steps from when they started (P-73).
	//
	// Corresponds with GET /escalation-chains/{escalation_chain_id}/runs (the `ListEscalationChainRuns` operationId).
	ListEscalationChainRuns(ctx context.Context, escalationChainId EscalationChainId, params *ListEscalationChainRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewGroupKeyWithBody Preview a Group key
	//
	// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
	PreviewGroupKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewGroupKey Preview a Group key
	//
	// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
	PreviewGroupKey(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeartbeatGet Heartbeat signal (GET)
	//
	// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
	//
	// Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).
	HeartbeatGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeartbeatPost Heartbeat signal (POST)
	//
	// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
	//
	// Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).
	HeartbeatPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeartbeatGetWithPathToken Heartbeat signal (GET, token in the path)
	//
	// Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).
	HeartbeatGetWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeartbeatPostWithPathToken Heartbeat signal (POST, token in the path)
	//
	// Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).
	HeartbeatPostWithPathToken(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestSnapshotWithBody Receive an Alertmanager webhook
	//
	// Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ingest (the `IngestSnapshot` operationId).
	IngestSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IngestSnapshotWithPathTokenWithBody Receive an Alertmanager webhook (token in the path)
	//
	// For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).
	IngestSnapshotWithPathTokenWithBody(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIntegrations List integrations
	//
	// Includes the built-in "Muster" Integration, marked `builtin`.
	//
	// Corresponds with GET /integrations (the `ListIntegrations` operationId).
	ListIntegrations(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIntegrationWithBody Create Integration
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /integrations (the `CreateIntegration` operationId).
	CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIntegration Create Integration
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /integrations (the `CreateIntegration` operationId).
	CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIntegration Delete Integration
	//
	// Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).
	//
	// Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).
	DeleteIntegration(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIntegration Read Integration
	//
	// Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).
	GetIntegration(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateIntegrationWithBody Update Integration
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
	UpdateIntegrationWithBody(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateIntegration Update Integration
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
	UpdateIntegration(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAlertmanagerRoutes List learned Alertmanager routes
	//
	// Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.
	//
	// Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).
	ListAlertmanagerRoutes(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIntegrationAlerts List the Alerts view of an Integration
	//
	// The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.
	//
	// Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).
	ListIntegrationAlerts(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIntegrationTokens List Integration tokens
	//
	// Values are never returned.
	//
	// Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).
	ListIntegrationTokens(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIntegrationTokenWithBody Create an Integration token
	//
	// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
	CreateIntegrationTokenWithBody(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIntegrationToken Create an Integration token
	//
	// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
	CreateIntegrationToken(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeIntegrationToken Revoke an Integration token
	//
	// Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).
	RevokeIntegrationToken(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLinkRules List linkrules
	//
	// Corresponds with GET /link-rules (the `ListLinkRules` operationId).
	ListLinkRules(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateLinkRuleWithBody Create LinkRule
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
	CreateLinkRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateLinkRule Create LinkRule
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
	CreateLinkRule(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteLinkRule Delete LinkRule
	//
	// The built-in "Explore" rule cannot be deleted (`409`).
	//
	// Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).
	DeleteLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLinkRule Read LinkRule
	//
	// Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).
	GetLinkRule(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateLinkRuleWithBody Update LinkRule
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
	UpdateLinkRuleWithBody(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateLinkRule Update LinkRule
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
	UpdateLinkRule(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StreamLiveUpdates Stream change hints
	//
	// Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.
	//
	// Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).
	//
	// Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).
	StreamLiveUpdates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLookupTables List lookuptables
	//
	// Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).
	ListLookupTables(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateLookupTableWithBody Create LookupTable
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
	CreateLookupTableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateLookupTable Create LookupTable
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
	CreateLookupTable(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteLookupTable Delete LookupTable
	//
	// Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.
	//
	// Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).
	DeleteLookupTable(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLookupTable Read LookupTable
	//
	// Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).
	GetLookupTable(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateLookupTableWithBody Update LookupTable
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
	UpdateLookupTableWithBody(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateLookupTable Update LookupTable
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
	UpdateLookupTable(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMe Read own profile
	//
	// The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Corresponds with GET /me (the `GetMe` operationId).
	GetMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMeWithBody Update own profile
	//
	// Changes name, time zone and language. Web session only.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /me (the `UpdateMe` operationId).
	UpdateMeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMe Update own profile
	//
	// Changes name, time zone and language. Web session only.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /me (the `UpdateMe` operationId).
	UpdateMe(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMyAccountLinks List own Account links
	//
	// Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).
	ListMyAccountLinks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartBridgeLinkWithBody Start linking an account through a Bridge with a token
	//
	// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
	StartBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartBridgeLink Start linking an account through a Bridge with a token
	//
	// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
	StartBridgeLink(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartBridgeCodeLinkWithBody Start linking an account through a Bridge with a code
	//
	// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
	StartBridgeCodeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartBridgeCodeLink Start linking an account through a Bridge with a code
	//
	// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
	StartBridgeCodeLink(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmBridgeLinkWithBody Confirm a Bridge link with the code
	//
	// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
	ConfirmBridgeLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmBridgeLink Confirm a Bridge link with the code
	//
	// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
	ConfirmBridgeLink(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLinkableConnections List the Connections an account can be linked through
	//
	// The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).
	ListLinkableConnections(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartMattermostLinkWithBody Start linking a Mattermost account
	//
	// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
	StartMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartMattermostLink Start linking a Mattermost account
	//
	// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
	StartMattermostLink(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmMattermostLinkWithBody Confirm a Mattermost link with the code
	//
	// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
	ConfirmMattermostLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmMattermostLink Confirm a Mattermost link with the code
	//
	// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
	ConfirmMattermostLink(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartSlackLinkWithBody Start linking a Slack account with a code
	//
	// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
	StartSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartSlackLink Start linking a Slack account with a code
	//
	// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
	StartSlackLink(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmSlackLinkWithBody Confirm a Slack link with the code
	//
	// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
	ConfirmSlackLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmSlackLink Confirm a Slack link with the code
	//
	// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
	ConfirmSlackLink(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartTelegramLinkWithBody Start linking a Telegram account
	//
	// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
	StartTelegramLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartTelegramLink Start linking a Telegram account
	//
	// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
	StartTelegramLink(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMyAccountLink Unlink an own messenger account
	//
	// Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).
	//
	// Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).
	DeleteMyAccountLink(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMyGatewayContacts List own contacts at Notification gateways
	//
	// The caller's contacts, confirmed and unconfirmed, each with its Notification gateway; a new contact for a gateway at which the caller has a confirmed one names that one in `replaces` until it is confirmed, and until then the confirmed one stays the one called. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Corresponds with GET /me/gateway-contacts (the `ListMyGatewayContacts` operationId).
	ListMyGatewayContacts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMyGatewayContactWithBody Add an own contact at a Notification gateway
	//
	// Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).
	CreateMyGatewayContactWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMyGatewayContact Add an own contact at a Notification gateway
	//
	// Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).
	CreateMyGatewayContact(ctx context.Context, body CreateMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMyGatewayContact Remove an own contact at a Notification gateway
	//
	// Removes one of the caller's contacts, confirmed or not; a confirmed contact is no longer called. Its codes can no longer confirm anything, but stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, so that removing and adding a contact again does not reset the limits. Recorded in the Audit log as `gateway_contact.deleted`. Web session only: a token gets `403` (`session_required`).
	//
	// Corresponds with DELETE /me/gateway-contacts/{gateway_contact_id} (the `DeleteMyGatewayContact` operationId).
	DeleteMyGatewayContact(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendMyGatewayContactCode Send a new code for an own contact
	//
	// Sends a new code of `gateway.contact_code` for one of the caller's contacts through its gateway, as `createMyGatewayContact` does; once the gateway accepted it, it voids the earlier codes of the contact, which a failed sending leaves as they were. The new code is checked only in this web session. Limited by `gateway.contact_code_requests` (`429` `contact_code_requests_exceeded` with `Retry-After`). Runs on the interactive path (`503` with `Retry-After`); a refusal of the gateway answers `502` `gateway_refused`. A contact whose gateway is no longer a Notification gateway answers `422` `unknown_id` at `/connection_id`. Web session only: a token gets `403` (`session_required`).
	//
	// Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/code (the `SendMyGatewayContactCode` operationId).
	SendMyGatewayContactCode(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmMyGatewayContactWithBody Confirm an own contact with the code
	//
	// Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).
	ConfirmMyGatewayContactWithBody(ctx context.Context, gatewayContactId GatewayContactId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmMyGatewayContact Confirm an own contact with the code
	//
	// Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).
	ConfirmMyGatewayContact(ctx context.Context, gatewayContactId GatewayContactId, body ConfirmMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeMyIcalFeed Revoke the caller's iCal feed
	//
	// Its link answers `404` at once; `204` also when the caller has no feed. Recorded in the Audit log as `ical_feed.revoked` when a feed existed. Web session only.
	//
	// Corresponds with DELETE /me/ical-feed (the `RevokeMyIcalFeed` operationId).
	RevokeMyIcalFeed(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMyIcalFeed Read whether the caller has an iCal feed
	//
	// Whether the caller's personal iCal feed exists and when it was issued; the token and the link are never shown again. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Corresponds with GET /me/ical-feed (the `GetMyIcalFeed` operationId).
	GetMyIcalFeed(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssueMyIcalFeed Issue the caller's iCal feed
	//
	// Issues a new link of the caller's personal iCal feed (`ical.token`) and shows it once; the previous link, if any, stops working at once. The feed lists the times when the caller is On-call in every Schedule (`getIcalCalendar`). Recorded in the Audit log as `ical_feed.issued`, without the token. Web session only.
	//
	// Corresponds with POST /me/ical-feed (the `IssueMyIcalFeed` operationId).
	IssueMyIcalFeed(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMyNotificationRules Read own Notification rules
	//
	// The caller's normal and important rule as in effect (C-31.FR-1, FR-2): in the state `organization` the Organization's current rules, otherwise those stored when the caller chose the state. A call action reads `available` false with `unavailable_reason` `gateway_deleted` once its gateway was deleted or is no Notification gateway any more, and `no_confirmed_contact` once the caller has no confirmed contact there; it stays in the rule. Web session only: a token gets `403` (`session_required`).
	//
	// Corresponds with GET /me/notification-rules (the `GetMyNotificationRules` operationId).
	GetMyNotificationRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMyNotificationRulesWithBody Change own Notification rules
	//
	// Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).
	UpdateMyNotificationRulesWithBody(ctx context.Context, params *UpdateMyNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMyNotificationRules Change own Notification rules
	//
	// Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).
	UpdateMyNotificationRules(ctx context.Context, params *UpdateMyNotificationRulesParams, body UpdateMyNotificationRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResetMyNotificationRules Reset own Notification rules to the Organization's
	//
	// "Reset to the Organization's rules": the caller's rules return to the state `organization` and follow the Organization's rules again (C-31.FR-2). Recorded in the Audit log as `notification_rules.updated`; a caller already in that state records nothing. Web session only: a token gets `403` (`session_required`).
	//
	// Corresponds with POST /me/notification-rules/reset (the `ResetMyNotificationRules` operationId).
	ResetMyNotificationRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartOidcLink Start linking an OIDC identity
	//
	// Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.
	//
	// Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).
	StartOidcLink(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompleteOidcLink Complete linking an OIDC identity
	//
	// Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.
	//
	// Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).
	CompleteOidcLink(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangePasswordWithBody Change own password
	//
	// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /me/password (the `ChangePassword` operationId).
	ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangePassword Change own password
	//
	// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /me/password (the `ChangePassword` operationId).
	ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPersonalAccessTokens List own Personal access tokens
	//
	// Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).
	ListPersonalAccessTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePersonalAccessTokenWithBody Create a Personal access token
	//
	// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
	CreatePersonalAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePersonalAccessToken Create a Personal access token
	//
	// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
	CreatePersonalAccessToken(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokePersonalAccessToken Revoke a Personal access token
	//
	// Revokes the token at once. Web session only.
	//
	// Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).
	RevokePersonalAccessToken(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMySessions Sign out everywhere
	//
	// Ends every session of the user, the current one included. Web session only.
	//
	// Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).
	DeleteMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMySessions List own sessions
	//
	// Sessions of the user, the current one marked.
	//
	// Corresponds with GET /me/sessions (the `ListMySessions` operationId).
	ListMySessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMyTotp Read own TOTP status
	//
	// Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Corresponds with GET /me/totp (the `GetMyTotp` operationId).
	GetMyTotp(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BeginTotpEnrolment Begin TOTP enrolment
	//
	// Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.
	//
	// Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).
	BeginTotpEnrolment(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmTotpEnrolmentWithBody Confirm TOTP enrolment
	//
	// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
	ConfirmTotpEnrolmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConfirmTotpEnrolment Confirm TOTP enrolment
	//
	// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
	ConfirmTotpEnrolment(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RegenerateTotpRecoveryCodesWithBody Regenerate recovery codes
	//
	// Invalidates the previous codes. Requires a current TOTP code. Web session only.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
	RegenerateTotpRecoveryCodesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RegenerateTotpRecoveryCodes Regenerate recovery codes
	//
	// Invalidates the previous codes. Requires a current TOTP code. Web session only.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
	RegenerateTotpRecoveryCodes(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveTotpWithBody Remove own TOTP
	//
	// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
	RemoveTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveTotp Remove own TOTP
	//
	// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
	RemoveTotp(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOidcSettings Read OIDC settings
	//
	// The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.
	//
	// Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).
	GetOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOidcSettingsWithBody Update OIDC settings
	//
	// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
	UpdateOidcSettingsWithBody(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOidcSettings Update OIDC settings
	//
	// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
	UpdateOidcSettings(ctx context.Context, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckOidcSettings Check the connection to the identity provider
	//
	// Fetches discovery through the outbound HTTP package, with the saved proxy, keeps its `claims_supported` for the settings, and reports, for the groups claim and every claim an entry of the mapping names, whether it is advertised. While no sign-in has seen a claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` for it and a listed one clears it; once a sign-in has seen the claim, the check changes nothing for it.
	//
	// Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).
	CheckOidcSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOnCallNow Read who is On-call now in each Team
	//
	// "On call now" (C-27.FR-9): for each Team that is not deleted, sorted by name ignoring case, the On-call of its main Schedule at the business clock's now with the Rotation layer that decides it, until when, and the segment that follows — its person, or a gap — within `schedule.gap_view`, and the Destinations of the Team, and of the Escalation chains that Page the main Schedule, that a Mention of the On-call cannot reach (C-27.FR-8, FR-9); a Team without a main Schedule has `no_schedule` true. Overrides count as in the Result of the Schedule. Every Role reads it.
	//
	// Corresponds with GET /on-call-now (the `GetOnCallNow` operationId).
	GetOnCallNow(ctx context.Context, params *GetOnCallNowParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOpenApiSpec Read this specification
	//
	// The specification the binary was built from, as checked in at `api/openapi.yaml`.
	//
	// Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).
	GetOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganization Read the Organization
	//
	// Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.
	//
	// Corresponds with GET /organization (the `GetOrganization` operationId).
	GetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrganizationWithBody Update the Organization
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
	UpdateOrganizationWithBody(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrganization Update the Organization
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
	UpdateOrganization(ctx context.Context, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetKeyring Read the Keyring status
	//
	// Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.
	//
	// Corresponds with GET /organization/keyring (the `GetKeyring` operationId).
	GetKeyring(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOutboundPolicy Read the outbound address policy
	//
	// The outbound address policy with the rules that always apply. Needs `organization:read`.
	//
	// Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).
	GetOutboundPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOutboundPolicyWithBody Update the outbound address policy
	//
	// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
	UpdateOutboundPolicyWithBody(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOutboundPolicy Update the outbound address policy
	//
	// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
	UpdateOutboundPolicy(ctx context.Context, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSeverityValues List severity values seen
	//
	// Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.
	//
	// Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).
	ListSeverityValues(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompletePasswordSetupWithBody Set a password from a setup link
	//
	// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
	CompletePasswordSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompletePasswordSetup Set a password from a setup link
	//
	// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
	CompletePasswordSetup(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRequestLog List the Request log of a Connection, a Destination or a check run
	//
	// The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.
	//
	// Corresponds with GET /request-log (the `ListRequestLog` operationId).
	ListRequestLog(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRequestRecord Read a record of the Request log
	//
	// One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.
	//
	// Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).
	GetRequestRecord(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRoles List Roles with their Permissions
	//
	// Corresponds with GET /roles (the `ListRoles` operationId).
	ListRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReorderRoutesWithBody Reorder Routes
	//
	// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
	ReorderRoutesWithBody(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReorderRoutes Reorder Routes
	//
	// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
	ReorderRoutes(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRouteProfiles List Route profiles
	//
	// The two starting sets of Route settings, Paging and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.
	//
	// Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).
	ListRouteProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRouteSuggestions List Route suggestions
	//
	// A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.
	//
	// Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).
	ListRouteSuggestions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AcceptRouteSuggestionWithBody Accept a Route suggestion
	//
	// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
	AcceptRouteSuggestionWithBody(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AcceptRouteSuggestion Accept a Route suggestion
	//
	// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
	AcceptRouteSuggestion(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DismissRouteSuggestion Dismiss a Route suggestion
	//
	// Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.
	//
	// Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).
	DismissRouteSuggestion(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRoutes List Routes in evaluation order
	//
	// The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.
	//
	// Corresponds with GET /routes (the `ListRoutes` operationId).
	ListRoutes(ctx context.Context, params *ListRoutesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRouteWithBody Create a Route
	//
	// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /routes (the `CreateRoute` operationId).
	CreateRouteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRoute Create a Route
	//
	// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /routes (the `CreateRoute` operationId).
	CreateRoute(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRoute Delete a Route
	//
	// Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.
	//
	// Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).
	DeleteRoute(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRoute Read a Route
	//
	// Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).
	GetRoute(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRouteWithBody Update a Route
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
	UpdateRouteWithBody(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRoute Update a Route
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
	UpdateRoute(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRouteLabelSuggestions List the labels to suggest for "Labels in the message"
	//
	// The labels of the Alerts of the Route's Alert Groups created within `routing.group_key_preview_period` (the last 24 hours), each with an example value — its most frequent value — and the number of those Alert Groups whose Alerts carry it, most frequent first, at most 50 (C-29.FR-2). The Route form offers them as "From recent Alert Groups of the Route".
	//
	// Corresponds with GET /routes/{route_id}/label-suggestions (the `ListRouteLabelSuggestions` operationId).
	ListRouteLabelSuggestions(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MoveOpenAlertGroups Move open Alert Groups to the Default route
	//
	// Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.
	//
	// Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).
	MoveOpenAlertGroups(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSchedules List Schedules
	//
	// The Schedules by name, each with its Team and its Rotation layers. Every Role reads them.
	//
	// Corresponds with GET /schedules (the `ListSchedules` operationId).
	ListSchedules(ctx context.Context, params *ListSchedulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateScheduleWithBody Create a Schedule
	//
	// A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /schedules (the `CreateSchedule` operationId).
	CreateScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSchedule Create a Schedule
	//
	// A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /schedules (the `CreateSchedule` operationId).
	CreateSchedule(ctx context.Context, body CreateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSchedule Delete a Schedule
	//
	// Deletes the Schedule with its Rotation layers and Overrides. Deleting a Team's main Schedule leaves the Team without one until an Admin marks another (P-66). A Schedule that an Escalation step names is refused with `409` `schedule_in_use`, which names the chains in `in_use_by`.
	//
	// Corresponds with DELETE /schedules/{schedule_id} (the `DeleteSchedule` operationId).
	DeleteSchedule(ctx context.Context, scheduleId ScheduleId, params *DeleteScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSchedule Read a Schedule
	//
	// Corresponds with GET /schedules/{schedule_id} (the `GetSchedule` operationId).
	GetSchedule(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateScheduleWithBody Update a Schedule
	//
	// Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).
	UpdateScheduleWithBody(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSchedule Update a Schedule
	//
	// Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).
	UpdateSchedule(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetScheduleOnCall Read the On-call and the Result of a Schedule
	//
	// The Result of the Schedule over a period on the business clock: its segments, each with the person On-call or none in a gap, the Shifts of each Rotation layer and the Overrides in the period, and the warnings about the people who may not be Paged — Viewers, disabled Users and Users not in the Team, whose Shifts and Overrides are skipped — followed by a warning `gap` with its `start` and `end` for each gap of the period, cut to it (C-27.FR-7), and by a warning `unreachable` for each segment of the period with a person, for each Destination of the Schedule's Team, and each Destination of a Route or a Team that names an Escalation chain with a `page_on_call` step on the Schedule, that a Mention of the person cannot reach, each once, with the reason (C-27.FR-8, C-32.FR-8). The period is from `from` to `to`, by default the business clock's now and `schedule.gap_view` after it; `from` and `to` are at most 10 years from now, else `422` `out_of_range` at `/query/from` or `/query/to`, and `to` must be after `from` and at most the length of `ical.window` after it, else `422` `out_of_range` at `/query/to`. A wall-clock time that a change of the clocks skips is the instant the clocks move, and one that happens twice its first occurrence.
	//
	// Corresponds with GET /schedules/{schedule_id}/on-call (the `GetScheduleOnCall` operationId).
	GetScheduleOnCall(ctx context.Context, scheduleId ScheduleId, params *GetScheduleOnCallParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListScheduleOverrides List the Overrides of a Schedule
	//
	// The Overrides that end after `from` — the business clock's now by default — and, with `to`, start before it, by start.
	//
	// Corresponds with GET /schedules/{schedule_id}/overrides (the `ListScheduleOverrides` operationId).
	ListScheduleOverrides(ctx context.Context, scheduleId ScheduleId, params *ListScheduleOverridesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateScheduleOverrideWithBody Create an Override
	//
	// From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).
	CreateScheduleOverrideWithBody(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateScheduleOverride Create an Override
	//
	// From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).
	CreateScheduleOverride(ctx context.Context, scheduleId ScheduleId, body CreateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteScheduleOverride Delete an Override
	//
	// With the precondition of `createScheduleOverride`. An Override that has ended is refused with `409` `override_ended`, so that the past Result stays as it was. An Override that has begun is ended now instead of removed — its `end` becomes the business clock”s now and its past part stays in the Result — and the Audit log records `schedule_override.deleted` with that change of the end.
	//
	// Corresponds with DELETE /schedules/{schedule_id}/overrides/{override_id} (the `DeleteScheduleOverride` operationId).
	DeleteScheduleOverride(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *DeleteScheduleOverrideParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateScheduleOverrideWithBody Update an Override
	//
	// Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).
	UpdateScheduleOverrideWithBody(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateScheduleOverride Update an Override
	//
	// Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).
	UpdateScheduleOverride(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, body UpdateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListServiceAccounts List Service accounts
	//
	// Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).
	ListServiceAccounts(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceAccountWithBody Create a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
	CreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceAccount Create a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
	CreateServiceAccount(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteServiceAccount Delete a Service account
	//
	// Revokes its tokens.
	//
	// Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).
	DeleteServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceAccount Read a Service account
	//
	// Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).
	GetServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateServiceAccountWithBody Update a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
	UpdateServiceAccountWithBody(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateServiceAccount Update a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
	UpdateServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableServiceAccount Disable a Service account
	//
	// Its tokens stop working until the account is enabled again.
	//
	// Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).
	DisableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableServiceAccount Enable a Service account
	//
	// Makes a disabled Service account usable again; its tokens work again.
	//
	// Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).
	EnableServiceAccount(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListServiceAccountTokens List tokens of a Service account
	//
	// Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).
	ListServiceAccountTokens(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceAccountTokenWithBody Create a Service account token
	//
	// Shows the token once. Web session only: a token can never mint another token.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
	CreateServiceAccountTokenWithBody(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceAccountToken Create a Service account token
	//
	// Shows the token once. Web session only: a token can never mint another token.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
	CreateServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeServiceAccountToken Revoke a Service account token
	//
	// Revokes the token at once. Web session only: a token can never revoke a token.
	//
	// Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).
	RevokeServiceAccountToken(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSessionWithBody Sign in with a local account
	//
	// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /sessions (the `CreateSession` operationId).
	CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSession Sign in with a local account
	//
	// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /sessions (the `CreateSession` operationId).
	CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCurrentSession Sign out
	//
	// Ends the session, in any state.
	//
	// Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).
	DeleteCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCurrentSession Read the current session
	//
	// Returns the session in any state, including the CSRF token the SPA sends on mutating requests.
	//
	// Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).
	GetCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitSessionTotpWithBody Give the second factor
	//
	// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
	SubmitSessionTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitSessionTotp Give the second factor
	//
	// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
	SubmitSessionTotp(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompleteOidcSignIn Complete OIDC sign-in
	//
	// Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).
	//
	// Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).
	CompleteOidcSignIn(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartOidcSignIn Start OIDC sign-in
	//
	// Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.
	//
	// Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).
	StartOidcSignIn(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSignInOptions Read sign-in options
	//
	// Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.
	//
	// Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).
	GetSignInOptions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSnoozePresets List the ends of the Snooze presets
	//
	// The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.
	//
	// Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).
	ListSnoozePresets(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListStoredSnapshots List Stored Snapshots
	//
	// Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.
	//
	// Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).
	ListStoredSnapshots(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStoredSnapshot Read a Stored Snapshot as received
	//
	// Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).
	GetStoredSnapshot(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSystemNotices List active Organization-wide notices
	//
	// "Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.
	//
	// Corresponds with GET /system-notices (the `ListSystemNotices` operationId).
	ListSystemNotices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSystemStatus Read the System status
	//
	// Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.
	//
	// Corresponds with GET /system-status (the `GetSystemStatus` operationId).
	GetSystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTeamLabelValues List values of the Team label without a Team
	//
	// The values of the Organization's Team label, with the Static labels of their Integrations, that Alerts last seen in the last `organization.team_values_window` carried and that name no Team that is not deleted, the most recently seen first and at most 500 values; `valid_slug` is false for a value outside `team.slug_format`, which reaches a Team only through a Team matcher.
	//
	// Corresponds with GET /team-label-values (the `ListTeamLabelValues` operationId).
	ListTeamLabelValues(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTeams List Teams
	//
	// The Teams that are not deleted, by name. A Team grants no access of its own; every Role reads them.
	//
	// Corresponds with GET /teams (the `ListTeams` operationId).
	ListTeams(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTeamWithBody Create a Team
	//
	// The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTeam Create a Team
	//
	// The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTeam Delete a Team
	//
	// Removes the Team's people and Working hours and leaves the Routes and Destinations it owned without an owner, each with a new `version`; the Team stays, marked deleted, for what names it, and its slug is free at once. A Team that has Schedules or owns Escalation chains is refused with `409` `team_in_use`, which names them in `in_use_by`; its `chain_entries` are removed with it.
	//
	// Corresponds with DELETE /teams/{team_id} (the `DeleteTeam` operationId).
	DeleteTeam(ctx context.Context, teamId TeamId, params *DeleteTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTeam Read a Team
	//
	// Corresponds with GET /teams/{team_id} (the `GetTeam` operationId).
	GetTeam(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTeamWithBody Update a Team
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).
	UpdateTeamWithBody(ctx context.Context, teamId TeamId, params *UpdateTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTeam Update a Team
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).
	UpdateTeam(ctx context.Context, teamId TeamId, params *UpdateTeamParams, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTeamUsers List the people in a Team
	//
	// Each person with their Role, how they are in the Team and the messengers they linked, by name. The complete list, not paginated.
	//
	// Corresponds with GET /teams/{team_id}/users (the `ListTeamUsers` operationId).
	ListTeamUsers(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddTeamUserWithBody Add a person to a Team
	//
	// Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).
	AddTeamUserWithBody(ctx context.Context, teamId TeamId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddTeamUser Add a person to a Team
	//
	// Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).
	AddTeamUser(ctx context.Context, teamId TeamId, body AddTeamUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveTeamUser Remove a person from a Team
	//
	// Takes away the source `by_hand` of a person in the Team. A person also in it through the identity provider stays in it with the source `idp`, until a later sign-in or re-check finds that no entry of the Team matches them. `404` when the User has no source `by_hand` in the Team, including a person who is in it only through the identity provider.
	//
	// Corresponds with DELETE /teams/{team_id}/users/{user_id} (the `RemoveTeamUser` operationId).
	RemoveTeamUser(ctx context.Context, teamId TeamId, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewTemplateWithBody Render a template against a sample
	//
	// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
	PreviewTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewTemplate Render a template against a sample
	//
	// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
	PreviewTemplate(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUserDirectory List users for pickers and filters
	//
	// Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.
	//
	// Corresponds with GET /user-directory (the `ListUserDirectory` operationId).
	ListUserDirectory(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsers List users
	//
	// Corresponds with GET /users (the `ListUsers` operationId).
	ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserWithBody Create a local user
	//
	// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUser Create a local user
	//
	// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUser Delete a user
	//
	// Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked, Account links are removed and the iCal feed is deleted. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).
	//
	// Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).
	DeleteUser(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUser Read a user
	//
	// Corresponds with GET /users/{user_id} (the `GetUser` operationId).
	GetUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserWithBody Update a user
	//
	// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
	UpdateUserWithBody(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUser Update a user
	//
	// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
	UpdateUser(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUserAccountLinks List a user's Account links
	//
	// Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).
	ListUserAccountLinks(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUserAccountLink Remove a user's Account link
	//
	// Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).
	//
	// Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).
	DeleteUserAccountLink(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ConvertUserToLocal Convert an OIDC account to local
	//
	// Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.
	//
	// Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).
	ConvertUserToLocal(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableUser Disable a user
	//
	// Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).
	//
	// Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).
	DisableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableUser Enable a user
	//
	// Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).
	EnableUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUserGatewayContacts List a user's contacts at Notification gateways
	//
	// The contacts of a User with their state, confirmed or not; a deleted User has none (C-03.FR-13).
	//
	// Corresponds with GET /users/{user_id}/gateway-contacts (the `ListUserGatewayContacts` operationId).
	ListUserGatewayContacts(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserGatewayContactWithBody Set a user's contact (always refused)
	//
	// Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).
	CreateUserGatewayContactWithBody(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserGatewayContact Set a user's contact (always refused)
	//
	// Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).
	CreateUserGatewayContact(ctx context.Context, userId UserId, body CreateUserGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUserGatewayContact Remove a user's contact at a Notification gateway
	//
	// Admins can remove any contact but never set one. Its codes stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, as for `deleteMyGatewayContact`. Recorded in the Audit log as `gateway_contact.deleted`. An Admin's own contact is removed from the web session only; with a token the answer is `403` (`session_required`).
	//
	// Corresponds with DELETE /users/{user_id}/gateway-contacts/{gateway_contact_id} (the `DeleteUserGatewayContact` operationId).
	DeleteUserGatewayContact(ctx context.Context, userId UserId, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeUserIcalFeed Revoke a user's iCal feed
	//
	// Revokes the user's personal iCal feed, for example after its link leaked. The link answers `404` at once on every replica, and the user can issue a new one (`issueMyIcalFeed`). `204` also when the user has no feed. Recorded in the Audit log as `ical_feed.revoked` with the reason `revoked_by_admin` when a feed existed. A deleted user is `404`.
	//
	// Corresponds with DELETE /users/{user_id}/ical-feed (the `RevokeUserIcalFeed` operationId).
	RevokeUserIcalFeed(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserNotificationRules Read a user's Notification rules
	//
	// The rules of a User, as `getMyNotificationRules` reads them for the caller (C-31.FR-4); a deleted User answers `404`.
	//
	// Corresponds with GET /users/{user_id}/notification-rules (the `GetUserNotificationRules` operationId).
	GetUserNotificationRules(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserNotificationRulesWithBody Change a user's Notification rules
	//
	// An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).
	UpdateUserNotificationRulesWithBody(ctx context.Context, userId UserId, params *UpdateUserNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserNotificationRules Change a user's Notification rules
	//
	// An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).
	UpdateUserNotificationRules(ctx context.Context, userId UserId, params *UpdateUserNotificationRulesParams, body UpdateUserNotificationRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePasswordSetupLink Issue a password setup link
	//
	// Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).
	//
	// Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).
	CreatePasswordSetupLink(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResetUserTotp Reset a user's TOTP
	//
	// Audited. The user enrols again at the next sign-in if the policy requires it.
	//
	// Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).
	ResetUserTotp(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AcceptRouteSuggestionWithBodyWithResponse

func (c *ClientWithResponses) AcceptRouteSuggestionWithBodyWithResponse(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)

AcceptRouteSuggestionWithBodyWithResponse Accept a Route suggestion

Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).

func (*ClientWithResponses) AcceptRouteSuggestionWithResponse

func (c *ClientWithResponses) AcceptRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)

AcceptRouteSuggestionWithResponse Accept a Route suggestion

Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).

func (*ClientWithResponses) AcknowledgeAlertGroupWithResponse

func (c *ClientWithResponses) AcknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AcknowledgeAlertGroupResponse, error)

AcknowledgeAlertGroupWithResponse Acknowledge

From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).

func (*ClientWithResponses) AddTeamUserWithBodyWithResponse

func (c *ClientWithResponses) AddTeamUserWithBodyWithResponse(ctx context.Context, teamId TeamId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTeamUserResponse, error)

AddTeamUserWithBodyWithResponse Add a person to a Team

Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).

func (*ClientWithResponses) AddTeamUserWithResponse

func (c *ClientWithResponses) AddTeamUserWithResponse(ctx context.Context, teamId TeamId, body AddTeamUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTeamUserResponse, error)

AddTeamUserWithResponse Add a person to a Team

Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).

func (*ClientWithResponses) AnswerReminderWithResponse

func (c *ClientWithResponses) AnswerReminderWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AnswerReminderResponse, error)

AnswerReminderWithResponse Answer a Reminder with "Still on it"

Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).

func (*ClientWithResponses) BeginTotpEnrolmentWithResponse

func (c *ClientWithResponses) BeginTotpEnrolmentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BeginTotpEnrolmentResponse, error)

BeginTotpEnrolmentWithResponse Begin TOTP enrolment

Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).

func (*ClientWithResponses) BridgeEventWithBodyWithResponse

func (c *ClientWithResponses) BridgeEventWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)

BridgeEventWithBodyWithResponse Receive a Bridge event (push event delivery)

Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).

func (*ClientWithResponses) BridgeEventWithResponse

func (c *ClientWithResponses) BridgeEventWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)

BridgeEventWithResponse Receive a Bridge event (push event delivery)

Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).

func (*ClientWithResponses) ChangePasswordWithBodyWithResponse

func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

ChangePasswordWithBodyWithResponse Change own password

Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /me/password (the `ChangePassword` operationId).

func (*ClientWithResponses) ChangePasswordWithResponse

func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

ChangePasswordWithResponse Change own password

Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /me/password (the `ChangePassword` operationId).

func (*ClientWithResponses) CheckConnectionDraftWithBodyWithResponse

func (c *ClientWithResponses) CheckConnectionDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)

CheckConnectionDraftWithBodyWithResponse Check a Connection before saving it

Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).

func (*ClientWithResponses) CheckConnectionDraftWithResponse

func (c *ClientWithResponses) CheckConnectionDraftWithResponse(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)

CheckConnectionDraftWithResponse Check a Connection before saving it

Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).

func (*ClientWithResponses) CheckConnectionWithBodyWithResponse

func (c *ClientWithResponses) CheckConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)

CheckConnectionWithBodyWithResponse Check a Connection

Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).

func (*ClientWithResponses) CheckConnectionWithResponse

func (c *ClientWithResponses) CheckConnectionWithResponse(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)

CheckConnectionWithResponse Check a Connection

Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).

func (*ClientWithResponses) CheckDestinationWithResponse

func (c *ClientWithResponses) CheckDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*CheckDestinationResponse, error)

CheckDestinationWithResponse Run the Destination check

Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).

func (*ClientWithResponses) CheckOidcSettingsWithResponse

func (c *ClientWithResponses) CheckOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckOidcSettingsResponse, error)

CheckOidcSettingsWithResponse Check the connection to the identity provider

Fetches discovery through the outbound HTTP package, with the saved proxy, keeps its `claims_supported` for the settings, and reports, for the groups claim and every claim an entry of the mapping names, whether it is advertised. While no sign-in has seen a claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` for it and a listed one clears it; once a sign-in has seen the claim, the check changes nothing for it.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).

func (*ClientWithResponses) CompleteOidcLinkWithResponse

func (c *ClientWithResponses) CompleteOidcLinkWithResponse(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*CompleteOidcLinkResponse, error)

CompleteOidcLinkWithResponse Complete linking an OIDC identity

Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).

func (*ClientWithResponses) CompleteOidcSignInWithResponse

func (c *ClientWithResponses) CompleteOidcSignInWithResponse(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*CompleteOidcSignInResponse, error)

CompleteOidcSignInWithResponse Complete OIDC sign-in

Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).

func (*ClientWithResponses) CompletePasswordSetupWithBodyWithResponse

func (c *ClientWithResponses) CompletePasswordSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)

CompletePasswordSetupWithBodyWithResponse Set a password from a setup link

Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).

func (*ClientWithResponses) CompletePasswordSetupWithResponse

func (c *ClientWithResponses) CompletePasswordSetupWithResponse(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)

CompletePasswordSetupWithResponse Set a password from a setup link

Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).

func (*ClientWithResponses) ConfirmBridgeLinkWithBodyWithResponse

func (c *ClientWithResponses) ConfirmBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)

ConfirmBridgeLinkWithBodyWithResponse Confirm a Bridge link with the code

At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).

func (*ClientWithResponses) ConfirmBridgeLinkWithResponse

func (c *ClientWithResponses) ConfirmBridgeLinkWithResponse(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)

ConfirmBridgeLinkWithResponse Confirm a Bridge link with the code

At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).

func (*ClientWithResponses) ConfirmMattermostLinkWithBodyWithResponse

func (c *ClientWithResponses) ConfirmMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)

ConfirmMattermostLinkWithBodyWithResponse Confirm a Mattermost link with the code

At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).

func (*ClientWithResponses) ConfirmMattermostLinkWithResponse

func (c *ClientWithResponses) ConfirmMattermostLinkWithResponse(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)

ConfirmMattermostLinkWithResponse Confirm a Mattermost link with the code

At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).

func (*ClientWithResponses) ConfirmMyGatewayContactWithBodyWithResponse

func (c *ClientWithResponses) ConfirmMyGatewayContactWithBodyWithResponse(ctx context.Context, gatewayContactId GatewayContactId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmMyGatewayContactResponse, error)

ConfirmMyGatewayContactWithBodyWithResponse Confirm an own contact with the code

Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).

func (*ClientWithResponses) ConfirmMyGatewayContactWithResponse

func (c *ClientWithResponses) ConfirmMyGatewayContactWithResponse(ctx context.Context, gatewayContactId GatewayContactId, body ConfirmMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmMyGatewayContactResponse, error)

ConfirmMyGatewayContactWithResponse Confirm an own contact with the code

Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).

func (*ClientWithResponses) ConfirmSlackLinkWithBodyWithResponse

func (c *ClientWithResponses) ConfirmSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)

ConfirmSlackLinkWithBodyWithResponse Confirm a Slack link with the code

At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).

func (*ClientWithResponses) ConfirmSlackLinkWithResponse

func (c *ClientWithResponses) ConfirmSlackLinkWithResponse(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)

ConfirmSlackLinkWithResponse Confirm a Slack link with the code

At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).

func (*ClientWithResponses) ConfirmTotpEnrolmentWithBodyWithResponse

func (c *ClientWithResponses) ConfirmTotpEnrolmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)

ConfirmTotpEnrolmentWithBodyWithResponse Confirm TOTP enrolment

Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).

func (*ClientWithResponses) ConfirmTotpEnrolmentWithResponse

func (c *ClientWithResponses) ConfirmTotpEnrolmentWithResponse(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)

ConfirmTotpEnrolmentWithResponse Confirm TOTP enrolment

Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).

func (*ClientWithResponses) ConvertUserToLocalWithResponse

func (c *ClientWithResponses) ConvertUserToLocalWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ConvertUserToLocalResponse, error)

ConvertUserToLocalWithResponse Convert an OIDC account to local

Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).

func (*ClientWithResponses) CreateAlertGroupNoteWithBodyWithResponse

func (c *ClientWithResponses) CreateAlertGroupNoteWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)

CreateAlertGroupNoteWithBodyWithResponse Add a Note

Adds a Note. Service accounts may add Notes; the author is shown as the Service account.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).

func (*ClientWithResponses) CreateAlertGroupNoteWithResponse

func (c *ClientWithResponses) CreateAlertGroupNoteWithResponse(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)

CreateAlertGroupNoteWithResponse Add a Note

Adds a Note. Service accounts may add Notes; the author is shown as the Service account.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).

func (*ClientWithResponses) CreateConnectionWithBodyWithResponse

func (c *ClientWithResponses) CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)

CreateConnectionWithBodyWithResponse Create Connection

`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /connections (the `CreateConnection` operationId).

func (*ClientWithResponses) CreateConnectionWithResponse

func (c *ClientWithResponses) CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)

CreateConnectionWithResponse Create Connection

`type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /connections (the `CreateConnection` operationId).

func (*ClientWithResponses) CreateDestinationWithBodyWithResponse

func (c *ClientWithResponses) CreateDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)

CreateDestinationWithBodyWithResponse Create Destination

`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations (the `CreateDestination` operationId).

func (*ClientWithResponses) CreateDestinationWithResponse

func (c *ClientWithResponses) CreateDestinationWithResponse(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)

CreateDestinationWithResponse Create Destination

`type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations (the `CreateDestination` operationId).

func (*ClientWithResponses) CreateEscalationChainWithBodyWithResponse

func (c *ClientWithResponses) CreateEscalationChainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEscalationChainResponse, error)

CreateEscalationChainWithBodyWithResponse Create an Escalation chain

A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).

func (*ClientWithResponses) CreateEscalationChainWithResponse

func (c *ClientWithResponses) CreateEscalationChainWithResponse(ctx context.Context, body CreateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEscalationChainResponse, error)

CreateEscalationChainWithResponse Create an Escalation chain

A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).

func (*ClientWithResponses) CreateIntegrationTokenWithBodyWithResponse

func (c *ClientWithResponses) CreateIntegrationTokenWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)

CreateIntegrationTokenWithBodyWithResponse Create an Integration token

The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).

func (*ClientWithResponses) CreateIntegrationTokenWithResponse

func (c *ClientWithResponses) CreateIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)

CreateIntegrationTokenWithResponse Create an Integration token

The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).

func (*ClientWithResponses) CreateIntegrationWithBodyWithResponse

func (c *ClientWithResponses) CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)

CreateIntegrationWithBodyWithResponse Create Integration

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /integrations (the `CreateIntegration` operationId).

func (*ClientWithResponses) CreateIntegrationWithResponse

func (c *ClientWithResponses) CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)

CreateIntegrationWithResponse Create Integration

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /integrations (the `CreateIntegration` operationId).

func (*ClientWithResponses) CreateLinkRuleWithBodyWithResponse

func (c *ClientWithResponses) CreateLinkRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)

CreateLinkRuleWithBodyWithResponse Create LinkRule

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /link-rules (the `CreateLinkRule` operationId).

func (*ClientWithResponses) CreateLinkRuleWithResponse

func (c *ClientWithResponses) CreateLinkRuleWithResponse(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)

CreateLinkRuleWithResponse Create LinkRule

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /link-rules (the `CreateLinkRule` operationId).

func (*ClientWithResponses) CreateLookupTableWithBodyWithResponse

func (c *ClientWithResponses) CreateLookupTableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)

CreateLookupTableWithBodyWithResponse Create LookupTable

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).

func (*ClientWithResponses) CreateLookupTableWithResponse

func (c *ClientWithResponses) CreateLookupTableWithResponse(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)

CreateLookupTableWithResponse Create LookupTable

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).

func (*ClientWithResponses) CreateMyGatewayContactWithBodyWithResponse

func (c *ClientWithResponses) CreateMyGatewayContactWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMyGatewayContactResponse, error)

CreateMyGatewayContactWithBodyWithResponse Add an own contact at a Notification gateway

Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).

func (*ClientWithResponses) CreateMyGatewayContactWithResponse

func (c *ClientWithResponses) CreateMyGatewayContactWithResponse(ctx context.Context, body CreateMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMyGatewayContactResponse, error)

CreateMyGatewayContactWithResponse Add an own contact at a Notification gateway

Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).

func (*ClientWithResponses) CreatePasswordSetupLinkWithResponse

func (c *ClientWithResponses) CreatePasswordSetupLinkWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*CreatePasswordSetupLinkResponse, error)

CreatePasswordSetupLinkWithResponse Issue a password setup link

Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).

func (*ClientWithResponses) CreatePersonalAccessTokenWithBodyWithResponse

func (c *ClientWithResponses) CreatePersonalAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)

CreatePersonalAccessTokenWithBodyWithResponse Create a Personal access token

Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).

func (*ClientWithResponses) CreatePersonalAccessTokenWithResponse

func (c *ClientWithResponses) CreatePersonalAccessTokenWithResponse(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)

CreatePersonalAccessTokenWithResponse Create a Personal access token

Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).

func (*ClientWithResponses) CreateRouteWithBodyWithResponse

func (c *ClientWithResponses) CreateRouteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)

CreateRouteWithBodyWithResponse Create a Route

Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /routes (the `CreateRoute` operationId).

func (*ClientWithResponses) CreateRouteWithResponse

func (c *ClientWithResponses) CreateRouteWithResponse(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)

CreateRouteWithResponse Create a Route

Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /routes (the `CreateRoute` operationId).

func (*ClientWithResponses) CreateScheduleOverrideWithBodyWithResponse

func (c *ClientWithResponses) CreateScheduleOverrideWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScheduleOverrideResponse, error)

CreateScheduleOverrideWithBodyWithResponse Create an Override

From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).

func (*ClientWithResponses) CreateScheduleOverrideWithResponse

func (c *ClientWithResponses) CreateScheduleOverrideWithResponse(ctx context.Context, scheduleId ScheduleId, body CreateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScheduleOverrideResponse, error)

CreateScheduleOverrideWithResponse Create an Override

From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).

func (*ClientWithResponses) CreateScheduleWithBodyWithResponse

func (c *ClientWithResponses) CreateScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScheduleResponse, error)

CreateScheduleWithBodyWithResponse Create a Schedule

A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /schedules (the `CreateSchedule` operationId).

func (*ClientWithResponses) CreateScheduleWithResponse

func (c *ClientWithResponses) CreateScheduleWithResponse(ctx context.Context, body CreateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScheduleResponse, error)

CreateScheduleWithResponse Create a Schedule

A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /schedules (the `CreateSchedule` operationId).

func (*ClientWithResponses) CreateServiceAccountTokenWithBodyWithResponse

func (c *ClientWithResponses) CreateServiceAccountTokenWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)

CreateServiceAccountTokenWithBodyWithResponse Create a Service account token

Shows the token once. Web session only: a token can never mint another token.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).

func (*ClientWithResponses) CreateServiceAccountTokenWithResponse

func (c *ClientWithResponses) CreateServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)

CreateServiceAccountTokenWithResponse Create a Service account token

Shows the token once. Web session only: a token can never mint another token.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).

func (*ClientWithResponses) CreateServiceAccountWithBodyWithResponse

func (c *ClientWithResponses) CreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)

CreateServiceAccountWithBodyWithResponse Create a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).

func (*ClientWithResponses) CreateServiceAccountWithResponse

func (c *ClientWithResponses) CreateServiceAccountWithResponse(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)

CreateServiceAccountWithResponse Create a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).

func (*ClientWithResponses) CreateSessionWithBodyWithResponse

func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

CreateSessionWithBodyWithResponse Sign in with a local account

Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /sessions (the `CreateSession` operationId).

func (*ClientWithResponses) CreateSessionWithResponse

func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

CreateSessionWithResponse Sign in with a local account

Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /sessions (the `CreateSession` operationId).

func (*ClientWithResponses) CreateTeamWithBodyWithResponse

func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

CreateTeamWithBodyWithResponse Create a Team

The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*ClientWithResponses) CreateTeamWithResponse

func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

CreateTeamWithResponse Create a Team

The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*ClientWithResponses) CreateUserGatewayContactWithBodyWithResponse

func (c *ClientWithResponses) CreateUserGatewayContactWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserGatewayContactResponse, error)

CreateUserGatewayContactWithBodyWithResponse Set a user's contact (always refused)

Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).

func (*ClientWithResponses) CreateUserGatewayContactWithResponse

func (c *ClientWithResponses) CreateUserGatewayContactWithResponse(ctx context.Context, userId UserId, body CreateUserGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserGatewayContactResponse, error)

CreateUserGatewayContactWithResponse Set a user's contact (always refused)

Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).

func (*ClientWithResponses) CreateUserWithBodyWithResponse

func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

CreateUserWithBodyWithResponse Create a local user

Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users (the `CreateUser` operationId).

func (*ClientWithResponses) CreateUserWithResponse

func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

CreateUserWithResponse Create a local user

Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users (the `CreateUser` operationId).

func (*ClientWithResponses) DeleteConnectionWithResponse

func (c *ClientWithResponses) DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*DeleteConnectionResponse, error)

DeleteConnectionWithResponse Delete Connection

A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered. The deletion also deletes the Team mentions of the Connection, each recorded in the Audit log of its Team; when Teams keep giving the Connection a first Team mention while it runs, it is run again, and after three attempts it answers `409` (`team_mentions_changed`) and deletes nothing: delete it again.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).

func (*ClientWithResponses) DeleteCurrentSessionWithResponse

func (c *ClientWithResponses) DeleteCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCurrentSessionResponse, error)

DeleteCurrentSessionWithResponse Sign out

Ends the session, in any state.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).

func (*ClientWithResponses) DeleteDestinationSecretWithResponse

func (c *ClientWithResponses) DeleteDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*DeleteDestinationSecretResponse, error)

DeleteDestinationSecretWithResponse Delete a Secret of a webhook Destination

`If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).

func (*ClientWithResponses) DeleteDestinationWithResponse

func (c *ClientWithResponses) DeleteDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*DeleteDestinationResponse, error)

DeleteDestinationWithResponse Delete Destination

Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).

func (*ClientWithResponses) DeleteEscalationChainWithResponse

func (c *ClientWithResponses) DeleteEscalationChainWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *DeleteEscalationChainParams, reqEditors ...RequestEditorFn) (*DeleteEscalationChainResponse, error)

DeleteEscalationChainWithResponse Delete an Escalation chain

Deletes the chain with its steps. A chain that a Route or a Team names is refused with `409` `chain_in_use`, which names them in `in_use_by`.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /escalation-chains/{escalation_chain_id} (the `DeleteEscalationChain` operationId).

func (*ClientWithResponses) DeleteIntegrationWithResponse

func (c *ClientWithResponses) DeleteIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*DeleteIntegrationResponse, error)

DeleteIntegrationWithResponse Delete Integration

Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).

func (*ClientWithResponses) DeleteLinkRuleWithResponse

func (c *ClientWithResponses) DeleteLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*DeleteLinkRuleResponse, error)

DeleteLinkRuleWithResponse Delete LinkRule

The built-in "Explore" rule cannot be deleted (`409`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).

func (*ClientWithResponses) DeleteLookupTableWithResponse

func (c *ClientWithResponses) DeleteLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*DeleteLookupTableResponse, error)

DeleteLookupTableWithResponse Delete LookupTable

Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).

func (*ClientWithResponses) DeleteMyAccountLinkWithResponse

func (c *ClientWithResponses) DeleteMyAccountLinkWithResponse(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteMyAccountLinkResponse, error)

DeleteMyAccountLinkWithResponse Unlink an own messenger account

Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).

func (*ClientWithResponses) DeleteMyGatewayContactWithResponse

func (c *ClientWithResponses) DeleteMyGatewayContactWithResponse(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*DeleteMyGatewayContactResponse, error)

DeleteMyGatewayContactWithResponse Remove an own contact at a Notification gateway

Removes one of the caller's contacts, confirmed or not; a confirmed contact is no longer called. Its codes can no longer confirm anything, but stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, so that removing and adding a contact again does not reset the limits. Recorded in the Audit log as `gateway_contact.deleted`. Web session only: a token gets `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /me/gateway-contacts/{gateway_contact_id} (the `DeleteMyGatewayContact` operationId).

func (*ClientWithResponses) DeleteMySessionsWithResponse

func (c *ClientWithResponses) DeleteMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteMySessionsResponse, error)

DeleteMySessionsWithResponse Sign out everywhere

Ends every session of the user, the current one included. Web session only.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).

func (*ClientWithResponses) DeleteRouteWithResponse

func (c *ClientWithResponses) DeleteRouteWithResponse(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*DeleteRouteResponse, error)

DeleteRouteWithResponse Delete a Route

Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).

func (*ClientWithResponses) DeleteScheduleOverrideWithResponse

func (c *ClientWithResponses) DeleteScheduleOverrideWithResponse(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *DeleteScheduleOverrideParams, reqEditors ...RequestEditorFn) (*DeleteScheduleOverrideResponse, error)

DeleteScheduleOverrideWithResponse Delete an Override

With the precondition of `createScheduleOverride`. An Override that has ended is refused with `409` `override_ended`, so that the past Result stays as it was. An Override that has begun is ended now instead of removed — its `end` becomes the business clock”s now and its past part stays in the Result — and the Audit log records `schedule_override.deleted` with that change of the end.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /schedules/{schedule_id}/overrides/{override_id} (the `DeleteScheduleOverride` operationId).

func (*ClientWithResponses) DeleteScheduleWithResponse

func (c *ClientWithResponses) DeleteScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, params *DeleteScheduleParams, reqEditors ...RequestEditorFn) (*DeleteScheduleResponse, error)

DeleteScheduleWithResponse Delete a Schedule

Deletes the Schedule with its Rotation layers and Overrides. Deleting a Team's main Schedule leaves the Team without one until an Admin marks another (P-66). A Schedule that an Escalation step names is refused with `409` `schedule_in_use`, which names the chains in `in_use_by`.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /schedules/{schedule_id} (the `DeleteSchedule` operationId).

func (*ClientWithResponses) DeleteServiceAccountWithResponse

func (c *ClientWithResponses) DeleteServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*DeleteServiceAccountResponse, error)

DeleteServiceAccountWithResponse Delete a Service account

Revokes its tokens.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).

func (*ClientWithResponses) DeleteTeamWithResponse

func (c *ClientWithResponses) DeleteTeamWithResponse(ctx context.Context, teamId TeamId, params *DeleteTeamParams, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)

DeleteTeamWithResponse Delete a Team

Removes the Team's people and Working hours and leaves the Routes and Destinations it owned without an owner, each with a new `version`; the Team stays, marked deleted, for what names it, and its slug is free at once. A Team that has Schedules or owns Escalation chains is refused with `409` `team_in_use`, which names them in `in_use_by`; its `chain_entries` are removed with it.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /teams/{team_id} (the `DeleteTeam` operationId).

func (*ClientWithResponses) DeleteUserAccountLinkWithResponse

func (c *ClientWithResponses) DeleteUserAccountLinkWithResponse(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteUserAccountLinkResponse, error)

DeleteUserAccountLinkWithResponse Remove a user's Account link

Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).

func (*ClientWithResponses) DeleteUserGatewayContactWithResponse

func (c *ClientWithResponses) DeleteUserGatewayContactWithResponse(ctx context.Context, userId UserId, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*DeleteUserGatewayContactResponse, error)

DeleteUserGatewayContactWithResponse Remove a user's contact at a Notification gateway

Admins can remove any contact but never set one. Its codes stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, as for `deleteMyGatewayContact`. Recorded in the Audit log as `gateway_contact.deleted`. An Admin's own contact is removed from the web session only; with a token the answer is `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /users/{user_id}/gateway-contacts/{gateway_contact_id} (the `DeleteUserGatewayContact` operationId).

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

DeleteUserWithResponse Delete a user

Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked, Account links are removed and the iCal feed is deleted. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).

func (*ClientWithResponses) DisableServiceAccountWithResponse

func (c *ClientWithResponses) DisableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*DisableServiceAccountResponse, error)

DisableServiceAccountWithResponse Disable a Service account

Its tokens stop working until the account is enabled again.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).

func (*ClientWithResponses) DisableUserWithResponse

func (c *ClientWithResponses) DisableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*DisableUserResponse, error)

DisableUserWithResponse Disable a user

Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).

func (*ClientWithResponses) DismissRouteSuggestionWithResponse

func (c *ClientWithResponses) DismissRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*DismissRouteSuggestionResponse, error)

DismissRouteSuggestionWithResponse Dismiss a Route suggestion

Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).

func (*ClientWithResponses) EnableServiceAccountWithResponse

func (c *ClientWithResponses) EnableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*EnableServiceAccountResponse, error)

EnableServiceAccountWithResponse Enable a Service account

Makes a disabled Service account usable again; its tokens work again.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).

func (*ClientWithResponses) EnableUserWithResponse

func (c *ClientWithResponses) EnableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*EnableUserResponse, error)

EnableUserWithResponse Enable a user

Returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).

func (*ClientWithResponses) GenerateSigningSecretWithResponse

func (c *ClientWithResponses) GenerateSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GenerateSigningSecretResponse, error)

GenerateSigningSecretWithResponse Regenerate the Signing secret

The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).

func (*ClientWithResponses) GetAlertGroupActorStatisticsWithResponse

func (c *ClientWithResponses) GetAlertGroupActorStatisticsWithResponse(ctx context.Context, params *GetAlertGroupActorStatisticsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupActorStatisticsResponse, error)

GetAlertGroupActorStatisticsWithResponse Read Alert Group statistics by people

Who acted on the Alert Groups that started in [`from`, `to`) and match the filters, which combine with AND, matched as in `getAlertGroupStatistics`: one item per User that acknowledged at least one of them first or resolved at least one, and one per Service account that resolved at least one. `acknowledged_first_count` counts the Alert Groups whose first acknowledgement the actor made, also after `to`, with its time to acknowledge; `resolved_count` those the actor resolved, by its resolver. An Alert Group gives at most one of each, to one actor; one never acknowledged counts in no `acknowledged_first_count`, and one resolved by the system in no `resolved_count`. The Alert Groups that were acknowledged but whose first acknowledgement names nobody — an Alert Group acknowledged before 0.2.0 whose Timeline was no longer whole, or on a replica of an earlier version — make one item with `actor` null, last, with `resolved_count` 0; never with `first_acknowledged_by`. So `acknowledged_first_count` adds up over the items to the `time_to_acknowledge.count` of `getAlertGroupStatistics?group_by=route` for the same period and filters. The items are complete, not paginated: by `acknowledged_first_count`, most first, then by name regardless of case, then by the exact name, then by `public_id`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-group-actor-statistics (the `GetAlertGroupActorStatistics` operationId).

func (*ClientWithResponses) GetAlertGroupCountsWithResponse

func (c *ClientWithResponses) GetAlertGroupCountsWithResponse(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupCountsResponse, error)

GetAlertGroupCountsWithResponse Count Alert Groups per status

Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).

func (*ClientWithResponses) GetAlertGroupStatisticsWithResponse

func (c *ClientWithResponses) GetAlertGroupStatisticsWithResponse(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupStatisticsResponse, error)

GetAlertGroupStatisticsWithResponse Read Alert Group statistics

Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route, per Integration or per Team as `group_by` says. The period selects the Alert Groups that started in [`from`, `to`), not those whose lifetime overlaps it, as the list's time range does. The filters `route`, `integration`, `severity`, `urgent`, `team`, `reopened`, `label` and `first_acknowledged_by` combine with AND, matched as `listAlertGroups` matches them, for every `group_by`; the filter of the kind of `group_by` also chooses the items (`team=mine` the caller's Teams). Without it every Route, Integration or Team that is not deleted is an item, and each deleted one with Alert Groups in the period. An Alert Group with Alerts from several Integrations counts for each, and one with several Teams for each Team; one without a Team counts for no Team.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).

func (*ClientWithResponses) GetAlertGroupTimelineWithResponse

func (c *ClientWithResponses) GetAlertGroupTimelineWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*GetAlertGroupTimelineResponse, error)

GetAlertGroupTimelineWithResponse Read the Timeline of an Alert Group

Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).

func (*ClientWithResponses) GetAlertGroupWithResponse

func (c *ClientWithResponses) GetAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*GetAlertGroupResponse, error)

GetAlertGroupWithResponse Read an Alert Group

An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).

func (*ClientWithResponses) GetConnectionWithResponse

func (c *ClientWithResponses) GetConnectionWithResponse(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)

GetConnectionWithResponse Read Connection

Returns a wrapper object for the known response body format(s).

Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).

func (*ClientWithResponses) GetCurrentSessionWithResponse

func (c *ClientWithResponses) GetCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSessionResponse, error)

GetCurrentSessionWithResponse Read the current session

Returns the session in any state, including the CSRF token the SPA sends on mutating requests.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).

func (*ClientWithResponses) GetDestinationWithResponse

func (c *ClientWithResponses) GetDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetDestinationResponse, error)

GetDestinationWithResponse Read Destination

Returns a wrapper object for the known response body format(s).

Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).

func (*ClientWithResponses) GetEscalationChainWithResponse

func (c *ClientWithResponses) GetEscalationChainWithResponse(ctx context.Context, escalationChainId EscalationChainId, reqEditors ...RequestEditorFn) (*GetEscalationChainResponse, error)

GetEscalationChainWithResponse Read an Escalation chain

Returns a wrapper object for the known response body format(s).

Corresponds with GET /escalation-chains/{escalation_chain_id} (the `GetEscalationChain` operationId).

func (*ClientWithResponses) GetIntegrationWithResponse

func (c *ClientWithResponses) GetIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetIntegrationResponse, error)

GetIntegrationWithResponse Read Integration

Returns a wrapper object for the known response body format(s).

Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).

func (*ClientWithResponses) GetKeyringWithResponse

func (c *ClientWithResponses) GetKeyringWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeyringResponse, error)

GetKeyringWithResponse Read the Keyring status

Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /organization/keyring (the `GetKeyring` operationId).

func (*ClientWithResponses) GetLinkRuleWithResponse

func (c *ClientWithResponses) GetLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*GetLinkRuleResponse, error)

GetLinkRuleWithResponse Read LinkRule

Returns a wrapper object for the known response body format(s).

Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).

func (*ClientWithResponses) GetLookupTableWithResponse

func (c *ClientWithResponses) GetLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*GetLookupTableResponse, error)

GetLookupTableWithResponse Read LookupTable

Returns a wrapper object for the known response body format(s).

Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).

func (*ClientWithResponses) GetMeWithResponse

func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)

GetMeWithResponse Read own profile

The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me (the `GetMe` operationId).

func (*ClientWithResponses) GetMyIcalFeedWithResponse

func (c *ClientWithResponses) GetMyIcalFeedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyIcalFeedResponse, error)

GetMyIcalFeedWithResponse Read whether the caller has an iCal feed

Whether the caller's personal iCal feed exists and when it was issued; the token and the link are never shown again. Service account tokens get `403` (`service_account_not_allowed`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/ical-feed (the `GetMyIcalFeed` operationId).

func (*ClientWithResponses) GetMyNotificationRulesWithResponse

func (c *ClientWithResponses) GetMyNotificationRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyNotificationRulesResponse, error)

GetMyNotificationRulesWithResponse Read own Notification rules

The caller's normal and important rule as in effect (C-31.FR-1, FR-2): in the state `organization` the Organization's current rules, otherwise those stored when the caller chose the state. A call action reads `available` false with `unavailable_reason` `gateway_deleted` once its gateway was deleted or is no Notification gateway any more, and `no_confirmed_contact` once the caller has no confirmed contact there; it stays in the rule. Web session only: a token gets `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/notification-rules (the `GetMyNotificationRules` operationId).

func (*ClientWithResponses) GetMyTotpWithResponse

func (c *ClientWithResponses) GetMyTotpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyTotpResponse, error)

GetMyTotpWithResponse Read own TOTP status

Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/totp (the `GetMyTotp` operationId).

func (*ClientWithResponses) GetOidcSettingsWithResponse

func (c *ClientWithResponses) GetOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcSettingsResponse, error)

GetOidcSettingsWithResponse Read OIDC settings

The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).

func (*ClientWithResponses) GetOnCallNowWithResponse

func (c *ClientWithResponses) GetOnCallNowWithResponse(ctx context.Context, params *GetOnCallNowParams, reqEditors ...RequestEditorFn) (*GetOnCallNowResponse, error)

GetOnCallNowWithResponse Read who is On-call now in each Team

"On call now" (C-27.FR-9): for each Team that is not deleted, sorted by name ignoring case, the On-call of its main Schedule at the business clock's now with the Rotation layer that decides it, until when, and the segment that follows — its person, or a gap — within `schedule.gap_view`, and the Destinations of the Team, and of the Escalation chains that Page the main Schedule, that a Mention of the On-call cannot reach (C-27.FR-8, FR-9); a Team without a main Schedule has `no_schedule` true. Overrides count as in the Result of the Schedule. Every Role reads it.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /on-call-now (the `GetOnCallNow` operationId).

func (*ClientWithResponses) GetOpenApiSpecWithResponse

func (c *ClientWithResponses) GetOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenApiSpecResponse, error)

GetOpenApiSpecWithResponse Read this specification

The specification the binary was built from, as checked in at `api/openapi.yaml`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).

func (*ClientWithResponses) GetOrganizationWithResponse

func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)

GetOrganizationWithResponse Read the Organization

Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /organization (the `GetOrganization` operationId).

func (*ClientWithResponses) GetOutboundPolicyWithResponse

func (c *ClientWithResponses) GetOutboundPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOutboundPolicyResponse, error)

GetOutboundPolicyWithResponse Read the outbound address policy

The outbound address policy with the rules that always apply. Needs `organization:read`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).

func (*ClientWithResponses) GetRequestRecordWithResponse

func (c *ClientWithResponses) GetRequestRecordWithResponse(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*GetRequestRecordResponse, error)

GetRequestRecordWithResponse Read a record of the Request log

One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).

func (*ClientWithResponses) GetRouteWithResponse

func (c *ClientWithResponses) GetRouteWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*GetRouteResponse, error)

GetRouteWithResponse Read a Route

Returns a wrapper object for the known response body format(s).

Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).

func (*ClientWithResponses) GetScheduleOnCallWithResponse

func (c *ClientWithResponses) GetScheduleOnCallWithResponse(ctx context.Context, scheduleId ScheduleId, params *GetScheduleOnCallParams, reqEditors ...RequestEditorFn) (*GetScheduleOnCallResponse, error)

GetScheduleOnCallWithResponse Read the On-call and the Result of a Schedule

The Result of the Schedule over a period on the business clock: its segments, each with the person On-call or none in a gap, the Shifts of each Rotation layer and the Overrides in the period, and the warnings about the people who may not be Paged — Viewers, disabled Users and Users not in the Team, whose Shifts and Overrides are skipped — followed by a warning `gap` with its `start` and `end` for each gap of the period, cut to it (C-27.FR-7), and by a warning `unreachable` for each segment of the period with a person, for each Destination of the Schedule's Team, and each Destination of a Route or a Team that names an Escalation chain with a `page_on_call` step on the Schedule, that a Mention of the person cannot reach, each once, with the reason (C-27.FR-8, C-32.FR-8). The period is from `from` to `to`, by default the business clock's now and `schedule.gap_view` after it; `from` and `to` are at most 10 years from now, else `422` `out_of_range` at `/query/from` or `/query/to`, and `to` must be after `from` and at most the length of `ical.window` after it, else `422` `out_of_range` at `/query/to`. A wall-clock time that a change of the clocks skips is the instant the clocks move, and one that happens twice its first occurrence.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /schedules/{schedule_id}/on-call (the `GetScheduleOnCall` operationId).

func (*ClientWithResponses) GetScheduleWithResponse

func (c *ClientWithResponses) GetScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*GetScheduleResponse, error)

GetScheduleWithResponse Read a Schedule

Returns a wrapper object for the known response body format(s).

Corresponds with GET /schedules/{schedule_id} (the `GetSchedule` operationId).

func (*ClientWithResponses) GetServiceAccountWithResponse

func (c *ClientWithResponses) GetServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*GetServiceAccountResponse, error)

GetServiceAccountWithResponse Read a Service account

Returns a wrapper object for the known response body format(s).

Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).

func (*ClientWithResponses) GetSignInOptionsWithResponse

func (c *ClientWithResponses) GetSignInOptionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignInOptionsResponse, error)

GetSignInOptionsWithResponse Read sign-in options

Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).

func (*ClientWithResponses) GetSigningSecretWithResponse

func (c *ClientWithResponses) GetSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetSigningSecretResponse, error)

GetSigningSecretWithResponse Read the Signing secret status

`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).

func (*ClientWithResponses) GetStoredSnapshotWithResponse

func (c *ClientWithResponses) GetStoredSnapshotWithResponse(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*GetStoredSnapshotResponse, error)

GetStoredSnapshotWithResponse Read a Stored Snapshot as received

Returns a wrapper object for the known response body format(s).

Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).

func (*ClientWithResponses) GetSystemStatusWithResponse

func (c *ClientWithResponses) GetSystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSystemStatusResponse, error)

GetSystemStatusWithResponse Read the System status

Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /system-status (the `GetSystemStatus` operationId).

func (*ClientWithResponses) GetTeamWithResponse

func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)

GetTeamWithResponse Read a Team

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{team_id} (the `GetTeam` operationId).

func (*ClientWithResponses) GetUserNotificationRulesWithResponse

func (c *ClientWithResponses) GetUserNotificationRulesWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserNotificationRulesResponse, error)

GetUserNotificationRulesWithResponse Read a user's Notification rules

The rules of a User, as `getMyNotificationRules` reads them for the caller (C-31.FR-4); a deleted User answers `404`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{user_id}/notification-rules (the `GetUserNotificationRules` operationId).

func (*ClientWithResponses) GetUserWithResponse

func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

GetUserWithResponse Read a user

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{user_id} (the `GetUser` operationId).

func (*ClientWithResponses) HeartbeatGetWithPathTokenWithResponse

func (c *ClientWithResponses) HeartbeatGetWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatGetWithPathTokenResponse, error)

HeartbeatGetWithPathTokenWithResponse Heartbeat signal (GET, token in the path)

Returns a wrapper object for the known response body format(s).

Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).

func (*ClientWithResponses) HeartbeatGetWithResponse

func (c *ClientWithResponses) HeartbeatGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatGetResponse, error)

HeartbeatGetWithResponse Heartbeat signal (GET)

Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).

func (*ClientWithResponses) HeartbeatPostWithPathTokenWithResponse

func (c *ClientWithResponses) HeartbeatPostWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatPostWithPathTokenResponse, error)

HeartbeatPostWithPathTokenWithResponse Heartbeat signal (POST, token in the path)

Returns a wrapper object for the known response body format(s).

Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).

func (*ClientWithResponses) HeartbeatPostWithResponse

func (c *ClientWithResponses) HeartbeatPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatPostResponse, error)

HeartbeatPostWithResponse Heartbeat signal (POST)

Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).

func (*ClientWithResponses) IngestSnapshotWithBodyWithResponse

func (c *ClientWithResponses) IngestSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotResponse, error)

IngestSnapshotWithBodyWithResponse Receive an Alertmanager webhook

Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ingest (the `IngestSnapshot` operationId).

func (*ClientWithResponses) IngestSnapshotWithPathTokenWithBodyWithResponse

func (c *ClientWithResponses) IngestSnapshotWithPathTokenWithBodyWithResponse(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotWithPathTokenResponse, error)

IngestSnapshotWithPathTokenWithBodyWithResponse Receive an Alertmanager webhook (token in the path)

For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).

func (*ClientWithResponses) IssueMyIcalFeedWithResponse

func (c *ClientWithResponses) IssueMyIcalFeedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IssueMyIcalFeedResponse, error)

IssueMyIcalFeedWithResponse Issue the caller's iCal feed

Issues a new link of the caller's personal iCal feed (`ical.token`) and shows it once; the previous link, if any, stops working at once. The feed lists the times when the caller is On-call in every Schedule (`getIcalCalendar`). Recorded in the Audit log as `ical_feed.issued`, without the token. Web session only.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /me/ical-feed (the `IssueMyIcalFeed` operationId).

func (*ClientWithResponses) ListAlertGroupAlertsWithResponse

func (c *ClientWithResponses) ListAlertGroupAlertsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupAlertsResponse, error)

ListAlertGroupAlertsWithResponse List the Alerts of an Alert Group

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).

func (*ClientWithResponses) ListAlertGroupDeliveriesWithResponse

func (c *ClientWithResponses) ListAlertGroupDeliveriesWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*ListAlertGroupDeliveriesResponse, error)

ListAlertGroupDeliveriesWithResponse Read delivery state per Destination

The delivery state of the Alert Group in each Destination. The retention removes it with the details once `retention.alert_details` has passed since the Alert Group resolved (`details_removed`), and it is no longer listed.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).

func (*ClientWithResponses) ListAlertGroupNotesWithResponse

func (c *ClientWithResponses) ListAlertGroupNotesWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*ListAlertGroupNotesResponse, error)

ListAlertGroupNotesWithResponse List Notes

Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).

func (*ClientWithResponses) ListAlertGroupsWithResponse

func (c *ClientWithResponses) ListAlertGroupsWithResponse(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupsResponse, error)

ListAlertGroupsWithResponse List Alert Groups

The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).

func (*ClientWithResponses) ListAlertmanagerRoutesWithResponse

func (c *ClientWithResponses) ListAlertmanagerRoutesWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListAlertmanagerRoutesResponse, error)

ListAlertmanagerRoutesWithResponse List learned Alertmanager routes

Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).

func (*ClientWithResponses) ListAuditLogWithResponse

func (c *ClientWithResponses) ListAuditLogWithResponse(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*ListAuditLogResponse, error)

ListAuditLogWithResponse List Audit log entries

Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /audit-log (the `ListAuditLog` operationId).

func (*ClientWithResponses) ListConnectionChannelsWithResponse

func (c *ClientWithResponses) ListConnectionChannelsWithResponse(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*ListConnectionChannelsResponse, error)

ListConnectionChannelsWithResponse List channels visible to the bot

The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).

func (*ClientWithResponses) ListConnectionGroupsWithResponse

func (c *ClientWithResponses) ListConnectionGroupsWithResponse(ctx context.Context, connectionId ConnectionId, params *ListConnectionGroupsParams, reqEditors ...RequestEditorFn) (*ListConnectionGroupsResponse, error)

ListConnectionGroupsWithResponse List the groups a Connection can mention

The groups of a Connection for its Team mentions and the group entries of its Destinations (C-25.FR-8), by name. A Mattermost Connection answers the groups that may be mentioned, read with `GET /api/v4/groups?filter_allow_reference=true&include_member_count=true&per_page=200` (F-122), `truncated` when that page was full. A Slack Connection whose last check found `usergroups:read` answers the user groups that are not disabled, read with `usergroups.list` (F-125); `name` is the handle. A Telegram or Bridge Connection, and a Slack Connection without the scope, answer `409` `groups_not_listed`; a server that refuses the read answers `409`. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /connections/{connection_id}/groups (the `ListConnectionGroups` operationId).

func (*ClientWithResponses) ListConnectionsWithResponse

func (c *ClientWithResponses) ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*ListConnectionsResponse, error)

ListConnectionsWithResponse List connections

Returns a wrapper object for the known response body format(s).

Corresponds with GET /connections (the `ListConnections` operationId).

func (*ClientWithResponses) ListDestinationSecretsWithResponse

func (c *ClientWithResponses) ListDestinationSecretsWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*ListDestinationSecretsResponse, error)

ListDestinationSecretsWithResponse List the Secrets of a webhook Destination

Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).

func (*ClientWithResponses) ListDestinationsWithResponse

func (c *ClientWithResponses) ListDestinationsWithResponse(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*ListDestinationsResponse, error)

ListDestinationsWithResponse List destinations

All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /destinations (the `ListDestinations` operationId).

func (*ClientWithResponses) ListEscalationChainRunsWithResponse

func (c *ClientWithResponses) ListEscalationChainRunsWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *ListEscalationChainRunsParams, reqEditors ...RequestEditorFn) (*ListEscalationChainRunsResponse, error)

ListEscalationChainRunsWithResponse List the runs of an Escalation chain

The recent runs of the chain on Alert Groups, newest first, for "How it went" (C-32.FR-18): one per start of the chains of an Alert Group, so an Alert Group whose chains started over has a run per start. Each run names its Alert Group, the steps it made and skipped with the reason of each skip and the Pages of each step it made, and what stopped it — the Command and its actor — or that it ran out. Runs of a chain keep its steps from when they started (P-73).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /escalation-chains/{escalation_chain_id}/runs (the `ListEscalationChainRuns` operationId).

func (*ClientWithResponses) ListEscalationChainsWithResponse

func (c *ClientWithResponses) ListEscalationChainsWithResponse(ctx context.Context, params *ListEscalationChainsParams, reqEditors ...RequestEditorFn) (*ListEscalationChainsResponse, error)

ListEscalationChainsWithResponse List Escalation chains

The Escalation chains by name, each with its steps, the Routes and Teams that name it, the Destinations it writes in and its warnings. Every Role reads them.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /escalation-chains (the `ListEscalationChains` operationId).

func (*ClientWithResponses) ListIntegrationAlertsWithResponse

func (c *ClientWithResponses) ListIntegrationAlertsWithResponse(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*ListIntegrationAlertsResponse, error)

ListIntegrationAlertsWithResponse List the Alerts view of an Integration

The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).

func (*ClientWithResponses) ListIntegrationTokensWithResponse

func (c *ClientWithResponses) ListIntegrationTokensWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListIntegrationTokensResponse, error)

ListIntegrationTokensWithResponse List Integration tokens

Values are never returned.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).

func (*ClientWithResponses) ListIntegrationsWithResponse

func (c *ClientWithResponses) ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*ListIntegrationsResponse, error)

ListIntegrationsWithResponse List integrations

Includes the built-in "Muster" Integration, marked `builtin`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /integrations (the `ListIntegrations` operationId).

func (*ClientWithResponses) ListLinkRulesWithResponse

func (c *ClientWithResponses) ListLinkRulesWithResponse(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*ListLinkRulesResponse, error)

ListLinkRulesWithResponse List linkrules

Returns a wrapper object for the known response body format(s).

Corresponds with GET /link-rules (the `ListLinkRules` operationId).

func (*ClientWithResponses) ListLinkableConnectionsWithResponse

func (c *ClientWithResponses) ListLinkableConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLinkableConnectionsResponse, error)

ListLinkableConnectionsWithResponse List the Connections an account can be linked through

The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).

func (*ClientWithResponses) ListLookupTablesWithResponse

func (c *ClientWithResponses) ListLookupTablesWithResponse(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*ListLookupTablesResponse, error)

ListLookupTablesWithResponse List lookuptables

Returns a wrapper object for the known response body format(s).

Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).

func (*ClientWithResponses) ListMyAccountLinksWithResponse

func (c *ClientWithResponses) ListMyAccountLinksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMyAccountLinksResponse, error)

ListMyAccountLinksWithResponse List own Account links

Service account tokens get `403` (`service_account_not_allowed`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).

func (*ClientWithResponses) ListMyGatewayContactsWithResponse

func (c *ClientWithResponses) ListMyGatewayContactsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMyGatewayContactsResponse, error)

ListMyGatewayContactsWithResponse List own contacts at Notification gateways

The caller's contacts, confirmed and unconfirmed, each with its Notification gateway; a new contact for a gateway at which the caller has a confirmed one names that one in `replaces` until it is confirmed, and until then the confirmed one stays the one called. Service account tokens get `403` (`service_account_not_allowed`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/gateway-contacts (the `ListMyGatewayContacts` operationId).

func (*ClientWithResponses) ListMySessionsWithResponse

func (c *ClientWithResponses) ListMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMySessionsResponse, error)

ListMySessionsWithResponse List own sessions

Sessions of the user, the current one marked.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/sessions (the `ListMySessions` operationId).

func (*ClientWithResponses) ListPersonalAccessTokensWithResponse

func (c *ClientWithResponses) ListPersonalAccessTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPersonalAccessTokensResponse, error)

ListPersonalAccessTokensWithResponse List own Personal access tokens

Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).

func (*ClientWithResponses) ListRelatedAlertGroupsWithResponse

func (c *ClientWithResponses) ListRelatedAlertGroupsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListRelatedAlertGroupsResponse, error)

ListRelatedAlertGroupsWithResponse List previous Alert Groups with the same key

Alert Groups of the same Route with the same Group key values, newest first.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).

func (*ClientWithResponses) ListRequestLogWithResponse

func (c *ClientWithResponses) ListRequestLogWithResponse(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*ListRequestLogResponse, error)

ListRequestLogWithResponse List the Request log of a Connection, a Destination or a check run

The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /request-log (the `ListRequestLog` operationId).

func (*ClientWithResponses) ListRolesWithResponse

func (c *ClientWithResponses) ListRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRolesResponse, error)

ListRolesWithResponse List Roles with their Permissions

Returns a wrapper object for the known response body format(s).

Corresponds with GET /roles (the `ListRoles` operationId).

func (*ClientWithResponses) ListRouteLabelSuggestionsWithResponse

func (c *ClientWithResponses) ListRouteLabelSuggestionsWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*ListRouteLabelSuggestionsResponse, error)

ListRouteLabelSuggestionsWithResponse List the labels to suggest for "Labels in the message"

The labels of the Alerts of the Route's Alert Groups created within `routing.group_key_preview_period` (the last 24 hours), each with an example value — its most frequent value — and the number of those Alert Groups whose Alerts carry it, most frequent first, at most 50 (C-29.FR-2). The Route form offers them as "From recent Alert Groups of the Route".

Returns a wrapper object for the known response body format(s).

Corresponds with GET /routes/{route_id}/label-suggestions (the `ListRouteLabelSuggestions` operationId).

func (*ClientWithResponses) ListRouteProfilesWithResponse

func (c *ClientWithResponses) ListRouteProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteProfilesResponse, error)

ListRouteProfilesWithResponse List Route profiles

The two starting sets of Route settings, Paging and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).

func (*ClientWithResponses) ListRouteSuggestionsWithResponse

func (c *ClientWithResponses) ListRouteSuggestionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteSuggestionsResponse, error)

ListRouteSuggestionsWithResponse List Route suggestions

A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).

func (*ClientWithResponses) ListRoutesWithResponse

func (c *ClientWithResponses) ListRoutesWithResponse(ctx context.Context, params *ListRoutesParams, reqEditors ...RequestEditorFn) (*ListRoutesResponse, error)

ListRoutesWithResponse List Routes in evaluation order

The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /routes (the `ListRoutes` operationId).

func (*ClientWithResponses) ListScheduleOverridesWithResponse

func (c *ClientWithResponses) ListScheduleOverridesWithResponse(ctx context.Context, scheduleId ScheduleId, params *ListScheduleOverridesParams, reqEditors ...RequestEditorFn) (*ListScheduleOverridesResponse, error)

ListScheduleOverridesWithResponse List the Overrides of a Schedule

The Overrides that end after `from` — the business clock's now by default — and, with `to`, start before it, by start.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /schedules/{schedule_id}/overrides (the `ListScheduleOverrides` operationId).

func (*ClientWithResponses) ListSchedulesWithResponse

func (c *ClientWithResponses) ListSchedulesWithResponse(ctx context.Context, params *ListSchedulesParams, reqEditors ...RequestEditorFn) (*ListSchedulesResponse, error)

ListSchedulesWithResponse List Schedules

The Schedules by name, each with its Team and its Rotation layers. Every Role reads them.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /schedules (the `ListSchedules` operationId).

func (*ClientWithResponses) ListServiceAccountTokensWithResponse

func (c *ClientWithResponses) ListServiceAccountTokensWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*ListServiceAccountTokensResponse, error)

ListServiceAccountTokensWithResponse List tokens of a Service account

Returns a wrapper object for the known response body format(s).

Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).

func (*ClientWithResponses) ListServiceAccountsWithResponse

func (c *ClientWithResponses) ListServiceAccountsWithResponse(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ListServiceAccountsResponse, error)

ListServiceAccountsWithResponse List Service accounts

Returns a wrapper object for the known response body format(s).

Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).

func (*ClientWithResponses) ListSeverityValuesWithResponse

func (c *ClientWithResponses) ListSeverityValuesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSeverityValuesResponse, error)

ListSeverityValuesWithResponse List severity values seen

Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).

func (*ClientWithResponses) ListSnoozePresetsWithResponse

func (c *ClientWithResponses) ListSnoozePresetsWithResponse(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*ListSnoozePresetsResponse, error)

ListSnoozePresetsWithResponse List the ends of the Snooze presets

The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).

func (*ClientWithResponses) ListStoredSnapshotsWithResponse

func (c *ClientWithResponses) ListStoredSnapshotsWithResponse(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*ListStoredSnapshotsResponse, error)

ListStoredSnapshotsWithResponse List Stored Snapshots

Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).

func (*ClientWithResponses) ListSystemNoticesWithResponse

func (c *ClientWithResponses) ListSystemNoticesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSystemNoticesResponse, error)

ListSystemNoticesWithResponse List active Organization-wide notices

"Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /system-notices (the `ListSystemNotices` operationId).

func (*ClientWithResponses) ListTeamLabelValuesWithResponse

func (c *ClientWithResponses) ListTeamLabelValuesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTeamLabelValuesResponse, error)

ListTeamLabelValuesWithResponse List values of the Team label without a Team

The values of the Organization's Team label, with the Static labels of their Integrations, that Alerts last seen in the last `organization.team_values_window` carried and that name no Team that is not deleted, the most recently seen first and at most 500 values; `valid_slug` is false for a value outside `team.slug_format`, which reaches a Team only through a Team matcher.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /team-label-values (the `ListTeamLabelValues` operationId).

func (*ClientWithResponses) ListTeamUsersWithResponse

func (c *ClientWithResponses) ListTeamUsersWithResponse(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*ListTeamUsersResponse, error)

ListTeamUsersWithResponse List the people in a Team

Each person with their Role, how they are in the Team and the messengers they linked, by name. The complete list, not paginated.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{team_id}/users (the `ListTeamUsers` operationId).

func (*ClientWithResponses) ListTeamsWithResponse

func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)

ListTeamsWithResponse List Teams

The Teams that are not deleted, by name. A Team grants no access of its own; every Role reads them.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams (the `ListTeams` operationId).

func (*ClientWithResponses) ListUserAccountLinksWithResponse

func (c *ClientWithResponses) ListUserAccountLinksWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ListUserAccountLinksResponse, error)

ListUserAccountLinksWithResponse List a user's Account links

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).

func (*ClientWithResponses) ListUserDirectoryWithResponse

func (c *ClientWithResponses) ListUserDirectoryWithResponse(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*ListUserDirectoryResponse, error)

ListUserDirectoryWithResponse List users for pickers and filters

Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /user-directory (the `ListUserDirectory` operationId).

func (*ClientWithResponses) ListUserGatewayContactsWithResponse

func (c *ClientWithResponses) ListUserGatewayContactsWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ListUserGatewayContactsResponse, error)

ListUserGatewayContactsWithResponse List a user's contacts at Notification gateways

The contacts of a User with their state, confirmed or not; a deleted User has none (C-03.FR-13).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{user_id}/gateway-contacts (the `ListUserGatewayContacts` operationId).

func (*ClientWithResponses) ListUsersWithResponse

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

ListUsersWithResponse List users

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users (the `ListUsers` operationId).

func (*ClientWithResponses) MattermostActionWithBodyWithResponse

func (c *ClientWithResponses) MattermostActionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)

MattermostActionWithBodyWithResponse Receive a Mattermost button press

Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).

func (*ClientWithResponses) MattermostActionWithResponse

func (c *ClientWithResponses) MattermostActionWithResponse(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)

MattermostActionWithResponse Receive a Mattermost button press

Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).

func (*ClientWithResponses) MoveOpenAlertGroupsWithResponse

func (c *ClientWithResponses) MoveOpenAlertGroupsWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*MoveOpenAlertGroupsResponse, error)

MoveOpenAlertGroupsWithResponse Move open Alert Groups to the Default route

Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).

func (*ClientWithResponses) PreviewDestinationWithBodyWithResponse

func (c *ClientWithResponses) PreviewDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)

PreviewDestinationWithBodyWithResponse Preview a message or request

Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).

func (*ClientWithResponses) PreviewDestinationWithResponse

func (c *ClientWithResponses) PreviewDestinationWithResponse(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)

PreviewDestinationWithResponse Preview a message or request

Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).

func (*ClientWithResponses) PreviewGroupKeyWithBodyWithResponse

func (c *ClientWithResponses) PreviewGroupKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)

PreviewGroupKeyWithBodyWithResponse Preview a Group key

Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).

func (*ClientWithResponses) PreviewGroupKeyWithResponse

func (c *ClientWithResponses) PreviewGroupKeyWithResponse(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)

PreviewGroupKeyWithResponse Preview a Group key

Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).

func (*ClientWithResponses) PreviewTemplateWithBodyWithResponse

func (c *ClientWithResponses) PreviewTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)

PreviewTemplateWithBodyWithResponse Render a template against a sample

Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /template-previews (the `PreviewTemplate` operationId).

func (*ClientWithResponses) PreviewTemplateWithResponse

func (c *ClientWithResponses) PreviewTemplateWithResponse(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)

PreviewTemplateWithResponse Render a template against a sample

Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /template-previews (the `PreviewTemplate` operationId).

func (*ClientWithResponses) RegenerateTotpRecoveryCodesWithBodyWithResponse

func (c *ClientWithResponses) RegenerateTotpRecoveryCodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)

RegenerateTotpRecoveryCodesWithBodyWithResponse Regenerate recovery codes

Invalidates the previous codes. Requires a current TOTP code. Web session only.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).

func (*ClientWithResponses) RegenerateTotpRecoveryCodesWithResponse

func (c *ClientWithResponses) RegenerateTotpRecoveryCodesWithResponse(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)

RegenerateTotpRecoveryCodesWithResponse Regenerate recovery codes

Invalidates the previous codes. Requires a current TOTP code. Web session only.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).

func (*ClientWithResponses) RemoveTeamUserWithResponse

func (c *ClientWithResponses) RemoveTeamUserWithResponse(ctx context.Context, teamId TeamId, userId UserId, reqEditors ...RequestEditorFn) (*RemoveTeamUserResponse, error)

RemoveTeamUserWithResponse Remove a person from a Team

Takes away the source `by_hand` of a person in the Team. A person also in it through the identity provider stays in it with the source `idp`, until a later sign-in or re-check finds that no entry of the Team matches them. `404` when the User has no source `by_hand` in the Team, including a person who is in it only through the identity provider.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /teams/{team_id}/users/{user_id} (the `RemoveTeamUser` operationId).

func (*ClientWithResponses) RemoveTotpWithBodyWithResponse

func (c *ClientWithResponses) RemoveTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)

RemoveTotpWithBodyWithResponse Remove own TOTP

Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).

func (*ClientWithResponses) RemoveTotpWithResponse

func (c *ClientWithResponses) RemoveTotpWithResponse(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)

RemoveTotpWithResponse Remove own TOTP

Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).

func (*ClientWithResponses) ReorderRoutesWithBodyWithResponse

func (c *ClientWithResponses) ReorderRoutesWithBodyWithResponse(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)

ReorderRoutesWithBodyWithResponse Reorder Routes

Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /route-order (the `ReorderRoutes` operationId).

func (*ClientWithResponses) ReorderRoutesWithResponse

func (c *ClientWithResponses) ReorderRoutesWithResponse(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)

ReorderRoutesWithResponse Reorder Routes

Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /route-order (the `ReorderRoutes` operationId).

func (*ClientWithResponses) ResetMyNotificationRulesWithResponse

func (c *ClientWithResponses) ResetMyNotificationRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ResetMyNotificationRulesResponse, error)

ResetMyNotificationRulesWithResponse Reset own Notification rules to the Organization's

"Reset to the Organization's rules": the caller's rules return to the state `organization` and follow the Organization's rules again (C-31.FR-2). Recorded in the Audit log as `notification_rules.updated`; a caller already in that state records nothing. Web session only: a token gets `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /me/notification-rules/reset (the `ResetMyNotificationRules` operationId).

func (*ClientWithResponses) ResetUserTotpWithResponse

func (c *ClientWithResponses) ResetUserTotpWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ResetUserTotpResponse, error)

ResetUserTotpWithResponse Reset a user's TOTP

Audited. The user enrols again at the next sign-in if the policy requires it.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).

func (*ClientWithResponses) ResolveAlertGroupWithBodyWithResponse

func (c *ClientWithResponses) ResolveAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)

ResolveAlertGroupWithBodyWithResponse Resolve

Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).

func (*ClientWithResponses) ResolveAlertGroupWithResponse

func (c *ClientWithResponses) ResolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)

ResolveAlertGroupWithResponse Resolve

Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).

func (*ClientWithResponses) RetirePreviousSigningSecretWithResponse

func (c *ClientWithResponses) RetirePreviousSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*RetirePreviousSigningSecretResponse, error)

RetirePreviousSigningSecretWithResponse Retire the previous Signing secret

`409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).

func (*ClientWithResponses) RevokeIntegrationTokenWithResponse

func (c *ClientWithResponses) RevokeIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*RevokeIntegrationTokenResponse, error)

RevokeIntegrationTokenWithResponse Revoke an Integration token

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).

func (*ClientWithResponses) RevokeMyIcalFeedWithResponse

func (c *ClientWithResponses) RevokeMyIcalFeedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeMyIcalFeedResponse, error)

RevokeMyIcalFeedWithResponse Revoke the caller's iCal feed

Its link answers `404` at once; `204` also when the caller has no feed. Recorded in the Audit log as `ical_feed.revoked` when a feed existed. Web session only.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /me/ical-feed (the `RevokeMyIcalFeed` operationId).

func (*ClientWithResponses) RevokePersonalAccessTokenWithResponse

func (c *ClientWithResponses) RevokePersonalAccessTokenWithResponse(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokePersonalAccessTokenResponse, error)

RevokePersonalAccessTokenWithResponse Revoke a Personal access token

Revokes the token at once. Web session only.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).

func (*ClientWithResponses) RevokeServiceAccountTokenWithResponse

func (c *ClientWithResponses) RevokeServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeServiceAccountTokenResponse, error)

RevokeServiceAccountTokenWithResponse Revoke a Service account token

Revokes the token at once. Web session only: a token can never revoke a token.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).

func (*ClientWithResponses) RevokeUserIcalFeedWithResponse

func (c *ClientWithResponses) RevokeUserIcalFeedWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*RevokeUserIcalFeedResponse, error)

RevokeUserIcalFeedWithResponse Revoke a user's iCal feed

Revokes the user's personal iCal feed, for example after its link leaked. The link answers `404` at once on every replica, and the user can issue a new one (`issueMyIcalFeed`). `204` also when the user has no feed. Recorded in the Audit log as `ical_feed.revoked` with the reason `revoked_by_admin` when a feed existed. A deleted user is `404`.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /users/{user_id}/ical-feed (the `RevokeUserIcalFeed` operationId).

func (*ClientWithResponses) RunBulkCommandWithBodyWithResponse

func (c *ClientWithResponses) RunBulkCommandWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)

RunBulkCommandWithBodyWithResponse Run a Command on several Alert Groups

Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).

func (*ClientWithResponses) RunBulkCommandWithResponse

func (c *ClientWithResponses) RunBulkCommandWithResponse(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)

RunBulkCommandWithResponse Run a Command on several Alert Groups

Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).

func (*ClientWithResponses) SendMyGatewayContactCodeWithResponse

func (c *ClientWithResponses) SendMyGatewayContactCodeWithResponse(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*SendMyGatewayContactCodeResponse, error)

SendMyGatewayContactCodeWithResponse Send a new code for an own contact

Sends a new code of `gateway.contact_code` for one of the caller's contacts through its gateway, as `createMyGatewayContact` does; once the gateway accepted it, it voids the earlier codes of the contact, which a failed sending leaves as they were. The new code is checked only in this web session. Limited by `gateway.contact_code_requests` (`429` `contact_code_requests_exceeded` with `Retry-After`). Runs on the interactive path (`503` with `Retry-After`); a refusal of the gateway answers `502` `gateway_refused`. A contact whose gateway is no longer a Notification gateway answers `422` `unknown_id` at `/connection_id`. Web session only: a token gets `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/code (the `SendMyGatewayContactCode` operationId).

func (*ClientWithResponses) SetDestinationSecretWithBodyWithResponse

func (c *ClientWithResponses) SetDestinationSecretWithBodyWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)

SetDestinationSecretWithBodyWithResponse Set a Secret of a webhook Destination

Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).

func (*ClientWithResponses) SetDestinationSecretWithResponse

func (c *ClientWithResponses) SetDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)

SetDestinationSecretWithResponse Set a Secret of a webhook Destination

Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).

func (*ClientWithResponses) SlackInteractionWithBodyWithResponse

func (c *ClientWithResponses) SlackInteractionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)

SlackInteractionWithBodyWithResponse Receive a Slack button press (http event mode)

Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).

func (*ClientWithResponses) SlackInteractionWithFormdataBodyWithResponse

func (c *ClientWithResponses) SlackInteractionWithFormdataBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)

SlackInteractionWithFormdataBodyWithResponse Receive a Slack button press (http event mode)

Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.

Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).

func (*ClientWithResponses) SnoozeAlertGroupWithBodyWithResponse

func (c *ClientWithResponses) SnoozeAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)

SnoozeAlertGroupWithBodyWithResponse Snooze

A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).

func (*ClientWithResponses) SnoozeAlertGroupWithResponse

func (c *ClientWithResponses) SnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)

SnoozeAlertGroupWithResponse Snooze

A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).

func (*ClientWithResponses) StartBridgeCodeLinkWithBodyWithResponse

func (c *ClientWithResponses) StartBridgeCodeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)

StartBridgeCodeLinkWithBodyWithResponse Start linking an account through a Bridge with a code

Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).

func (*ClientWithResponses) StartBridgeCodeLinkWithResponse

func (c *ClientWithResponses) StartBridgeCodeLinkWithResponse(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)

StartBridgeCodeLinkWithResponse Start linking an account through a Bridge with a code

Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).

func (*ClientWithResponses) StartBridgeLinkWithBodyWithResponse

func (c *ClientWithResponses) StartBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)

StartBridgeLinkWithBodyWithResponse Start linking an account through a Bridge with a token

Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).

func (*ClientWithResponses) StartBridgeLinkWithResponse

func (c *ClientWithResponses) StartBridgeLinkWithResponse(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)

StartBridgeLinkWithResponse Start linking an account through a Bridge with a token

Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).

func (*ClientWithResponses) StartMattermostLinkWithBodyWithResponse

func (c *ClientWithResponses) StartMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)

StartMattermostLinkWithBodyWithResponse Start linking a Mattermost account

The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).

func (*ClientWithResponses) StartMattermostLinkWithResponse

func (c *ClientWithResponses) StartMattermostLinkWithResponse(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)

StartMattermostLinkWithResponse Start linking a Mattermost account

The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).

func (*ClientWithResponses) StartOidcLinkWithResponse

func (c *ClientWithResponses) StartOidcLinkWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartOidcLinkResponse, error)

StartOidcLinkWithResponse Start linking an OIDC identity

Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).

func (*ClientWithResponses) StartOidcSignInWithResponse

func (c *ClientWithResponses) StartOidcSignInWithResponse(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*StartOidcSignInResponse, error)

StartOidcSignInWithResponse Start OIDC sign-in

Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).

func (*ClientWithResponses) StartSlackLinkWithBodyWithResponse

func (c *ClientWithResponses) StartSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)

StartSlackLinkWithBodyWithResponse Start linking a Slack account with a code

Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).

func (*ClientWithResponses) StartSlackLinkWithResponse

func (c *ClientWithResponses) StartSlackLinkWithResponse(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)

StartSlackLinkWithResponse Start linking a Slack account with a code

Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).

func (*ClientWithResponses) StartTelegramLinkWithBodyWithResponse

func (c *ClientWithResponses) StartTelegramLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)

StartTelegramLinkWithBodyWithResponse Start linking a Telegram account

Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).

func (*ClientWithResponses) StartTelegramLinkWithResponse

func (c *ClientWithResponses) StartTelegramLinkWithResponse(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)

StartTelegramLinkWithResponse Start linking a Telegram account

Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).

func (*ClientWithResponses) StreamLiveUpdatesWithResponse

func (c *ClientWithResponses) StreamLiveUpdatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StreamLiveUpdatesResponse, error)

StreamLiveUpdatesWithResponse Stream change hints

Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.

Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).

func (*ClientWithResponses) SubmitSessionTotpWithBodyWithResponse

func (c *ClientWithResponses) SubmitSessionTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)

SubmitSessionTotpWithBodyWithResponse Give the second factor

Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).

func (*ClientWithResponses) SubmitSessionTotpWithResponse

func (c *ClientWithResponses) SubmitSessionTotpWithResponse(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)

SubmitSessionTotpWithResponse Give the second factor

Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).

func (*ClientWithResponses) TelegramWebhookWithBodyWithResponse

func (c *ClientWithResponses) TelegramWebhookWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)

TelegramWebhookWithBodyWithResponse Receive a Telegram update (webhook update mode)

Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).

func (*ClientWithResponses) TelegramWebhookWithResponse

func (c *ClientWithResponses) TelegramWebhookWithResponse(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)

TelegramWebhookWithResponse Receive a Telegram update (webhook update mode)

Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).

func (*ClientWithResponses) TestDestinationWithBodyWithResponse

func (c *ClientWithResponses) TestDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)

TestDestinationWithBodyWithResponse Send a test message

One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).

func (*ClientWithResponses) TestDestinationWithResponse

func (c *ClientWithResponses) TestDestinationWithResponse(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)

TestDestinationWithResponse Send a test message

One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).

func (*ClientWithResponses) UnacknowledgeAlertGroupWithResponse

func (c *ClientWithResponses) UnacknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnacknowledgeAlertGroupResponse, error)

UnacknowledgeAlertGroupWithResponse Unacknowledge

Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).

func (*ClientWithResponses) UnresolveAlertGroupWithResponse

func (c *ClientWithResponses) UnresolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnresolveAlertGroupResponse, error)

UnresolveAlertGroupWithResponse Unresolve

Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).

func (*ClientWithResponses) UnsnoozeAlertGroupWithResponse

func (c *ClientWithResponses) UnsnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnsnoozeAlertGroupResponse, error)

UnsnoozeAlertGroupWithResponse Unsnooze

The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).

func (*ClientWithResponses) UpdateConnectionWithBodyWithResponse

func (c *ClientWithResponses) UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)

UpdateConnectionWithBodyWithResponse Update Connection

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).

func (*ClientWithResponses) UpdateConnectionWithResponse

func (c *ClientWithResponses) UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)

UpdateConnectionWithResponse Update Connection

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).

func (*ClientWithResponses) UpdateDestinationWithBodyWithResponse

func (c *ClientWithResponses) UpdateDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)

UpdateDestinationWithBodyWithResponse Update Destination

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).

func (*ClientWithResponses) UpdateDestinationWithResponse

func (c *ClientWithResponses) UpdateDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)

UpdateDestinationWithResponse Update Destination

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).

func (*ClientWithResponses) UpdateEscalationChainWithBodyWithResponse

func (c *ClientWithResponses) UpdateEscalationChainWithBodyWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEscalationChainResponse, error)

UpdateEscalationChainWithBodyWithResponse Update an Escalation chain

Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).

func (*ClientWithResponses) UpdateEscalationChainWithResponse

func (c *ClientWithResponses) UpdateEscalationChainWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, body UpdateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEscalationChainResponse, error)

UpdateEscalationChainWithResponse Update an Escalation chain

Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).

func (*ClientWithResponses) UpdateIntegrationWithBodyWithResponse

func (c *ClientWithResponses) UpdateIntegrationWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)

UpdateIntegrationWithBodyWithResponse Update Integration

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).

func (*ClientWithResponses) UpdateIntegrationWithResponse

func (c *ClientWithResponses) UpdateIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)

UpdateIntegrationWithResponse Update Integration

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).

func (*ClientWithResponses) UpdateLinkRuleWithBodyWithResponse

func (c *ClientWithResponses) UpdateLinkRuleWithBodyWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)

UpdateLinkRuleWithBodyWithResponse Update LinkRule

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).

func (*ClientWithResponses) UpdateLinkRuleWithResponse

func (c *ClientWithResponses) UpdateLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)

UpdateLinkRuleWithResponse Update LinkRule

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).

func (*ClientWithResponses) UpdateLookupTableWithBodyWithResponse

func (c *ClientWithResponses) UpdateLookupTableWithBodyWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)

UpdateLookupTableWithBodyWithResponse Update LookupTable

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).

func (*ClientWithResponses) UpdateLookupTableWithResponse

func (c *ClientWithResponses) UpdateLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)

UpdateLookupTableWithResponse Update LookupTable

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).

func (*ClientWithResponses) UpdateMeWithBodyWithResponse

func (c *ClientWithResponses) UpdateMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)

UpdateMeWithBodyWithResponse Update own profile

Changes name, time zone and language. Web session only.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /me (the `UpdateMe` operationId).

func (*ClientWithResponses) UpdateMeWithResponse

func (c *ClientWithResponses) UpdateMeWithResponse(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)

UpdateMeWithResponse Update own profile

Changes name, time zone and language. Web session only.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /me (the `UpdateMe` operationId).

func (*ClientWithResponses) UpdateMyNotificationRulesWithBodyWithResponse

func (c *ClientWithResponses) UpdateMyNotificationRulesWithBodyWithResponse(ctx context.Context, params *UpdateMyNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMyNotificationRulesResponse, error)

UpdateMyNotificationRulesWithBodyWithResponse Change own Notification rules

Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).

func (*ClientWithResponses) UpdateMyNotificationRulesWithResponse

UpdateMyNotificationRulesWithResponse Change own Notification rules

Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).

func (*ClientWithResponses) UpdateOidcSettingsWithBodyWithResponse

func (c *ClientWithResponses) UpdateOidcSettingsWithBodyWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOidcSettingsResponse, error)

UpdateOidcSettingsWithBodyWithResponse Update OIDC settings

Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).

func (*ClientWithResponses) UpdateOidcSettingsWithResponse

UpdateOidcSettingsWithResponse Update OIDC settings

Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).

func (*ClientWithResponses) UpdateOrganizationWithBodyWithResponse

func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)

UpdateOrganizationWithBodyWithResponse Update the Organization

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /organization (the `UpdateOrganization` operationId).

func (*ClientWithResponses) UpdateOrganizationWithResponse

UpdateOrganizationWithResponse Update the Organization

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /organization (the `UpdateOrganization` operationId).

func (*ClientWithResponses) UpdateOutboundPolicyWithBodyWithResponse

func (c *ClientWithResponses) UpdateOutboundPolicyWithBodyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOutboundPolicyResponse, error)

UpdateOutboundPolicyWithBodyWithResponse Update the outbound address policy

Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).

func (*ClientWithResponses) UpdateOutboundPolicyWithResponse

UpdateOutboundPolicyWithResponse Update the outbound address policy

Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).

func (*ClientWithResponses) UpdateRouteWithBodyWithResponse

func (c *ClientWithResponses) UpdateRouteWithBodyWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)

UpdateRouteWithBodyWithResponse Update a Route

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).

func (*ClientWithResponses) UpdateRouteWithResponse

func (c *ClientWithResponses) UpdateRouteWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)

UpdateRouteWithResponse Update a Route

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).

func (*ClientWithResponses) UpdateScheduleOverrideWithBodyWithResponse

func (c *ClientWithResponses) UpdateScheduleOverrideWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleOverrideResponse, error)

UpdateScheduleOverrideWithBodyWithResponse Update an Override

Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).

func (*ClientWithResponses) UpdateScheduleOverrideWithResponse

func (c *ClientWithResponses) UpdateScheduleOverrideWithResponse(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, body UpdateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleOverrideResponse, error)

UpdateScheduleOverrideWithResponse Update an Override

Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).

func (*ClientWithResponses) UpdateScheduleWithBodyWithResponse

func (c *ClientWithResponses) UpdateScheduleWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

UpdateScheduleWithBodyWithResponse Update a Schedule

Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).

func (*ClientWithResponses) UpdateScheduleWithResponse

func (c *ClientWithResponses) UpdateScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

UpdateScheduleWithResponse Update a Schedule

Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).

func (*ClientWithResponses) UpdateServiceAccountWithBodyWithResponse

func (c *ClientWithResponses) UpdateServiceAccountWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)

UpdateServiceAccountWithBodyWithResponse Update a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).

func (*ClientWithResponses) UpdateServiceAccountWithResponse

func (c *ClientWithResponses) UpdateServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)

UpdateServiceAccountWithResponse Update a Service account

A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).

func (*ClientWithResponses) UpdateTeamWithBodyWithResponse

func (c *ClientWithResponses) UpdateTeamWithBodyWithResponse(ctx context.Context, teamId TeamId, params *UpdateTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

UpdateTeamWithBodyWithResponse Update a Team

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).

func (*ClientWithResponses) UpdateTeamWithResponse

func (c *ClientWithResponses) UpdateTeamWithResponse(ctx context.Context, teamId TeamId, params *UpdateTeamParams, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

UpdateTeamWithResponse Update a Team

Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).

func (*ClientWithResponses) UpdateUserNotificationRulesWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserNotificationRulesWithBodyWithResponse(ctx context.Context, userId UserId, params *UpdateUserNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserNotificationRulesResponse, error)

UpdateUserNotificationRulesWithBodyWithResponse Change a user's Notification rules

An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).

func (*ClientWithResponses) UpdateUserNotificationRulesWithResponse

UpdateUserNotificationRulesWithResponse Change a user's Notification rules

An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).

func (*ClientWithResponses) UpdateUserWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithBodyWithResponse Update a user

Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).

func (*ClientWithResponses) UpdateUserWithResponse

func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithResponse Update a user

Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetAlertGroupActorStatisticsWithResponse Read Alert Group statistics by people
	//
	// Who acted on the Alert Groups that started in [`from`, `to`) and match the filters, which combine with AND, matched as in `getAlertGroupStatistics`: one item per User that acknowledged at least one of them first or resolved at least one, and one per Service account that resolved at least one. `acknowledged_first_count` counts the Alert Groups whose first acknowledgement the actor made, also after `to`, with its time to acknowledge; `resolved_count` those the actor resolved, by its resolver. An Alert Group gives at most one of each, to one actor; one never acknowledged counts in no `acknowledged_first_count`, and one resolved by the system in no `resolved_count`. The Alert Groups that were acknowledged but whose first acknowledgement names nobody — an Alert Group acknowledged before 0.2.0 whose Timeline was no longer whole, or on a replica of an earlier version — make one item with `actor` null, last, with `resolved_count` 0; never with `first_acknowledged_by`. So `acknowledged_first_count` adds up over the items to the `time_to_acknowledge.count` of `getAlertGroupStatistics?group_by=route` for the same period and filters. The items are complete, not paginated: by `acknowledged_first_count`, most first, then by name regardless of case, then by the exact name, then by `public_id`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-group-actor-statistics (the `GetAlertGroupActorStatistics` operationId).
	GetAlertGroupActorStatisticsWithResponse(ctx context.Context, params *GetAlertGroupActorStatisticsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupActorStatisticsResponse, error)

	// GetAlertGroupCountsWithResponse Count Alert Groups per status
	//
	// Counts per status tab for the same filters as `listAlertGroups`, `status` excluded.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-group-counts (the `GetAlertGroupCounts` operationId).
	GetAlertGroupCountsWithResponse(ctx context.Context, params *GetAlertGroupCountsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupCountsResponse, error)

	// GetAlertGroupStatisticsWithResponse Read Alert Group statistics
	//
	// Number of Alert Groups, time to acknowledge and time to resolve (median and 95th percentile), as totals and per day of start, from the summary rows, one item per Route, per Integration or per Team as `group_by` says. The period selects the Alert Groups that started in [`from`, `to`), not those whose lifetime overlaps it, as the list's time range does. The filters `route`, `integration`, `severity`, `urgent`, `team`, `reopened`, `label` and `first_acknowledged_by` combine with AND, matched as `listAlertGroups` matches them, for every `group_by`; the filter of the kind of `group_by` also chooses the items (`team=mine` the caller's Teams). Without it every Route, Integration or Team that is not deleted is an item, and each deleted one with Alert Groups in the period. An Alert Group with Alerts from several Integrations counts for each, and one with several Teams for each Team; one without a Team counts for no Team.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-group-statistics (the `GetAlertGroupStatistics` operationId).
	GetAlertGroupStatisticsWithResponse(ctx context.Context, params *GetAlertGroupStatisticsParams, reqEditors ...RequestEditorFn) (*GetAlertGroupStatisticsResponse, error)

	// ListAlertGroupsWithResponse List Alert Groups
	//
	// The main working list. Without `status` it returns open Alert Groups (firing, acknowledged, snoozed). Without `from` and `to` it covers the last `alert_group.list_range` (7 days) and selects Alert Groups whose lifetime overlaps the range, so one that has been firing for weeks is always included. Search matches `#N` and text in the title or `summary`. Changes arrive as `alert-group` and `alert-groups` hints.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-groups (the `ListAlertGroups` operationId).
	ListAlertGroupsWithResponse(ctx context.Context, params *ListAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupsResponse, error)

	// RunBulkCommandWithBodyWithResponse Run a Command on several Alert Groups
	//
	// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
	RunBulkCommandWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)

	// RunBulkCommandWithResponse Run a Command on several Alert Groups
	//
	// Acknowledge, Resolve, Snooze or Unsnooze on up to `alert_group.bulk_max` Alert Groups. Each goes through the dispatcher on its own, with its own Audit log and Timeline entry; a refusal never stops the others. Bulk Acknowledge skips Alert Groups another user owns and never makes a Takeover. `x-permission` lists alternatives: the caller needs the Permission of the chosen command (`acknowledge` needs `alert-groups:acknowledge`, `resolve` needs `alert-groups:resolve`, `snooze` and `unsnooze` need `alert-groups:snooze`). A bulk Snooze with a `preset` computes its end once, so every Alert Group gets the same end; the pointers of its problems start with `/snooze`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/bulk-commands (the `RunBulkCommand` operationId).
	RunBulkCommandWithResponse(ctx context.Context, body RunBulkCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*RunBulkCommandResponse, error)

	// GetAlertGroupWithResponse Read an Alert Group
	//
	// An Alert Group whose details were removed by retention opens as its summary with the notice `details_removed`; its Notes stay until the summary row is removed.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-groups/{alert_group_id} (the `GetAlertGroup` operationId).
	GetAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*GetAlertGroupResponse, error)

	// AcknowledgeAlertGroupWithResponse Acknowledge
	//
	// From firing or snoozed: the caller becomes the Owner and a Snooze ends. By the current Owner it changes nothing (`outcome` `unchanged`). By another user it is a Takeover: ownership moves, a Loud event mentions the previous Owner. A Personal access token acts as its User and may; a Service account token cannot become an Owner and is refused with `409` `command-refused` and the code `owner_must_be_user`. Other refusals: `already_resolved`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/acknowledge (the `AcknowledgeAlertGroup` operationId).
	AcknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AcknowledgeAlertGroupResponse, error)

	// ListAlertGroupAlertsWithResponse List the Alerts of an Alert Group
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/alerts (the `ListAlertGroupAlerts` operationId).
	ListAlertGroupAlertsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupAlertsParams, reqEditors ...RequestEditorFn) (*ListAlertGroupAlertsResponse, error)

	// ListAlertGroupDeliveriesWithResponse Read delivery state per Destination
	//
	// The delivery state of the Alert Group in each Destination. The retention removes it with the details once `retention.alert_details` has passed since the Alert Group resolved (`details_removed`), and it is no longer listed.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/deliveries (the `ListAlertGroupDeliveries` operationId).
	ListAlertGroupDeliveriesWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*ListAlertGroupDeliveriesResponse, error)

	// ListAlertGroupNotesWithResponse List Notes
	//
	// Notes are kept as long as the Alert Group's summary row (`retention.alert_group_summaries`), also after its Alerts and Timeline were removed by retention, and are deleted with the summary row.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/notes (the `ListAlertGroupNotes` operationId).
	ListAlertGroupNotesWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListAlertGroupNotesParams, reqEditors ...RequestEditorFn) (*ListAlertGroupNotesResponse, error)

	// CreateAlertGroupNoteWithBodyWithResponse Add a Note
	//
	// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
	CreateAlertGroupNoteWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)

	// CreateAlertGroupNoteWithResponse Add a Note
	//
	// Adds a Note. Service accounts may add Notes; the author is shown as the Service account.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/notes (the `CreateAlertGroupNote` operationId).
	CreateAlertGroupNoteWithResponse(ctx context.Context, alertGroupId AlertGroupId, body CreateAlertGroupNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertGroupNoteResponse, error)

	// ListRelatedAlertGroupsWithResponse List previous Alert Groups with the same key
	//
	// Alert Groups of the same Route with the same Group key values, newest first.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/related (the `ListRelatedAlertGroups` operationId).
	ListRelatedAlertGroupsWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *ListRelatedAlertGroupsParams, reqEditors ...RequestEditorFn) (*ListRelatedAlertGroupsResponse, error)

	// ResolveAlertGroupWithBodyWithResponse Resolve
	//
	// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
	ResolveAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)

	// ResolveAlertGroupWithResponse Resolve
	//
	// Resolves by the user, with an optional Note recorded in the same request. Refused with the code `already_resolved`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/resolve (the `ResolveAlertGroup` operationId).
	ResolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body ResolveAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveAlertGroupResponse, error)

	// SnoozeAlertGroupWithBodyWithResponse Snooze
	//
	// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
	SnoozeAlertGroupWithBodyWithResponse(ctx context.Context, alertGroupId AlertGroupId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)

	// SnoozeAlertGroupWithResponse Snooze
	//
	// A Snooze until a future time (`until`), with no end (`no_end: true`) or until a Snooze preset (`preset`), chosen explicitly. A preset's end is computed when the Command runs and stored as an instant. Allowed from firing, acknowledged and snoozed.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/snooze (the `SnoozeAlertGroup` operationId).
	SnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, body SnoozeAlertGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*SnoozeAlertGroupResponse, error)

	// AnswerReminderWithResponse Answer a Reminder with "Still on it"
	//
	// Owner only. Recorded in the Timeline like a press in a messenger; it does not reset the Reminder interval. Refused with `409` `command-refused` and the codes `not_owner`, `no_reminder_pending` and, for a Service account token, `owner_must_be_user`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/still-on-it (the `AnswerReminder` operationId).
	AnswerReminderWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*AnswerReminderResponse, error)

	// GetAlertGroupTimelineWithResponse Read the Timeline of an Alert Group
	//
	// Entries of all kinds, with delivery events merged in by time as the kind `delivery`. Lifecycle events carry `event`, `loudness` and `mentions`. Notes are kept as long as the summary row, so after the details were removed by retention the Timeline still returns them.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /alert-groups/{alert_group_id}/timeline (the `GetAlertGroupTimeline` operationId).
	GetAlertGroupTimelineWithResponse(ctx context.Context, alertGroupId AlertGroupId, params *GetAlertGroupTimelineParams, reqEditors ...RequestEditorFn) (*GetAlertGroupTimelineResponse, error)

	// UnacknowledgeAlertGroupWithResponse Unacknowledge
	//
	// Allowed to every user with the Permission, not only the Owner. The Alert Group becomes firing without an Owner. Refused with the code `not_acknowledged`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/unacknowledge (the `UnacknowledgeAlertGroup` operationId).
	UnacknowledgeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnacknowledgeAlertGroupResponse, error)

	// UnresolveAlertGroupWithResponse Unresolve
	//
	// Only for an Alert Group a person resolved; messengers never offer it. Refused, in this order, with the codes `not_resolved`, `resolved_automatically`, `route_deleted`, `newer_alert_group_exists` (see `related_alert_group`) and `all_alerts_resolved`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/unresolve (the `UnresolveAlertGroup` operationId).
	UnresolveAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnresolveAlertGroupResponse, error)

	// UnsnoozeAlertGroupWithResponse Unsnooze
	//
	// The Alert Group becomes firing without an Owner. Refused with the code `not_snoozed`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /alert-groups/{alert_group_id}/unsnooze (the `UnsnoozeAlertGroup` operationId).
	UnsnoozeAlertGroupWithResponse(ctx context.Context, alertGroupId AlertGroupId, reqEditors ...RequestEditorFn) (*UnsnoozeAlertGroupResponse, error)

	// ListAuditLogWithResponse List Audit log entries
	//
	// Newest first. The log is append-only; configuration changes carry a before/after diff in which Secrets only show that they changed.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /audit-log (the `ListAuditLog` operationId).
	ListAuditLogWithResponse(ctx context.Context, params *ListAuditLogParams, reqEditors ...RequestEditorFn) (*ListAuditLogResponse, error)

	// BridgeEventWithBodyWithResponse Receive a Bridge event (push event delivery)
	//
	// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
	BridgeEventWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)

	// BridgeEventWithResponse Receive a Bridge event (push event delivery)
	//
	// Used only when the Bridge Connection's event delivery mode is `push`: the bridge posts each event, one per request, signed as Standard Webhooks specifies with the Connection's push secret. Muster verifies `webhook-signature` — `v1,` followed by the base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<body>` with the decoded secret, any of several signatures separated by spaces — in constant time, refuses a `webhook-timestamp` further than `bridge.push_tolerance` from its real clock, and requires `webhook-id` to equal the event's `id`. It handles each event `id` of a Connection once within `bridge.event_dedup_window`, answers the person behind the event, when it does, before it answers `204`, and answers `204` also for an `id` it handled before. A bad signature, a timestamp out of range, an unknown or deleted Connection and a Connection in poll mode are all answered `401` and change nothing, so the endpoint reveals nothing about which Connections exist; a body that is no event of the Bridge protocol, or whose `id` is not `webhook-id`, is answered `400`, and the bridge drops it; an event whose handling failed is answered `500`, is not recorded as handled, and the bridge sends it again. Request validation does not answer `400` here: the handler decides every answer.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/bridge/{connection_id} (the `BridgeEvent` operationId).
	BridgeEventWithResponse(ctx context.Context, connectionId ConnectionId, params *BridgeEventParams, body BridgeEventJSONRequestBody, reqEditors ...RequestEditorFn) (*BridgeEventResponse, error)

	// MattermostActionWithBodyWithResponse Receive a Mattermost button press
	//
	// Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
	MattermostActionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)

	// MattermostActionWithResponse Receive a Mattermost button press
	//
	// Sent by the Mattermost server. Mattermost does not sign the request: before anything acts on the press, Muster verifies, in constant time, the callback secret of the button in `context`, which only the Mattermost server knows, and the signed action id with the key it names, checks that `post_id` and `channel_id` belong to the post the id was issued for, maps `user_id` to a User through the Account link of this Connection and dispatches the Command with the Transport `mattermost`. Every request is answered with `200` and a JSON object, an unknown or deleted Connection, a bad signature and a body that is not JSON or does not match `MattermostActionRequest` included; request validation does not answer `400` here. Whatever the person who pressed must read — a refusal, a failure, "not linked", or "not verified" for a press on a post Muster delivered in that channel — goes first as a separate ephemeral post, shown in the channel view, and the answer is then an empty object. That post needs the `create_post_ephemeral` permission, which a bot with the role Member lacks; when it is refused, or fails in any other way, the answer carries the text as `ephemeral_text`, which Mattermost shows to that person alone in the Thread of the Root message and which needs no permission. Every other answer is an empty object, so the endpoint tells a caller nothing about which Connection ids exist. The answer never carries `update`: only the delivery worker edits the Root message.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/mattermost/{connection_id} (the `MattermostAction` operationId).
	MattermostActionWithResponse(ctx context.Context, connectionId ConnectionId, body MattermostActionJSONRequestBody, reqEditors ...RequestEditorFn) (*MattermostActionResponse, error)

	// SlackInteractionWithBodyWithResponse Receive a Slack button press (http event mode)
	//
	// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
	SlackInteractionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)

	// SlackInteractionWithFormdataBodyWithResponse Receive a Slack button press (http event mode)
	//
	// Used only when the Slack Connection's event mode is `http`: Slack posts each interaction of the app, one per request, form-encoded with its JSON in `payload`. Muster reads the raw body, up to 1 MiB, before it parses the form, verifies `X-Slack-Signature` — `v0=` followed by the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Connection's Slack signing secret — in constant time, and refuses an `X-Slack-Request-Timestamp` further than `slack.request_tolerance` from its real clock, either way. A missing or wrong signature, a timestamp out of range, an unknown or deleted Connection and a Connection in `socket` mode are all answered `401` with the same body and change nothing, so the endpoint reveals nothing about which Connections exist; a body over 1 MiB, or without a `payload` that is a JSON object, is answered `400`; a failure to read the Connection is answered `500`. Every other request is answered `200` with an empty body at once, before its press is handled, because Slack waits only 3 seconds: a `block_actions` press then runs its Command with the Transport `slack`, and the person who pressed is answered privately, with `chat.postEphemeral` or else the press's `response_url`, only when there is something to read; other kinds of interaction are ignored. Request validation does not answer here: the handler decides every answer.
	//
	// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/slack/{connection_id} (the `SlackInteraction` operationId).
	SlackInteractionWithFormdataBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *SlackInteractionParams, body SlackInteractionFormdataRequestBody, reqEditors ...RequestEditorFn) (*SlackInteractionResponse, error)

	// TelegramWebhookWithBodyWithResponse Receive a Telegram update (webhook update mode)
	//
	// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
	TelegramWebhookWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)

	// TelegramWebhookWithResponse Receive a Telegram update (webhook update mode)
	//
	// Used only when the Connection's update mode is `webhook`. A request without the right secret token header, or for a Connection that does not exist or is not in webhook mode, is answered `401` and changes nothing.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /callbacks/telegram/{connection_id} (the `TelegramWebhook` operationId).
	TelegramWebhookWithResponse(ctx context.Context, connectionId ConnectionId, body TelegramWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*TelegramWebhookResponse, error)

	// ListConnectionsWithResponse List connections
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /connections (the `ListConnections` operationId).
	ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*ListConnectionsResponse, error)

	// CreateConnectionWithBodyWithResponse Create Connection
	//
	// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /connections (the `CreateConnection` operationId).
	CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)

	// CreateConnectionWithResponse Create Connection
	//
	// `type` selects Mattermost, Telegram, Bridge or Slack. The bot token, the push secret, the app-level token and the Slack signing secret are write-only Secrets.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /connections (the `CreateConnection` operationId).
	CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)

	// CheckConnectionDraftWithBodyWithResponse Check a Connection before saving it
	//
	// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
	CheckConnectionDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)

	// CheckConnectionDraftWithResponse Check a Connection before saving it
	//
	// Checks a draft of a Connection of any type, as its form holds it — the address, the bot token typed in the form, the proxy and, for a Bridge, the event delivery mode, for Slack the event mode and the app-level token — with the steps and step codes of `checkConnection`, and stores nothing: no Connection, no bot name, no `info`, no workspace or app, no Audit log entry. Which token goes where: a `bot_token` in the draft is sent to the address in the draft; without one, the stored token of `connection_id` is sent only when the draft's address, normalized as a save normalizes it, and its proxy are the saved ones; otherwise only the dry probe of the type runs, without any token, and the other steps are reported skipped — Mattermost `GET <server_url>/api/v4/system/ping`, Telegram `GET <bot_api_base_url>/bot0:x/getMe`, a Bridge `GET <base_url>/v1/info`, Slack `POST https://slack.com/api/auth.test` without `Authorization`. Slack's address is fixed, so only the proxy of a Slack draft can differ from the saved one; its step `app_token`, in `socket` mode, runs only with a bot token, and with an `app_token` in the draft or the stored one of `connection_id` on the saved proxy, and is reported skipped otherwise. A stored proxy password is used only with the saved proxy type and address. A `connection_id` that names no Connection, a deleted one or one of another type answers `422` `unknown_id` at `/connection_id`; an address or a proxy that a save would refuse answers `422` at its pointer. Runs on the interactive path: a draft with a `connection_id` takes its limiter token from that Connection, and when none is free within `delivery.interactive_budget` the answer is `503` with `Retry-After`; a draft of a new Connection has no limiter and waits for none.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /connections/checks (the `CheckConnectionDraft` operationId).
	CheckConnectionDraftWithResponse(ctx context.Context, body CheckConnectionDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionDraftResponse, error)

	// DeleteConnectionWithResponse Delete Connection
	//
	// A Connection used by Destinations cannot be deleted: `409` (`in_use`). Deleted Destinations do not count; deleting the Connection abandons the final edits still pending for them, which end as Not delivered. The deletion also deletes the Team mentions of the Connection, each recorded in the Audit log of its Team; when Teams keep giving the Connection a first Team mention while it runs, it is run again, and after three attempts it answers `409` (`team_mentions_changed`) and deletes nothing: delete it again.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /connections/{connection_id} (the `DeleteConnection` operationId).
	DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *DeleteConnectionParams, reqEditors ...RequestEditorFn) (*DeleteConnectionResponse, error)

	// GetConnectionWithResponse Read Connection
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /connections/{connection_id} (the `GetConnection` operationId).
	GetConnectionWithResponse(ctx context.Context, connectionId ConnectionId, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)

	// UpdateConnectionWithBodyWithResponse Update Connection
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
	UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)

	// UpdateConnectionWithResponse Update Connection
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /connections/{connection_id} (the `UpdateConnection` operationId).
	UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionId, params *UpdateConnectionParams, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)

	// ListConnectionChannelsWithResponse List channels visible to the bot
	//
	// The channels of a Connection's bot for the channel picker of the Destination form. A Mattermost Connection answers `MattermostChannelList`: the bot's teams, `team_id` alone when given, and its channels in each. A Slack Connection answers `SlackChannelList`: the public and private channels the bot is a member of and that are not archived, read with `conversations.list` (`types=public_channel,private_channel`, `exclude_archived=true`, `limit=200`) page by page, at most 5 pages, `truncated` when more were left; it ignores `team_id`. A Telegram or Bridge Connection answers `409`: the Admin enters the channel. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers a page with `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one, and nothing more is read.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /connections/{connection_id}/channels (the `ListConnectionChannels` operationId).
	ListConnectionChannelsWithResponse(ctx context.Context, connectionId ConnectionId, params *ListConnectionChannelsParams, reqEditors ...RequestEditorFn) (*ListConnectionChannelsResponse, error)

	// CheckConnectionWithBodyWithResponse Check a Connection
	//
	// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
	CheckConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)

	// CheckConnectionWithResponse Check a Connection
	//
	// Mattermost verifies the token and returns the bot's name. Telegram works in steps and reports the latency and path of each: a dry probe without the token, `getMe`, `getWebhookInfo`. With `base_url` in the body only the dry probe runs against that unsaved address, without the token: a stored token is sent only to the saved address of its Connection, through its saved proxy; `checkConnectionDraft` checks an unsaved address with the token typed again. A Bridge Connection is checked in two steps: `info` calls `getInfo` of the Bridge protocol with the token, and a passing `info` is stored on the Connection and returned as `info`; `event_delivery` checks that the bridge offers the Connection's event delivery mode. A Slack Connection is checked in steps: `token` calls `auth.test` with the bot token and finds the bot and the workspace; `scopes` reads the `x-oauth-scopes` of that answer, which must name `chat:write`, `channels:read`, `groups:read`, `im:write`, `users:read` and `users:read.email`; in `socket` mode `app_token` calls `auth.test` with the app-level token and `bots.info` with the bot token, whose app ids must be equal. A passing check stores what it found and returns it as `slack`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /connections/{connection_id}/checks (the `CheckConnection` operationId).
	CheckConnectionWithResponse(ctx context.Context, connectionId ConnectionId, body CheckConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckConnectionResponse, error)

	// ListConnectionGroupsWithResponse List the groups a Connection can mention
	//
	// The groups of a Connection for its Team mentions and the group entries of its Destinations (C-25.FR-8), by name. A Mattermost Connection answers the groups that may be mentioned, read with `GET /api/v4/groups?filter_allow_reference=true&include_member_count=true&per_page=200` (F-122), `truncated` when that page was full. A Slack Connection whose last check found `usergroups:read` answers the user groups that are not disabled, read with `usergroups.list` (F-125); `name` is the handle. A Telegram or Bridge Connection, and a Slack Connection without the scope, answer `409` `groups_not_listed`; a server that refuses the read answers `409`. Requires `connections:write` because it calls out with the bot token. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`, Slack's own when it sent one.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /connections/{connection_id}/groups (the `ListConnectionGroups` operationId).
	ListConnectionGroupsWithResponse(ctx context.Context, connectionId ConnectionId, params *ListConnectionGroupsParams, reqEditors ...RequestEditorFn) (*ListConnectionGroupsResponse, error)

	// ListDestinationsWithResponse List destinations
	//
	// All types, with health. Outgoing webhook URL and header templates are shown with Secret references only.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /destinations (the `ListDestinations` operationId).
	ListDestinationsWithResponse(ctx context.Context, params *ListDestinationsParams, reqEditors ...RequestEditorFn) (*ListDestinationsResponse, error)

	// CreateDestinationWithBodyWithResponse Create Destination
	//
	// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations (the `CreateDestination` operationId).
	CreateDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)

	// CreateDestinationWithResponse Create Destination
	//
	// `type` selects Mattermost, Telegram, outgoing webhook, Bridge or Slack. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check through the interactive path and refuses one that fails it with `422` `validation-failed` and `destination_check_failed`. Creating an outgoing webhook Destination also generates its Signing secret, returned once in `signing_secret` (`null` for the other types). Routes and Teams attach Destinations through their `destination_entries`. A Bridge Connection whose stored `info` declares only the role `gateway` is refused with `422` `gateway_only` at `/connection_id`, before any check.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations (the `CreateDestination` operationId).
	CreateDestinationWithResponse(ctx context.Context, body CreateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDestinationResponse, error)

	// DeleteDestinationWithResponse Delete Destination
	//
	// Always allowed: the Destination leaves every Route, and open Root messages get one final edit "No longer updated here" and nothing after; then the Destination's secrets are wiped. An outgoing webhook in events mode has no Root message: its queued events are abandoned and end as Not delivered, no final event is sent, and its secrets are wiped at once (in mode `both`, after the final edits of the template mode). It is a soft delete: the Destination is kept for history and no longer counts as using its Connection. There is no `409`; a stale `If-Match` is `412`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /destinations/{destination_id} (the `DeleteDestination` operationId).
	DeleteDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *DeleteDestinationParams, reqEditors ...RequestEditorFn) (*DeleteDestinationResponse, error)

	// GetDestinationWithResponse Read Destination
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /destinations/{destination_id} (the `GetDestination` operationId).
	GetDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetDestinationResponse, error)

	// UpdateDestinationWithBodyWithResponse Update Destination
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
	UpdateDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)

	// UpdateDestinationWithResponse Update Destination
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on a proxy `password` clears it. Saving a Mattermost, Telegram, Bridge or Slack Destination runs the Destination check as `createDestination` does and refuses a failing one with `destination_check_failed`; an update that moves a Bridge Destination to a Connection whose stored `info` declares only the role `gateway` is refused with `gateway_only`. One that keeps a Connection that became a gateway alone after the Destination was saved is not, but its Destination check fails as that bridge answers it, so such a Destination can only be deleted or moved to another Connection.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /destinations/{destination_id} (the `UpdateDestination` operationId).
	UpdateDestinationWithResponse(ctx context.Context, destinationId DestinationId, params *UpdateDestinationParams, body UpdateDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDestinationResponse, error)

	// CheckDestinationWithResponse Run the Destination check
	//
	// Verifies that Muster can still reach and post to the Destination without sending a message: Mattermost token and channel membership; Telegram `getChat` for the channel, its discussion group from `linked_chat_id`, and `getChatMember` for the bot in both; Bridge `checkChannel`; Slack `conversations.info` (item `channel`). A success ends the Broken state. Not available for outgoing webhooks (`422` with `check_not_supported`). Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations/{destination_id}/checks (the `CheckDestination` operationId).
	CheckDestinationWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*CheckDestinationResponse, error)

	// PreviewDestinationWithBodyWithResponse Preview a message or request
	//
	// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
	PreviewDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)

	// PreviewDestinationWithResponse Preview a message or request
	//
	// Renders the Root message or the webhook requests for a chosen Alert Group or the example without sending anything. For a Mattermost Destination the item `message` has the format `markdown`, its `text` the post's `message`, which Muster leaves empty, and its `request` the post, whose one attachment holds what the channel shows. For a Bridge Destination the item `message` is the envelope as Muster would post it, as JSON (format `json`). For a Slack Destination the item `message` is the body of `chat.postMessage` as JSON (format `json`), and its `request` that call with the bot token masked.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations/{destination_id}/previews (the `PreviewDestination` operationId).
	PreviewDestinationWithResponse(ctx context.Context, destinationId DestinationId, body PreviewDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewDestinationResponse, error)

	// ListDestinationSecretsWithResponse List the Secrets of a webhook Destination
	//
	// Names with `set` and the time of the last change. Values are never returned. `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /destinations/{destination_id}/secrets (the `ListDestinationSecrets` operationId).
	ListDestinationSecretsWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*ListDestinationSecretsResponse, error)

	// DeleteDestinationSecretWithResponse Delete a Secret of a webhook Destination
	//
	// `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /destinations/{destination_id}/secrets/{secret_name} (the `DeleteDestinationSecret` operationId).
	DeleteDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *DeleteDestinationSecretParams, reqEditors ...RequestEditorFn) (*DeleteDestinationSecretResponse, error)

	// SetDestinationSecretWithBodyWithResponse Set a Secret of a webhook Destination
	//
	// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
	SetDestinationSecretWithBodyWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)

	// SetDestinationSecretWithResponse Set a Secret of a webhook Destination
	//
	// Creates or replaces the named Secret, referenced as `{{ .Secrets.<name> }}`. `If-Match`, when given, is compared with the ETag of `listDestinationSecrets`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /destinations/{destination_id}/secrets/{secret_name} (the `SetDestinationSecret` operationId).
	SetDestinationSecretWithResponse(ctx context.Context, destinationId DestinationId, secretName SecretName, params *SetDestinationSecretParams, body SetDestinationSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDestinationSecretResponse, error)

	// GetSigningSecretWithResponse Read the Signing secret status
	//
	// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /destinations/{destination_id}/signing-secret (the `GetSigningSecret` operationId).
	GetSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GetSigningSecretResponse, error)

	// GenerateSigningSecretWithResponse Regenerate the Signing secret
	//
	// The first Signing secret is generated when the Destination is created. This returns a new one, once; requests then carry signatures with both the new and the previous secret until `retirePreviousSigningSecret`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations/{destination_id}/signing-secret (the `GenerateSigningSecret` operationId).
	GenerateSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*GenerateSigningSecretResponse, error)

	// RetirePreviousSigningSecretWithResponse Retire the previous Signing secret
	//
	// `409` (`not_webhook_destination`) for a Destination that is not an outgoing webhook.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /destinations/{destination_id}/signing-secret/previous (the `RetirePreviousSigningSecret` operationId).
	RetirePreviousSigningSecretWithResponse(ctx context.Context, destinationId DestinationId, reqEditors ...RequestEditorFn) (*RetirePreviousSigningSecretResponse, error)

	// TestDestinationWithBodyWithResponse Send a test message
	//
	// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
	TestDestinationWithBodyWithResponse(ctx context.Context, destinationId DestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)

	// TestDestinationWithResponse Send a test message
	//
	// One "create" request marked "Test message", built from a recent Alert Group of one of the Destination's Routes or from a built-in example, through the interactive path. An outgoing webhook sends the `test` event in events mode and the "create" request in template mode, both when it uses both. Secrets and the Signing secret are masked in the result. Test messages are never reconciled and change no Alert Group. A successful test of a Broken Destination ends the Broken state. Audited. A step that could not get a limiter token in time ends with `error_class` `limited`. A Bridge Destination posts one test message of the kind `test` with `postMessage`. A Slack Destination posts one test message with `chat.postMessage`, the step `message` alone; a bot cannot press its own button, so the test cannot show that presses reach Muster.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /destinations/{destination_id}/tests (the `TestDestination` operationId).
	TestDestinationWithResponse(ctx context.Context, destinationId DestinationId, body TestDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestDestinationResponse, error)

	// ListEscalationChainsWithResponse List Escalation chains
	//
	// The Escalation chains by name, each with its steps, the Routes and Teams that name it, the Destinations it writes in and its warnings. Every Role reads them.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /escalation-chains (the `ListEscalationChains` operationId).
	ListEscalationChainsWithResponse(ctx context.Context, params *ListEscalationChainsParams, reqEditors ...RequestEditorFn) (*ListEscalationChainsResponse, error)

	// CreateEscalationChainWithBodyWithResponse Create an Escalation chain
	//
	// A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).
	CreateEscalationChainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEscalationChainResponse, error)

	// CreateEscalationChainWithResponse Create an Escalation chain
	//
	// A chain with a name unique in the Organization ignoring case (`409` `name_taken`), a description, an optional owning Team and its ordered steps within `escalation.limits` (C-32.FR-1, FR-3). Each step takes the fields of its kind only (see `EscalationStepInput`). A person a `page_people` or `call` step names who is a Viewer or disabled is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`. A chain runs nothing until a Route or a Team names it and chains run.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /escalation-chains (the `CreateEscalationChain` operationId).
	CreateEscalationChainWithResponse(ctx context.Context, body CreateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEscalationChainResponse, error)

	// DeleteEscalationChainWithResponse Delete an Escalation chain
	//
	// Deletes the chain with its steps. A chain that a Route or a Team names is refused with `409` `chain_in_use`, which names them in `in_use_by`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /escalation-chains/{escalation_chain_id} (the `DeleteEscalationChain` operationId).
	DeleteEscalationChainWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *DeleteEscalationChainParams, reqEditors ...RequestEditorFn) (*DeleteEscalationChainResponse, error)

	// GetEscalationChainWithResponse Read an Escalation chain
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /escalation-chains/{escalation_chain_id} (the `GetEscalationChain` operationId).
	GetEscalationChainWithResponse(ctx context.Context, escalationChainId EscalationChainId, reqEditors ...RequestEditorFn) (*GetEscalationChainResponse, error)

	// UpdateEscalationChainWithBodyWithResponse Update an Escalation chain
	//
	// Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).
	UpdateEscalationChainWithBodyWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEscalationChainResponse, error)

	// UpdateEscalationChainWithResponse Update an Escalation chain
	//
	// Replaces the name and the steps; an omitted `description` or `owning_team_id` keeps the stored one, and `owning_team_id` null clears it. Requires `If-Match`; a stale ETag gets `412`. The people, the Notification gateway and the Destination that the stored steps name pass as they are, so that a chain whose person was disabled, whose gateway or whose Destination was deleted since can still be saved; what the save adds is checked. A change applies to the runs that start after it (P-73).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /escalation-chains/{escalation_chain_id} (the `UpdateEscalationChain` operationId).
	UpdateEscalationChainWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *UpdateEscalationChainParams, body UpdateEscalationChainJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEscalationChainResponse, error)

	// ListEscalationChainRunsWithResponse List the runs of an Escalation chain
	//
	// The recent runs of the chain on Alert Groups, newest first, for "How it went" (C-32.FR-18): one per start of the chains of an Alert Group, so an Alert Group whose chains started over has a run per start. Each run names its Alert Group, the steps it made and skipped with the reason of each skip and the Pages of each step it made, and what stopped it — the Command and its actor — or that it ran out. Runs of a chain keep its steps from when they started (P-73).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /escalation-chains/{escalation_chain_id}/runs (the `ListEscalationChainRuns` operationId).
	ListEscalationChainRunsWithResponse(ctx context.Context, escalationChainId EscalationChainId, params *ListEscalationChainRunsParams, reqEditors ...RequestEditorFn) (*ListEscalationChainRunsResponse, error)

	// PreviewGroupKeyWithBodyWithResponse Preview a Group key
	//
	// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
	PreviewGroupKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)

	// PreviewGroupKeyWithResponse Preview a Group key
	//
	// Counts the Alert Groups that the Stored Snapshots of the period would have produced with the current and with the proposed Group key. With the unsaved `minimum_severity`, `destination_entries` and `deliver_to_teams` of the Route, or those of the saved Route, the delivery preview "Where alerts go" (C-26.FR-12) lists the largest Alert Groups of the proposed key with their Teams and the Destinations each reaches, counts the Alert Groups that reach every Destination, and tells whether Alerts of different Teams would share an Alert Group. It reads only, so nothing is saved, recorded or sent.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /group-key-previews (the `PreviewGroupKey` operationId).
	PreviewGroupKeyWithResponse(ctx context.Context, body PreviewGroupKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewGroupKeyResponse, error)

	// HeartbeatGetWithResponse Heartbeat signal (GET)
	//
	// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /heartbeat (the `HeartbeatGet` operationId).
	HeartbeatGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatGetResponse, error)

	// HeartbeatPostWithResponse Heartbeat signal (POST)
	//
	// Any request carrying one of the Integration's tokens counts as a signal; the body is ignored. The first signal moves the Heartbeat from waiting to live. While the Integration's Heartbeat is off, the request is answered `204` and nothing is recorded.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /heartbeat (the `HeartbeatPost` operationId).
	HeartbeatPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeartbeatPostResponse, error)

	// HeartbeatGetWithPathTokenWithResponse Heartbeat signal (GET, token in the path)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /heartbeat/{ingest_token} (the `HeartbeatGetWithPathToken` operationId).
	HeartbeatGetWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatGetWithPathTokenResponse, error)

	// HeartbeatPostWithPathTokenWithResponse Heartbeat signal (POST, token in the path)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /heartbeat/{ingest_token} (the `HeartbeatPostWithPathToken` operationId).
	HeartbeatPostWithPathTokenWithResponse(ctx context.Context, ingestToken IngestTokenInPath, reqEditors ...RequestEditorFn) (*HeartbeatPostWithPathTokenResponse, error)

	// IngestSnapshotWithBodyWithResponse Receive an Alertmanager webhook
	//
	// Checks the token, then the body size, stores the body as a Stored Snapshot exactly as received and answers `202` after the write commits, without waiting for processing. It never answers `400`: a body that is not JSON, or does not look like an Alertmanager payload, is stored and fails later as a processing error (log event, `muster_ingest_failed_snapshots_total`, Stored Snapshot state `failed`), because Alertmanager does not retry a `4xx` and the notification would be lost. Not rate-limited. Counted in `muster_ingest_requests_total` with the outcome `accepted`, `unauthorized` or `too_large`. The only `5xx` is a failed write, which Alertmanager retries. Ingestion is excluded from request validation by the spec: the handler reads the raw body and the generated types are not used for it.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ingest (the `IngestSnapshot` operationId).
	IngestSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotResponse, error)

	// IngestSnapshotWithPathTokenWithBodyWithResponse Receive an Alertmanager webhook (token in the path)
	//
	// For senders that cannot set a header. Identical to `ingestSnapshot`. Logs record the route pattern, never the path.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /ingest/{ingest_token} (the `IngestSnapshotWithPathToken` operationId).
	IngestSnapshotWithPathTokenWithBodyWithResponse(ctx context.Context, ingestToken IngestTokenInPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestSnapshotWithPathTokenResponse, error)

	// ListIntegrationsWithResponse List integrations
	//
	// Includes the built-in "Muster" Integration, marked `builtin`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /integrations (the `ListIntegrations` operationId).
	ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*ListIntegrationsResponse, error)

	// CreateIntegrationWithBodyWithResponse Create Integration
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /integrations (the `CreateIntegration` operationId).
	CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)

	// CreateIntegrationWithResponse Create Integration
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /integrations (the `CreateIntegration` operationId).
	CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)

	// DeleteIntegrationWithResponse Delete Integration
	//
	// Soft delete: its tokens stop working at once, its open Alerts are resolved with the reason "Integration {name} deleted", its Internal alerts are resolved, and its open Alert Groups are resolved. The built-in Integration cannot be deleted (`409`, `builtin_immutable`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /integrations/{integration_id} (the `DeleteIntegration` operationId).
	DeleteIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *DeleteIntegrationParams, reqEditors ...RequestEditorFn) (*DeleteIntegrationResponse, error)

	// GetIntegrationWithResponse Read Integration
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /integrations/{integration_id} (the `GetIntegration` operationId).
	GetIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetIntegrationResponse, error)

	// UpdateIntegrationWithBodyWithResponse Update Integration
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
	UpdateIntegrationWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)

	// UpdateIntegrationWithResponse Update Integration
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /integrations/{integration_id} (the `UpdateIntegration` operationId).
	UpdateIntegrationWithResponse(ctx context.Context, integrationId IntegrationId, params *UpdateIntegrationParams, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)

	// ListAlertmanagerRoutesWithResponse List learned Alertmanager routes
	//
	// Routes taken from the `groupKey` of Snapshots, with the learned repeat interval and the resulting time to resolve by absence.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /integrations/{integration_id}/alertmanager-routes (the `ListAlertmanagerRoutes` operationId).
	ListAlertmanagerRoutesWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListAlertmanagerRoutesResponse, error)

	// ListIntegrationAlertsWithResponse List the Alerts view of an Integration
	//
	// The Alerts Muster currently tracks for the Integration. Resolved Alerts stay for `retention.alert_details`. Label filters follow the scheme of `label` on `listAlertGroups`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /integrations/{integration_id}/alerts (the `ListIntegrationAlerts` operationId).
	ListIntegrationAlertsWithResponse(ctx context.Context, integrationId IntegrationId, params *ListIntegrationAlertsParams, reqEditors ...RequestEditorFn) (*ListIntegrationAlertsResponse, error)

	// ListIntegrationTokensWithResponse List Integration tokens
	//
	// Values are never returned.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /integrations/{integration_id}/tokens (the `ListIntegrationTokens` operationId).
	ListIntegrationTokensWithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*ListIntegrationTokensResponse, error)

	// CreateIntegrationTokenWithBodyWithResponse Create an Integration token
	//
	// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
	CreateIntegrationTokenWithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)

	// CreateIntegrationTokenWithResponse Create an Integration token
	//
	// The token allows ingestion and Heartbeat and nothing else. The value and the ready Alertmanager snippet that contains it are returned once; a new snippet means a new token.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /integrations/{integration_id}/tokens (the `CreateIntegrationToken` operationId).
	CreateIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, body CreateIntegrationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationTokenResponse, error)

	// RevokeIntegrationTokenWithResponse Revoke an Integration token
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /integrations/{integration_id}/tokens/{integration_token_id} (the `RevokeIntegrationToken` operationId).
	RevokeIntegrationTokenWithResponse(ctx context.Context, integrationId IntegrationId, integrationTokenId IntegrationTokenId, reqEditors ...RequestEditorFn) (*RevokeIntegrationTokenResponse, error)

	// ListLinkRulesWithResponse List linkrules
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /link-rules (the `ListLinkRules` operationId).
	ListLinkRulesWithResponse(ctx context.Context, params *ListLinkRulesParams, reqEditors ...RequestEditorFn) (*ListLinkRulesResponse, error)

	// CreateLinkRuleWithBodyWithResponse Create LinkRule
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
	CreateLinkRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)

	// CreateLinkRuleWithResponse Create LinkRule
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /link-rules (the `CreateLinkRule` operationId).
	CreateLinkRuleWithResponse(ctx context.Context, body CreateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLinkRuleResponse, error)

	// DeleteLinkRuleWithResponse Delete LinkRule
	//
	// The built-in "Explore" rule cannot be deleted (`409`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /link-rules/{link_rule_id} (the `DeleteLinkRule` operationId).
	DeleteLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *DeleteLinkRuleParams, reqEditors ...RequestEditorFn) (*DeleteLinkRuleResponse, error)

	// GetLinkRuleWithResponse Read LinkRule
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /link-rules/{link_rule_id} (the `GetLinkRule` operationId).
	GetLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, reqEditors ...RequestEditorFn) (*GetLinkRuleResponse, error)

	// UpdateLinkRuleWithBodyWithResponse Update LinkRule
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
	UpdateLinkRuleWithBodyWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)

	// UpdateLinkRuleWithResponse Update LinkRule
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /link-rules/{link_rule_id} (the `UpdateLinkRule` operationId).
	UpdateLinkRuleWithResponse(ctx context.Context, linkRuleId LinkRuleId, params *UpdateLinkRuleParams, body UpdateLinkRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLinkRuleResponse, error)

	// StreamLiveUpdatesWithResponse Stream change hints
	//
	// Server-sent events (`text/event-stream`). OpenAPI 3.1 cannot type event streams, so the events are described by `HintEvent`.
	//
	// Each event has the name `hint`, an `id` line and a JSON `data` line `{type, id}`. A hint carries no data: the client re-reads through the API, so authorization stays in one place. The stream starts with `retry: 3000` (the reconnect delay in milliseconds) and a comment line (`: keepalive`) follows periodically. After a reconnect the client invalidates everything; `Last-Event-ID` is not replayed. When the session expires or is ended, the server closes the stream; the browser's reconnect then gets `401`, which makes `EventSource` stop for good, and the SPA goes to the sign-in page. The stream follows a web session; a token gets `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /live-updates (the `StreamLiveUpdates` operationId).
	StreamLiveUpdatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StreamLiveUpdatesResponse, error)

	// ListLookupTablesWithResponse List lookuptables
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /lookup-tables (the `ListLookupTables` operationId).
	ListLookupTablesWithResponse(ctx context.Context, params *ListLookupTablesParams, reqEditors ...RequestEditorFn) (*ListLookupTablesResponse, error)

	// CreateLookupTableWithBodyWithResponse Create LookupTable
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
	CreateLookupTableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)

	// CreateLookupTableWithResponse Create LookupTable
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /lookup-tables (the `CreateLookupTable` operationId).
	CreateLookupTableWithResponse(ctx context.Context, body CreateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLookupTableResponse, error)

	// DeleteLookupTableWithResponse Delete LookupTable
	//
	// Refused with `409` (`in_use`) while the URL template of a Link rule reads the table by its name, `link_rules` naming the rules.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /lookup-tables/{lookup_table_id} (the `DeleteLookupTable` operationId).
	DeleteLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *DeleteLookupTableParams, reqEditors ...RequestEditorFn) (*DeleteLookupTableResponse, error)

	// GetLookupTableWithResponse Read LookupTable
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /lookup-tables/{lookup_table_id} (the `GetLookupTable` operationId).
	GetLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, reqEditors ...RequestEditorFn) (*GetLookupTableResponse, error)

	// UpdateLookupTableWithBodyWithResponse Update LookupTable
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
	UpdateLookupTableWithBodyWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)

	// UpdateLookupTableWithResponse Update LookupTable
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. A new name for a table that the URL template of a Link rule reads by its name is refused with `409` (`in_use`), `link_rules` naming the rules, since they would read nothing.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /lookup-tables/{lookup_table_id} (the `UpdateLookupTable` operationId).
	UpdateLookupTableWithResponse(ctx context.Context, lookupTableId LookupTableId, params *UpdateLookupTableParams, body UpdateLookupTableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLookupTableResponse, error)

	// GetMeWithResponse Read own profile
	//
	// The caller and the effective Permissions, narrowed by the token if one is used. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me (the `GetMe` operationId).
	GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)

	// UpdateMeWithBodyWithResponse Update own profile
	//
	// Changes name, time zone and language. Web session only.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /me (the `UpdateMe` operationId).
	UpdateMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)

	// UpdateMeWithResponse Update own profile
	//
	// Changes name, time zone and language. Web session only.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /me (the `UpdateMe` operationId).
	UpdateMeWithResponse(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeResponse, error)

	// ListMyAccountLinksWithResponse List own Account links
	//
	// Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/account-links (the `ListMyAccountLinks` operationId).
	ListMyAccountLinksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMyAccountLinksResponse, error)

	// StartBridgeLinkWithBodyWithResponse Start linking an account through a Bridge with a token
	//
	// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
	StartBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)

	// StartBridgeLinkWithResponse Start linking an account through a Bridge with a token
	//
	// Returns a token to send to the bot of the Bridge Connection in a direct message: 32 random bytes in base64url, single-use, valid for `account_link.bridge_token_ttl` and bound to the User and the Connection. When the Connection's last `info` has a `link_url_template`, `link_url` is that template with the token in place of `{token}`, kept only when it is an absolute `http` or `https` link; otherwise it is null. The bridge reports the token with an `account_link` event, which completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`. Calls no bridge.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/bridge (the `StartBridgeLink` operationId).
	StartBridgeLinkWithResponse(ctx context.Context, body StartBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeLinkResponse, error)

	// StartBridgeCodeLinkWithBodyWithResponse Start linking an account through a Bridge with a code
	//
	// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
	StartBridgeCodeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)

	// StartBridgeCodeLinkWithResponse Start linking an account through a Bridge with a code
	//
	// Where the Bridge Connection's `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`, the bridge finds the account with the `handle` the caller entered — of the kind `user_lookup` declares — with `findUsers`, and its bot sends a code with `sendDirectMessage`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.bridge_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `code_not_offered` when the Connection's `info`, read again first when Muster's copy is older than `bridge.info_max_age`, offers no code or has never been read; with `409` `account_linked_elsewhere` when the account is linked to another User; and with `409` without a code when the bridge refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Bridge Connection answers `422` `unknown_id` at `/connection_id`; a handle the bridge does not find answers `422` `handle_not_found` at `/handle`, and an account the bot cannot write to `422` `direct_message_refused` at `/handle`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/bridge/codes (the `StartBridgeCodeLink` operationId).
	StartBridgeCodeLinkWithResponse(ctx context.Context, body StartBridgeCodeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartBridgeCodeLinkResponse, error)

	// ConfirmBridgeLinkWithBodyWithResponse Confirm a Bridge link with the code
	//
	// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
	ConfirmBridgeLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)

	// ConfirmBridgeLinkWithResponse Confirm a Bridge link with the code
	//
	// At most 5 attempts (`account_link.bridge_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Bridge code request, is `404`. The link stores the account's `external_id`, `display_name` and handle as the bridge reported them. No direct message confirms it, and no bridge is called. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/bridge/confirmation (the `ConfirmBridgeLink` operationId).
	ConfirmBridgeLinkWithResponse(ctx context.Context, body ConfirmBridgeLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmBridgeLinkResponse, error)

	// ListLinkableConnectionsWithResponse List the Connections an account can be linked through
	//
	// The profile's own short list of the Connections that are not deleted, for picking one when linking a messenger account. It needs no Permission, independently of `connections:read`, and shows only the id, the name and the messenger of each Connection, and for a Bridge Connection how an account can be linked through it — `link_methods` and `handle_kind`, from the Connection's last `info`. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/account-links/connections (the `ListLinkableConnections` operationId).
	ListLinkableConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLinkableConnectionsResponse, error)

	// StartMattermostLinkWithBodyWithResponse Start linking a Mattermost account
	//
	// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
	StartMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)

	// StartMattermostLinkWithResponse Start linking a Mattermost account
	//
	// The Connection's bot sends a direct message with a code to the `@username`. Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.mattermost_code_requests`). Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it, so that the answer never tells of other Users' requests. Refused with `409` if the account is already linked to another user (`account_linked_elsewhere`), or without a code when Mattermost refuses a call. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Mattermost Connection — missing, deleted or a Telegram one — answers `422` `unknown_id` at `/connection_id`; a username the Mattermost server does not know answers `422` `messenger_user_not_found` at `/username`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/mattermost (the `StartMattermostLink` operationId).
	StartMattermostLinkWithResponse(ctx context.Context, body StartMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartMattermostLinkResponse, error)

	// ConfirmMattermostLinkWithBodyWithResponse Confirm a Mattermost link with the code
	//
	// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
	ConfirmMattermostLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)

	// ConfirmMattermostLinkWithResponse Confirm a Mattermost link with the code
	//
	// At most 5 attempts; after that the code is void. A wrong code, and a request that is void, used or expired, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User is `404`. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/mattermost/confirmation (the `ConfirmMattermostLink` operationId).
	ConfirmMattermostLinkWithResponse(ctx context.Context, body ConfirmMattermostLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmMattermostLinkResponse, error)

	// StartSlackLinkWithBodyWithResponse Start linking a Slack account with a code
	//
	// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
	StartSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)

	// StartSlackLinkWithResponse Start linking a Slack account with a code
	//
	// Looks up the account of the Slack Connection that the caller names in `handle`. An email — an `@` after at least one character with a dot after that `@` — is looked up with `users.lookupByEmail`, which ignores the letter case. Anything else is a name, a leading `@` dropped, compared with each account's `name` and `profile.display_name` regardless of case over the pages of `users.list`; deleted accounts, bots and Slackbot are left out. The bot then sends a code (`account_link.slack_code`) by direct message — `chat.postMessage` to the account's user id — with "You requested a link to Muster. Do not share this code.". Code requests are limited per requesting User and per requesting User and target account (`429` `link_code_requests_exceeded` with `Retry-After`, `account_link.slack_code_requests`); a request whose direct message failed still counts. Beyond the codes one account receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms it. Refused with `409` `account_linked_elsewhere` when the account is linked to another User, with `409` `messages_tab_disabled` when Slack refuses the direct message because the Messages tab of the Slack app is off, and with `409` without a code when Slack refuses a call otherwise. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Slack Connection — missing, deleted or of another type — answers `422` `unknown_id` at `/connection_id`; no account answers `422` `handle_not_found` at `/handle`, several accounts with the name `422` `handle_ambiguous` at `/handle`, and an account the bot cannot write to (`cannot_dm_bot`, `user_not_found`, or `channel_not_found` for the user id) `422` `direct_message_refused` at `/handle`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/slack (the `StartSlackLink` operationId).
	StartSlackLinkWithResponse(ctx context.Context, body StartSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartSlackLinkResponse, error)

	// ConfirmSlackLinkWithBodyWithResponse Confirm a Slack link with the code
	//
	// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
	ConfirmSlackLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)

	// ConfirmSlackLinkWithResponse Confirm a Slack link with the code
	//
	// At most 5 attempts (`account_link.slack_code`); after that the code is void. A wrong code, and a request that is void, used or expired or whose Connection was deleted, answer `422` `link_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the request still takes, 0 once it takes none; a request of another User, or one that is not a Slack request, is `404`. The link stores the account's user id as `external_id`, its `name` as `username`, and its `profile.display_name`, else `profile.real_name`, as `display_name`, which names the account where Muster shows the link, while Mentions and the footer write it as `<@external_id>`; a second link of the User through the same Connection replaces the first. The bot then confirms "Linked to Muster user {name}" by direct message; a confirmation that fails is only logged. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, or Slack answers `429`, the answer is `503` with `Retry-After`. No operation starts a link for another User, whatever the caller's Role.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/slack/confirmation (the `ConfirmSlackLink` operationId).
	ConfirmSlackLinkWithResponse(ctx context.Context, body ConfirmSlackLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmSlackLinkResponse, error)

	// StartTelegramLinkWithBodyWithResponse Start linking a Telegram account
	//
	// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
	StartTelegramLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)

	// StartTelegramLinkWithResponse Start linking a Telegram account
	//
	// Returns a deep link `t.me/<bot>?start=<token>`; the token is single-use, valid for `account_link.telegram_token_ttl`. Pressing Start in Telegram completes the link and arrives as an `account-links` hint with the link's `public_id`. Only the signed-in web session can start a link (not a token). No operation starts a link for another User, whatever the caller's Role. A `connection_id` that names no Telegram Connection — missing, deleted or a Mattermost one — answers `422` `unknown_id` at `/connection_id`. When the bot's username is not known from the last Connection check, it is read with `getMe` on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`, and when Telegram refuses the call, `409`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/account-links/telegram (the `StartTelegramLink` operationId).
	StartTelegramLinkWithResponse(ctx context.Context, body StartTelegramLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*StartTelegramLinkResponse, error)

	// DeleteMyAccountLinkWithResponse Unlink an own messenger account
	//
	// Unlinks one of the caller's own messenger accounts. Web session only: a token gets `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /me/account-links/{account_link_id} (the `DeleteMyAccountLink` operationId).
	DeleteMyAccountLinkWithResponse(ctx context.Context, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteMyAccountLinkResponse, error)

	// ListMyGatewayContactsWithResponse List own contacts at Notification gateways
	//
	// The caller's contacts, confirmed and unconfirmed, each with its Notification gateway; a new contact for a gateway at which the caller has a confirmed one names that one in `replaces` until it is confirmed, and until then the confirmed one stays the one called. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/gateway-contacts (the `ListMyGatewayContacts` operationId).
	ListMyGatewayContactsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMyGatewayContactsResponse, error)

	// CreateMyGatewayContactWithBodyWithResponse Add an own contact at a Notification gateway
	//
	// Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).
	CreateMyGatewayContactWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMyGatewayContactResponse, error)

	// CreateMyGatewayContactWithResponse Add an own contact at a Notification gateway
	//
	// Adds an unconfirmed contact of the caller — a phone number or another address the gateway understands, as text, trimmed, 1 to 200 characters — and sends a code of `gateway.contact_code` through that gateway with `sendNotification`, without action data, in the language of the caller's profile: "Your Muster code: {code}. It is valid for {minutes} minutes. Do not share it." The code is checked only in the web session that asked for it (`confirmMyGatewayContact`). An earlier unconfirmed contact of the caller for the gateway is replaced; a confirmed one stays the one called until this one is confirmed. Code requests — this operation and `sendMyGatewayContactCode` — are limited by `gateway.contact_code_requests` per User and per User and contact text (`429` `contact_code_requests_exceeded` with `Retry-After`); a request whose sending failed still counts. Beyond the codes one contact text receives within an hour across Users, a request is answered as if its code were sent, but nothing is sent and no code confirms the contact, so that the answer never tells of other Users' requests. Runs on the interactive path: when no limiter token is free within `delivery.interactive_budget`, the answer is `503` with `Retry-After`; a refusal of the gateway answers `502` `gateway_refused` with its `gateway_class`. In both cases the contact stays, unconfirmed, and `sendMyGatewayContactCode` sends a new code. A `connection_id` that names no Connection in the role `gateway` answers `422` `unknown_id` at `/connection_id`; a contact that is empty or longer than 200 characters `422` `invalid_format` at `/contact`. Recorded in the Audit log as `gateway_contact.created`. Web session only: a token gets `403` (`session_required`). No operation sets a contact for another User.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/gateway-contacts (the `CreateMyGatewayContact` operationId).
	CreateMyGatewayContactWithResponse(ctx context.Context, body CreateMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMyGatewayContactResponse, error)

	// DeleteMyGatewayContactWithResponse Remove an own contact at a Notification gateway
	//
	// Removes one of the caller's contacts, confirmed or not; a confirmed contact is no longer called. Its codes can no longer confirm anything, but stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, so that removing and adding a contact again does not reset the limits. Recorded in the Audit log as `gateway_contact.deleted`. Web session only: a token gets `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /me/gateway-contacts/{gateway_contact_id} (the `DeleteMyGatewayContact` operationId).
	DeleteMyGatewayContactWithResponse(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*DeleteMyGatewayContactResponse, error)

	// SendMyGatewayContactCodeWithResponse Send a new code for an own contact
	//
	// Sends a new code of `gateway.contact_code` for one of the caller's contacts through its gateway, as `createMyGatewayContact` does; once the gateway accepted it, it voids the earlier codes of the contact, which a failed sending leaves as they were. The new code is checked only in this web session. Limited by `gateway.contact_code_requests` (`429` `contact_code_requests_exceeded` with `Retry-After`). Runs on the interactive path (`503` with `Retry-After`); a refusal of the gateway answers `502` `gateway_refused`. A contact whose gateway is no longer a Notification gateway answers `422` `unknown_id` at `/connection_id`. Web session only: a token gets `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/code (the `SendMyGatewayContactCode` operationId).
	SendMyGatewayContactCodeWithResponse(ctx context.Context, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*SendMyGatewayContactCodeResponse, error)

	// ConfirmMyGatewayContactWithBodyWithResponse Confirm an own contact with the code
	//
	// Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).
	ConfirmMyGatewayContactWithBodyWithResponse(ctx context.Context, gatewayContactId GatewayContactId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmMyGatewayContactResponse, error)

	// ConfirmMyGatewayContactWithResponse Confirm an own contact with the code
	//
	// Confirms the contact with the code its gateway delivered, in the web session that asked for the code (ADR-0013). At most 5 attempts (`gateway.contact_code`); after that, once the code expired or was used, and once a newer code was sent, the code is void. A wrong code, a code asked for in another session — which counts as an attempt — and a void code answer `422` `contact_code_invalid` at `/code`, never saying which, with `attempts_remaining`: the codes the contact still takes, 0 once it takes none. A confirmed contact replaces the caller's earlier confirmed contact at the same gateway, in one transaction. Recorded in the Audit log as `gateway_contact.confirmed`. Calls no gateway. Web session only: a token gets `403` (`session_required`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/gateway-contacts/{gateway_contact_id}/confirmation (the `ConfirmMyGatewayContact` operationId).
	ConfirmMyGatewayContactWithResponse(ctx context.Context, gatewayContactId GatewayContactId, body ConfirmMyGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmMyGatewayContactResponse, error)

	// RevokeMyIcalFeedWithResponse Revoke the caller's iCal feed
	//
	// Its link answers `404` at once; `204` also when the caller has no feed. Recorded in the Audit log as `ical_feed.revoked` when a feed existed. Web session only.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /me/ical-feed (the `RevokeMyIcalFeed` operationId).
	RevokeMyIcalFeedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeMyIcalFeedResponse, error)

	// GetMyIcalFeedWithResponse Read whether the caller has an iCal feed
	//
	// Whether the caller's personal iCal feed exists and when it was issued; the token and the link are never shown again. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/ical-feed (the `GetMyIcalFeed` operationId).
	GetMyIcalFeedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyIcalFeedResponse, error)

	// IssueMyIcalFeedWithResponse Issue the caller's iCal feed
	//
	// Issues a new link of the caller's personal iCal feed (`ical.token`) and shows it once; the previous link, if any, stops working at once. The feed lists the times when the caller is On-call in every Schedule (`getIcalCalendar`). Recorded in the Audit log as `ical_feed.issued`, without the token. Web session only.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/ical-feed (the `IssueMyIcalFeed` operationId).
	IssueMyIcalFeedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IssueMyIcalFeedResponse, error)

	// GetMyNotificationRulesWithResponse Read own Notification rules
	//
	// The caller's normal and important rule as in effect (C-31.FR-1, FR-2): in the state `organization` the Organization's current rules, otherwise those stored when the caller chose the state. A call action reads `available` false with `unavailable_reason` `gateway_deleted` once its gateway was deleted or is no Notification gateway any more, and `no_confirmed_contact` once the caller has no confirmed contact there; it stays in the rule. Web session only: a token gets `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/notification-rules (the `GetMyNotificationRules` operationId).
	GetMyNotificationRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyNotificationRulesResponse, error)

	// UpdateMyNotificationRulesWithBodyWithResponse Change own Notification rules
	//
	// Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).
	UpdateMyNotificationRulesWithBodyWithResponse(ctx context.Context, params *UpdateMyNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMyNotificationRulesResponse, error)

	// UpdateMyNotificationRulesWithResponse Change own Notification rules
	//
	// Sets the state of the caller's rules (C-31.FR-2, FR-5): `organization` follows the Organization's rules, which reach the caller at once when an Admin changes them; `call` takes the Organization's current rules with a call through `gateway_id` at the start of the important rule, together with its first action, unless that rule already calls through that gateway; `no_call` takes them without any call, a rule left without a Mention getting one in place of its first call; `custom` takes `normal` and `important` as sent. `call` and `no_call` are computed now and stored: a later change of the Organization's rules does not reach them. Fields the state does not take are ignored. `gateway_id` may be left out when the caller has a confirmed contact at exactly one Notification gateway; with several it is `422` `required` at `/gateway_id`; while no Notification gateway exists `gateway_required` there, for a gateway without the caller's confirmed contact `contact_required`, for a Connection that is no Notification gateway `unknown_id`. The custom rules are validated as `NotificationRuleSet` says, at `/normal/...` and `/important/...`; a call there needs a confirmed contact of the caller at its gateway (`contact_required` at the action). As many calls through a gateway as the caller's own stored rules have, in either rule, pass even when the gateway was deleted or the contact removed, so that they stay; a further call through it is checked, and a caller in the state `organization` keeps none, not even those of the Organization's rules. A call that would make the important rule longer than 10 actions is `422` `out_of_range` at `/state`. Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff of `state`, `gateway_id`, `normal` and `important`; an update that changes nothing records nothing. Web session only: a token gets `403` (`session_required`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /me/notification-rules (the `UpdateMyNotificationRules` operationId).
	UpdateMyNotificationRulesWithResponse(ctx context.Context, params *UpdateMyNotificationRulesParams, body UpdateMyNotificationRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMyNotificationRulesResponse, error)

	// ResetMyNotificationRulesWithResponse Reset own Notification rules to the Organization's
	//
	// "Reset to the Organization's rules": the caller's rules return to the state `organization` and follow the Organization's rules again (C-31.FR-2). Recorded in the Audit log as `notification_rules.updated`; a caller already in that state records nothing. Web session only: a token gets `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/notification-rules/reset (the `ResetMyNotificationRules` operationId).
	ResetMyNotificationRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ResetMyNotificationRulesResponse, error)

	// StartOidcLinkWithResponse Start linking an OIDC identity
	//
	// Starts linking the caller's account to an identity at the OIDC provider: returns the authorization URL (PKCE `S256`, `state` and `nonce`) that the SPA opens after warning "After linking you will sign in only through OIDC; your password will be removed." The `state` is bound to this web session, so the callback adds the identity only to the account that started the link. A successful link removes the password: the account then signs in only through OIDC, keeps its TOTP enrolment, and `oidc.sync_role` applies to it. There is no unlinking by the user; an Admin can convert the account back to local (`convertUserToLocal`). Web session only: a token gets `403` (`session_required`). `409` with `oidc_not_enabled` while OIDC is off, or `oidc_already_linked` when the account already signs in through OIDC.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/oidc-identity (the `StartOidcLink` operationId).
	StartOidcLinkWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartOidcLinkResponse, error)

	// CompleteOidcLinkWithResponse Complete linking an OIDC identity
	//
	// Redirect target of the identity provider for a link started by `startOidcLink`; register `MUSTER_PUBLIC_URL/api/v1/me/oidc-identity/callback` at the identity provider next to the sign-in callback. Every outcome is a `302` to the profile page. On success the identity (issuer and subject) is added to the account of the web session that started the link and the password is removed; an offline token granted by the link flow is kept on the user, as at sign-in; this session continues as an OIDC session, the user's other sessions end, and the Audit log records it; the redirect goes to `/profile`. A failure redirects to `/profile?error=<code>`, with one of `identity_linked_elsewhere` (the identity belongs to another user; the Audit log records the refusal), `no_access` (the identity's groups map to no Role and there is no Role for unmatched users, so the account could not sign in through OIDC; the redirect is `/profile?error=no_access` and the Audit log records the refusal with the groups), `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`, no web session, or a `state` started by another session) and `idp_error`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/oidc-identity/callback (the `CompleteOidcLink` operationId).
	CompleteOidcLinkWithResponse(ctx context.Context, params *CompleteOidcLinkParams, reqEditors ...RequestEditorFn) (*CompleteOidcLinkResponse, error)

	// ChangePasswordWithBodyWithResponse Change own password
	//
	// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /me/password (the `ChangePassword` operationId).
	ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

	// ChangePasswordWithResponse Change own password
	//
	// Ends all other sessions of the user. Local users only (`409` `local_user_only` otherwise). Web session only.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /me/password (the `ChangePassword` operationId).
	ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

	// ListPersonalAccessTokensWithResponse List own Personal access tokens
	//
	// Values are never returned. Each token shows when and from which address it was last used. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/personal-access-tokens (the `ListPersonalAccessTokens` operationId).
	ListPersonalAccessTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPersonalAccessTokensResponse, error)

	// CreatePersonalAccessTokenWithBodyWithResponse Create a Personal access token
	//
	// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
	CreatePersonalAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)

	// CreatePersonalAccessTokenWithResponse Create a Personal access token
	//
	// Shows the token once. Its Permissions must be a subset of the Permissions the caller holds now (`422` `permission_not_held` on `/permissions/<i>`). Web session only: a token can never mint another token.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/personal-access-tokens (the `CreatePersonalAccessToken` operationId).
	CreatePersonalAccessTokenWithResponse(ctx context.Context, body CreatePersonalAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePersonalAccessTokenResponse, error)

	// RevokePersonalAccessTokenWithResponse Revoke a Personal access token
	//
	// Revokes the token at once. Web session only.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /me/personal-access-tokens/{token_id} (the `RevokePersonalAccessToken` operationId).
	RevokePersonalAccessTokenWithResponse(ctx context.Context, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokePersonalAccessTokenResponse, error)

	// DeleteMySessionsWithResponse Sign out everywhere
	//
	// Ends every session of the user, the current one included. Web session only.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /me/sessions (the `DeleteMySessions` operationId).
	DeleteMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteMySessionsResponse, error)

	// ListMySessionsWithResponse List own sessions
	//
	// Sessions of the user, the current one marked.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/sessions (the `ListMySessions` operationId).
	ListMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMySessionsResponse, error)

	// GetMyTotpWithResponse Read own TOTP status
	//
	// Whether TOTP is enrolled, a first code is awaited, and how many recovery codes remain. Service account tokens get `403` (`service_account_not_allowed`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /me/totp (the `GetMyTotp` operationId).
	GetMyTotpWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyTotpResponse, error)

	// BeginTotpEnrolmentWithResponse Begin TOTP enrolment
	//
	// Returns the seed and the `otpauth` URI once. Enrolment completes when `confirmTotpEnrolment` receives a first code. Allowed in the session state `totp_enrolment_required`. `409` (`totp_already_enrolled`) when TOTP is already on. Web session only.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/totp (the `BeginTotpEnrolment` operationId).
	BeginTotpEnrolmentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BeginTotpEnrolmentResponse, error)

	// ConfirmTotpEnrolmentWithBodyWithResponse Confirm TOTP enrolment
	//
	// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
	ConfirmTotpEnrolmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)

	// ConfirmTotpEnrolmentWithResponse Confirm TOTP enrolment
	//
	// Confirms with a first code and issues `auth.totp_recovery_codes` single-use recovery codes, shown once. Allowed in the session state `totp_enrolment_required`. `409` (`totp_enrolment_not_started`) without a begun enrolment, `totp_already_enrolled` if already confirmed. Web session only.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/totp/confirmation (the `ConfirmTotpEnrolment` operationId).
	ConfirmTotpEnrolmentWithResponse(ctx context.Context, body ConfirmTotpEnrolmentJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmTotpEnrolmentResponse, error)

	// RegenerateTotpRecoveryCodesWithBodyWithResponse Regenerate recovery codes
	//
	// Invalidates the previous codes. Requires a current TOTP code. Web session only.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
	RegenerateTotpRecoveryCodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)

	// RegenerateTotpRecoveryCodesWithResponse Regenerate recovery codes
	//
	// Invalidates the previous codes. Requires a current TOTP code. Web session only.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/totp/recovery-codes (the `RegenerateTotpRecoveryCodes` operationId).
	RegenerateTotpRecoveryCodesWithResponse(ctx context.Context, body RegenerateTotpRecoveryCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*RegenerateTotpRecoveryCodesResponse, error)

	// RemoveTotpWithBodyWithResponse Remove own TOTP
	//
	// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
	RemoveTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)

	// RemoveTotpWithResponse Remove own TOTP
	//
	// Needs proof that the person is at the keyboard: the current password (local users) or a current TOTP or recovery code. Under a TOTP policy that covers the user, the next sign-in demands enrolment again. A wrong proof is `401` (`invalid_credentials`). Web session only.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /me/totp/removal (the `RemoveTotp` operationId).
	RemoveTotpWithResponse(ctx context.Context, body RemoveTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTotpResponse, error)

	// GetOidcSettingsWithResponse Read OIDC settings
	//
	// The client secret is never returned; `client_secret_status` shows whether it is set and when it changed.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /oidc-settings (the `GetOidcSettings` operationId).
	GetOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOidcSettingsResponse, error)

	// UpdateOidcSettingsWithBodyWithResponse Update OIDC settings
	//
	// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
	UpdateOidcSettingsWithBodyWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOidcSettingsResponse, error)

	// UpdateOidcSettingsWithResponse Update OIDC settings
	//
	// Replaces the writable fields; omitted optional fields keep their value. Saving with an empty mapping and no Role for unmatched users returns the warning `nobody_can_sign_in` in the result. The Audit log diff shows only that the client secret changed.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /oidc-settings (the `UpdateOidcSettings` operationId).
	UpdateOidcSettingsWithResponse(ctx context.Context, params *UpdateOidcSettingsParams, body UpdateOidcSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOidcSettingsResponse, error)

	// CheckOidcSettingsWithResponse Check the connection to the identity provider
	//
	// Fetches discovery through the outbound HTTP package, with the saved proxy, keeps its `claims_supported` for the settings, and reports, for the groups claim and every claim an entry of the mapping names, whether it is advertised. While no sign-in has seen a claim in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, a claim discovery does not list raises the warning `groups_claim_missing` for it and a listed one clears it; once a sign-in has seen the claim, the check changes nothing for it.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oidc-settings/checks (the `CheckOidcSettings` operationId).
	CheckOidcSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckOidcSettingsResponse, error)

	// GetOnCallNowWithResponse Read who is On-call now in each Team
	//
	// "On call now" (C-27.FR-9): for each Team that is not deleted, sorted by name ignoring case, the On-call of its main Schedule at the business clock's now with the Rotation layer that decides it, until when, and the segment that follows — its person, or a gap — within `schedule.gap_view`, and the Destinations of the Team, and of the Escalation chains that Page the main Schedule, that a Mention of the On-call cannot reach (C-27.FR-8, FR-9); a Team without a main Schedule has `no_schedule` true. Overrides count as in the Result of the Schedule. Every Role reads it.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /on-call-now (the `GetOnCallNow` operationId).
	GetOnCallNowWithResponse(ctx context.Context, params *GetOnCallNowParams, reqEditors ...RequestEditorFn) (*GetOnCallNowResponse, error)

	// GetOpenApiSpecWithResponse Read this specification
	//
	// The specification the binary was built from, as checked in at `api/openapi.yaml`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /openapi.yaml (the `GetOpenApiSpec` operationId).
	GetOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenApiSpecResponse, error)

	// GetOrganizationWithResponse Read the Organization
	//
	// Readable by every signed-in identity (the basic read of the Organization needs no Permission). Secrets (the outgoing heartbeat URL, proxy passwords) show only `set` and `updated_at`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /organization (the `GetOrganization` operationId).
	GetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)

	// UpdateOrganizationWithBodyWithResponse Update the Organization
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
	UpdateOrganizationWithBodyWithResponse(ctx context.Context, params *UpdateOrganizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)

	// UpdateOrganizationWithResponse Update the Organization
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one. An omitted Secret field keeps the stored Secret. `null` on `outgoing_heartbeat.url` or a proxy `password` clears it. Every field is validated; an invalid one gets `422` at the full JSON pointer of the field, such as `/severity_styles/1/color` or `/retention/alert_details_days`, with `invalid_format`, `duplicate`, `required`, `too_short`, `too_long`, `out_of_range` or `retention_order`. A retention period or `oidc_token_grace_seconds` beyond its `maximum`, a `workday_start` that is not `HH:MM` on the 24-hour clock and a `week_start` that is not a day of the week are refused with `400` by request validation, `invalid_format` at `/workday_start` or `/week_start`; `out_of_range` and `invalid_format` are the second, defensive check of the same rules. A change is recorded in the Audit log as `organization.updated` with its before/after diff and announced with the `organization` hint; Severity levels and Instance labels apply to later evaluations only.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /organization (the `UpdateOrganization` operationId).
	UpdateOrganizationWithResponse(ctx context.Context, params *UpdateOrganizationParams, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)

	// GetKeyringWithResponse Read the Keyring status
	//
	// Every key id in the environment, which is active, which live replicas hold which, and whether anything still depends on an older key. Activation is the CLI command `muster secrets rotate-key --activate <id> --actor <name>`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /organization/keyring (the `GetKeyring` operationId).
	GetKeyringWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeyringResponse, error)

	// GetOutboundPolicyWithResponse Read the outbound address policy
	//
	// The outbound address policy with the rules that always apply. Needs `organization:read`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /organization/outbound-policy (the `GetOutboundPolicy` operationId).
	GetOutboundPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOutboundPolicyResponse, error)

	// UpdateOutboundPolicyWithBodyWithResponse Update the outbound address policy
	//
	// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
	UpdateOutboundPolicyWithBodyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOutboundPolicyResponse, error)

	// UpdateOutboundPolicyWithResponse Update the outbound address policy
	//
	// Replaces the policy and its lists. Requires `If-Match`; a stale ETag gets `412`. Each entry is a network in CIDR form or a bare address, a host name, or a domain written `*.example.org`; an entry that does not parse gets `422` with `invalid_format` and a repeated one `duplicate`, at `/allowed/<i>` or `/denied/<i>`. `always_blocked` is read-only and ignored. The change takes effect at once on every replica, idle pooled connections included, is recorded in the Audit log as `outbound_policy.updated` and is announced with the `organization` hint. Needs `organization:write`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /organization/outbound-policy (the `UpdateOutboundPolicy` operationId).
	UpdateOutboundPolicyWithResponse(ctx context.Context, params *UpdateOutboundPolicyParams, body UpdateOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOutboundPolicyResponse, error)

	// ListSeverityValuesWithResponse List severity values seen
	//
	// Values of the severity label seen in the last `organization.severity_values_window`, with counts, the most frequent first and at most 500 values; unmapped values count as warning.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /organization/severity-values (the `ListSeverityValues` operationId).
	ListSeverityValuesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSeverityValuesResponse, error)

	// CompletePasswordSetupWithBodyWithResponse Set a password from a setup link
	//
	// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
	CompletePasswordSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)

	// CompletePasswordSetupWithResponse Set a password from a setup link
	//
	// Uses the single-use token of a password setup link (the link carries it in the URL fragment, so it reaches neither server logs nor referrers). The user is then asked to enrol TOTP if the policy requires it. An unknown token is `404`; a token past `auth.password_setup_link_ttl` is `410` (`link_expired`); one already used or replaced by a newer link is `410` (`link_used`). Like the sign-in, a request that a browser marks as cross-site is `403` (`csrf_invalid`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /password-setups (the `CompletePasswordSetup` operationId).
	CompletePasswordSetupWithResponse(ctx context.Context, body CompletePasswordSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*CompletePasswordSetupResponse, error)

	// ListRequestLogWithResponse List the Request log of a Connection, a Destination or a check run
	//
	// The records of exactly one owner, or of one check run, newest first: `connection` lists every record of a Connection, `destination` every record of an outgoing webhook Destination or, for a messenger Destination, the records of its Connection that name it; `run` alone lists the records of that check run whose owner is a Connection or nobody — the checks before saving of new Connections — and beside an owner it narrows that owner's list. Neither an owner nor a run, or both owners, answer `422` with the code `one_of_required`. The caller needs `connections:read` to name a Connection or a run alone and `destinations:read` to name a Destination (`403` otherwise); an unknown or deleted owner is `404`. Only records newer than `request_log.max_age` and among the newest `request_log.max_records` of their owner are listed — a messenger Destination's within its Connection's — so a list never shows more than that bound. Each record is one attempt of a request: its URL as errors show it, its status, latency and path, without headers or bodies, which `getRequestRecord` reads.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /request-log (the `ListRequestLog` operationId).
	ListRequestLogWithResponse(ctx context.Context, params *ListRequestLogParams, reqEditors ...RequestEditorFn) (*ListRequestLogResponse, error)

	// GetRequestRecordWithResponse Read a record of the Request log
	//
	// One record with its headers and bodies, masked. The caller needs the Permission of the record's owner, `connections:read` for a Connection's record — even one listed through a messenger Destination with `destinations:read` — and `destinations:read` for an outgoing webhook's (`403` otherwise). A record past `request_log.max_age` or past the newest `request_log.max_records` of its owner, or whose owner is deleted, is `404`, as it is in no list. Headers, bodies and the error are untrusted text.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /request-log/{request_record_id} (the `GetRequestRecord` operationId).
	GetRequestRecordWithResponse(ctx context.Context, requestRecordId RequestRecordId, reqEditors ...RequestEditorFn) (*GetRequestRecordResponse, error)

	// ListRolesWithResponse List Roles with their Permissions
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /roles (the `ListRoles` operationId).
	ListRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRolesResponse, error)

	// ReorderRoutesWithBodyWithResponse Reorder Routes
	//
	// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
	ReorderRoutesWithBodyWithResponse(ctx context.Context, params *ReorderRoutesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)

	// ReorderRoutesWithResponse Reorder Routes
	//
	// Replaces the order of all Routes except the Default route, which cannot be moved. `If-Match` carries the ETag of `listRoutes`; a stale one gets `412`. A list that contains the Default route is `409` (`default-route-immutable`); a set of ids that differs from the current set is `422` (`route_set_mismatch`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /route-order (the `ReorderRoutes` operationId).
	ReorderRoutesWithResponse(ctx context.Context, params *ReorderRoutesParams, body ReorderRoutesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderRoutesResponse, error)

	// ListRouteProfilesWithResponse List Route profiles
	//
	// The two starting sets of Route settings, Paging and Informational, read from the built-in defaults. They only pre-fill the create form; they cannot be edited or stored.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /route-profiles (the `ListRouteProfiles` operationId).
	ListRouteProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteProfilesResponse, error)

	// ListRouteSuggestionsWithResponse List Route suggestions
	//
	// A Route for `MusterHeartbeatLost` when an Integration has a Heartbeat and no Route other than the Default route matches it; from the first Destination on, a Route for `alertname=~"Muster.*"`. Dismissals are remembered per user.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /route-suggestions (the `ListRouteSuggestions` operationId).
	ListRouteSuggestionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRouteSuggestionsResponse, error)

	// AcceptRouteSuggestionWithBodyWithResponse Accept a Route suggestion
	//
	// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
	AcceptRouteSuggestionWithBodyWithResponse(ctx context.Context, suggestionId SuggestionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)

	// AcceptRouteSuggestionWithResponse Accept a Route suggestion
	//
	// Creates the suggested Route at the top of the list; the Route for `internal_alerts` goes directly below the last Route other than the Default route that already takes an Internal alert, such as the Route for `MusterHeartbeatLost`, and at the top when none does. `409` (`suggestion_obsolete`) when it no longer applies: a matching Route exists now, it was accepted already, or no Destination exists for `internal_alerts`; `422` (`required` at `/destination_ids`) when `internal_alerts` is accepted without Destinations.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /route-suggestions/{suggestion_id}/accept (the `AcceptRouteSuggestion` operationId).
	AcceptRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, body AcceptRouteSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptRouteSuggestionResponse, error)

	// DismissRouteSuggestionWithResponse Dismiss a Route suggestion
	//
	// Remembered for the calling user only, so Service account tokens get `403` (`service_account_not_allowed`). `409` (`suggestion_obsolete`) when it no longer applies.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /route-suggestions/{suggestion_id}/dismiss (the `DismissRouteSuggestion` operationId).
	DismissRouteSuggestionWithResponse(ctx context.Context, suggestionId SuggestionId, reqEditors ...RequestEditorFn) (*DismissRouteSuggestionResponse, error)

	// ListRoutesWithResponse List Routes in evaluation order
	//
	// The first Route whose Matchers all match takes an Alert. The Default route is always last. The ETag covers the order and is what `reorderRoutes` expects in `If-Match`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /routes (the `ListRoutes` operationId).
	ListRoutesWithResponse(ctx context.Context, params *ListRoutesParams, reqEditors ...RequestEditorFn) (*ListRoutesResponse, error)

	// CreateRouteWithBodyWithResponse Create a Route
	//
	// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /routes (the `CreateRoute` operationId).
	CreateRouteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)

	// CreateRouteWithResponse Create a Route
	//
	// Inserted before the Default route. Fields omitted from `policy` are not defaulted: fetch a profile with `listRouteProfiles` to pre-fill the form. Templates are parsed and dry-run against recent Stored Snapshots; a template that fails is refused with `422` and the error position.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /routes (the `CreateRoute` operationId).
	CreateRouteWithResponse(ctx context.Context, body CreateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRouteResponse, error)

	// DeleteRouteWithResponse Delete a Route
	//
	// Refused with `409` `default-route-immutable` for the Default route and with `409` `route-has-open-alert-groups` (carrying `open_alert_group_count`) while open Alert Groups remain; move them first with `moveOpenAlertGroups`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /routes/{route_id} (the `DeleteRoute` operationId).
	DeleteRouteWithResponse(ctx context.Context, routeId RouteId, params *DeleteRouteParams, reqEditors ...RequestEditorFn) (*DeleteRouteResponse, error)

	// GetRouteWithResponse Read a Route
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /routes/{route_id} (the `GetRoute` operationId).
	GetRouteWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*GetRouteResponse, error)

	// UpdateRouteWithBodyWithResponse Update a Route
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
	UpdateRouteWithBodyWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)

	// UpdateRouteWithResponse Update a Route
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted optional field keeps its stored value; an explicit `null` clears a nullable one.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /routes/{route_id} (the `UpdateRoute` operationId).
	UpdateRouteWithResponse(ctx context.Context, routeId RouteId, params *UpdateRouteParams, body UpdateRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRouteResponse, error)

	// ListRouteLabelSuggestionsWithResponse List the labels to suggest for "Labels in the message"
	//
	// The labels of the Alerts of the Route's Alert Groups created within `routing.group_key_preview_period` (the last 24 hours), each with an example value — its most frequent value — and the number of those Alert Groups whose Alerts carry it, most frequent first, at most 50 (C-29.FR-2). The Route form offers them as "From recent Alert Groups of the Route".
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /routes/{route_id}/label-suggestions (the `ListRouteLabelSuggestions` operationId).
	ListRouteLabelSuggestionsWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*ListRouteLabelSuggestionsResponse, error)

	// MoveOpenAlertGroupsWithResponse Move open Alert Groups to the Default route
	//
	// Adds a `moved_to_default_route` Timeline entry to each moved Alert Group. Afterwards the Route can be deleted. A moved Alert Group keeps its Group key values but takes no new Alerts and never reopens; it stays open until its Alerts resolve or a person resolves it.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /routes/{route_id}/move-open-alert-groups (the `MoveOpenAlertGroups` operationId).
	MoveOpenAlertGroupsWithResponse(ctx context.Context, routeId RouteId, reqEditors ...RequestEditorFn) (*MoveOpenAlertGroupsResponse, error)

	// ListSchedulesWithResponse List Schedules
	//
	// The Schedules by name, each with its Team and its Rotation layers. Every Role reads them.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /schedules (the `ListSchedules` operationId).
	ListSchedulesWithResponse(ctx context.Context, params *ListSchedulesParams, reqEditors ...RequestEditorFn) (*ListSchedulesResponse, error)

	// CreateScheduleWithBodyWithResponse Create a Schedule
	//
	// A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /schedules (the `CreateSchedule` operationId).
	CreateScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScheduleResponse, error)

	// CreateScheduleWithResponse Create a Schedule
	//
	// A Schedule of a Team, with a name unique in the Team ignoring case (`409` `name_taken`), a time zone — the Organization's at the time of creation when omitted (`schedule.time_zone`) — and its Rotation layers. The first Schedule of a Team is its main Schedule; `main` true on a later one makes it main instead of the previous one. A person a Rotation layer names who is a Viewer, disabled or not in the Team is refused with `422` `not_pageable` at `/rotation_layers/{i}/user_ids/{j}`, with the `reason`. Sends no message (C-27.FR-11).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /schedules (the `CreateSchedule` operationId).
	CreateScheduleWithResponse(ctx context.Context, body CreateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScheduleResponse, error)

	// DeleteScheduleWithResponse Delete a Schedule
	//
	// Deletes the Schedule with its Rotation layers and Overrides. Deleting a Team's main Schedule leaves the Team without one until an Admin marks another (P-66). A Schedule that an Escalation step names is refused with `409` `schedule_in_use`, which names the chains in `in_use_by`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /schedules/{schedule_id} (the `DeleteSchedule` operationId).
	DeleteScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, params *DeleteScheduleParams, reqEditors ...RequestEditorFn) (*DeleteScheduleResponse, error)

	// GetScheduleWithResponse Read a Schedule
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /schedules/{schedule_id} (the `GetSchedule` operationId).
	GetScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*GetScheduleResponse, error)

	// UpdateScheduleWithBodyWithResponse Update a Schedule
	//
	// Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).
	UpdateScheduleWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

	// UpdateScheduleWithResponse Update a Schedule
	//
	// Replaces the writable fields and the Rotation layers. Requires `If-Match`; a stale ETag gets `412`. A Rotation layer with the `id` of one of the Schedule's keeps its identity; one without is new, and one left out is deleted. Only the people a save adds to a Rotation layer must be able to be Paged; those it keeps need not. An omitted `time_zone` or `main` keeps the stored value. `main` true makes the Schedule its Team's main Schedule and the previous one not main, in one transaction; `main` false on the main Schedule is refused with `422` `unsupported` at `/main`, and a `team_id` other than the Schedule's with `422` `unsupported` at `/team_id`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /schedules/{schedule_id} (the `UpdateSchedule` operationId).
	UpdateScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleResponse, error)

	// GetScheduleOnCallWithResponse Read the On-call and the Result of a Schedule
	//
	// The Result of the Schedule over a period on the business clock: its segments, each with the person On-call or none in a gap, the Shifts of each Rotation layer and the Overrides in the period, and the warnings about the people who may not be Paged — Viewers, disabled Users and Users not in the Team, whose Shifts and Overrides are skipped — followed by a warning `gap` with its `start` and `end` for each gap of the period, cut to it (C-27.FR-7), and by a warning `unreachable` for each segment of the period with a person, for each Destination of the Schedule's Team, and each Destination of a Route or a Team that names an Escalation chain with a `page_on_call` step on the Schedule, that a Mention of the person cannot reach, each once, with the reason (C-27.FR-8, C-32.FR-8). The period is from `from` to `to`, by default the business clock's now and `schedule.gap_view` after it; `from` and `to` are at most 10 years from now, else `422` `out_of_range` at `/query/from` or `/query/to`, and `to` must be after `from` and at most the length of `ical.window` after it, else `422` `out_of_range` at `/query/to`. A wall-clock time that a change of the clocks skips is the instant the clocks move, and one that happens twice its first occurrence.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /schedules/{schedule_id}/on-call (the `GetScheduleOnCall` operationId).
	GetScheduleOnCallWithResponse(ctx context.Context, scheduleId ScheduleId, params *GetScheduleOnCallParams, reqEditors ...RequestEditorFn) (*GetScheduleOnCallResponse, error)

	// ListScheduleOverridesWithResponse List the Overrides of a Schedule
	//
	// The Overrides that end after `from` — the business clock's now by default — and, with `to`, start before it, by start.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /schedules/{schedule_id}/overrides (the `ListScheduleOverrides` operationId).
	ListScheduleOverridesWithResponse(ctx context.Context, scheduleId ScheduleId, params *ListScheduleOverridesParams, reqEditors ...RequestEditorFn) (*ListScheduleOverridesResponse, error)

	// CreateScheduleOverrideWithBodyWithResponse Create an Override
	//
	// From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).
	CreateScheduleOverrideWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScheduleOverrideResponse, error)

	// CreateScheduleOverrideWithResponse Create an Override
	//
	// From `start` to `end` the person `user_id` is On-call on top of every Rotation layer; where Overrides overlap, the one created last wins (P-65). The caller is in the Schedule's Team or is an Admin, else `409` `not_in_team`. The person who takes the Shift is in the Team, neither a Viewer nor disabled, else `422` `not_pageable` at `/user_id` with the `reason`; `replaces_user_id`, the person whose Shift it takes, may be anyone and changes nothing in the On-call. An Override may not rewrite the past: a `start` more than 5 minutes before the business clock's now is refused with `422` `out_of_range` at `/start`; an `end` that is not after the start or not after now (P-91), more than 31 days after the start, or a span that overlaps 1000 other Overrides of the Schedule, with `422` `out_of_range` at `/end`. An Override may be planned any time ahead. Needs no approval and sends no message (C-27.FR-11).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /schedules/{schedule_id}/overrides (the `CreateScheduleOverride` operationId).
	CreateScheduleOverrideWithResponse(ctx context.Context, scheduleId ScheduleId, body CreateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScheduleOverrideResponse, error)

	// DeleteScheduleOverrideWithResponse Delete an Override
	//
	// With the precondition of `createScheduleOverride`. An Override that has ended is refused with `409` `override_ended`, so that the past Result stays as it was. An Override that has begun is ended now instead of removed — its `end` becomes the business clock”s now and its past part stays in the Result — and the Audit log records `schedule_override.deleted` with that change of the end.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /schedules/{schedule_id}/overrides/{override_id} (the `DeleteScheduleOverride` operationId).
	DeleteScheduleOverrideWithResponse(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *DeleteScheduleOverrideParams, reqEditors ...RequestEditorFn) (*DeleteScheduleOverrideResponse, error)

	// UpdateScheduleOverrideWithBodyWithResponse Update an Override
	//
	// Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).
	UpdateScheduleOverrideWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleOverrideResponse, error)

	// UpdateScheduleOverrideWithResponse Update an Override
	//
	// Replaces the people and the span, with the precondition and the checks of `createScheduleOverride`. Requires `If-Match`; a stale ETag gets `412`. An Override that has ended is refused with `409` `override_ended`. Of an Override that has begun only `end` may change, so that the past stays as it was; a different `start`, `user_id` or `replaces_user_id` is refused with `422` `unsupported` at it. A change that changes nothing keeps the version.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /schedules/{schedule_id}/overrides/{override_id} (the `UpdateScheduleOverride` operationId).
	UpdateScheduleOverrideWithResponse(ctx context.Context, scheduleId ScheduleId, overrideId OverrideId, params *UpdateScheduleOverrideParams, body UpdateScheduleOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleOverrideResponse, error)

	// ListServiceAccountsWithResponse List Service accounts
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /service-accounts (the `ListServiceAccounts` operationId).
	ListServiceAccountsWithResponse(ctx context.Context, params *ListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ListServiceAccountsResponse, error)

	// CreateServiceAccountWithBodyWithResponse Create a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
	CreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)

	// CreateServiceAccountWithResponse Create a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /service-accounts (the `CreateServiceAccount` operationId).
	CreateServiceAccountWithResponse(ctx context.Context, body CreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountResponse, error)

	// DeleteServiceAccountWithResponse Delete a Service account
	//
	// Revokes its tokens.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /service-accounts/{service_account_id} (the `DeleteServiceAccount` operationId).
	DeleteServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *DeleteServiceAccountParams, reqEditors ...RequestEditorFn) (*DeleteServiceAccountResponse, error)

	// GetServiceAccountWithResponse Read a Service account
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /service-accounts/{service_account_id} (the `GetServiceAccount` operationId).
	GetServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*GetServiceAccountResponse, error)

	// UpdateServiceAccountWithBodyWithResponse Update a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
	UpdateServiceAccountWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)

	// UpdateServiceAccountWithResponse Update a Service account
	//
	// A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /service-accounts/{service_account_id} (the `UpdateServiceAccount` operationId).
	UpdateServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, params *UpdateServiceAccountParams, body UpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceAccountResponse, error)

	// DisableServiceAccountWithResponse Disable a Service account
	//
	// Its tokens stop working until the account is enabled again.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /service-accounts/{service_account_id}/disable (the `DisableServiceAccount` operationId).
	DisableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*DisableServiceAccountResponse, error)

	// EnableServiceAccountWithResponse Enable a Service account
	//
	// Makes a disabled Service account usable again; its tokens work again.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /service-accounts/{service_account_id}/enable (the `EnableServiceAccount` operationId).
	EnableServiceAccountWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*EnableServiceAccountResponse, error)

	// ListServiceAccountTokensWithResponse List tokens of a Service account
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /service-accounts/{service_account_id}/tokens (the `ListServiceAccountTokens` operationId).
	ListServiceAccountTokensWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, reqEditors ...RequestEditorFn) (*ListServiceAccountTokensResponse, error)

	// CreateServiceAccountTokenWithBodyWithResponse Create a Service account token
	//
	// Shows the token once. Web session only: a token can never mint another token.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
	CreateServiceAccountTokenWithBodyWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)

	// CreateServiceAccountTokenWithResponse Create a Service account token
	//
	// Shows the token once. Web session only: a token can never mint another token.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /service-accounts/{service_account_id}/tokens (the `CreateServiceAccountToken` operationId).
	CreateServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, body CreateServiceAccountTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountTokenResponse, error)

	// RevokeServiceAccountTokenWithResponse Revoke a Service account token
	//
	// Revokes the token at once. Web session only: a token can never revoke a token.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /service-accounts/{service_account_id}/tokens/{token_id} (the `RevokeServiceAccountToken` operationId).
	RevokeServiceAccountTokenWithResponse(ctx context.Context, serviceAccountId ServiceAccountId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeServiceAccountTokenResponse, error)

	// CreateSessionWithBodyWithResponse Sign in with a local account
	//
	// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /sessions (the `CreateSession` operationId).
	CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

	// CreateSessionWithResponse Sign in with a local account
	//
	// Creates a session cookie (`HttpOnly; Secure; SameSite=Lax`) and returns the CSRF token. If the user has TOTP and the request carries neither `totp_code` nor `recovery_code`, the session starts in the state `totp_required` and `POST /sessions/current/totp` completes it. Under a TOTP policy that covers a user without TOTP the state is `totp_enrolment_required`. A wrong login, password or code is `401` (`invalid_credentials`) without saying which one was wrong. Failed attempts slow down per account and per source address (`429` with `Retry-After`). A request a browser marks as cross-site (`Sec-Fetch-Site` set to `cross-site`) is refused with `403` (`csrf_invalid`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /sessions (the `CreateSession` operationId).
	CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

	// DeleteCurrentSessionWithResponse Sign out
	//
	// Ends the session, in any state.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /sessions/current (the `DeleteCurrentSession` operationId).
	DeleteCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCurrentSessionResponse, error)

	// GetCurrentSessionWithResponse Read the current session
	//
	// Returns the session in any state, including the CSRF token the SPA sends on mutating requests.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /sessions/current (the `GetCurrentSession` operationId).
	GetCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSessionResponse, error)

	// SubmitSessionTotpWithBodyWithResponse Give the second factor
	//
	// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
	SubmitSessionTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)

	// SubmitSessionTotpWithResponse Give the second factor
	//
	// Completes a session in the state `totp_required` with a current TOTP code or a single-use recovery code; works the same after a local and an OIDC sign-in. A wrong code is `401` (`invalid_credentials`) and slows down like a wrong password; `409` (`totp_not_pending`) when the session is not waiting for a code.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /sessions/current/totp (the `SubmitSessionTotp` operationId).
	SubmitSessionTotpWithResponse(ctx context.Context, body SubmitSessionTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitSessionTotpResponse, error)

	// CompleteOidcSignInWithResponse Complete OIDC sign-in
	//
	// Redirect target of the identity provider. Every outcome is a `302` to the SPA, so the browser never shows a raw error. On success it sets the session cookie (state `active`, or `totp_required` when the user has TOTP and the identity provider did not assert multi-factor authentication) and redirects to the `return_to` of the start or to `/`. The first sign-in of a new identity creates the user, with the login taken from `preferred_username`, else the email, else `sub`. Accounts are never merged by login or email; an identity reaches an existing account only by linking it from that account's profile (`startOidcLink`). A failure redirects to `/sign-in?error=<code>` with one of `no_access` (the person is in no mapped group; the Audit log records the groups from the claim), `login_taken` (a new identity's login belongs to an existing account; the page says "An account with this login already exists. Sign in with it and link OIDC in your profile.", and the Audit log records the refusal), `account_disabled`, `oidc_disabled`, `invalid_request` (bad or missing `state`, `code` or `nonce`) and `idp_error` (the identity provider or the back channel failed).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /sessions/oidc/callback (the `CompleteOidcSignIn` operationId).
	CompleteOidcSignInWithResponse(ctx context.Context, params *CompleteOidcSignInParams, reqEditors ...RequestEditorFn) (*CompleteOidcSignInResponse, error)

	// StartOidcSignInWithResponse Start OIDC sign-in
	//
	// Redirects the browser to the identity provider with PKCE (`S256`), `state` and `nonce`, all mandatory, requesting `openid` and the configured scopes, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when the IdP grants it, the offline token is stored on the user, encrypted, replacing the previous one. Muster exchanges the code itself through the back channel. The redirect URI to register at the identity provider is `MUSTER_PUBLIC_URL/api/v1/sessions/oidc/callback`. `409` (`oidc_not_enabled`) while OIDC is off.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /sessions/oidc/start (the `StartOidcSignIn` operationId).
	StartOidcSignInWithResponse(ctx context.Context, params *StartOidcSignInParams, reqEditors ...RequestEditorFn) (*StartOidcSignInResponse, error)

	// GetSignInOptionsWithResponse Read sign-in options
	//
	// Whether the sign-in page shows the OIDC button next to the local form. Local sign-in is always available; no setting turns it off. Carries no version or other detail about the installation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /sign-in-options (the `GetSignInOptions` operationId).
	GetSignInOptionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSignInOptionsResponse, error)

	// ListSnoozePresetsWithResponse List the ends of the Snooze presets
	//
	// The end that a Snooze with each Snooze preset would set now, in the order `tomorrow`, `week_start`, computed like the Snooze itself from `organization.workday_start` and `organization.week_start` on the business clock. The time zone is `time_zone` when given, else the profile time zone of the User the caller acts as, else the Organization's; the answer names the one it used. A time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/query/time_zone`. It reads and changes nothing else.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /snooze-presets (the `ListSnoozePresets` operationId).
	ListSnoozePresetsWithResponse(ctx context.Context, params *ListSnoozePresetsParams, reqEditors ...RequestEditorFn) (*ListSnoozePresetsResponse, error)

	// ListStoredSnapshotsWithResponse List Stored Snapshots
	//
	// Kept for `retention.stored_snapshots`. Replay is the CLI command `muster ingest replay`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /stored-snapshots (the `ListStoredSnapshots` operationId).
	ListStoredSnapshotsWithResponse(ctx context.Context, params *ListStoredSnapshotsParams, reqEditors ...RequestEditorFn) (*ListStoredSnapshotsResponse, error)

	// GetStoredSnapshotWithResponse Read a Stored Snapshot as received
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /stored-snapshots/{stored_snapshot_id} (the `GetStoredSnapshot` operationId).
	GetStoredSnapshotWithResponse(ctx context.Context, storedSnapshotId StoredSnapshotId, reqEditors ...RequestEditorFn) (*GetStoredSnapshotResponse, error)

	// ListSystemNoticesWithResponse List active Organization-wide notices
	//
	// "Recovering after downtime" for every signed-in user, "no replica is leading" for Admins. Changes arrive as `system-notices` hints.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /system-notices (the `ListSystemNotices` operationId).
	ListSystemNoticesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSystemNoticesResponse, error)

	// GetSystemStatusWithResponse Read the System status
	//
	// Read-only: replicas and the Leader with their key ids, the recovery state, delivery queues, Broken Destinations, Integrations with Heartbeat lost or truncated Snapshots, template errors, active Storms and the last outgoing heartbeat.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /system-status (the `GetSystemStatus` operationId).
	GetSystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSystemStatusResponse, error)

	// ListTeamLabelValuesWithResponse List values of the Team label without a Team
	//
	// The values of the Organization's Team label, with the Static labels of their Integrations, that Alerts last seen in the last `organization.team_values_window` carried and that name no Team that is not deleted, the most recently seen first and at most 500 values; `valid_slug` is false for a value outside `team.slug_format`, which reaches a Team only through a Team matcher.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /team-label-values (the `ListTeamLabelValues` operationId).
	ListTeamLabelValuesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTeamLabelValuesResponse, error)

	// ListTeamsWithResponse List Teams
	//
	// The Teams that are not deleted, by name. A Team grants no access of its own; every Role reads them.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams (the `ListTeams` operationId).
	ListTeamsWithResponse(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)

	// CreateTeamWithBodyWithResponse Create a Team
	//
	// The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

	// CreateTeamWithResponse Create a Team
	//
	// The name and the slug are each unique among the Teams that are not deleted (`409` `name_taken` or `slug_taken`); a slug outside `team.slug_format` is refused with `422` `invalid_format` at `/slug`, and Working hours that do not end later than they start with `422` `out_of_range` at `/working_hours/end`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

	// DeleteTeamWithResponse Delete a Team
	//
	// Removes the Team's people and Working hours and leaves the Routes and Destinations it owned without an owner, each with a new `version`; the Team stays, marked deleted, for what names it, and its slug is free at once. A Team that has Schedules or owns Escalation chains is refused with `409` `team_in_use`, which names them in `in_use_by`; its `chain_entries` are removed with it.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /teams/{team_id} (the `DeleteTeam` operationId).
	DeleteTeamWithResponse(ctx context.Context, teamId TeamId, params *DeleteTeamParams, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)

	// GetTeamWithResponse Read a Team
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{team_id} (the `GetTeam` operationId).
	GetTeamWithResponse(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)

	// UpdateTeamWithBodyWithResponse Update a Team
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).
	UpdateTeamWithBodyWithResponse(ctx context.Context, teamId TeamId, params *UpdateTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

	// UpdateTeamWithResponse Update a Team
	//
	// Replaces the writable fields. Requires `If-Match`; a stale ETag gets `412`. An omitted `description` keeps the stored one; `working_hours` is read only with `own_working_hours`, and an omitted one keeps the Team's own Working hours when it has them.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{team_id} (the `UpdateTeam` operationId).
	UpdateTeamWithResponse(ctx context.Context, teamId TeamId, params *UpdateTeamParams, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

	// ListTeamUsersWithResponse List the people in a Team
	//
	// Each person with their Role, how they are in the Team and the messengers they linked, by name. The complete list, not paginated.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{team_id}/users (the `ListTeamUsers` operationId).
	ListTeamUsersWithResponse(ctx context.Context, teamId TeamId, reqEditors ...RequestEditorFn) (*ListTeamUsersResponse, error)

	// AddTeamUserWithBodyWithResponse Add a person to a Team
	//
	// Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).
	AddTeamUserWithBodyWithResponse(ctx context.Context, teamId TeamId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTeamUserResponse, error)

	// AddTeamUserWithResponse Add a person to a Team
	//
	// Adds a User by hand (`by_hand`); a User may be in several Teams, and a disabled one may be added. A person in the Team through the identity provider gets the source `by_hand` too. A person already added by hand is answered with `200` and nothing changes. A User that does not exist or is deleted is refused with `422` `unknown_id` at `/user_id`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{team_id}/users (the `AddTeamUser` operationId).
	AddTeamUserWithResponse(ctx context.Context, teamId TeamId, body AddTeamUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTeamUserResponse, error)

	// RemoveTeamUserWithResponse Remove a person from a Team
	//
	// Takes away the source `by_hand` of a person in the Team. A person also in it through the identity provider stays in it with the source `idp`, until a later sign-in or re-check finds that no entry of the Team matches them. `404` when the User has no source `by_hand` in the Team, including a person who is in it only through the identity provider.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /teams/{team_id}/users/{user_id} (the `RemoveTeamUser` operationId).
	RemoveTeamUserWithResponse(ctx context.Context, teamId TeamId, userId UserId, reqEditors ...RequestEditorFn) (*RemoveTeamUserResponse, error)

	// PreviewTemplateWithBodyWithResponse Render a template against a sample
	//
	// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
	PreviewTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)

	// PreviewTemplateWithResponse Render a template against a sample
	//
	// Parses and renders a template in the sandbox against a recent Stored Snapshot, an Alert Group or a built-in example. Template errors are returned in `errors` with their position, not as a Problem, so an editor can show them next to the preview.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /template-previews (the `PreviewTemplate` operationId).
	PreviewTemplateWithResponse(ctx context.Context, body PreviewTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewTemplateResponse, error)

	// ListUserDirectoryWithResponse List users for pickers and filters
	//
	// Name, login and whether the user is deactivated, for the Owner filter, Mention settings and other pickers. Includes deleted users, because their acknowledgements stay visible. Available to everyone who reads Alert Groups, unlike `listUsers`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /user-directory (the `ListUserDirectory` operationId).
	ListUserDirectoryWithResponse(ctx context.Context, params *ListUserDirectoryParams, reqEditors ...RequestEditorFn) (*ListUserDirectoryResponse, error)

	// ListUsersWithResponse List users
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users (the `ListUsers` operationId).
	ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

	// CreateUserWithBodyWithResponse Create a local user
	//
	// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// CreateUserWithResponse Create a local user
	//
	// Returns a single-use password setup link; Muster sends no email. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// DeleteUserWithResponse Delete a user
	//
	// Deactivates and pseudonymizes: the name becomes `deleted-user-<id>`, the email is erased, sessions end, tokens are revoked, Account links are removed and the iCal feed is deleted. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_deleted`. Audit log rows are never changed. The last active Admin cannot be deleted (`409` `last_admin`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{user_id} (the `DeleteUser` operationId).
	DeleteUserWithResponse(ctx context.Context, userId UserId, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

	// GetUserWithResponse Read a user
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{user_id} (the `GetUser` operationId).
	GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

	// UpdateUserWithBodyWithResponse Update a user
	//
	// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
	UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// UpdateUserWithResponse Update a user
	//
	// Changes name, email and Role. A Role change ends the user's sessions. Refused with `409` (`role_locked`) for a Role change of an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, and with `409` (`last_admin`) when it would give the last active Admin a lower Role. A token may only assign a Role whose Permissions it holds itself (`422` `permission_not_held` at `/role`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /users/{user_id} (the `UpdateUser` operationId).
	UpdateUserWithResponse(ctx context.Context, userId UserId, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// ListUserAccountLinksWithResponse List a user's Account links
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{user_id}/account-links (the `ListUserAccountLinks` operationId).
	ListUserAccountLinksWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ListUserAccountLinksResponse, error)

	// DeleteUserAccountLinkWithResponse Remove a user's Account link
	//
	// Admins can remove any link but cannot create one for someone else. An Admin's own link is removed from the web session only; with a token the answer is `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{user_id}/account-links/{account_link_id} (the `DeleteUserAccountLink` operationId).
	DeleteUserAccountLinkWithResponse(ctx context.Context, userId UserId, accountLinkId AccountLinkId, reqEditors ...RequestEditorFn) (*DeleteUserAccountLinkResponse, error)

	// ConvertUserToLocalWithResponse Convert an OIDC account to local
	//
	// Removes the OIDC identity of an account that signs in through OIDC — created through OIDC or linked — and ends its sessions; the response carries a password setup link, as at user creation, and the Audit log records the conversion. The account keeps its TOTP enrolment and, once the password is set, signs in only with it. `409` with `oidc_not_linked` when the account does not sign in through OIDC.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{user_id}/convert-to-local (the `ConvertUserToLocal` operationId).
	ConvertUserToLocalWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ConvertUserToLocalResponse, error)

	// DisableUserWithResponse Disable a user
	//
	// Ends the user's sessions; tokens stop working until the user is enabled again. Every acknowledged Alert Group the user owns becomes firing without an Owner, with an `unacknowledged` Timeline entry by the system and the reason `owner_disabled`; enabling the user again gives no acknowledgement back. The last active Admin cannot be disabled (`409` `last_admin`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{user_id}/disable (the `DisableUser` operationId).
	DisableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*DisableUserResponse, error)

	// EnableUserWithResponse Enable a user
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{user_id}/enable (the `EnableUser` operationId).
	EnableUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*EnableUserResponse, error)

	// ListUserGatewayContactsWithResponse List a user's contacts at Notification gateways
	//
	// The contacts of a User with their state, confirmed or not; a deleted User has none (C-03.FR-13).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{user_id}/gateway-contacts (the `ListUserGatewayContacts` operationId).
	ListUserGatewayContactsWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ListUserGatewayContactsResponse, error)

	// CreateUserGatewayContactWithBodyWithResponse Set a user's contact (always refused)
	//
	// Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).
	CreateUserGatewayContactWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserGatewayContactResponse, error)

	// CreateUserGatewayContactWithResponse Set a user's contact (always refused)
	//
	// Declared so that the API says it: an Admin never sets a contact for another User, so that nobody can tie a contact to another person's User (C-30.FR-3, ADR-0013). It always answers `403` `forbidden` with the detail "Only the person sets their contact, from their own web session." and changes nothing, whatever the body.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{user_id}/gateway-contacts (the `CreateUserGatewayContact` operationId).
	CreateUserGatewayContactWithResponse(ctx context.Context, userId UserId, body CreateUserGatewayContactJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserGatewayContactResponse, error)

	// DeleteUserGatewayContactWithResponse Remove a user's contact at a Notification gateway
	//
	// Admins can remove any contact but never set one. Its codes stay, without the contact, and count toward `gateway.contact_code_requests` until they are pruned, as for `deleteMyGatewayContact`. Recorded in the Audit log as `gateway_contact.deleted`. An Admin's own contact is removed from the web session only; with a token the answer is `403` (`session_required`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{user_id}/gateway-contacts/{gateway_contact_id} (the `DeleteUserGatewayContact` operationId).
	DeleteUserGatewayContactWithResponse(ctx context.Context, userId UserId, gatewayContactId GatewayContactId, reqEditors ...RequestEditorFn) (*DeleteUserGatewayContactResponse, error)

	// RevokeUserIcalFeedWithResponse Revoke a user's iCal feed
	//
	// Revokes the user's personal iCal feed, for example after its link leaked. The link answers `404` at once on every replica, and the user can issue a new one (`issueMyIcalFeed`). `204` also when the user has no feed. Recorded in the Audit log as `ical_feed.revoked` with the reason `revoked_by_admin` when a feed existed. A deleted user is `404`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{user_id}/ical-feed (the `RevokeUserIcalFeed` operationId).
	RevokeUserIcalFeedWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*RevokeUserIcalFeedResponse, error)

	// GetUserNotificationRulesWithResponse Read a user's Notification rules
	//
	// The rules of a User, as `getMyNotificationRules` reads them for the caller (C-31.FR-4); a deleted User answers `404`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{user_id}/notification-rules (the `GetUserNotificationRules` operationId).
	GetUserNotificationRulesWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserNotificationRulesResponse, error)

	// UpdateUserNotificationRulesWithBodyWithResponse Change a user's Notification rules
	//
	// An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).
	UpdateUserNotificationRulesWithBodyWithResponse(ctx context.Context, userId UserId, params *UpdateUserNotificationRulesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserNotificationRulesResponse, error)

	// UpdateUserNotificationRulesWithResponse Change a user's Notification rules
	//
	// An Admin sets the state of a User's rules or their custom sequences (C-31.FR-4), as `updateMyNotificationRules` does for the caller, with the same checks: a call needs a confirmed contact of that User at its gateway. `state` `organization` is "Reset to the Organization's rules". Requires `If-Match` (`412` when stale). Recorded in the Audit log as `notification_rules.updated` with a before/after diff. A deleted User answers `404`. An Admin's own rules change from the web session only, as under `/me`: with a token the answer is `403` (`session_required`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /users/{user_id}/notification-rules (the `UpdateUserNotificationRules` operationId).
	UpdateUserNotificationRulesWithResponse(ctx context.Context, userId UserId, params *UpdateUserNotificationRulesParams, body UpdateUserNotificationRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserNotificationRulesResponse, error)

	// CreatePasswordSetupLinkWithResponse Issue a password setup link
	//
	// Valid for `auth.password_setup_link_ttl`, single use. Only for an account that signs in with a password (`409` `local_user_only` for an OIDC account; convert it with `convertUserToLocal`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{user_id}/password-setup-links (the `CreatePasswordSetupLink` operationId).
	CreatePasswordSetupLinkWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*CreatePasswordSetupLinkResponse, error)

	// ResetUserTotpWithResponse Reset a user's TOTP
	//
	// Audited. The user enrols again at the next sign-in if the policy requires it.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{user_id}/reset-totp (the `ResetUserTotp` operationId).
	ResetUserTotpWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*ResetUserTotpResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CommandName

type CommandName string

CommandName The Commands a caller may run on an Alert Group now (`allowed_commands`). `still_on_it` appears while a Reminder is pending and the caller is the Owner; `add_note` while the caller holds `alert-groups:note`. A Service account is never offered `acknowledge` or `still_on_it`.

const (
	CommandNameAcknowledge   CommandName = "acknowledge"
	CommandNameAddNote       CommandName = "add_note"
	CommandNameResolve       CommandName = "resolve"
	CommandNameSnooze        CommandName = "snooze"
	CommandNameStillOnIt     CommandName = "still_on_it"
	CommandNameUnacknowledge CommandName = "unacknowledge"
	CommandNameUnresolve     CommandName = "unresolve"
	CommandNameUnsnooze      CommandName = "unsnooze"
)

Defines values for CommandName.

func (CommandName) Valid

func (e CommandName) Valid() bool

Valid indicates whether the value is a known member of the CommandName enum.

type CommandOutcome

type CommandOutcome string

CommandOutcome `unchanged` for an idempotent repeat, such as Acknowledge by the current Owner.

const (
	CommandOutcomeDone      CommandOutcome = "done"
	CommandOutcomeUnchanged CommandOutcome = "unchanged"
)

Defines values for CommandOutcome.

func (CommandOutcome) Valid

func (e CommandOutcome) Valid() bool

Valid indicates whether the value is a known member of the CommandOutcome enum.

type CommandResult

type CommandResult struct {
	AlertGroup AlertGroup `json:"alert_group"`

	// Outcome `unchanged` for an idempotent repeat, such as Acknowledge by the current Owner.
	Outcome CommandOutcome `json:"outcome"`
}

CommandResult defines model for CommandResult.

type CompleteOidcLinkParams

type CompleteOidcLinkParams struct {
	// Code Authorization code.
	Code *string `form:"code,omitempty" json:"code,omitempty"`

	// State State issued by `startOidcLink`.
	State *string `form:"state,omitempty" json:"state,omitempty"`

	// Error Error reported by the identity provider.
	Error *string `form:"error,omitempty" json:"error,omitempty"`
}

CompleteOidcLinkParams defines parameters for CompleteOidcLink.

type CompleteOidcLinkResponse

type CompleteOidcLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers302 the parsed response headers for an HTTP 302 response
	Headers302 *CompleteOidcLinkResponse302Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CompleteOidcLinkResponse429Headers
}

func ParseCompleteOidcLinkResponse

func ParseCompleteOidcLinkResponse(rsp *http.Response) (*CompleteOidcLinkResponse, error)

ParseCompleteOidcLinkResponse parses an HTTP response from a CompleteOidcLinkWithResponse call

func (CompleteOidcLinkResponse) ContentType

func (r CompleteOidcLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CompleteOidcLinkResponse) GetApplicationproblemJSON429

func (r CompleteOidcLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CompleteOidcLinkResponse) GetBody

func (r CompleteOidcLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CompleteOidcLinkResponse) Status

func (r CompleteOidcLinkResponse) Status() string

Status returns HTTPResponse.Status

func (CompleteOidcLinkResponse) StatusCode

func (r CompleteOidcLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CompleteOidcLinkResponse302Headers

type CompleteOidcLinkResponse302Headers struct {
	Location *string
}

CompleteOidcLinkResponse302Headers the declared response headers of an HTTP 302 response for CompleteOidcLink

type CompleteOidcLinkResponse429Headers

type CompleteOidcLinkResponse429Headers struct {
	RetryAfter *int
}

CompleteOidcLinkResponse429Headers the declared response headers of an HTTP 429 response for CompleteOidcLink

type CompleteOidcSignInParams

type CompleteOidcSignInParams struct {
	// Code Authorization code.
	Code *string `form:"code,omitempty" json:"code,omitempty"`

	// State State issued by `startOidcSignIn`.
	State *string `form:"state,omitempty" json:"state,omitempty"`

	// Error Error reported by the identity provider.
	Error *string `form:"error,omitempty" json:"error,omitempty"`
}

CompleteOidcSignInParams defines parameters for CompleteOidcSignIn.

type CompleteOidcSignInResponse

type CompleteOidcSignInResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers302 the parsed response headers for an HTTP 302 response
	Headers302 *CompleteOidcSignInResponse302Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CompleteOidcSignInResponse429Headers
}

func ParseCompleteOidcSignInResponse

func ParseCompleteOidcSignInResponse(rsp *http.Response) (*CompleteOidcSignInResponse, error)

ParseCompleteOidcSignInResponse parses an HTTP response from a CompleteOidcSignInWithResponse call

func (CompleteOidcSignInResponse) ContentType

func (r CompleteOidcSignInResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CompleteOidcSignInResponse) GetApplicationproblemJSON429

func (r CompleteOidcSignInResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CompleteOidcSignInResponse) GetBody

func (r CompleteOidcSignInResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CompleteOidcSignInResponse) Status

Status returns HTTPResponse.Status

func (CompleteOidcSignInResponse) StatusCode

func (r CompleteOidcSignInResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CompleteOidcSignInResponse302Headers

type CompleteOidcSignInResponse302Headers struct {
	Location *string
}

CompleteOidcSignInResponse302Headers the declared response headers of an HTTP 302 response for CompleteOidcSignIn

type CompleteOidcSignInResponse429Headers

type CompleteOidcSignInResponse429Headers struct {
	RetryAfter *int
}

CompleteOidcSignInResponse429Headers the declared response headers of an HTTP 429 response for CompleteOidcSignIn

type CompletePasswordSetupJSONRequestBody

type CompletePasswordSetupJSONRequestBody = PasswordSetup

CompletePasswordSetupJSONRequestBody defines body for CompletePasswordSetup for application/json ContentType.

type CompletePasswordSetupResponse

type CompletePasswordSetupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON410 the response for an HTTP 410 `application/problem+json` response
	ApplicationproblemJSON410 *Gone
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CompletePasswordSetupResponse429Headers
}

func ParseCompletePasswordSetupResponse

func ParseCompletePasswordSetupResponse(rsp *http.Response) (*CompletePasswordSetupResponse, error)

ParseCompletePasswordSetupResponse parses an HTTP response from a CompletePasswordSetupWithResponse call

func (CompletePasswordSetupResponse) ContentType

func (r CompletePasswordSetupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CompletePasswordSetupResponse) GetApplicationproblemJSON400

func (r CompletePasswordSetupResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CompletePasswordSetupResponse) GetApplicationproblemJSON403

func (r CompletePasswordSetupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CompletePasswordSetupResponse) GetApplicationproblemJSON404

func (r CompletePasswordSetupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CompletePasswordSetupResponse) GetApplicationproblemJSON410

func (r CompletePasswordSetupResponse) GetApplicationproblemJSON410() *Gone

GetApplicationproblemJSON410 returns the response for an HTTP 410 `application/problem+json` response

func (CompletePasswordSetupResponse) GetApplicationproblemJSON422

func (r CompletePasswordSetupResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CompletePasswordSetupResponse) GetApplicationproblemJSON429

func (r CompletePasswordSetupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CompletePasswordSetupResponse) GetBody

func (r CompletePasswordSetupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CompletePasswordSetupResponse) Status

Status returns HTTPResponse.Status

func (CompletePasswordSetupResponse) StatusCode

func (r CompletePasswordSetupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CompletePasswordSetupResponse429Headers

type CompletePasswordSetupResponse429Headers struct {
	RetryAfter *int
}

CompletePasswordSetupResponse429Headers the declared response headers of an HTTP 429 response for CompletePasswordSetup

type ConfirmBridgeLinkJSONRequestBody

type ConfirmBridgeLinkJSONRequestBody = BridgeLinkConfirm

ConfirmBridgeLinkJSONRequestBody defines body for ConfirmBridgeLink for application/json ContentType.

type ConfirmBridgeLinkResponse

type ConfirmBridgeLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *AccountLink
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ConfirmBridgeLinkResponse429Headers
}

func ParseConfirmBridgeLinkResponse

func ParseConfirmBridgeLinkResponse(rsp *http.Response) (*ConfirmBridgeLinkResponse, error)

ParseConfirmBridgeLinkResponse parses an HTTP response from a ConfirmBridgeLinkWithResponse call

func (ConfirmBridgeLinkResponse) ContentType

func (r ConfirmBridgeLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON400

func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON401

func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON403

func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON404

func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON409

func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON422

func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ConfirmBridgeLinkResponse) GetApplicationproblemJSON429

func (r ConfirmBridgeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ConfirmBridgeLinkResponse) GetBody

func (r ConfirmBridgeLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ConfirmBridgeLinkResponse) GetJSON201

func (r ConfirmBridgeLinkResponse) GetJSON201() *AccountLink

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (ConfirmBridgeLinkResponse) Status

func (r ConfirmBridgeLinkResponse) Status() string

Status returns HTTPResponse.Status

func (ConfirmBridgeLinkResponse) StatusCode

func (r ConfirmBridgeLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConfirmBridgeLinkResponse429Headers

type ConfirmBridgeLinkResponse429Headers struct {
	RetryAfter *int
}

ConfirmBridgeLinkResponse429Headers the declared response headers of an HTTP 429 response for ConfirmBridgeLink

type ConfirmMattermostLinkJSONRequestBody

type ConfirmMattermostLinkJSONRequestBody = MattermostLinkConfirm

ConfirmMattermostLinkJSONRequestBody defines body for ConfirmMattermostLink for application/json ContentType.

type ConfirmMattermostLinkResponse

type ConfirmMattermostLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *AccountLink
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ConfirmMattermostLinkResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ConfirmMattermostLinkResponse503Headers
}

func ParseConfirmMattermostLinkResponse

func ParseConfirmMattermostLinkResponse(rsp *http.Response) (*ConfirmMattermostLinkResponse, error)

ParseConfirmMattermostLinkResponse parses an HTTP response from a ConfirmMattermostLinkWithResponse call

func (ConfirmMattermostLinkResponse) ContentType

func (r ConfirmMattermostLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON400

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON401

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON403

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON404

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON409

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON422

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON429

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetApplicationproblemJSON503

func (r ConfirmMattermostLinkResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ConfirmMattermostLinkResponse) GetBody

func (r ConfirmMattermostLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ConfirmMattermostLinkResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (ConfirmMattermostLinkResponse) Status

Status returns HTTPResponse.Status

func (ConfirmMattermostLinkResponse) StatusCode

func (r ConfirmMattermostLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConfirmMattermostLinkResponse429Headers

type ConfirmMattermostLinkResponse429Headers struct {
	RetryAfter *int
}

ConfirmMattermostLinkResponse429Headers the declared response headers of an HTTP 429 response for ConfirmMattermostLink

type ConfirmMattermostLinkResponse503Headers

type ConfirmMattermostLinkResponse503Headers struct {
	RetryAfter *int
}

ConfirmMattermostLinkResponse503Headers the declared response headers of an HTTP 503 response for ConfirmMattermostLink

type ConfirmMyGatewayContactJSONRequestBody

type ConfirmMyGatewayContactJSONRequestBody = GatewayContactConfirm

ConfirmMyGatewayContactJSONRequestBody defines body for ConfirmMyGatewayContact for application/json ContentType.

type ConfirmMyGatewayContactResponse

type ConfirmMyGatewayContactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GatewayContact
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ConfirmMyGatewayContactResponse429Headers
}

func ParseConfirmMyGatewayContactResponse

func ParseConfirmMyGatewayContactResponse(rsp *http.Response) (*ConfirmMyGatewayContactResponse, error)

ParseConfirmMyGatewayContactResponse parses an HTTP response from a ConfirmMyGatewayContactWithResponse call

func (ConfirmMyGatewayContactResponse) ContentType

func (r ConfirmMyGatewayContactResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConfirmMyGatewayContactResponse) GetApplicationproblemJSON400

func (r ConfirmMyGatewayContactResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ConfirmMyGatewayContactResponse) GetApplicationproblemJSON401

func (r ConfirmMyGatewayContactResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ConfirmMyGatewayContactResponse) GetApplicationproblemJSON403

func (r ConfirmMyGatewayContactResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ConfirmMyGatewayContactResponse) GetApplicationproblemJSON404

func (r ConfirmMyGatewayContactResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ConfirmMyGatewayContactResponse) GetApplicationproblemJSON422

func (r ConfirmMyGatewayContactResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ConfirmMyGatewayContactResponse) GetApplicationproblemJSON429

func (r ConfirmMyGatewayContactResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ConfirmMyGatewayContactResponse) GetBody

func (r ConfirmMyGatewayContactResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ConfirmMyGatewayContactResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ConfirmMyGatewayContactResponse) Status

Status returns HTTPResponse.Status

func (ConfirmMyGatewayContactResponse) StatusCode

func (r ConfirmMyGatewayContactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConfirmMyGatewayContactResponse429Headers

type ConfirmMyGatewayContactResponse429Headers struct {
	RetryAfter *int
}

ConfirmMyGatewayContactResponse429Headers the declared response headers of an HTTP 429 response for ConfirmMyGatewayContact

type ConfirmSlackLinkJSONRequestBody

type ConfirmSlackLinkJSONRequestBody = SlackLinkConfirm

ConfirmSlackLinkJSONRequestBody defines body for ConfirmSlackLink for application/json ContentType.

type ConfirmSlackLinkResponse

type ConfirmSlackLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *AccountLink
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ConfirmSlackLinkResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ConfirmSlackLinkResponse503Headers
}

func ParseConfirmSlackLinkResponse

func ParseConfirmSlackLinkResponse(rsp *http.Response) (*ConfirmSlackLinkResponse, error)

ParseConfirmSlackLinkResponse parses an HTTP response from a ConfirmSlackLinkWithResponse call

func (ConfirmSlackLinkResponse) ContentType

func (r ConfirmSlackLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON400

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON401

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON403

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON404

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON409

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON422

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON429

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetApplicationproblemJSON503

func (r ConfirmSlackLinkResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ConfirmSlackLinkResponse) GetBody

func (r ConfirmSlackLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ConfirmSlackLinkResponse) GetJSON201

func (r ConfirmSlackLinkResponse) GetJSON201() *AccountLink

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (ConfirmSlackLinkResponse) Status

func (r ConfirmSlackLinkResponse) Status() string

Status returns HTTPResponse.Status

func (ConfirmSlackLinkResponse) StatusCode

func (r ConfirmSlackLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConfirmSlackLinkResponse429Headers

type ConfirmSlackLinkResponse429Headers struct {
	RetryAfter *int
}

ConfirmSlackLinkResponse429Headers the declared response headers of an HTTP 429 response for ConfirmSlackLink

type ConfirmSlackLinkResponse503Headers

type ConfirmSlackLinkResponse503Headers struct {
	RetryAfter *int
}

ConfirmSlackLinkResponse503Headers the declared response headers of an HTTP 503 response for ConfirmSlackLink

type ConfirmTotpEnrolmentJSONRequestBody

type ConfirmTotpEnrolmentJSONRequestBody = TotpCode

ConfirmTotpEnrolmentJSONRequestBody defines body for ConfirmTotpEnrolment for application/json ContentType.

type ConfirmTotpEnrolmentResponse

type ConfirmTotpEnrolmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TotpRecoveryCodes
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ConfirmTotpEnrolmentResponse429Headers
}

func ParseConfirmTotpEnrolmentResponse

func ParseConfirmTotpEnrolmentResponse(rsp *http.Response) (*ConfirmTotpEnrolmentResponse, error)

ParseConfirmTotpEnrolmentResponse parses an HTTP response from a ConfirmTotpEnrolmentWithResponse call

func (ConfirmTotpEnrolmentResponse) ContentType

func (r ConfirmTotpEnrolmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON400

func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON401

func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON403

func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON409

func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON422

func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON429

func (r ConfirmTotpEnrolmentResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ConfirmTotpEnrolmentResponse) GetBody

func (r ConfirmTotpEnrolmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ConfirmTotpEnrolmentResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ConfirmTotpEnrolmentResponse) Status

Status returns HTTPResponse.Status

func (ConfirmTotpEnrolmentResponse) StatusCode

func (r ConfirmTotpEnrolmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConfirmTotpEnrolmentResponse429Headers

type ConfirmTotpEnrolmentResponse429Headers struct {
	RetryAfter *int
}

ConfirmTotpEnrolmentResponse429Headers the declared response headers of an HTTP 429 response for ConfirmTotpEnrolment

type Conflict

type Conflict = Problem

Conflict RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type Connection

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

Connection A Connection; `type` selects the variant.

func (Connection) AsBridgeConnection

func (t Connection) AsBridgeConnection() (BridgeConnection, error)

AsBridgeConnection returns the union data inside the Connection as a BridgeConnection

func (Connection) AsMattermostConnection

func (t Connection) AsMattermostConnection() (MattermostConnection, error)

AsMattermostConnection returns the union data inside the Connection as a MattermostConnection

func (Connection) AsSlackConnection

func (t Connection) AsSlackConnection() (SlackConnection, error)

AsSlackConnection returns the union data inside the Connection as a SlackConnection

func (Connection) AsTelegramConnection

func (t Connection) AsTelegramConnection() (TelegramConnection, error)

AsTelegramConnection returns the union data inside the Connection as a TelegramConnection

func (Connection) Discriminator

func (t Connection) Discriminator() (string, error)

func (*Connection) FromBridgeConnection

func (t *Connection) FromBridgeConnection(v BridgeConnection) error

FromBridgeConnection overwrites any union data inside the Connection as the provided BridgeConnection

func (*Connection) FromMattermostConnection

func (t *Connection) FromMattermostConnection(v MattermostConnection) error

FromMattermostConnection overwrites any union data inside the Connection as the provided MattermostConnection

func (*Connection) FromSlackConnection

func (t *Connection) FromSlackConnection(v SlackConnection) error

FromSlackConnection overwrites any union data inside the Connection as the provided SlackConnection

func (*Connection) FromTelegramConnection

func (t *Connection) FromTelegramConnection(v TelegramConnection) error

FromTelegramConnection overwrites any union data inside the Connection as the provided TelegramConnection

func (Connection) MarshalJSON

func (t Connection) MarshalJSON() ([]byte, error)

func (*Connection) MergeBridgeConnection

func (t *Connection) MergeBridgeConnection(v BridgeConnection) error

MergeBridgeConnection performs a merge with any union data inside the Connection, using the provided BridgeConnection

func (*Connection) MergeMattermostConnection

func (t *Connection) MergeMattermostConnection(v MattermostConnection) error

MergeMattermostConnection performs a merge with any union data inside the Connection, using the provided MattermostConnection

func (*Connection) MergeSlackConnection

func (t *Connection) MergeSlackConnection(v SlackConnection) error

MergeSlackConnection performs a merge with any union data inside the Connection, using the provided SlackConnection

func (*Connection) MergeTelegramConnection

func (t *Connection) MergeTelegramConnection(v TelegramConnection) error

MergeTelegramConnection performs a merge with any union data inside the Connection, using the provided TelegramConnection

func (*Connection) UnmarshalJSON

func (t *Connection) UnmarshalJSON(b []byte) error

func (Connection) ValueByDiscriminator

func (t Connection) ValueByDiscriminator() (interface{}, error)

type ConnectionChannelList

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

ConnectionChannelList The channels of a Connection's bot, by the Connection's type; only `SlackChannelList` has `truncated`.

func (ConnectionChannelList) AsMattermostChannelList

func (t ConnectionChannelList) AsMattermostChannelList() (MattermostChannelList, error)

AsMattermostChannelList returns the union data inside the ConnectionChannelList as a MattermostChannelList

func (ConnectionChannelList) AsSlackChannelList

func (t ConnectionChannelList) AsSlackChannelList() (SlackChannelList, error)

AsSlackChannelList returns the union data inside the ConnectionChannelList as a SlackChannelList

func (*ConnectionChannelList) FromMattermostChannelList

func (t *ConnectionChannelList) FromMattermostChannelList(v MattermostChannelList) error

FromMattermostChannelList overwrites any union data inside the ConnectionChannelList as the provided MattermostChannelList

func (*ConnectionChannelList) FromSlackChannelList

func (t *ConnectionChannelList) FromSlackChannelList(v SlackChannelList) error

FromSlackChannelList overwrites any union data inside the ConnectionChannelList as the provided SlackChannelList

func (ConnectionChannelList) MarshalJSON

func (t ConnectionChannelList) MarshalJSON() ([]byte, error)

func (*ConnectionChannelList) MergeMattermostChannelList

func (t *ConnectionChannelList) MergeMattermostChannelList(v MattermostChannelList) error

MergeMattermostChannelList performs a merge with any union data inside the ConnectionChannelList, using the provided MattermostChannelList

func (*ConnectionChannelList) MergeSlackChannelList

func (t *ConnectionChannelList) MergeSlackChannelList(v SlackChannelList) error

MergeSlackChannelList performs a merge with any union data inside the ConnectionChannelList, using the provided SlackChannelList

func (*ConnectionChannelList) UnmarshalJSON

func (t *ConnectionChannelList) UnmarshalJSON(b []byte) error

type ConnectionCheckOptionalScope

type ConnectionCheckOptionalScope struct {
	Present bool   `json:"present"`
	Scope   string `json:"scope"`
}

ConnectionCheckOptionalScope An optional scope of a Slack bot token and whether the token has it.

type ConnectionCheckRequest

type ConnectionCheckRequest struct {
	// BaseUrl An unsaved Telegram Bot API base URL. When set, only the dry probe runs against it, without the token: a stored token is sent only to the saved address of its Connection. Kept for API clients; `checkConnectionDraft` checks a draft with its token typed again.
	BaseUrl nullable.Nullable[string] `json:"base_url,omitempty"`
}

ConnectionCheckRequest defines model for ConnectionCheckRequest.

type ConnectionCheckResult

type ConnectionCheckResult struct {
	// BotName The bot's name or username.
	BotName nullable.Nullable[string] `json:"bot_name,omitempty"`

	// BotRoles Mattermost only. Set with the warning `press_answers_in_thread`, omitted otherwise — the system roles of the bot `bot_name` that Muster read from its user (`GET /api/v4/users/me`), none of which grants `create_post_ephemeral`, empty when the bot has none; clients name them with the bot, so that the operator sees which account the token belongs to.
	BotRoles *[]string `json:"bot_roles,omitempty"`

	// Info Bridge only. The `info` that the step `info` read, with the members of `BridgeInfo` — stored on the Connection by `checkConnection`, never by `checkConnectionDraft` —, null when that step failed or was skipped; omitted for the other types.
	Info           nullable.Nullable[BridgeInfo] `json:"info,omitempty"`
	Ok             bool                          `json:"ok"`
	PendingUpdates nullable.Nullable[int]        `json:"pending_updates,omitempty"`

	// RequestLogRun The check run of the requests this check made (`CR…`); `listRequestLog` with `run` lists them.
	RequestLogRun PublicId `json:"request_log_run"`

	// Slack Slack only. What the step `token` found — the workspace and the bot — and the app that the step `app_token` found, stored on the Connection by a passing `checkConnection`; null when `token` failed, and for the other types.
	Slack nullable.Nullable[SlackCheckInfo] `json:"slack,omitempty"`
	Steps []ConnectionCheckStep             `json:"steps"`

	// Warnings Hints that do not fail the check. `press_answers_in_thread` (Mattermost): none of the bot's roles, which `bot_roles` lists, grants `create_post_ephemeral`, so the bot `bot_name` may not make ephemeral messages and the answers to button presses show in the Thread of the Root message instead of the channel view; granting the bot account itself that permission, for example with the system admin role, shows them in the channel. `another_client_connected` (Slack, `socket` mode): the last `hello` counted another connection of the Slack app than the Leader's; presses are shared between them at random — use one Slack app for each Connection and share it with no other Connection or installation.
	Warnings []ConnectionCheckResultWarnings `json:"warnings"`

	// WebhookSet Telegram only. A set webhook makes long polling fail with 409.
	WebhookSet nullable.Nullable[bool] `json:"webhook_set,omitempty"`
}

ConnectionCheckResult defines model for ConnectionCheckResult.

type ConnectionCheckResultWarnings

type ConnectionCheckResultWarnings string

ConnectionCheckResultWarnings defines model for ConnectionCheckResult.Warnings.

const (
	AnotherClientConnected ConnectionCheckResultWarnings = "another_client_connected"
	PressAnswersInThread   ConnectionCheckResultWarnings = "press_answers_in_thread"
)

Defines values for ConnectionCheckResultWarnings.

func (ConnectionCheckResultWarnings) Valid

Valid indicates whether the value is a known member of the ConnectionCheckResultWarnings enum.

type ConnectionCheckStep

type ConnectionCheckStep struct {
	// Code What a step of the Connection check found, as a stable code that clients translate, with `message` as its detail in English; null when the step passed with nothing to say or was skipped. A step that failed: `token_invalid` — the messenger refused the bot token (`token`, `get_me`) or the bridge refused the token (`info`); for Slack, `token_invalid` — Slack refused the bot token or the app-level token (`token`, `app_token`), `wrong_token_type` — the bot token is not a bot's: Slack answered `not_allowed_token_type`, or `auth.test` named no `bot_id` (`token`), `missing_scope` — the bot token lacks scopes Muster needs, which `missing_scopes` lists and `message` names (`scopes`), `app_mismatch` — the app-level token belongs to another Slack app than the bot token (`app_token`), and `not_slack` — the address answered the dry probe, but not with Slack's JSON `{"ok":false, "error":"not_authed"}`; for the dry probe (`dry_probe`, without any token: Telegram `GET <base>/bot0:x/getMe`, Mattermost `GET <server>/api/v4/system/ping`, a Bridge `GET <base>/v1/info`, Slack `POST https://slack.com/api/auth.test`), `not_bot_api` — the address answered, but not as a Bot API (not JSON), `not_mattermost` — the address answered, but not as a Mattermost server (not JSON, or `200` JSON whose `status` is not `OK`), `not_bridge` — the address answered, but not with a problem of the Bridge protocol (`application/problem+json`), `wrong_path_prefix` — it answered 404, so the path prefix of the address is wrong, `unexpected_status` — it answered another status than the probe expects (`401` from a Bot API or a bridge, `200` from Mattermost or Slack) in the expected format; for `info`, `protocol_version_unknown` — the bridge speaks a protocol version this Muster does not, which `message` names, and `protocol_mismatch` — the answer does not match the protocol or is larger than 64 KiB, which `message` names; for `event_delivery`, `event_delivery_not_offered` — the bridge does not offer the Connection's event delivery mode; for any step, `dns_failed` — the host name does not resolve, `connect_failed` — no connection, or the answer could not be read, `tls_failed` — the TLS handshake failed, `timeout` — no answer in time, `proxy_refused` — the proxy refused its credentials, `blocked` — the outbound address policy refused the address, and `request_failed` — any other failure, such as an error answer, which `message` names (from a bridge, the problem's masked `detail`). A step that passed: `webhook_set` (`get_webhook_info`) — a webhook is set, and `message` names its host.
	Code nullable.Nullable[NullableConnectionCheckCode] `json:"code,omitempty"`

	// LatencyMs How long the step's request took; null for a step that made no request: one that was skipped, `event_delivery`, which only reads the info that the step `info` read, and `scopes`, which reads the header of the answer of `token`. The latency of `app_token` is that of its two requests together.
	LatencyMs nullable.Nullable[int] `json:"latency_ms,omitempty"`

	// Message What answered when the step failed, or what a step that passed found, in English; untrusted text where it comes from the remote side. Secrets, the Signing secret and tokens are masked. Clients translate `code` and show this text as its detail where it says more than the code's text.
	Message nullable.Nullable[string] `json:"message,omitempty"`

	// MissingScopes Set with the code `missing_scope` (Slack, step `scopes`), omitted otherwise — the scopes the bot token lacks, in the order Muster lists them, which clients name in their own words; `message` names them in English.
	MissingScopes *[]string `json:"missing_scopes,omitempty"`

	// Name The step: Mattermost `token` and `groups`, which reads the groups and passes whatever the server answers, its `message` saying when the server did not list them, or `dry_probe` and `token` for a draft; Telegram `dry_probe`, `get_me` and `get_webhook_info`; a Bridge `info` and `event_delivery`, or `dry_probe` before them for a draft; Slack `token`, `scopes` and, in `socket` mode, `app_token`, or `dry_probe` before them for a draft that may send no token — `POST https://slack.com/api/auth.test` without `Authorization`, which passes on a `200` JSON answer `ok: false` with the `error` `not_authed`.
	Name ConnectionCheckStepName `json:"name"`
	Ok   bool                    `json:"ok"`

	// OptionalScopes Set on the Slack step `scopes` once `token` passed, omitted otherwise — each scope the bot token may have and whether it has it; a missing one never fails the step (C-24.FR-2). `usergroups:read` is the one Team mentions and user group entries need.
	OptionalScopes *[]ConnectionCheckOptionalScope `json:"optional_scopes,omitempty"`
	Skipped        *bool                           `json:"skipped,omitempty"`

	// Via How the request travelled.
	Via *ConnectionPath `json:"via,omitempty"`
}

ConnectionCheckStep defines model for ConnectionCheckStep.

type ConnectionCheckStepName

type ConnectionCheckStepName string

ConnectionCheckStepName The step: Mattermost `token` and `groups`, which reads the groups and passes whatever the server answers, its `message` saying when the server did not list them, or `dry_probe` and `token` for a draft; Telegram `dry_probe`, `get_me` and `get_webhook_info`; a Bridge `info` and `event_delivery`, or `dry_probe` before them for a draft; Slack `token`, `scopes` and, in `socket` mode, `app_token`, or `dry_probe` before them for a draft that may send no token — `POST https://slack.com/api/auth.test` without `Authorization`, which passes on a `200` JSON answer `ok: false` with the `error` `not_authed`.

const (
	ConnectionCheckStepNameAppToken       ConnectionCheckStepName = "app_token"
	ConnectionCheckStepNameDryProbe       ConnectionCheckStepName = "dry_probe"
	ConnectionCheckStepNameEventDelivery  ConnectionCheckStepName = "event_delivery"
	ConnectionCheckStepNameGetMe          ConnectionCheckStepName = "get_me"
	ConnectionCheckStepNameGetWebhookInfo ConnectionCheckStepName = "get_webhook_info"
	ConnectionCheckStepNameGroups         ConnectionCheckStepName = "groups"
	ConnectionCheckStepNameInfo           ConnectionCheckStepName = "info"
	ConnectionCheckStepNameScopes         ConnectionCheckStepName = "scopes"
	ConnectionCheckStepNameToken          ConnectionCheckStepName = "token"
)

Defines values for ConnectionCheckStepName.

func (ConnectionCheckStepName) Valid

func (e ConnectionCheckStepName) Valid() bool

Valid indicates whether the value is a known member of the ConnectionCheckStepName enum.

type ConnectionDraft

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

ConnectionDraft A Connection as its form holds it before it is saved, for `checkConnectionDraft`; `type` selects the variant.

func (ConnectionDraft) AsBridgeConnectionDraft

func (t ConnectionDraft) AsBridgeConnectionDraft() (BridgeConnectionDraft, error)

AsBridgeConnectionDraft returns the union data inside the ConnectionDraft as a BridgeConnectionDraft

func (ConnectionDraft) AsMattermostConnectionDraft

func (t ConnectionDraft) AsMattermostConnectionDraft() (MattermostConnectionDraft, error)

AsMattermostConnectionDraft returns the union data inside the ConnectionDraft as a MattermostConnectionDraft

func (ConnectionDraft) AsSlackConnectionDraft

func (t ConnectionDraft) AsSlackConnectionDraft() (SlackConnectionDraft, error)

AsSlackConnectionDraft returns the union data inside the ConnectionDraft as a SlackConnectionDraft

func (ConnectionDraft) AsTelegramConnectionDraft

func (t ConnectionDraft) AsTelegramConnectionDraft() (TelegramConnectionDraft, error)

AsTelegramConnectionDraft returns the union data inside the ConnectionDraft as a TelegramConnectionDraft

func (ConnectionDraft) Discriminator

func (t ConnectionDraft) Discriminator() (string, error)

func (*ConnectionDraft) FromBridgeConnectionDraft

func (t *ConnectionDraft) FromBridgeConnectionDraft(v BridgeConnectionDraft) error

FromBridgeConnectionDraft overwrites any union data inside the ConnectionDraft as the provided BridgeConnectionDraft

func (*ConnectionDraft) FromMattermostConnectionDraft

func (t *ConnectionDraft) FromMattermostConnectionDraft(v MattermostConnectionDraft) error

FromMattermostConnectionDraft overwrites any union data inside the ConnectionDraft as the provided MattermostConnectionDraft

func (*ConnectionDraft) FromSlackConnectionDraft

func (t *ConnectionDraft) FromSlackConnectionDraft(v SlackConnectionDraft) error

FromSlackConnectionDraft overwrites any union data inside the ConnectionDraft as the provided SlackConnectionDraft

func (*ConnectionDraft) FromTelegramConnectionDraft

func (t *ConnectionDraft) FromTelegramConnectionDraft(v TelegramConnectionDraft) error

FromTelegramConnectionDraft overwrites any union data inside the ConnectionDraft as the provided TelegramConnectionDraft

func (ConnectionDraft) MarshalJSON

func (t ConnectionDraft) MarshalJSON() ([]byte, error)

func (*ConnectionDraft) MergeBridgeConnectionDraft

func (t *ConnectionDraft) MergeBridgeConnectionDraft(v BridgeConnectionDraft) error

MergeBridgeConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided BridgeConnectionDraft

func (*ConnectionDraft) MergeMattermostConnectionDraft

func (t *ConnectionDraft) MergeMattermostConnectionDraft(v MattermostConnectionDraft) error

MergeMattermostConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided MattermostConnectionDraft

func (*ConnectionDraft) MergeSlackConnectionDraft

func (t *ConnectionDraft) MergeSlackConnectionDraft(v SlackConnectionDraft) error

MergeSlackConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided SlackConnectionDraft

func (*ConnectionDraft) MergeTelegramConnectionDraft

func (t *ConnectionDraft) MergeTelegramConnectionDraft(v TelegramConnectionDraft) error

MergeTelegramConnectionDraft performs a merge with any union data inside the ConnectionDraft, using the provided TelegramConnectionDraft

func (*ConnectionDraft) UnmarshalJSON

func (t *ConnectionDraft) UnmarshalJSON(b []byte) error

func (ConnectionDraft) ValueByDiscriminator

func (t ConnectionDraft) ValueByDiscriminator() (interface{}, error)

type ConnectionGroup

type ConnectionGroup struct {
	DisplayName string `json:"display_name"`

	// Id The messenger's id of the group; a Slack user group's is the `group_id` of a Team mention.
	Id string `json:"id"`

	// MemberCount How many people are in the group; null when the messenger did not say.
	MemberCount nullable.Nullable[int] `json:"member_count"`

	// Name What a mention names, without `@`; the `group` of a Team mention.
	Name string `json:"name"`
}

ConnectionGroup A group a Connection can mention.

type ConnectionGroupList

type ConnectionGroupList struct {
	Items []ConnectionGroup `json:"items"`

	// Truncated More groups may exist than were read.
	Truncated bool `json:"truncated"`
}

ConnectionGroupList defines model for ConnectionGroupList.

type ConnectionId

type ConnectionId = PublicId

ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type ConnectionInput

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

ConnectionInput A Connection as written; `type` selects the variant and cannot change on update.

func (ConnectionInput) AsBridgeConnectionInput

func (t ConnectionInput) AsBridgeConnectionInput() (BridgeConnectionInput, error)

AsBridgeConnectionInput returns the union data inside the ConnectionInput as a BridgeConnectionInput

func (ConnectionInput) AsMattermostConnectionInput

func (t ConnectionInput) AsMattermostConnectionInput() (MattermostConnectionInput, error)

AsMattermostConnectionInput returns the union data inside the ConnectionInput as a MattermostConnectionInput

func (ConnectionInput) AsSlackConnectionInput

func (t ConnectionInput) AsSlackConnectionInput() (SlackConnectionInput, error)

AsSlackConnectionInput returns the union data inside the ConnectionInput as a SlackConnectionInput

func (ConnectionInput) AsTelegramConnectionInput

func (t ConnectionInput) AsTelegramConnectionInput() (TelegramConnectionInput, error)

AsTelegramConnectionInput returns the union data inside the ConnectionInput as a TelegramConnectionInput

func (ConnectionInput) Discriminator

func (t ConnectionInput) Discriminator() (string, error)

func (*ConnectionInput) FromBridgeConnectionInput

func (t *ConnectionInput) FromBridgeConnectionInput(v BridgeConnectionInput) error

FromBridgeConnectionInput overwrites any union data inside the ConnectionInput as the provided BridgeConnectionInput

func (*ConnectionInput) FromMattermostConnectionInput

func (t *ConnectionInput) FromMattermostConnectionInput(v MattermostConnectionInput) error

FromMattermostConnectionInput overwrites any union data inside the ConnectionInput as the provided MattermostConnectionInput

func (*ConnectionInput) FromSlackConnectionInput

func (t *ConnectionInput) FromSlackConnectionInput(v SlackConnectionInput) error

FromSlackConnectionInput overwrites any union data inside the ConnectionInput as the provided SlackConnectionInput

func (*ConnectionInput) FromTelegramConnectionInput

func (t *ConnectionInput) FromTelegramConnectionInput(v TelegramConnectionInput) error

FromTelegramConnectionInput overwrites any union data inside the ConnectionInput as the provided TelegramConnectionInput

func (ConnectionInput) MarshalJSON

func (t ConnectionInput) MarshalJSON() ([]byte, error)

func (*ConnectionInput) MergeBridgeConnectionInput

func (t *ConnectionInput) MergeBridgeConnectionInput(v BridgeConnectionInput) error

MergeBridgeConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided BridgeConnectionInput

func (*ConnectionInput) MergeMattermostConnectionInput

func (t *ConnectionInput) MergeMattermostConnectionInput(v MattermostConnectionInput) error

MergeMattermostConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided MattermostConnectionInput

func (*ConnectionInput) MergeSlackConnectionInput

func (t *ConnectionInput) MergeSlackConnectionInput(v SlackConnectionInput) error

MergeSlackConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided SlackConnectionInput

func (*ConnectionInput) MergeTelegramConnectionInput

func (t *ConnectionInput) MergeTelegramConnectionInput(v TelegramConnectionInput) error

MergeTelegramConnectionInput performs a merge with any union data inside the ConnectionInput, using the provided TelegramConnectionInput

func (*ConnectionInput) UnmarshalJSON

func (t *ConnectionInput) UnmarshalJSON(b []byte) error

func (ConnectionInput) ValueByDiscriminator

func (t ConnectionInput) ValueByDiscriminator() (interface{}, error)

type ConnectionList

type ConnectionList struct {
	Items      []Connection              `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

ConnectionList defines model for ConnectionList.

type ConnectionPath

type ConnectionPath string

ConnectionPath How the request travelled.

const (
	ConnectionPathDirect ConnectionPath = "direct"
	ConnectionPathProxy  ConnectionPath = "proxy"
)

Defines values for ConnectionPath.

func (ConnectionPath) Valid

func (e ConnectionPath) Valid() bool

Valid indicates whether the value is a known member of the ConnectionPath enum.

type ConnectionRef

type ConnectionRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId       `json:"id"`
	Name string         `json:"name"`
	Type ConnectionType `json:"type"`
}

ConnectionRef A Connection by name, with its type.

type ConnectionType

type ConnectionType string

ConnectionType defines model for ConnectionType.

const (
	ConnectionTypeBridge     ConnectionType = "bridge"
	ConnectionTypeMattermost ConnectionType = "mattermost"
	ConnectionTypeSlack      ConnectionType = "slack"
	ConnectionTypeTelegram   ConnectionType = "telegram"
)

Defines values for ConnectionType.

func (ConnectionType) Valid

func (e ConnectionType) Valid() bool

Valid indicates whether the value is a known member of the ConnectionType enum.

type ConvertUserToLocalResponse

type ConvertUserToLocalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserCreated
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ConvertUserToLocalResponse429Headers
}

func ParseConvertUserToLocalResponse

func ParseConvertUserToLocalResponse(rsp *http.Response) (*ConvertUserToLocalResponse, error)

ParseConvertUserToLocalResponse parses an HTTP response from a ConvertUserToLocalWithResponse call

func (ConvertUserToLocalResponse) ContentType

func (r ConvertUserToLocalResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ConvertUserToLocalResponse) GetApplicationproblemJSON401

func (r ConvertUserToLocalResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ConvertUserToLocalResponse) GetApplicationproblemJSON403

func (r ConvertUserToLocalResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ConvertUserToLocalResponse) GetApplicationproblemJSON404

func (r ConvertUserToLocalResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ConvertUserToLocalResponse) GetApplicationproblemJSON409

func (r ConvertUserToLocalResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ConvertUserToLocalResponse) GetApplicationproblemJSON429

func (r ConvertUserToLocalResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ConvertUserToLocalResponse) GetBody

func (r ConvertUserToLocalResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ConvertUserToLocalResponse) GetJSON200

func (r ConvertUserToLocalResponse) GetJSON200() *UserCreated

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ConvertUserToLocalResponse) Status

Status returns HTTPResponse.Status

func (ConvertUserToLocalResponse) StatusCode

func (r ConvertUserToLocalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConvertUserToLocalResponse429Headers

type ConvertUserToLocalResponse429Headers struct {
	RetryAfter *int
}

ConvertUserToLocalResponse429Headers the declared response headers of an HTTP 429 response for ConvertUserToLocal

type CreateAlertGroupNoteJSONRequestBody

type CreateAlertGroupNoteJSONRequestBody = NoteInput

CreateAlertGroupNoteJSONRequestBody defines body for CreateAlertGroupNote for application/json ContentType.

type CreateAlertGroupNoteResponse

type CreateAlertGroupNoteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Note
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateAlertGroupNoteResponse429Headers
}

func ParseCreateAlertGroupNoteResponse

func ParseCreateAlertGroupNoteResponse(rsp *http.Response) (*CreateAlertGroupNoteResponse, error)

ParseCreateAlertGroupNoteResponse parses an HTTP response from a CreateAlertGroupNoteWithResponse call

func (CreateAlertGroupNoteResponse) ContentType

func (r CreateAlertGroupNoteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON400

func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON401

func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON403

func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON404

func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON422

func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateAlertGroupNoteResponse) GetApplicationproblemJSON429

func (r CreateAlertGroupNoteResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateAlertGroupNoteResponse) GetBody

func (r CreateAlertGroupNoteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateAlertGroupNoteResponse) GetJSON201

func (r CreateAlertGroupNoteResponse) GetJSON201() *Note

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateAlertGroupNoteResponse) Status

Status returns HTTPResponse.Status

func (CreateAlertGroupNoteResponse) StatusCode

func (r CreateAlertGroupNoteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateAlertGroupNoteResponse429Headers

type CreateAlertGroupNoteResponse429Headers struct {
	RetryAfter *int
}

CreateAlertGroupNoteResponse429Headers the declared response headers of an HTTP 429 response for CreateAlertGroupNote

type CreateConnectionJSONRequestBody

type CreateConnectionJSONRequestBody = ConnectionInput

CreateConnectionJSONRequestBody defines body for CreateConnection for application/json ContentType.

type CreateConnectionResponse

type CreateConnectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Connection
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateConnectionResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateConnectionResponse429Headers
}

func ParseCreateConnectionResponse

func ParseCreateConnectionResponse(rsp *http.Response) (*CreateConnectionResponse, error)

ParseCreateConnectionResponse parses an HTTP response from a CreateConnectionWithResponse call

func (CreateConnectionResponse) ContentType

func (r CreateConnectionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateConnectionResponse) GetApplicationproblemJSON400

func (r CreateConnectionResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateConnectionResponse) GetApplicationproblemJSON401

func (r CreateConnectionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateConnectionResponse) GetApplicationproblemJSON403

func (r CreateConnectionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateConnectionResponse) GetApplicationproblemJSON409

func (r CreateConnectionResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateConnectionResponse) GetApplicationproblemJSON422

func (r CreateConnectionResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateConnectionResponse) GetApplicationproblemJSON429

func (r CreateConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateConnectionResponse) GetBody

func (r CreateConnectionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateConnectionResponse) GetJSON201

func (r CreateConnectionResponse) GetJSON201() *Connection

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateConnectionResponse) Status

func (r CreateConnectionResponse) Status() string

Status returns HTTPResponse.Status

func (CreateConnectionResponse) StatusCode

func (r CreateConnectionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateConnectionResponse201Headers

type CreateConnectionResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateConnectionResponse201Headers the declared response headers of an HTTP 201 response for CreateConnection

type CreateConnectionResponse429Headers

type CreateConnectionResponse429Headers struct {
	RetryAfter *int
}

CreateConnectionResponse429Headers the declared response headers of an HTTP 429 response for CreateConnection

type CreateDestinationJSONRequestBody

type CreateDestinationJSONRequestBody = DestinationInput

CreateDestinationJSONRequestBody defines body for CreateDestination for application/json ContentType.

type CreateDestinationResponse

type CreateDestinationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *DestinationCreated
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateDestinationResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateDestinationResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CreateDestinationResponse503Headers
}

func ParseCreateDestinationResponse

func ParseCreateDestinationResponse(rsp *http.Response) (*CreateDestinationResponse, error)

ParseCreateDestinationResponse parses an HTTP response from a CreateDestinationWithResponse call

func (CreateDestinationResponse) ContentType

func (r CreateDestinationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateDestinationResponse) GetApplicationproblemJSON400

func (r CreateDestinationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateDestinationResponse) GetApplicationproblemJSON401

func (r CreateDestinationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateDestinationResponse) GetApplicationproblemJSON403

func (r CreateDestinationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateDestinationResponse) GetApplicationproblemJSON409

func (r CreateDestinationResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateDestinationResponse) GetApplicationproblemJSON422

func (r CreateDestinationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateDestinationResponse) GetApplicationproblemJSON429

func (r CreateDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateDestinationResponse) GetApplicationproblemJSON503

func (r CreateDestinationResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CreateDestinationResponse) GetBody

func (r CreateDestinationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateDestinationResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateDestinationResponse) Status

func (r CreateDestinationResponse) Status() string

Status returns HTTPResponse.Status

func (CreateDestinationResponse) StatusCode

func (r CreateDestinationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateDestinationResponse201Headers

type CreateDestinationResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateDestinationResponse201Headers the declared response headers of an HTTP 201 response for CreateDestination

type CreateDestinationResponse429Headers

type CreateDestinationResponse429Headers struct {
	RetryAfter *int
}

CreateDestinationResponse429Headers the declared response headers of an HTTP 429 response for CreateDestination

type CreateDestinationResponse503Headers

type CreateDestinationResponse503Headers struct {
	RetryAfter *int
}

CreateDestinationResponse503Headers the declared response headers of an HTTP 503 response for CreateDestination

type CreateEscalationChainJSONRequestBody

type CreateEscalationChainJSONRequestBody = EscalationChainInput

CreateEscalationChainJSONRequestBody defines body for CreateEscalationChain for application/json ContentType.

type CreateEscalationChainResponse

type CreateEscalationChainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *EscalationChain
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateEscalationChainResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateEscalationChainResponse429Headers
}

func ParseCreateEscalationChainResponse

func ParseCreateEscalationChainResponse(rsp *http.Response) (*CreateEscalationChainResponse, error)

ParseCreateEscalationChainResponse parses an HTTP response from a CreateEscalationChainWithResponse call

func (CreateEscalationChainResponse) ContentType

func (r CreateEscalationChainResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateEscalationChainResponse) GetApplicationproblemJSON400

func (r CreateEscalationChainResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateEscalationChainResponse) GetApplicationproblemJSON401

func (r CreateEscalationChainResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateEscalationChainResponse) GetApplicationproblemJSON403

func (r CreateEscalationChainResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateEscalationChainResponse) GetApplicationproblemJSON409

func (r CreateEscalationChainResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateEscalationChainResponse) GetApplicationproblemJSON422

func (r CreateEscalationChainResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateEscalationChainResponse) GetApplicationproblemJSON429

func (r CreateEscalationChainResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateEscalationChainResponse) GetBody

func (r CreateEscalationChainResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateEscalationChainResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateEscalationChainResponse) Status

Status returns HTTPResponse.Status

func (CreateEscalationChainResponse) StatusCode

func (r CreateEscalationChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateEscalationChainResponse201Headers

type CreateEscalationChainResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateEscalationChainResponse201Headers the declared response headers of an HTTP 201 response for CreateEscalationChain

type CreateEscalationChainResponse429Headers

type CreateEscalationChainResponse429Headers struct {
	RetryAfter *int
}

CreateEscalationChainResponse429Headers the declared response headers of an HTTP 429 response for CreateEscalationChain

type CreateIntegrationJSONRequestBody

type CreateIntegrationJSONRequestBody = IntegrationInput

CreateIntegrationJSONRequestBody defines body for CreateIntegration for application/json ContentType.

type CreateIntegrationResponse

type CreateIntegrationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Integration
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateIntegrationResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateIntegrationResponse429Headers
}

func ParseCreateIntegrationResponse

func ParseCreateIntegrationResponse(rsp *http.Response) (*CreateIntegrationResponse, error)

ParseCreateIntegrationResponse parses an HTTP response from a CreateIntegrationWithResponse call

func (CreateIntegrationResponse) ContentType

func (r CreateIntegrationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateIntegrationResponse) GetApplicationproblemJSON400

func (r CreateIntegrationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateIntegrationResponse) GetApplicationproblemJSON401

func (r CreateIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateIntegrationResponse) GetApplicationproblemJSON403

func (r CreateIntegrationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateIntegrationResponse) GetApplicationproblemJSON409

func (r CreateIntegrationResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateIntegrationResponse) GetApplicationproblemJSON422

func (r CreateIntegrationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateIntegrationResponse) GetApplicationproblemJSON429

func (r CreateIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateIntegrationResponse) GetBody

func (r CreateIntegrationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateIntegrationResponse) GetJSON201

func (r CreateIntegrationResponse) GetJSON201() *Integration

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateIntegrationResponse) Status

func (r CreateIntegrationResponse) Status() string

Status returns HTTPResponse.Status

func (CreateIntegrationResponse) StatusCode

func (r CreateIntegrationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateIntegrationResponse201Headers

type CreateIntegrationResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateIntegrationResponse201Headers the declared response headers of an HTTP 201 response for CreateIntegration

type CreateIntegrationResponse429Headers

type CreateIntegrationResponse429Headers struct {
	RetryAfter *int
}

CreateIntegrationResponse429Headers the declared response headers of an HTTP 429 response for CreateIntegration

type CreateIntegrationTokenJSONRequestBody

type CreateIntegrationTokenJSONRequestBody = IntegrationTokenCreate

CreateIntegrationTokenJSONRequestBody defines body for CreateIntegrationToken for application/json ContentType.

type CreateIntegrationTokenResponse

type CreateIntegrationTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *IntegrationTokenCreated
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateIntegrationTokenResponse429Headers
}

func ParseCreateIntegrationTokenResponse

func ParseCreateIntegrationTokenResponse(rsp *http.Response) (*CreateIntegrationTokenResponse, error)

ParseCreateIntegrationTokenResponse parses an HTTP response from a CreateIntegrationTokenWithResponse call

func (CreateIntegrationTokenResponse) ContentType

func (r CreateIntegrationTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateIntegrationTokenResponse) GetApplicationproblemJSON400

func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateIntegrationTokenResponse) GetApplicationproblemJSON401

func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateIntegrationTokenResponse) GetApplicationproblemJSON403

func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateIntegrationTokenResponse) GetApplicationproblemJSON404

func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CreateIntegrationTokenResponse) GetApplicationproblemJSON409

func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateIntegrationTokenResponse) GetApplicationproblemJSON422

func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateIntegrationTokenResponse) GetApplicationproblemJSON429

func (r CreateIntegrationTokenResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateIntegrationTokenResponse) GetBody

func (r CreateIntegrationTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateIntegrationTokenResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateIntegrationTokenResponse) Status

Status returns HTTPResponse.Status

func (CreateIntegrationTokenResponse) StatusCode

func (r CreateIntegrationTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateIntegrationTokenResponse429Headers

type CreateIntegrationTokenResponse429Headers struct {
	RetryAfter *int
}

CreateIntegrationTokenResponse429Headers the declared response headers of an HTTP 429 response for CreateIntegrationToken

type CreateLinkRuleJSONRequestBody

type CreateLinkRuleJSONRequestBody = LinkRuleBase

CreateLinkRuleJSONRequestBody defines body for CreateLinkRule for application/json ContentType.

type CreateLinkRuleResponse

type CreateLinkRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *LinkRule
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateLinkRuleResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateLinkRuleResponse429Headers
}

func ParseCreateLinkRuleResponse

func ParseCreateLinkRuleResponse(rsp *http.Response) (*CreateLinkRuleResponse, error)

ParseCreateLinkRuleResponse parses an HTTP response from a CreateLinkRuleWithResponse call

func (CreateLinkRuleResponse) ContentType

func (r CreateLinkRuleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateLinkRuleResponse) GetApplicationproblemJSON400

func (r CreateLinkRuleResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateLinkRuleResponse) GetApplicationproblemJSON401

func (r CreateLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateLinkRuleResponse) GetApplicationproblemJSON403

func (r CreateLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateLinkRuleResponse) GetApplicationproblemJSON409

func (r CreateLinkRuleResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateLinkRuleResponse) GetApplicationproblemJSON422

func (r CreateLinkRuleResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateLinkRuleResponse) GetApplicationproblemJSON429

func (r CreateLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateLinkRuleResponse) GetBody

func (r CreateLinkRuleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateLinkRuleResponse) GetJSON201

func (r CreateLinkRuleResponse) GetJSON201() *LinkRule

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateLinkRuleResponse) Status

func (r CreateLinkRuleResponse) Status() string

Status returns HTTPResponse.Status

func (CreateLinkRuleResponse) StatusCode

func (r CreateLinkRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateLinkRuleResponse201Headers

type CreateLinkRuleResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateLinkRuleResponse201Headers the declared response headers of an HTTP 201 response for CreateLinkRule

type CreateLinkRuleResponse429Headers

type CreateLinkRuleResponse429Headers struct {
	RetryAfter *int
}

CreateLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for CreateLinkRule

type CreateLookupTableJSONRequestBody

type CreateLookupTableJSONRequestBody = LookupTableBase

CreateLookupTableJSONRequestBody defines body for CreateLookupTable for application/json ContentType.

type CreateLookupTableResponse

type CreateLookupTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *LookupTable
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateLookupTableResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateLookupTableResponse429Headers
}

func ParseCreateLookupTableResponse

func ParseCreateLookupTableResponse(rsp *http.Response) (*CreateLookupTableResponse, error)

ParseCreateLookupTableResponse parses an HTTP response from a CreateLookupTableWithResponse call

func (CreateLookupTableResponse) ContentType

func (r CreateLookupTableResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateLookupTableResponse) GetApplicationproblemJSON400

func (r CreateLookupTableResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateLookupTableResponse) GetApplicationproblemJSON401

func (r CreateLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateLookupTableResponse) GetApplicationproblemJSON403

func (r CreateLookupTableResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateLookupTableResponse) GetApplicationproblemJSON409

func (r CreateLookupTableResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateLookupTableResponse) GetApplicationproblemJSON422

func (r CreateLookupTableResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateLookupTableResponse) GetApplicationproblemJSON429

func (r CreateLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateLookupTableResponse) GetBody

func (r CreateLookupTableResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateLookupTableResponse) GetJSON201

func (r CreateLookupTableResponse) GetJSON201() *LookupTable

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateLookupTableResponse) Status

func (r CreateLookupTableResponse) Status() string

Status returns HTTPResponse.Status

func (CreateLookupTableResponse) StatusCode

func (r CreateLookupTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateLookupTableResponse201Headers

type CreateLookupTableResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateLookupTableResponse201Headers the declared response headers of an HTTP 201 response for CreateLookupTable

type CreateLookupTableResponse429Headers

type CreateLookupTableResponse429Headers struct {
	RetryAfter *int
}

CreateLookupTableResponse429Headers the declared response headers of an HTTP 429 response for CreateLookupTable

type CreateMyGatewayContactJSONRequestBody

type CreateMyGatewayContactJSONRequestBody = GatewayContactInput

CreateMyGatewayContactJSONRequestBody defines body for CreateMyGatewayContact for application/json ContentType.

type CreateMyGatewayContactResponse

type CreateMyGatewayContactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *GatewayContact
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
	ApplicationproblemJSON502 *GatewayRefused
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateMyGatewayContactResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CreateMyGatewayContactResponse503Headers
}

func ParseCreateMyGatewayContactResponse

func ParseCreateMyGatewayContactResponse(rsp *http.Response) (*CreateMyGatewayContactResponse, error)

ParseCreateMyGatewayContactResponse parses an HTTP response from a CreateMyGatewayContactWithResponse call

func (CreateMyGatewayContactResponse) ContentType

func (r CreateMyGatewayContactResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateMyGatewayContactResponse) GetApplicationproblemJSON400

func (r CreateMyGatewayContactResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateMyGatewayContactResponse) GetApplicationproblemJSON401

func (r CreateMyGatewayContactResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateMyGatewayContactResponse) GetApplicationproblemJSON403

func (r CreateMyGatewayContactResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateMyGatewayContactResponse) GetApplicationproblemJSON422

func (r CreateMyGatewayContactResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateMyGatewayContactResponse) GetApplicationproblemJSON429

func (r CreateMyGatewayContactResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateMyGatewayContactResponse) GetApplicationproblemJSON502

func (r CreateMyGatewayContactResponse) GetApplicationproblemJSON502() *GatewayRefused

GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response

func (CreateMyGatewayContactResponse) GetApplicationproblemJSON503

func (r CreateMyGatewayContactResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CreateMyGatewayContactResponse) GetBody

func (r CreateMyGatewayContactResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateMyGatewayContactResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (CreateMyGatewayContactResponse) Status

Status returns HTTPResponse.Status

func (CreateMyGatewayContactResponse) StatusCode

func (r CreateMyGatewayContactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMyGatewayContactResponse429Headers

type CreateMyGatewayContactResponse429Headers struct {
	RetryAfter *int
}

CreateMyGatewayContactResponse429Headers the declared response headers of an HTTP 429 response for CreateMyGatewayContact

type CreateMyGatewayContactResponse503Headers

type CreateMyGatewayContactResponse503Headers struct {
	RetryAfter *int
}

CreateMyGatewayContactResponse503Headers the declared response headers of an HTTP 503 response for CreateMyGatewayContact

type CreatePasswordSetupLinkResponse

type CreatePasswordSetupLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *PasswordSetupLink
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreatePasswordSetupLinkResponse429Headers
}

func ParseCreatePasswordSetupLinkResponse

func ParseCreatePasswordSetupLinkResponse(rsp *http.Response) (*CreatePasswordSetupLinkResponse, error)

ParseCreatePasswordSetupLinkResponse parses an HTTP response from a CreatePasswordSetupLinkWithResponse call

func (CreatePasswordSetupLinkResponse) ContentType

func (r CreatePasswordSetupLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON401

func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON403

func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON404

func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON409

func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreatePasswordSetupLinkResponse) GetApplicationproblemJSON429

func (r CreatePasswordSetupLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreatePasswordSetupLinkResponse) GetBody

func (r CreatePasswordSetupLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreatePasswordSetupLinkResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreatePasswordSetupLinkResponse) Status

Status returns HTTPResponse.Status

func (CreatePasswordSetupLinkResponse) StatusCode

func (r CreatePasswordSetupLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePasswordSetupLinkResponse429Headers

type CreatePasswordSetupLinkResponse429Headers struct {
	RetryAfter *int
}

CreatePasswordSetupLinkResponse429Headers the declared response headers of an HTTP 429 response for CreatePasswordSetupLink

type CreatePersonalAccessTokenJSONRequestBody

type CreatePersonalAccessTokenJSONRequestBody = PersonalAccessTokenCreate

CreatePersonalAccessTokenJSONRequestBody defines body for CreatePersonalAccessToken for application/json ContentType.

type CreatePersonalAccessTokenResponse

type CreatePersonalAccessTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *PersonalAccessTokenCreated
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreatePersonalAccessTokenResponse429Headers
}

func ParseCreatePersonalAccessTokenResponse

func ParseCreatePersonalAccessTokenResponse(rsp *http.Response) (*CreatePersonalAccessTokenResponse, error)

ParseCreatePersonalAccessTokenResponse parses an HTTP response from a CreatePersonalAccessTokenWithResponse call

func (CreatePersonalAccessTokenResponse) ContentType

func (r CreatePersonalAccessTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON400

func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON401

func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON403

func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON422

func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreatePersonalAccessTokenResponse) GetApplicationproblemJSON429

func (r CreatePersonalAccessTokenResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreatePersonalAccessTokenResponse) GetBody

GetBody returns the raw response body bytes

func (CreatePersonalAccessTokenResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreatePersonalAccessTokenResponse) Status

Status returns HTTPResponse.Status

func (CreatePersonalAccessTokenResponse) StatusCode

func (r CreatePersonalAccessTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePersonalAccessTokenResponse429Headers

type CreatePersonalAccessTokenResponse429Headers struct {
	RetryAfter *int
}

CreatePersonalAccessTokenResponse429Headers the declared response headers of an HTTP 429 response for CreatePersonalAccessToken

type CreateRouteJSONRequestBody

type CreateRouteJSONRequestBody = RouteInput

CreateRouteJSONRequestBody defines body for CreateRoute for application/json ContentType.

type CreateRouteResponse

type CreateRouteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Route
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateRouteResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateRouteResponse429Headers
}

func ParseCreateRouteResponse

func ParseCreateRouteResponse(rsp *http.Response) (*CreateRouteResponse, error)

ParseCreateRouteResponse parses an HTTP response from a CreateRouteWithResponse call

func (CreateRouteResponse) ContentType

func (r CreateRouteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateRouteResponse) GetApplicationproblemJSON400

func (r CreateRouteResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateRouteResponse) GetApplicationproblemJSON401

func (r CreateRouteResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateRouteResponse) GetApplicationproblemJSON403

func (r CreateRouteResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateRouteResponse) GetApplicationproblemJSON409

func (r CreateRouteResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateRouteResponse) GetApplicationproblemJSON422

func (r CreateRouteResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateRouteResponse) GetApplicationproblemJSON429

func (r CreateRouteResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateRouteResponse) GetBody

func (r CreateRouteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateRouteResponse) GetJSON201

func (r CreateRouteResponse) GetJSON201() *Route

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateRouteResponse) Status

func (r CreateRouteResponse) Status() string

Status returns HTTPResponse.Status

func (CreateRouteResponse) StatusCode

func (r CreateRouteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRouteResponse201Headers

type CreateRouteResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateRouteResponse201Headers the declared response headers of an HTTP 201 response for CreateRoute

type CreateRouteResponse429Headers

type CreateRouteResponse429Headers struct {
	RetryAfter *int
}

CreateRouteResponse429Headers the declared response headers of an HTTP 429 response for CreateRoute

type CreateScheduleJSONRequestBody

type CreateScheduleJSONRequestBody = ScheduleInput

CreateScheduleJSONRequestBody defines body for CreateSchedule for application/json ContentType.

type CreateScheduleOverrideJSONRequestBody

type CreateScheduleOverrideJSONRequestBody = ScheduleOverrideInput

CreateScheduleOverrideJSONRequestBody defines body for CreateScheduleOverride for application/json ContentType.

type CreateScheduleOverrideResponse

type CreateScheduleOverrideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *ScheduleOverride
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateScheduleOverrideResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateScheduleOverrideResponse429Headers
}

func ParseCreateScheduleOverrideResponse

func ParseCreateScheduleOverrideResponse(rsp *http.Response) (*CreateScheduleOverrideResponse, error)

ParseCreateScheduleOverrideResponse parses an HTTP response from a CreateScheduleOverrideWithResponse call

func (CreateScheduleOverrideResponse) ContentType

func (r CreateScheduleOverrideResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateScheduleOverrideResponse) GetApplicationproblemJSON400

func (r CreateScheduleOverrideResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateScheduleOverrideResponse) GetApplicationproblemJSON401

func (r CreateScheduleOverrideResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateScheduleOverrideResponse) GetApplicationproblemJSON403

func (r CreateScheduleOverrideResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateScheduleOverrideResponse) GetApplicationproblemJSON404

func (r CreateScheduleOverrideResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CreateScheduleOverrideResponse) GetApplicationproblemJSON409

func (r CreateScheduleOverrideResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateScheduleOverrideResponse) GetApplicationproblemJSON422

func (r CreateScheduleOverrideResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateScheduleOverrideResponse) GetApplicationproblemJSON429

func (r CreateScheduleOverrideResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateScheduleOverrideResponse) GetBody

func (r CreateScheduleOverrideResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateScheduleOverrideResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateScheduleOverrideResponse) Status

Status returns HTTPResponse.Status

func (CreateScheduleOverrideResponse) StatusCode

func (r CreateScheduleOverrideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateScheduleOverrideResponse201Headers

type CreateScheduleOverrideResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateScheduleOverrideResponse201Headers the declared response headers of an HTTP 201 response for CreateScheduleOverride

type CreateScheduleOverrideResponse429Headers

type CreateScheduleOverrideResponse429Headers struct {
	RetryAfter *int
}

CreateScheduleOverrideResponse429Headers the declared response headers of an HTTP 429 response for CreateScheduleOverride

type CreateScheduleResponse

type CreateScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Schedule
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateScheduleResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateScheduleResponse429Headers
}

func ParseCreateScheduleResponse

func ParseCreateScheduleResponse(rsp *http.Response) (*CreateScheduleResponse, error)

ParseCreateScheduleResponse parses an HTTP response from a CreateScheduleWithResponse call

func (CreateScheduleResponse) ContentType

func (r CreateScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateScheduleResponse) GetApplicationproblemJSON400

func (r CreateScheduleResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateScheduleResponse) GetApplicationproblemJSON401

func (r CreateScheduleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateScheduleResponse) GetApplicationproblemJSON403

func (r CreateScheduleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateScheduleResponse) GetApplicationproblemJSON409

func (r CreateScheduleResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateScheduleResponse) GetApplicationproblemJSON422

func (r CreateScheduleResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateScheduleResponse) GetApplicationproblemJSON429

func (r CreateScheduleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateScheduleResponse) GetBody

func (r CreateScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateScheduleResponse) GetJSON201

func (r CreateScheduleResponse) GetJSON201() *Schedule

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateScheduleResponse) Status

func (r CreateScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (CreateScheduleResponse) StatusCode

func (r CreateScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateScheduleResponse201Headers

type CreateScheduleResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateScheduleResponse201Headers the declared response headers of an HTTP 201 response for CreateSchedule

type CreateScheduleResponse429Headers

type CreateScheduleResponse429Headers struct {
	RetryAfter *int
}

CreateScheduleResponse429Headers the declared response headers of an HTTP 429 response for CreateSchedule

type CreateServiceAccountJSONRequestBody

type CreateServiceAccountJSONRequestBody = ServiceAccountInput

CreateServiceAccountJSONRequestBody defines body for CreateServiceAccount for application/json ContentType.

type CreateServiceAccountResponse

type CreateServiceAccountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *ServiceAccount
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateServiceAccountResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateServiceAccountResponse429Headers
}

func ParseCreateServiceAccountResponse

func ParseCreateServiceAccountResponse(rsp *http.Response) (*CreateServiceAccountResponse, error)

ParseCreateServiceAccountResponse parses an HTTP response from a CreateServiceAccountWithResponse call

func (CreateServiceAccountResponse) ContentType

func (r CreateServiceAccountResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateServiceAccountResponse) GetApplicationproblemJSON400

func (r CreateServiceAccountResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateServiceAccountResponse) GetApplicationproblemJSON401

func (r CreateServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateServiceAccountResponse) GetApplicationproblemJSON403

func (r CreateServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateServiceAccountResponse) GetApplicationproblemJSON409

func (r CreateServiceAccountResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateServiceAccountResponse) GetApplicationproblemJSON422

func (r CreateServiceAccountResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateServiceAccountResponse) GetApplicationproblemJSON429

func (r CreateServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateServiceAccountResponse) GetBody

func (r CreateServiceAccountResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateServiceAccountResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateServiceAccountResponse) Status

Status returns HTTPResponse.Status

func (CreateServiceAccountResponse) StatusCode

func (r CreateServiceAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceAccountResponse201Headers

type CreateServiceAccountResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateServiceAccountResponse201Headers the declared response headers of an HTTP 201 response for CreateServiceAccount

type CreateServiceAccountResponse429Headers

type CreateServiceAccountResponse429Headers struct {
	RetryAfter *int
}

CreateServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for CreateServiceAccount

type CreateServiceAccountTokenJSONRequestBody

type CreateServiceAccountTokenJSONRequestBody = ServiceAccountTokenCreate

CreateServiceAccountTokenJSONRequestBody defines body for CreateServiceAccountToken for application/json ContentType.

type CreateServiceAccountTokenResponse

type CreateServiceAccountTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *ServiceAccountTokenCreated
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateServiceAccountTokenResponse429Headers
}

func ParseCreateServiceAccountTokenResponse

func ParseCreateServiceAccountTokenResponse(rsp *http.Response) (*CreateServiceAccountTokenResponse, error)

ParseCreateServiceAccountTokenResponse parses an HTTP response from a CreateServiceAccountTokenWithResponse call

func (CreateServiceAccountTokenResponse) ContentType

func (r CreateServiceAccountTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON400

func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON401

func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON403

func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON404

func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON422

func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateServiceAccountTokenResponse) GetApplicationproblemJSON429

func (r CreateServiceAccountTokenResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateServiceAccountTokenResponse) GetBody

GetBody returns the raw response body bytes

func (CreateServiceAccountTokenResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateServiceAccountTokenResponse) Status

Status returns HTTPResponse.Status

func (CreateServiceAccountTokenResponse) StatusCode

func (r CreateServiceAccountTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceAccountTokenResponse429Headers

type CreateServiceAccountTokenResponse429Headers struct {
	RetryAfter *int
}

CreateServiceAccountTokenResponse429Headers the declared response headers of an HTTP 429 response for CreateServiceAccountToken

type CreateSessionJSONRequestBody

type CreateSessionJSONRequestBody = SessionCreate

CreateSessionJSONRequestBody defines body for CreateSession for application/json ContentType.

type CreateSessionResponse

type CreateSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Session
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateSessionResponse429Headers
}

func ParseCreateSessionResponse

func ParseCreateSessionResponse(rsp *http.Response) (*CreateSessionResponse, error)

ParseCreateSessionResponse parses an HTTP response from a CreateSessionWithResponse call

func (CreateSessionResponse) ContentType

func (r CreateSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateSessionResponse) GetApplicationproblemJSON400

func (r CreateSessionResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateSessionResponse) GetApplicationproblemJSON401

func (r CreateSessionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateSessionResponse) GetApplicationproblemJSON403

func (r CreateSessionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateSessionResponse) GetApplicationproblemJSON429

func (r CreateSessionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateSessionResponse) GetBody

func (r CreateSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateSessionResponse) GetJSON201

func (r CreateSessionResponse) GetJSON201() *Session

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateSessionResponse) Status

func (r CreateSessionResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSessionResponse) StatusCode

func (r CreateSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSessionResponse429Headers

type CreateSessionResponse429Headers struct {
	RetryAfter *int
}

CreateSessionResponse429Headers the declared response headers of an HTTP 429 response for CreateSession

type CreateTeamJSONRequestBody

type CreateTeamJSONRequestBody = TeamInput

CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType.

type CreateTeamResponse

type CreateTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Team
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateTeamResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateTeamResponse429Headers
}

func ParseCreateTeamResponse

func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error)

ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call

func (CreateTeamResponse) ContentType

func (r CreateTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateTeamResponse) GetApplicationproblemJSON400

func (r CreateTeamResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateTeamResponse) GetApplicationproblemJSON401

func (r CreateTeamResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateTeamResponse) GetApplicationproblemJSON403

func (r CreateTeamResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateTeamResponse) GetApplicationproblemJSON409

func (r CreateTeamResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateTeamResponse) GetApplicationproblemJSON422

func (r CreateTeamResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateTeamResponse) GetApplicationproblemJSON429

func (r CreateTeamResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateTeamResponse) GetBody

func (r CreateTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateTeamResponse) GetJSON201

func (r CreateTeamResponse) GetJSON201() *Team

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateTeamResponse) Status

func (r CreateTeamResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTeamResponse) StatusCode

func (r CreateTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTeamResponse201Headers

type CreateTeamResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateTeamResponse201Headers the declared response headers of an HTTP 201 response for CreateTeam

type CreateTeamResponse429Headers

type CreateTeamResponse429Headers struct {
	RetryAfter *int
}

CreateTeamResponse429Headers the declared response headers of an HTTP 429 response for CreateTeam

type CreateUserGatewayContactJSONBody

type CreateUserGatewayContactJSONBody = map[string]interface{}

CreateUserGatewayContactJSONBody defines parameters for CreateUserGatewayContact.

type CreateUserGatewayContactJSONRequestBody

type CreateUserGatewayContactJSONRequestBody = CreateUserGatewayContactJSONBody

CreateUserGatewayContactJSONRequestBody defines body for CreateUserGatewayContact for application/json ContentType.

type CreateUserGatewayContactResponse

type CreateUserGatewayContactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateUserGatewayContactResponse429Headers
}

func ParseCreateUserGatewayContactResponse

func ParseCreateUserGatewayContactResponse(rsp *http.Response) (*CreateUserGatewayContactResponse, error)

ParseCreateUserGatewayContactResponse parses an HTTP response from a CreateUserGatewayContactWithResponse call

func (CreateUserGatewayContactResponse) ContentType

func (r CreateUserGatewayContactResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateUserGatewayContactResponse) GetApplicationproblemJSON401

func (r CreateUserGatewayContactResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateUserGatewayContactResponse) GetApplicationproblemJSON403

func (r CreateUserGatewayContactResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateUserGatewayContactResponse) GetApplicationproblemJSON429

func (r CreateUserGatewayContactResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateUserGatewayContactResponse) GetBody

func (r CreateUserGatewayContactResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateUserGatewayContactResponse) Status

Status returns HTTPResponse.Status

func (CreateUserGatewayContactResponse) StatusCode

func (r CreateUserGatewayContactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserGatewayContactResponse429Headers

type CreateUserGatewayContactResponse429Headers struct {
	RetryAfter *int
}

CreateUserGatewayContactResponse429Headers the declared response headers of an HTTP 429 response for CreateUserGatewayContact

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody = UserCreate

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserResponse

type CreateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *UserCreated
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateUserResponse201Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateUserResponse429Headers
}

func ParseCreateUserResponse

func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)

ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call

func (CreateUserResponse) ContentType

func (r CreateUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateUserResponse) GetApplicationproblemJSON400

func (r CreateUserResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateUserResponse) GetApplicationproblemJSON401

func (r CreateUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateUserResponse) GetApplicationproblemJSON403

func (r CreateUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateUserResponse) GetApplicationproblemJSON409

func (r CreateUserResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateUserResponse) GetApplicationproblemJSON422

func (r CreateUserResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateUserResponse) GetApplicationproblemJSON429

func (r CreateUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateUserResponse) GetBody

func (r CreateUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateUserResponse) GetJSON201

func (r CreateUserResponse) GetJSON201() *UserCreated

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateUserResponse) Status

func (r CreateUserResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserResponse) StatusCode

func (r CreateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserResponse201Headers

type CreateUserResponse201Headers struct {
	ETag     *string
	Location *string
}

CreateUserResponse201Headers the declared response headers of an HTTP 201 response for CreateUser

type CreateUserResponse429Headers

type CreateUserResponse429Headers struct {
	RetryAfter *int
}

CreateUserResponse429Headers the declared response headers of an HTTP 429 response for CreateUser

type Cursor

type Cursor = string

Cursor defines model for Cursor.

type DeleteConnectionParams

type DeleteConnectionParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteConnectionParams defines parameters for DeleteConnection.

type DeleteConnectionResponse

type DeleteConnectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteConnectionResponse429Headers
}

func ParseDeleteConnectionResponse

func ParseDeleteConnectionResponse(rsp *http.Response) (*DeleteConnectionResponse, error)

ParseDeleteConnectionResponse parses an HTTP response from a DeleteConnectionWithResponse call

func (DeleteConnectionResponse) ContentType

func (r DeleteConnectionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteConnectionResponse) GetApplicationproblemJSON401

func (r DeleteConnectionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteConnectionResponse) GetApplicationproblemJSON403

func (r DeleteConnectionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteConnectionResponse) GetApplicationproblemJSON404

func (r DeleteConnectionResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteConnectionResponse) GetApplicationproblemJSON409

func (r DeleteConnectionResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteConnectionResponse) GetApplicationproblemJSON412

func (r DeleteConnectionResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteConnectionResponse) GetApplicationproblemJSON429

func (r DeleteConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteConnectionResponse) GetBody

func (r DeleteConnectionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteConnectionResponse) Status

func (r DeleteConnectionResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteConnectionResponse) StatusCode

func (r DeleteConnectionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteConnectionResponse429Headers

type DeleteConnectionResponse429Headers struct {
	RetryAfter *int
}

DeleteConnectionResponse429Headers the declared response headers of an HTTP 429 response for DeleteConnection

type DeleteCurrentSessionResponse

type DeleteCurrentSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteCurrentSessionResponse429Headers
}

func ParseDeleteCurrentSessionResponse

func ParseDeleteCurrentSessionResponse(rsp *http.Response) (*DeleteCurrentSessionResponse, error)

ParseDeleteCurrentSessionResponse parses an HTTP response from a DeleteCurrentSessionWithResponse call

func (DeleteCurrentSessionResponse) ContentType

func (r DeleteCurrentSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteCurrentSessionResponse) GetApplicationproblemJSON401

func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteCurrentSessionResponse) GetApplicationproblemJSON403

func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteCurrentSessionResponse) GetApplicationproblemJSON429

func (r DeleteCurrentSessionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteCurrentSessionResponse) GetBody

func (r DeleteCurrentSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteCurrentSessionResponse) Status

Status returns HTTPResponse.Status

func (DeleteCurrentSessionResponse) StatusCode

func (r DeleteCurrentSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCurrentSessionResponse429Headers

type DeleteCurrentSessionResponse429Headers struct {
	RetryAfter *int
}

DeleteCurrentSessionResponse429Headers the declared response headers of an HTTP 429 response for DeleteCurrentSession

type DeleteDestinationParams

type DeleteDestinationParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteDestinationParams defines parameters for DeleteDestination.

type DeleteDestinationResponse

type DeleteDestinationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteDestinationResponse429Headers
}

func ParseDeleteDestinationResponse

func ParseDeleteDestinationResponse(rsp *http.Response) (*DeleteDestinationResponse, error)

ParseDeleteDestinationResponse parses an HTTP response from a DeleteDestinationWithResponse call

func (DeleteDestinationResponse) ContentType

func (r DeleteDestinationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteDestinationResponse) GetApplicationproblemJSON401

func (r DeleteDestinationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteDestinationResponse) GetApplicationproblemJSON403

func (r DeleteDestinationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteDestinationResponse) GetApplicationproblemJSON404

func (r DeleteDestinationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteDestinationResponse) GetApplicationproblemJSON412

func (r DeleteDestinationResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteDestinationResponse) GetApplicationproblemJSON429

func (r DeleteDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteDestinationResponse) GetBody

func (r DeleteDestinationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteDestinationResponse) Status

func (r DeleteDestinationResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteDestinationResponse) StatusCode

func (r DeleteDestinationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDestinationResponse429Headers

type DeleteDestinationResponse429Headers struct {
	RetryAfter *int
}

DeleteDestinationResponse429Headers the declared response headers of an HTTP 429 response for DeleteDestination

type DeleteDestinationSecretParams

type DeleteDestinationSecretParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteDestinationSecretParams defines parameters for DeleteDestinationSecret.

type DeleteDestinationSecretResponse

type DeleteDestinationSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteDestinationSecretResponse429Headers
}

func ParseDeleteDestinationSecretResponse

func ParseDeleteDestinationSecretResponse(rsp *http.Response) (*DeleteDestinationSecretResponse, error)

ParseDeleteDestinationSecretResponse parses an HTTP response from a DeleteDestinationSecretWithResponse call

func (DeleteDestinationSecretResponse) ContentType

func (r DeleteDestinationSecretResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteDestinationSecretResponse) GetApplicationproblemJSON401

func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteDestinationSecretResponse) GetApplicationproblemJSON403

func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteDestinationSecretResponse) GetApplicationproblemJSON404

func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteDestinationSecretResponse) GetApplicationproblemJSON409

func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteDestinationSecretResponse) GetApplicationproblemJSON412

func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteDestinationSecretResponse) GetApplicationproblemJSON429

func (r DeleteDestinationSecretResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteDestinationSecretResponse) GetBody

func (r DeleteDestinationSecretResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteDestinationSecretResponse) Status

Status returns HTTPResponse.Status

func (DeleteDestinationSecretResponse) StatusCode

func (r DeleteDestinationSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDestinationSecretResponse429Headers

type DeleteDestinationSecretResponse429Headers struct {
	RetryAfter *int
}

DeleteDestinationSecretResponse429Headers the declared response headers of an HTTP 429 response for DeleteDestinationSecret

type DeleteEscalationChainParams

type DeleteEscalationChainParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteEscalationChainParams defines parameters for DeleteEscalationChain.

type DeleteEscalationChainResponse

type DeleteEscalationChainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteEscalationChainResponse429Headers
}

func ParseDeleteEscalationChainResponse

func ParseDeleteEscalationChainResponse(rsp *http.Response) (*DeleteEscalationChainResponse, error)

ParseDeleteEscalationChainResponse parses an HTTP response from a DeleteEscalationChainWithResponse call

func (DeleteEscalationChainResponse) ContentType

func (r DeleteEscalationChainResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteEscalationChainResponse) GetApplicationproblemJSON401

func (r DeleteEscalationChainResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteEscalationChainResponse) GetApplicationproblemJSON403

func (r DeleteEscalationChainResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteEscalationChainResponse) GetApplicationproblemJSON404

func (r DeleteEscalationChainResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteEscalationChainResponse) GetApplicationproblemJSON409

func (r DeleteEscalationChainResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteEscalationChainResponse) GetApplicationproblemJSON412

func (r DeleteEscalationChainResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteEscalationChainResponse) GetApplicationproblemJSON429

func (r DeleteEscalationChainResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteEscalationChainResponse) GetBody

func (r DeleteEscalationChainResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteEscalationChainResponse) Status

Status returns HTTPResponse.Status

func (DeleteEscalationChainResponse) StatusCode

func (r DeleteEscalationChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteEscalationChainResponse429Headers

type DeleteEscalationChainResponse429Headers struct {
	RetryAfter *int
}

DeleteEscalationChainResponse429Headers the declared response headers of an HTTP 429 response for DeleteEscalationChain

type DeleteIntegrationParams

type DeleteIntegrationParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteIntegrationParams defines parameters for DeleteIntegration.

type DeleteIntegrationResponse

type DeleteIntegrationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteIntegrationResponse429Headers
}

func ParseDeleteIntegrationResponse

func ParseDeleteIntegrationResponse(rsp *http.Response) (*DeleteIntegrationResponse, error)

ParseDeleteIntegrationResponse parses an HTTP response from a DeleteIntegrationWithResponse call

func (DeleteIntegrationResponse) ContentType

func (r DeleteIntegrationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteIntegrationResponse) GetApplicationproblemJSON401

func (r DeleteIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteIntegrationResponse) GetApplicationproblemJSON403

func (r DeleteIntegrationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteIntegrationResponse) GetApplicationproblemJSON404

func (r DeleteIntegrationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteIntegrationResponse) GetApplicationproblemJSON409

func (r DeleteIntegrationResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteIntegrationResponse) GetApplicationproblemJSON412

func (r DeleteIntegrationResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteIntegrationResponse) GetApplicationproblemJSON429

func (r DeleteIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteIntegrationResponse) GetBody

func (r DeleteIntegrationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteIntegrationResponse) Status

func (r DeleteIntegrationResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteIntegrationResponse) StatusCode

func (r DeleteIntegrationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteIntegrationResponse429Headers

type DeleteIntegrationResponse429Headers struct {
	RetryAfter *int
}

DeleteIntegrationResponse429Headers the declared response headers of an HTTP 429 response for DeleteIntegration

type DeleteLinkRuleParams

type DeleteLinkRuleParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteLinkRuleParams defines parameters for DeleteLinkRule.

type DeleteLinkRuleResponse

type DeleteLinkRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteLinkRuleResponse429Headers
}

func ParseDeleteLinkRuleResponse

func ParseDeleteLinkRuleResponse(rsp *http.Response) (*DeleteLinkRuleResponse, error)

ParseDeleteLinkRuleResponse parses an HTTP response from a DeleteLinkRuleWithResponse call

func (DeleteLinkRuleResponse) ContentType

func (r DeleteLinkRuleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteLinkRuleResponse) GetApplicationproblemJSON401

func (r DeleteLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteLinkRuleResponse) GetApplicationproblemJSON403

func (r DeleteLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteLinkRuleResponse) GetApplicationproblemJSON404

func (r DeleteLinkRuleResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteLinkRuleResponse) GetApplicationproblemJSON409

func (r DeleteLinkRuleResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteLinkRuleResponse) GetApplicationproblemJSON412

func (r DeleteLinkRuleResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteLinkRuleResponse) GetApplicationproblemJSON429

func (r DeleteLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteLinkRuleResponse) GetBody

func (r DeleteLinkRuleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteLinkRuleResponse) Status

func (r DeleteLinkRuleResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteLinkRuleResponse) StatusCode

func (r DeleteLinkRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteLinkRuleResponse429Headers

type DeleteLinkRuleResponse429Headers struct {
	RetryAfter *int
}

DeleteLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for DeleteLinkRule

type DeleteLookupTableParams

type DeleteLookupTableParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteLookupTableParams defines parameters for DeleteLookupTable.

type DeleteLookupTableResponse

type DeleteLookupTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteLookupTableResponse429Headers
}

func ParseDeleteLookupTableResponse

func ParseDeleteLookupTableResponse(rsp *http.Response) (*DeleteLookupTableResponse, error)

ParseDeleteLookupTableResponse parses an HTTP response from a DeleteLookupTableWithResponse call

func (DeleteLookupTableResponse) ContentType

func (r DeleteLookupTableResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteLookupTableResponse) GetApplicationproblemJSON401

func (r DeleteLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteLookupTableResponse) GetApplicationproblemJSON403

func (r DeleteLookupTableResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteLookupTableResponse) GetApplicationproblemJSON404

func (r DeleteLookupTableResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteLookupTableResponse) GetApplicationproblemJSON409

func (r DeleteLookupTableResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteLookupTableResponse) GetApplicationproblemJSON412

func (r DeleteLookupTableResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteLookupTableResponse) GetApplicationproblemJSON429

func (r DeleteLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteLookupTableResponse) GetBody

func (r DeleteLookupTableResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteLookupTableResponse) Status

func (r DeleteLookupTableResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteLookupTableResponse) StatusCode

func (r DeleteLookupTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteLookupTableResponse429Headers

type DeleteLookupTableResponse429Headers struct {
	RetryAfter *int
}

DeleteLookupTableResponse429Headers the declared response headers of an HTTP 429 response for DeleteLookupTable

type DeleteMyAccountLinkResponse

type DeleteMyAccountLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteMyAccountLinkResponse429Headers
}

func ParseDeleteMyAccountLinkResponse

func ParseDeleteMyAccountLinkResponse(rsp *http.Response) (*DeleteMyAccountLinkResponse, error)

ParseDeleteMyAccountLinkResponse parses an HTTP response from a DeleteMyAccountLinkWithResponse call

func (DeleteMyAccountLinkResponse) ContentType

func (r DeleteMyAccountLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON401

func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON403

func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON404

func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteMyAccountLinkResponse) GetApplicationproblemJSON429

func (r DeleteMyAccountLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteMyAccountLinkResponse) GetBody

func (r DeleteMyAccountLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteMyAccountLinkResponse) Status

Status returns HTTPResponse.Status

func (DeleteMyAccountLinkResponse) StatusCode

func (r DeleteMyAccountLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMyAccountLinkResponse429Headers

type DeleteMyAccountLinkResponse429Headers struct {
	RetryAfter *int
}

DeleteMyAccountLinkResponse429Headers the declared response headers of an HTTP 429 response for DeleteMyAccountLink

type DeleteMyGatewayContactResponse

type DeleteMyGatewayContactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteMyGatewayContactResponse429Headers
}

func ParseDeleteMyGatewayContactResponse

func ParseDeleteMyGatewayContactResponse(rsp *http.Response) (*DeleteMyGatewayContactResponse, error)

ParseDeleteMyGatewayContactResponse parses an HTTP response from a DeleteMyGatewayContactWithResponse call

func (DeleteMyGatewayContactResponse) ContentType

func (r DeleteMyGatewayContactResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteMyGatewayContactResponse) GetApplicationproblemJSON401

func (r DeleteMyGatewayContactResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteMyGatewayContactResponse) GetApplicationproblemJSON403

func (r DeleteMyGatewayContactResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteMyGatewayContactResponse) GetApplicationproblemJSON404

func (r DeleteMyGatewayContactResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteMyGatewayContactResponse) GetApplicationproblemJSON429

func (r DeleteMyGatewayContactResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteMyGatewayContactResponse) GetBody

func (r DeleteMyGatewayContactResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteMyGatewayContactResponse) Status

Status returns HTTPResponse.Status

func (DeleteMyGatewayContactResponse) StatusCode

func (r DeleteMyGatewayContactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMyGatewayContactResponse429Headers

type DeleteMyGatewayContactResponse429Headers struct {
	RetryAfter *int
}

DeleteMyGatewayContactResponse429Headers the declared response headers of an HTTP 429 response for DeleteMyGatewayContact

type DeleteMySessionsResponse

type DeleteMySessionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteMySessionsResponse429Headers
}

func ParseDeleteMySessionsResponse

func ParseDeleteMySessionsResponse(rsp *http.Response) (*DeleteMySessionsResponse, error)

ParseDeleteMySessionsResponse parses an HTTP response from a DeleteMySessionsWithResponse call

func (DeleteMySessionsResponse) ContentType

func (r DeleteMySessionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteMySessionsResponse) GetApplicationproblemJSON401

func (r DeleteMySessionsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteMySessionsResponse) GetApplicationproblemJSON403

func (r DeleteMySessionsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteMySessionsResponse) GetApplicationproblemJSON429

func (r DeleteMySessionsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteMySessionsResponse) GetBody

func (r DeleteMySessionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteMySessionsResponse) Status

func (r DeleteMySessionsResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteMySessionsResponse) StatusCode

func (r DeleteMySessionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMySessionsResponse429Headers

type DeleteMySessionsResponse429Headers struct {
	RetryAfter *int
}

DeleteMySessionsResponse429Headers the declared response headers of an HTTP 429 response for DeleteMySessions

type DeleteRouteParams

type DeleteRouteParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteRouteParams defines parameters for DeleteRoute.

type DeleteRouteResponse

type DeleteRouteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteRouteResponse429Headers
}

func ParseDeleteRouteResponse

func ParseDeleteRouteResponse(rsp *http.Response) (*DeleteRouteResponse, error)

ParseDeleteRouteResponse parses an HTTP response from a DeleteRouteWithResponse call

func (DeleteRouteResponse) ContentType

func (r DeleteRouteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteRouteResponse) GetApplicationproblemJSON401

func (r DeleteRouteResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteRouteResponse) GetApplicationproblemJSON403

func (r DeleteRouteResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteRouteResponse) GetApplicationproblemJSON404

func (r DeleteRouteResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteRouteResponse) GetApplicationproblemJSON409

func (r DeleteRouteResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteRouteResponse) GetApplicationproblemJSON412

func (r DeleteRouteResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteRouteResponse) GetApplicationproblemJSON429

func (r DeleteRouteResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteRouteResponse) GetBody

func (r DeleteRouteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteRouteResponse) Status

func (r DeleteRouteResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteRouteResponse) StatusCode

func (r DeleteRouteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRouteResponse429Headers

type DeleteRouteResponse429Headers struct {
	RetryAfter *int
}

DeleteRouteResponse429Headers the declared response headers of an HTTP 429 response for DeleteRoute

type DeleteScheduleOverrideParams

type DeleteScheduleOverrideParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteScheduleOverrideParams defines parameters for DeleteScheduleOverride.

type DeleteScheduleOverrideResponse

type DeleteScheduleOverrideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteScheduleOverrideResponse429Headers
}

func ParseDeleteScheduleOverrideResponse

func ParseDeleteScheduleOverrideResponse(rsp *http.Response) (*DeleteScheduleOverrideResponse, error)

ParseDeleteScheduleOverrideResponse parses an HTTP response from a DeleteScheduleOverrideWithResponse call

func (DeleteScheduleOverrideResponse) ContentType

func (r DeleteScheduleOverrideResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteScheduleOverrideResponse) GetApplicationproblemJSON401

func (r DeleteScheduleOverrideResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteScheduleOverrideResponse) GetApplicationproblemJSON403

func (r DeleteScheduleOverrideResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteScheduleOverrideResponse) GetApplicationproblemJSON404

func (r DeleteScheduleOverrideResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteScheduleOverrideResponse) GetApplicationproblemJSON409

func (r DeleteScheduleOverrideResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteScheduleOverrideResponse) GetApplicationproblemJSON412

func (r DeleteScheduleOverrideResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteScheduleOverrideResponse) GetApplicationproblemJSON429

func (r DeleteScheduleOverrideResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteScheduleOverrideResponse) GetBody

func (r DeleteScheduleOverrideResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteScheduleOverrideResponse) Status

Status returns HTTPResponse.Status

func (DeleteScheduleOverrideResponse) StatusCode

func (r DeleteScheduleOverrideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteScheduleOverrideResponse429Headers

type DeleteScheduleOverrideResponse429Headers struct {
	RetryAfter *int
}

DeleteScheduleOverrideResponse429Headers the declared response headers of an HTTP 429 response for DeleteScheduleOverride

type DeleteScheduleParams

type DeleteScheduleParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteScheduleParams defines parameters for DeleteSchedule.

type DeleteScheduleResponse

type DeleteScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteScheduleResponse429Headers
}

func ParseDeleteScheduleResponse

func ParseDeleteScheduleResponse(rsp *http.Response) (*DeleteScheduleResponse, error)

ParseDeleteScheduleResponse parses an HTTP response from a DeleteScheduleWithResponse call

func (DeleteScheduleResponse) ContentType

func (r DeleteScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteScheduleResponse) GetApplicationproblemJSON401

func (r DeleteScheduleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteScheduleResponse) GetApplicationproblemJSON403

func (r DeleteScheduleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteScheduleResponse) GetApplicationproblemJSON404

func (r DeleteScheduleResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteScheduleResponse) GetApplicationproblemJSON409

func (r DeleteScheduleResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteScheduleResponse) GetApplicationproblemJSON412

func (r DeleteScheduleResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteScheduleResponse) GetApplicationproblemJSON429

func (r DeleteScheduleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteScheduleResponse) GetBody

func (r DeleteScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteScheduleResponse) Status

func (r DeleteScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteScheduleResponse) StatusCode

func (r DeleteScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteScheduleResponse429Headers

type DeleteScheduleResponse429Headers struct {
	RetryAfter *int
}

DeleteScheduleResponse429Headers the declared response headers of an HTTP 429 response for DeleteSchedule

type DeleteServiceAccountParams

type DeleteServiceAccountParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteServiceAccountParams defines parameters for DeleteServiceAccount.

type DeleteServiceAccountResponse

type DeleteServiceAccountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteServiceAccountResponse429Headers
}

func ParseDeleteServiceAccountResponse

func ParseDeleteServiceAccountResponse(rsp *http.Response) (*DeleteServiceAccountResponse, error)

ParseDeleteServiceAccountResponse parses an HTTP response from a DeleteServiceAccountWithResponse call

func (DeleteServiceAccountResponse) ContentType

func (r DeleteServiceAccountResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteServiceAccountResponse) GetApplicationproblemJSON401

func (r DeleteServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteServiceAccountResponse) GetApplicationproblemJSON403

func (r DeleteServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteServiceAccountResponse) GetApplicationproblemJSON404

func (r DeleteServiceAccountResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteServiceAccountResponse) GetApplicationproblemJSON412

func (r DeleteServiceAccountResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteServiceAccountResponse) GetApplicationproblemJSON429

func (r DeleteServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteServiceAccountResponse) GetBody

func (r DeleteServiceAccountResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteServiceAccountResponse) Status

Status returns HTTPResponse.Status

func (DeleteServiceAccountResponse) StatusCode

func (r DeleteServiceAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteServiceAccountResponse429Headers

type DeleteServiceAccountResponse429Headers struct {
	RetryAfter *int
}

DeleteServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for DeleteServiceAccount

type DeleteTeamParams

type DeleteTeamParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteTeamParams defines parameters for DeleteTeam.

type DeleteTeamResponse

type DeleteTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteTeamResponse429Headers
}

func ParseDeleteTeamResponse

func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error)

ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call

func (DeleteTeamResponse) ContentType

func (r DeleteTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteTeamResponse) GetApplicationproblemJSON401

func (r DeleteTeamResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteTeamResponse) GetApplicationproblemJSON403

func (r DeleteTeamResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteTeamResponse) GetApplicationproblemJSON404

func (r DeleteTeamResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteTeamResponse) GetApplicationproblemJSON409

func (r DeleteTeamResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteTeamResponse) GetApplicationproblemJSON412

func (r DeleteTeamResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteTeamResponse) GetApplicationproblemJSON429

func (r DeleteTeamResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteTeamResponse) GetBody

func (r DeleteTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteTeamResponse) Status

func (r DeleteTeamResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteTeamResponse) StatusCode

func (r DeleteTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTeamResponse429Headers

type DeleteTeamResponse429Headers struct {
	RetryAfter *int
}

DeleteTeamResponse429Headers the declared response headers of an HTTP 429 response for DeleteTeam

type DeleteUserAccountLinkResponse

type DeleteUserAccountLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteUserAccountLinkResponse429Headers
}

func ParseDeleteUserAccountLinkResponse

func ParseDeleteUserAccountLinkResponse(rsp *http.Response) (*DeleteUserAccountLinkResponse, error)

ParseDeleteUserAccountLinkResponse parses an HTTP response from a DeleteUserAccountLinkWithResponse call

func (DeleteUserAccountLinkResponse) ContentType

func (r DeleteUserAccountLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON401

func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON403

func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON404

func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteUserAccountLinkResponse) GetApplicationproblemJSON429

func (r DeleteUserAccountLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteUserAccountLinkResponse) GetBody

func (r DeleteUserAccountLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteUserAccountLinkResponse) Status

Status returns HTTPResponse.Status

func (DeleteUserAccountLinkResponse) StatusCode

func (r DeleteUserAccountLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserAccountLinkResponse429Headers

type DeleteUserAccountLinkResponse429Headers struct {
	RetryAfter *int
}

DeleteUserAccountLinkResponse429Headers the declared response headers of an HTTP 429 response for DeleteUserAccountLink

type DeleteUserGatewayContactResponse

type DeleteUserGatewayContactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteUserGatewayContactResponse429Headers
}

func ParseDeleteUserGatewayContactResponse

func ParseDeleteUserGatewayContactResponse(rsp *http.Response) (*DeleteUserGatewayContactResponse, error)

ParseDeleteUserGatewayContactResponse parses an HTTP response from a DeleteUserGatewayContactWithResponse call

func (DeleteUserGatewayContactResponse) ContentType

func (r DeleteUserGatewayContactResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteUserGatewayContactResponse) GetApplicationproblemJSON401

func (r DeleteUserGatewayContactResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteUserGatewayContactResponse) GetApplicationproblemJSON403

func (r DeleteUserGatewayContactResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteUserGatewayContactResponse) GetApplicationproblemJSON404

func (r DeleteUserGatewayContactResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteUserGatewayContactResponse) GetApplicationproblemJSON429

func (r DeleteUserGatewayContactResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteUserGatewayContactResponse) GetBody

func (r DeleteUserGatewayContactResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteUserGatewayContactResponse) Status

Status returns HTTPResponse.Status

func (DeleteUserGatewayContactResponse) StatusCode

func (r DeleteUserGatewayContactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserGatewayContactResponse429Headers

type DeleteUserGatewayContactResponse429Headers struct {
	RetryAfter *int
}

DeleteUserGatewayContactResponse429Headers the declared response headers of an HTTP 429 response for DeleteUserGatewayContact

type DeleteUserParams

type DeleteUserParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

DeleteUserParams defines parameters for DeleteUser.

type DeleteUserResponse

type DeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteUserResponse429Headers
}

func ParseDeleteUserResponse

func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)

ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResponse) ContentType

func (r DeleteUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteUserResponse) GetApplicationproblemJSON401

func (r DeleteUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteUserResponse) GetApplicationproblemJSON403

func (r DeleteUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteUserResponse) GetApplicationproblemJSON404

func (r DeleteUserResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteUserResponse) GetApplicationproblemJSON409

func (r DeleteUserResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteUserResponse) GetApplicationproblemJSON412

func (r DeleteUserResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (DeleteUserResponse) GetApplicationproblemJSON429

func (r DeleteUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteUserResponse) GetBody

func (r DeleteUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteUserResponse) Status

func (r DeleteUserResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResponse) StatusCode

func (r DeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserResponse429Headers

type DeleteUserResponse429Headers struct {
	RetryAfter *int
}

DeleteUserResponse429Headers the declared response headers of an HTTP 429 response for DeleteUser

type DeliverAlertGroupEventJSONRequestBody

type DeliverAlertGroupEventJSONRequestBody = OutgoingWebhookEvent

DeliverAlertGroupEventJSONRequestBody defines body for DeliverAlertGroupEvent for application/json ContentType.

type DeliverAlertGroupEventParams

type DeliverAlertGroupEventParams struct {
	// WebhookId Id of this event, kept across retries.
	WebhookId string `json:"webhook-id"`

	// WebhookTimestamp Unix time in seconds when the request was signed.
	WebhookTimestamp string `json:"webhook-timestamp"`

	// WebhookSignature One or more space-separated `v1,<base64>` signatures.
	WebhookSignature string `json:"webhook-signature"`
}

DeliverAlertGroupEventParams defines parameters for DeliverAlertGroupEvent.

type DeliveryEntry

type DeliveryEntry struct {
	// Kind `route`, the Alert Group's Route, or `team`, a Team of the Alert Group on a Route with `deliver_to_teams`.
	Kind DeliveryEntryKind `json:"kind"`

	// SeverityCondition The Severity condition of a Destination of a Route or a Team (C-26.FR-1), checked against the Severity level of the Alert Group, the highest level of its firing Alerts raised to the Route's Minimum severity. `any` meets every level, `critical` only critical, `below_critical` every level but critical.
	SeverityCondition SeverityCondition `json:"severity_condition"`

	// Team The Team of a `team` entry, null for `route`.
	Team nullable.Nullable[TeamRef] `json:"team"`
}

DeliveryEntry An entry that reached a Destination of an Alert Group (C-26.FR-3, FR-4), with the condition it had when it first did. Entries are added and never removed, so a Destination keeps the entries that once reached it after the Severity level fell or the Team's Alerts resolved.

type DeliveryEntryKind

type DeliveryEntryKind string

DeliveryEntryKind `route`, the Alert Group's Route, or `team`, a Team of the Alert Group on a Route with `deliver_to_teams`.

const (
	DeliveryEntryKindRoute DeliveryEntryKind = "route"
	DeliveryEntryKindTeam  DeliveryEntryKind = "team"
)

Defines values for DeliveryEntryKind.

func (DeliveryEntryKind) Valid

func (e DeliveryEntryKind) Valid() bool

Valid indicates whether the value is a known member of the DeliveryEntryKind enum.

type DeliveryErrorClass

type DeliveryErrorClass string

DeliveryErrorClass How a delivery attempt ended. `limited`: no limiter token was free within `delivery.interactive_budget`, so nothing was sent (a test only; the attempt did not reach the remote side).

const (
	DeliveryErrorClassBlocked       DeliveryErrorClass = "blocked"
	DeliveryErrorClassFatal         DeliveryErrorClass = "fatal"
	DeliveryErrorClassLimited       DeliveryErrorClass = "limited"
	DeliveryErrorClassNone          DeliveryErrorClass = "none"
	DeliveryErrorClassRetryAfter    DeliveryErrorClass = "retry_after"
	DeliveryErrorClassTemplateError DeliveryErrorClass = "template_error"
	DeliveryErrorClassTransient     DeliveryErrorClass = "transient"
	DeliveryErrorClassUnknown       DeliveryErrorClass = "unknown"
)

Defines values for DeliveryErrorClass.

func (DeliveryErrorClass) Valid

func (e DeliveryErrorClass) Valid() bool

Valid indicates whether the value is a known member of the DeliveryErrorClass enum.

type DeliveryEventKind

type DeliveryEventKind string

DeliveryEventKind Delivery events are not lifecycle events and reach neither messengers nor outgoing webhook events.

const (
	DeliveryEventKindDeletedInMessenger        DeliveryEventKind = "deleted_in_messenger"
	DeliveryEventKindDeliveredLate             DeliveryEventKind = "delivered_late"
	DeliveryEventKindDestinationBroken         DeliveryEventKind = "destination_broken"
	DeliveryEventKindDestinationRecovered      DeliveryEventKind = "destination_recovered"
	DeliveryEventKindFinalEdit                 DeliveryEventKind = "final_edit"
	DeliveryEventKindMarkupRejected            DeliveryEventKind = "markup_rejected"
	DeliveryEventKindMentionNotDelivered       DeliveryEventKind = "mention_not_delivered"
	DeliveryEventKindNotDelivered              DeliveryEventKind = "not_delivered"
	DeliveryEventKindPossibleDuplicate         DeliveryEventKind = "possible_duplicate"
	DeliveryEventKindPublication               DeliveryEventKind = "publication"
	DeliveryEventKindRepublished               DeliveryEventKind = "republished"
	DeliveryEventKindRepublishedPastEditWindow DeliveryEventKind = "republished_past_edit_window"
	DeliveryEventKindStormSummary              DeliveryEventKind = "storm_summary"
	DeliveryEventKindThreadNotAttached         DeliveryEventKind = "thread_not_attached"
)

Defines values for DeliveryEventKind.

func (DeliveryEventKind) Valid

func (e DeliveryEventKind) Valid() bool

Valid indicates whether the value is a known member of the DeliveryEventKind enum.

type DeliveryPreview

type DeliveryPreview struct {
	// AlertGroups The `routing.group_key_preview_examples` largest Alert Groups of the proposed Group key.
	AlertGroups []DeliveryPreviewGroup `json:"alert_groups"`

	// DestinationCounts Every Destination that any Alert Group the Alerts would form reaches.
	DestinationCounts []DeliveryPreviewCount `json:"destination_counts"`

	// SharedKeyWarning True when the Route delivers to the Teams and the proposed Group key lacks the Team label, so that Alerts of different Teams with the same key share one Alert Group.
	SharedKeyWarning bool `json:"shared_key_warning"`
}

DeliveryPreview defines model for DeliveryPreview.

type DeliveryPreviewCount

type DeliveryPreviewCount struct {
	// AlertGroupCount How many of all the Alert Groups the Alerts would form reach the Destination, listed or not.
	AlertGroupCount int            `json:"alert_group_count"`
	Destination     DestinationRef `json:"destination"`
}

DeliveryPreviewCount defines model for DeliveryPreviewCount.

type DeliveryPreviewDestination

type DeliveryPreviewDestination struct {
	Destination DestinationRef `json:"destination"`

	// Entries The entries that reach the Destination, the Route's first, then the Teams' by Team.
	Entries []DeliveryEntry `json:"entries"`
}

DeliveryPreviewDestination defines model for DeliveryPreviewDestination.

type DeliveryPreviewGroup

type DeliveryPreviewGroup struct {
	AlertCount int `json:"alert_count"`

	// Destinations The Destinations the Alert Group would reach.
	Destinations []DeliveryPreviewDestination `json:"destinations"`

	// GroupKeyValues Label names and values.
	GroupKeyValues Labels `json:"group_key_values"`

	// SeverityLevel The highest Severity level of the Alerts raised to the Minimum severity.
	SeverityLevel SeverityLevel `json:"severity_level"`

	// Teams The Teams of the Alerts, by the Team label and the Team matchers as saved.
	Teams []TeamRef `json:"teams"`
}

DeliveryPreviewGroup defines model for DeliveryPreviewGroup.

type DeliveryState

type DeliveryState string

DeliveryState `waiting_for_broken_destination` — derived, never stored: a `pending` delivery whose Destination is Broken; `withheld` — never posted to this Destination: the Alert Group resolved while a Storm summary stood for it or while the Destination was Broken; `retired` — no longer updated there after its final edit, because the Destination left the Route or was deleted.

const (
	DeliveryStateDeletedInMessenger          DeliveryState = "deleted_in_messenger"
	DeliveryStateDelivered                   DeliveryState = "delivered"
	DeliveryStateNotDelivered                DeliveryState = "not_delivered"
	DeliveryStatePending                     DeliveryState = "pending"
	DeliveryStateRetired                     DeliveryState = "retired"
	DeliveryStateWaitingForBrokenDestination DeliveryState = "waiting_for_broken_destination"
	DeliveryStateWithheld                    DeliveryState = "withheld"
)

Defines values for DeliveryState.

func (DeliveryState) Valid

func (e DeliveryState) Valid() bool

Valid indicates whether the value is a known member of the DeliveryState enum.

type Destination

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

Destination A Destination; `type` selects the variant.

func (Destination) AsBridgeDestination

func (t Destination) AsBridgeDestination() (BridgeDestination, error)

AsBridgeDestination returns the union data inside the Destination as a BridgeDestination

func (Destination) AsMattermostDestination

func (t Destination) AsMattermostDestination() (MattermostDestination, error)

AsMattermostDestination returns the union data inside the Destination as a MattermostDestination

func (Destination) AsSlackDestination

func (t Destination) AsSlackDestination() (SlackDestination, error)

AsSlackDestination returns the union data inside the Destination as a SlackDestination

func (Destination) AsTelegramDestination

func (t Destination) AsTelegramDestination() (TelegramDestination, error)

AsTelegramDestination returns the union data inside the Destination as a TelegramDestination

func (Destination) AsWebhookDestination

func (t Destination) AsWebhookDestination() (WebhookDestination, error)

AsWebhookDestination returns the union data inside the Destination as a WebhookDestination

func (Destination) Discriminator

func (t Destination) Discriminator() (string, error)

func (*Destination) FromBridgeDestination

func (t *Destination) FromBridgeDestination(v BridgeDestination) error

FromBridgeDestination overwrites any union data inside the Destination as the provided BridgeDestination

func (*Destination) FromMattermostDestination

func (t *Destination) FromMattermostDestination(v MattermostDestination) error

FromMattermostDestination overwrites any union data inside the Destination as the provided MattermostDestination

func (*Destination) FromSlackDestination

func (t *Destination) FromSlackDestination(v SlackDestination) error

FromSlackDestination overwrites any union data inside the Destination as the provided SlackDestination

func (*Destination) FromTelegramDestination

func (t *Destination) FromTelegramDestination(v TelegramDestination) error

FromTelegramDestination overwrites any union data inside the Destination as the provided TelegramDestination

func (*Destination) FromWebhookDestination

func (t *Destination) FromWebhookDestination(v WebhookDestination) error

FromWebhookDestination overwrites any union data inside the Destination as the provided WebhookDestination

func (Destination) MarshalJSON

func (t Destination) MarshalJSON() ([]byte, error)

func (*Destination) MergeBridgeDestination

func (t *Destination) MergeBridgeDestination(v BridgeDestination) error

MergeBridgeDestination performs a merge with any union data inside the Destination, using the provided BridgeDestination

func (*Destination) MergeMattermostDestination

func (t *Destination) MergeMattermostDestination(v MattermostDestination) error

MergeMattermostDestination performs a merge with any union data inside the Destination, using the provided MattermostDestination

func (*Destination) MergeSlackDestination

func (t *Destination) MergeSlackDestination(v SlackDestination) error

MergeSlackDestination performs a merge with any union data inside the Destination, using the provided SlackDestination

func (*Destination) MergeTelegramDestination

func (t *Destination) MergeTelegramDestination(v TelegramDestination) error

MergeTelegramDestination performs a merge with any union data inside the Destination, using the provided TelegramDestination

func (*Destination) MergeWebhookDestination

func (t *Destination) MergeWebhookDestination(v WebhookDestination) error

MergeWebhookDestination performs a merge with any union data inside the Destination, using the provided WebhookDestination

func (*Destination) UnmarshalJSON

func (t *Destination) UnmarshalJSON(b []byte) error

func (Destination) ValueByDiscriminator

func (t Destination) ValueByDiscriminator() (interface{}, error)

type DestinationButtonSet

type DestinationButtonSet struct {
	// Items Required with `own`, ignored with `organization`.
	Items  *[]ButtonSetItem           `json:"items,omitempty"`
	Source DestinationButtonSetSource `json:"source"`
}

DestinationButtonSet A Destination's button set, `destination.buttons` (C-28.FR-8): `organization`, "As in the Organization", the default, follows the Organization's set and its later changes; `own` shows only `items`, which are then required. A change re-renders the Destination's open Root messages, as edits.

type DestinationButtonSetSource

type DestinationButtonSetSource string

DestinationButtonSetSource defines model for DestinationButtonSet.Source.

const (
	DestinationButtonSetSourceOrganization DestinationButtonSetSource = "organization"
	DestinationButtonSetSourceOwn          DestinationButtonSetSource = "own"
)

Defines values for DestinationButtonSetSource.

func (DestinationButtonSetSource) Valid

func (e DestinationButtonSetSource) Valid() bool

Valid indicates whether the value is a known member of the DestinationButtonSetSource enum.

type DestinationCheckItem

type DestinationCheckItem struct {
	// AbsentUsers Set with `discussion_group_members` only, omitted otherwise — the people `getChatMember` answered as outside the discussion group (`left`, `kicked`, `restricted` and not a member, or `400` `Bad Request: PARTICIPANT_ID_INVALID`), by name; a person whose call failed otherwise is not named. Telegram shows a leave only a while after it, about a minute.
	AbsentUsers *[]UserRef `json:"absent_users,omitempty"`

	// Code Why a check of the Destination check failed, as a stable code that clients translate, with `message` as its detail in English; null for a check that passed. `token_invalid` — the messenger refused the bot token (`token`, Telegram `channel_exists`, Bridge `channel`); Mattermost `bot_in_channel`: `bot_not_in_channel`, `channel_in_other_team` — the channel is not in the Destination's team, `channel_archived`; Telegram `channel_exists`: `channel_not_found` — the channel was not found or the bot cannot see it, `not_a_channel` — the chat is not a channel; `discussion_group`: `comments_disabled` — the channel has no linked discussion group, so comments are not enabled, `changed_since_saved` — the channel or its discussion group changed since the Destination was saved, and a save takes the new one; `bot_rights_channel`: `bot_not_channel_admin`, `bot_may_not_post`, `bot_may_not_edit`; `bot_rights_group`: `bot_not_group_admin`, whose `message` names the group; Bridge `channel`: `channel_forbidden` — the bridge answered `forbidden`: the channel does not exist or the bot cannot use it, with the bridge's `detail` as `message`, and `request_failed` for any other error class of the bridge, whose `message` names the class; Slack `channel`: `token_invalid` — Slack refused the bot token, `missing_scope` — the bot token lacks a scope `conversations.info` needs, which `missing_scopes` lists, `channel_not_found` — no such channel, a deleted one, or a private channel the bot is not in, `channel_archived`, `bot_not_in_channel` — `message` says "Invite the bot to the channel: /invite @{bot}", and `request_failed` for any other error of Slack's, which `message` names; any check: `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` and `request_failed`, as in `NullableConnectionCheckCode`.
	Code nullable.Nullable[NullableDestinationCheckCode] `json:"code,omitempty"`

	// Message Why the check failed, in English; untrusted text where it comes from the messenger. Clients translate `code` and show this text as its detail where it says more than the code's text.
	Message nullable.Nullable[string] `json:"message,omitempty"`

	// MissingScopes Set with the code `missing_scope` (Slack `channel`), omitted otherwise — the scopes Slack named as needed (`needed` of its answer), which clients name in their own words; `message` names them in English.
	MissingScopes *[]string `json:"missing_scopes,omitempty"`

	// Name One step of the check. Telegram: `channel_exists`; `discussion_group` fails when the channel has no linked discussion group, that is, comments are not enabled for the channel (the message says to enable them); `bot_rights_channel`; `bot_rights_group` fails when the bot is not an admin of the discussion group (the message says to make the bot an admin there). Bridge: `channel`, the bridge's `checkChannel` — whether the bot can post, edit and reply in the channel. Slack: `channel`, `conversations.info` — whether the channel exists, is not archived and has the bot as a member. Telegram, after the others pass: `discussion_group_members`, which always passes, reads with `getChatMember` whether each person with a Telegram Account link of the Teams that name the Destination, and each one whom an Escalation chain Paging in it can Page through a Schedule — in a Rotation layer of a Schedule that a `page_on_call` step of the chain names, or with an Override of it that has not ended —, is in the discussion group, once per person, and names in `absent_users` those it saw outside (C-27.FR-8).
	Name DestinationCheckItemName `json:"name"`
	Ok   bool                     `json:"ok"`
}

DestinationCheckItem defines model for DestinationCheckItem.

type DestinationCheckItemName

type DestinationCheckItemName string

DestinationCheckItemName One step of the check. Telegram: `channel_exists`; `discussion_group` fails when the channel has no linked discussion group, that is, comments are not enabled for the channel (the message says to enable them); `bot_rights_channel`; `bot_rights_group` fails when the bot is not an admin of the discussion group (the message says to make the bot an admin there). Bridge: `channel`, the bridge's `checkChannel` — whether the bot can post, edit and reply in the channel. Slack: `channel`, `conversations.info` — whether the channel exists, is not archived and has the bot as a member. Telegram, after the others pass: `discussion_group_members`, which always passes, reads with `getChatMember` whether each person with a Telegram Account link of the Teams that name the Destination, and each one whom an Escalation chain Paging in it can Page through a Schedule — in a Rotation layer of a Schedule that a `page_on_call` step of the chain names, or with an Override of it that has not ended —, is in the discussion group, once per person, and names in `absent_users` those it saw outside (C-27.FR-8).

const (
	DestinationCheckItemNameBotInChannel           DestinationCheckItemName = "bot_in_channel"
	DestinationCheckItemNameBotRightsChannel       DestinationCheckItemName = "bot_rights_channel"
	DestinationCheckItemNameBotRightsGroup         DestinationCheckItemName = "bot_rights_group"
	DestinationCheckItemNameChannel                DestinationCheckItemName = "channel"
	DestinationCheckItemNameChannelExists          DestinationCheckItemName = "channel_exists"
	DestinationCheckItemNameDiscussionGroup        DestinationCheckItemName = "discussion_group"
	DestinationCheckItemNameDiscussionGroupMembers DestinationCheckItemName = "discussion_group_members"
	DestinationCheckItemNameToken                  DestinationCheckItemName = "token"
)

Defines values for DestinationCheckItemName.

func (DestinationCheckItemName) Valid

func (e DestinationCheckItemName) Valid() bool

Valid indicates whether the value is a known member of the DestinationCheckItemName enum.

type DestinationCheckResult

type DestinationCheckResult struct {
	Checks []DestinationCheckItem `json:"checks"`
	Health DestinationHealth      `json:"health"`
	Ok     bool                   `json:"ok"`

	// RequestLogRun The check run of the requests this check made (`CR…`); `listRequestLog` with `run` and the Destination lists them.
	RequestLogRun PublicId `json:"request_log_run"`
}

DestinationCheckResult defines model for DestinationCheckResult.

type DestinationCreated

type DestinationCreated struct {
	// Destination A Destination; `type` selects the variant.
	Destination Destination `json:"destination"`

	// SigningSecret The Signing secret of a new outgoing webhook Destination. Shown once; null for the other types.
	SigningSecret nullable.Nullable[string] `json:"signing_secret"`
}

DestinationCreated defines model for DestinationCreated.

type DestinationEntry

type DestinationEntry struct {
	// DestinationId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	DestinationId PublicId `json:"destination_id"`

	// SeverityCondition Omitted, `any`.
	SeverityCondition *SeverityCondition `json:"severity_condition,omitempty"`
}

DestinationEntry A Destination of a Route or a Team with its Severity condition.

type DestinationHealth

type DestinationHealth struct {
	// Reason The error, or "unavailable after repeated failures: {last error}". Untrusted where it comes from the remote side. Secrets, the Signing secret and tokens are masked.
	Reason nullable.Nullable[string]    `json:"reason,omitempty"`
	Since  nullable.Nullable[time.Time] `json:"since,omitempty"`
	State  HealthState                  `json:"state"`
}

DestinationHealth defines model for DestinationHealth.

type DestinationId

type DestinationId = PublicId

DestinationId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type DestinationInput

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

DestinationInput A Destination as written; `type` selects the variant and cannot change on update. Routes and Teams attach it through their `destination_entries`.

func (DestinationInput) AsBridgeDestinationInput

func (t DestinationInput) AsBridgeDestinationInput() (BridgeDestinationInput, error)

AsBridgeDestinationInput returns the union data inside the DestinationInput as a BridgeDestinationInput

func (DestinationInput) AsMattermostDestinationInput

func (t DestinationInput) AsMattermostDestinationInput() (MattermostDestinationInput, error)

AsMattermostDestinationInput returns the union data inside the DestinationInput as a MattermostDestinationInput

func (DestinationInput) AsSlackDestinationInput

func (t DestinationInput) AsSlackDestinationInput() (SlackDestinationInput, error)

AsSlackDestinationInput returns the union data inside the DestinationInput as a SlackDestinationInput

func (DestinationInput) AsTelegramDestinationInput

func (t DestinationInput) AsTelegramDestinationInput() (TelegramDestinationInput, error)

AsTelegramDestinationInput returns the union data inside the DestinationInput as a TelegramDestinationInput

func (DestinationInput) AsWebhookDestinationInput

func (t DestinationInput) AsWebhookDestinationInput() (WebhookDestinationInput, error)

AsWebhookDestinationInput returns the union data inside the DestinationInput as a WebhookDestinationInput

func (DestinationInput) Discriminator

func (t DestinationInput) Discriminator() (string, error)

func (*DestinationInput) FromBridgeDestinationInput

func (t *DestinationInput) FromBridgeDestinationInput(v BridgeDestinationInput) error

FromBridgeDestinationInput overwrites any union data inside the DestinationInput as the provided BridgeDestinationInput

func (*DestinationInput) FromMattermostDestinationInput

func (t *DestinationInput) FromMattermostDestinationInput(v MattermostDestinationInput) error

FromMattermostDestinationInput overwrites any union data inside the DestinationInput as the provided MattermostDestinationInput

func (*DestinationInput) FromSlackDestinationInput

func (t *DestinationInput) FromSlackDestinationInput(v SlackDestinationInput) error

FromSlackDestinationInput overwrites any union data inside the DestinationInput as the provided SlackDestinationInput

func (*DestinationInput) FromTelegramDestinationInput

func (t *DestinationInput) FromTelegramDestinationInput(v TelegramDestinationInput) error

FromTelegramDestinationInput overwrites any union data inside the DestinationInput as the provided TelegramDestinationInput

func (*DestinationInput) FromWebhookDestinationInput

func (t *DestinationInput) FromWebhookDestinationInput(v WebhookDestinationInput) error

FromWebhookDestinationInput overwrites any union data inside the DestinationInput as the provided WebhookDestinationInput

func (DestinationInput) MarshalJSON

func (t DestinationInput) MarshalJSON() ([]byte, error)

func (*DestinationInput) MergeBridgeDestinationInput

func (t *DestinationInput) MergeBridgeDestinationInput(v BridgeDestinationInput) error

MergeBridgeDestinationInput performs a merge with any union data inside the DestinationInput, using the provided BridgeDestinationInput

func (*DestinationInput) MergeMattermostDestinationInput

func (t *DestinationInput) MergeMattermostDestinationInput(v MattermostDestinationInput) error

MergeMattermostDestinationInput performs a merge with any union data inside the DestinationInput, using the provided MattermostDestinationInput

func (*DestinationInput) MergeSlackDestinationInput

func (t *DestinationInput) MergeSlackDestinationInput(v SlackDestinationInput) error

MergeSlackDestinationInput performs a merge with any union data inside the DestinationInput, using the provided SlackDestinationInput

func (*DestinationInput) MergeTelegramDestinationInput

func (t *DestinationInput) MergeTelegramDestinationInput(v TelegramDestinationInput) error

MergeTelegramDestinationInput performs a merge with any union data inside the DestinationInput, using the provided TelegramDestinationInput

func (*DestinationInput) MergeWebhookDestinationInput

func (t *DestinationInput) MergeWebhookDestinationInput(v WebhookDestinationInput) error

MergeWebhookDestinationInput performs a merge with any union data inside the DestinationInput, using the provided WebhookDestinationInput

func (*DestinationInput) UnmarshalJSON

func (t *DestinationInput) UnmarshalJSON(b []byte) error

func (DestinationInput) ValueByDiscriminator

func (t DestinationInput) ValueByDiscriminator() (interface{}, error)

type DestinationList

type DestinationList struct {
	Items      []Destination             `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

DestinationList defines model for DestinationList.

type DestinationPreview

type DestinationPreview struct {
	Items []DestinationPreviewItem `json:"items"`
}

DestinationPreview defines model for DestinationPreview.

type DestinationPreviewItem

type DestinationPreviewItem struct {
	Format nullable.Nullable[DestinationPreviewItemFormat] `json:"format,omitempty"`
	Name   DestinationPreviewItemName                      `json:"name"`

	// Request A request as it would be or was sent, with Secrets, the Signing secret and tokens masked.
	Request *RenderedRequest `json:"request,omitempty"`

	// Text The rendered Root message text; for Mattermost, the post's `message`, which is empty, the attachment being in `request`; for a Bridge, the envelope, and for Slack, the body of `chat.postMessage`, as JSON.
	Text nullable.Nullable[string] `json:"text,omitempty"`
}

DestinationPreviewItem defines model for DestinationPreviewItem.

type DestinationPreviewItemFormat

type DestinationPreviewItemFormat string

DestinationPreviewItemFormat defines model for DestinationPreviewItem.Format.

const (
	DestinationPreviewItemFormatHtml        DestinationPreviewItemFormat = "html"
	DestinationPreviewItemFormatJson        DestinationPreviewItemFormat = "json"
	DestinationPreviewItemFormatLessThannil DestinationPreviewItemFormat = "<nil>"
	DestinationPreviewItemFormatMarkdown    DestinationPreviewItemFormat = "markdown"
	DestinationPreviewItemFormatPlain       DestinationPreviewItemFormat = "plain"
)

Defines values for DestinationPreviewItemFormat.

func (DestinationPreviewItemFormat) Valid

Valid indicates whether the value is a known member of the DestinationPreviewItemFormat enum.

type DestinationPreviewItemName

type DestinationPreviewItemName string

DestinationPreviewItemName defines model for DestinationPreviewItem.Name.

const (
	DestinationPreviewItemNameCreate        DestinationPreviewItemName = "create"
	DestinationPreviewItemNameEvent         DestinationPreviewItemName = "event"
	DestinationPreviewItemNameMessage       DestinationPreviewItemName = "message"
	DestinationPreviewItemNameOpenThread    DestinationPreviewItemName = "open_thread"
	DestinationPreviewItemNameReplyInThread DestinationPreviewItemName = "reply_in_thread"
	DestinationPreviewItemNameUpdate        DestinationPreviewItemName = "update"
)

Defines values for DestinationPreviewItemName.

func (DestinationPreviewItemName) Valid

func (e DestinationPreviewItemName) Valid() bool

Valid indicates whether the value is a known member of the DestinationPreviewItemName enum.

type DestinationPreviewRequest

type DestinationPreviewRequest struct {
	Source TestSource `json:"source"`
}

DestinationPreviewRequest defines model for DestinationPreviewRequest.

type DestinationReadFields

type DestinationReadFields struct {
	CreatedAt time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag   *string           `json:"etag,omitempty"`
	Health DestinationHealth `json:"health"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// MentionEntries The Mention entries in order, each with what it mentions now.
	MentionEntries []MentionEntry `json:"mention_entries"`

	// MentionWarnings The people and entries whose Mentions were not delivered (C-28.FR-3), by entry and then by the person's name; always empty on an outgoing webhook, which takes every person as data.
	MentionWarnings []MentionWarning `json:"mention_warnings"`

	// Mentions The L1 form of the Mention entries that L1 can express on the Destination's type (C-28.FR-5), removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions MentionSettings `json:"mentions"`

	// OwningTeam The Team that owns the Destination, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`
	Routes     []EntityRef                `json:"routes"`

	// Teams The Teams that name the Destination as a Destination of the Team, by name.
	Teams         []TeamRef           `json:"teams"`
	TemplateError *TemplateErrorState `json:"template_error,omitempty"`
}

DestinationReadFields defines model for DestinationReadFields.

type DestinationRef

type DestinationRef struct {
	Health DestinationHealth `json:"health"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId        `json:"id"`
	Name string          `json:"name"`
	Type DestinationType `json:"type"`
}

DestinationRef defines model for DestinationRef.

type DestinationSecret

type DestinationSecret struct {
	Name      string                       `json:"name"`
	Set       bool                         `json:"set"`
	UpdatedAt nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
}

DestinationSecret A named Secret of an outgoing webhook Destination, referenced as `{{ .Secrets.<name> }}`.

type DestinationSecretInput

type DestinationSecretInput struct {
	// Value Write-only Secret.
	Value *string `json:"value,omitempty"`
}

DestinationSecretInput defines model for DestinationSecretInput.

type DestinationSecretList

type DestinationSecretList struct {
	Items []DestinationSecret `json:"items"`
}

DestinationSecretList defines model for DestinationSecretList.

type DestinationTestRequest

type DestinationTestRequest struct {
	Source TestSource `json:"source"`
}

DestinationTestRequest defines model for DestinationTestRequest.

type DestinationTestResult

type DestinationTestResult struct {
	// Health Health after the test; a successful test of a Broken Destination makes it healthy.
	Health DestinationHealth `json:"health"`

	// RequestLogRun The check run of the requests this test made (`CR…`); `listRequestLog` with `run` and the Destination lists them.
	RequestLogRun PublicId `json:"request_log_run"`

	// Steps The `message` step for a messenger — alone for Telegram, a Bridge and Slack — followed by the `press` step for Mattermost; for an outgoing webhook the `event` step and the `create` step, in this order, as the Destination's mode requires.
	Steps []TestStep `json:"steps"`
}

DestinationTestResult defines model for DestinationTestResult.

type DestinationType

type DestinationType string

DestinationType defines model for DestinationType.

const (
	DestinationTypeBridge     DestinationType = "bridge"
	DestinationTypeMattermost DestinationType = "mattermost"
	DestinationTypeSlack      DestinationType = "slack"
	DestinationTypeTelegram   DestinationType = "telegram"
	DestinationTypeWebhook    DestinationType = "webhook"
)

Defines values for DestinationType.

func (DestinationType) Valid

func (e DestinationType) Valid() bool

Valid indicates whether the value is a known member of the DestinationType enum.

type DestinationWarning

type DestinationWarning struct {
	// Field JSON Pointer to the header or URL holding a literal credential; store it as a Secret instead.
	Field nullable.Nullable[string]    `json:"field,omitempty"`
	Kind  DestinationWarningKind       `json:"kind"`
	Since nullable.Nullable[time.Time] `json:"since,omitempty"`
}

DestinationWarning defines model for DestinationWarning.

type DestinationWarningKind

type DestinationWarningKind string

DestinationWarningKind defines model for DestinationWarning.Kind.

const (
	LiteralCredential           DestinationWarningKind = "literal_credential"
	PreviousSigningSecretActive DestinationWarningKind = "previous_signing_secret_active"
)

Defines values for DestinationWarningKind.

func (DestinationWarningKind) Valid

func (e DestinationWarningKind) Valid() bool

Valid indicates whether the value is a known member of the DestinationWarningKind enum.

type DisableServiceAccountResponse

type DisableServiceAccountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceAccount
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DisableServiceAccountResponse429Headers
}

func ParseDisableServiceAccountResponse

func ParseDisableServiceAccountResponse(rsp *http.Response) (*DisableServiceAccountResponse, error)

ParseDisableServiceAccountResponse parses an HTTP response from a DisableServiceAccountWithResponse call

func (DisableServiceAccountResponse) ContentType

func (r DisableServiceAccountResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DisableServiceAccountResponse) GetApplicationproblemJSON401

func (r DisableServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DisableServiceAccountResponse) GetApplicationproblemJSON403

func (r DisableServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DisableServiceAccountResponse) GetApplicationproblemJSON404

func (r DisableServiceAccountResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DisableServiceAccountResponse) GetApplicationproblemJSON409

func (r DisableServiceAccountResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DisableServiceAccountResponse) GetApplicationproblemJSON429

func (r DisableServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DisableServiceAccountResponse) GetBody

func (r DisableServiceAccountResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DisableServiceAccountResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DisableServiceAccountResponse) Status

Status returns HTTPResponse.Status

func (DisableServiceAccountResponse) StatusCode

func (r DisableServiceAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisableServiceAccountResponse429Headers

type DisableServiceAccountResponse429Headers struct {
	RetryAfter *int
}

DisableServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for DisableServiceAccount

type DisableUserResponse

type DisableUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DisableUserResponse429Headers
}

func ParseDisableUserResponse

func ParseDisableUserResponse(rsp *http.Response) (*DisableUserResponse, error)

ParseDisableUserResponse parses an HTTP response from a DisableUserWithResponse call

func (DisableUserResponse) ContentType

func (r DisableUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DisableUserResponse) GetApplicationproblemJSON401

func (r DisableUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DisableUserResponse) GetApplicationproblemJSON403

func (r DisableUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DisableUserResponse) GetApplicationproblemJSON404

func (r DisableUserResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DisableUserResponse) GetApplicationproblemJSON409

func (r DisableUserResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DisableUserResponse) GetApplicationproblemJSON429

func (r DisableUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DisableUserResponse) GetBody

func (r DisableUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DisableUserResponse) GetJSON200

func (r DisableUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DisableUserResponse) Status

func (r DisableUserResponse) Status() string

Status returns HTTPResponse.Status

func (DisableUserResponse) StatusCode

func (r DisableUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisableUserResponse429Headers

type DisableUserResponse429Headers struct {
	RetryAfter *int
}

DisableUserResponse429Headers the declared response headers of an HTTP 429 response for DisableUser

type DismissRouteSuggestionResponse

type DismissRouteSuggestionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DismissRouteSuggestionResponse429Headers
}

func ParseDismissRouteSuggestionResponse

func ParseDismissRouteSuggestionResponse(rsp *http.Response) (*DismissRouteSuggestionResponse, error)

ParseDismissRouteSuggestionResponse parses an HTTP response from a DismissRouteSuggestionWithResponse call

func (DismissRouteSuggestionResponse) ContentType

func (r DismissRouteSuggestionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DismissRouteSuggestionResponse) GetApplicationproblemJSON401

func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DismissRouteSuggestionResponse) GetApplicationproblemJSON403

func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DismissRouteSuggestionResponse) GetApplicationproblemJSON404

func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DismissRouteSuggestionResponse) GetApplicationproblemJSON409

func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DismissRouteSuggestionResponse) GetApplicationproblemJSON429

func (r DismissRouteSuggestionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DismissRouteSuggestionResponse) GetBody

func (r DismissRouteSuggestionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DismissRouteSuggestionResponse) Status

Status returns HTTPResponse.Status

func (DismissRouteSuggestionResponse) StatusCode

func (r DismissRouteSuggestionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DismissRouteSuggestionResponse429Headers

type DismissRouteSuggestionResponse429Headers struct {
	RetryAfter *int
}

DismissRouteSuggestionResponse429Headers the declared response headers of an HTTP 429 response for DismissRouteSuggestion

type DurationStats

type DurationStats struct {
	Count         int                    `json:"count"`
	MedianSeconds nullable.Nullable[int] `json:"median_seconds,omitempty"`
	P95Seconds    nullable.Nullable[int] `json:"p95_seconds,omitempty"`
}

DurationStats defines model for DurationStats.

type EnableServiceAccountResponse

type EnableServiceAccountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceAccount
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *EnableServiceAccountResponse429Headers
}

func ParseEnableServiceAccountResponse

func ParseEnableServiceAccountResponse(rsp *http.Response) (*EnableServiceAccountResponse, error)

ParseEnableServiceAccountResponse parses an HTTP response from a EnableServiceAccountWithResponse call

func (EnableServiceAccountResponse) ContentType

func (r EnableServiceAccountResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EnableServiceAccountResponse) GetApplicationproblemJSON401

func (r EnableServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (EnableServiceAccountResponse) GetApplicationproblemJSON403

func (r EnableServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (EnableServiceAccountResponse) GetApplicationproblemJSON404

func (r EnableServiceAccountResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (EnableServiceAccountResponse) GetApplicationproblemJSON409

func (r EnableServiceAccountResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (EnableServiceAccountResponse) GetApplicationproblemJSON429

func (r EnableServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (EnableServiceAccountResponse) GetBody

func (r EnableServiceAccountResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EnableServiceAccountResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (EnableServiceAccountResponse) Status

Status returns HTTPResponse.Status

func (EnableServiceAccountResponse) StatusCode

func (r EnableServiceAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnableServiceAccountResponse429Headers

type EnableServiceAccountResponse429Headers struct {
	RetryAfter *int
}

EnableServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for EnableServiceAccount

type EnableUserResponse

type EnableUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *EnableUserResponse429Headers
}

func ParseEnableUserResponse

func ParseEnableUserResponse(rsp *http.Response) (*EnableUserResponse, error)

ParseEnableUserResponse parses an HTTP response from a EnableUserWithResponse call

func (EnableUserResponse) ContentType

func (r EnableUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EnableUserResponse) GetApplicationproblemJSON401

func (r EnableUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (EnableUserResponse) GetApplicationproblemJSON403

func (r EnableUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (EnableUserResponse) GetApplicationproblemJSON404

func (r EnableUserResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (EnableUserResponse) GetApplicationproblemJSON409

func (r EnableUserResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (EnableUserResponse) GetApplicationproblemJSON429

func (r EnableUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (EnableUserResponse) GetBody

func (r EnableUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EnableUserResponse) GetJSON200

func (r EnableUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (EnableUserResponse) Status

func (r EnableUserResponse) Status() string

Status returns HTTPResponse.Status

func (EnableUserResponse) StatusCode

func (r EnableUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnableUserResponse429Headers

type EnableUserResponse429Headers struct {
	RetryAfter *int
}

EnableUserResponse429Headers the declared response headers of an HTTP 429 response for EnableUser

type EntityRef

type EntityRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId `json:"id"`
	Name string   `json:"name"`
}

EntityRef defines model for EntityRef.

type EscalationChain

type EscalationChain struct {
	CreatedAt   time.Time `json:"created_at"`
	Description string    `json:"description"`

	// Destinations The Destinations the chain writes in, by name, with their health — those of the Routes and of the Teams that name it (C-32.FR-8), as configured.
	Destinations []DestinationRef `json:"destinations"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// ManagedBy The name of the tool that keeps the chain as code, such as `terraform`, or null when none does (C-33.FR-11); see `EscalationChainInput`.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// OwningTeam The Team that owns the chain, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`

	// OwningTeamId A `public_id` in the format of `PublicId`, or null.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id"`

	// Referrers The Routes and the Teams that are not deleted and name the chain, by name, each with its Severity condition.
	Referrers EscalationChainReferrers `json:"referrers"`
	Steps     []EscalationStep         `json:"steps"`

	// Warnings What the chain cannot do — `pages_nobody` first — then what its steps cannot do, by step.
	Warnings []EscalationChainWarning `json:"warnings"`
}

EscalationChain defines model for EscalationChain.

type EscalationChainId

type EscalationChainId = PublicId

EscalationChainId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type EscalationChainInput

type EscalationChainInput struct {
	// Description Omit it on an update to keep it.
	Description *string `json:"description,omitempty"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Name Unique in the Organization, ignoring case.
	Name string `json:"name"`

	// OwningTeamId The Team that owns the chain (C-25.FR-2), whose Working hours its steps use; `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`

	// Steps The steps in their order, at most 20 (`escalation.limits`, else `422` `out_of_range` at `/steps`), replaced as a whole.
	Steps []EscalationStepInput `json:"steps"`
}

EscalationChainInput defines model for EscalationChainInput.

type EscalationChainList

type EscalationChainList struct {
	Items      []EscalationChain         `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

EscalationChainList defines model for EscalationChainList.

type EscalationChainRef

type EscalationChainRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId `json:"id"`
	Name string   `json:"name"`

	// OwningTeam The Team that owns the chain, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`
}

EscalationChainRef An Escalation chain by name, with its owning Team.

type EscalationChainReferrers

type EscalationChainReferrers struct {
	Routes []EscalationChainRouteReferrer `json:"routes"`
	Teams  []EscalationChainTeamReferrer  `json:"teams"`
}

EscalationChainReferrers The Routes and the Teams that are not deleted and name the chain, by name, each with its Severity condition.

type EscalationChainRouteReferrer

type EscalationChainRouteReferrer struct {
	Route EntityRef `json:"route"`

	// SeverityCondition The Severity condition of a Destination of a Route or a Team (C-26.FR-1), checked against the Severity level of the Alert Group, the highest level of its firing Alerts raised to the Route's Minimum severity. `any` meets every level, `critical` only critical, `below_critical` every level but critical.
	SeverityCondition SeverityCondition `json:"severity_condition"`
}

EscalationChainRouteReferrer defines model for EscalationChainRouteReferrer.

type EscalationChainTeamReferrer

type EscalationChainTeamReferrer struct {
	// SeverityCondition The Severity condition of a Destination of a Route or a Team (C-26.FR-1), checked against the Severity level of the Alert Group, the highest level of its firing Alerts raised to the Route's Minimum severity. `any` meets every level, `critical` only critical, `below_critical` every level but critical.
	SeverityCondition SeverityCondition `json:"severity_condition"`

	// Team The Team an object names, with its slug; `deleted` is true for a Team that was deleted since.
	Team TeamRef `json:"team"`
}

EscalationChainTeamReferrer defines model for EscalationChainTeamReferrer.

type EscalationChainWarning

type EscalationChainWarning struct {
	// Destination With `everyone_unsupported`, the Destination that cannot mention; with `destination_deleted`, the deleted Destination; null with the other kinds.
	Destination nullable.Nullable[EntityRef] `json:"destination"`

	// Kind What the chain or one of its steps cannot do (C-32.FR-17): `everyone_unsupported`, a `page_team` step whose Team mention or word for everyone the Connection of one of the chain's Destinations cannot mention, such as a Telegram Destination; `gateway_deleted`, a `call` step whose Notification gateway was deleted or is no Notification gateway any more; `destination_deleted`, a `webhook` step whose Destination was deleted; `team_deleted`, a `page_team` step whose Team — the one it names, else the chain's owning Team — was deleted; `pages_nobody`, a chain none of whose steps Pages anyone — no `page_on_call`, `page_people`, `page_team` or `call` step, such as an empty chain or one of waits, repeats and webhooks — the only warning of the chain as a whole, with `step` null.
	Kind EscalationChainWarningKind `json:"kind"`

	// Reason With `everyone_unsupported`, why the Connection cannot mention; null otherwise.
	Reason nullable.Nullable[MentionUnavailableReason] `json:"reason"`

	// Step The number of the step; null with `pages_nobody`, which concerns the chain as a whole.
	Step nullable.Nullable[int] `json:"step"`
}

EscalationChainWarning defines model for EscalationChainWarning.

type EscalationChainWarningKind

type EscalationChainWarningKind string

EscalationChainWarningKind What the chain or one of its steps cannot do (C-32.FR-17): `everyone_unsupported`, a `page_team` step whose Team mention or word for everyone the Connection of one of the chain's Destinations cannot mention, such as a Telegram Destination; `gateway_deleted`, a `call` step whose Notification gateway was deleted or is no Notification gateway any more; `destination_deleted`, a `webhook` step whose Destination was deleted; `team_deleted`, a `page_team` step whose Team — the one it names, else the chain's owning Team — was deleted; `pages_nobody`, a chain none of whose steps Pages anyone — no `page_on_call`, `page_people`, `page_team` or `call` step, such as an empty chain or one of waits, repeats and webhooks — the only warning of the chain as a whole, with `step` null.

const (
	EscalationChainWarningKindDestinationDeleted  EscalationChainWarningKind = "destination_deleted"
	EscalationChainWarningKindEveryoneUnsupported EscalationChainWarningKind = "everyone_unsupported"
	EscalationChainWarningKindGatewayDeleted      EscalationChainWarningKind = "gateway_deleted"
	EscalationChainWarningKindPagesNobody         EscalationChainWarningKind = "pages_nobody"
	EscalationChainWarningKindTeamDeleted         EscalationChainWarningKind = "team_deleted"
)

Defines values for EscalationChainWarningKind.

func (EscalationChainWarningKind) Valid

func (e EscalationChainWarningKind) Valid() bool

Valid indicates whether the value is a known member of the EscalationChainWarningKind enum.

type EscalationRun

type EscalationRun struct {
	// AlertGroup The Alert Group of a run.
	AlertGroup EscalationRunAlertGroup `json:"alert_group"`

	// EndedAt When it ran out or stopped; null while it runs.
	EndedAt nullable.Nullable[time.Time] `json:"ended_at"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id        PublicId  `json:"id"`
	StartedAt time.Time `json:"started_at"`

	// State The state of a run: `running`, `ran_out` once it passed its last step without an acknowledgement, `stopped` by Acknowledge, Snooze or Resolve.
	State EscalationRunState `json:"state"`

	// Steps The steps it made and skipped, in their order, each made one with its Pages; a repeat makes its steps again. A step is `skipped` here only as a whole; a person a step that was made skipped — a Viewer or a disabled User — is in the Timeline of the Alert Group as `escalation_step_skipped`. Once the details of the Alert Group are removed (C-09.FR-16) a run lists no steps, and so no Pages.
	Steps []EscalationRunStep `json:"steps"`

	// StoppedBy What stopped it; null while it runs and once it ran out.
	StoppedBy nullable.Nullable[EscalationRunStop] `json:"stopped_by"`
}

EscalationRun A run of an Escalation chain on an Alert Group, as "How it went" lists it, with the Pages of its steps.

type EscalationRunAlertGroup

type EscalationRunAlertGroup struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id            PublicId      `json:"id"`
	Number        int           `json:"number"`
	SeverityLevel SeverityLevel `json:"severity_level"`
	Title         string        `json:"title"`
}

EscalationRunAlertGroup The Alert Group of a run.

type EscalationRunList

type EscalationRunList struct {
	Items      []EscalationRun           `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

EscalationRunList defines model for EscalationRunList.

type EscalationRunPage

type EscalationRunPage struct {
	// Everyone The word for everyone in the chat that a `page_team` step wrote instead of a Team mention; null otherwise.
	Everyone nullable.Nullable[PageEveryone] `json:"everyone"`

	// Gateway The Notification gateway of a call, deleted ones included; null for a Page by Mention.
	Gateway nullable.Nullable[EntityRef] `json:"gateway"`

	// Kind `mention`, a Page by Mention in the Threads of the chain's Destinations; `call`, a call through a Notification gateway to the confirmed contact of its person (C-30.FR-4), from a step "Call through a Notification gateway" or a call action of a Notification rule. Later versions add kinds; clients show an unknown one as it is.
	Kind    EscalationRunPageKind    `json:"kind"`
	Outcome EscalationRunPageOutcome `json:"outcome"`

	// Reason Why a Page reached its person nowhere (`page_not_delivered`): the Notification gateway refused the call (`call_refused`), answered what Muster cannot classify (`call_unknown`), or kept failing until the retry budget was used (`call_budget_used`); the person had no confirmed contact at the gateway at the first attempt (`no_confirmed_contact`); the gateway was deleted, or is no Notification gateway any more, before the call was sent (`gateway_deleted`); or the call came due while the gateway was Broken, and is never sent (`gateway_broken`). A Page by Mention (C-32.FR-10): none of its chain's Destinations has the Alert Group's Root message (`no_root_message`), the person has no Account link in the Identity space of any of them (`no_account_link`), or every Thread reply that would mention them ended Not delivered, was withheld while its Destination was Broken, or was never sent because its Root message ended Not delivered (`not_delivered`). Null for the other events of the kind. Later versions add reasons; clients show an unknown one as it is.
	Reason nullable.Nullable[PageNotDeliveredReason] `json:"reason"`

	// Team The Team whose Team mention a `page_team` step wrote; null otherwise.
	Team nullable.Nullable[TeamRef] `json:"team"`

	// Users The people the Page names; empty for a Page of a Team or of everyone in the chat.
	Users []UserRef `json:"users"`
}

EscalationRunPage A Page a step of a run made (C-32.FR-18): its kind, the people it names, or the Team or the word for everyone in the chat of a `page_team` step, the Notification gateway of a call, and its outcome (C-32.FR-10): `pending` until every Thread reply of it ended, even after one reached someone; then `delivered` when one reached a person it names (or, for a Team or everyone in the chat, when one was delivered), else `not_delivered`. A Page that could reach nobody when it was made ends `not_delivered` at once. A call is `pending` until it ends, `delivered` once the gateway accepted it, and `not_delivered` when it ended Not delivered, with its reason, or when it was not made because the chain or the rule that Paged stopped first, as on an acknowledgement, without one (C-30.FR-4). `reason`, only with `not_delivered`: for a Page of people that ended at once, the one reason all its people missed it for, such as `no_account_link`, null when they missed it for several; for one whose Thread replies ended without reaching anyone, `not_delivered`; for a call, why it ended Not delivered, such as `call_refused`; null for a Page of a Team or of everyone in the chat.

type EscalationRunPageKind

type EscalationRunPageKind string

EscalationRunPageKind `mention`, a Page by Mention in the Threads of the chain's Destinations; `call`, a call through a Notification gateway to the confirmed contact of its person (C-30.FR-4), from a step "Call through a Notification gateway" or a call action of a Notification rule. Later versions add kinds; clients show an unknown one as it is.

const (
	EscalationRunPageKindCall    EscalationRunPageKind = "call"
	EscalationRunPageKindMention EscalationRunPageKind = "mention"
)

Defines values for EscalationRunPageKind.

func (EscalationRunPageKind) Valid

func (e EscalationRunPageKind) Valid() bool

Valid indicates whether the value is a known member of the EscalationRunPageKind enum.

type EscalationRunPageOutcome

type EscalationRunPageOutcome string

EscalationRunPageOutcome defines model for EscalationRunPage.Outcome.

const (
	EscalationRunPageOutcomeDelivered    EscalationRunPageOutcome = "delivered"
	EscalationRunPageOutcomeNotDelivered EscalationRunPageOutcome = "not_delivered"
	EscalationRunPageOutcomePending      EscalationRunPageOutcome = "pending"
)

Defines values for EscalationRunPageOutcome.

func (EscalationRunPageOutcome) Valid

func (e EscalationRunPageOutcome) Valid() bool

Valid indicates whether the value is a known member of the EscalationRunPageOutcome enum.

type EscalationRunSource

type EscalationRunSource struct {
	Kind EscalationRunSourceKind `json:"kind"`

	// Team The Team, for `team`; null for `route`.
	Team nullable.Nullable[TeamRef] `json:"team"`
}

EscalationRunSource What named the chain of a run on an Alert Group, its Route or one of its Teams.

type EscalationRunSourceKind

type EscalationRunSourceKind string

EscalationRunSourceKind defines model for EscalationRunSource.Kind.

const (
	EscalationRunSourceKindRoute EscalationRunSourceKind = "route"
	EscalationRunSourceKindTeam  EscalationRunSourceKind = "team"
)

Defines values for EscalationRunSourceKind.

func (EscalationRunSourceKind) Valid

func (e EscalationRunSourceKind) Valid() bool

Valid indicates whether the value is a known member of the EscalationRunSourceKind enum.

type EscalationRunState

type EscalationRunState string

EscalationRunState The state of a run: `running`, `ran_out` once it passed its last step without an acknowledgement, `stopped` by Acknowledge, Snooze or Resolve.

const (
	RanOut  EscalationRunState = "ran_out"
	Running EscalationRunState = "running"
	Stopped EscalationRunState = "stopped"
)

Defines values for EscalationRunState.

func (EscalationRunState) Valid

func (e EscalationRunState) Valid() bool

Valid indicates whether the value is a known member of the EscalationRunState enum.

type EscalationRunStep

type EscalationRunStep struct {
	At time.Time `json:"at"`

	// Kind The kind of an Escalation step (C-32.FR-3): Page the On-call of a Schedule (`page_on_call`), Page chosen people (`page_people`), Page a whole Team or everyone in the chat (`page_team`), call through a Notification gateway (`call`), wait (`wait`), send to an outgoing webhook (`webhook`) and repeat from an earlier step (`repeat`).
	Kind    EscalationStepKind       `json:"kind"`
	Number  int                      `json:"number"`
	Outcome EscalationRunStepOutcome `json:"outcome"`

	// Pages The Pages the step made, in the order they were made — its first Mentions, then the later Mentions of the Notification rules it started, which are Pages of the step that started them (C-31.FR-3); empty for a skipped step and for a step that Pages nobody, such as a wait.
	Pages []EscalationRunPage `json:"pages"`

	// Reason Why a step was skipped (`escalation_step_skipped`, C-32.FR-14): outside the Working hours of its chain (`outside_working_hours`), for a Severity level its condition does not meet (`severity`), in a gap of the Schedule it Pages (`schedule_gap`), for a person it names who became a Viewer (`viewer`) or was disabled (`disabled`) since it was saved, or for a step "Send to an outgoing webhook" whose Destination was deleted (`destination_deleted`) or is no longer an outgoing webhook in the mode events or both (`webhook_events_required`), or for a step "Page the whole Team" that none of its chain's Destinations can mention, as a Telegram channel cannot (`no_mention_possible`), or for a step "Call through a Notification gateway" or a call action of a Notification rule whose gateway was deleted or is no Notification gateway any more (`gateway_deleted`), or for a person it would call who has no confirmed contact there (`no_confirmed_contact`), with the person in `paged_users` (C-32.FR-14, C-30.FR-9, C-31.FR-3). Null when the step was made. Later versions add reasons; clients show an unknown one as it is.
	Reason nullable.Nullable[EscalationSkipReason] `json:"reason"`
}

EscalationRunStep A step a run made or skipped, with the reason of a skip and the Pages of a made step.

type EscalationRunStepOutcome

type EscalationRunStepOutcome string

EscalationRunStepOutcome defines model for EscalationRunStep.Outcome.

const (
	EscalationRunStepOutcomeMade    EscalationRunStepOutcome = "made"
	EscalationRunStepOutcomeSkipped EscalationRunStepOutcome = "skipped"
)

Defines values for EscalationRunStepOutcome.

func (EscalationRunStepOutcome) Valid

func (e EscalationRunStepOutcome) Valid() bool

Valid indicates whether the value is a known member of the EscalationRunStepOutcome enum.

type EscalationRunStop

type EscalationRunStop struct {
	Actor       nullable.Nullable[ActorRef]       `json:"actor"`
	Command     EscalationRunStopCommand          `json:"command"`
	Destination nullable.Nullable[DestinationRef] `json:"destination"`
}

EscalationRunStop What stopped a run: the Command `acknowledge`, `snooze` or `resolve`, or `started_over` for a run that a start-over of the chains found still running; the person who ran it, null for Muster, as for a Resolve by the Alerts; and the Destination whose message the Command came from, which this version does not record yet: always null.

type EscalationRunStopCommand

type EscalationRunStopCommand string

EscalationRunStopCommand defines model for EscalationRunStop.Command.

const (
	EscalationRunStopCommandAcknowledge EscalationRunStopCommand = "acknowledge"
	EscalationRunStopCommandResolve     EscalationRunStopCommand = "resolve"
	EscalationRunStopCommandSnooze      EscalationRunStopCommand = "snooze"
	EscalationRunStopCommandStartedOver EscalationRunStopCommand = "started_over"
)

Defines values for EscalationRunStopCommand.

func (EscalationRunStopCommand) Valid

func (e EscalationRunStopCommand) Valid() bool

Valid indicates whether the value is a known member of the EscalationRunStopCommand enum.

type EscalationSkipReason

type EscalationSkipReason string

EscalationSkipReason Why a step was skipped (`escalation_step_skipped`, C-32.FR-14): outside the Working hours of its chain (`outside_working_hours`), for a Severity level its condition does not meet (`severity`), in a gap of the Schedule it Pages (`schedule_gap`), for a person it names who became a Viewer (`viewer`) or was disabled (`disabled`) since it was saved, or for a step "Send to an outgoing webhook" whose Destination was deleted (`destination_deleted`) or is no longer an outgoing webhook in the mode events or both (`webhook_events_required`), or for a step "Page the whole Team" that none of its chain's Destinations can mention, as a Telegram channel cannot (`no_mention_possible`), or for a step "Call through a Notification gateway" or a call action of a Notification rule whose gateway was deleted or is no Notification gateway any more (`gateway_deleted`), or for a person it would call who has no confirmed contact there (`no_confirmed_contact`), with the person in `paged_users` (C-32.FR-14, C-30.FR-9, C-31.FR-3). Null when the step was made. Later versions add reasons; clients show an unknown one as it is.

const (
	EscalationSkipReasonDestinationDeleted    EscalationSkipReason = "destination_deleted"
	EscalationSkipReasonDisabled              EscalationSkipReason = "disabled"
	EscalationSkipReasonGatewayDeleted        EscalationSkipReason = "gateway_deleted"
	EscalationSkipReasonLessThannil           EscalationSkipReason = "<nil>"
	EscalationSkipReasonNoConfirmedContact    EscalationSkipReason = "no_confirmed_contact"
	EscalationSkipReasonNoMentionPossible     EscalationSkipReason = "no_mention_possible"
	EscalationSkipReasonOutsideWorkingHours   EscalationSkipReason = "outside_working_hours"
	EscalationSkipReasonScheduleGap           EscalationSkipReason = "schedule_gap"
	EscalationSkipReasonSeverity              EscalationSkipReason = "severity"
	EscalationSkipReasonViewer                EscalationSkipReason = "viewer"
	EscalationSkipReasonWebhookEventsRequired EscalationSkipReason = "webhook_events_required"
)

Defines values for EscalationSkipReason.

func (EscalationSkipReason) Valid

func (e EscalationSkipReason) Valid() bool

Valid indicates whether the value is a known member of the EscalationSkipReason enum.

type EscalationStep

type EscalationStep struct {
	// CallTarget With `call`, whom it calls — the On-call of `schedule_id` or the people of `user_ids`.
	CallTarget *EscalationStepCallTarget `json:"call_target,omitempty"`

	// Destination The Destination of `destination_id`, deleted ones included.
	Destination *EntityRef `json:"destination,omitempty"`

	// DestinationId With `webhook`, an outgoing webhook Destination in the mode `events` or `both`, else `422` `webhook_events_required` at it.
	DestinationId *PublicId `json:"destination_id,omitempty"`

	// Everyone With `page_team` instead of `team_id`, the word for everyone in the chat.
	Everyone *EscalationStepEveryone `json:"everyone,omitempty"`

	// Gateway The Notification gateway of `gateway_id`, deleted ones included.
	Gateway *EntityRef `json:"gateway,omitempty"`

	// GatewayId With `call`, the Notification gateway it calls through, required while several exist; omitted while one exists, it is that one, which the read names. A call step while no Notification gateway exists is refused with `422` `gateway_required` at the step (C-30.FR-9).
	GatewayId *PublicId `json:"gateway_id,omitempty"`

	// Importance With `page_on_call` and `page_people`; omitted, `normal`.
	Importance *PageImportance `json:"importance,omitempty"`

	// Kind The kind of an Escalation step (C-32.FR-3): Page the On-call of a Schedule (`page_on_call`), Page chosen people (`page_people`), Page a whole Team or everyone in the chat (`page_team`), call through a Notification gateway (`call`), wait (`wait`), send to an outgoing webhook (`webhook`) and repeat from an earlier step (`repeat`).
	Kind EscalationStepKind `json:"kind"`

	// Number The step's number, from 1, which `repeat_from` and the warnings use.
	Number int `json:"number"`

	// RepeatFrom With `repeat`, the number of an earlier step, from 1, to go back to; else `422` `out_of_range`.
	RepeatFrom *int `json:"repeat_from,omitempty"`

	// RepeatTimes With `repeat`, how many times it goes back, from 1 to 10 (`escalation.limits`).
	RepeatTimes *int `json:"repeat_times,omitempty"`

	// Schedule The Schedule of `schedule_id`.
	Schedule *ScheduleRef `json:"schedule,omitempty"`

	// ScheduleId With `page_on_call`, and with `call` and the `call_target` `on_call`.
	ScheduleId *PublicId `json:"schedule_id,omitempty"`

	// SeverityCondition With the steps that Page or send; omitted, `any`.
	SeverityCondition *SeverityCondition `json:"severity_condition,omitempty"`

	// Team With `page_team` without `everyone`, the Team it Pages — the one `team_id` names, else the chain's owning Team.
	Team *TeamRef `json:"team,omitempty"`

	// TeamId With `page_team`, the Team whose Team mention the step writes; omit it, and `everyone`, for the chain's owning Team.
	TeamId *PublicId `json:"team_id,omitempty"`

	// UserIds With `page_people`, and with `call` and the `call_target` `people`; at least one, each once. A Viewer or a disabled User that the save adds is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`; one the stored steps already name passes, and is skipped at run time while they may not be Paged (C-32.FR-14).
	UserIds *[]PublicId `json:"user_ids,omitempty"`

	// Users The people of `user_ids`, in their order.
	Users *[]UserRef `json:"users,omitempty"`

	// WaitSeconds With `wait`, a whole number of minutes from 1 to 1,440 (`escalation.limits`) — a multiple of 60 from 60 to 86400 — else `422` `out_of_range` at it.
	WaitSeconds *int `json:"wait_seconds,omitempty"`

	// WorkingHoursOnly With the steps that Page or send; omitted, false. True makes the step only in the Working hours of the chain's owning Team, else the Organization's (C-25.FR-9).
	WorkingHoursOnly *bool `json:"working_hours_only,omitempty"`
}

EscalationStep defines model for EscalationStep.

type EscalationStepCallTarget

type EscalationStepCallTarget string

EscalationStepCallTarget With `call`, whom it calls — the On-call of `schedule_id` or the people of `user_ids`.

const (
	EscalationStepCallTargetOnCall EscalationStepCallTarget = "on_call"
	EscalationStepCallTargetPeople EscalationStepCallTarget = "people"
)

Defines values for EscalationStepCallTarget.

func (EscalationStepCallTarget) Valid

func (e EscalationStepCallTarget) Valid() bool

Valid indicates whether the value is a known member of the EscalationStepCallTarget enum.

type EscalationStepEveryone

type EscalationStepEveryone string

EscalationStepEveryone With `page_team` instead of `team_id`, the word for everyone in the chat.

const (
	EscalationStepEveryoneAll      EscalationStepEveryone = "all"
	EscalationStepEveryoneChannel  EscalationStepEveryone = "channel"
	EscalationStepEveryoneEveryone EscalationStepEveryone = "everyone"
	EscalationStepEveryoneHere     EscalationStepEveryone = "here"
)

Defines values for EscalationStepEveryone.

func (EscalationStepEveryone) Valid

func (e EscalationStepEveryone) Valid() bool

Valid indicates whether the value is a known member of the EscalationStepEveryone enum.

type EscalationStepInput

type EscalationStepInput struct {
	// CallTarget With `call`, whom it calls — the On-call of `schedule_id` or the people of `user_ids`.
	CallTarget *EscalationStepInputCallTarget `json:"call_target,omitempty"`

	// DestinationId With `webhook`, an outgoing webhook Destination in the mode `events` or `both`, else `422` `webhook_events_required` at it.
	DestinationId *PublicId `json:"destination_id,omitempty"`

	// Everyone With `page_team` instead of `team_id`, the word for everyone in the chat.
	Everyone *EscalationStepInputEveryone `json:"everyone,omitempty"`

	// GatewayId With `call`, the Notification gateway it calls through, required while several exist; omitted while one exists, it is that one, which the read names. A call step while no Notification gateway exists is refused with `422` `gateway_required` at the step (C-30.FR-9).
	GatewayId *PublicId `json:"gateway_id,omitempty"`

	// Importance With `page_on_call` and `page_people`; omitted, `normal`.
	Importance *PageImportance `json:"importance,omitempty"`

	// Kind The kind of an Escalation step (C-32.FR-3): Page the On-call of a Schedule (`page_on_call`), Page chosen people (`page_people`), Page a whole Team or everyone in the chat (`page_team`), call through a Notification gateway (`call`), wait (`wait`), send to an outgoing webhook (`webhook`) and repeat from an earlier step (`repeat`).
	Kind EscalationStepKind `json:"kind"`

	// RepeatFrom With `repeat`, the number of an earlier step, from 1, to go back to; else `422` `out_of_range`.
	RepeatFrom *int `json:"repeat_from,omitempty"`

	// RepeatTimes With `repeat`, how many times it goes back, from 1 to 10 (`escalation.limits`).
	RepeatTimes *int `json:"repeat_times,omitempty"`

	// ScheduleId With `page_on_call`, and with `call` and the `call_target` `on_call`.
	ScheduleId *PublicId `json:"schedule_id,omitempty"`

	// SeverityCondition With the steps that Page or send; omitted, `any`.
	SeverityCondition *SeverityCondition `json:"severity_condition,omitempty"`

	// TeamId With `page_team`, the Team whose Team mention the step writes; omit it, and `everyone`, for the chain's owning Team.
	TeamId *PublicId `json:"team_id,omitempty"`

	// UserIds With `page_people`, and with `call` and the `call_target` `people`; at least one, each once. A Viewer or a disabled User that the save adds is refused with `422` `not_pageable` at `/steps/{i}/user_ids/{j}`, with the `reason`; one the stored steps already name passes, and is skipped at run time while they may not be Paged (C-32.FR-14).
	UserIds *[]PublicId `json:"user_ids,omitempty"`

	// WaitSeconds With `wait`, a whole number of minutes from 1 to 1,440 (`escalation.limits`) — a multiple of 60 from 60 to 86400 — else `422` `out_of_range` at it.
	WaitSeconds *int `json:"wait_seconds,omitempty"`

	// WorkingHoursOnly With the steps that Page or send; omitted, false. True makes the step only in the Working hours of the chain's owning Team, else the Organization's (C-25.FR-9).
	WorkingHoursOnly *bool `json:"working_hours_only,omitempty"`
}

EscalationStepInput An Escalation step with the fields of its kind only; a field another kind takes is refused with `422` `unsupported` at it, and a missing one with `required`. `page_on_call` takes `schedule_id`, a Schedule of any Team, and `importance`; `page_people` takes `user_ids` and `importance`; `page_team` takes `team_id` — the chain's owning Team when omitted, and required when the chain has none — or `everyone`; `call` takes `call_target` with `schedule_id` (`on_call`) or `user_ids` (`people`), and `gateway_id`; `wait` takes `wait_seconds`; `webhook` takes `destination_id`; `repeat` takes `repeat_from` and `repeat_times`. The steps that Page or send — every kind but `wait` and `repeat` — also take `working_hours_only` and `severity_condition`. An id that names nothing is refused with `422` `unknown_id` at it.

type EscalationStepInputCallTarget

type EscalationStepInputCallTarget string

EscalationStepInputCallTarget With `call`, whom it calls — the On-call of `schedule_id` or the people of `user_ids`.

const (
	EscalationStepInputCallTargetOnCall EscalationStepInputCallTarget = "on_call"
	EscalationStepInputCallTargetPeople EscalationStepInputCallTarget = "people"
)

Defines values for EscalationStepInputCallTarget.

func (EscalationStepInputCallTarget) Valid

Valid indicates whether the value is a known member of the EscalationStepInputCallTarget enum.

type EscalationStepInputEveryone

type EscalationStepInputEveryone string

EscalationStepInputEveryone With `page_team` instead of `team_id`, the word for everyone in the chat.

const (
	EscalationStepInputEveryoneAll      EscalationStepInputEveryone = "all"
	EscalationStepInputEveryoneChannel  EscalationStepInputEveryone = "channel"
	EscalationStepInputEveryoneEveryone EscalationStepInputEveryone = "everyone"
	EscalationStepInputEveryoneHere     EscalationStepInputEveryone = "here"
)

Defines values for EscalationStepInputEveryone.

func (EscalationStepInputEveryone) Valid

Valid indicates whether the value is a known member of the EscalationStepInputEveryone enum.

type EscalationStepKind

type EscalationStepKind string

EscalationStepKind The kind of an Escalation step (C-32.FR-3): Page the On-call of a Schedule (`page_on_call`), Page chosen people (`page_people`), Page a whole Team or everyone in the chat (`page_team`), call through a Notification gateway (`call`), wait (`wait`), send to an outgoing webhook (`webhook`) and repeat from an earlier step (`repeat`).

const (
	EscalationStepKindCall       EscalationStepKind = "call"
	EscalationStepKindPageOnCall EscalationStepKind = "page_on_call"
	EscalationStepKindPagePeople EscalationStepKind = "page_people"
	EscalationStepKindPageTeam   EscalationStepKind = "page_team"
	EscalationStepKindRepeat     EscalationStepKind = "repeat"
	EscalationStepKindWait       EscalationStepKind = "wait"
	EscalationStepKindWebhook    EscalationStepKind = "webhook"
)

Defines values for EscalationStepKind.

func (EscalationStepKind) Valid

func (e EscalationStepKind) Valid() bool

Valid indicates whether the value is a known member of the EscalationStepKind enum.

type EscalationStepPosition

type EscalationStepPosition struct {
	// Kind The kind of an Escalation step (C-32.FR-3): Page the On-call of a Schedule (`page_on_call`), Page chosen people (`page_people`), Page a whole Team or everyone in the chat (`page_team`), call through a Notification gateway (`call`), wait (`wait`), send to an outgoing webhook (`webhook`) and repeat from an earlier step (`repeat`).
	Kind   EscalationStepKind `json:"kind"`
	Number int                `json:"number"`
}

EscalationStepPosition A step of a run by its number and kind.

type ExtractionRule

type ExtractionRule struct {
	// Name Name under which the value is stored per Alert Group and Destination (`.Response.<name>`).
	Name string `json:"name"`

	// Path JSONPath into the response, for example `$.data.id`.
	Path string `json:"path"`
}

ExtractionRule defines model for ExtractionRule.

type Forbidden

type Forbidden = Problem

Forbidden RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type From

type From = time.Time

From defines model for From.

type GatewayContact

type GatewayContact struct {
	Confirmed   bool                         `json:"confirmed"`
	ConfirmedAt nullable.Nullable[time.Time] `json:"confirmed_at"`
	Connection  EntityRef                    `json:"connection"`
	Contact     string                       `json:"contact"`
	CreatedAt   time.Time                    `json:"created_at"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Replaces The confirmed contact of the same person and gateway that this one replaces once it is confirmed, until then the one called; null for a confirmed contact and without one.
	Replaces nullable.Nullable[NullablePublicId] `json:"replaces"`
}

GatewayContact A person's contact at a Notification gateway. A contact is personal data, not a Secret — its person, Admins and the gateway read it — and the Request log masks it. Only a confirmed contact is called.

type GatewayContactConfirm

type GatewayContactConfirm struct {
	// Code The code the gateway delivered.
	Code *string `json:"code,omitempty"`
}

GatewayContactConfirm defines model for GatewayContactConfirm.

type GatewayContactId

type GatewayContactId = PublicId

GatewayContactId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type GatewayContactInput

type GatewayContactInput struct {
	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Contact A phone number or another address the gateway understands, as text; trimmed, 1 to 200 characters. Muster does not check phone numbers.
	Contact string `json:"contact"`
}

GatewayContactInput defines model for GatewayContactInput.

type GatewayContactList

type GatewayContactList struct {
	Items []GatewayContact `json:"items"`
}

GatewayContactList defines model for GatewayContactList.

type GatewayRefused

type GatewayRefused = Problem

GatewayRefused RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type GatewayState

type GatewayState struct {
	Broken bool `json:"broken"`

	// BrokenSince When it became Broken; null while it is in order.
	BrokenSince nullable.Nullable[time.Time] `json:"broken_since"`

	// NextProbeAt When Muster probes it through `info` next; null while it is in order.
	NextProbeAt nullable.Nullable[time.Time] `json:"next_probe_at"`

	// Reason The error of the call that made it Broken, or of the last probe, or "unavailable after repeated failures: {last error}". Untrusted, from the remote side; Secrets, tokens and the contacts and texts of calls are masked. Null while it is in order.
	Reason nullable.Nullable[string] `json:"reason"`
}

GatewayState The state of a Notification gateway (C-30.FR-8). A call that the gateway answered with a Fatal error, or that used up `delivery.transient_budget`, makes it Broken; calls that come due while it is Broken end Not delivered with `gateway_broken` and are never sent after it recovers. Muster probes it through `info` every `delivery.broken_probe_interval`, and a successful probe or Connection check ends the state.

type GenerateSigningSecretResponse

type GenerateSigningSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *SigningSecretGenerated
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GenerateSigningSecretResponse429Headers
}

func ParseGenerateSigningSecretResponse

func ParseGenerateSigningSecretResponse(rsp *http.Response) (*GenerateSigningSecretResponse, error)

ParseGenerateSigningSecretResponse parses an HTTP response from a GenerateSigningSecretWithResponse call

func (GenerateSigningSecretResponse) ContentType

func (r GenerateSigningSecretResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GenerateSigningSecretResponse) GetApplicationproblemJSON401

func (r GenerateSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GenerateSigningSecretResponse) GetApplicationproblemJSON403

func (r GenerateSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GenerateSigningSecretResponse) GetApplicationproblemJSON404

func (r GenerateSigningSecretResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GenerateSigningSecretResponse) GetApplicationproblemJSON409

func (r GenerateSigningSecretResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (GenerateSigningSecretResponse) GetApplicationproblemJSON429

func (r GenerateSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GenerateSigningSecretResponse) GetBody

func (r GenerateSigningSecretResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GenerateSigningSecretResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (GenerateSigningSecretResponse) Status

Status returns HTTPResponse.Status

func (GenerateSigningSecretResponse) StatusCode

func (r GenerateSigningSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GenerateSigningSecretResponse429Headers

type GenerateSigningSecretResponse429Headers struct {
	RetryAfter *int
}

GenerateSigningSecretResponse429Headers the declared response headers of an HTTP 429 response for GenerateSigningSecret

type GetAlertGroupActorStatisticsParams

type GetAlertGroupActorStatisticsParams struct {
	// Route Only the Alert Groups of these Routes (`public_id`); in `getAlertGroupStatistics` with `group_by=route` also the items.
	Route *StatisticsRoute `form:"route,omitempty" json:"route,omitempty"`

	// Integration Only the Alert Groups with Alerts from these Integrations (`public_id`); in `getAlertGroupStatistics` with `group_by=integration` also the items, of those Integrations only.
	Integration *StatisticsIntegration `form:"integration,omitempty" json:"integration,omitempty"`

	// Severity Only these Severity levels.
	Severity *AgSeverity `form:"severity,omitempty" json:"severity,omitempty"`

	// Urgent Only Urgent (true) or non-Urgent (false) Alert Groups. An Alert Group is Urgent exactly when its Severity level is critical.
	Urgent *AgUrgent `form:"urgent,omitempty" json:"urgent,omitempty"`

	// Team Only Alert Groups that have this Team among their Teams (C-25.FR-6), deleted or not, by its `public_id`; or `mine` for those that have any Team of the calling User ("My Teams"; `422` `unsupported` for a Service account token). An unknown Team is `422` `unknown_id`.
	Team *AgTeam `form:"team,omitempty" json:"team,omitempty"`

	// Reopened True: Reopen count above zero.
	Reopened *AgReopened `form:"reopened,omitempty" json:"reopened,omitempty"`

	// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
	Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`

	// FirstAcknowledgedBy Only Alert Groups whose first acknowledgement this User made (C-09.FR-27), by the User's `public_id`, deleted Users included; or `me`, the calling User (`422` `unsupported` for a Service account token). Only Users acknowledge (C-04.FR-2), so an id that names no User, a Service account's included, is `422` `unknown_id`.
	FirstAcknowledgedBy *AgFirstAcknowledgedBy `form:"first_acknowledged_by,omitempty" json:"first_acknowledged_by,omitempty"`

	// From Start of the time range (RFC 3339, UTC).
	From *From `form:"from,omitempty" json:"from,omitempty"`

	// To End of the time range (RFC 3339, UTC).
	To *To `form:"to,omitempty" json:"to,omitempty"`
}

GetAlertGroupActorStatisticsParams defines parameters for GetAlertGroupActorStatistics.

type GetAlertGroupActorStatisticsResponse

type GetAlertGroupActorStatisticsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertGroupActorStatistics
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetAlertGroupActorStatisticsResponse429Headers
}

func ParseGetAlertGroupActorStatisticsResponse

func ParseGetAlertGroupActorStatisticsResponse(rsp *http.Response) (*GetAlertGroupActorStatisticsResponse, error)

ParseGetAlertGroupActorStatisticsResponse parses an HTTP response from a GetAlertGroupActorStatisticsWithResponse call

func (GetAlertGroupActorStatisticsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON400

func (r GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON401

func (r GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON403

func (r GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON422

func (r GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON429

func (r GetAlertGroupActorStatisticsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetAlertGroupActorStatisticsResponse) GetBody

GetBody returns the raw response body bytes

func (GetAlertGroupActorStatisticsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAlertGroupActorStatisticsResponse) Status

Status returns HTTPResponse.Status

func (GetAlertGroupActorStatisticsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAlertGroupActorStatisticsResponse429Headers

type GetAlertGroupActorStatisticsResponse429Headers struct {
	RetryAfter *int
}

GetAlertGroupActorStatisticsResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroupActorStatistics

type GetAlertGroupCountsParams

type GetAlertGroupCountsParams struct {
	// Route Only these Routes (`public_id`).
	Route *AgRoute `form:"route,omitempty" json:"route,omitempty"`

	// Integration Only Alert Groups with Alerts from these Integrations (`public_id`).
	Integration *AgIntegration `form:"integration,omitempty" json:"integration,omitempty"`

	// Severity Only these Severity levels.
	Severity *AgSeverity `form:"severity,omitempty" json:"severity,omitempty"`

	// Urgent Only Urgent (true) or non-Urgent (false) Alert Groups. An Alert Group is Urgent exactly when its Severity level is critical.
	Urgent *AgUrgent `form:"urgent,omitempty" json:"urgent,omitempty"`

	// ResolvedBy Only Alert Groups resolved by a person or by the system.
	ResolvedBy *AgResolvedBy `form:"resolved_by,omitempty" json:"resolved_by,omitempty"`

	// ResolveReason With `resolved_by=system`: the reason.
	ResolveReason *AgResolveReason `form:"resolve_reason,omitempty" json:"resolve_reason,omitempty"`

	// Reopened True: Reopen count above zero.
	Reopened *AgReopened `form:"reopened,omitempty" json:"reopened,omitempty"`

	// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
	Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`

	// Owner A user `public_id`, `me` (the calling User; `422` for a Service account token), or `none` for Alert Groups nobody owns, resolved ones included.
	Owner *AgOwner `form:"owner,omitempty" json:"owner,omitempty"`

	// Assignee Only the open Alert Groups where this User is an Assignee (C-32.FR-12, FR-18), by the User's `public_id`, deleted Users included; or `me`, the calling User (`422` `unsupported` for a Service account token). An Alert Group leaves it once acknowledged, snoozed or resolved. An id that names no User is `422` `unknown_id`.
	Assignee *AgAssignee `form:"assignee,omitempty" json:"assignee,omitempty"`

	// Team Only Alert Groups that have this Team among their Teams (C-25.FR-6), deleted or not, by its `public_id`; or `mine` for those that have any Team of the calling User ("My Teams"; `422` `unsupported` for a Service account token). An unknown Team is `422` `unknown_id`.
	Team *AgTeam `form:"team,omitempty" json:"team,omitempty"`

	// SnoozedNoEnd True: only Alert Groups snoozed with no end. False: every Alert Group but those.
	SnoozedNoEnd *AgSnoozedNoEnd `form:"snoozed_no_end,omitempty" json:"snoozed_no_end,omitempty"`

	// DeliveryProblem Any Destination is Not delivered, waiting for a Broken Destination, deleted in the messenger or has a Thread not attached.
	DeliveryProblem *AgDeliveryProblem `form:"delivery_problem,omitempty" json:"delivery_problem,omitempty"`

	// Unclaimed Only Unclaimed Alert Groups.
	Unclaimed *AgUnclaimed `form:"unclaimed,omitempty" json:"unclaimed,omitempty"`

	// From Start of the time range (RFC 3339, UTC).
	From *From `form:"from,omitempty" json:"from,omitempty"`

	// To End of the time range (RFC 3339, UTC).
	To *To `form:"to,omitempty" json:"to,omitempty"`

	// Q Search by text in the title or `summary`, case-insensitive and matching parts of words. A `#N` typed here is the same as `number`.
	Q *AgQuery `form:"q,omitempty" json:"q,omitempty"`
}

GetAlertGroupCountsParams defines parameters for GetAlertGroupCounts.

type GetAlertGroupCountsResponse

type GetAlertGroupCountsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertGroupCounts
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetAlertGroupCountsResponse429Headers
}

func ParseGetAlertGroupCountsResponse

func ParseGetAlertGroupCountsResponse(rsp *http.Response) (*GetAlertGroupCountsResponse, error)

ParseGetAlertGroupCountsResponse parses an HTTP response from a GetAlertGroupCountsWithResponse call

func (GetAlertGroupCountsResponse) ContentType

func (r GetAlertGroupCountsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAlertGroupCountsResponse) GetApplicationproblemJSON400

func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (GetAlertGroupCountsResponse) GetApplicationproblemJSON401

func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetAlertGroupCountsResponse) GetApplicationproblemJSON403

func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetAlertGroupCountsResponse) GetApplicationproblemJSON422

func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (GetAlertGroupCountsResponse) GetApplicationproblemJSON429

func (r GetAlertGroupCountsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetAlertGroupCountsResponse) GetBody

func (r GetAlertGroupCountsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAlertGroupCountsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAlertGroupCountsResponse) Status

Status returns HTTPResponse.Status

func (GetAlertGroupCountsResponse) StatusCode

func (r GetAlertGroupCountsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAlertGroupCountsResponse429Headers

type GetAlertGroupCountsResponse429Headers struct {
	RetryAfter *int
}

GetAlertGroupCountsResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroupCounts

type GetAlertGroupResponse

type GetAlertGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertGroup
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetAlertGroupResponse429Headers
}

func ParseGetAlertGroupResponse

func ParseGetAlertGroupResponse(rsp *http.Response) (*GetAlertGroupResponse, error)

ParseGetAlertGroupResponse parses an HTTP response from a GetAlertGroupWithResponse call

func (GetAlertGroupResponse) ContentType

func (r GetAlertGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAlertGroupResponse) GetApplicationproblemJSON401

func (r GetAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetAlertGroupResponse) GetApplicationproblemJSON403

func (r GetAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetAlertGroupResponse) GetApplicationproblemJSON404

func (r GetAlertGroupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetAlertGroupResponse) GetApplicationproblemJSON429

func (r GetAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetAlertGroupResponse) GetBody

func (r GetAlertGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAlertGroupResponse) GetJSON200

func (r GetAlertGroupResponse) GetJSON200() *AlertGroup

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAlertGroupResponse) Status

func (r GetAlertGroupResponse) Status() string

Status returns HTTPResponse.Status

func (GetAlertGroupResponse) StatusCode

func (r GetAlertGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAlertGroupResponse429Headers

type GetAlertGroupResponse429Headers struct {
	RetryAfter *int
}

GetAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroup

type GetAlertGroupStatisticsParams

type GetAlertGroupStatisticsParams struct {
	// GroupBy What one item stands for.
	GroupBy GetAlertGroupStatisticsParamsGroupBy `form:"group_by" json:"group_by"`

	// Route Only the Alert Groups of these Routes (`public_id`); in `getAlertGroupStatistics` with `group_by=route` also the items.
	Route *StatisticsRoute `form:"route,omitempty" json:"route,omitempty"`

	// Integration Only the Alert Groups with Alerts from these Integrations (`public_id`); in `getAlertGroupStatistics` with `group_by=integration` also the items, of those Integrations only.
	Integration *StatisticsIntegration `form:"integration,omitempty" json:"integration,omitempty"`

	// Severity Only these Severity levels.
	Severity *AgSeverity `form:"severity,omitempty" json:"severity,omitempty"`

	// Urgent Only Urgent (true) or non-Urgent (false) Alert Groups. An Alert Group is Urgent exactly when its Severity level is critical.
	Urgent *AgUrgent `form:"urgent,omitempty" json:"urgent,omitempty"`

	// Team Only Alert Groups that have this Team among their Teams (C-25.FR-6), deleted or not, by its `public_id`; or `mine` for those that have any Team of the calling User ("My Teams"; `422` `unsupported` for a Service account token). An unknown Team is `422` `unknown_id`.
	Team *AgTeam `form:"team,omitempty" json:"team,omitempty"`

	// Reopened True: Reopen count above zero.
	Reopened *AgReopened `form:"reopened,omitempty" json:"reopened,omitempty"`

	// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
	Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`

	// FirstAcknowledgedBy Only Alert Groups whose first acknowledgement this User made (C-09.FR-27), by the User's `public_id`, deleted Users included; or `me`, the calling User (`422` `unsupported` for a Service account token). Only Users acknowledge (C-04.FR-2), so an id that names no User, a Service account's included, is `422` `unknown_id`.
	FirstAcknowledgedBy *AgFirstAcknowledgedBy `form:"first_acknowledged_by,omitempty" json:"first_acknowledged_by,omitempty"`

	// From Start of the time range (RFC 3339, UTC).
	From *From `form:"from,omitempty" json:"from,omitempty"`

	// To End of the time range (RFC 3339, UTC).
	To *To `form:"to,omitempty" json:"to,omitempty"`

	// TimeZone IANA time zone that splits days; defaults to the Organization's.
	TimeZone *string `form:"time_zone,omitempty" json:"time_zone,omitempty"`
}

GetAlertGroupStatisticsParams defines parameters for GetAlertGroupStatistics.

type GetAlertGroupStatisticsParamsGroupBy

type GetAlertGroupStatisticsParamsGroupBy string

GetAlertGroupStatisticsParamsGroupBy defines parameters for GetAlertGroupStatistics.

const (
	GetAlertGroupStatisticsParamsGroupByIntegration GetAlertGroupStatisticsParamsGroupBy = "integration"
	GetAlertGroupStatisticsParamsGroupByRoute       GetAlertGroupStatisticsParamsGroupBy = "route"
	GetAlertGroupStatisticsParamsGroupByTeam        GetAlertGroupStatisticsParamsGroupBy = "team"
)

Defines values for GetAlertGroupStatisticsParamsGroupBy.

func (GetAlertGroupStatisticsParamsGroupBy) Valid

Valid indicates whether the value is a known member of the GetAlertGroupStatisticsParamsGroupBy enum.

type GetAlertGroupStatisticsResponse

type GetAlertGroupStatisticsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertGroupStatistics
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetAlertGroupStatisticsResponse429Headers
}

func ParseGetAlertGroupStatisticsResponse

func ParseGetAlertGroupStatisticsResponse(rsp *http.Response) (*GetAlertGroupStatisticsResponse, error)

ParseGetAlertGroupStatisticsResponse parses an HTTP response from a GetAlertGroupStatisticsWithResponse call

func (GetAlertGroupStatisticsResponse) ContentType

func (r GetAlertGroupStatisticsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON400

func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON401

func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON403

func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON404

func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON422

func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (GetAlertGroupStatisticsResponse) GetApplicationproblemJSON429

func (r GetAlertGroupStatisticsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetAlertGroupStatisticsResponse) GetBody

func (r GetAlertGroupStatisticsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAlertGroupStatisticsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAlertGroupStatisticsResponse) Status

Status returns HTTPResponse.Status

func (GetAlertGroupStatisticsResponse) StatusCode

func (r GetAlertGroupStatisticsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAlertGroupStatisticsResponse429Headers

type GetAlertGroupStatisticsResponse429Headers struct {
	RetryAfter *int
}

GetAlertGroupStatisticsResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroupStatistics

type GetAlertGroupTimelineParams

type GetAlertGroupTimelineParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Kind Only these kinds.
	Kind *[]TimelineKind `form:"kind,omitempty" json:"kind,omitempty"`

	// Order Newest first by default.
	Order *GetAlertGroupTimelineParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}

GetAlertGroupTimelineParams defines parameters for GetAlertGroupTimeline.

type GetAlertGroupTimelineParamsOrder

type GetAlertGroupTimelineParamsOrder string

GetAlertGroupTimelineParamsOrder defines parameters for GetAlertGroupTimeline.

Defines values for GetAlertGroupTimelineParamsOrder.

func (GetAlertGroupTimelineParamsOrder) Valid

Valid indicates whether the value is a known member of the GetAlertGroupTimelineParamsOrder enum.

type GetAlertGroupTimelineResponse

type GetAlertGroupTimelineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TimelineEntryList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetAlertGroupTimelineResponse429Headers
}

func ParseGetAlertGroupTimelineResponse

func ParseGetAlertGroupTimelineResponse(rsp *http.Response) (*GetAlertGroupTimelineResponse, error)

ParseGetAlertGroupTimelineResponse parses an HTTP response from a GetAlertGroupTimelineWithResponse call

func (GetAlertGroupTimelineResponse) ContentType

func (r GetAlertGroupTimelineResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON400

func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON401

func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON403

func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON404

func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetAlertGroupTimelineResponse) GetApplicationproblemJSON429

func (r GetAlertGroupTimelineResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetAlertGroupTimelineResponse) GetBody

func (r GetAlertGroupTimelineResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAlertGroupTimelineResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAlertGroupTimelineResponse) Status

Status returns HTTPResponse.Status

func (GetAlertGroupTimelineResponse) StatusCode

func (r GetAlertGroupTimelineResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAlertGroupTimelineResponse429Headers

type GetAlertGroupTimelineResponse429Headers struct {
	RetryAfter *int
}

GetAlertGroupTimelineResponse429Headers the declared response headers of an HTTP 429 response for GetAlertGroupTimeline

type GetConnectionResponse

type GetConnectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Connection
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetConnectionResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetConnectionResponse429Headers
}

func ParseGetConnectionResponse

func ParseGetConnectionResponse(rsp *http.Response) (*GetConnectionResponse, error)

ParseGetConnectionResponse parses an HTTP response from a GetConnectionWithResponse call

func (GetConnectionResponse) ContentType

func (r GetConnectionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetConnectionResponse) GetApplicationproblemJSON401

func (r GetConnectionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetConnectionResponse) GetApplicationproblemJSON403

func (r GetConnectionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetConnectionResponse) GetApplicationproblemJSON404

func (r GetConnectionResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetConnectionResponse) GetApplicationproblemJSON429

func (r GetConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetConnectionResponse) GetBody

func (r GetConnectionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetConnectionResponse) GetJSON200

func (r GetConnectionResponse) GetJSON200() *Connection

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetConnectionResponse) Status

func (r GetConnectionResponse) Status() string

Status returns HTTPResponse.Status

func (GetConnectionResponse) StatusCode

func (r GetConnectionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConnectionResponse200Headers

type GetConnectionResponse200Headers struct {
	ETag *string
}

GetConnectionResponse200Headers the declared response headers of an HTTP 200 response for GetConnection

type GetConnectionResponse429Headers

type GetConnectionResponse429Headers struct {
	RetryAfter *int
}

GetConnectionResponse429Headers the declared response headers of an HTTP 429 response for GetConnection

type GetCurrentSessionResponse

type GetCurrentSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Session
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetCurrentSessionResponse429Headers
}

func ParseGetCurrentSessionResponse

func ParseGetCurrentSessionResponse(rsp *http.Response) (*GetCurrentSessionResponse, error)

ParseGetCurrentSessionResponse parses an HTTP response from a GetCurrentSessionWithResponse call

func (GetCurrentSessionResponse) ContentType

func (r GetCurrentSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCurrentSessionResponse) GetApplicationproblemJSON401

func (r GetCurrentSessionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetCurrentSessionResponse) GetApplicationproblemJSON403

func (r GetCurrentSessionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetCurrentSessionResponse) GetApplicationproblemJSON429

func (r GetCurrentSessionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetCurrentSessionResponse) GetBody

func (r GetCurrentSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCurrentSessionResponse) GetJSON200

func (r GetCurrentSessionResponse) GetJSON200() *Session

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetCurrentSessionResponse) Status

func (r GetCurrentSessionResponse) Status() string

Status returns HTTPResponse.Status

func (GetCurrentSessionResponse) StatusCode

func (r GetCurrentSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentSessionResponse429Headers

type GetCurrentSessionResponse429Headers struct {
	RetryAfter *int
}

GetCurrentSessionResponse429Headers the declared response headers of an HTTP 429 response for GetCurrentSession

type GetDestinationResponse

type GetDestinationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Destination
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetDestinationResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetDestinationResponse429Headers
}

func ParseGetDestinationResponse

func ParseGetDestinationResponse(rsp *http.Response) (*GetDestinationResponse, error)

ParseGetDestinationResponse parses an HTTP response from a GetDestinationWithResponse call

func (GetDestinationResponse) ContentType

func (r GetDestinationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDestinationResponse) GetApplicationproblemJSON401

func (r GetDestinationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetDestinationResponse) GetApplicationproblemJSON403

func (r GetDestinationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetDestinationResponse) GetApplicationproblemJSON404

func (r GetDestinationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetDestinationResponse) GetApplicationproblemJSON429

func (r GetDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetDestinationResponse) GetBody

func (r GetDestinationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetDestinationResponse) GetJSON200

func (r GetDestinationResponse) GetJSON200() *Destination

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDestinationResponse) Status

func (r GetDestinationResponse) Status() string

Status returns HTTPResponse.Status

func (GetDestinationResponse) StatusCode

func (r GetDestinationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDestinationResponse200Headers

type GetDestinationResponse200Headers struct {
	ETag *string
}

GetDestinationResponse200Headers the declared response headers of an HTTP 200 response for GetDestination

type GetDestinationResponse429Headers

type GetDestinationResponse429Headers struct {
	RetryAfter *int
}

GetDestinationResponse429Headers the declared response headers of an HTTP 429 response for GetDestination

type GetEscalationChainResponse

type GetEscalationChainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EscalationChain
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetEscalationChainResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetEscalationChainResponse429Headers
}

func ParseGetEscalationChainResponse

func ParseGetEscalationChainResponse(rsp *http.Response) (*GetEscalationChainResponse, error)

ParseGetEscalationChainResponse parses an HTTP response from a GetEscalationChainWithResponse call

func (GetEscalationChainResponse) ContentType

func (r GetEscalationChainResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetEscalationChainResponse) GetApplicationproblemJSON401

func (r GetEscalationChainResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetEscalationChainResponse) GetApplicationproblemJSON403

func (r GetEscalationChainResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetEscalationChainResponse) GetApplicationproblemJSON404

func (r GetEscalationChainResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetEscalationChainResponse) GetApplicationproblemJSON429

func (r GetEscalationChainResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetEscalationChainResponse) GetBody

func (r GetEscalationChainResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetEscalationChainResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetEscalationChainResponse) Status

Status returns HTTPResponse.Status

func (GetEscalationChainResponse) StatusCode

func (r GetEscalationChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEscalationChainResponse200Headers

type GetEscalationChainResponse200Headers struct {
	ETag *string
}

GetEscalationChainResponse200Headers the declared response headers of an HTTP 200 response for GetEscalationChain

type GetEscalationChainResponse429Headers

type GetEscalationChainResponse429Headers struct {
	RetryAfter *int
}

GetEscalationChainResponse429Headers the declared response headers of an HTTP 429 response for GetEscalationChain

type GetIntegrationResponse

type GetIntegrationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Integration
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetIntegrationResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetIntegrationResponse429Headers
}

func ParseGetIntegrationResponse

func ParseGetIntegrationResponse(rsp *http.Response) (*GetIntegrationResponse, error)

ParseGetIntegrationResponse parses an HTTP response from a GetIntegrationWithResponse call

func (GetIntegrationResponse) ContentType

func (r GetIntegrationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetIntegrationResponse) GetApplicationproblemJSON401

func (r GetIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetIntegrationResponse) GetApplicationproblemJSON403

func (r GetIntegrationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetIntegrationResponse) GetApplicationproblemJSON404

func (r GetIntegrationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetIntegrationResponse) GetApplicationproblemJSON429

func (r GetIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetIntegrationResponse) GetBody

func (r GetIntegrationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetIntegrationResponse) GetJSON200

func (r GetIntegrationResponse) GetJSON200() *Integration

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetIntegrationResponse) Status

func (r GetIntegrationResponse) Status() string

Status returns HTTPResponse.Status

func (GetIntegrationResponse) StatusCode

func (r GetIntegrationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIntegrationResponse200Headers

type GetIntegrationResponse200Headers struct {
	ETag *string
}

GetIntegrationResponse200Headers the declared response headers of an HTTP 200 response for GetIntegration

type GetIntegrationResponse429Headers

type GetIntegrationResponse429Headers struct {
	RetryAfter *int
}

GetIntegrationResponse429Headers the declared response headers of an HTTP 429 response for GetIntegration

type GetKeyringResponse

type GetKeyringResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Keyring
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetKeyringResponse429Headers
}

func ParseGetKeyringResponse

func ParseGetKeyringResponse(rsp *http.Response) (*GetKeyringResponse, error)

ParseGetKeyringResponse parses an HTTP response from a GetKeyringWithResponse call

func (GetKeyringResponse) ContentType

func (r GetKeyringResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetKeyringResponse) GetApplicationproblemJSON401

func (r GetKeyringResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetKeyringResponse) GetApplicationproblemJSON403

func (r GetKeyringResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetKeyringResponse) GetApplicationproblemJSON429

func (r GetKeyringResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetKeyringResponse) GetBody

func (r GetKeyringResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetKeyringResponse) GetJSON200

func (r GetKeyringResponse) GetJSON200() *Keyring

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetKeyringResponse) Status

func (r GetKeyringResponse) Status() string

Status returns HTTPResponse.Status

func (GetKeyringResponse) StatusCode

func (r GetKeyringResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetKeyringResponse429Headers

type GetKeyringResponse429Headers struct {
	RetryAfter *int
}

GetKeyringResponse429Headers the declared response headers of an HTTP 429 response for GetKeyring

type GetLinkRuleResponse

type GetLinkRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LinkRule
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetLinkRuleResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetLinkRuleResponse429Headers
}

func ParseGetLinkRuleResponse

func ParseGetLinkRuleResponse(rsp *http.Response) (*GetLinkRuleResponse, error)

ParseGetLinkRuleResponse parses an HTTP response from a GetLinkRuleWithResponse call

func (GetLinkRuleResponse) ContentType

func (r GetLinkRuleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetLinkRuleResponse) GetApplicationproblemJSON401

func (r GetLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetLinkRuleResponse) GetApplicationproblemJSON403

func (r GetLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetLinkRuleResponse) GetApplicationproblemJSON404

func (r GetLinkRuleResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetLinkRuleResponse) GetApplicationproblemJSON429

func (r GetLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetLinkRuleResponse) GetBody

func (r GetLinkRuleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetLinkRuleResponse) GetJSON200

func (r GetLinkRuleResponse) GetJSON200() *LinkRule

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetLinkRuleResponse) Status

func (r GetLinkRuleResponse) Status() string

Status returns HTTPResponse.Status

func (GetLinkRuleResponse) StatusCode

func (r GetLinkRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLinkRuleResponse200Headers

type GetLinkRuleResponse200Headers struct {
	ETag *string
}

GetLinkRuleResponse200Headers the declared response headers of an HTTP 200 response for GetLinkRule

type GetLinkRuleResponse429Headers

type GetLinkRuleResponse429Headers struct {
	RetryAfter *int
}

GetLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for GetLinkRule

type GetLookupTableResponse

type GetLookupTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LookupTable
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetLookupTableResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetLookupTableResponse429Headers
}

func ParseGetLookupTableResponse

func ParseGetLookupTableResponse(rsp *http.Response) (*GetLookupTableResponse, error)

ParseGetLookupTableResponse parses an HTTP response from a GetLookupTableWithResponse call

func (GetLookupTableResponse) ContentType

func (r GetLookupTableResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetLookupTableResponse) GetApplicationproblemJSON401

func (r GetLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetLookupTableResponse) GetApplicationproblemJSON403

func (r GetLookupTableResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetLookupTableResponse) GetApplicationproblemJSON404

func (r GetLookupTableResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetLookupTableResponse) GetApplicationproblemJSON429

func (r GetLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetLookupTableResponse) GetBody

func (r GetLookupTableResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetLookupTableResponse) GetJSON200

func (r GetLookupTableResponse) GetJSON200() *LookupTable

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetLookupTableResponse) Status

func (r GetLookupTableResponse) Status() string

Status returns HTTPResponse.Status

func (GetLookupTableResponse) StatusCode

func (r GetLookupTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLookupTableResponse200Headers

type GetLookupTableResponse200Headers struct {
	ETag *string
}

GetLookupTableResponse200Headers the declared response headers of an HTTP 200 response for GetLookupTable

type GetLookupTableResponse429Headers

type GetLookupTableResponse429Headers struct {
	RetryAfter *int
}

GetLookupTableResponse429Headers the declared response headers of an HTTP 429 response for GetLookupTable

type GetMeResponse

type GetMeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Me
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMeResponse429Headers
}

func ParseGetMeResponse

func ParseGetMeResponse(rsp *http.Response) (*GetMeResponse, error)

ParseGetMeResponse parses an HTTP response from a GetMeWithResponse call

func (GetMeResponse) ContentType

func (r GetMeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMeResponse) GetApplicationproblemJSON401

func (r GetMeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetMeResponse) GetApplicationproblemJSON403

func (r GetMeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetMeResponse) GetApplicationproblemJSON429

func (r GetMeResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetMeResponse) GetBody

func (r GetMeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMeResponse) GetJSON200

func (r GetMeResponse) GetJSON200() *Me

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMeResponse) Status

func (r GetMeResponse) Status() string

Status returns HTTPResponse.Status

func (GetMeResponse) StatusCode

func (r GetMeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMeResponse429Headers

type GetMeResponse429Headers struct {
	RetryAfter *int
}

GetMeResponse429Headers the declared response headers of an HTTP 429 response for GetMe

type GetMyIcalFeedResponse

type GetMyIcalFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IcalFeed
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMyIcalFeedResponse429Headers
}

func ParseGetMyIcalFeedResponse

func ParseGetMyIcalFeedResponse(rsp *http.Response) (*GetMyIcalFeedResponse, error)

ParseGetMyIcalFeedResponse parses an HTTP response from a GetMyIcalFeedWithResponse call

func (GetMyIcalFeedResponse) ContentType

func (r GetMyIcalFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMyIcalFeedResponse) GetApplicationproblemJSON401

func (r GetMyIcalFeedResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetMyIcalFeedResponse) GetApplicationproblemJSON403

func (r GetMyIcalFeedResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetMyIcalFeedResponse) GetApplicationproblemJSON429

func (r GetMyIcalFeedResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetMyIcalFeedResponse) GetBody

func (r GetMyIcalFeedResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMyIcalFeedResponse) GetJSON200

func (r GetMyIcalFeedResponse) GetJSON200() *IcalFeed

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMyIcalFeedResponse) Status

func (r GetMyIcalFeedResponse) Status() string

Status returns HTTPResponse.Status

func (GetMyIcalFeedResponse) StatusCode

func (r GetMyIcalFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMyIcalFeedResponse429Headers

type GetMyIcalFeedResponse429Headers struct {
	RetryAfter *int
}

GetMyIcalFeedResponse429Headers the declared response headers of an HTTP 429 response for GetMyIcalFeed

type GetMyNotificationRulesResponse

type GetMyNotificationRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationRules
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMyNotificationRulesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMyNotificationRulesResponse429Headers
}

func ParseGetMyNotificationRulesResponse

func ParseGetMyNotificationRulesResponse(rsp *http.Response) (*GetMyNotificationRulesResponse, error)

ParseGetMyNotificationRulesResponse parses an HTTP response from a GetMyNotificationRulesWithResponse call

func (GetMyNotificationRulesResponse) ContentType

func (r GetMyNotificationRulesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMyNotificationRulesResponse) GetApplicationproblemJSON401

func (r GetMyNotificationRulesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetMyNotificationRulesResponse) GetApplicationproblemJSON403

func (r GetMyNotificationRulesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetMyNotificationRulesResponse) GetApplicationproblemJSON429

func (r GetMyNotificationRulesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetMyNotificationRulesResponse) GetBody

func (r GetMyNotificationRulesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMyNotificationRulesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMyNotificationRulesResponse) Status

Status returns HTTPResponse.Status

func (GetMyNotificationRulesResponse) StatusCode

func (r GetMyNotificationRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMyNotificationRulesResponse200Headers

type GetMyNotificationRulesResponse200Headers struct {
	ETag *string
}

GetMyNotificationRulesResponse200Headers the declared response headers of an HTTP 200 response for GetMyNotificationRules

type GetMyNotificationRulesResponse429Headers

type GetMyNotificationRulesResponse429Headers struct {
	RetryAfter *int
}

GetMyNotificationRulesResponse429Headers the declared response headers of an HTTP 429 response for GetMyNotificationRules

type GetMyTotpResponse

type GetMyTotpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TotpStatus
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMyTotpResponse429Headers
}

func ParseGetMyTotpResponse

func ParseGetMyTotpResponse(rsp *http.Response) (*GetMyTotpResponse, error)

ParseGetMyTotpResponse parses an HTTP response from a GetMyTotpWithResponse call

func (GetMyTotpResponse) ContentType

func (r GetMyTotpResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMyTotpResponse) GetApplicationproblemJSON401

func (r GetMyTotpResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetMyTotpResponse) GetApplicationproblemJSON403

func (r GetMyTotpResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetMyTotpResponse) GetApplicationproblemJSON429

func (r GetMyTotpResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetMyTotpResponse) GetBody

func (r GetMyTotpResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMyTotpResponse) GetJSON200

func (r GetMyTotpResponse) GetJSON200() *TotpStatus

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMyTotpResponse) Status

func (r GetMyTotpResponse) Status() string

Status returns HTTPResponse.Status

func (GetMyTotpResponse) StatusCode

func (r GetMyTotpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMyTotpResponse429Headers

type GetMyTotpResponse429Headers struct {
	RetryAfter *int
}

GetMyTotpResponse429Headers the declared response headers of an HTTP 429 response for GetMyTotp

type GetOidcSettingsResponse

type GetOidcSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OidcSettings
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetOidcSettingsResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetOidcSettingsResponse429Headers
}

func ParseGetOidcSettingsResponse

func ParseGetOidcSettingsResponse(rsp *http.Response) (*GetOidcSettingsResponse, error)

ParseGetOidcSettingsResponse parses an HTTP response from a GetOidcSettingsWithResponse call

func (GetOidcSettingsResponse) ContentType

func (r GetOidcSettingsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOidcSettingsResponse) GetApplicationproblemJSON401

func (r GetOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetOidcSettingsResponse) GetApplicationproblemJSON403

func (r GetOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetOidcSettingsResponse) GetApplicationproblemJSON429

func (r GetOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetOidcSettingsResponse) GetBody

func (r GetOidcSettingsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOidcSettingsResponse) GetJSON200

func (r GetOidcSettingsResponse) GetJSON200() *OidcSettings

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOidcSettingsResponse) Status

func (r GetOidcSettingsResponse) Status() string

Status returns HTTPResponse.Status

func (GetOidcSettingsResponse) StatusCode

func (r GetOidcSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOidcSettingsResponse200Headers

type GetOidcSettingsResponse200Headers struct {
	ETag *string
}

GetOidcSettingsResponse200Headers the declared response headers of an HTTP 200 response for GetOidcSettings

type GetOidcSettingsResponse429Headers

type GetOidcSettingsResponse429Headers struct {
	RetryAfter *int
}

GetOidcSettingsResponse429Headers the declared response headers of an HTTP 429 response for GetOidcSettings

type GetOnCallNowParams

type GetOnCallNowParams struct {
	// Teams `all`, the default, lists every Team; `mine` the Teams of the calling User, as "My Teams". A Service account is in no Team, so its `mine` is refused with `422` `unsupported` at `/query/teams`.
	Teams *GetOnCallNowParamsTeams `form:"teams,omitempty" json:"teams,omitempty"`
}

GetOnCallNowParams defines parameters for GetOnCallNow.

type GetOnCallNowParamsTeams

type GetOnCallNowParamsTeams string

GetOnCallNowParamsTeams defines parameters for GetOnCallNow.

const (
	GetOnCallNowParamsTeamsAll  GetOnCallNowParamsTeams = "all"
	GetOnCallNowParamsTeamsMine GetOnCallNowParamsTeams = "mine"
)

Defines values for GetOnCallNowParamsTeams.

func (GetOnCallNowParamsTeams) Valid

func (e GetOnCallNowParamsTeams) Valid() bool

Valid indicates whether the value is a known member of the GetOnCallNowParamsTeams enum.

type GetOnCallNowResponse

type GetOnCallNowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OnCallNow
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetOnCallNowResponse429Headers
}

func ParseGetOnCallNowResponse

func ParseGetOnCallNowResponse(rsp *http.Response) (*GetOnCallNowResponse, error)

ParseGetOnCallNowResponse parses an HTTP response from a GetOnCallNowWithResponse call

func (GetOnCallNowResponse) ContentType

func (r GetOnCallNowResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOnCallNowResponse) GetApplicationproblemJSON400

func (r GetOnCallNowResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (GetOnCallNowResponse) GetApplicationproblemJSON401

func (r GetOnCallNowResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetOnCallNowResponse) GetApplicationproblemJSON403

func (r GetOnCallNowResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetOnCallNowResponse) GetApplicationproblemJSON422

func (r GetOnCallNowResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (GetOnCallNowResponse) GetApplicationproblemJSON429

func (r GetOnCallNowResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetOnCallNowResponse) GetBody

func (r GetOnCallNowResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOnCallNowResponse) GetJSON200

func (r GetOnCallNowResponse) GetJSON200() *OnCallNow

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOnCallNowResponse) Status

func (r GetOnCallNowResponse) Status() string

Status returns HTTPResponse.Status

func (GetOnCallNowResponse) StatusCode

func (r GetOnCallNowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOnCallNowResponse429Headers

type GetOnCallNowResponse429Headers struct {
	RetryAfter *int
}

GetOnCallNowResponse429Headers the declared response headers of an HTTP 429 response for GetOnCallNow

type GetOpenApiSpecResponse

type GetOpenApiSpecResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// YAML200 the response for an HTTP 200 `application/yaml` response
	YAML200 *string
}

func ParseGetOpenApiSpecResponse

func ParseGetOpenApiSpecResponse(rsp *http.Response) (*GetOpenApiSpecResponse, error)

ParseGetOpenApiSpecResponse parses an HTTP response from a GetOpenApiSpecWithResponse call

func (GetOpenApiSpecResponse) ContentType

func (r GetOpenApiSpecResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOpenApiSpecResponse) GetBody

func (r GetOpenApiSpecResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOpenApiSpecResponse) GetYAML200

func (r GetOpenApiSpecResponse) GetYAML200() *string

GetYAML200 returns the response for an HTTP 200 `application/yaml` response

func (GetOpenApiSpecResponse) Status

func (r GetOpenApiSpecResponse) Status() string

Status returns HTTPResponse.Status

func (GetOpenApiSpecResponse) StatusCode

func (r GetOpenApiSpecResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationResponse

type GetOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Organization
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetOrganizationResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetOrganizationResponse429Headers
}

func ParseGetOrganizationResponse

func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error)

ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call

func (GetOrganizationResponse) ContentType

func (r GetOrganizationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOrganizationResponse) GetApplicationproblemJSON401

func (r GetOrganizationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetOrganizationResponse) GetApplicationproblemJSON403

func (r GetOrganizationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetOrganizationResponse) GetApplicationproblemJSON429

func (r GetOrganizationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetOrganizationResponse) GetBody

func (r GetOrganizationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOrganizationResponse) GetJSON200

func (r GetOrganizationResponse) GetJSON200() *Organization

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOrganizationResponse) Status

func (r GetOrganizationResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrganizationResponse) StatusCode

func (r GetOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationResponse200Headers

type GetOrganizationResponse200Headers struct {
	ETag *string
}

GetOrganizationResponse200Headers the declared response headers of an HTTP 200 response for GetOrganization

type GetOrganizationResponse429Headers

type GetOrganizationResponse429Headers struct {
	RetryAfter *int
}

GetOrganizationResponse429Headers the declared response headers of an HTTP 429 response for GetOrganization

type GetOutboundPolicyResponse

type GetOutboundPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OutboundPolicy
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetOutboundPolicyResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetOutboundPolicyResponse429Headers
}

func ParseGetOutboundPolicyResponse

func ParseGetOutboundPolicyResponse(rsp *http.Response) (*GetOutboundPolicyResponse, error)

ParseGetOutboundPolicyResponse parses an HTTP response from a GetOutboundPolicyWithResponse call

func (GetOutboundPolicyResponse) ContentType

func (r GetOutboundPolicyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOutboundPolicyResponse) GetApplicationproblemJSON401

func (r GetOutboundPolicyResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetOutboundPolicyResponse) GetApplicationproblemJSON403

func (r GetOutboundPolicyResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetOutboundPolicyResponse) GetApplicationproblemJSON429

func (r GetOutboundPolicyResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetOutboundPolicyResponse) GetBody

func (r GetOutboundPolicyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOutboundPolicyResponse) GetJSON200

func (r GetOutboundPolicyResponse) GetJSON200() *OutboundPolicy

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOutboundPolicyResponse) Status

func (r GetOutboundPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (GetOutboundPolicyResponse) StatusCode

func (r GetOutboundPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOutboundPolicyResponse200Headers

type GetOutboundPolicyResponse200Headers struct {
	ETag *string
}

GetOutboundPolicyResponse200Headers the declared response headers of an HTTP 200 response for GetOutboundPolicy

type GetOutboundPolicyResponse429Headers

type GetOutboundPolicyResponse429Headers struct {
	RetryAfter *int
}

GetOutboundPolicyResponse429Headers the declared response headers of an HTTP 429 response for GetOutboundPolicy

type GetRequestRecordResponse

type GetRequestRecordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RequestRecord
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetRequestRecordResponse429Headers
}

func ParseGetRequestRecordResponse

func ParseGetRequestRecordResponse(rsp *http.Response) (*GetRequestRecordResponse, error)

ParseGetRequestRecordResponse parses an HTTP response from a GetRequestRecordWithResponse call

func (GetRequestRecordResponse) ContentType

func (r GetRequestRecordResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRequestRecordResponse) GetApplicationproblemJSON401

func (r GetRequestRecordResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetRequestRecordResponse) GetApplicationproblemJSON403

func (r GetRequestRecordResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetRequestRecordResponse) GetApplicationproblemJSON404

func (r GetRequestRecordResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetRequestRecordResponse) GetApplicationproblemJSON429

func (r GetRequestRecordResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetRequestRecordResponse) GetBody

func (r GetRequestRecordResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRequestRecordResponse) GetJSON200

func (r GetRequestRecordResponse) GetJSON200() *RequestRecord

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRequestRecordResponse) Status

func (r GetRequestRecordResponse) Status() string

Status returns HTTPResponse.Status

func (GetRequestRecordResponse) StatusCode

func (r GetRequestRecordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRequestRecordResponse429Headers

type GetRequestRecordResponse429Headers struct {
	RetryAfter *int
}

GetRequestRecordResponse429Headers the declared response headers of an HTTP 429 response for GetRequestRecord

type GetRouteResponse

type GetRouteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Route
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRouteResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetRouteResponse429Headers
}

func ParseGetRouteResponse

func ParseGetRouteResponse(rsp *http.Response) (*GetRouteResponse, error)

ParseGetRouteResponse parses an HTTP response from a GetRouteWithResponse call

func (GetRouteResponse) ContentType

func (r GetRouteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRouteResponse) GetApplicationproblemJSON401

func (r GetRouteResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetRouteResponse) GetApplicationproblemJSON403

func (r GetRouteResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetRouteResponse) GetApplicationproblemJSON404

func (r GetRouteResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetRouteResponse) GetApplicationproblemJSON429

func (r GetRouteResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetRouteResponse) GetBody

func (r GetRouteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRouteResponse) GetJSON200

func (r GetRouteResponse) GetJSON200() *Route

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRouteResponse) Status

func (r GetRouteResponse) Status() string

Status returns HTTPResponse.Status

func (GetRouteResponse) StatusCode

func (r GetRouteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRouteResponse200Headers

type GetRouteResponse200Headers struct {
	ETag *string
}

GetRouteResponse200Headers the declared response headers of an HTTP 200 response for GetRoute

type GetRouteResponse429Headers

type GetRouteResponse429Headers struct {
	RetryAfter *int
}

GetRouteResponse429Headers the declared response headers of an HTTP 429 response for GetRoute

type GetScheduleOnCallParams

type GetScheduleOnCallParams struct {
	// From The start of the period (RFC 3339); the business clock's now by default.
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To The end of the period (RFC 3339); `schedule.gap_view` after `from` by default.
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}

GetScheduleOnCallParams defines parameters for GetScheduleOnCall.

type GetScheduleOnCallResponse

type GetScheduleOnCallResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ScheduleOnCall
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetScheduleOnCallResponse429Headers
}

func ParseGetScheduleOnCallResponse

func ParseGetScheduleOnCallResponse(rsp *http.Response) (*GetScheduleOnCallResponse, error)

ParseGetScheduleOnCallResponse parses an HTTP response from a GetScheduleOnCallWithResponse call

func (GetScheduleOnCallResponse) ContentType

func (r GetScheduleOnCallResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetScheduleOnCallResponse) GetApplicationproblemJSON400

func (r GetScheduleOnCallResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (GetScheduleOnCallResponse) GetApplicationproblemJSON401

func (r GetScheduleOnCallResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetScheduleOnCallResponse) GetApplicationproblemJSON403

func (r GetScheduleOnCallResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetScheduleOnCallResponse) GetApplicationproblemJSON404

func (r GetScheduleOnCallResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetScheduleOnCallResponse) GetApplicationproblemJSON422

func (r GetScheduleOnCallResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (GetScheduleOnCallResponse) GetApplicationproblemJSON429

func (r GetScheduleOnCallResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetScheduleOnCallResponse) GetBody

func (r GetScheduleOnCallResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetScheduleOnCallResponse) GetJSON200

func (r GetScheduleOnCallResponse) GetJSON200() *ScheduleOnCall

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetScheduleOnCallResponse) Status

func (r GetScheduleOnCallResponse) Status() string

Status returns HTTPResponse.Status

func (GetScheduleOnCallResponse) StatusCode

func (r GetScheduleOnCallResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetScheduleOnCallResponse429Headers

type GetScheduleOnCallResponse429Headers struct {
	RetryAfter *int
}

GetScheduleOnCallResponse429Headers the declared response headers of an HTTP 429 response for GetScheduleOnCall

type GetScheduleResponse

type GetScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Schedule
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetScheduleResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetScheduleResponse429Headers
}

func ParseGetScheduleResponse

func ParseGetScheduleResponse(rsp *http.Response) (*GetScheduleResponse, error)

ParseGetScheduleResponse parses an HTTP response from a GetScheduleWithResponse call

func (GetScheduleResponse) ContentType

func (r GetScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetScheduleResponse) GetApplicationproblemJSON401

func (r GetScheduleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetScheduleResponse) GetApplicationproblemJSON403

func (r GetScheduleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetScheduleResponse) GetApplicationproblemJSON404

func (r GetScheduleResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetScheduleResponse) GetApplicationproblemJSON429

func (r GetScheduleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetScheduleResponse) GetBody

func (r GetScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetScheduleResponse) GetJSON200

func (r GetScheduleResponse) GetJSON200() *Schedule

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetScheduleResponse) Status

func (r GetScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (GetScheduleResponse) StatusCode

func (r GetScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetScheduleResponse200Headers

type GetScheduleResponse200Headers struct {
	ETag *string
}

GetScheduleResponse200Headers the declared response headers of an HTTP 200 response for GetSchedule

type GetScheduleResponse429Headers

type GetScheduleResponse429Headers struct {
	RetryAfter *int
}

GetScheduleResponse429Headers the declared response headers of an HTTP 429 response for GetSchedule

type GetServiceAccountResponse

type GetServiceAccountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceAccount
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetServiceAccountResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetServiceAccountResponse429Headers
}

func ParseGetServiceAccountResponse

func ParseGetServiceAccountResponse(rsp *http.Response) (*GetServiceAccountResponse, error)

ParseGetServiceAccountResponse parses an HTTP response from a GetServiceAccountWithResponse call

func (GetServiceAccountResponse) ContentType

func (r GetServiceAccountResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServiceAccountResponse) GetApplicationproblemJSON401

func (r GetServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetServiceAccountResponse) GetApplicationproblemJSON403

func (r GetServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetServiceAccountResponse) GetApplicationproblemJSON404

func (r GetServiceAccountResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetServiceAccountResponse) GetApplicationproblemJSON429

func (r GetServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetServiceAccountResponse) GetBody

func (r GetServiceAccountResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetServiceAccountResponse) GetJSON200

func (r GetServiceAccountResponse) GetJSON200() *ServiceAccount

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetServiceAccountResponse) Status

func (r GetServiceAccountResponse) Status() string

Status returns HTTPResponse.Status

func (GetServiceAccountResponse) StatusCode

func (r GetServiceAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceAccountResponse200Headers

type GetServiceAccountResponse200Headers struct {
	ETag *string
}

GetServiceAccountResponse200Headers the declared response headers of an HTTP 200 response for GetServiceAccount

type GetServiceAccountResponse429Headers

type GetServiceAccountResponse429Headers struct {
	RetryAfter *int
}

GetServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for GetServiceAccount

type GetSignInOptionsResponse

type GetSignInOptionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SignInOptions
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetSignInOptionsResponse429Headers
}

func ParseGetSignInOptionsResponse

func ParseGetSignInOptionsResponse(rsp *http.Response) (*GetSignInOptionsResponse, error)

ParseGetSignInOptionsResponse parses an HTTP response from a GetSignInOptionsWithResponse call

func (GetSignInOptionsResponse) ContentType

func (r GetSignInOptionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSignInOptionsResponse) GetApplicationproblemJSON429

func (r GetSignInOptionsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetSignInOptionsResponse) GetBody

func (r GetSignInOptionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSignInOptionsResponse) GetJSON200

func (r GetSignInOptionsResponse) GetJSON200() *SignInOptions

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSignInOptionsResponse) Status

func (r GetSignInOptionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetSignInOptionsResponse) StatusCode

func (r GetSignInOptionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSignInOptionsResponse429Headers

type GetSignInOptionsResponse429Headers struct {
	RetryAfter *int
}

GetSignInOptionsResponse429Headers the declared response headers of an HTTP 429 response for GetSignInOptions

type GetSigningSecretResponse

type GetSigningSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SigningSecretStatus
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetSigningSecretResponse429Headers
}

func ParseGetSigningSecretResponse

func ParseGetSigningSecretResponse(rsp *http.Response) (*GetSigningSecretResponse, error)

ParseGetSigningSecretResponse parses an HTTP response from a GetSigningSecretWithResponse call

func (GetSigningSecretResponse) ContentType

func (r GetSigningSecretResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSigningSecretResponse) GetApplicationproblemJSON401

func (r GetSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetSigningSecretResponse) GetApplicationproblemJSON403

func (r GetSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetSigningSecretResponse) GetApplicationproblemJSON404

func (r GetSigningSecretResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetSigningSecretResponse) GetApplicationproblemJSON409

func (r GetSigningSecretResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (GetSigningSecretResponse) GetApplicationproblemJSON429

func (r GetSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetSigningSecretResponse) GetBody

func (r GetSigningSecretResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSigningSecretResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSigningSecretResponse) Status

func (r GetSigningSecretResponse) Status() string

Status returns HTTPResponse.Status

func (GetSigningSecretResponse) StatusCode

func (r GetSigningSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSigningSecretResponse429Headers

type GetSigningSecretResponse429Headers struct {
	RetryAfter *int
}

GetSigningSecretResponse429Headers the declared response headers of an HTTP 429 response for GetSigningSecret

type GetStoredSnapshotResponse

type GetStoredSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *StoredSnapshot
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetStoredSnapshotResponse429Headers
}

func ParseGetStoredSnapshotResponse

func ParseGetStoredSnapshotResponse(rsp *http.Response) (*GetStoredSnapshotResponse, error)

ParseGetStoredSnapshotResponse parses an HTTP response from a GetStoredSnapshotWithResponse call

func (GetStoredSnapshotResponse) ContentType

func (r GetStoredSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStoredSnapshotResponse) GetApplicationproblemJSON401

func (r GetStoredSnapshotResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetStoredSnapshotResponse) GetApplicationproblemJSON403

func (r GetStoredSnapshotResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetStoredSnapshotResponse) GetApplicationproblemJSON404

func (r GetStoredSnapshotResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetStoredSnapshotResponse) GetApplicationproblemJSON429

func (r GetStoredSnapshotResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetStoredSnapshotResponse) GetBody

func (r GetStoredSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetStoredSnapshotResponse) GetJSON200

func (r GetStoredSnapshotResponse) GetJSON200() *StoredSnapshot

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetStoredSnapshotResponse) Status

func (r GetStoredSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (GetStoredSnapshotResponse) StatusCode

func (r GetStoredSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStoredSnapshotResponse429Headers

type GetStoredSnapshotResponse429Headers struct {
	RetryAfter *int
}

GetStoredSnapshotResponse429Headers the declared response headers of an HTTP 429 response for GetStoredSnapshot

type GetSystemStatusResponse

type GetSystemStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SystemStatus
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetSystemStatusResponse429Headers
}

func ParseGetSystemStatusResponse

func ParseGetSystemStatusResponse(rsp *http.Response) (*GetSystemStatusResponse, error)

ParseGetSystemStatusResponse parses an HTTP response from a GetSystemStatusWithResponse call

func (GetSystemStatusResponse) ContentType

func (r GetSystemStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSystemStatusResponse) GetApplicationproblemJSON401

func (r GetSystemStatusResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetSystemStatusResponse) GetApplicationproblemJSON403

func (r GetSystemStatusResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetSystemStatusResponse) GetApplicationproblemJSON429

func (r GetSystemStatusResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetSystemStatusResponse) GetBody

func (r GetSystemStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSystemStatusResponse) GetJSON200

func (r GetSystemStatusResponse) GetJSON200() *SystemStatus

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSystemStatusResponse) Status

func (r GetSystemStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetSystemStatusResponse) StatusCode

func (r GetSystemStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSystemStatusResponse429Headers

type GetSystemStatusResponse429Headers struct {
	RetryAfter *int
}

GetSystemStatusResponse429Headers the declared response headers of an HTTP 429 response for GetSystemStatus

type GetTeamResponse

type GetTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Team
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTeamResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTeamResponse429Headers
}

func ParseGetTeamResponse

func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error)

ParseGetTeamResponse parses an HTTP response from a GetTeamWithResponse call

func (GetTeamResponse) ContentType

func (r GetTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTeamResponse) GetApplicationproblemJSON401

func (r GetTeamResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetTeamResponse) GetApplicationproblemJSON403

func (r GetTeamResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetTeamResponse) GetApplicationproblemJSON404

func (r GetTeamResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetTeamResponse) GetApplicationproblemJSON429

func (r GetTeamResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetTeamResponse) GetBody

func (r GetTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTeamResponse) GetJSON200

func (r GetTeamResponse) GetJSON200() *Team

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTeamResponse) Status

func (r GetTeamResponse) Status() string

Status returns HTTPResponse.Status

func (GetTeamResponse) StatusCode

func (r GetTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTeamResponse200Headers

type GetTeamResponse200Headers struct {
	ETag *string
}

GetTeamResponse200Headers the declared response headers of an HTTP 200 response for GetTeam

type GetTeamResponse429Headers

type GetTeamResponse429Headers struct {
	RetryAfter *int
}

GetTeamResponse429Headers the declared response headers of an HTTP 429 response for GetTeam

type GetUserNotificationRulesResponse

type GetUserNotificationRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationRules
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetUserNotificationRulesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetUserNotificationRulesResponse429Headers
}

func ParseGetUserNotificationRulesResponse

func ParseGetUserNotificationRulesResponse(rsp *http.Response) (*GetUserNotificationRulesResponse, error)

ParseGetUserNotificationRulesResponse parses an HTTP response from a GetUserNotificationRulesWithResponse call

func (GetUserNotificationRulesResponse) ContentType

func (r GetUserNotificationRulesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserNotificationRulesResponse) GetApplicationproblemJSON401

func (r GetUserNotificationRulesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetUserNotificationRulesResponse) GetApplicationproblemJSON403

func (r GetUserNotificationRulesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetUserNotificationRulesResponse) GetApplicationproblemJSON404

func (r GetUserNotificationRulesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetUserNotificationRulesResponse) GetApplicationproblemJSON429

func (r GetUserNotificationRulesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetUserNotificationRulesResponse) GetBody

func (r GetUserNotificationRulesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserNotificationRulesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserNotificationRulesResponse) Status

Status returns HTTPResponse.Status

func (GetUserNotificationRulesResponse) StatusCode

func (r GetUserNotificationRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserNotificationRulesResponse200Headers

type GetUserNotificationRulesResponse200Headers struct {
	ETag *string
}

GetUserNotificationRulesResponse200Headers the declared response headers of an HTTP 200 response for GetUserNotificationRules

type GetUserNotificationRulesResponse429Headers

type GetUserNotificationRulesResponse429Headers struct {
	RetryAfter *int
}

GetUserNotificationRulesResponse429Headers the declared response headers of an HTTP 429 response for GetUserNotificationRules

type GetUserResponse

type GetUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetUserResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetUserResponse429Headers
}

func ParseGetUserResponse

func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)

ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call

func (GetUserResponse) ContentType

func (r GetUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserResponse) GetApplicationproblemJSON401

func (r GetUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetUserResponse) GetApplicationproblemJSON403

func (r GetUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetUserResponse) GetApplicationproblemJSON404

func (r GetUserResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetUserResponse) GetApplicationproblemJSON429

func (r GetUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetUserResponse) GetBody

func (r GetUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserResponse) GetJSON200

func (r GetUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserResponse) Status

func (r GetUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserResponse) StatusCode

func (r GetUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserResponse200Headers

type GetUserResponse200Headers struct {
	ETag *string
}

GetUserResponse200Headers the declared response headers of an HTTP 200 response for GetUser

type GetUserResponse429Headers

type GetUserResponse429Headers struct {
	RetryAfter *int
}

GetUserResponse429Headers the declared response headers of an HTTP 429 response for GetUser

type Gone

type Gone = Problem

Gone RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type GroupKeyPreview

type GroupKeyPreview struct {
	// Current Absent when no saved Route was given.
	Current *GroupKeyPreviewSide `json:"current,omitempty"`

	// Delivery Absent when the request gave neither `destination_entries` nor `deliver_to_teams` and no `route_id`.
	Delivery      *DeliveryPreview    `json:"delivery,omitempty"`
	PeriodSeconds int                 `json:"period_seconds"`
	Proposed      GroupKeyPreviewSide `json:"proposed"`

	// Truncated True when `routing.group_key_preview_max_alerts` stopped the reading before the start of the period, so the counts cover only its most recent part.
	Truncated bool `json:"truncated"`
}

GroupKeyPreview Covers the Alerts reported firing in the Stored Snapshots of the period that the Route would take at its place in the current evaluation order (Matchers without a saved Route stand for a new Route just before the Default route), each Alert once with its Integration's Static labels, read from the newest Snapshot back and at most `routing.group_key_preview_max_alerts` of them.

type GroupKeyPreviewExample

type GroupKeyPreviewExample struct {
	AlertCount int `json:"alert_count"`

	// GroupKeyValues Label names and values.
	GroupKeyValues Labels `json:"group_key_values"`
}

GroupKeyPreviewExample defines model for GroupKeyPreviewExample.

type GroupKeyPreviewRequest

type GroupKeyPreviewRequest struct {
	// DeliverToTeams The unsaved "Also to the Teams from the label"; the saved Route's when absent and `route_id` is given, else false.
	DeliverToTeams *bool `json:"deliver_to_teams,omitempty"`

	// DestinationEntries The unsaved Destinations of the Route with their Severity conditions; the saved Route's when absent and `route_id` is given, else none.
	DestinationEntries *[]DestinationEntry `json:"destination_entries,omitempty"`

	// Matchers Matchers to preview instead of, or without, a saved Route's own.
	Matchers *[]Matcher `json:"matchers,omitempty"`

	// MinimumSeverity The unsaved Minimum severity of the Route; the saved Route's when absent and `route_id` is given, else `none`.
	MinimumSeverity *MinimumSeverity `json:"minimum_severity,omitempty"`

	// PeriodSeconds Defaults to `routing.group_key_preview_period`; at most `retention.stored_snapshots`.
	PeriodSeconds    *int     `json:"period_seconds,omitempty"`
	ProposedGroupKey []string `json:"proposed_group_key"`

	// RouteId A saved Route; its current Group key is the "current" side.
	RouteId nullable.Nullable[NullablePublicId] `json:"route_id,omitempty"`
}

GroupKeyPreviewRequest Preview of a Group key. Give `route_id` for a saved Route, `matchers` for a Route that is not saved yet (the create form), or both to try other Matchers on a saved Route; at least one of the two is required (`422`).

type GroupKeyPreviewSide

type GroupKeyPreviewSide struct {
	AlertGroupCount int `json:"alert_group_count"`

	// Examples The `routing.group_key_preview_examples` largest Alert Groups.
	Examples []GroupKeyPreviewExample `json:"examples"`
}

GroupKeyPreviewSide defines model for GroupKeyPreviewSide.

type HeaderTemplate

type HeaderTemplate struct {
	Name string `json:"name"`

	// Value Go template; may reference `{{ .Secrets.<name> }}`, never a Secret value.
	Value string `json:"value"`
}

HeaderTemplate defines model for HeaderTemplate.

type HealthState

type HealthState string

HealthState defines model for HealthState.

const (
	Broken  HealthState = "broken"
	Healthy HealthState = "healthy"
)

Defines values for HealthState.

func (HealthState) Valid

func (e HealthState) Valid() bool

Valid indicates whether the value is a known member of the HealthState enum.

type HeartbeatGetResponse

type HeartbeatGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
}

func ParseHeartbeatGetResponse

func ParseHeartbeatGetResponse(rsp *http.Response) (*HeartbeatGetResponse, error)

ParseHeartbeatGetResponse parses an HTTP response from a HeartbeatGetWithResponse call

func (HeartbeatGetResponse) ContentType

func (r HeartbeatGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HeartbeatGetResponse) GetApplicationproblemJSON401

func (r HeartbeatGetResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (HeartbeatGetResponse) GetBody

func (r HeartbeatGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HeartbeatGetResponse) Status

func (r HeartbeatGetResponse) Status() string

Status returns HTTPResponse.Status

func (HeartbeatGetResponse) StatusCode

func (r HeartbeatGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeartbeatGetWithPathTokenResponse

type HeartbeatGetWithPathTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
}

func ParseHeartbeatGetWithPathTokenResponse

func ParseHeartbeatGetWithPathTokenResponse(rsp *http.Response) (*HeartbeatGetWithPathTokenResponse, error)

ParseHeartbeatGetWithPathTokenResponse parses an HTTP response from a HeartbeatGetWithPathTokenWithResponse call

func (HeartbeatGetWithPathTokenResponse) ContentType

func (r HeartbeatGetWithPathTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HeartbeatGetWithPathTokenResponse) GetApplicationproblemJSON401

func (r HeartbeatGetWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (HeartbeatGetWithPathTokenResponse) GetBody

GetBody returns the raw response body bytes

func (HeartbeatGetWithPathTokenResponse) Status

Status returns HTTPResponse.Status

func (HeartbeatGetWithPathTokenResponse) StatusCode

func (r HeartbeatGetWithPathTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeartbeatInfo

type HeartbeatInfo struct {
	Enabled        bool                         `json:"enabled"`
	LastSignalAt   nullable.Nullable[time.Time] `json:"last_signal_at,omitempty"`
	LostSince      nullable.Nullable[time.Time] `json:"lost_since,omitempty"`
	State          HeartbeatState               `json:"state"`
	TimeoutSeconds int                          `json:"timeout_seconds"`

	// Url Heartbeat URL on the ingest listener, without a token. Send one of the Integration's tokens as `Authorization: Bearer`, or append it as `/<token>`.
	Url *string `json:"url,omitempty"`
}

HeartbeatInfo defines model for HeartbeatInfo.

type HeartbeatPostResponse

type HeartbeatPostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
}

func ParseHeartbeatPostResponse

func ParseHeartbeatPostResponse(rsp *http.Response) (*HeartbeatPostResponse, error)

ParseHeartbeatPostResponse parses an HTTP response from a HeartbeatPostWithResponse call

func (HeartbeatPostResponse) ContentType

func (r HeartbeatPostResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HeartbeatPostResponse) GetApplicationproblemJSON401

func (r HeartbeatPostResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (HeartbeatPostResponse) GetBody

func (r HeartbeatPostResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HeartbeatPostResponse) Status

func (r HeartbeatPostResponse) Status() string

Status returns HTTPResponse.Status

func (HeartbeatPostResponse) StatusCode

func (r HeartbeatPostResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeartbeatPostWithPathTokenResponse

type HeartbeatPostWithPathTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
}

func ParseHeartbeatPostWithPathTokenResponse

func ParseHeartbeatPostWithPathTokenResponse(rsp *http.Response) (*HeartbeatPostWithPathTokenResponse, error)

ParseHeartbeatPostWithPathTokenResponse parses an HTTP response from a HeartbeatPostWithPathTokenWithResponse call

func (HeartbeatPostWithPathTokenResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HeartbeatPostWithPathTokenResponse) GetApplicationproblemJSON401

func (r HeartbeatPostWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (HeartbeatPostWithPathTokenResponse) GetBody

GetBody returns the raw response body bytes

func (HeartbeatPostWithPathTokenResponse) Status

Status returns HTTPResponse.Status

func (HeartbeatPostWithPathTokenResponse) StatusCode

func (r HeartbeatPostWithPathTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeartbeatSettingsInput

type HeartbeatSettingsInput struct {
	Enabled bool `json:"enabled"`

	// TimeoutSeconds Defaults to `integration.heartbeat_timeout`.
	TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}

HeartbeatSettingsInput defines model for HeartbeatSettingsInput.

type HeartbeatState

type HeartbeatState string

HeartbeatState defines model for HeartbeatState.

const (
	Live          HeartbeatState = "live"
	Lost          HeartbeatState = "lost"
	NotConfigured HeartbeatState = "not_configured"
	Waiting       HeartbeatState = "waiting"
)

Defines values for HeartbeatState.

func (HeartbeatState) Valid

func (e HeartbeatState) Valid() bool

Valid indicates whether the value is a known member of the HeartbeatState enum.

type HintEvent

type HintEvent struct {
	// Id A `public_id` in the format of `PublicId`, or null.
	Id   nullable.Nullable[NullablePublicId] `json:"id"`
	Type HintEventType                       `json:"type"`
}

HintEvent Data of a server-sent event named `hint`, delivered on `GET /live-updates`.

| `type` | `id` | Meaning | |---|---|---| | `alert-group` | the Alert Group `public_id` | It changed (status, Alerts, Timeline, delivery state, the runs of its Escalation chains): refresh its page and any list row. | | `alert-groups` | null | New Alert Groups may match the current list filters or counts: the UI announces "N new". | | `integration`, `route`, `connection`, `destination`, `team`, `schedule`, `escalation-chain` | the resource `public_id`, or null for the whole collection | A configuration resource changed. | | `organization` | null | Organization settings changed. | | `system-notices`, `system-status` | null | The Organization-wide notices, or the System status, changed. | | `account-links` | the Account link `public_id`, or null when several changed at once | An Account link of the signed-in user appeared, changed or disappeared. |

type HintEventType

type HintEventType string

HintEventType defines model for HintEvent.Type.

const (
	HintEventTypeAccountLinks    HintEventType = "account-links"
	HintEventTypeAlertGroup      HintEventType = "alert-group"
	HintEventTypeAlertGroups     HintEventType = "alert-groups"
	HintEventTypeConnection      HintEventType = "connection"
	HintEventTypeDestination     HintEventType = "destination"
	HintEventTypeEscalationChain HintEventType = "escalation-chain"
	HintEventTypeIntegration     HintEventType = "integration"
	HintEventTypeOrganization    HintEventType = "organization"
	HintEventTypeRoute           HintEventType = "route"
	HintEventTypeSchedule        HintEventType = "schedule"
	HintEventTypeSystemNotices   HintEventType = "system-notices"
	HintEventTypeSystemStatus    HintEventType = "system-status"
	HintEventTypeTeam            HintEventType = "team"
)

Defines values for HintEventType.

func (HintEventType) Valid

func (e HintEventType) Valid() bool

Valid indicates whether the value is a known member of the HintEventType enum.

type HttpHeaders

type HttpHeaders map[string][]string

HttpHeaders HTTP headers by name, each with its values, masked. Untrusted text.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IcalFeed

type IcalFeed struct {
	// Exists Whether the caller has an iCal feed.
	Exists bool `json:"exists"`

	// IssuedAt When the feed was issued; null without one.
	IssuedAt nullable.Nullable[time.Time] `json:"issued_at"`
}

IcalFeed defines model for IcalFeed.

type IcalFeedIssued

type IcalFeedIssued struct {
	IssuedAt time.Time `json:"issued_at"`

	// Url The link of the feed, `MUSTER_PUBLIC_URL/ical/{token}.ics`, whose token starts with `mstr_cal_`. Shown once.
	Url string `json:"url"`
}

IcalFeedIssued defines model for IcalFeedIssued.

type IfMatch

type IfMatch = string

IfMatch defines model for IfMatch.

type IfMatchOptional

type IfMatchOptional = string

IfMatchOptional defines model for IfMatchOptional.

type InUseRef

type InUseRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId     `json:"id"`
	Name string       `json:"name"`
	Type InUseRefType `json:"type"`
}

InUseRef An object that holds the resource a deletion refuses.

type InUseRefType

type InUseRefType string

InUseRefType defines model for InUseRef.Type.

const (
	InUseRefTypeEscalationChain InUseRefType = "escalation_chain"
	InUseRefTypeRoute           InUseRefType = "route"
	InUseRefTypeSchedule        InUseRefType = "schedule"
	InUseRefTypeTeam            InUseRefType = "team"
)

Defines values for InUseRefType.

func (InUseRefType) Valid

func (e InUseRefType) Valid() bool

Valid indicates whether the value is a known member of the InUseRefType enum.

type IngestSnapshotResponse

type IngestSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *PayloadTooLarge
	// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
	ApplicationproblemJSON500 *InternalError
}

func ParseIngestSnapshotResponse

func ParseIngestSnapshotResponse(rsp *http.Response) (*IngestSnapshotResponse, error)

ParseIngestSnapshotResponse parses an HTTP response from a IngestSnapshotWithResponse call

func (IngestSnapshotResponse) ContentType

func (r IngestSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IngestSnapshotResponse) GetApplicationproblemJSON401

func (r IngestSnapshotResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (IngestSnapshotResponse) GetApplicationproblemJSON413

func (r IngestSnapshotResponse) GetApplicationproblemJSON413() *PayloadTooLarge

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (IngestSnapshotResponse) GetApplicationproblemJSON500

func (r IngestSnapshotResponse) GetApplicationproblemJSON500() *InternalError

GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response

func (IngestSnapshotResponse) GetBody

func (r IngestSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IngestSnapshotResponse) Status

func (r IngestSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (IngestSnapshotResponse) StatusCode

func (r IngestSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IngestSnapshotWithPathTokenResponse

type IngestSnapshotWithPathTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *PayloadTooLarge
	// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
	ApplicationproblemJSON500 *InternalError
}

func ParseIngestSnapshotWithPathTokenResponse

func ParseIngestSnapshotWithPathTokenResponse(rsp *http.Response) (*IngestSnapshotWithPathTokenResponse, error)

ParseIngestSnapshotWithPathTokenResponse parses an HTTP response from a IngestSnapshotWithPathTokenWithResponse call

func (IngestSnapshotWithPathTokenResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON401

func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON413

func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON413() *PayloadTooLarge

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON500

func (r IngestSnapshotWithPathTokenResponse) GetApplicationproblemJSON500() *InternalError

GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response

func (IngestSnapshotWithPathTokenResponse) GetBody

GetBody returns the raw response body bytes

func (IngestSnapshotWithPathTokenResponse) Status

Status returns HTTPResponse.Status

func (IngestSnapshotWithPathTokenResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type IngestTokenInPath

type IngestTokenInPath = string

IngestTokenInPath defines model for IngestTokenInPath.

type Integration

type Integration struct {
	// Builtin True for the "Muster" Integration of Internal alerts; it cannot be edited or deleted and has no tokens.
	Builtin bool `json:"builtin"`

	// ConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
	ConnectionMode         IntegrationConnectionMode `json:"connection_mode"`
	CreatedAt              time.Time                 `json:"created_at"`
	Description            *string                   `json:"description,omitempty"`
	DuplicateWindowSeconds int                       `json:"duplicate_window_seconds"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag      *string       `json:"etag,omitempty"`
	Heartbeat HeartbeatInfo `json:"heartbeat"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// IngestUrl Ingestion endpoint on the ingest listener (`MUSTER_INGEST_URL` + `/api/v1/ingest`).
	IngestUrl      *string                      `json:"ingest_url,omitempty"`
	LastSnapshotAt nullable.Nullable[time.Time] `json:"last_snapshot_at,omitempty"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Name Unique in the Organization.
	Name string `json:"name"`

	// OpenAlertGroupCount Open Alert Groups that deleting the Integration would resolve.
	OpenAlertGroupCount int `json:"open_alert_group_count"`
	SnapshotCount       int `json:"snapshot_count"`

	// StaticLabels Label names and values.
	StaticLabels Labels               `json:"static_labels"`
	Warnings     []IntegrationWarning `json:"warnings"`
}

Integration defines model for Integration.

type IntegrationAlert

type IntegrationAlert struct {
	// AlertGroup The Alert Group the Alert lives in.
	AlertGroup         *AlertGroupRef `json:"alert_group,omitempty"`
	AlertmanagerGroups []string       `json:"alertmanager_groups"`

	// Annotations Label names and values.
	Annotations *Labels `json:"annotations,omitempty"`
	Fingerprint string  `json:"fingerprint"`

	// Labels Label names and values.
	Labels     Labels    `json:"labels"`
	LastSeenAt time.Time `json:"last_seen_at"`

	// ResolveReason Why an Alert resolved; null while it fires.
	ResolveReason nullable.Nullable[NullableResolveReason] `json:"resolve_reason,omitempty"`

	// ResolveReasonText Full reason text, for example "Integration prod-eu deleted".
	ResolveReasonText nullable.Nullable[string]    `json:"resolve_reason_text,omitempty"`
	ResolvedAt        nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`

	// Route The Route that took the Alert; absent before routing.
	Route         *EntityRef     `json:"route,omitempty"`
	SeverityLevel *SeverityLevel `json:"severity_level,omitempty"`

	// SeverityRaw Severity value as received when it has no mapping.
	SeverityRaw nullable.Nullable[string] `json:"severity_raw,omitempty"`
	StartsAt    time.Time                 `json:"starts_at"`
	State       AlertState                `json:"state"`

	// StaticLabelWarnings Static labels the Alert already carried; its own value won.
	StaticLabelWarnings *[]string `json:"static_label_warnings,omitempty"`

	// Teams The Teams the Alert belongs to, decided when it last started firing (C-25.FR-5).
	Teams []TeamMembership `json:"teams"`
}

IntegrationAlert An Alert as Muster tracks it for one Integration.

type IntegrationAlertList

type IntegrationAlertList struct {
	Items      []IntegrationAlert        `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

IntegrationAlertList defines model for IntegrationAlertList.

type IntegrationAttention

type IntegrationAttention struct {
	Integration EntityRef                    `json:"integration"`
	Issue       IntegrationAttentionIssue    `json:"issue"`
	Since       nullable.Nullable[time.Time] `json:"since,omitempty"`
}

IntegrationAttention defines model for IntegrationAttention.

type IntegrationAttentionIssue

type IntegrationAttentionIssue string

IntegrationAttentionIssue defines model for IntegrationAttention.Issue.

const (
	IntegrationAttentionIssueHeartbeatLost     IntegrationAttentionIssue = "heartbeat_lost"
	IntegrationAttentionIssueSnapshotTruncated IntegrationAttentionIssue = "snapshot_truncated"
)

Defines values for IntegrationAttentionIssue.

func (IntegrationAttentionIssue) Valid

func (e IntegrationAttentionIssue) Valid() bool

Valid indicates whether the value is a known member of the IntegrationAttentionIssue enum.

type IntegrationBase

type IntegrationBase struct {
	// ConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
	ConnectionMode         IntegrationBaseConnectionMode `json:"connection_mode"`
	Description            *string                       `json:"description,omitempty"`
	DuplicateWindowSeconds int                           `json:"duplicate_window_seconds"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Name Unique in the Organization.
	Name string `json:"name"`

	// StaticLabels Label names and values.
	StaticLabels Labels `json:"static_labels"`
}

IntegrationBase defines model for IntegrationBase.

type IntegrationBaseConnectionMode

type IntegrationBaseConnectionMode string

IntegrationBaseConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).

const (
	IntegrationBaseConnectionModeWebhookOnly IntegrationBaseConnectionMode = "webhook_only"
)

Defines values for IntegrationBaseConnectionMode.

func (IntegrationBaseConnectionMode) Valid

Valid indicates whether the value is a known member of the IntegrationBaseConnectionMode enum.

type IntegrationConnectionMode

type IntegrationConnectionMode string

IntegrationConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).

const (
	IntegrationConnectionModeWebhookOnly IntegrationConnectionMode = "webhook_only"
)

Defines values for IntegrationConnectionMode.

func (IntegrationConnectionMode) Valid

func (e IntegrationConnectionMode) Valid() bool

Valid indicates whether the value is a known member of the IntegrationConnectionMode enum.

type IntegrationId

type IntegrationId = PublicId

IntegrationId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type IntegrationInput

type IntegrationInput struct {
	// ConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).
	ConnectionMode         IntegrationInputConnectionMode `json:"connection_mode"`
	Description            *string                        `json:"description,omitempty"`
	DuplicateWindowSeconds int                            `json:"duplicate_window_seconds"`
	Heartbeat              HeartbeatSettingsInput         `json:"heartbeat"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Name Unique in the Organization.
	Name string `json:"name"`

	// StaticLabels Label names and values.
	StaticLabels Labels `json:"static_labels"`
}

IntegrationInput defines model for IntegrationInput.

type IntegrationInputConnectionMode

type IntegrationInputConnectionMode string

IntegrationInputConnectionMode The Connection mode; in L1 the only mode is `webhook_only` (webhook-only in the glossary).

const (
	IntegrationInputConnectionModeWebhookOnly IntegrationInputConnectionMode = "webhook_only"
)

Defines values for IntegrationInputConnectionMode.

func (IntegrationInputConnectionMode) Valid

Valid indicates whether the value is a known member of the IntegrationInputConnectionMode enum.

type IntegrationList

type IntegrationList struct {
	Items      []Integration             `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

IntegrationList defines model for IntegrationList.

type IntegrationToken

type IntegrationToken struct {
	CreatedAt time.Time `json:"created_at"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id         PublicId                     `json:"id"`
	LastUsedAt nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
	Name       *string                      `json:"name,omitempty"`
}

IntegrationToken defines model for IntegrationToken.

type IntegrationTokenCreate

type IntegrationTokenCreate struct {
	// Name Optional label to tell tokens apart during rotation.
	Name *string `json:"name,omitempty"`
}

IntegrationTokenCreate defines model for IntegrationTokenCreate.

type IntegrationTokenCreated

type IntegrationTokenCreated struct {
	// AlertmanagerSnippet Alertmanager receiver and route (YAML) with `send_resolved: true`, `max_alerts: 0`, `http_config.authorization` and the token. The route is a child route with `continue: true`, to be placed first, followed by a commented catch-all child route for the default receiver, to be kept last, so that the default receiver keeps getting alerts. Shown once.
	AlertmanagerSnippet string `json:"alertmanager_snippet"`

	// HeartbeatSnippet Always-firing rule, route and receiver for the Heartbeat; null while the Heartbeat is off. Shown once.
	HeartbeatSnippet nullable.Nullable[string] `json:"heartbeat_snippet,omitempty"`
	Token            IntegrationToken          `json:"token"`

	// Value The token, starting with `mstr_int_`. Shown once.
	Value string `json:"value"`
}

IntegrationTokenCreated defines model for IntegrationTokenCreated.

type IntegrationTokenId

type IntegrationTokenId = PublicId

IntegrationTokenId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type IntegrationTokenList

type IntegrationTokenList struct {
	Items []IntegrationToken `json:"items"`
}

IntegrationTokenList defines model for IntegrationTokenList.

type IntegrationWarning

type IntegrationWarning struct {
	// Error For `snapshot_failed`; why processing failed, as `processing_error` of that Stored Snapshot, for example `the webhook has no groupKey`. The sender still got `202`.
	Error                 nullable.Nullable[string] `json:"error,omitempty"`
	Kind                  IntegrationWarningKind    `json:"kind"`
	RepeatIntervalSeconds nullable.Nullable[int]    `json:"repeat_interval_seconds,omitempty"`

	// RoutePath For `long_repeat_interval`; the Alertmanager route.
	RoutePath nullable.Nullable[string] `json:"route_path,omitempty"`

	// Since For `heartbeat_lost`, the time of the last signal; for `snapshot_failed`, the time the failed Stored Snapshot was received.
	Since nullable.Nullable[time.Time] `json:"since,omitempty"`

	// SnapshotId For `snapshot_failed`; the id of the newest Stored Snapshot of the Integration, which failed. The warning stands until a later Snapshot is processed.
	SnapshotId nullable.Nullable[string] `json:"snapshot_id,omitempty"`

	// TruncatedGroupCount For `snapshot_truncated`.
	TruncatedGroupCount nullable.Nullable[int] `json:"truncated_group_count,omitempty"`
}

IntegrationWarning defines model for IntegrationWarning.

type IntegrationWarningKind

type IntegrationWarningKind string

IntegrationWarningKind defines model for IntegrationWarning.Kind.

const (
	IntegrationWarningKindHeartbeatLost          IntegrationWarningKind = "heartbeat_lost"
	IntegrationWarningKindHeartbeatNotConfigured IntegrationWarningKind = "heartbeat_not_configured"
	IntegrationWarningKindHeartbeatWaiting       IntegrationWarningKind = "heartbeat_waiting"
	IntegrationWarningKindLongRepeatInterval     IntegrationWarningKind = "long_repeat_interval"
	IntegrationWarningKindSnapshotFailed         IntegrationWarningKind = "snapshot_failed"
	IntegrationWarningKindSnapshotTruncated      IntegrationWarningKind = "snapshot_truncated"
)

Defines values for IntegrationWarningKind.

func (IntegrationWarningKind) Valid

func (e IntegrationWarningKind) Valid() bool

Valid indicates whether the value is a known member of the IntegrationWarningKind enum.

type InternalError

type InternalError = Problem

InternalError RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type IssueMyIcalFeedResponse

type IssueMyIcalFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *IcalFeedIssued
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *IssueMyIcalFeedResponse429Headers
}

func ParseIssueMyIcalFeedResponse

func ParseIssueMyIcalFeedResponse(rsp *http.Response) (*IssueMyIcalFeedResponse, error)

ParseIssueMyIcalFeedResponse parses an HTTP response from a IssueMyIcalFeedWithResponse call

func (IssueMyIcalFeedResponse) ContentType

func (r IssueMyIcalFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssueMyIcalFeedResponse) GetApplicationproblemJSON401

func (r IssueMyIcalFeedResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (IssueMyIcalFeedResponse) GetApplicationproblemJSON403

func (r IssueMyIcalFeedResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (IssueMyIcalFeedResponse) GetApplicationproblemJSON429

func (r IssueMyIcalFeedResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (IssueMyIcalFeedResponse) GetBody

func (r IssueMyIcalFeedResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IssueMyIcalFeedResponse) GetJSON201

func (r IssueMyIcalFeedResponse) GetJSON201() *IcalFeedIssued

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (IssueMyIcalFeedResponse) Status

func (r IssueMyIcalFeedResponse) Status() string

Status returns HTTPResponse.Status

func (IssueMyIcalFeedResponse) StatusCode

func (r IssueMyIcalFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IssueMyIcalFeedResponse429Headers

type IssueMyIcalFeedResponse429Headers struct {
	RetryAfter *int
}

IssueMyIcalFeedResponse429Headers the declared response headers of an HTTP 429 response for IssueMyIcalFeed

type Keyring

type Keyring struct {
	Keys []KeyringKey `json:"keys"`
}

Keyring defines model for Keyring.

type KeyringKey

type KeyringKey struct {
	Active bool `json:"active"`

	// HeldBy Live replicas that hold the key.
	HeldBy []string `json:"held_by"`

	// Id Key id derived from the key material.
	Id string `json:"id"`

	// MissingOn Live replicas that do not hold the key; activation is refused while this is not empty.
	MissingOn []string `json:"missing_on"`

	// Needed A stored Secret, an open Root message or a call through a Notification gateway that its person may still acknowledge still depends on the key.
	Needed bool `json:"needed"`

	// Removable The key is no longer used and can be removed from `MUSTER_SECRET_KEYS`. Only a key that was active before can be removable; a key that was never active is `not_active_yet`, to be activated, never removed.
	Removable bool `json:"removable"`

	// State `active`; else `needed` when a stored Secret, an open Root message or a call through a Notification gateway still depends on the key; else `removable` when it was active before; else `not_active_yet`: a key that was never active, such as one added for a rotation.
	State KeyringKeyState `json:"state"`
}

KeyringKey defines model for KeyringKey.

type KeyringKeyState

type KeyringKeyState string

KeyringKeyState `active`; else `needed` when a stored Secret, an open Root message or a call through a Notification gateway still depends on the key; else `removable` when it was active before; else `not_active_yet`: a key that was never active, such as one added for a rotation.

const (
	KeyringKeyStateActive       KeyringKeyState = "active"
	KeyringKeyStateNeeded       KeyringKeyState = "needed"
	KeyringKeyStateNotActiveYet KeyringKeyState = "not_active_yet"
	KeyringKeyStateRemovable    KeyringKeyState = "removable"
)

Defines values for KeyringKeyState.

func (KeyringKeyState) Valid

func (e KeyringKeyState) Valid() bool

Valid indicates whether the value is a known member of the KeyringKeyState enum.

type LabelMatchers

type LabelMatchers = []string

LabelMatchers defines model for LabelMatchers.

type Labels

type Labels map[string]string

Labels Label names and values.

type Language

type Language string

Language defines model for Language.

const (
	LanguageEn Language = "en"
	LanguageRu Language = "ru"
)

Defines values for Language.

func (Language) Valid

func (e Language) Valid() bool

Valid indicates whether the value is a known member of the Language enum.

type LifecycleEvent

type LifecycleEvent string

LifecycleEvent Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions). The Timeline kind of each event is given in `x-event-kinds`.

const (
	LifecycleEventAckTimeout            LifecycleEvent = "ack_timeout"
	LifecycleEventAcknowledged          LifecycleEvent = "acknowledged"
	LifecycleEventAlertContinued        LifecycleEvent = "alert_continued"
	LifecycleEventAlertReplaced         LifecycleEvent = "alert_replaced"
	LifecycleEventAlertResolved         LifecycleEvent = "alert_resolved"
	LifecycleEventAlertsAdded           LifecycleEvent = "alerts_added"
	LifecycleEventAnnotationsChanged    LifecycleEvent = "annotations_changed"
	LifecycleEventAssigneesChanged      LifecycleEvent = "assignees_changed"
	LifecycleEventAutoUnacknowledged    LifecycleEvent = "auto_unacknowledged"
	LifecycleEventCreated               LifecycleEvent = "created"
	LifecycleEventDestinationJoined     LifecycleEvent = "destination_joined"
	LifecycleEventEscalationStepSkipped LifecycleEvent = "escalation_step_skipped"
	LifecycleEventEscalationWebhook     LifecycleEvent = "escalation_webhook"
	LifecycleEventMovedToDefaultRoute   LifecycleEvent = "moved_to_default_route"
	LifecycleEventNoteAdded             LifecycleEvent = "note_added"
	LifecycleEventNoticesMissed         LifecycleEvent = "notices_missed"
	LifecycleEventPageNotDelivered      LifecycleEvent = "page_not_delivered"
	LifecycleEventPaged                 LifecycleEvent = "paged"
	LifecycleEventReminder              LifecycleEvent = "reminder"
	LifecycleEventReminderAnswered      LifecycleEvent = "reminder_answered"
	LifecycleEventReopened              LifecycleEvent = "reopened"
	LifecycleEventResolved              LifecycleEvent = "resolved"
	LifecycleEventSeverityRaised        LifecycleEvent = "severity_raised"
	LifecycleEventSnoozeEnded           LifecycleEvent = "snooze_ended"
	LifecycleEventSnoozed               LifecycleEvent = "snoozed"
	LifecycleEventTakeover              LifecycleEvent = "takeover"
	LifecycleEventTeamJoined            LifecycleEvent = "team_joined"
	LifecycleEventUnacknowledged        LifecycleEvent = "unacknowledged"
	LifecycleEventUnclaimed             LifecycleEvent = "unclaimed"
	LifecycleEventUnknownTeamValue      LifecycleEvent = "unknown_team_value"
	LifecycleEventUnresolved            LifecycleEvent = "unresolved"
	LifecycleEventUnsnoozed             LifecycleEvent = "unsnoozed"
	LifecycleEventUrgencyRaised         LifecycleEvent = "urgency_raised"
)

Defines values for LifecycleEvent.

func (LifecycleEvent) Valid

func (e LifecycleEvent) Valid() bool

Valid indicates whether the value is a known member of the LifecycleEvent enum.

type Limit

type Limit = int

Limit defines model for Limit.

type Limited

type Limited = Problem

Limited RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type Limiter

type Limiter struct {
	Limit      int `json:"limit"`
	PerSeconds int `json:"per_seconds"`
}

Limiter A rate limit of `limit` calls per `per_seconds`.

type LinkHandleKind

type LinkHandleKind string

LinkHandleKind Set on Bridge Connections only; the kind of handle a code needs, the `user_lookup` of the Connection's last `info`, which labels the handle field — Email, Login, Username or User id. Null when no code is offered.

const (
	LinkHandleKindEmail       LinkHandleKind = "email"
	LinkHandleKindLessThannil LinkHandleKind = "<nil>"
	LinkHandleKindLogin       LinkHandleKind = "login"
	LinkHandleKindUserId      LinkHandleKind = "user_id"
	LinkHandleKindUsername    LinkHandleKind = "username"
)

Defines values for LinkHandleKind.

func (LinkHandleKind) Valid

func (e LinkHandleKind) Valid() bool

Valid indicates whether the value is a known member of the LinkHandleKind enum.

type LinkRule

type LinkRule struct {
	// Builtin The built-in "Explore" rule cannot be deleted (`409` `builtin_immutable`).
	Builtin   bool      `json:"builtin"`
	CreatedAt time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Matchers  []Matcher                 `json:"matchers"`
	Name      string                    `json:"name"`
	Scope     LinkRuleScope             `json:"scope"`

	// UrlTemplate Go template that may call `lookup table key column`.
	UrlTemplate string `json:"url_template"`
}

LinkRule defines model for LinkRule.

type LinkRuleBase

type LinkRuleBase struct {
	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Matchers  []Matcher                 `json:"matchers"`
	Name      string                    `json:"name"`
	Scope     LinkRuleScope             `json:"scope"`

	// UrlTemplate Go template that may call `lookup table key column`.
	UrlTemplate string `json:"url_template"`
}

LinkRuleBase defines model for LinkRuleBase.

type LinkRuleId

type LinkRuleId = PublicId

LinkRuleId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type LinkRuleList

type LinkRuleList struct {
	Items      []LinkRule                `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

LinkRuleList defines model for LinkRuleList.

type LinkRuleScope

type LinkRuleScope struct {
	// Label The label whose every value yields a link, for `label_value`.
	Label nullable.Nullable[string] `json:"label,omitempty"`
	Type  LinkRuleScopeType         `json:"type"`
}

LinkRuleScope defines model for LinkRuleScope.

type LinkRuleScopeType

type LinkRuleScopeType string

LinkRuleScopeType defines model for LinkRuleScope.Type.

const (
	LinkRuleScopeTypeAlertGroup LinkRuleScopeType = "alert_group"
	LinkRuleScopeTypeLabelValue LinkRuleScopeType = "label_value"
)

Defines values for LinkRuleScopeType.

func (LinkRuleScopeType) Valid

func (e LinkRuleScopeType) Valid() bool

Valid indicates whether the value is a known member of the LinkRuleScopeType enum.

type LinkableConnection

type LinkableConnection struct {
	// HandleKind Set on Bridge Connections only; the kind of handle a code needs, the `user_lookup` of the Connection's last `info`, which labels the handle field — Email, Login, Username or User id. Null when no code is offered.
	HandleKind nullable.Nullable[LinkHandleKind] `json:"handle_kind,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// LinkMethods Set on Bridge Connections only, from the Connection's last `info`; `token`, a token sent to the bot, always, and `code`, a code sent by direct message, where `info` declares `direct_messages` with `bot_can_start` and a `user_lookup` other than `none`. Only `token` while Muster has not read `info`.
	LinkMethods *[]LinkableConnectionLinkMethods `json:"link_methods,omitempty"`
	Messenger   Messenger                        `json:"messenger"`
	Name        string                           `json:"name"`
}

LinkableConnection A Connection an account can be linked through, as the profile sees it; no other Connection field is shown. A Bridge Connection also says how an account can be linked through it; a Slack Connection has neither `link_methods` nor `handle_kind`, since its accounts link by a code sent by direct message.

type LinkableConnectionLinkMethods

type LinkableConnectionLinkMethods string

LinkableConnectionLinkMethods defines model for LinkableConnection.LinkMethods.

const (
	LinkableConnectionLinkMethodsCode  LinkableConnectionLinkMethods = "code"
	LinkableConnectionLinkMethodsToken LinkableConnectionLinkMethods = "token"
)

Defines values for LinkableConnectionLinkMethods.

func (LinkableConnectionLinkMethods) Valid

Valid indicates whether the value is a known member of the LinkableConnectionLinkMethods enum.

type LinkableConnectionList

type LinkableConnectionList struct {
	Items []LinkableConnection `json:"items"`
}

LinkableConnectionList defines model for LinkableConnectionList.

type LinkedMessenger

type LinkedMessenger struct {
	Connection EntityRef      `json:"connection"`
	Type       ConnectionType `json:"type"`
}

LinkedMessenger A messenger account the person linked (an Account link), through the Connection named.

type ListAlertGroupAlertsParams

type ListAlertGroupAlertsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// State Filter by firing or resolved; firing Alerts come first.
	State *AlertState `form:"state,omitempty" json:"state,omitempty"`
}

ListAlertGroupAlertsParams defines parameters for ListAlertGroupAlerts.

type ListAlertGroupAlertsResponse

type ListAlertGroupAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertGroupAlertList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListAlertGroupAlertsResponse429Headers
}

func ParseListAlertGroupAlertsResponse

func ParseListAlertGroupAlertsResponse(rsp *http.Response) (*ListAlertGroupAlertsResponse, error)

ParseListAlertGroupAlertsResponse parses an HTTP response from a ListAlertGroupAlertsWithResponse call

func (ListAlertGroupAlertsResponse) ContentType

func (r ListAlertGroupAlertsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON400

func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON401

func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON403

func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON404

func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListAlertGroupAlertsResponse) GetApplicationproblemJSON429

func (r ListAlertGroupAlertsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListAlertGroupAlertsResponse) GetBody

func (r ListAlertGroupAlertsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAlertGroupAlertsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAlertGroupAlertsResponse) Status

Status returns HTTPResponse.Status

func (ListAlertGroupAlertsResponse) StatusCode

func (r ListAlertGroupAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAlertGroupAlertsResponse429Headers

type ListAlertGroupAlertsResponse429Headers struct {
	RetryAfter *int
}

ListAlertGroupAlertsResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroupAlerts

type ListAlertGroupDeliveriesResponse

type ListAlertGroupDeliveriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertGroupDeliveryList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListAlertGroupDeliveriesResponse429Headers
}

func ParseListAlertGroupDeliveriesResponse

func ParseListAlertGroupDeliveriesResponse(rsp *http.Response) (*ListAlertGroupDeliveriesResponse, error)

ParseListAlertGroupDeliveriesResponse parses an HTTP response from a ListAlertGroupDeliveriesWithResponse call

func (ListAlertGroupDeliveriesResponse) ContentType

func (r ListAlertGroupDeliveriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON401

func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON403

func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON404

func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON429

func (r ListAlertGroupDeliveriesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListAlertGroupDeliveriesResponse) GetBody

func (r ListAlertGroupDeliveriesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAlertGroupDeliveriesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAlertGroupDeliveriesResponse) Status

Status returns HTTPResponse.Status

func (ListAlertGroupDeliveriesResponse) StatusCode

func (r ListAlertGroupDeliveriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAlertGroupDeliveriesResponse429Headers

type ListAlertGroupDeliveriesResponse429Headers struct {
	RetryAfter *int
}

ListAlertGroupDeliveriesResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroupDeliveries

type ListAlertGroupNotesParams

type ListAlertGroupNotesParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListAlertGroupNotesParams defines parameters for ListAlertGroupNotes.

type ListAlertGroupNotesResponse

type ListAlertGroupNotesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NoteList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListAlertGroupNotesResponse429Headers
}

func ParseListAlertGroupNotesResponse

func ParseListAlertGroupNotesResponse(rsp *http.Response) (*ListAlertGroupNotesResponse, error)

ParseListAlertGroupNotesResponse parses an HTTP response from a ListAlertGroupNotesWithResponse call

func (ListAlertGroupNotesResponse) ContentType

func (r ListAlertGroupNotesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAlertGroupNotesResponse) GetApplicationproblemJSON400

func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListAlertGroupNotesResponse) GetApplicationproblemJSON401

func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListAlertGroupNotesResponse) GetApplicationproblemJSON403

func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListAlertGroupNotesResponse) GetApplicationproblemJSON404

func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListAlertGroupNotesResponse) GetApplicationproblemJSON429

func (r ListAlertGroupNotesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListAlertGroupNotesResponse) GetBody

func (r ListAlertGroupNotesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAlertGroupNotesResponse) GetJSON200

func (r ListAlertGroupNotesResponse) GetJSON200() *NoteList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAlertGroupNotesResponse) Status

Status returns HTTPResponse.Status

func (ListAlertGroupNotesResponse) StatusCode

func (r ListAlertGroupNotesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAlertGroupNotesResponse429Headers

type ListAlertGroupNotesResponse429Headers struct {
	RetryAfter *int
}

ListAlertGroupNotesResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroupNotes

type ListAlertGroupsParams

type ListAlertGroupsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Status Only these statuses. Default: firing, acknowledged and snoozed.
	Status *AgStatus `form:"status,omitempty" json:"status,omitempty"`

	// Route Only these Routes (`public_id`).
	Route *AgRoute `form:"route,omitempty" json:"route,omitempty"`

	// Integration Only Alert Groups with Alerts from these Integrations (`public_id`).
	Integration *AgIntegration `form:"integration,omitempty" json:"integration,omitempty"`

	// Severity Only these Severity levels.
	Severity *AgSeverity `form:"severity,omitempty" json:"severity,omitempty"`

	// Urgent Only Urgent (true) or non-Urgent (false) Alert Groups. An Alert Group is Urgent exactly when its Severity level is critical.
	Urgent *AgUrgent `form:"urgent,omitempty" json:"urgent,omitempty"`

	// ResolvedBy Only Alert Groups resolved by a person or by the system.
	ResolvedBy *AgResolvedBy `form:"resolved_by,omitempty" json:"resolved_by,omitempty"`

	// ResolveReason With `resolved_by=system`: the reason.
	ResolveReason *AgResolveReason `form:"resolve_reason,omitempty" json:"resolve_reason,omitempty"`

	// Reopened True: Reopen count above zero.
	Reopened *AgReopened `form:"reopened,omitempty" json:"reopened,omitempty"`

	// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
	Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`

	// Owner A user `public_id`, `me` (the calling User; `422` for a Service account token), or `none` for Alert Groups nobody owns, resolved ones included.
	Owner *AgOwner `form:"owner,omitempty" json:"owner,omitempty"`

	// Assignee Only the open Alert Groups where this User is an Assignee (C-32.FR-12, FR-18), by the User's `public_id`, deleted Users included; or `me`, the calling User (`422` `unsupported` for a Service account token). An Alert Group leaves it once acknowledged, snoozed or resolved. An id that names no User is `422` `unknown_id`.
	Assignee *AgAssignee `form:"assignee,omitempty" json:"assignee,omitempty"`

	// Team Only Alert Groups that have this Team among their Teams (C-25.FR-6), deleted or not, by its `public_id`; or `mine` for those that have any Team of the calling User ("My Teams"; `422` `unsupported` for a Service account token). An unknown Team is `422` `unknown_id`.
	Team *AgTeam `form:"team,omitempty" json:"team,omitempty"`

	// SnoozedNoEnd True: only Alert Groups snoozed with no end. False: every Alert Group but those.
	SnoozedNoEnd *AgSnoozedNoEnd `form:"snoozed_no_end,omitempty" json:"snoozed_no_end,omitempty"`

	// DeliveryProblem Any Destination is Not delivered, waiting for a Broken Destination, deleted in the messenger or has a Thread not attached.
	DeliveryProblem *AgDeliveryProblem `form:"delivery_problem,omitempty" json:"delivery_problem,omitempty"`

	// Unclaimed Only Unclaimed Alert Groups.
	Unclaimed *AgUnclaimed `form:"unclaimed,omitempty" json:"unclaimed,omitempty"`

	// From Start of the time range (RFC 3339, UTC).
	From *From `form:"from,omitempty" json:"from,omitempty"`

	// To End of the time range (RFC 3339, UTC).
	To *To `form:"to,omitempty" json:"to,omitempty"`

	// Number The Alert Group with exactly this `#N`. Neither the default time range nor the default status applies: a number is found whatever its age and status (while its summary row is kept); the other filters still apply.
	Number *AgNumber `form:"number,omitempty" json:"number,omitempty"`

	// Q Search by text in the title or `summary`, case-insensitive and matching parts of words. A `#N` typed here is the same as `number`.
	Q *AgQuery `form:"q,omitempty" json:"q,omitempty"`

	// Sort Sort field; a leading `-` sorts descending.
	Sort *ListAlertGroupsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// LabelColumns Label names whose shared value is returned in `label_values` of each Alert Group.
	LabelColumns *AgLabelColumns `form:"label_columns,omitempty" json:"label_columns,omitempty"`
}

ListAlertGroupsParams defines parameters for ListAlertGroups.

type ListAlertGroupsParamsSort

type ListAlertGroupsParamsSort string

ListAlertGroupsParamsSort defines parameters for ListAlertGroups.

const (
	ListAlertGroupsParamsSortLastChangedAt      ListAlertGroupsParamsSort = "last_changed_at"
	ListAlertGroupsParamsSortMinusLastChangedAt ListAlertGroupsParamsSort = "-last_changed_at"
	ListAlertGroupsParamsSortMinusStartedAt     ListAlertGroupsParamsSort = "-started_at"
	ListAlertGroupsParamsSortStartedAt          ListAlertGroupsParamsSort = "started_at"
)

Defines values for ListAlertGroupsParamsSort.

func (ListAlertGroupsParamsSort) Valid

func (e ListAlertGroupsParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ListAlertGroupsParamsSort enum.

type ListAlertGroupsResponse

type ListAlertGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertGroupList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListAlertGroupsResponse429Headers
}

func ParseListAlertGroupsResponse

func ParseListAlertGroupsResponse(rsp *http.Response) (*ListAlertGroupsResponse, error)

ParseListAlertGroupsResponse parses an HTTP response from a ListAlertGroupsWithResponse call

func (ListAlertGroupsResponse) ContentType

func (r ListAlertGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAlertGroupsResponse) GetApplicationproblemJSON400

func (r ListAlertGroupsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListAlertGroupsResponse) GetApplicationproblemJSON401

func (r ListAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListAlertGroupsResponse) GetApplicationproblemJSON403

func (r ListAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListAlertGroupsResponse) GetApplicationproblemJSON422

func (r ListAlertGroupsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListAlertGroupsResponse) GetApplicationproblemJSON429

func (r ListAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListAlertGroupsResponse) GetBody

func (r ListAlertGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAlertGroupsResponse) GetJSON200

func (r ListAlertGroupsResponse) GetJSON200() *AlertGroupList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAlertGroupsResponse) Status

func (r ListAlertGroupsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAlertGroupsResponse) StatusCode

func (r ListAlertGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAlertGroupsResponse429Headers

type ListAlertGroupsResponse429Headers struct {
	RetryAfter *int
}

ListAlertGroupsResponse429Headers the declared response headers of an HTTP 429 response for ListAlertGroups

type ListAlertmanagerRoutesResponse

type ListAlertmanagerRoutesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AlertmanagerRouteList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListAlertmanagerRoutesResponse429Headers
}

func ParseListAlertmanagerRoutesResponse

func ParseListAlertmanagerRoutesResponse(rsp *http.Response) (*ListAlertmanagerRoutesResponse, error)

ParseListAlertmanagerRoutesResponse parses an HTTP response from a ListAlertmanagerRoutesWithResponse call

func (ListAlertmanagerRoutesResponse) ContentType

func (r ListAlertmanagerRoutesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON401

func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON403

func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON404

func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListAlertmanagerRoutesResponse) GetApplicationproblemJSON429

func (r ListAlertmanagerRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListAlertmanagerRoutesResponse) GetBody

func (r ListAlertmanagerRoutesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAlertmanagerRoutesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAlertmanagerRoutesResponse) Status

Status returns HTTPResponse.Status

func (ListAlertmanagerRoutesResponse) StatusCode

func (r ListAlertmanagerRoutesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAlertmanagerRoutesResponse429Headers

type ListAlertmanagerRoutesResponse429Headers struct {
	RetryAfter *int
}

ListAlertmanagerRoutesResponse429Headers the declared response headers of an HTTP 429 response for ListAlertmanagerRoutes

type ListAuditLogParams

type ListAuditLogParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// From Start of the time range (RFC 3339, UTC).
	From *From `form:"from,omitempty" json:"from,omitempty"`

	// To End of the time range (RFC 3339, UTC).
	To *To `form:"to,omitempty" json:"to,omitempty"`

	// Actor Actor `public_id` (user or Service account).
	Actor *string `form:"actor,omitempty" json:"actor,omitempty"`

	// Action Action type, for example `integration.update`.
	Action *string `form:"action,omitempty" json:"action,omitempty"`

	// ResourceType Resource type, for example `integration`.
	ResourceType *string `form:"resource_type,omitempty" json:"resource_type,omitempty"`

	// ResourceId Resource `public_id`.
	ResourceId *string `form:"resource_id,omitempty" json:"resource_id,omitempty"`
}

ListAuditLogParams defines parameters for ListAuditLog.

type ListAuditLogResponse

type ListAuditLogResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AuditEntryList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListAuditLogResponse429Headers
}

func ParseListAuditLogResponse

func ParseListAuditLogResponse(rsp *http.Response) (*ListAuditLogResponse, error)

ParseListAuditLogResponse parses an HTTP response from a ListAuditLogWithResponse call

func (ListAuditLogResponse) ContentType

func (r ListAuditLogResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAuditLogResponse) GetApplicationproblemJSON400

func (r ListAuditLogResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListAuditLogResponse) GetApplicationproblemJSON401

func (r ListAuditLogResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListAuditLogResponse) GetApplicationproblemJSON403

func (r ListAuditLogResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListAuditLogResponse) GetApplicationproblemJSON429

func (r ListAuditLogResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListAuditLogResponse) GetBody

func (r ListAuditLogResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAuditLogResponse) GetJSON200

func (r ListAuditLogResponse) GetJSON200() *AuditEntryList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAuditLogResponse) Status

func (r ListAuditLogResponse) Status() string

Status returns HTTPResponse.Status

func (ListAuditLogResponse) StatusCode

func (r ListAuditLogResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAuditLogResponse429Headers

type ListAuditLogResponse429Headers struct {
	RetryAfter *int
}

ListAuditLogResponse429Headers the declared response headers of an HTTP 429 response for ListAuditLog

type ListConnectionChannelsParams

type ListConnectionChannelsParams struct {
	// TeamId Only this team (Mattermost); a Slack Connection ignores it.
	TeamId *string `form:"team_id,omitempty" json:"team_id,omitempty"`

	// Q Only channels whose name, or a Mattermost channel's display name, contains this text, regardless of case.
	Q *string `form:"q,omitempty" json:"q,omitempty"`
}

ListConnectionChannelsParams defines parameters for ListConnectionChannels.

type ListConnectionChannelsResponse

type ListConnectionChannelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ConnectionChannelList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListConnectionChannelsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListConnectionChannelsResponse503Headers
}

func ParseListConnectionChannelsResponse

func ParseListConnectionChannelsResponse(rsp *http.Response) (*ListConnectionChannelsResponse, error)

ParseListConnectionChannelsResponse parses an HTTP response from a ListConnectionChannelsWithResponse call

func (ListConnectionChannelsResponse) ContentType

func (r ListConnectionChannelsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListConnectionChannelsResponse) GetApplicationproblemJSON400

func (r ListConnectionChannelsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListConnectionChannelsResponse) GetApplicationproblemJSON401

func (r ListConnectionChannelsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListConnectionChannelsResponse) GetApplicationproblemJSON403

func (r ListConnectionChannelsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListConnectionChannelsResponse) GetApplicationproblemJSON404

func (r ListConnectionChannelsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListConnectionChannelsResponse) GetApplicationproblemJSON409

func (r ListConnectionChannelsResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ListConnectionChannelsResponse) GetApplicationproblemJSON429

func (r ListConnectionChannelsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListConnectionChannelsResponse) GetApplicationproblemJSON503

func (r ListConnectionChannelsResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ListConnectionChannelsResponse) GetBody

func (r ListConnectionChannelsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListConnectionChannelsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListConnectionChannelsResponse) Status

Status returns HTTPResponse.Status

func (ListConnectionChannelsResponse) StatusCode

func (r ListConnectionChannelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListConnectionChannelsResponse429Headers

type ListConnectionChannelsResponse429Headers struct {
	RetryAfter *int
}

ListConnectionChannelsResponse429Headers the declared response headers of an HTTP 429 response for ListConnectionChannels

type ListConnectionChannelsResponse503Headers

type ListConnectionChannelsResponse503Headers struct {
	RetryAfter *int
}

ListConnectionChannelsResponse503Headers the declared response headers of an HTTP 503 response for ListConnectionChannels

type ListConnectionGroupsParams

type ListConnectionGroupsParams struct {
	// Q Only groups whose name or display name contains this text, regardless of case.
	Q *string `form:"q,omitempty" json:"q,omitempty"`
}

ListConnectionGroupsParams defines parameters for ListConnectionGroups.

type ListConnectionGroupsResponse

type ListConnectionGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ConnectionGroupList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListConnectionGroupsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListConnectionGroupsResponse503Headers
}

func ParseListConnectionGroupsResponse

func ParseListConnectionGroupsResponse(rsp *http.Response) (*ListConnectionGroupsResponse, error)

ParseListConnectionGroupsResponse parses an HTTP response from a ListConnectionGroupsWithResponse call

func (ListConnectionGroupsResponse) ContentType

func (r ListConnectionGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListConnectionGroupsResponse) GetApplicationproblemJSON400

func (r ListConnectionGroupsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListConnectionGroupsResponse) GetApplicationproblemJSON401

func (r ListConnectionGroupsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListConnectionGroupsResponse) GetApplicationproblemJSON403

func (r ListConnectionGroupsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListConnectionGroupsResponse) GetApplicationproblemJSON404

func (r ListConnectionGroupsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListConnectionGroupsResponse) GetApplicationproblemJSON409

func (r ListConnectionGroupsResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ListConnectionGroupsResponse) GetApplicationproblemJSON429

func (r ListConnectionGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListConnectionGroupsResponse) GetApplicationproblemJSON503

func (r ListConnectionGroupsResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ListConnectionGroupsResponse) GetBody

func (r ListConnectionGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListConnectionGroupsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListConnectionGroupsResponse) Status

Status returns HTTPResponse.Status

func (ListConnectionGroupsResponse) StatusCode

func (r ListConnectionGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListConnectionGroupsResponse429Headers

type ListConnectionGroupsResponse429Headers struct {
	RetryAfter *int
}

ListConnectionGroupsResponse429Headers the declared response headers of an HTTP 429 response for ListConnectionGroups

type ListConnectionGroupsResponse503Headers

type ListConnectionGroupsResponse503Headers struct {
	RetryAfter *int
}

ListConnectionGroupsResponse503Headers the declared response headers of an HTTP 503 response for ListConnectionGroups

type ListConnectionsParams

type ListConnectionsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Type Filter by type.
	Type *ConnectionType `form:"type,omitempty" json:"type,omitempty"`

	// Role Filter by role: `messenger` lists every Mattermost, Telegram and Slack Connection and the Bridge Connections whose stored `info` has the role `messenger`, which a bridge that declares no roles has; `gateway` only the Bridge Connections whose stored `info` has the role `gateway`.
	Role *BridgeInfoRole `form:"role,omitempty" json:"role,omitempty"`
}

ListConnectionsParams defines parameters for ListConnections.

type ListConnectionsResponse

type ListConnectionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ConnectionList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListConnectionsResponse429Headers
}

func ParseListConnectionsResponse

func ParseListConnectionsResponse(rsp *http.Response) (*ListConnectionsResponse, error)

ParseListConnectionsResponse parses an HTTP response from a ListConnectionsWithResponse call

func (ListConnectionsResponse) ContentType

func (r ListConnectionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListConnectionsResponse) GetApplicationproblemJSON400

func (r ListConnectionsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListConnectionsResponse) GetApplicationproblemJSON401

func (r ListConnectionsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListConnectionsResponse) GetApplicationproblemJSON403

func (r ListConnectionsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListConnectionsResponse) GetApplicationproblemJSON429

func (r ListConnectionsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListConnectionsResponse) GetBody

func (r ListConnectionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListConnectionsResponse) GetJSON200

func (r ListConnectionsResponse) GetJSON200() *ConnectionList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListConnectionsResponse) Status

func (r ListConnectionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListConnectionsResponse) StatusCode

func (r ListConnectionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListConnectionsResponse429Headers

type ListConnectionsResponse429Headers struct {
	RetryAfter *int
}

ListConnectionsResponse429Headers the declared response headers of an HTTP 429 response for ListConnections

type ListDestinationSecretsResponse

type ListDestinationSecretsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DestinationSecretList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListDestinationSecretsResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListDestinationSecretsResponse429Headers
}

func ParseListDestinationSecretsResponse

func ParseListDestinationSecretsResponse(rsp *http.Response) (*ListDestinationSecretsResponse, error)

ParseListDestinationSecretsResponse parses an HTTP response from a ListDestinationSecretsWithResponse call

func (ListDestinationSecretsResponse) ContentType

func (r ListDestinationSecretsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListDestinationSecretsResponse) GetApplicationproblemJSON401

func (r ListDestinationSecretsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListDestinationSecretsResponse) GetApplicationproblemJSON403

func (r ListDestinationSecretsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListDestinationSecretsResponse) GetApplicationproblemJSON404

func (r ListDestinationSecretsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListDestinationSecretsResponse) GetApplicationproblemJSON409

func (r ListDestinationSecretsResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ListDestinationSecretsResponse) GetApplicationproblemJSON429

func (r ListDestinationSecretsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListDestinationSecretsResponse) GetBody

func (r ListDestinationSecretsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListDestinationSecretsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListDestinationSecretsResponse) Status

Status returns HTTPResponse.Status

func (ListDestinationSecretsResponse) StatusCode

func (r ListDestinationSecretsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListDestinationSecretsResponse200Headers

type ListDestinationSecretsResponse200Headers struct {
	ETag *string
}

ListDestinationSecretsResponse200Headers the declared response headers of an HTTP 200 response for ListDestinationSecrets

type ListDestinationSecretsResponse429Headers

type ListDestinationSecretsResponse429Headers struct {
	RetryAfter *int
}

ListDestinationSecretsResponse429Headers the declared response headers of an HTTP 429 response for ListDestinationSecrets

type ListDestinationsParams

type ListDestinationsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Type Filter by type.
	Type *DestinationType `form:"type,omitempty" json:"type,omitempty"`

	// Health Filter by health.
	Health *HealthState `form:"health,omitempty" json:"health,omitempty"`

	// Route Only Destinations of this Route (`public_id`).
	Route *string `form:"route,omitempty" json:"route,omitempty"`

	// Team Only what this Team owns (its `public_id`), or with `mine` what the Teams of the calling User own — "My Teams". A Service account has no Teams, so its `mine` is refused with `422` `unsupported`. A value that names no Team, or a deleted one, matches nothing.
	Team *OwningTeamQuery `form:"team,omitempty" json:"team,omitempty"`
}

ListDestinationsParams defines parameters for ListDestinations.

type ListDestinationsResponse

type ListDestinationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DestinationList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListDestinationsResponse429Headers
}

func ParseListDestinationsResponse

func ParseListDestinationsResponse(rsp *http.Response) (*ListDestinationsResponse, error)

ParseListDestinationsResponse parses an HTTP response from a ListDestinationsWithResponse call

func (ListDestinationsResponse) ContentType

func (r ListDestinationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListDestinationsResponse) GetApplicationproblemJSON400

func (r ListDestinationsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListDestinationsResponse) GetApplicationproblemJSON401

func (r ListDestinationsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListDestinationsResponse) GetApplicationproblemJSON403

func (r ListDestinationsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListDestinationsResponse) GetApplicationproblemJSON422

func (r ListDestinationsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListDestinationsResponse) GetApplicationproblemJSON429

func (r ListDestinationsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListDestinationsResponse) GetBody

func (r ListDestinationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListDestinationsResponse) GetJSON200

func (r ListDestinationsResponse) GetJSON200() *DestinationList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListDestinationsResponse) Status

func (r ListDestinationsResponse) Status() string

Status returns HTTPResponse.Status

func (ListDestinationsResponse) StatusCode

func (r ListDestinationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListDestinationsResponse429Headers

type ListDestinationsResponse429Headers struct {
	RetryAfter *int
}

ListDestinationsResponse429Headers the declared response headers of an HTTP 429 response for ListDestinations

type ListEscalationChainRunsParams

type ListEscalationChainRunsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListEscalationChainRunsParams defines parameters for ListEscalationChainRuns.

type ListEscalationChainRunsResponse

type ListEscalationChainRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EscalationRunList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListEscalationChainRunsResponse429Headers
}

func ParseListEscalationChainRunsResponse

func ParseListEscalationChainRunsResponse(rsp *http.Response) (*ListEscalationChainRunsResponse, error)

ParseListEscalationChainRunsResponse parses an HTTP response from a ListEscalationChainRunsWithResponse call

func (ListEscalationChainRunsResponse) ContentType

func (r ListEscalationChainRunsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEscalationChainRunsResponse) GetApplicationproblemJSON400

func (r ListEscalationChainRunsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListEscalationChainRunsResponse) GetApplicationproblemJSON401

func (r ListEscalationChainRunsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListEscalationChainRunsResponse) GetApplicationproblemJSON403

func (r ListEscalationChainRunsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListEscalationChainRunsResponse) GetApplicationproblemJSON404

func (r ListEscalationChainRunsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListEscalationChainRunsResponse) GetApplicationproblemJSON429

func (r ListEscalationChainRunsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListEscalationChainRunsResponse) GetBody

func (r ListEscalationChainRunsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListEscalationChainRunsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListEscalationChainRunsResponse) Status

Status returns HTTPResponse.Status

func (ListEscalationChainRunsResponse) StatusCode

func (r ListEscalationChainRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEscalationChainRunsResponse429Headers

type ListEscalationChainRunsResponse429Headers struct {
	RetryAfter *int
}

ListEscalationChainRunsResponse429Headers the declared response headers of an HTTP 429 response for ListEscalationChainRuns

type ListEscalationChainsParams

type ListEscalationChainsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Team Only what this Team owns (its `public_id`), or with `mine` what the Teams of the calling User own — "My Teams". A Service account has no Teams, so its `mine` is refused with `422` `unsupported`. A value that names no Team, or a deleted one, matches nothing.
	Team *OwningTeamQuery `form:"team,omitempty" json:"team,omitempty"`

	// Q Case-insensitive match on the name.
	Q *string `form:"q,omitempty" json:"q,omitempty"`
}

ListEscalationChainsParams defines parameters for ListEscalationChains.

type ListEscalationChainsResponse

type ListEscalationChainsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EscalationChainList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListEscalationChainsResponse429Headers
}

func ParseListEscalationChainsResponse

func ParseListEscalationChainsResponse(rsp *http.Response) (*ListEscalationChainsResponse, error)

ParseListEscalationChainsResponse parses an HTTP response from a ListEscalationChainsWithResponse call

func (ListEscalationChainsResponse) ContentType

func (r ListEscalationChainsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEscalationChainsResponse) GetApplicationproblemJSON400

func (r ListEscalationChainsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListEscalationChainsResponse) GetApplicationproblemJSON401

func (r ListEscalationChainsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListEscalationChainsResponse) GetApplicationproblemJSON403

func (r ListEscalationChainsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListEscalationChainsResponse) GetApplicationproblemJSON422

func (r ListEscalationChainsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListEscalationChainsResponse) GetApplicationproblemJSON429

func (r ListEscalationChainsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListEscalationChainsResponse) GetBody

func (r ListEscalationChainsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListEscalationChainsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListEscalationChainsResponse) Status

Status returns HTTPResponse.Status

func (ListEscalationChainsResponse) StatusCode

func (r ListEscalationChainsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEscalationChainsResponse429Headers

type ListEscalationChainsResponse429Headers struct {
	RetryAfter *int
}

ListEscalationChainsResponse429Headers the declared response headers of an HTTP 429 response for ListEscalationChains

type ListIntegrationAlertsParams

type ListIntegrationAlertsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// State Filter by state.
	State *AlertState `form:"state,omitempty" json:"state,omitempty"`

	// Label Label filter: one Alertmanager-syntax Matcher per repeat of the parameter, combined with AND. Each value is a whole matcher: `label=namespace%3D%22payments%22&label=pod%3D~%22api-.*%22` means `namespace="payments"` and `pod=~"api-.*"`. There is no per-label shorthand. On Alert Groups the Matchers are matched against the common labels — the labels every Alert of the group has with the same value — so the filter also works on summary rows after the Alerts were removed; a label the Alerts do not share counts as absent. On the Alerts view of an Integration they are matched against each Alert's labels.
	Label *LabelMatchers `form:"label,omitempty" json:"label,omitempty"`

	// Q Case-insensitive match on label values.
	Q *string `form:"q,omitempty" json:"q,omitempty"`

	// Sort Sort field; a leading `-` sorts descending.
	Sort *ListIntegrationAlertsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
}

ListIntegrationAlertsParams defines parameters for ListIntegrationAlerts.

type ListIntegrationAlertsParamsSort

type ListIntegrationAlertsParamsSort string

ListIntegrationAlertsParamsSort defines parameters for ListIntegrationAlerts.

const (
	LastSeenAt      ListIntegrationAlertsParamsSort = "last_seen_at"
	MinusLastSeenAt ListIntegrationAlertsParamsSort = "-last_seen_at"
	MinusStartsAt   ListIntegrationAlertsParamsSort = "-starts_at"
	StartsAt        ListIntegrationAlertsParamsSort = "starts_at"
)

Defines values for ListIntegrationAlertsParamsSort.

func (ListIntegrationAlertsParamsSort) Valid

Valid indicates whether the value is a known member of the ListIntegrationAlertsParamsSort enum.

type ListIntegrationAlertsResponse

type ListIntegrationAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IntegrationAlertList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListIntegrationAlertsResponse429Headers
}

func ParseListIntegrationAlertsResponse

func ParseListIntegrationAlertsResponse(rsp *http.Response) (*ListIntegrationAlertsResponse, error)

ParseListIntegrationAlertsResponse parses an HTTP response from a ListIntegrationAlertsWithResponse call

func (ListIntegrationAlertsResponse) ContentType

func (r ListIntegrationAlertsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIntegrationAlertsResponse) GetApplicationproblemJSON400

func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListIntegrationAlertsResponse) GetApplicationproblemJSON401

func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListIntegrationAlertsResponse) GetApplicationproblemJSON403

func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListIntegrationAlertsResponse) GetApplicationproblemJSON404

func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListIntegrationAlertsResponse) GetApplicationproblemJSON429

func (r ListIntegrationAlertsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListIntegrationAlertsResponse) GetBody

func (r ListIntegrationAlertsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIntegrationAlertsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIntegrationAlertsResponse) Status

Status returns HTTPResponse.Status

func (ListIntegrationAlertsResponse) StatusCode

func (r ListIntegrationAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIntegrationAlertsResponse429Headers

type ListIntegrationAlertsResponse429Headers struct {
	RetryAfter *int
}

ListIntegrationAlertsResponse429Headers the declared response headers of an HTTP 429 response for ListIntegrationAlerts

type ListIntegrationTokensResponse

type ListIntegrationTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IntegrationTokenList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListIntegrationTokensResponse429Headers
}

func ParseListIntegrationTokensResponse

func ParseListIntegrationTokensResponse(rsp *http.Response) (*ListIntegrationTokensResponse, error)

ParseListIntegrationTokensResponse parses an HTTP response from a ListIntegrationTokensWithResponse call

func (ListIntegrationTokensResponse) ContentType

func (r ListIntegrationTokensResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIntegrationTokensResponse) GetApplicationproblemJSON401

func (r ListIntegrationTokensResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListIntegrationTokensResponse) GetApplicationproblemJSON403

func (r ListIntegrationTokensResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListIntegrationTokensResponse) GetApplicationproblemJSON404

func (r ListIntegrationTokensResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListIntegrationTokensResponse) GetApplicationproblemJSON429

func (r ListIntegrationTokensResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListIntegrationTokensResponse) GetBody

func (r ListIntegrationTokensResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIntegrationTokensResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIntegrationTokensResponse) Status

Status returns HTTPResponse.Status

func (ListIntegrationTokensResponse) StatusCode

func (r ListIntegrationTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIntegrationTokensResponse429Headers

type ListIntegrationTokensResponse429Headers struct {
	RetryAfter *int
}

ListIntegrationTokensResponse429Headers the declared response headers of an HTTP 429 response for ListIntegrationTokens

type ListIntegrationsParams

type ListIntegrationsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListIntegrationsParams defines parameters for ListIntegrations.

type ListIntegrationsResponse

type ListIntegrationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IntegrationList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListIntegrationsResponse429Headers
}

func ParseListIntegrationsResponse

func ParseListIntegrationsResponse(rsp *http.Response) (*ListIntegrationsResponse, error)

ParseListIntegrationsResponse parses an HTTP response from a ListIntegrationsWithResponse call

func (ListIntegrationsResponse) ContentType

func (r ListIntegrationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIntegrationsResponse) GetApplicationproblemJSON400

func (r ListIntegrationsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListIntegrationsResponse) GetApplicationproblemJSON401

func (r ListIntegrationsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListIntegrationsResponse) GetApplicationproblemJSON403

func (r ListIntegrationsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListIntegrationsResponse) GetApplicationproblemJSON429

func (r ListIntegrationsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListIntegrationsResponse) GetBody

func (r ListIntegrationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIntegrationsResponse) GetJSON200

func (r ListIntegrationsResponse) GetJSON200() *IntegrationList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIntegrationsResponse) Status

func (r ListIntegrationsResponse) Status() string

Status returns HTTPResponse.Status

func (ListIntegrationsResponse) StatusCode

func (r ListIntegrationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIntegrationsResponse429Headers

type ListIntegrationsResponse429Headers struct {
	RetryAfter *int
}

ListIntegrationsResponse429Headers the declared response headers of an HTTP 429 response for ListIntegrations

type ListLinkRulesParams

type ListLinkRulesParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListLinkRulesParams defines parameters for ListLinkRules.

type ListLinkRulesResponse

type ListLinkRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LinkRuleList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListLinkRulesResponse429Headers
}

func ParseListLinkRulesResponse

func ParseListLinkRulesResponse(rsp *http.Response) (*ListLinkRulesResponse, error)

ParseListLinkRulesResponse parses an HTTP response from a ListLinkRulesWithResponse call

func (ListLinkRulesResponse) ContentType

func (r ListLinkRulesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListLinkRulesResponse) GetApplicationproblemJSON400

func (r ListLinkRulesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListLinkRulesResponse) GetApplicationproblemJSON401

func (r ListLinkRulesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListLinkRulesResponse) GetApplicationproblemJSON403

func (r ListLinkRulesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListLinkRulesResponse) GetApplicationproblemJSON429

func (r ListLinkRulesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListLinkRulesResponse) GetBody

func (r ListLinkRulesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListLinkRulesResponse) GetJSON200

func (r ListLinkRulesResponse) GetJSON200() *LinkRuleList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListLinkRulesResponse) Status

func (r ListLinkRulesResponse) Status() string

Status returns HTTPResponse.Status

func (ListLinkRulesResponse) StatusCode

func (r ListLinkRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLinkRulesResponse429Headers

type ListLinkRulesResponse429Headers struct {
	RetryAfter *int
}

ListLinkRulesResponse429Headers the declared response headers of an HTTP 429 response for ListLinkRules

type ListLinkableConnectionsResponse

type ListLinkableConnectionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LinkableConnectionList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListLinkableConnectionsResponse429Headers
}

func ParseListLinkableConnectionsResponse

func ParseListLinkableConnectionsResponse(rsp *http.Response) (*ListLinkableConnectionsResponse, error)

ParseListLinkableConnectionsResponse parses an HTTP response from a ListLinkableConnectionsWithResponse call

func (ListLinkableConnectionsResponse) ContentType

func (r ListLinkableConnectionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListLinkableConnectionsResponse) GetApplicationproblemJSON401

func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListLinkableConnectionsResponse) GetApplicationproblemJSON403

func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListLinkableConnectionsResponse) GetApplicationproblemJSON429

func (r ListLinkableConnectionsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListLinkableConnectionsResponse) GetBody

func (r ListLinkableConnectionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListLinkableConnectionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListLinkableConnectionsResponse) Status

Status returns HTTPResponse.Status

func (ListLinkableConnectionsResponse) StatusCode

func (r ListLinkableConnectionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLinkableConnectionsResponse429Headers

type ListLinkableConnectionsResponse429Headers struct {
	RetryAfter *int
}

ListLinkableConnectionsResponse429Headers the declared response headers of an HTTP 429 response for ListLinkableConnections

type ListLookupTablesParams

type ListLookupTablesParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListLookupTablesParams defines parameters for ListLookupTables.

type ListLookupTablesResponse

type ListLookupTablesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LookupTableList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListLookupTablesResponse429Headers
}

func ParseListLookupTablesResponse

func ParseListLookupTablesResponse(rsp *http.Response) (*ListLookupTablesResponse, error)

ParseListLookupTablesResponse parses an HTTP response from a ListLookupTablesWithResponse call

func (ListLookupTablesResponse) ContentType

func (r ListLookupTablesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListLookupTablesResponse) GetApplicationproblemJSON400

func (r ListLookupTablesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListLookupTablesResponse) GetApplicationproblemJSON401

func (r ListLookupTablesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListLookupTablesResponse) GetApplicationproblemJSON403

func (r ListLookupTablesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListLookupTablesResponse) GetApplicationproblemJSON429

func (r ListLookupTablesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListLookupTablesResponse) GetBody

func (r ListLookupTablesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListLookupTablesResponse) GetJSON200

func (r ListLookupTablesResponse) GetJSON200() *LookupTableList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListLookupTablesResponse) Status

func (r ListLookupTablesResponse) Status() string

Status returns HTTPResponse.Status

func (ListLookupTablesResponse) StatusCode

func (r ListLookupTablesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLookupTablesResponse429Headers

type ListLookupTablesResponse429Headers struct {
	RetryAfter *int
}

ListLookupTablesResponse429Headers the declared response headers of an HTTP 429 response for ListLookupTables

type ListMyAccountLinksResponse

type ListMyAccountLinksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AccountLinkList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListMyAccountLinksResponse429Headers
}

func ParseListMyAccountLinksResponse

func ParseListMyAccountLinksResponse(rsp *http.Response) (*ListMyAccountLinksResponse, error)

ParseListMyAccountLinksResponse parses an HTTP response from a ListMyAccountLinksWithResponse call

func (ListMyAccountLinksResponse) ContentType

func (r ListMyAccountLinksResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListMyAccountLinksResponse) GetApplicationproblemJSON401

func (r ListMyAccountLinksResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListMyAccountLinksResponse) GetApplicationproblemJSON403

func (r ListMyAccountLinksResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListMyAccountLinksResponse) GetApplicationproblemJSON429

func (r ListMyAccountLinksResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListMyAccountLinksResponse) GetBody

func (r ListMyAccountLinksResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListMyAccountLinksResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListMyAccountLinksResponse) Status

Status returns HTTPResponse.Status

func (ListMyAccountLinksResponse) StatusCode

func (r ListMyAccountLinksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMyAccountLinksResponse429Headers

type ListMyAccountLinksResponse429Headers struct {
	RetryAfter *int
}

ListMyAccountLinksResponse429Headers the declared response headers of an HTTP 429 response for ListMyAccountLinks

type ListMyGatewayContactsResponse

type ListMyGatewayContactsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GatewayContactList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListMyGatewayContactsResponse429Headers
}

func ParseListMyGatewayContactsResponse

func ParseListMyGatewayContactsResponse(rsp *http.Response) (*ListMyGatewayContactsResponse, error)

ParseListMyGatewayContactsResponse parses an HTTP response from a ListMyGatewayContactsWithResponse call

func (ListMyGatewayContactsResponse) ContentType

func (r ListMyGatewayContactsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListMyGatewayContactsResponse) GetApplicationproblemJSON401

func (r ListMyGatewayContactsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListMyGatewayContactsResponse) GetApplicationproblemJSON403

func (r ListMyGatewayContactsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListMyGatewayContactsResponse) GetApplicationproblemJSON429

func (r ListMyGatewayContactsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListMyGatewayContactsResponse) GetBody

func (r ListMyGatewayContactsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListMyGatewayContactsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListMyGatewayContactsResponse) Status

Status returns HTTPResponse.Status

func (ListMyGatewayContactsResponse) StatusCode

func (r ListMyGatewayContactsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMyGatewayContactsResponse429Headers

type ListMyGatewayContactsResponse429Headers struct {
	RetryAfter *int
}

ListMyGatewayContactsResponse429Headers the declared response headers of an HTTP 429 response for ListMyGatewayContacts

type ListMySessionsResponse

type ListMySessionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SessionInfoList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListMySessionsResponse429Headers
}

func ParseListMySessionsResponse

func ParseListMySessionsResponse(rsp *http.Response) (*ListMySessionsResponse, error)

ParseListMySessionsResponse parses an HTTP response from a ListMySessionsWithResponse call

func (ListMySessionsResponse) ContentType

func (r ListMySessionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListMySessionsResponse) GetApplicationproblemJSON401

func (r ListMySessionsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListMySessionsResponse) GetApplicationproblemJSON403

func (r ListMySessionsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListMySessionsResponse) GetApplicationproblemJSON429

func (r ListMySessionsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListMySessionsResponse) GetBody

func (r ListMySessionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListMySessionsResponse) GetJSON200

func (r ListMySessionsResponse) GetJSON200() *SessionInfoList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListMySessionsResponse) Status

func (r ListMySessionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListMySessionsResponse) StatusCode

func (r ListMySessionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMySessionsResponse429Headers

type ListMySessionsResponse429Headers struct {
	RetryAfter *int
}

ListMySessionsResponse429Headers the declared response headers of an HTTP 429 response for ListMySessions

type ListPersonalAccessTokensResponse

type ListPersonalAccessTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PersonalAccessTokenList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListPersonalAccessTokensResponse429Headers
}

func ParseListPersonalAccessTokensResponse

func ParseListPersonalAccessTokensResponse(rsp *http.Response) (*ListPersonalAccessTokensResponse, error)

ParseListPersonalAccessTokensResponse parses an HTTP response from a ListPersonalAccessTokensWithResponse call

func (ListPersonalAccessTokensResponse) ContentType

func (r ListPersonalAccessTokensResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPersonalAccessTokensResponse) GetApplicationproblemJSON401

func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListPersonalAccessTokensResponse) GetApplicationproblemJSON403

func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListPersonalAccessTokensResponse) GetApplicationproblemJSON429

func (r ListPersonalAccessTokensResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListPersonalAccessTokensResponse) GetBody

func (r ListPersonalAccessTokensResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPersonalAccessTokensResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPersonalAccessTokensResponse) Status

Status returns HTTPResponse.Status

func (ListPersonalAccessTokensResponse) StatusCode

func (r ListPersonalAccessTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPersonalAccessTokensResponse429Headers

type ListPersonalAccessTokensResponse429Headers struct {
	RetryAfter *int
}

ListPersonalAccessTokensResponse429Headers the declared response headers of an HTTP 429 response for ListPersonalAccessTokens

type ListRelatedAlertGroupsParams

type ListRelatedAlertGroupsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListRelatedAlertGroupsParams defines parameters for ListRelatedAlertGroups.

type ListRelatedAlertGroupsResponse

type ListRelatedAlertGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RelatedAlertGroupList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListRelatedAlertGroupsResponse429Headers
}

func ParseListRelatedAlertGroupsResponse

func ParseListRelatedAlertGroupsResponse(rsp *http.Response) (*ListRelatedAlertGroupsResponse, error)

ParseListRelatedAlertGroupsResponse parses an HTTP response from a ListRelatedAlertGroupsWithResponse call

func (ListRelatedAlertGroupsResponse) ContentType

func (r ListRelatedAlertGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON400

func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON401

func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON403

func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON404

func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListRelatedAlertGroupsResponse) GetApplicationproblemJSON429

func (r ListRelatedAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListRelatedAlertGroupsResponse) GetBody

func (r ListRelatedAlertGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRelatedAlertGroupsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRelatedAlertGroupsResponse) Status

Status returns HTTPResponse.Status

func (ListRelatedAlertGroupsResponse) StatusCode

func (r ListRelatedAlertGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRelatedAlertGroupsResponse429Headers

type ListRelatedAlertGroupsResponse429Headers struct {
	RetryAfter *int
}

ListRelatedAlertGroupsResponse429Headers the declared response headers of an HTTP 429 response for ListRelatedAlertGroups

type ListRequestLogParams

type ListRequestLogParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Connection The Connection whose records are listed, by `public_id`.
	Connection *PublicId `form:"connection,omitempty" json:"connection,omitempty"`

	// Destination The Destination whose records are listed, by `public_id`.
	Destination *PublicId `form:"destination,omitempty" json:"destination,omitempty"`

	// Direction Only the requests Muster sent (`outbound`) or received (`inbound`).
	Direction *RequestDirection `form:"direction,omitempty" json:"direction,omitempty"`

	// StatusClass Only the records whose answer has a status of this class, or, with `none`, those that got no answer or are a Socket Mode envelope, whose confirmation has no status.
	StatusClass *ListRequestLogParamsStatusClass `form:"status_class,omitempty" json:"status_class,omitempty"`

	// Operation Only the records of this operation, such as `createPost`, `getUpdates`, `pollEvents` or `event`.
	Operation *string `form:"operation,omitempty" json:"operation,omitempty"`

	// AlertGroup Only the records of the deliveries of this Alert Group, by `public_id`.
	AlertGroup *PublicId `form:"alert_group,omitempty" json:"alert_group,omitempty"`

	// Run Only the records of this check run (`CR…`), which the results of `checkConnection`, `checkConnectionDraft`, `checkDestination` and `testDestination` name as `request_log_run`. Alone it lists the records of the run whose owner is a Connection or nobody and needs `connections:read`; the records of an outgoing webhook's test or probe are listed beside its `destination`. A run that left no record, or an id that is no check run, lists nothing.
	Run *PublicId `form:"run,omitempty" json:"run,omitempty"`
}

ListRequestLogParams defines parameters for ListRequestLog.

type ListRequestLogParamsStatusClass

type ListRequestLogParamsStatusClass string

ListRequestLogParamsStatusClass defines parameters for ListRequestLog.

const (
	ListRequestLogParamsStatusClassN2xx ListRequestLogParamsStatusClass = "2xx"
	ListRequestLogParamsStatusClassN3xx ListRequestLogParamsStatusClass = "3xx"
	ListRequestLogParamsStatusClassN4xx ListRequestLogParamsStatusClass = "4xx"
	ListRequestLogParamsStatusClassN5xx ListRequestLogParamsStatusClass = "5xx"
	ListRequestLogParamsStatusClassNone ListRequestLogParamsStatusClass = "none"
)

Defines values for ListRequestLogParamsStatusClass.

func (ListRequestLogParamsStatusClass) Valid

Valid indicates whether the value is a known member of the ListRequestLogParamsStatusClass enum.

type ListRequestLogResponse

type ListRequestLogResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RequestLogList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListRequestLogResponse429Headers
}

func ParseListRequestLogResponse

func ParseListRequestLogResponse(rsp *http.Response) (*ListRequestLogResponse, error)

ParseListRequestLogResponse parses an HTTP response from a ListRequestLogWithResponse call

func (ListRequestLogResponse) ContentType

func (r ListRequestLogResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRequestLogResponse) GetApplicationproblemJSON400

func (r ListRequestLogResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListRequestLogResponse) GetApplicationproblemJSON401

func (r ListRequestLogResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRequestLogResponse) GetApplicationproblemJSON403

func (r ListRequestLogResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListRequestLogResponse) GetApplicationproblemJSON404

func (r ListRequestLogResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListRequestLogResponse) GetApplicationproblemJSON422

func (r ListRequestLogResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListRequestLogResponse) GetApplicationproblemJSON429

func (r ListRequestLogResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListRequestLogResponse) GetBody

func (r ListRequestLogResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRequestLogResponse) GetJSON200

func (r ListRequestLogResponse) GetJSON200() *RequestLogList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRequestLogResponse) Status

func (r ListRequestLogResponse) Status() string

Status returns HTTPResponse.Status

func (ListRequestLogResponse) StatusCode

func (r ListRequestLogResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRequestLogResponse429Headers

type ListRequestLogResponse429Headers struct {
	RetryAfter *int
}

ListRequestLogResponse429Headers the declared response headers of an HTTP 429 response for ListRequestLog

type ListRolesResponse

type ListRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RoleList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListRolesResponse429Headers
}

func ParseListRolesResponse

func ParseListRolesResponse(rsp *http.Response) (*ListRolesResponse, error)

ParseListRolesResponse parses an HTTP response from a ListRolesWithResponse call

func (ListRolesResponse) ContentType

func (r ListRolesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRolesResponse) GetApplicationproblemJSON401

func (r ListRolesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRolesResponse) GetApplicationproblemJSON403

func (r ListRolesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListRolesResponse) GetApplicationproblemJSON429

func (r ListRolesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListRolesResponse) GetBody

func (r ListRolesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRolesResponse) GetJSON200

func (r ListRolesResponse) GetJSON200() *RoleList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRolesResponse) Status

func (r ListRolesResponse) Status() string

Status returns HTTPResponse.Status

func (ListRolesResponse) StatusCode

func (r ListRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRolesResponse429Headers

type ListRolesResponse429Headers struct {
	RetryAfter *int
}

ListRolesResponse429Headers the declared response headers of an HTTP 429 response for ListRoles

type ListRouteLabelSuggestionsResponse

type ListRouteLabelSuggestionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RouteLabelSuggestionList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListRouteLabelSuggestionsResponse429Headers
}

func ParseListRouteLabelSuggestionsResponse

func ParseListRouteLabelSuggestionsResponse(rsp *http.Response) (*ListRouteLabelSuggestionsResponse, error)

ParseListRouteLabelSuggestionsResponse parses an HTTP response from a ListRouteLabelSuggestionsWithResponse call

func (ListRouteLabelSuggestionsResponse) ContentType

func (r ListRouteLabelSuggestionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON401

func (r ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON403

func (r ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON404

func (r ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON429

func (r ListRouteLabelSuggestionsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListRouteLabelSuggestionsResponse) GetBody

GetBody returns the raw response body bytes

func (ListRouteLabelSuggestionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRouteLabelSuggestionsResponse) Status

Status returns HTTPResponse.Status

func (ListRouteLabelSuggestionsResponse) StatusCode

func (r ListRouteLabelSuggestionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRouteLabelSuggestionsResponse429Headers

type ListRouteLabelSuggestionsResponse429Headers struct {
	RetryAfter *int
}

ListRouteLabelSuggestionsResponse429Headers the declared response headers of an HTTP 429 response for ListRouteLabelSuggestions

type ListRouteProfilesResponse

type ListRouteProfilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RouteProfileList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListRouteProfilesResponse429Headers
}

func ParseListRouteProfilesResponse

func ParseListRouteProfilesResponse(rsp *http.Response) (*ListRouteProfilesResponse, error)

ParseListRouteProfilesResponse parses an HTTP response from a ListRouteProfilesWithResponse call

func (ListRouteProfilesResponse) ContentType

func (r ListRouteProfilesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRouteProfilesResponse) GetApplicationproblemJSON401

func (r ListRouteProfilesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRouteProfilesResponse) GetApplicationproblemJSON403

func (r ListRouteProfilesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListRouteProfilesResponse) GetApplicationproblemJSON429

func (r ListRouteProfilesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListRouteProfilesResponse) GetBody

func (r ListRouteProfilesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRouteProfilesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRouteProfilesResponse) Status

func (r ListRouteProfilesResponse) Status() string

Status returns HTTPResponse.Status

func (ListRouteProfilesResponse) StatusCode

func (r ListRouteProfilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRouteProfilesResponse429Headers

type ListRouteProfilesResponse429Headers struct {
	RetryAfter *int
}

ListRouteProfilesResponse429Headers the declared response headers of an HTTP 429 response for ListRouteProfiles

type ListRouteSuggestionsResponse

type ListRouteSuggestionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RouteSuggestionList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListRouteSuggestionsResponse429Headers
}

func ParseListRouteSuggestionsResponse

func ParseListRouteSuggestionsResponse(rsp *http.Response) (*ListRouteSuggestionsResponse, error)

ParseListRouteSuggestionsResponse parses an HTTP response from a ListRouteSuggestionsWithResponse call

func (ListRouteSuggestionsResponse) ContentType

func (r ListRouteSuggestionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRouteSuggestionsResponse) GetApplicationproblemJSON401

func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRouteSuggestionsResponse) GetApplicationproblemJSON403

func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListRouteSuggestionsResponse) GetApplicationproblemJSON429

func (r ListRouteSuggestionsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListRouteSuggestionsResponse) GetBody

func (r ListRouteSuggestionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRouteSuggestionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRouteSuggestionsResponse) Status

Status returns HTTPResponse.Status

func (ListRouteSuggestionsResponse) StatusCode

func (r ListRouteSuggestionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRouteSuggestionsResponse429Headers

type ListRouteSuggestionsResponse429Headers struct {
	RetryAfter *int
}

ListRouteSuggestionsResponse429Headers the declared response headers of an HTTP 429 response for ListRouteSuggestions

type ListRoutesParams

type ListRoutesParams struct {
	// Team Only what this Team owns (its `public_id`), or with `mine` what the Teams of the calling User own — "My Teams". A Service account has no Teams, so its `mine` is refused with `422` `unsupported`. A value that names no Team, or a deleted one, matches nothing.
	Team *OwningTeamQuery `form:"team,omitempty" json:"team,omitempty"`
}

ListRoutesParams defines parameters for ListRoutes.

type ListRoutesResponse

type ListRoutesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RouteList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListRoutesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListRoutesResponse429Headers
}

func ParseListRoutesResponse

func ParseListRoutesResponse(rsp *http.Response) (*ListRoutesResponse, error)

ParseListRoutesResponse parses an HTTP response from a ListRoutesWithResponse call

func (ListRoutesResponse) ContentType

func (r ListRoutesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRoutesResponse) GetApplicationproblemJSON401

func (r ListRoutesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRoutesResponse) GetApplicationproblemJSON403

func (r ListRoutesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListRoutesResponse) GetApplicationproblemJSON422

func (r ListRoutesResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListRoutesResponse) GetApplicationproblemJSON429

func (r ListRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListRoutesResponse) GetBody

func (r ListRoutesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRoutesResponse) GetJSON200

func (r ListRoutesResponse) GetJSON200() *RouteList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRoutesResponse) Status

func (r ListRoutesResponse) Status() string

Status returns HTTPResponse.Status

func (ListRoutesResponse) StatusCode

func (r ListRoutesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRoutesResponse200Headers

type ListRoutesResponse200Headers struct {
	ETag *string
}

ListRoutesResponse200Headers the declared response headers of an HTTP 200 response for ListRoutes

type ListRoutesResponse429Headers

type ListRoutesResponse429Headers struct {
	RetryAfter *int
}

ListRoutesResponse429Headers the declared response headers of an HTTP 429 response for ListRoutes

type ListScheduleOverridesParams

type ListScheduleOverridesParams struct {
	// From Only the Overrides that end after this time (RFC 3339); the business clock's now by default.
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To Only the Overrides that start before this time (RFC 3339).
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`

	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListScheduleOverridesParams defines parameters for ListScheduleOverrides.

type ListScheduleOverridesResponse

type ListScheduleOverridesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ScheduleOverrideList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListScheduleOverridesResponse429Headers
}

func ParseListScheduleOverridesResponse

func ParseListScheduleOverridesResponse(rsp *http.Response) (*ListScheduleOverridesResponse, error)

ParseListScheduleOverridesResponse parses an HTTP response from a ListScheduleOverridesWithResponse call

func (ListScheduleOverridesResponse) ContentType

func (r ListScheduleOverridesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListScheduleOverridesResponse) GetApplicationproblemJSON400

func (r ListScheduleOverridesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListScheduleOverridesResponse) GetApplicationproblemJSON401

func (r ListScheduleOverridesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListScheduleOverridesResponse) GetApplicationproblemJSON403

func (r ListScheduleOverridesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListScheduleOverridesResponse) GetApplicationproblemJSON404

func (r ListScheduleOverridesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListScheduleOverridesResponse) GetApplicationproblemJSON429

func (r ListScheduleOverridesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListScheduleOverridesResponse) GetBody

func (r ListScheduleOverridesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListScheduleOverridesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListScheduleOverridesResponse) Status

Status returns HTTPResponse.Status

func (ListScheduleOverridesResponse) StatusCode

func (r ListScheduleOverridesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListScheduleOverridesResponse429Headers

type ListScheduleOverridesResponse429Headers struct {
	RetryAfter *int
}

ListScheduleOverridesResponse429Headers the declared response headers of an HTTP 429 response for ListScheduleOverrides

type ListSchedulesParams

type ListSchedulesParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Team Only the Schedules of this Team (its `public_id`), or with `mine` those of the Teams of the calling User — "My Teams". A Service account is in no Team, so its `mine` is refused with `422` `unsupported`. A value that names no Team matches nothing.
	Team *string `form:"team,omitempty" json:"team,omitempty"`

	// Q Case-insensitive match on the name.
	Q *string `form:"q,omitempty" json:"q,omitempty"`
}

ListSchedulesParams defines parameters for ListSchedules.

type ListSchedulesResponse

type ListSchedulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ScheduleList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSchedulesResponse429Headers
}

func ParseListSchedulesResponse

func ParseListSchedulesResponse(rsp *http.Response) (*ListSchedulesResponse, error)

ParseListSchedulesResponse parses an HTTP response from a ListSchedulesWithResponse call

func (ListSchedulesResponse) ContentType

func (r ListSchedulesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSchedulesResponse) GetApplicationproblemJSON400

func (r ListSchedulesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListSchedulesResponse) GetApplicationproblemJSON401

func (r ListSchedulesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListSchedulesResponse) GetApplicationproblemJSON403

func (r ListSchedulesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListSchedulesResponse) GetApplicationproblemJSON422

func (r ListSchedulesResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListSchedulesResponse) GetApplicationproblemJSON429

func (r ListSchedulesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListSchedulesResponse) GetBody

func (r ListSchedulesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSchedulesResponse) GetJSON200

func (r ListSchedulesResponse) GetJSON200() *ScheduleList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSchedulesResponse) Status

func (r ListSchedulesResponse) Status() string

Status returns HTTPResponse.Status

func (ListSchedulesResponse) StatusCode

func (r ListSchedulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSchedulesResponse429Headers

type ListSchedulesResponse429Headers struct {
	RetryAfter *int
}

ListSchedulesResponse429Headers the declared response headers of an HTTP 429 response for ListSchedules

type ListServiceAccountTokensResponse

type ListServiceAccountTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceAccountTokenList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListServiceAccountTokensResponse429Headers
}

func ParseListServiceAccountTokensResponse

func ParseListServiceAccountTokensResponse(rsp *http.Response) (*ListServiceAccountTokensResponse, error)

ParseListServiceAccountTokensResponse parses an HTTP response from a ListServiceAccountTokensWithResponse call

func (ListServiceAccountTokensResponse) ContentType

func (r ListServiceAccountTokensResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListServiceAccountTokensResponse) GetApplicationproblemJSON401

func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListServiceAccountTokensResponse) GetApplicationproblemJSON403

func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListServiceAccountTokensResponse) GetApplicationproblemJSON404

func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListServiceAccountTokensResponse) GetApplicationproblemJSON429

func (r ListServiceAccountTokensResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListServiceAccountTokensResponse) GetBody

func (r ListServiceAccountTokensResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListServiceAccountTokensResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListServiceAccountTokensResponse) Status

Status returns HTTPResponse.Status

func (ListServiceAccountTokensResponse) StatusCode

func (r ListServiceAccountTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListServiceAccountTokensResponse429Headers

type ListServiceAccountTokensResponse429Headers struct {
	RetryAfter *int
}

ListServiceAccountTokensResponse429Headers the declared response headers of an HTTP 429 response for ListServiceAccountTokens

type ListServiceAccountsParams

type ListServiceAccountsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListServiceAccountsParams defines parameters for ListServiceAccounts.

type ListServiceAccountsResponse

type ListServiceAccountsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceAccountList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListServiceAccountsResponse429Headers
}

func ParseListServiceAccountsResponse

func ParseListServiceAccountsResponse(rsp *http.Response) (*ListServiceAccountsResponse, error)

ParseListServiceAccountsResponse parses an HTTP response from a ListServiceAccountsWithResponse call

func (ListServiceAccountsResponse) ContentType

func (r ListServiceAccountsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListServiceAccountsResponse) GetApplicationproblemJSON400

func (r ListServiceAccountsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListServiceAccountsResponse) GetApplicationproblemJSON401

func (r ListServiceAccountsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListServiceAccountsResponse) GetApplicationproblemJSON403

func (r ListServiceAccountsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListServiceAccountsResponse) GetApplicationproblemJSON429

func (r ListServiceAccountsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListServiceAccountsResponse) GetBody

func (r ListServiceAccountsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListServiceAccountsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListServiceAccountsResponse) Status

Status returns HTTPResponse.Status

func (ListServiceAccountsResponse) StatusCode

func (r ListServiceAccountsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListServiceAccountsResponse429Headers

type ListServiceAccountsResponse429Headers struct {
	RetryAfter *int
}

ListServiceAccountsResponse429Headers the declared response headers of an HTTP 429 response for ListServiceAccounts

type ListSeverityValuesResponse

type ListSeverityValuesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SeverityValueList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSeverityValuesResponse429Headers
}

func ParseListSeverityValuesResponse

func ParseListSeverityValuesResponse(rsp *http.Response) (*ListSeverityValuesResponse, error)

ParseListSeverityValuesResponse parses an HTTP response from a ListSeverityValuesWithResponse call

func (ListSeverityValuesResponse) ContentType

func (r ListSeverityValuesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSeverityValuesResponse) GetApplicationproblemJSON401

func (r ListSeverityValuesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListSeverityValuesResponse) GetApplicationproblemJSON403

func (r ListSeverityValuesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListSeverityValuesResponse) GetApplicationproblemJSON429

func (r ListSeverityValuesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListSeverityValuesResponse) GetBody

func (r ListSeverityValuesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSeverityValuesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSeverityValuesResponse) Status

Status returns HTTPResponse.Status

func (ListSeverityValuesResponse) StatusCode

func (r ListSeverityValuesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSeverityValuesResponse429Headers

type ListSeverityValuesResponse429Headers struct {
	RetryAfter *int
}

ListSeverityValuesResponse429Headers the declared response headers of an HTTP 429 response for ListSeverityValues

type ListSnoozePresetsParams

type ListSnoozePresetsParams struct {
	// TimeZone IANA time zone of the ends; defaults to the caller's profile time zone, else the Organization's.
	TimeZone *string `form:"time_zone,omitempty" json:"time_zone,omitempty"`
}

ListSnoozePresetsParams defines parameters for ListSnoozePresets.

type ListSnoozePresetsResponse

type ListSnoozePresetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SnoozePresetList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSnoozePresetsResponse429Headers
}

func ParseListSnoozePresetsResponse

func ParseListSnoozePresetsResponse(rsp *http.Response) (*ListSnoozePresetsResponse, error)

ParseListSnoozePresetsResponse parses an HTTP response from a ListSnoozePresetsWithResponse call

func (ListSnoozePresetsResponse) ContentType

func (r ListSnoozePresetsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSnoozePresetsResponse) GetApplicationproblemJSON401

func (r ListSnoozePresetsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListSnoozePresetsResponse) GetApplicationproblemJSON403

func (r ListSnoozePresetsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListSnoozePresetsResponse) GetApplicationproblemJSON422

func (r ListSnoozePresetsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListSnoozePresetsResponse) GetApplicationproblemJSON429

func (r ListSnoozePresetsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListSnoozePresetsResponse) GetBody

func (r ListSnoozePresetsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSnoozePresetsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSnoozePresetsResponse) Status

func (r ListSnoozePresetsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSnoozePresetsResponse) StatusCode

func (r ListSnoozePresetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSnoozePresetsResponse429Headers

type ListSnoozePresetsResponse429Headers struct {
	RetryAfter *int
}

ListSnoozePresetsResponse429Headers the declared response headers of an HTTP 429 response for ListSnoozePresets

type ListStoredSnapshotsParams

type ListStoredSnapshotsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Integration Integration `public_id`.
	Integration string `form:"integration" json:"integration"`

	// From Start of the time range (RFC 3339, UTC).
	From *From `form:"from,omitempty" json:"from,omitempty"`

	// To End of the time range (RFC 3339, UTC).
	To *To `form:"to,omitempty" json:"to,omitempty"`

	// State Only Snapshots in these processing states.
	State *[]SnapshotState `form:"state,omitempty" json:"state,omitempty"`
}

ListStoredSnapshotsParams defines parameters for ListStoredSnapshots.

type ListStoredSnapshotsResponse

type ListStoredSnapshotsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *StoredSnapshotList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListStoredSnapshotsResponse429Headers
}

func ParseListStoredSnapshotsResponse

func ParseListStoredSnapshotsResponse(rsp *http.Response) (*ListStoredSnapshotsResponse, error)

ParseListStoredSnapshotsResponse parses an HTTP response from a ListStoredSnapshotsWithResponse call

func (ListStoredSnapshotsResponse) ContentType

func (r ListStoredSnapshotsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListStoredSnapshotsResponse) GetApplicationproblemJSON400

func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListStoredSnapshotsResponse) GetApplicationproblemJSON401

func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListStoredSnapshotsResponse) GetApplicationproblemJSON403

func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListStoredSnapshotsResponse) GetApplicationproblemJSON429

func (r ListStoredSnapshotsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListStoredSnapshotsResponse) GetBody

func (r ListStoredSnapshotsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListStoredSnapshotsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListStoredSnapshotsResponse) Status

Status returns HTTPResponse.Status

func (ListStoredSnapshotsResponse) StatusCode

func (r ListStoredSnapshotsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListStoredSnapshotsResponse429Headers

type ListStoredSnapshotsResponse429Headers struct {
	RetryAfter *int
}

ListStoredSnapshotsResponse429Headers the declared response headers of an HTTP 429 response for ListStoredSnapshots

type ListSystemNoticesResponse

type ListSystemNoticesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SystemNoticeList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSystemNoticesResponse429Headers
}

func ParseListSystemNoticesResponse

func ParseListSystemNoticesResponse(rsp *http.Response) (*ListSystemNoticesResponse, error)

ParseListSystemNoticesResponse parses an HTTP response from a ListSystemNoticesWithResponse call

func (ListSystemNoticesResponse) ContentType

func (r ListSystemNoticesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSystemNoticesResponse) GetApplicationproblemJSON401

func (r ListSystemNoticesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListSystemNoticesResponse) GetApplicationproblemJSON403

func (r ListSystemNoticesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListSystemNoticesResponse) GetApplicationproblemJSON429

func (r ListSystemNoticesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListSystemNoticesResponse) GetBody

func (r ListSystemNoticesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSystemNoticesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSystemNoticesResponse) Status

func (r ListSystemNoticesResponse) Status() string

Status returns HTTPResponse.Status

func (ListSystemNoticesResponse) StatusCode

func (r ListSystemNoticesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSystemNoticesResponse429Headers

type ListSystemNoticesResponse429Headers struct {
	RetryAfter *int
}

ListSystemNoticesResponse429Headers the declared response headers of an HTTP 429 response for ListSystemNotices

type ListTeamLabelValuesResponse

type ListTeamLabelValuesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TeamLabelValueList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListTeamLabelValuesResponse429Headers
}

func ParseListTeamLabelValuesResponse

func ParseListTeamLabelValuesResponse(rsp *http.Response) (*ListTeamLabelValuesResponse, error)

ParseListTeamLabelValuesResponse parses an HTTP response from a ListTeamLabelValuesWithResponse call

func (ListTeamLabelValuesResponse) ContentType

func (r ListTeamLabelValuesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTeamLabelValuesResponse) GetApplicationproblemJSON401

func (r ListTeamLabelValuesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListTeamLabelValuesResponse) GetApplicationproblemJSON403

func (r ListTeamLabelValuesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListTeamLabelValuesResponse) GetApplicationproblemJSON429

func (r ListTeamLabelValuesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListTeamLabelValuesResponse) GetBody

func (r ListTeamLabelValuesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTeamLabelValuesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTeamLabelValuesResponse) Status

Status returns HTTPResponse.Status

func (ListTeamLabelValuesResponse) StatusCode

func (r ListTeamLabelValuesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTeamLabelValuesResponse429Headers

type ListTeamLabelValuesResponse429Headers struct {
	RetryAfter *int
}

ListTeamLabelValuesResponse429Headers the declared response headers of an HTTP 429 response for ListTeamLabelValues

type ListTeamUsersResponse

type ListTeamUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TeamUserList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListTeamUsersResponse429Headers
}

func ParseListTeamUsersResponse

func ParseListTeamUsersResponse(rsp *http.Response) (*ListTeamUsersResponse, error)

ParseListTeamUsersResponse parses an HTTP response from a ListTeamUsersWithResponse call

func (ListTeamUsersResponse) ContentType

func (r ListTeamUsersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTeamUsersResponse) GetApplicationproblemJSON401

func (r ListTeamUsersResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListTeamUsersResponse) GetApplicationproblemJSON403

func (r ListTeamUsersResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListTeamUsersResponse) GetApplicationproblemJSON404

func (r ListTeamUsersResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListTeamUsersResponse) GetApplicationproblemJSON429

func (r ListTeamUsersResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListTeamUsersResponse) GetBody

func (r ListTeamUsersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTeamUsersResponse) GetJSON200

func (r ListTeamUsersResponse) GetJSON200() *TeamUserList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTeamUsersResponse) Status

func (r ListTeamUsersResponse) Status() string

Status returns HTTPResponse.Status

func (ListTeamUsersResponse) StatusCode

func (r ListTeamUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTeamUsersResponse429Headers

type ListTeamUsersResponse429Headers struct {
	RetryAfter *int
}

ListTeamUsersResponse429Headers the declared response headers of an HTTP 429 response for ListTeamUsers

type ListTeamsParams

type ListTeamsParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Q Case-insensitive match on the name and the slug.
	Q *string `form:"q,omitempty" json:"q,omitempty"`
}

ListTeamsParams defines parameters for ListTeams.

type ListTeamsResponse

type ListTeamsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TeamList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListTeamsResponse429Headers
}

func ParseListTeamsResponse

func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error)

ParseListTeamsResponse parses an HTTP response from a ListTeamsWithResponse call

func (ListTeamsResponse) ContentType

func (r ListTeamsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTeamsResponse) GetApplicationproblemJSON400

func (r ListTeamsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListTeamsResponse) GetApplicationproblemJSON401

func (r ListTeamsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListTeamsResponse) GetApplicationproblemJSON403

func (r ListTeamsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListTeamsResponse) GetApplicationproblemJSON429

func (r ListTeamsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListTeamsResponse) GetBody

func (r ListTeamsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTeamsResponse) GetJSON200

func (r ListTeamsResponse) GetJSON200() *TeamList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTeamsResponse) Status

func (r ListTeamsResponse) Status() string

Status returns HTTPResponse.Status

func (ListTeamsResponse) StatusCode

func (r ListTeamsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTeamsResponse429Headers

type ListTeamsResponse429Headers struct {
	RetryAfter *int
}

ListTeamsResponse429Headers the declared response headers of an HTTP 429 response for ListTeams

type ListUserAccountLinksResponse

type ListUserAccountLinksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AccountLinkList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListUserAccountLinksResponse429Headers
}

func ParseListUserAccountLinksResponse

func ParseListUserAccountLinksResponse(rsp *http.Response) (*ListUserAccountLinksResponse, error)

ParseListUserAccountLinksResponse parses an HTTP response from a ListUserAccountLinksWithResponse call

func (ListUserAccountLinksResponse) ContentType

func (r ListUserAccountLinksResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUserAccountLinksResponse) GetApplicationproblemJSON401

func (r ListUserAccountLinksResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListUserAccountLinksResponse) GetApplicationproblemJSON403

func (r ListUserAccountLinksResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListUserAccountLinksResponse) GetApplicationproblemJSON404

func (r ListUserAccountLinksResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListUserAccountLinksResponse) GetApplicationproblemJSON429

func (r ListUserAccountLinksResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListUserAccountLinksResponse) GetBody

func (r ListUserAccountLinksResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUserAccountLinksResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUserAccountLinksResponse) Status

Status returns HTTPResponse.Status

func (ListUserAccountLinksResponse) StatusCode

func (r ListUserAccountLinksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUserAccountLinksResponse429Headers

type ListUserAccountLinksResponse429Headers struct {
	RetryAfter *int
}

ListUserAccountLinksResponse429Headers the declared response headers of an HTTP 429 response for ListUserAccountLinks

type ListUserDirectoryParams

type ListUserDirectoryParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Q Case-insensitive match on name and login.
	Q *string `form:"q,omitempty" json:"q,omitempty"`
}

ListUserDirectoryParams defines parameters for ListUserDirectory.

type ListUserDirectoryResponse

type ListUserDirectoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserDirectoryList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListUserDirectoryResponse429Headers
}

func ParseListUserDirectoryResponse

func ParseListUserDirectoryResponse(rsp *http.Response) (*ListUserDirectoryResponse, error)

ParseListUserDirectoryResponse parses an HTTP response from a ListUserDirectoryWithResponse call

func (ListUserDirectoryResponse) ContentType

func (r ListUserDirectoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUserDirectoryResponse) GetApplicationproblemJSON400

func (r ListUserDirectoryResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListUserDirectoryResponse) GetApplicationproblemJSON401

func (r ListUserDirectoryResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListUserDirectoryResponse) GetApplicationproblemJSON403

func (r ListUserDirectoryResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListUserDirectoryResponse) GetApplicationproblemJSON429

func (r ListUserDirectoryResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListUserDirectoryResponse) GetBody

func (r ListUserDirectoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUserDirectoryResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUserDirectoryResponse) Status

func (r ListUserDirectoryResponse) Status() string

Status returns HTTPResponse.Status

func (ListUserDirectoryResponse) StatusCode

func (r ListUserDirectoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUserDirectoryResponse429Headers

type ListUserDirectoryResponse429Headers struct {
	RetryAfter *int
}

ListUserDirectoryResponse429Headers the declared response headers of an HTTP 429 response for ListUserDirectory

type ListUserGatewayContactsResponse

type ListUserGatewayContactsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GatewayContactList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListUserGatewayContactsResponse429Headers
}

func ParseListUserGatewayContactsResponse

func ParseListUserGatewayContactsResponse(rsp *http.Response) (*ListUserGatewayContactsResponse, error)

ParseListUserGatewayContactsResponse parses an HTTP response from a ListUserGatewayContactsWithResponse call

func (ListUserGatewayContactsResponse) ContentType

func (r ListUserGatewayContactsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUserGatewayContactsResponse) GetApplicationproblemJSON401

func (r ListUserGatewayContactsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListUserGatewayContactsResponse) GetApplicationproblemJSON403

func (r ListUserGatewayContactsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListUserGatewayContactsResponse) GetApplicationproblemJSON404

func (r ListUserGatewayContactsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListUserGatewayContactsResponse) GetApplicationproblemJSON429

func (r ListUserGatewayContactsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListUserGatewayContactsResponse) GetBody

func (r ListUserGatewayContactsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUserGatewayContactsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUserGatewayContactsResponse) Status

Status returns HTTPResponse.Status

func (ListUserGatewayContactsResponse) StatusCode

func (r ListUserGatewayContactsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUserGatewayContactsResponse429Headers

type ListUserGatewayContactsResponse429Headers struct {
	RetryAfter *int
}

ListUserGatewayContactsResponse429Headers the declared response headers of an HTTP 429 response for ListUserGatewayContacts

type ListUsersParams

type ListUsersParams struct {
	// Cursor Opaque cursor from `next_cursor` of the previous page. Offsets are not supported.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size (`api.page_size`).
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Q Case-insensitive match on name, login and email.
	Q *string `form:"q,omitempty" json:"q,omitempty"`

	// Role Filter by Role.
	Role *RoleName `form:"role,omitempty" json:"role,omitempty"`

	// Status Filter by status.
	Status *UserStatus `form:"status,omitempty" json:"status,omitempty"`

	// Source Filter by source.
	Source *UserSource `form:"source,omitempty" json:"source,omitempty"`
}

ListUsersParams defines parameters for ListUsers.

type ListUsersResponse

type ListUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListUsersResponse429Headers
}

func ParseListUsersResponse

func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)

ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call

func (ListUsersResponse) ContentType

func (r ListUsersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUsersResponse) GetApplicationproblemJSON400

func (r ListUsersResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListUsersResponse) GetApplicationproblemJSON401

func (r ListUsersResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListUsersResponse) GetApplicationproblemJSON403

func (r ListUsersResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListUsersResponse) GetApplicationproblemJSON429

func (r ListUsersResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListUsersResponse) GetBody

func (r ListUsersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUsersResponse) GetJSON200

func (r ListUsersResponse) GetJSON200() *UserList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUsersResponse) Status

func (r ListUsersResponse) Status() string

Status returns HTTPResponse.Status

func (ListUsersResponse) StatusCode

func (r ListUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersResponse429Headers

type ListUsersResponse429Headers struct {
	RetryAfter *int
}

ListUsersResponse429Headers the declared response headers of an HTTP 429 response for ListUsers

type LookupEntry

type LookupEntry struct {
	Key string `json:"key"`

	// Values One value per column; every column has a value.
	Values map[string]string `json:"values"`
}

LookupEntry defines model for LookupEntry.

type LookupTable

type LookupTable struct {
	// Columns Column names, unique within the table.
	Columns     []string  `json:"columns"`
	CreatedAt   time.Time `json:"created_at"`
	Description *string   `json:"description,omitempty"`

	// Entries Rows. The keys of `values` must be exactly `columns` (`422` otherwise).
	Entries []LookupEntry `json:"entries"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Name Unique in the Organization; Link rule templates call `lookup` with it.
	Name string `json:"name"`
}

LookupTable defines model for LookupTable.

type LookupTableBase

type LookupTableBase struct {
	// Columns Column names, unique within the table.
	Columns     []string `json:"columns"`
	Description *string  `json:"description,omitempty"`

	// Entries Rows. The keys of `values` must be exactly `columns` (`422` otherwise).
	Entries []LookupEntry `json:"entries"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Name Unique in the Organization; Link rule templates call `lookup` with it.
	Name string `json:"name"`
}

LookupTableBase A table of keys and columns. A template reads one cell with `lookup "<table>" <key> "<column>"`, for example `lookup "grafana" .Labels.cluster "datasource_uid"`. The built-in "Explore" rule uses a table with the columns `address` and `datasource_uid`, one row per environment or cluster.

type LookupTableId

type LookupTableId = PublicId

LookupTableId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type LookupTableList

type LookupTableList struct {
	Items      []LookupTable             `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

LookupTableList defines model for LookupTableList.

type Loudness

type Loudness string

Loudness defines model for Loudness.

const (
	Loud  Loudness = "loud"
	Quiet Loudness = "quiet"
)

Defines values for Loudness.

func (Loudness) Valid

func (e Loudness) Valid() bool

Valid indicates whether the value is a known member of the Loudness enum.

type Matcher

type Matcher struct {
	Label string    `json:"label"`
	Op    MatcherOp `json:"op"`

	// Value Literal value, or an RE2 expression for `=~` and `!~`.
	Value string `json:"value"`
}

Matcher A condition on one label, in Alertmanager syntax. Matchers of a Route are combined with AND.

type MatcherOp

type MatcherOp string

MatcherOp defines model for Matcher.Op.

const (
	MatcherOpEmpty      MatcherOp = "!="
	MatcherOpEqual      MatcherOp = "="
	MatcherOpEqualTilde MatcherOp = "=~"
	MatcherOpN1         MatcherOp = "!~"
)

Defines values for MatcherOp.

func (MatcherOp) Valid

func (e MatcherOp) Valid() bool

Valid indicates whether the value is a known member of the MatcherOp enum.

type MattermostActionAnswer

type MattermostActionAnswer struct {
	// EphemeralText Shown by Mattermost to the person who pressed alone, from System, in the Thread of the Root message.
	EphemeralText *string `json:"ephemeral_text,omitempty"`

	// SkipSlackParsing Always `true` with `ephemeral_text`, so that the text is shown as it is.
	SkipSlackParsing *bool `json:"skip_slack_parsing,omitempty"`
}

MattermostActionAnswer Empty, or the text for the person who pressed when its ephemeral post was refused or failed. Never `update`.

type MattermostActionContext

type MattermostActionContext struct {
	// Action Opaque action id signed with the button-signature key.
	Action string `json:"action"`

	// KeyId Id of the key that signed the action id.
	KeyId string `json:"key_id"`

	// Secret The button's callback secret, derived with the key `key_id` from the Connection and the action id. A press without it, or with another one, changes nothing and is not verified; a press without it on a Root message posted before buttons carried one also has that Root message edited again, so that its buttons carry it.
	Secret *string `json:"secret,omitempty"`
}

MattermostActionContext The integration data Muster put on the button, which the Mattermost server strips from the posts it sends to clients. Mattermost does not sign the request, so authenticity rests on the callback secret, which only the Mattermost server knows, and on the signed action id.

type MattermostActionJSONRequestBody

type MattermostActionJSONRequestBody = MattermostActionRequest

MattermostActionJSONRequestBody defines body for MattermostAction for application/json ContentType.

type MattermostActionRequest

type MattermostActionRequest struct {
	ChannelId string `json:"channel_id"`

	// Context The integration data Muster put on the button, which the Mattermost server strips from the posts it sends to clients. Mattermost does not sign the request, so authenticity rests on the callback secret, which only the Mattermost server knows, and on the signed action id.
	Context              MattermostActionContext `json:"context"`
	DataSource           *string                 `json:"data_source,omitempty"`
	PostId               string                  `json:"post_id"`
	TeamId               *string                 `json:"team_id,omitempty"`
	TriggerId            *string                 `json:"trigger_id,omitempty"`
	Type                 *string                 `json:"type,omitempty"`
	UserId               string                  `json:"user_id"`
	UserName             *string                 `json:"user_name,omitempty"`
	AdditionalProperties map[string]interface{}  `json:"-"`
}

MattermostActionRequest Button press sent by the Mattermost server.

func (MattermostActionRequest) Get

func (a MattermostActionRequest) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for MattermostActionRequest. Returns the specified element and whether it was found

func (MattermostActionRequest) MarshalJSON

func (a MattermostActionRequest) MarshalJSON() ([]byte, error)

Override default JSON handling for MattermostActionRequest to handle AdditionalProperties

func (*MattermostActionRequest) Set

func (a *MattermostActionRequest) Set(fieldName string, value interface{})

Setter for additional properties for MattermostActionRequest

func (*MattermostActionRequest) UnmarshalJSON

func (a *MattermostActionRequest) UnmarshalJSON(b []byte) error

Override default JSON handling for MattermostActionRequest to handle AdditionalProperties

type MattermostActionResponse

type MattermostActionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MattermostActionAnswer
}

func ParseMattermostActionResponse

func ParseMattermostActionResponse(rsp *http.Response) (*MattermostActionResponse, error)

ParseMattermostActionResponse parses an HTTP response from a MattermostActionWithResponse call

func (MattermostActionResponse) ContentType

func (r MattermostActionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MattermostActionResponse) GetBody

func (r MattermostActionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MattermostActionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (MattermostActionResponse) Status

func (r MattermostActionResponse) Status() string

Status returns HTTPResponse.Status

func (MattermostActionResponse) StatusCode

func (r MattermostActionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MattermostChannel

type MattermostChannel struct {
	Archived    *bool                 `json:"archived,omitempty"`
	DisplayName string                `json:"display_name"`
	Id          string                `json:"id"`
	Name        string                `json:"name"`
	TeamId      string                `json:"team_id"`
	TeamName    string                `json:"team_name"`
	Type        MattermostChannelType `json:"type"`
}

MattermostChannel defines model for MattermostChannel.

type MattermostChannelList

type MattermostChannelList struct {
	Items []MattermostChannel `json:"items"`
}

MattermostChannelList The channels of a Mattermost Connection's bot; it has no other member, so that no Slack list reads as one.

type MattermostChannelType

type MattermostChannelType string

MattermostChannelType defines model for MattermostChannel.Type.

const (
	MattermostChannelTypeDirect  MattermostChannelType = "direct"
	MattermostChannelTypeGroup   MattermostChannelType = "group"
	MattermostChannelTypeOpen    MattermostChannelType = "open"
	MattermostChannelTypePrivate MattermostChannelType = "private"
)

Defines values for MattermostChannelType.

func (MattermostChannelType) Valid

func (e MattermostChannelType) Valid() bool

Valid indicates whether the value is a known member of the MattermostChannelType enum.

type MattermostConnection

type MattermostConnection struct {
	// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
	BotTokenStatus SecretStatus `json:"bot_token_status"`

	// BotUsername The bot's username, as the last successful Connection check found it; null before one and after the server URL or the bot token changed.
	BotUsername nullable.Nullable[string] `json:"bot_username,omitempty"`

	// CallbackUrl The address that Mattermost calls for button presses of this Connection — `mattermostAction` at `MUSTER_INGEST_URL` (`<MUSTER_INGEST_URL>/api/v1/callbacks/mattermost/<id>`). The Connection page shows it with the hint about `AllowedUntrustedInternalConnections`.
	CallbackUrl *string   `json:"callback_url,omitempty"`
	CreatedAt   time.Time `json:"created_at"`

	// DestinationCount A Connection used by Destinations cannot be deleted.
	DestinationCount int `json:"destination_count"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// GroupsRead Whether the server listed the groups to the bot at the last successful Connection check (its step `groups`), which `listConnectionGroups` needs; a Team mention is saved by name either way. Null as `bot_username`.
	GroupsRead nullable.Nullable[bool] `json:"groups_read,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as read. The password is a Secret.
	Proxy     ProxyConfig              `json:"proxy"`
	ServerUrl string                   `json:"server_url"`
	Type      MattermostConnectionType `json:"type"`
}

MattermostConnection defines model for MattermostConnection.

type MattermostConnectionBase

type MattermostConnectionBase struct {
	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string]    `json:"managed_by,omitempty"`
	Name      string                       `json:"name"`
	ServerUrl string                       `json:"server_url"`
	Type      MattermostConnectionBaseType `json:"type"`
}

MattermostConnectionBase defines model for MattermostConnectionBase.

type MattermostConnectionBaseType

type MattermostConnectionBaseType string

MattermostConnectionBaseType defines model for MattermostConnectionBase.Type.

const (
	MattermostConnectionBaseTypeMattermost MattermostConnectionBaseType = "mattermost"
)

Defines values for MattermostConnectionBaseType.

func (MattermostConnectionBaseType) Valid

Valid indicates whether the value is a known member of the MattermostConnectionBaseType enum.

type MattermostConnectionDraft

type MattermostConnectionDraft struct {
	// BotToken A bot token typed in the form, sent only to `server_url`. Omit it to use the stored token of `connection_id`, which goes only to its saved server URL through its saved proxy.
	BotToken *string `json:"bot_token,omitempty"`

	// ConnectionId The saved Mattermost Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
	ConnectionId *PublicId `json:"connection_id,omitempty"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy *ProxyConfigInput `json:"proxy,omitempty"`

	// ServerUrl The server URL as `MattermostConnectionBase` takes it.
	ServerUrl string                        `json:"server_url"`
	Type      MattermostConnectionDraftType `json:"type"`
}

MattermostConnectionDraft A Mattermost Connection as its form holds it, for `checkConnectionDraft`.

type MattermostConnectionDraftType

type MattermostConnectionDraftType string

MattermostConnectionDraftType defines model for MattermostConnectionDraft.Type.

const (
	MattermostConnectionDraftTypeMattermost MattermostConnectionDraftType = "mattermost"
)

Defines values for MattermostConnectionDraftType.

func (MattermostConnectionDraftType) Valid

Valid indicates whether the value is a known member of the MattermostConnectionDraftType enum.

type MattermostConnectionInput

type MattermostConnectionInput struct {
	// BotToken Write-only Secret. Omit on update to keep the stored one.
	BotToken *string `json:"bot_token,omitempty"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy     ProxyConfigInput              `json:"proxy"`
	ServerUrl string                        `json:"server_url"`
	Type      MattermostConnectionInputType `json:"type"`
}

MattermostConnectionInput defines model for MattermostConnectionInput.

type MattermostConnectionInputType

type MattermostConnectionInputType string

MattermostConnectionInputType defines model for MattermostConnectionInput.Type.

const (
	MattermostConnectionInputTypeMattermost MattermostConnectionInputType = "mattermost"
)

Defines values for MattermostConnectionInputType.

func (MattermostConnectionInputType) Valid

Valid indicates whether the value is a known member of the MattermostConnectionInputType enum.

type MattermostConnectionType

type MattermostConnectionType string

MattermostConnectionType defines model for MattermostConnection.Type.

const (
	MattermostConnectionTypeMattermost MattermostConnectionType = "mattermost"
)

Defines values for MattermostConnectionType.

func (MattermostConnectionType) Valid

func (e MattermostConnectionType) Valid() bool

Valid indicates whether the value is a known member of the MattermostConnectionType enum.

type MattermostDestination

type MattermostDestination struct {
	// Buttons A Destination's button set, `destination.buttons` (C-28.FR-8): `organization`, "As in the Organization", the default, follows the Organization's set and its later changes; `own` shows only `items`, which are then required. A change re-renders the Destination's open Root messages, as edits.
	Buttons     DestinationButtonSet      `json:"buttons"`
	ChannelId   string                    `json:"channel_id"`
	ChannelName nullable.Nullable[string] `json:"channel_name,omitempty"`

	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId  `json:"connection_id"`
	CreatedAt    time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag   *string           `json:"etag,omitempty"`
	Health DestinationHealth `json:"health"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries in order, each with what it mentions now.
	MentionEntries []MentionEntry `json:"mention_entries"`

	// MentionWarnings The people and entries whose Mentions were not delivered (C-28.FR-3), by entry and then by the person's name; always empty on an outgoing webhook, which takes every person as data.
	MentionWarnings []MentionWarning `json:"mention_warnings"`

	// Mentions The L1 form of the Mention entries that L1 can express on the Destination's type (C-28.FR-5), removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions MentionSettings `json:"mentions"`
	Name     string          `json:"name"`

	// OwningTeam The Team that owns the Destination, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Routes       []EntityRef                         `json:"routes"`
	TeamId       string                              `json:"team_id"`
	TeamName     nullable.Nullable[string]           `json:"team_name,omitempty"`

	// Teams The Teams that name the Destination as a Destination of the Team, by name.
	Teams         []TeamRef                 `json:"teams"`
	TemplateError *TemplateErrorState       `json:"template_error,omitempty"`
	Type          MattermostDestinationType `json:"type"`
}

MattermostDestination defines model for MattermostDestination.

type MattermostDestinationInput

type MattermostDestinationInput struct {
	// Buttons The Destination's button set (C-28.FR-8, FR-10); omitted on create is `organization`, omitted on an update keeps it.
	Buttons   *DestinationButtonSet `json:"buttons,omitempty"`
	ChannelId string                `json:"channel_id"`

	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries (C-28.FR-1, FR-2), in order, each a target and the Loud events it applies to; omitted on create is none, which mentions nobody, and omitted on an update keeps them. A target the Destination's Connection cannot mention is refused with `422` `mention_unsupported` at `/mention_entries/{i}/target` — Mattermost has no `everyone` — and an entry whose target equals a stored one is kept whatever the Connection can mention now. An unknown or deleted User or Team is refused with `unknown_id` at its `user_id` or `team_id` unless the entry's target equals a stored one, and a target listed twice with `duplicate` at `/mention_entries/{i}/target`.
	MentionEntries *[]MentionEntryInput `json:"mention_entries,omitempty"`

	// Mentions The Mention settings of L1 (C-12.FR-8), deprecated since 0.2.0 and removed in 0.3.0 (C-28.FR-5). In a read, computed from the `mention_entries` that L1 can express on the Destination's type — the everyone choices, chosen Users and messenger groups L1 took there, for the six kinds of L1 — so that the other entries are not seen in it. In a request it is optional: when a request has no `mention_entries`, it sets them by the conversion of the 0.2.0 migration — on create they are its result; on update it replaces the entries that L1 can express, keeps the others after them, keeps the `storm_started` of a target present before and after, and changes nothing when it equals the stored form — validated as L1 validated it, at pointers under `/mentions`; ignored when `mention_entries` is present.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions *MentionSettings `json:"mentions,omitempty"`
	Name     string           `json:"name"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	TeamId       string                              `json:"team_id"`
	Type         MattermostDestinationInputType      `json:"type"`
}

MattermostDestinationInput defines model for MattermostDestinationInput.

type MattermostDestinationInputType

type MattermostDestinationInputType string

MattermostDestinationInputType defines model for MattermostDestinationInput.Type.

const (
	MattermostDestinationInputTypeMattermost MattermostDestinationInputType = "mattermost"
)

Defines values for MattermostDestinationInputType.

func (MattermostDestinationInputType) Valid

Valid indicates whether the value is a known member of the MattermostDestinationInputType enum.

type MattermostDestinationType

type MattermostDestinationType string

MattermostDestinationType defines model for MattermostDestination.Type.

const (
	MattermostDestinationTypeMattermost MattermostDestinationType = "mattermost"
)

Defines values for MattermostDestinationType.

func (MattermostDestinationType) Valid

func (e MattermostDestinationType) Valid() bool

Valid indicates whether the value is a known member of the MattermostDestinationType enum.

type MattermostLinkConfirm

type MattermostLinkConfirm struct {
	// Code The code the bot sent as a direct message.
	Code *string `json:"code,omitempty"`

	// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	RequestId PublicId `json:"request_id"`
}

MattermostLinkConfirm defines model for MattermostLinkConfirm.

type MattermostLinkRequest

type MattermostLinkRequest struct {
	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Username The `@username` to link; a leading `@` is optional.
	Username string `json:"username"`
}

MattermostLinkRequest defines model for MattermostLinkRequest.

type MattermostLinkStarted

type MattermostLinkStarted struct {
	AttemptsRemaining int       `json:"attempts_remaining"`
	ExpiresAt         time.Time `json:"expires_at"`

	// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	RequestId PublicId `json:"request_id"`
}

MattermostLinkStarted defines model for MattermostLinkStarted.

type Me

type Me struct {
	// Permissions Effective Permissions of the caller, narrowed by the token if one is used.
	Permissions []Permission `json:"permissions"`
	User        User         `json:"user"`
}

Me defines model for Me.

type MeUpdate

type MeUpdate struct {
	// Language UI or template language; null follows the default.
	Language nullable.Nullable[NullableLanguage] `json:"language,omitempty"`
	Name     string                              `json:"name"`
	TimeZone nullable.Nullable[string]           `json:"time_zone,omitempty"`
}

MeUpdate defines model for MeUpdate.

type MentionEntry

type MentionEntry struct {
	Available  bool                `json:"available"`
	Events     []MentionEvent      `json:"events"`
	ResolvesTo []MentionResolution `json:"resolves_to"`

	// Target The target of a Mention entry as read, with the User or the Team it names; a deleted User reads `deactivated`, a deleted Team `deleted`, and such an entry mentions nobody.
	Target MentionTarget `json:"target"`

	// UnavailableReason Why the Connection cannot mention the target now; null while it can.
	UnavailableReason nullable.Nullable[MentionUnavailableReason] `json:"unavailable_reason"`
}

MentionEntry A Mention entry as read, with whether the Destination's Connection can mention its target now and what it mentions now. An entry whose Connection lost the ability stays, reads `available` false with the reason, and mentions nobody.

type MentionEntryInput

type MentionEntryInput struct {
	// Events The Loud events the entry applies to, each once; all seven when omitted.
	Events *[]MentionEvent `json:"events,omitempty"`

	// Target The target of a Mention entry, with the fields of its kind only; another field is refused with `422` `invalid_format` at it, and a missing one with `required`.
	Target MentionTargetInput `json:"target"`
}

MentionEntryInput A Mention entry as written (C-28.FR-1).

type MentionEntryRef

type MentionEntryRef struct {
	Position int `json:"position"`

	// Target The target of a Mention entry as read, with the User or the Team it names; a deleted User reads `deactivated`, a deleted Team `deleted`, and such an entry mentions nobody.
	Target MentionTarget `json:"target"`
}

MentionEntryRef The Mention entry that named a person, a group or everyone, as on the Destination — its position in the Destination's `mention_entries` and its target; in the Timeline, as it was when the message was delivered.

type MentionEvent

type MentionEvent string

MentionEvent A Loud event a Mention entry applies to (C-28.FR-1): a new Alert Group (`new_alert_group`, which also applies to `destination_joined`), new Alerts, a Reopen, an ack timeout notice, the end of a Snooze, a rise to critical, and the start of a Storm (`storm_started`, the first publication of a Storm summary).

const (
	MentionEventAckTimeout    MentionEvent = "ack_timeout"
	MentionEventNewAlertGroup MentionEvent = "new_alert_group"
	MentionEventNewAlerts     MentionEvent = "new_alerts"
	MentionEventReopen        MentionEvent = "reopen"
	MentionEventRiseToUrgent  MentionEvent = "rise_to_urgent"
	MentionEventSnoozeEnded   MentionEvent = "snooze_ended"
	MentionEventStormStarted  MentionEvent = "storm_started"
)

Defines values for MentionEvent.

func (MentionEvent) Valid

func (e MentionEvent) Valid() bool

Valid indicates whether the value is a known member of the MentionEvent enum.

type MentionName

type MentionName string

MentionName A symbolic Mention that each Destination turns into real Mentions; `paged` is the people of a Page by their Account links, or the Team mention or token of a step "Page the whole Team" (C-32.FR-9).

const (
	MentionNameAckTimeout    MentionName = "ack_timeout"
	MentionNameNewAlertGroup MentionName = "new_alert_group"
	MentionNameNewAlerts     MentionName = "new_alerts"
	MentionNameOwner         MentionName = "owner"
	MentionNamePaged         MentionName = "paged"
	MentionNamePreviousOwner MentionName = "previous_owner"
	MentionNameReopen        MentionName = "reopen"
	MentionNameRiseToUrgent  MentionName = "rise_to_urgent"
	MentionNameSnoozeEnded   MentionName = "snooze_ended"
	MentionNameStormStarted  MentionName = "storm_started"
)

Defines values for MentionName.

func (MentionName) Valid

func (e MentionName) Valid() bool

Valid indicates whether the value is a known member of the MentionName enum.

type MentionNotDeliveredReason

type MentionNotDeliveredReason string

MentionNotDeliveredReason Why a person whom a Mention entry named was not mentioned as their messenger mentions them (C-28.FR-3): they have no Account link in the Identity space of the Destination's Connection, so the message left them out (`no_account_link`), or the bridge does not declare `native_mentions` in its `info` — or Muster has read none yet — or their Account link has no marker, its `external_id` being longer than 512 characters or neither it nor the person having a display name, so the message named them by the plain name, which notifies nobody (`bridge_cannot_mention_people`, C-22.FR-16), or the message went through a bridge whose Mention line keeps only the whole Mentions that fit half of `limits.max_body_length` and left theirs out (`message_too_long`, C-12.FR-11). `message_too_long` is also the reason of a group, a Team mention or everyone in the chat that such a line left out, the only reason a Mention that names no one person is not delivered.

const (
	MentionNotDeliveredReasonBridgeCannotMentionPeople MentionNotDeliveredReason = "bridge_cannot_mention_people"
	MentionNotDeliveredReasonMessageTooLong            MentionNotDeliveredReason = "message_too_long"
	MentionNotDeliveredReasonNoAccountLink             MentionNotDeliveredReason = "no_account_link"
)

Defines values for MentionNotDeliveredReason.

func (MentionNotDeliveredReason) Valid

func (e MentionNotDeliveredReason) Valid() bool

Valid indicates whether the value is a known member of the MentionNotDeliveredReason enum.

type MentionPage

type MentionPage struct {
	ChainName string `json:"chain_name"`
	Step      int    `json:"step"`
}

MentionPage A Page as a "Mention not delivered" names it in place of an entry, which a Page does not have (C-32.FR-9, C-12.FR-11): the number of its Escalation step and the name of its Escalation chain when the chain's run started, as the `paged` entry of the Timeline names them.

type MentionResolution

type MentionResolution struct {
	// Mentions Empty when the entry mentions nobody now for it — a Team without a Team mention for the Connection, a Team without a main Schedule or in a gap of it, a deleted User or Team, or a target the Connection cannot mention now.
	Mentions []MentionResolved `json:"mentions"`

	// Team The Team of a Team or On-call target, one item per Team that is not deleted for the targets from the label; null for the other targets.
	Team nullable.Nullable[TeamRef] `json:"team"`
}

MentionResolution What an entry mentions now for one Team, or for no Team.

type MentionResolved

type MentionResolved struct {
	// Kind `user`, a person, by the username of their Account link in the Destination's Identity space, else by their login; `group`, a messenger group or a Team mention, and on an outgoing webhook a Team by its slug; `everyone`, the word of everyone in the chat.
	Kind MentionResolvedKind `json:"kind"`

	// Linked For a `user`, whether they have an Account link in the Destination's Identity space — one without it is not mentioned (C-28.FR-3) — always true on an outgoing webhook, which mentions people as data; true for the other kinds.
	Linked bool   `json:"linked"`
	Name   string `json:"name"`
}

MentionResolved One Mention an entry makes now, as the Destination's messenger writes it.

type MentionResolvedKind

type MentionResolvedKind string

MentionResolvedKind `user`, a person, by the username of their Account link in the Destination's Identity space, else by their login; `group`, a messenger group or a Team mention, and on an outgoing webhook a Team by its slug; `everyone`, the word of everyone in the chat.

const (
	MentionResolvedKindEveryone MentionResolvedKind = "everyone"
	MentionResolvedKindGroup    MentionResolvedKind = "group"
	MentionResolvedKindUser     MentionResolvedKind = "user"
)

Defines values for MentionResolvedKind.

func (MentionResolvedKind) Valid

func (e MentionResolvedKind) Valid() bool

Valid indicates whether the value is a known member of the MentionResolvedKind enum.

type MentionSetting

type MentionSetting struct {
	// Everyone `none`, or the chat-wide mention the messenger supports: Mattermost takes `channel`, `all` and `here`, Slack `channel` and `here` but not `all`; Telegram and Bridges have none of them; an outgoing webhook takes each as data.
	Everyone MentionSettingEveryone `json:"everyone"`

	// Groups Messenger groups: Mattermost group names; Telegram, Bridges and Slack have none.
	Groups []string `json:"groups"`

	// UserIds Muster users, rendered through their Account links.
	UserIds []PublicId `json:"user_ids"`
}

MentionSetting Whom to mention for one kind of Loud event. The default is nobody.

type MentionSettingEveryone

type MentionSettingEveryone string

MentionSettingEveryone `none`, or the chat-wide mention the messenger supports: Mattermost takes `channel`, `all` and `here`, Slack `channel` and `here` but not `all`; Telegram and Bridges have none of them; an outgoing webhook takes each as data.

const (
	MentionSettingEveryoneAll     MentionSettingEveryone = "all"
	MentionSettingEveryoneChannel MentionSettingEveryone = "channel"
	MentionSettingEveryoneHere    MentionSettingEveryone = "here"
	MentionSettingEveryoneNone    MentionSettingEveryone = "none"
)

Defines values for MentionSettingEveryone.

func (MentionSettingEveryone) Valid

func (e MentionSettingEveryone) Valid() bool

Valid indicates whether the value is a known member of the MentionSettingEveryone enum.

type MentionSettings

type MentionSettings struct {
	// AckTimeout Whom to mention for one kind of Loud event. The default is nobody.
	AckTimeout MentionSetting `json:"ack_timeout"`

	// NewAlertGroup Whom to mention for one kind of Loud event. The default is nobody.
	NewAlertGroup MentionSetting `json:"new_alert_group"`

	// NewAlerts Whom to mention for one kind of Loud event. The default is nobody.
	NewAlerts MentionSetting `json:"new_alerts"`

	// Reopen Whom to mention for one kind of Loud event. The default is nobody.
	Reopen MentionSetting `json:"reopen"`

	// RiseToUrgent Whom to mention for one kind of Loud event. The default is nobody.
	RiseToUrgent MentionSetting `json:"rise_to_urgent"`

	// SnoozeEnded Whom to mention for one kind of Loud event. The default is nobody.
	SnoozeEnded MentionSetting `json:"snooze_ended"`
}

MentionSettings Keyed by the Mention names of Loud events. Reminders and auto-unacknowledge always mention the Owner, Takeovers the previous Owner.

type MentionTarget

type MentionTarget struct {
	// Everyone With `everyone` only, the word of the messenger.
	Everyone *MentionTargetEveryone `json:"everyone,omitempty"`

	// Group With `group` only, the group's name without `@` — 1 to 64 letters, digits, `.`, `_` and `-`, starting with a letter or a digit, the handle of a Slack user group; any text but empty for an outgoing webhook.
	Group *string `json:"group,omitempty"`

	// GroupId With `group` only, the Slack user group's id (`S` followed by digits and capital letters), from `listConnectionGroups`, required on Slack and refused on the other types.
	GroupId *string `json:"group_id,omitempty"`

	// Kind Whom a Mention entry names (C-28.FR-1): everyone in the chat (`everyone`), a person (`user`), a messenger group (`group`), a Team (`team`), the Teams of the Alert Group (`teams_from_label`), the On-call of a Team's main Schedule (`on_call_of_team`), and the On-call of each Team of the Alert Group (`on_call_of_teams_from_label`).
	Kind MentionTargetKind `json:"kind"`

	// Team The Team of a `team` or `on_call_of_team` target.
	Team *TeamRef `json:"team,omitempty"`

	// TeamId With `team` and `on_call_of_team` only.
	TeamId *PublicId `json:"team_id,omitempty"`

	// User The User of a `user` target.
	User *UserRef `json:"user,omitempty"`

	// UserId With `user` only.
	UserId *PublicId `json:"user_id,omitempty"`
}

MentionTarget The target of a Mention entry as read, with the User or the Team it names; a deleted User reads `deactivated`, a deleted Team `deleted`, and such an entry mentions nobody.

type MentionTargetEveryone

type MentionTargetEveryone string

MentionTargetEveryone With `everyone` only, the word of the messenger.

const (
	MentionTargetEveryoneAll      MentionTargetEveryone = "all"
	MentionTargetEveryoneChannel  MentionTargetEveryone = "channel"
	MentionTargetEveryoneEveryone MentionTargetEveryone = "everyone"
	MentionTargetEveryoneHere     MentionTargetEveryone = "here"
)

Defines values for MentionTargetEveryone.

func (MentionTargetEveryone) Valid

func (e MentionTargetEveryone) Valid() bool

Valid indicates whether the value is a known member of the MentionTargetEveryone enum.

type MentionTargetInput

type MentionTargetInput struct {
	// Everyone With `everyone` only, the word of the messenger.
	Everyone *MentionTargetInputEveryone `json:"everyone,omitempty"`

	// Group With `group` only, the group's name without `@` — 1 to 64 letters, digits, `.`, `_` and `-`, starting with a letter or a digit, the handle of a Slack user group; any text but empty for an outgoing webhook.
	Group *string `json:"group,omitempty"`

	// GroupId With `group` only, the Slack user group's id (`S` followed by digits and capital letters), from `listConnectionGroups`, required on Slack and refused on the other types.
	GroupId *string `json:"group_id,omitempty"`

	// Kind Whom a Mention entry names (C-28.FR-1): everyone in the chat (`everyone`), a person (`user`), a messenger group (`group`), a Team (`team`), the Teams of the Alert Group (`teams_from_label`), the On-call of a Team's main Schedule (`on_call_of_team`), and the On-call of each Team of the Alert Group (`on_call_of_teams_from_label`).
	Kind MentionTargetKind `json:"kind"`

	// TeamId With `team` and `on_call_of_team` only.
	TeamId *PublicId `json:"team_id,omitempty"`

	// UserId With `user` only.
	UserId *PublicId `json:"user_id,omitempty"`
}

MentionTargetInput The target of a Mention entry, with the fields of its kind only; another field is refused with `422` `invalid_format` at it, and a missing one with `required`.

type MentionTargetInputEveryone

type MentionTargetInputEveryone string

MentionTargetInputEveryone With `everyone` only, the word of the messenger.

const (
	MentionTargetInputEveryoneAll      MentionTargetInputEveryone = "all"
	MentionTargetInputEveryoneChannel  MentionTargetInputEveryone = "channel"
	MentionTargetInputEveryoneEveryone MentionTargetInputEveryone = "everyone"
	MentionTargetInputEveryoneHere     MentionTargetInputEveryone = "here"
)

Defines values for MentionTargetInputEveryone.

func (MentionTargetInputEveryone) Valid

func (e MentionTargetInputEveryone) Valid() bool

Valid indicates whether the value is a known member of the MentionTargetInputEveryone enum.

type MentionTargetKind

type MentionTargetKind string

MentionTargetKind Whom a Mention entry names (C-28.FR-1): everyone in the chat (`everyone`), a person (`user`), a messenger group (`group`), a Team (`team`), the Teams of the Alert Group (`teams_from_label`), the On-call of a Team's main Schedule (`on_call_of_team`), and the On-call of each Team of the Alert Group (`on_call_of_teams_from_label`).

const (
	MentionTargetKindEveryone               MentionTargetKind = "everyone"
	MentionTargetKindGroup                  MentionTargetKind = "group"
	MentionTargetKindOnCallOfTeam           MentionTargetKind = "on_call_of_team"
	MentionTargetKindOnCallOfTeamsFromLabel MentionTargetKind = "on_call_of_teams_from_label"
	MentionTargetKindTeam                   MentionTargetKind = "team"
	MentionTargetKindTeamsFromLabel         MentionTargetKind = "teams_from_label"
	MentionTargetKindUser                   MentionTargetKind = "user"
)

Defines values for MentionTargetKind.

func (MentionTargetKind) Valid

func (e MentionTargetKind) Valid() bool

Valid indicates whether the value is a known member of the MentionTargetKind enum.

type MentionUnavailableReason

type MentionUnavailableReason string

MentionUnavailableReason Why a Connection cannot mention a target (C-25.FR-8, C-28.FR-2): `telegram_no_groups`, Telegram has no group mentions and no mentions of everyone; `usergroups_read_missing`, a Slack Connection whose last check found no `usergroups:read`; `bridge_no_group_mentions`, a bridge that declares no `group_mentions`; `bridge_not_declared`, a mention of everyone that the bridge does not declare in `everyone_mentions`; `messenger_has_no_token`, a mention of everyone that the messenger does not have, such as `@everyone` in Mattermost and `@all` and `@everyone` in Slack.

const (
	BridgeNoGroupMentions MentionUnavailableReason = "bridge_no_group_mentions"
	BridgeNotDeclared     MentionUnavailableReason = "bridge_not_declared"
	MessengerHasNoToken   MentionUnavailableReason = "messenger_has_no_token"
	TelegramNoGroups      MentionUnavailableReason = "telegram_no_groups"
	UsergroupsReadMissing MentionUnavailableReason = "usergroups_read_missing"
)

Defines values for MentionUnavailableReason.

func (MentionUnavailableReason) Valid

func (e MentionUnavailableReason) Valid() bool

Valid indicates whether the value is a known member of the MentionUnavailableReason enum.

type MentionWarning

type MentionWarning struct {
	// Entry The entry as it is on the Destination now.
	Entry MentionEntryRef `json:"entry"`

	// Mention The group or everyone in the chat; absent for a person.
	Mention   *NamedMention  `json:"mention,omitempty"`
	Messenger ConnectionType `json:"messenger"`

	// Reason The reason of the latest "Mention not delivered".
	Reason MentionNotDeliveredReason `json:"reason"`

	// Since When the first "Mention not delivered" of the person through the entry since their last delivered Mention through it was recorded.
	Since time.Time `json:"since"`

	// User The person; absent for a group or everyone, which `mention` names.
	User *UserRef `json:"user,omitempty"`
}

MentionWarning A warning of a Destination about a person and an entry whose latest "Mention not delivered" is not followed by a delivered Mention of that person through that entry (C-28.FR-3): computed from the delivery events kept for `retention.alert_details`, never stored, so it clears once a later Loud message mentions the person through the entry, or once retention removes the events. An entry removed from the Destination since, or a deleted User, has none. Through a bridge whose Mention line left out a group, a Team mention or everyone in the chat that an entry named (C-12.FR-11), the warning is about that Mention, with `mention` in place of `user`, and clears once a later Loud message carries it.

type MessageLayout

type MessageLayout struct {
	// Alerts The Alerts by their distinguishing label (C-29.FR-3); null for an Alert Group of one Alert.
	Alerts nullable.Nullable[MessageLayoutAlerts] `json:"alerts"`

	// Assignees The Assignees with the owning Teams of their chains, before an acknowledgement; empty until Escalation chains Page people, and in a preview.
	Assignees []MessageLayoutPerson `json:"assignees"`

	// Description The `description` annotation of the first Alert that has one; empty when there is none.
	Description string `json:"description"`

	// Fields Severity, Route, Teams (left out when the Alert Group has none) and Started.
	Fields []MessageLayoutField `json:"fields"`

	// Labels The key labels of "Labels in the message"; the value of a label whose values differ among the firing Alerts is "N values" in the Route's language.
	Labels []MessageLayoutLabel `json:"labels"`

	// Links The links, "Open in Muster" first.
	Links []MessageLayoutLink `json:"links"`

	// Notices The notices that apply, then the footer as a line, except the footer of an acknowledgement that `owner` names, of which only "Escalation chains stopped" is a line, and the Assignees.
	Notices []string `json:"notices"`

	// Number The Alert Group's number alone, without `#`.
	Number int `json:"number"`

	// Owner Who acknowledged the Alert Group, without a Team, while it is acknowledged, in the layout of the markup `commonmark` that bridges receive; null otherwise, while the footer names them.
	Owner  nullable.Nullable[MessageLayoutPerson] `json:"owner"`
	Status MessageLayoutStatus                    `json:"status"`

	// Summary Empty when there is none.
	Summary string `json:"summary"`

	// Title The title without the number.
	Title string `json:"title"`
}

MessageLayout The content of a Root message as structured, plain-text data (C-29.FR-1, FR-8), the same that the Bridge protocol carries next to `body`. Its values are never escaped for any markup.

type MessageLayoutAlertValue

type MessageLayoutAlertValue struct {
	Resolved bool   `json:"resolved"`
	Value    string `json:"value"`
}

MessageLayoutAlertValue defines model for MessageLayoutAlertValue.

type MessageLayoutAlerts

type MessageLayoutAlerts struct {
	// Label The distinguishing label.
	Label string `json:"label"`

	// Total How many Alerts the Alert Group has, so that a reader counts the ones not listed itself.
	Total int `json:"total"`

	// Values Up to `message.compact_alerts_listed` values, firing Alerts first.
	Values []MessageLayoutAlertValue `json:"values"`
}

MessageLayoutAlerts defines model for MessageLayoutAlerts.

type MessageLayoutField

type MessageLayoutField struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

MessageLayoutField defines model for MessageLayoutField.

type MessageLayoutLabel

type MessageLayoutLabel struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

MessageLayoutLabel defines model for MessageLayoutLabel.

type MessageLayoutLink struct {
	Label string `json:"label"`
	Url   string `json:"url"`
}

MessageLayoutLink defines model for MessageLayoutLink.

type MessageLayoutPerson

type MessageLayoutPerson struct {
	Name string `json:"name"`

	// Ref The `ref` of the person's entry in the envelope's `mentions` where the message carries their Mention, otherwise null.
	Ref  nullable.Nullable[string] `json:"ref"`
	Team *MessageLayoutTeam        `json:"team,omitempty"`
}

MessageLayoutPerson defines model for MessageLayoutPerson.

type MessageLayoutStatus

type MessageLayoutStatus struct {
	Key MessageLayoutStatusKey `json:"key"`

	// Word The status as a word in the Route's language.
	Word string `json:"word"`
}

MessageLayoutStatus defines model for MessageLayoutStatus.

type MessageLayoutStatusKey

type MessageLayoutStatusKey string

MessageLayoutStatusKey defines model for MessageLayoutStatus.Key.

const (
	MessageLayoutStatusKeyAcknowledged MessageLayoutStatusKey = "acknowledged"
	MessageLayoutStatusKeyFiring       MessageLayoutStatusKey = "firing"
	MessageLayoutStatusKeyResolved     MessageLayoutStatusKey = "resolved"
	MessageLayoutStatusKeySnoozed      MessageLayoutStatusKey = "snoozed"
)

Defines values for MessageLayoutStatusKey.

func (MessageLayoutStatusKey) Valid

func (e MessageLayoutStatusKey) Valid() bool

Valid indicates whether the value is a known member of the MessageLayoutStatusKey enum.

type MessageLayoutTeam

type MessageLayoutTeam struct {
	Name string `json:"name"`
}

MessageLayoutTeam defines model for MessageLayoutTeam.

type Messenger

type Messenger string

Messenger defines model for Messenger.

const (
	MessengerBridge     Messenger = "bridge"
	MessengerMattermost Messenger = "mattermost"
	MessengerSlack      Messenger = "slack"
	MessengerTelegram   Messenger = "telegram"
)

Defines values for Messenger.

func (Messenger) Valid

func (e Messenger) Valid() bool

Valid indicates whether the value is a known member of the Messenger enum.

type MinimumSeverity

type MinimumSeverity string

MinimumSeverity `route.minimum_severity` (default `none`): the lowest Severity level of the Route's Alert Groups. It only raises the Severity level of the Route's Alert Groups — never the level of an Alert, and never lowers one; an Urgent Alert Group is a critical one.

const (
	MinimumSeverityCritical MinimumSeverity = "critical"
	MinimumSeverityNone     MinimumSeverity = "none"
	MinimumSeverityWarning  MinimumSeverity = "warning"
)

Defines values for MinimumSeverity.

func (MinimumSeverity) Valid

func (e MinimumSeverity) Valid() bool

Valid indicates whether the value is a known member of the MinimumSeverity enum.

type MoveOpenAlertGroupsResponse

type MoveOpenAlertGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MovedAlertGroups
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *MoveOpenAlertGroupsResponse429Headers
}

func ParseMoveOpenAlertGroupsResponse

func ParseMoveOpenAlertGroupsResponse(rsp *http.Response) (*MoveOpenAlertGroupsResponse, error)

ParseMoveOpenAlertGroupsResponse parses an HTTP response from a MoveOpenAlertGroupsWithResponse call

func (MoveOpenAlertGroupsResponse) ContentType

func (r MoveOpenAlertGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON401

func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON403

func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON404

func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON409

func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (MoveOpenAlertGroupsResponse) GetApplicationproblemJSON429

func (r MoveOpenAlertGroupsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (MoveOpenAlertGroupsResponse) GetBody

func (r MoveOpenAlertGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MoveOpenAlertGroupsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (MoveOpenAlertGroupsResponse) Status

Status returns HTTPResponse.Status

func (MoveOpenAlertGroupsResponse) StatusCode

func (r MoveOpenAlertGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MoveOpenAlertGroupsResponse429Headers

type MoveOpenAlertGroupsResponse429Headers struct {
	RetryAfter *int
}

MoveOpenAlertGroupsResponse429Headers the declared response headers of an HTTP 429 response for MoveOpenAlertGroups

type MovedAlertGroups

type MovedAlertGroups struct {
	// Moved Open Alert Groups moved to the Default route.
	Moved int `json:"moved"`
}

MovedAlertGroups defines model for MovedAlertGroups.

type NamedMention

type NamedMention struct {
	Kind NamedMentionKind `json:"kind"`
	Name string           `json:"name"`
}

NamedMention A Mention that names no one person, which a bridge's Mention line left out for length (C-28.FR-3, C-12.FR-11): `group`, a messenger group — a group entry or a Team mention — by its name, or `everyone`, everyone in the chat, by its symbolic name (`here`, `channel` or `all`).

type NamedMentionKind

type NamedMentionKind string

NamedMentionKind defines model for NamedMention.Kind.

const (
	NamedMentionKindEveryone NamedMentionKind = "everyone"
	NamedMentionKindGroup    NamedMentionKind = "group"
)

Defines values for NamedMentionKind.

func (NamedMentionKind) Valid

func (e NamedMentionKind) Valid() bool

Valid indicates whether the value is a known member of the NamedMentionKind enum.

type NextNotice

type NextNotice struct {
	At   time.Time      `json:"at"`
	Kind NextNoticeKind `json:"kind"`
}

NextNotice defines model for NextNotice.

type NextNoticeKind

type NextNoticeKind string

NextNoticeKind defines model for NextNotice.Kind.

const (
	NextNoticeKindAckTimeout NextNoticeKind = "ack_timeout"
	NextNoticeKindReminder   NextNoticeKind = "reminder"
)

Defines values for NextNoticeKind.

func (NextNoticeKind) Valid

func (e NextNoticeKind) Valid() bool

Valid indicates whether the value is a known member of the NextNoticeKind enum.

type NotFound

type NotFound = Problem

NotFound RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type NotImplemented

type NotImplemented = Problem

NotImplemented RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type NotPageableReason

type NotPageableReason string

NotPageableReason Why a person may not be Paged: a Viewer, a disabled User, or a User who is not in the Team.

const (
	NotPageableReasonDisabled  NotPageableReason = "disabled"
	NotPageableReasonNotInTeam NotPageableReason = "not_in_team"
	NotPageableReasonViewer    NotPageableReason = "viewer"
)

Defines values for NotPageableReason.

func (NotPageableReason) Valid

func (e NotPageableReason) Valid() bool

Valid indicates whether the value is a known member of the NotPageableReason enum.

type Note

type Note struct {
	// Author Who resolved an Alert Group or wrote a Note, or is a row of the statistics by people: a User or a Service account. An Owner is always a User (`UserRef`), because a Service account cannot become an Owner; a Service account is a row of the statistics by people only through what it resolved.
	Author    ActorRef  `json:"author"`
	Body      string    `json:"body"`
	CreatedAt time.Time `json:"created_at"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `gateway` marks an Acknowledge from a call through a Notification gateway; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
	Transport Transport `json:"transport"`
}

Note defines model for Note.

type NoteInput

type NoteInput struct {
	// Body At most `alert_group.note_max_length` characters.
	Body string `json:"body"`
}

NoteInput defines model for NoteInput.

type NoteList

type NoteList struct {
	Items      []Note                    `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

NoteList defines model for NoteList.

type NotificationRuleAction

type NotificationRuleAction struct {
	// Available Set in reads; false for a call that cannot run now, which stays in the rule.
	Available *bool `json:"available,omitempty"`

	// Gateway Set in reads; the gateway of a call, null for the other kinds and for a Connection that no longer exists.
	Gateway nullable.Nullable[EntityRef] `json:"gateway,omitempty"`

	// GatewayId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	GatewayId *PublicId                  `json:"gateway_id,omitempty"`
	Kind      NotificationRuleActionKind `json:"kind"`

	// UnavailableReason Set in reads; why `available` is false, null when it is true.
	UnavailableReason nullable.Nullable[NotificationRuleUnavailableReason] `json:"unavailable_reason,omitempty"`

	// WaitSeconds The wait in seconds, with `wait`; a multiple of 60 from 60 to 3600.
	WaitSeconds *int `json:"wait_seconds,omitempty"`
}

NotificationRuleAction One action of a Notification rule (C-31.FR-1): `mention`, a Mention in the Thread; `call`, a call through the Notification gateway `gateway_id`, required when more than one Notification gateway exists and otherwise the only one; `wait`, a wait of `wait_seconds` before the next action, a whole number of minutes from 1 to 60 (`notification_rule.limits`): a multiple of 60 from 60 to 3600, else `422` `out_of_range` at its `wait_seconds`, `required` without it. Actions without a wait between them happen at the same moment. Fields the kind does not take are ignored. `gateway`, `available` and `unavailable_reason` are set in reads and ignored in requests, so that a read can be sent back.

type NotificationRuleActionKind

type NotificationRuleActionKind string

NotificationRuleActionKind defines model for NotificationRuleAction.Kind.

const (
	NotificationRuleActionKindCall    NotificationRuleActionKind = "call"
	NotificationRuleActionKindMention NotificationRuleActionKind = "mention"
	NotificationRuleActionKindWait    NotificationRuleActionKind = "wait"
)

Defines values for NotificationRuleActionKind.

func (NotificationRuleActionKind) Valid

func (e NotificationRuleActionKind) Valid() bool

Valid indicates whether the value is a known member of the NotificationRuleActionKind enum.

type NotificationRuleSet

type NotificationRuleSet struct {
	Important []NotificationRuleAction `json:"important"`
	Normal    []NotificationRuleAction `json:"normal"`
}

NotificationRuleSet The normal and the important rule, each at most 10 actions (`notification_rule.limits`, else `422` `out_of_range` at the rule) with at least one `mention` or `call` (else `422` `required` at the rule). A call while no Notification gateway exists is `422` `gateway_required` at the action; one whose `gateway_id` names a Connection that is no Notification gateway `unknown_id` at its `gateway_id`. As many calls through a gateway as the stored rules of the same owner have, across both rules, pass without these checks, which keeps an action whose gateway was deleted; a further call through it is checked.

type NotificationRuleUnavailableReason

type NotificationRuleUnavailableReason string

NotificationRuleUnavailableReason `gateway_deleted`: the gateway of the call was deleted or is no Notification gateway any more; `no_confirmed_contact`: the person has no confirmed contact at it (never in the Organization's rules).

const (
	NotificationRuleUnavailableReasonGatewayDeleted     NotificationRuleUnavailableReason = "gateway_deleted"
	NotificationRuleUnavailableReasonNoConfirmedContact NotificationRuleUnavailableReason = "no_confirmed_contact"
)

Defines values for NotificationRuleUnavailableReason.

func (NotificationRuleUnavailableReason) Valid

Valid indicates whether the value is a known member of the NotificationRuleUnavailableReason enum.

type NotificationRules

type NotificationRules struct {
	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. In the state `organization` it changes with every change of the Organization, whose rules the User follows.
	Etag *string `json:"etag,omitempty"`

	// Gateway The gateway of the state `call`; null in the other states.
	Gateway nullable.Nullable[EntityRef] `json:"gateway"`

	// Important The important rule in effect.
	Important []NotificationRuleAction `json:"important"`

	// Normal The normal rule in effect.
	Normal []NotificationRuleAction `json:"normal"`

	// State The state of a User's rules (C-31.FR-2): `organization`, "As in the Organization", the default — the Organization's current rules; `call`, "Call" — the Organization's rules as they were when chosen, with a call through the chosen gateway at the start of the important rule; `no_call`, "Don't call" — the Organization's rules as they were when chosen, without any call; `custom` — sequences set through the API.
	State NotificationRulesState `json:"state"`
}

NotificationRules A User's Notification rules as in effect.

type NotificationRulesState

type NotificationRulesState string

NotificationRulesState The state of a User's rules (C-31.FR-2): `organization`, "As in the Organization", the default — the Organization's current rules; `call`, "Call" — the Organization's rules as they were when chosen, with a call through the chosen gateway at the start of the important rule; `no_call`, "Don't call" — the Organization's rules as they were when chosen, without any call; `custom` — sequences set through the API.

const (
	NotificationRulesStateCall         NotificationRulesState = "call"
	NotificationRulesStateCustom       NotificationRulesState = "custom"
	NotificationRulesStateNoCall       NotificationRulesState = "no_call"
	NotificationRulesStateOrganization NotificationRulesState = "organization"
)

Defines values for NotificationRulesState.

func (NotificationRulesState) Valid

func (e NotificationRulesState) Valid() bool

Valid indicates whether the value is a known member of the NotificationRulesState enum.

type NotificationRulesUpdate

type NotificationRulesUpdate struct {
	// GatewayId With `call`, the Notification gateway of the call; may be left out when the User has a confirmed contact at exactly one.
	GatewayId *PublicId `json:"gateway_id,omitempty"`

	// Important With `custom`, the important rule; required.
	Important *[]NotificationRuleAction `json:"important,omitempty"`

	// Normal With `custom`, the normal rule; required.
	Normal *[]NotificationRuleAction `json:"normal,omitempty"`

	// State The state of a User's rules (C-31.FR-2): `organization`, "As in the Organization", the default — the Organization's current rules; `call`, "Call" — the Organization's rules as they were when chosen, with a call through the chosen gateway at the start of the important rule; `no_call`, "Don't call" — the Organization's rules as they were when chosen, without any call; `custom` — sequences set through the API.
	State NotificationRulesState `json:"state"`
}

NotificationRulesUpdate A change of a User's rules; fields the state does not take are ignored.

type NullableAlertGroupStatus

type NullableAlertGroupStatus string

NullableAlertGroupStatus defines model for NullableAlertGroupStatus.

const (
	NullableAlertGroupStatusAcknowledged NullableAlertGroupStatus = "acknowledged"
	NullableAlertGroupStatusFiring       NullableAlertGroupStatus = "firing"
	NullableAlertGroupStatusLessThannil  NullableAlertGroupStatus = "<nil>"
	NullableAlertGroupStatusResolved     NullableAlertGroupStatus = "resolved"
	NullableAlertGroupStatusSnoozed      NullableAlertGroupStatus = "snoozed"
)

Defines values for NullableAlertGroupStatus.

func (NullableAlertGroupStatus) Valid

func (e NullableAlertGroupStatus) Valid() bool

Valid indicates whether the value is a known member of the NullableAlertGroupStatus enum.

type NullableCheckKind

type NullableCheckKind string

NullableCheckKind The check or test a request belongs to, null for any other request.

const (
	NullableCheckKindConnectionCheck  NullableCheckKind = "connection_check"
	NullableCheckKindDestinationCheck NullableCheckKind = "destination_check"
	NullableCheckKindDraftCheck       NullableCheckKind = "draft_check"
	NullableCheckKindLessThannil      NullableCheckKind = "<nil>"
	NullableCheckKindProbe            NullableCheckKind = "probe"
	NullableCheckKindTest             NullableCheckKind = "test"
)

Defines values for NullableCheckKind.

func (NullableCheckKind) Valid

func (e NullableCheckKind) Valid() bool

Valid indicates whether the value is a known member of the NullableCheckKind enum.

type NullableConnectionCheckCode

type NullableConnectionCheckCode string

NullableConnectionCheckCode What a step of the Connection check found, as a stable code that clients translate, with `message` as its detail in English; null when the step passed with nothing to say or was skipped. A step that failed: `token_invalid` — the messenger refused the bot token (`token`, `get_me`) or the bridge refused the token (`info`); for Slack, `token_invalid` — Slack refused the bot token or the app-level token (`token`, `app_token`), `wrong_token_type` — the bot token is not a bot's: Slack answered `not_allowed_token_type`, or `auth.test` named no `bot_id` (`token`), `missing_scope` — the bot token lacks scopes Muster needs, which `missing_scopes` lists and `message` names (`scopes`), `app_mismatch` — the app-level token belongs to another Slack app than the bot token (`app_token`), and `not_slack` — the address answered the dry probe, but not with Slack's JSON `{"ok":false, "error":"not_authed"}`; for the dry probe (`dry_probe`, without any token: Telegram `GET <base>/bot0:x/getMe`, Mattermost `GET <server>/api/v4/system/ping`, a Bridge `GET <base>/v1/info`, Slack `POST https://slack.com/api/auth.test`), `not_bot_api` — the address answered, but not as a Bot API (not JSON), `not_mattermost` — the address answered, but not as a Mattermost server (not JSON, or `200` JSON whose `status` is not `OK`), `not_bridge` — the address answered, but not with a problem of the Bridge protocol (`application/problem+json`), `wrong_path_prefix` — it answered 404, so the path prefix of the address is wrong, `unexpected_status` — it answered another status than the probe expects (`401` from a Bot API or a bridge, `200` from Mattermost or Slack) in the expected format; for `info`, `protocol_version_unknown` — the bridge speaks a protocol version this Muster does not, which `message` names, and `protocol_mismatch` — the answer does not match the protocol or is larger than 64 KiB, which `message` names; for `event_delivery`, `event_delivery_not_offered` — the bridge does not offer the Connection's event delivery mode; for any step, `dns_failed` — the host name does not resolve, `connect_failed` — no connection, or the answer could not be read, `tls_failed` — the TLS handshake failed, `timeout` — no answer in time, `proxy_refused` — the proxy refused its credentials, `blocked` — the outbound address policy refused the address, and `request_failed` — any other failure, such as an error answer, which `message` names (from a bridge, the problem's masked `detail`). A step that passed: `webhook_set` (`get_webhook_info`) — a webhook is set, and `message` names its host.

const (
	NullableConnectionCheckCodeAppMismatch             NullableConnectionCheckCode = "app_mismatch"
	NullableConnectionCheckCodeBlocked                 NullableConnectionCheckCode = "blocked"
	NullableConnectionCheckCodeConnectFailed           NullableConnectionCheckCode = "connect_failed"
	NullableConnectionCheckCodeDnsFailed               NullableConnectionCheckCode = "dns_failed"
	NullableConnectionCheckCodeEventDeliveryNotOffered NullableConnectionCheckCode = "event_delivery_not_offered"
	NullableConnectionCheckCodeLessThannil             NullableConnectionCheckCode = "<nil>"
	NullableConnectionCheckCodeMissingScope            NullableConnectionCheckCode = "missing_scope"
	NullableConnectionCheckCodeNotBotApi               NullableConnectionCheckCode = "not_bot_api"
	NullableConnectionCheckCodeNotBridge               NullableConnectionCheckCode = "not_bridge"
	NullableConnectionCheckCodeNotMattermost           NullableConnectionCheckCode = "not_mattermost"
	NullableConnectionCheckCodeNotSlack                NullableConnectionCheckCode = "not_slack"
	NullableConnectionCheckCodeProtocolMismatch        NullableConnectionCheckCode = "protocol_mismatch"
	NullableConnectionCheckCodeProtocolVersionUnknown  NullableConnectionCheckCode = "protocol_version_unknown"
	NullableConnectionCheckCodeProxyRefused            NullableConnectionCheckCode = "proxy_refused"
	NullableConnectionCheckCodeRequestFailed           NullableConnectionCheckCode = "request_failed"
	NullableConnectionCheckCodeTimeout                 NullableConnectionCheckCode = "timeout"
	NullableConnectionCheckCodeTlsFailed               NullableConnectionCheckCode = "tls_failed"
	NullableConnectionCheckCodeTokenInvalid            NullableConnectionCheckCode = "token_invalid"
	NullableConnectionCheckCodeUnexpectedStatus        NullableConnectionCheckCode = "unexpected_status"
	NullableConnectionCheckCodeWebhookSet              NullableConnectionCheckCode = "webhook_set"
	NullableConnectionCheckCodeWrongPathPrefix         NullableConnectionCheckCode = "wrong_path_prefix"
	NullableConnectionCheckCodeWrongTokenType          NullableConnectionCheckCode = "wrong_token_type"
)

Defines values for NullableConnectionCheckCode.

func (NullableConnectionCheckCode) Valid

Valid indicates whether the value is a known member of the NullableConnectionCheckCode enum.

type NullableDestinationCheckCode

type NullableDestinationCheckCode string

NullableDestinationCheckCode Why a check of the Destination check failed, as a stable code that clients translate, with `message` as its detail in English; null for a check that passed. `token_invalid` — the messenger refused the bot token (`token`, Telegram `channel_exists`, Bridge `channel`); Mattermost `bot_in_channel`: `bot_not_in_channel`, `channel_in_other_team` — the channel is not in the Destination's team, `channel_archived`; Telegram `channel_exists`: `channel_not_found` — the channel was not found or the bot cannot see it, `not_a_channel` — the chat is not a channel; `discussion_group`: `comments_disabled` — the channel has no linked discussion group, so comments are not enabled, `changed_since_saved` — the channel or its discussion group changed since the Destination was saved, and a save takes the new one; `bot_rights_channel`: `bot_not_channel_admin`, `bot_may_not_post`, `bot_may_not_edit`; `bot_rights_group`: `bot_not_group_admin`, whose `message` names the group; Bridge `channel`: `channel_forbidden` — the bridge answered `forbidden`: the channel does not exist or the bot cannot use it, with the bridge's `detail` as `message`, and `request_failed` for any other error class of the bridge, whose `message` names the class; Slack `channel`: `token_invalid` — Slack refused the bot token, `missing_scope` — the bot token lacks a scope `conversations.info` needs, which `missing_scopes` lists, `channel_not_found` — no such channel, a deleted one, or a private channel the bot is not in, `channel_archived`, `bot_not_in_channel` — `message` says "Invite the bot to the channel: /invite @{bot}", and `request_failed` for any other error of Slack's, which `message` names; any check: `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` and `request_failed`, as in `NullableConnectionCheckCode`.

const (
	NullableDestinationCheckCodeBlocked            NullableDestinationCheckCode = "blocked"
	NullableDestinationCheckCodeBotMayNotEdit      NullableDestinationCheckCode = "bot_may_not_edit"
	NullableDestinationCheckCodeBotMayNotPost      NullableDestinationCheckCode = "bot_may_not_post"
	NullableDestinationCheckCodeBotNotChannelAdmin NullableDestinationCheckCode = "bot_not_channel_admin"
	NullableDestinationCheckCodeBotNotGroupAdmin   NullableDestinationCheckCode = "bot_not_group_admin"
	NullableDestinationCheckCodeBotNotInChannel    NullableDestinationCheckCode = "bot_not_in_channel"
	NullableDestinationCheckCodeChangedSinceSaved  NullableDestinationCheckCode = "changed_since_saved"
	NullableDestinationCheckCodeChannelArchived    NullableDestinationCheckCode = "channel_archived"
	NullableDestinationCheckCodeChannelForbidden   NullableDestinationCheckCode = "channel_forbidden"
	NullableDestinationCheckCodeChannelInOtherTeam NullableDestinationCheckCode = "channel_in_other_team"
	NullableDestinationCheckCodeChannelNotFound    NullableDestinationCheckCode = "channel_not_found"
	NullableDestinationCheckCodeCommentsDisabled   NullableDestinationCheckCode = "comments_disabled"
	NullableDestinationCheckCodeConnectFailed      NullableDestinationCheckCode = "connect_failed"
	NullableDestinationCheckCodeDnsFailed          NullableDestinationCheckCode = "dns_failed"
	NullableDestinationCheckCodeLessThannil        NullableDestinationCheckCode = "<nil>"
	NullableDestinationCheckCodeMissingScope       NullableDestinationCheckCode = "missing_scope"
	NullableDestinationCheckCodeNotAChannel        NullableDestinationCheckCode = "not_a_channel"
	NullableDestinationCheckCodeProxyRefused       NullableDestinationCheckCode = "proxy_refused"
	NullableDestinationCheckCodeRequestFailed      NullableDestinationCheckCode = "request_failed"
	NullableDestinationCheckCodeTimeout            NullableDestinationCheckCode = "timeout"
	NullableDestinationCheckCodeTlsFailed          NullableDestinationCheckCode = "tls_failed"
	NullableDestinationCheckCodeTokenInvalid       NullableDestinationCheckCode = "token_invalid"
)

Defines values for NullableDestinationCheckCode.

func (NullableDestinationCheckCode) Valid

Valid indicates whether the value is a known member of the NullableDestinationCheckCode enum.

type NullableHttpHeaders

type NullableHttpHeaders map[string][]string

NullableHttpHeaders HTTP headers by name, each with its values, masked, or null. Untrusted text.

type NullableLanguage

type NullableLanguage string

NullableLanguage UI or template language; null follows the default.

const (
	NullableLanguageEn          NullableLanguage = "en"
	NullableLanguageLessThannil NullableLanguage = "<nil>"
	NullableLanguageRu          NullableLanguage = "ru"
)

Defines values for NullableLanguage.

func (NullableLanguage) Valid

func (e NullableLanguage) Valid() bool

Valid indicates whether the value is a known member of the NullableLanguage enum.

type NullableOutgoingHeartbeatErrorClass

type NullableOutgoingHeartbeatErrorClass string

NullableOutgoingHeartbeatErrorClass Why the last outgoing heartbeat failed; null when it succeeded or was not sent. The URL answered `last_status` and the answer was classified `transient` (a server error, the next interval is the retry), `retry_after` (the URL asked to wait), `fatal` (a client error, such as a wrong URL), `redirect` (Muster follows no redirects) or `unknown`; or there was no answer: `blocked` (the outbound address policy refused the address), `dns`, `connect`, `tls`, `timeout`, `proxy_auth` (the proxy refused its credentials); or Muster could not prepare the request (`internal`, such as a URL it cannot decrypt).

const (
	NullableOutgoingHeartbeatErrorClassBlocked     NullableOutgoingHeartbeatErrorClass = "blocked"
	NullableOutgoingHeartbeatErrorClassConnect     NullableOutgoingHeartbeatErrorClass = "connect"
	NullableOutgoingHeartbeatErrorClassDns         NullableOutgoingHeartbeatErrorClass = "dns"
	NullableOutgoingHeartbeatErrorClassFatal       NullableOutgoingHeartbeatErrorClass = "fatal"
	NullableOutgoingHeartbeatErrorClassInternal    NullableOutgoingHeartbeatErrorClass = "internal"
	NullableOutgoingHeartbeatErrorClassLessThannil NullableOutgoingHeartbeatErrorClass = "<nil>"
	NullableOutgoingHeartbeatErrorClassProxyAuth   NullableOutgoingHeartbeatErrorClass = "proxy_auth"
	NullableOutgoingHeartbeatErrorClassRedirect    NullableOutgoingHeartbeatErrorClass = "redirect"
	NullableOutgoingHeartbeatErrorClassRetryAfter  NullableOutgoingHeartbeatErrorClass = "retry_after"
	NullableOutgoingHeartbeatErrorClassTimeout     NullableOutgoingHeartbeatErrorClass = "timeout"
	NullableOutgoingHeartbeatErrorClassTls         NullableOutgoingHeartbeatErrorClass = "tls"
	NullableOutgoingHeartbeatErrorClassTransient   NullableOutgoingHeartbeatErrorClass = "transient"
	NullableOutgoingHeartbeatErrorClassUnknown     NullableOutgoingHeartbeatErrorClass = "unknown"
)

Defines values for NullableOutgoingHeartbeatErrorClass.

func (NullableOutgoingHeartbeatErrorClass) Valid

Valid indicates whether the value is a known member of the NullableOutgoingHeartbeatErrorClass enum.

type NullablePageImportance

type NullablePageImportance string

NullablePageImportance How a step Paged its people, which ran their Notification rule of that name (C-31.FR-3); null for a Page of a Team or of everyone in the chat, and for the events of the kind that are no Page by Mention.

const (
	NullablePageImportanceImportant   NullablePageImportance = "important"
	NullablePageImportanceLessThannil NullablePageImportance = "<nil>"
	NullablePageImportanceNormal      NullablePageImportance = "normal"
)

Defines values for NullablePageImportance.

func (NullablePageImportance) Valid

func (e NullablePageImportance) Valid() bool

Valid indicates whether the value is a known member of the NullablePageImportance enum.

type NullablePublicId

type NullablePublicId = string

NullablePublicId A `public_id` in the format of `PublicId`, or null.

type NullableRequestErrorClass

type NullableRequestErrorClass string

NullableRequestErrorClass How the attempt failed, as the outbound package classified it: the answer asked to wait (`retry_after`), was a server error, or the attempt got no answer, such as a refused connection or a timeout (`transient`); the answer was a client error (`fatal`), an answer it could not judge, such as one larger than its limit (`unknown`), or a redirect, which Muster never follows (`redirect`); or the outbound address policy refused the address (`blocked`). Null for an attempt that succeeded.

const (
	NullableRequestErrorClassBlocked     NullableRequestErrorClass = "blocked"
	NullableRequestErrorClassFatal       NullableRequestErrorClass = "fatal"
	NullableRequestErrorClassLessThannil NullableRequestErrorClass = "<nil>"
	NullableRequestErrorClassRedirect    NullableRequestErrorClass = "redirect"
	NullableRequestErrorClassRetryAfter  NullableRequestErrorClass = "retry_after"
	NullableRequestErrorClassTransient   NullableRequestErrorClass = "transient"
	NullableRequestErrorClassUnknown     NullableRequestErrorClass = "unknown"
)

Defines values for NullableRequestErrorClass.

func (NullableRequestErrorClass) Valid

func (e NullableRequestErrorClass) Valid() bool

Valid indicates whether the value is a known member of the NullableRequestErrorClass enum.

type NullableRequestErrorCode

type NullableRequestErrorCode string

NullableRequestErrorCode What failed when the attempt got no answer, as the checks name it (`NullableConnectionCheckCode`) — `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` or `request_failed`. Null for an attempt that got an answer.

const (
	NullableRequestErrorCodeBlocked       NullableRequestErrorCode = "blocked"
	NullableRequestErrorCodeConnectFailed NullableRequestErrorCode = "connect_failed"
	NullableRequestErrorCodeDnsFailed     NullableRequestErrorCode = "dns_failed"
	NullableRequestErrorCodeLessThannil   NullableRequestErrorCode = "<nil>"
	NullableRequestErrorCodeProxyRefused  NullableRequestErrorCode = "proxy_refused"
	NullableRequestErrorCodeRequestFailed NullableRequestErrorCode = "request_failed"
	NullableRequestErrorCodeTimeout       NullableRequestErrorCode = "timeout"
	NullableRequestErrorCodeTlsFailed     NullableRequestErrorCode = "tls_failed"
)

Defines values for NullableRequestErrorCode.

func (NullableRequestErrorCode) Valid

func (e NullableRequestErrorCode) Valid() bool

Valid indicates whether the value is a known member of the NullableRequestErrorCode enum.

type NullableResolveReason

type NullableResolveReason string

NullableResolveReason Why an Alert resolved; null while it fires.

const (
	NullableResolveReasonGone               NullableResolveReason = "gone"
	NullableResolveReasonIntegrationDeleted NullableResolveReason = "integration_deleted"
	NullableResolveReasonLessThannil        NullableResolveReason = "<nil>"
	NullableResolveReasonResolved           NullableResolveReason = "resolved"
	NullableResolveReasonStale              NullableResolveReason = "stale"
)

Defines values for NullableResolveReason.

func (NullableResolveReason) Valid

func (e NullableResolveReason) Valid() bool

Valid indicates whether the value is a known member of the NullableResolveReason enum.

type NullableStatusChangeReason

type NullableStatusChangeReason string

NullableStatusChangeReason The stable code of the reason of an automatic status change: why the Alert that resolved the Alert Group resolved (`resolved`, `gone`, `stale`, `integration_deleted`), why the Owner was released (`owner_disabled`, `owner_deleted`), `reminders_unanswered` when nobody answered the last two Reminders and the Alert Group was unacknowledged automatically, or `minimum_severity` when the Severity level was raised by the Minimum severity of the Route. Null when the entry has no reason or its reason has no code.

const (
	NullableStatusChangeReasonGone                NullableStatusChangeReason = "gone"
	NullableStatusChangeReasonIntegrationDeleted  NullableStatusChangeReason = "integration_deleted"
	NullableStatusChangeReasonLessThannil         NullableStatusChangeReason = "<nil>"
	NullableStatusChangeReasonMinimumSeverity     NullableStatusChangeReason = "minimum_severity"
	NullableStatusChangeReasonOwnerDeleted        NullableStatusChangeReason = "owner_deleted"
	NullableStatusChangeReasonOwnerDisabled       NullableStatusChangeReason = "owner_disabled"
	NullableStatusChangeReasonRemindersUnanswered NullableStatusChangeReason = "reminders_unanswered"
	NullableStatusChangeReasonResolved            NullableStatusChangeReason = "resolved"
	NullableStatusChangeReasonStale               NullableStatusChangeReason = "stale"
)

Defines values for NullableStatusChangeReason.

func (NullableStatusChangeReason) Valid

func (e NullableStatusChangeReason) Valid() bool

Valid indicates whether the value is a known member of the NullableStatusChangeReason enum.

type NullableTestStepErrorCode

type NullableTestStepErrorCode string

NullableTestStepErrorCode What failed in a step where `error_class` does not tell it, for the `press` step of a Mattermost Destination: `press_not_reached` — the bot pressed the button, but the press did not reach Muster's callback; `error` names the host of `MUSTER_INGEST_URL` to add to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server; `bot_unknown` — no Connection check has learned the bot yet, so it did not press; run the Connection check, then test again. Null otherwise.

const (
	NullableTestStepErrorCodeBotUnknown      NullableTestStepErrorCode = "bot_unknown"
	NullableTestStepErrorCodeLessThannil     NullableTestStepErrorCode = "<nil>"
	NullableTestStepErrorCodePressNotReached NullableTestStepErrorCode = "press_not_reached"
)

Defines values for NullableTestStepErrorCode.

func (NullableTestStepErrorCode) Valid

func (e NullableTestStepErrorCode) Valid() bool

Valid indicates whether the value is a known member of the NullableTestStepErrorCode enum.

type OidcCheckResult

type OidcCheckResult struct {
	AuthorizationEndpoint nullable.Nullable[string] `json:"authorization_endpoint,omitempty"`

	// Error What failed; names the blocking rule when the outbound address policy refused the target. Secrets and tokens are masked.
	Error     nullable.Nullable[string] `json:"error,omitempty"`
	Issuer    nullable.Nullable[string] `json:"issuer,omitempty"`
	JwksUri   nullable.Nullable[string] `json:"jwks_uri,omitempty"`
	LatencyMs *int                      `json:"latency_ms,omitempty"`

	// OfflineAccessOffered Present when discovery was read. True when discovery lists `offline_access` in `scopes_supported` or publishes no `scopes_supported`; Muster then requests it, and users who are granted an offline token are re-checked in the background. False when the list lacks it (as GitLab's does) — Muster does not add it, and unless the provider grants an offline token OIDC sessions end `auth.oidc_fallback_session_lifetime` after sign-in, there is no background re-check, and Personal access tokens follow `auth.oidc_token_grace`. `offline_access` is also requested, whatever this value, when the Admin adds it to the configured scopes; `requested_scopes` then lists it. Neither value is a warning.
	OfflineAccessOffered *bool `json:"offline_access_offered,omitempty"`
	Ok                   bool  `json:"ok"`

	// RequestedScopes Present when discovery was read. The scopes a sign-in and a link request from this identity provider, in order — `openid`, `offline_access` when `offline_access_offered`, then the configured scopes.
	RequestedScopes *[]string                 `json:"requested_scopes,omitempty"`
	TokenEndpoint   nullable.Nullable[string] `json:"token_endpoint,omitempty"`

	// Via How the request travelled.
	Via      ConnectionPath `json:"via"`
	Warnings *[]OidcWarning `json:"warnings,omitempty"`
}

OidcCheckResult defines model for OidcCheckResult.

type OidcGroupMapping

type OidcGroupMapping struct {
	// Claim The claim the entry reads, by its exact name, from the ID token and then from userinfo; omitted or empty reads `groups_claim`. GitLab's role claims are `https://gitlab.org/claims/groups/owner`, `…/maintainer` and `…/developer`, and GitLab puts them in userinfo.
	Claim *string `json:"claim,omitempty"`

	// Group A value of the claim, matched exactly, or a subtree `a/b/*`, which matches `a/b` and every group below it at `/` boundaries — `a/b/c`, never `a/bx`. There are no other wildcards. An empty group, or `*` anywhere but a trailing `/*`, is refused with `422` `invalid_format` at the entry's `group`.
	Group string   `json:"group"`
	Role  RoleName `json:"role"`
}

OidcGroupMapping An entry of the Role mapping. When the entries map a person to several Roles, the highest wins.

type OidcLinkStart

type OidcLinkStart struct {
	// AuthorizationUrl The identity provider's authorization endpoint with the link request; open it in the browser.
	AuthorizationUrl string `json:"authorization_url"`

	// ExpiresAt The link must be completed before this time.
	ExpiresAt time.Time `json:"expires_at"`
}

OidcLinkStart defines model for OidcLinkStart.

type OidcSettings

type OidcSettings struct {
	// ClaimsSupported The claims that discovery listed in `claims_supported` at the last connection check, for the editors to suggest; empty before a check, and after the issuer URL changed until the next one.
	ClaimsSupported *[]string `json:"claims_supported,omitempty"`
	ClientId        string    `json:"client_id"`

	// ClientSecretExpiresOn Optional expiry date of the client secret; the OIDC settings warn within `oidc.secret_expiry_lead`.
	ClientSecretExpiresOn nullable.Nullable[openapi_types.Date] `json:"client_secret_expires_on,omitempty"`

	// ClientSecretStatus What a read shows instead of a Secret. The value itself is never returned.
	ClientSecretStatus SecretStatus `json:"client_secret_status"`

	// DisplayName Provider name for the button "Sign in with {display_name}". Defaults to the host of the issuer URL; a read leaves it out while the default applies, and an empty value returns to the default.
	DisplayName *string `json:"display_name,omitempty"`
	Enabled     bool    `json:"enabled"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// GroupMappings The Role mapping, at most 500 entries, each with the claim it reads.
	GroupMappings []OidcGroupMapping `json:"group_mappings"`
	GroupsClaim   string             `json:"groups_claim"`
	IssuerUrl     string             `json:"issuer_url"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The OIDC settings exist once and read null until a write sets it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Proxy Per-client proxy as read. The password is a Secret.
	Proxy ProxyConfig `json:"proxy"`

	// Scopes Scopes requested at sign-in and linking. Muster always adds `openid`, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when Muster requests it, allow `offline_access` for the Muster client at the IdP. Without an offline token users are not re-checked in the background, OIDC sessions end after `auth.oidc_fallback_session_lifetime`, and Personal access tokens follow `auth.oidc_token_grace`. The connection check shows the scopes a sign-in requests.
	Scopes             *[]string `json:"scopes,omitempty"`
	SkipTotpWithIdpMfa bool      `json:"skip_totp_with_idp_mfa"`

	// SyncRole On: the identity provider decides the Role at every sign-in. Off: the mapping applies only when the user is created.
	SyncRole bool `json:"sync_role"`

	// UnmatchedRole Role for users without a matching group; `none` refuses the sign-in.
	UnmatchedRole OidcUnmatchedRole            `json:"unmatched_role"`
	UpdatedAt     nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
	Warnings      []OidcWarning                `json:"warnings"`
}

OidcSettings defines model for OidcSettings.

type OidcSettingsBase

type OidcSettingsBase struct {
	ClientId string `json:"client_id"`

	// ClientSecretExpiresOn Optional expiry date of the client secret; the OIDC settings warn within `oidc.secret_expiry_lead`.
	ClientSecretExpiresOn nullable.Nullable[openapi_types.Date] `json:"client_secret_expires_on,omitempty"`

	// DisplayName Provider name for the button "Sign in with {display_name}". Defaults to the host of the issuer URL; a read leaves it out while the default applies, and an empty value returns to the default.
	DisplayName *string `json:"display_name,omitempty"`
	Enabled     bool    `json:"enabled"`

	// GroupMappings The Role mapping, at most 500 entries, each with the claim it reads.
	GroupMappings []OidcGroupMapping `json:"group_mappings"`
	GroupsClaim   string             `json:"groups_claim"`
	IssuerUrl     string             `json:"issuer_url"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The OIDC settings exist once and read null until a write sets it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Scopes Scopes requested at sign-in and linking. Muster always adds `openid`, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when Muster requests it, allow `offline_access` for the Muster client at the IdP. Without an offline token users are not re-checked in the background, OIDC sessions end after `auth.oidc_fallback_session_lifetime`, and Personal access tokens follow `auth.oidc_token_grace`. The connection check shows the scopes a sign-in requests.
	Scopes             *[]string `json:"scopes,omitempty"`
	SkipTotpWithIdpMfa bool      `json:"skip_totp_with_idp_mfa"`

	// SyncRole On: the identity provider decides the Role at every sign-in. Off: the mapping applies only when the user is created.
	SyncRole bool `json:"sync_role"`

	// UnmatchedRole Role for users without a matching group; `none` refuses the sign-in.
	UnmatchedRole OidcUnmatchedRole `json:"unmatched_role"`
}

OidcSettingsBase defines model for OidcSettingsBase.

type OidcSettingsInput

type OidcSettingsInput struct {
	ClientId string `json:"client_id"`

	// ClientSecret Write-only Secret. Omit to keep the stored one.
	ClientSecret *string `json:"client_secret,omitempty"`

	// ClientSecretExpiresOn Optional expiry date of the client secret; the OIDC settings warn within `oidc.secret_expiry_lead`.
	ClientSecretExpiresOn nullable.Nullable[openapi_types.Date] `json:"client_secret_expires_on,omitempty"`

	// DisplayName Provider name for the button "Sign in with {display_name}". Defaults to the host of the issuer URL; a read leaves it out while the default applies, and an empty value returns to the default.
	DisplayName *string `json:"display_name,omitempty"`
	Enabled     bool    `json:"enabled"`

	// GroupMappings The Role mapping, at most 500 entries, each with the claim it reads.
	GroupMappings []OidcGroupMapping `json:"group_mappings"`
	GroupsClaim   string             `json:"groups_claim"`
	IssuerUrl     string             `json:"issuer_url"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The OIDC settings exist once and read null until a write sets it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy ProxyConfigInput `json:"proxy"`

	// Scopes Scopes requested at sign-in and linking. Muster always adds `openid`, and `offline_access` when the IdP's discovery lists it in `scopes_supported` or publishes no `scopes_supported`; when Muster requests it, allow `offline_access` for the Muster client at the IdP. Without an offline token users are not re-checked in the background, OIDC sessions end after `auth.oidc_fallback_session_lifetime`, and Personal access tokens follow `auth.oidc_token_grace`. The connection check shows the scopes a sign-in requests.
	Scopes             *[]string `json:"scopes,omitempty"`
	SkipTotpWithIdpMfa bool      `json:"skip_totp_with_idp_mfa"`

	// SyncRole On: the identity provider decides the Role at every sign-in. Off: the mapping applies only when the user is created.
	SyncRole bool `json:"sync_role"`

	// UnmatchedRole Role for users without a matching group; `none` refuses the sign-in.
	UnmatchedRole OidcUnmatchedRole `json:"unmatched_role"`
}

OidcSettingsInput defines model for OidcSettingsInput.

type OidcUnmatchedRole

type OidcUnmatchedRole string

OidcUnmatchedRole Role for users without a matching group; `none` refuses the sign-in.

const (
	OidcUnmatchedRoleNone      OidcUnmatchedRole = "none"
	OidcUnmatchedRoleResponder OidcUnmatchedRole = "responder"
	OidcUnmatchedRoleViewer    OidcUnmatchedRole = "viewer"
)

Defines values for OidcUnmatchedRole.

func (OidcUnmatchedRole) Valid

func (e OidcUnmatchedRole) Valid() bool

Valid indicates whether the value is a known member of the OidcUnmatchedRole enum.

type OidcWarning

type OidcWarning struct {
	// Claim For `groups_claim_missing`, the claim no sign-in has carried yet.
	Claim     *string                               `json:"claim,omitempty"`
	ExpiresOn nullable.Nullable[openapi_types.Date] `json:"expires_on,omitempty"`

	// Kind `nobody_can_sign_in`: the mapping is empty and unmatched users get no Role. `groups_claim_missing`, one per claim, named by `claim` — the groups claim and every claim an entry of the mapping names: no sign-in has carried the claim yet, so the entries that read it have not matched anyone yet: no sign-in has seen it in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, and the latest check found discovery not advertising it. `secret_expiring`: see `expires_on`. `last_admin_kept`: Role sync left `user` as Admin because they are the last active Admin, although the identity provider maps them to `role`.
	Kind OidcWarningKind `json:"kind"`

	// Role For `last_admin_kept`, the Role the identity provider maps the user to.
	Role *RoleName `json:"role,omitempty"`

	// User For `last_admin_kept`, the Admin whose Role sync was not applied.
	User *UserRef `json:"user,omitempty"`
}

OidcWarning defines model for OidcWarning.

type OidcWarningKind

type OidcWarningKind string

OidcWarningKind `nobody_can_sign_in`: the mapping is empty and unmatched users get no Role. `groups_claim_missing`, one per claim, named by `claim` — the groups claim and every claim an entry of the mapping names: no sign-in has carried the claim yet, so the entries that read it have not matched anyone yet: no sign-in has seen it in an ID token or userinfo since the groups claim, the issuer, the client ID or the scopes last changed, and the latest check found discovery not advertising it. `secret_expiring`: see `expires_on`. `last_admin_kept`: Role sync left `user` as Admin because they are the last active Admin, although the identity provider maps them to `role`.

const (
	GroupsClaimMissing OidcWarningKind = "groups_claim_missing"
	LastAdminKept      OidcWarningKind = "last_admin_kept"
	NobodyCanSignIn    OidcWarningKind = "nobody_can_sign_in"
	SecretExpiring     OidcWarningKind = "secret_expiring"
)

Defines values for OidcWarningKind.

func (OidcWarningKind) Valid

func (e OidcWarningKind) Valid() bool

Valid indicates whether the value is a known member of the OidcWarningKind enum.

type OnCallNext

type OnCallNext struct {
	End   time.Time `json:"end"`
	Start time.Time `json:"start"`

	// User The person On-call then; null for a gap.
	User nullable.Nullable[UserRef] `json:"user"`
}

OnCallNext The segment of a Schedule's Result after the current one, cut to `schedule.gap_view`.

type OnCallNow

type OnCallNow struct {
	Items []TeamOnCall `json:"items"`
}

OnCallNow "On call now": the On-call of each Team, by the Team's name.

type OnCallReach

type OnCallReach struct {
	Destination DestinationRef `json:"destination"`

	// GatewayReaches True when the current On-call has a confirmed contact at a Notification gateway, so that a call through it reaches them; whether that gateway is Broken is not considered (C-27.FR-8).
	GatewayReaches *bool `json:"gateway_reaches,omitempty"`

	// Messenger The messenger of the Destination — the type of its Connection, or `webhook`.
	Messenger DestinationType `json:"messenger"`

	// Reason Why a Mention of an On-call cannot reach a Destination of their Team, or of an Escalation chain that Pages their Schedule (C-27.FR-8): `no_account_link` — the person has no Account link in the Identity space of the Connection of a Mattermost, Slack, Telegram or Bridge Destination; `bridge_no_native_mentions` — the bridge of a Bridge Destination does not declare `native_mentions` in the `info` its Connection check last read; `webhook_no_thread_reply` — an outgoing webhook in template mode has no "reply in thread" request; `not_in_discussion_group` — the last Destination check of a Telegram Destination saw the person outside the discussion group of its channel.
	Reason ReachReason `json:"reason"`
}

OnCallReach A Destination of the Team, or of an Escalation chain that Pages its main Schedule, that a Mention of its On-call cannot reach, with why (C-27.FR-8).

type OnCallSegment

type OnCallSegment struct {
	End time.Time `json:"end"`

	// Source Null in a gap.
	Source nullable.Nullable[OnCallSource] `json:"source"`
	Start  time.Time                       `json:"start"`

	// User Null in a gap.
	User nullable.Nullable[UserRef] `json:"user"`
}

OnCallSegment A segment of the Result, with the person On-call in it, or nobody in a gap.

type OnCallSource

type OnCallSource struct {
	Kind OnCallSourceKind `json:"kind"`

	// OverrideId Set with `override`.
	OverrideId *PublicId `json:"override_id,omitempty"`

	// RotationLayer Set with `rotation_layer`.
	RotationLayer *EntityRef `json:"rotation_layer,omitempty"`
}

OnCallSource What decides a segment of the Result.

type OnCallSourceKind

type OnCallSourceKind string

OnCallSourceKind defines model for OnCallSource.Kind.

const (
	OnCallSourceKindOverride      OnCallSourceKind = "override"
	OnCallSourceKindRotationLayer OnCallSourceKind = "rotation_layer"
)

Defines values for OnCallSourceKind.

func (OnCallSourceKind) Valid

func (e OnCallSourceKind) Valid() bool

Valid indicates whether the value is a known member of the OnCallSourceKind enum.

type Organization

type Organization struct {
	// Buttons The Organization's button set (C-28.FR-8, FR-10); omit it on an update to keep it.
	Buttons OrganizationButtonSet `json:"buttons"`

	// CriticalIsUrgent Always true from 0.2.0: critical is Urgent. Ignored in requests; removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	CriticalIsUrgent bool `json:"critical_is_urgent"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id             PublicId `json:"id"`
	InstanceLabels []string `json:"instance_labels"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The Organization's settings are one object with one mark, null until a write sets it, whichever page of the web UI edits them.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// NotificationRules The Organization's default Notification rules (`organization.notification_rules`, C-31.FR-2; default: normal a Mention; important a Mention, a wait of 300 seconds and a Mention), which every User in the state `organization` follows at once; Users in `call`, `no_call` or `custom` keep their rules. Omit it on an update to keep it. Validated as `NotificationRuleSet` says, at `/notification_rules/...`; a call needs only an existing Notification gateway, never a contact. A change is recorded in the diff of `organization.updated` at `/notification_rules/normal` and `/notification_rules/important`. In 0.2.0 they change only through the API.
	NotificationRules NotificationRuleSet `json:"notification_rules"`

	// OidcTokenGraceSeconds `auth.oidc_token_grace` (default 7 days), only for accounts that sign in through OIDC and for which the IdP granted no offline token: their Personal access tokens work while the owner's last OIDC sign-in is no older than this, and otherwise get `401` with `oidc_recheck_required` until the owner signs in through OIDC again. Accounts with an offline token are re-checked in the background instead and have no such limit. Service account tokens are not affected. Edited on Organization → Security.
	OidcTokenGraceSeconds int `json:"oidc_token_grace_seconds"`
	OutgoingHeartbeat     struct {
		// Proxy Per-client proxy as read. The password is a Secret.
		Proxy ProxyConfig `json:"proxy"`

		// UrlStatus What a read shows instead of a Secret. The value itself is never returned.
		UrlStatus SecretStatus `json:"url_status"`
	} `json:"outgoing_heartbeat"`

	// Retention Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.
	Retention RetentionSettings `json:"retention"`

	// SeverityLabel Label that carries severity.
	SeverityLabel string `json:"severity_label"`

	// SeverityMapping Values of the severity label mapped to Severity levels. Unmapped values count as warning.
	SeverityMapping []SeverityMappingEntry `json:"severity_mapping"`
	SeverityStyles  []SeverityLevelStyle   `json:"severity_styles"`

	// TeamLabel The Team label (`organization.team_label`, default `team`), whose value names a Team by its slug (C-25.FR-5). Omit it on an update to keep it. A label that an Internal alert sets itself — `alertname`, `severity` and the entity and name labels of the Internal alerts, such as `schedule` or `team_id` — is refused with `422` `reserved_label` at `/team_label`. A change applies to the Alerts that start firing afterwards, evaluates the Teams of the open Alert Groups again (C-25.FR-13) and re-renders their open Root messages Quietly, as edits, since their key labels show it (C-29.FR-2). A value that is not a label name is refused with `422` `invalid_format`.
	TeamLabel string `json:"team_label"`

	// TimeZone IANA time zone used for times in messages. A change re-renders the open Root messages Quietly, as edits (C-29.FR-1).
	TimeZone string `json:"time_zone"`

	// TotpRequired Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.
	TotpRequired TotpPolicy `json:"totp_required"`

	// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
	WeekStart Weekday `json:"week_start"`

	// WorkdayEnd The end of the working day (`organization.working_hours`, default `18:00`), later than `workday_start` on the same day, else `422` `out_of_range` at the field the update changes, `/workday_end` or `/workday_start`. Omit it on an update to keep it.
	WorkdayEnd string `json:"workday_end"`

	// WorkdayStart The start of the working day, `organization.workday_start` (default `09:00`), a time of day `HH:MM` on the 24-hour clock, at which the Snooze presets end in their time zone. Omit it on an update to keep it. A change applies to Snoozes set afterwards and never moves one already set; it re-renders the open Root messages Quietly, as edits, whose Snooze presets show it (C-10.FR-18).
	WorkdayStart string `json:"workday_start"`

	// WorkingDays The days of the Organization's Working hours (`organization.working_hours`, default Monday to Friday). Omit it on an update to keep it.
	WorkingDays []Weekday `json:"working_days"`

	// WorkingHours The Organization's Working hours, derived (C-25.FR-9) — `working_days`, from `workday_start` to `workday_end`, in `time_zone` — which every Team without its own follows.
	WorkingHours *WorkingHours `json:"working_hours,omitempty"`
}

Organization defines model for Organization.

type OrganizationBase

type OrganizationBase struct {
	// Buttons The Organization's button set (C-28.FR-8, FR-10); omit it on an update to keep it.
	Buttons *OrganizationButtonSet `json:"buttons,omitempty"`

	// CriticalIsUrgent Always true from 0.2.0: critical is Urgent. Ignored in requests; removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	CriticalIsUrgent *bool    `json:"critical_is_urgent,omitempty"`
	InstanceLabels   []string `json:"instance_labels"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The Organization's settings are one object with one mark, null until a write sets it, whichever page of the web UI edits them.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// NotificationRules The Organization's default Notification rules (`organization.notification_rules`, C-31.FR-2; default: normal a Mention; important a Mention, a wait of 300 seconds and a Mention), which every User in the state `organization` follows at once; Users in `call`, `no_call` or `custom` keep their rules. Omit it on an update to keep it. Validated as `NotificationRuleSet` says, at `/notification_rules/...`; a call needs only an existing Notification gateway, never a contact. A change is recorded in the diff of `organization.updated` at `/notification_rules/normal` and `/notification_rules/important`. In 0.2.0 they change only through the API.
	NotificationRules *NotificationRuleSet `json:"notification_rules,omitempty"`

	// OidcTokenGraceSeconds `auth.oidc_token_grace` (default 7 days), only for accounts that sign in through OIDC and for which the IdP granted no offline token: their Personal access tokens work while the owner's last OIDC sign-in is no older than this, and otherwise get `401` with `oidc_recheck_required` until the owner signs in through OIDC again. Accounts with an offline token are re-checked in the background instead and have no such limit. Service account tokens are not affected. Edited on Organization → Security.
	OidcTokenGraceSeconds int `json:"oidc_token_grace_seconds"`

	// Retention Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.
	Retention RetentionSettings `json:"retention"`

	// SeverityLabel Label that carries severity.
	SeverityLabel string `json:"severity_label"`

	// SeverityMapping Values of the severity label mapped to Severity levels. Unmapped values count as warning.
	SeverityMapping []SeverityMappingEntry `json:"severity_mapping"`
	SeverityStyles  []SeverityLevelStyle   `json:"severity_styles"`

	// TeamLabel The Team label (`organization.team_label`, default `team`), whose value names a Team by its slug (C-25.FR-5). Omit it on an update to keep it. A label that an Internal alert sets itself — `alertname`, `severity` and the entity and name labels of the Internal alerts, such as `schedule` or `team_id` — is refused with `422` `reserved_label` at `/team_label`. A change applies to the Alerts that start firing afterwards, evaluates the Teams of the open Alert Groups again (C-25.FR-13) and re-renders their open Root messages Quietly, as edits, since their key labels show it (C-29.FR-2). A value that is not a label name is refused with `422` `invalid_format`.
	TeamLabel *string `json:"team_label,omitempty"`

	// TimeZone IANA time zone used for times in messages. A change re-renders the open Root messages Quietly, as edits (C-29.FR-1).
	TimeZone string `json:"time_zone"`

	// TotpRequired Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.
	TotpRequired TotpPolicy `json:"totp_required"`

	// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
	WeekStart *Weekday `json:"week_start,omitempty"`

	// WorkdayEnd The end of the working day (`organization.working_hours`, default `18:00`), later than `workday_start` on the same day, else `422` `out_of_range` at the field the update changes, `/workday_end` or `/workday_start`. Omit it on an update to keep it.
	WorkdayEnd *string `json:"workday_end,omitempty"`

	// WorkdayStart The start of the working day, `organization.workday_start` (default `09:00`), a time of day `HH:MM` on the 24-hour clock, at which the Snooze presets end in their time zone. Omit it on an update to keep it. A change applies to Snoozes set afterwards and never moves one already set; it re-renders the open Root messages Quietly, as edits, whose Snooze presets show it (C-10.FR-18).
	WorkdayStart *string `json:"workday_start,omitempty"`

	// WorkingDays The days of the Organization's Working hours (`organization.working_hours`, default Monday to Friday). Omit it on an update to keep it.
	WorkingDays *[]Weekday `json:"working_days,omitempty"`
}

OrganizationBase defines model for OrganizationBase.

type OrganizationButtonSet

type OrganizationButtonSet struct {
	All bool `json:"all"`

	// Items Required when `all` is false, ignored otherwise.
	Items *[]ButtonSetItem `json:"items,omitempty"`
}

OrganizationButtonSet The Organization's button set, `organization.buttons` (C-28.FR-8): the buttons the Root messages of the Destinations that follow it show, in the order of the buttons by status. `all: true`, the default, is every button, durations a Route gains later included; `all: false` shows only `items`, which are then required. Unsnooze on a snoozed Root message and the buttons of Reminders always show; the UI, the API and the Text commands of Bridges keep every action. A change re-renders the open Root messages of the Destinations that follow the Organization, as edits.

type OrganizationInput

type OrganizationInput struct {
	// Buttons The Organization's button set (C-28.FR-8, FR-10); omit it on an update to keep it.
	Buttons *OrganizationButtonSet `json:"buttons,omitempty"`

	// CriticalIsUrgent Always true from 0.2.0: critical is Urgent. Ignored in requests; removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	CriticalIsUrgent *bool    `json:"critical_is_urgent,omitempty"`
	InstanceLabels   []string `json:"instance_labels"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The Organization's settings are one object with one mark, null until a write sets it, whichever page of the web UI edits them.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// NotificationRules The Organization's default Notification rules (`organization.notification_rules`, C-31.FR-2; default: normal a Mention; important a Mention, a wait of 300 seconds and a Mention), which every User in the state `organization` follows at once; Users in `call`, `no_call` or `custom` keep their rules. Omit it on an update to keep it. Validated as `NotificationRuleSet` says, at `/notification_rules/...`; a call needs only an existing Notification gateway, never a contact. A change is recorded in the diff of `organization.updated` at `/notification_rules/normal` and `/notification_rules/important`. In 0.2.0 they change only through the API.
	NotificationRules *NotificationRuleSet `json:"notification_rules,omitempty"`

	// OidcTokenGraceSeconds `auth.oidc_token_grace` (default 7 days), only for accounts that sign in through OIDC and for which the IdP granted no offline token: their Personal access tokens work while the owner's last OIDC sign-in is no older than this, and otherwise get `401` with `oidc_recheck_required` until the owner signs in through OIDC again. Accounts with an offline token are re-checked in the background instead and have no such limit. Service account tokens are not affected. Edited on Organization → Security.
	OidcTokenGraceSeconds int `json:"oidc_token_grace_seconds"`
	OutgoingHeartbeat     struct {
		// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
		Proxy ProxyConfigInput `json:"proxy"`

		// Url Write-only Secret; such URLs carry tokens. Omit to keep the stored one; `null` clears it.
		Url nullable.Nullable[string] `json:"url,omitempty"`
	} `json:"outgoing_heartbeat"`

	// Retention Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.
	Retention RetentionSettings `json:"retention"`

	// SeverityLabel Label that carries severity.
	SeverityLabel string `json:"severity_label"`

	// SeverityMapping Values of the severity label mapped to Severity levels. Unmapped values count as warning.
	SeverityMapping []SeverityMappingEntry `json:"severity_mapping"`
	SeverityStyles  []SeverityLevelStyle   `json:"severity_styles"`

	// TeamLabel The Team label (`organization.team_label`, default `team`), whose value names a Team by its slug (C-25.FR-5). Omit it on an update to keep it. A label that an Internal alert sets itself — `alertname`, `severity` and the entity and name labels of the Internal alerts, such as `schedule` or `team_id` — is refused with `422` `reserved_label` at `/team_label`. A change applies to the Alerts that start firing afterwards, evaluates the Teams of the open Alert Groups again (C-25.FR-13) and re-renders their open Root messages Quietly, as edits, since their key labels show it (C-29.FR-2). A value that is not a label name is refused with `422` `invalid_format`.
	TeamLabel *string `json:"team_label,omitempty"`

	// TimeZone IANA time zone used for times in messages. A change re-renders the open Root messages Quietly, as edits (C-29.FR-1).
	TimeZone string `json:"time_zone"`

	// TotpRequired Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.
	TotpRequired TotpPolicy `json:"totp_required"`

	// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
	WeekStart *Weekday `json:"week_start,omitempty"`

	// WorkdayEnd The end of the working day (`organization.working_hours`, default `18:00`), later than `workday_start` on the same day, else `422` `out_of_range` at the field the update changes, `/workday_end` or `/workday_start`. Omit it on an update to keep it.
	WorkdayEnd *string `json:"workday_end,omitempty"`

	// WorkdayStart The start of the working day, `organization.workday_start` (default `09:00`), a time of day `HH:MM` on the 24-hour clock, at which the Snooze presets end in their time zone. Omit it on an update to keep it. A change applies to Snoozes set afterwards and never moves one already set; it re-renders the open Root messages Quietly, as edits, whose Snooze presets show it (C-10.FR-18).
	WorkdayStart *string `json:"workday_start,omitempty"`

	// WorkingDays The days of the Organization's Working hours (`organization.working_hours`, default Monday to Friday). Omit it on an update to keep it.
	WorkingDays *[]Weekday `json:"working_days,omitempty"`
}

OrganizationInput defines model for OrganizationInput.

type OutboundPolicy

type OutboundPolicy struct {
	// Allowed Allowed networks (CIDR), host names and domains.
	Allowed []string `json:"allowed"`

	// AlwaysBlocked Rules that always apply (link-local, cloud metadata, unspecified and multicast addresses); no allowed entry opens them.
	AlwaysBlocked *[]string `json:"always_blocked,omitempty"`

	// Denied Denied networks, host names and domains. A denied entry always wins.
	Denied []string `json:"denied"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The policy exists once and reads null until a write sets it; a write that changes only the mark leaves the policy that every replica applies as it is.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Policy    OutboundPolicyPolicy      `json:"policy"`
}

OutboundPolicy defines model for OutboundPolicy.

type OutboundPolicyPolicy

type OutboundPolicyPolicy string

OutboundPolicyPolicy defines model for OutboundPolicy.Policy.

const (
	Standard OutboundPolicyPolicy = "standard"
	Strict   OutboundPolicyPolicy = "strict"
)

Defines values for OutboundPolicyPolicy.

func (OutboundPolicyPolicy) Valid

func (e OutboundPolicyPolicy) Valid() bool

Valid indicates whether the value is a known member of the OutboundPolicyPolicy enum.

type OutgoingHeartbeatResult

type OutgoingHeartbeatResult struct {
	// Configured False when no URL is set; the page suggests setting one.
	Configured    bool                         `json:"configured"`
	LastAttemptAt nullable.Nullable[time.Time] `json:"last_attempt_at,omitempty"`

	// LastError What failed, in English and without the URL; clients translate `last_error_class` and show this text as its detail.
	LastError nullable.Nullable[string] `json:"last_error,omitempty"`

	// LastErrorClass Why the last outgoing heartbeat failed; null when it succeeded or was not sent. The URL answered `last_status` and the answer was classified `transient` (a server error, the next interval is the retry), `retry_after` (the URL asked to wait), `fatal` (a client error, such as a wrong URL), `redirect` (Muster follows no redirects) or `unknown`; or there was no answer: `blocked` (the outbound address policy refused the address), `dns`, `connect`, `tls`, `timeout`, `proxy_auth` (the proxy refused its credentials); or Muster could not prepare the request (`internal`, such as a URL it cannot decrypt).
	LastErrorClass nullable.Nullable[NullableOutgoingHeartbeatErrorClass] `json:"last_error_class,omitempty"`
	LastOk         nullable.Nullable[bool]                                `json:"last_ok,omitempty"`

	// LastStatus The status code the URL answered the last failed heartbeat with; null without an answer.
	LastStatus nullable.Nullable[int] `json:"last_status,omitempty"`
}

OutgoingHeartbeatResult defines model for OutgoingHeartbeatResult.

type OutgoingWebhookEvent

type OutgoingWebhookEvent struct {
	Actor WebhookActor `json:"actor"`

	// AlertGroup The current state of the Alert Group when the event was recorded.
	AlertGroup WebhookAlertGroup `json:"alert_group"`

	// Alerts One element per Alert, by fingerprint.
	Alerts []WebhookAlert `json:"alerts"`

	// Destination The Destination the Alert Group joined, only on `destination_joined`; the outgoing webhook Destination the step sent to, only on `escalation_webhook`.
	Destination *WebhookDestinationRef `json:"destination,omitempty"`

	// EscalationStep The chain, the step and the reason, only on `escalation_step_skipped` and `escalation_webhook`, whose reason is null.
	EscalationStep *WebhookEscalationStep `json:"escalation_step,omitempty"`

	// Event One of the lifecycle event names (see `LifecycleEvent`) or `test`, which only a Destination test sends. New names are added within `version` 1; receivers ignore names they do not know.
	Event WebhookEventName `json:"event"`

	// Mentions The Mentions of a Loud event as data (C-15.FR-11), empty on a Quiet one. On `paged` they are the people of the Page as `user` targets, or for a step "Page the whole Team" its Team as a `team` target or everyone in the chat as an `everyone` target, never the Destination's Mention entries.
	Mentions []WebhookMentionTarget `json:"mentions"`

	// Notify True exactly when the event is Loud.
	Notify     bool      `json:"notify"`
	OccurredAt time.Time `json:"occurred_at"`

	// Page The Page, only on `paged` and `page_not_delivered`.
	Page *WebhookPage `json:"page,omitempty"`

	// Sequence The lifecycle event number of the Alert Group, kept across retries. It grows with every lifecycle event of the Alert Group but may have gaps, and for a Destination added to the Route later it does not start at 1; receivers rely only on "greater means newer". 0 on the `test` event.
	Sequence int `json:"sequence"`

	// Test True only on the `test` event, which carries an example or recent Alert Group and belongs to no Alert Group's order.
	Test    *bool                       `json:"test,omitempty"`
	Version OutgoingWebhookEventVersion `json:"version"`
}

OutgoingWebhookEvent Body of an events-mode request. The id of the event travels in the `webhook-id` header and is kept across retries. Events of one Alert Group are sent in order, at least once and never collapsed; a greater `sequence` means a newer event of the same Alert Group, and nothing more. New event names and new fields are added within `version` 1; removing a field or changing its meaning needs a new `version`. Receivers must ignore unknown `event` values and unknown fields.

type OutgoingWebhookEventVersion

type OutgoingWebhookEventVersion int

OutgoingWebhookEventVersion defines model for OutgoingWebhookEvent.Version.

const (
	OutgoingWebhookEventVersionN1 OutgoingWebhookEventVersion = 1
)

Defines values for OutgoingWebhookEventVersion.

func (OutgoingWebhookEventVersion) Valid

Valid indicates whether the value is a known member of the OutgoingWebhookEventVersion enum.

type OverrideId

type OverrideId = PublicId

OverrideId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type OwningTeamQuery

type OwningTeamQuery = string

OwningTeamQuery defines model for OwningTeamQuery.

type PageEveryone

type PageEveryone string

PageEveryone The word for everyone in the chat that a `page_team` step wrote instead of a Team mention; null otherwise.

const (
	PageEveryoneAll         PageEveryone = "all"
	PageEveryoneChannel     PageEveryone = "channel"
	PageEveryoneEveryone    PageEveryone = "everyone"
	PageEveryoneHere        PageEveryone = "here"
	PageEveryoneLessThannil PageEveryone = "<nil>"
)

Defines values for PageEveryone.

func (PageEveryone) Valid

func (e PageEveryone) Valid() bool

Valid indicates whether the value is a known member of the PageEveryone enum.

type PageImportance

type PageImportance string

PageImportance How a step Pages a person, which runs their Notification rule of that name (C-31.FR-3).

const (
	PageImportanceImportant PageImportance = "important"
	PageImportanceNormal    PageImportance = "normal"
)

Defines values for PageImportance.

func (PageImportance) Valid

func (e PageImportance) Valid() bool

Valid indicates whether the value is a known member of the PageImportance enum.

type PageNotDeliveredReason

type PageNotDeliveredReason string

PageNotDeliveredReason Why a Page reached its person nowhere (`page_not_delivered`): the Notification gateway refused the call (`call_refused`), answered what Muster cannot classify (`call_unknown`), or kept failing until the retry budget was used (`call_budget_used`); the person had no confirmed contact at the gateway at the first attempt (`no_confirmed_contact`); the gateway was deleted, or is no Notification gateway any more, before the call was sent (`gateway_deleted`); or the call came due while the gateway was Broken, and is never sent (`gateway_broken`). A Page by Mention (C-32.FR-10): none of its chain's Destinations has the Alert Group's Root message (`no_root_message`), the person has no Account link in the Identity space of any of them (`no_account_link`), or every Thread reply that would mention them ended Not delivered, was withheld while its Destination was Broken, or was never sent because its Root message ended Not delivered (`not_delivered`). Null for the other events of the kind. Later versions add reasons; clients show an unknown one as it is.

const (
	PageNotDeliveredReasonCallBudgetUsed     PageNotDeliveredReason = "call_budget_used"
	PageNotDeliveredReasonCallRefused        PageNotDeliveredReason = "call_refused"
	PageNotDeliveredReasonCallUnknown        PageNotDeliveredReason = "call_unknown"
	PageNotDeliveredReasonGatewayBroken      PageNotDeliveredReason = "gateway_broken"
	PageNotDeliveredReasonGatewayDeleted     PageNotDeliveredReason = "gateway_deleted"
	PageNotDeliveredReasonLessThannil        PageNotDeliveredReason = "<nil>"
	PageNotDeliveredReasonNoAccountLink      PageNotDeliveredReason = "no_account_link"
	PageNotDeliveredReasonNoConfirmedContact PageNotDeliveredReason = "no_confirmed_contact"
	PageNotDeliveredReasonNoRootMessage      PageNotDeliveredReason = "no_root_message"
	PageNotDeliveredReasonNotDelivered       PageNotDeliveredReason = "not_delivered"
)

Defines values for PageNotDeliveredReason.

func (PageNotDeliveredReason) Valid

func (e PageNotDeliveredReason) Valid() bool

Valid indicates whether the value is a known member of the PageNotDeliveredReason enum.

type PasswordChange

type PasswordChange struct {
	CurrentPassword *string `json:"current_password,omitempty"`

	// NewPassword At least `auth.password_min_length` characters; a shorter one gets `422` with `too_short`.
	NewPassword *string `json:"new_password,omitempty"`
}

PasswordChange defines model for PasswordChange.

type PasswordSetup

type PasswordSetup struct {
	// Password At least `auth.password_min_length` characters; a shorter one gets `422` with `too_short`.
	Password *string `json:"password,omitempty"`

	// Token The token from the setup link.
	Token *string `json:"token,omitempty"`
}

PasswordSetup defines model for PasswordSetup.

type PasswordSetupLink struct {
	ExpiresAt time.Time `json:"expires_at"`
	Url       string    `json:"url"`
}

PasswordSetupLink Single-use link the Admin hands over; Muster sends no email. The token is in the URL fragment (`<public url>/password-setup#token=<token>`), so it is not sent to any server until the page posts it.

type PayloadTooLarge

type PayloadTooLarge = Problem

PayloadTooLarge RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type Permission

type Permission string

Permission One thing a Role allows, named `<resource>:<verb>`. Every operation lists the Permission it needs in `x-permission`. A Personal access token can only narrow its owner's Permissions; a Service account has its Role's Permissions.

| Permission | Admin | Responder | Viewer | |---|---|---|---| | `alert-groups:read`, `alerts:read` | yes | yes | yes | | `integrations:read`, `routes:read`, `connections:read`, `destinations:read`, `link-rules:read`, `lookup-tables:read` (Secrets masked) | yes | yes | yes | | `teams:read` (Teams, the people in them and their Working hours) | yes | yes | yes | | `alert-groups:acknowledge` (also "Still on it"), `alert-groups:resolve`, `alert-groups:snooze`, `alert-groups:note` | yes | yes | no | | `integrations:write`, `routes:write`, `connections:write`, `destinations:write`, `destinations:test`, `link-rules:write`, `lookup-tables:write`, `templates:preview` | yes | no | no | | `teams:write` (Teams and the people in them) | yes | no | no | | `schedules:read` (Schedules, Rotation layers, Overrides and the On-call) | yes | yes | yes | | `schedules:write` (Schedules and Rotation layers, and a Team's main Schedule) | yes | no | no | | `schedule-overrides:write` (Overrides, when the caller is in the Team or is an Admin) | yes | yes | no | | `escalation-chains:read` (Escalation chains with their steps) | yes | yes | yes | | `escalation-chains:write` (Escalation chains with their steps; naming a chain on a Route needs `routes:write`, on a Team `teams:write`) | yes | no | no | | `stored-snapshots:read` | yes | no | no | | `users:read`, `users:write`, `oidc:read`, `oidc:write`, `service-accounts:read`, `service-accounts:write`, `organization:read`, `organization:write` | yes | no | no | | `audit-log:read`, `system-status:read` | yes | no | no |

`organization:read` covers the settings pages only Admins see (outbound address policy, Keyring status, severity values seen). The basic read of the `organization` resource needs no Permission. A Team grants no Permission and limits none: every check is a check of the Role.

The special values `authenticated` (any signed-in identity: own profile, TOTP, Account links, Personal access tokens, the basic `organization` read, system notices, live updates), `integration-token` (ingestion and Heartbeat only) and `none` (public, or authenticated by the request itself, such as a signed messenger callback) appear only in `x-permission`.

const (
	AlertGroupsAcknowledge Permission = "alert-groups:acknowledge"
	AlertGroupsNote        Permission = "alert-groups:note"
	AlertGroupsRead        Permission = "alert-groups:read"
	AlertGroupsResolve     Permission = "alert-groups:resolve"
	AlertGroupsSnooze      Permission = "alert-groups:snooze"
	AlertsRead             Permission = "alerts:read"
	AuditLogRead           Permission = "audit-log:read"
	ConnectionsRead        Permission = "connections:read"
	ConnectionsWrite       Permission = "connections:write"
	DestinationsRead       Permission = "destinations:read"
	DestinationsTest       Permission = "destinations:test"
	DestinationsWrite      Permission = "destinations:write"
	EscalationChainsRead   Permission = "escalation-chains:read"
	EscalationChainsWrite  Permission = "escalation-chains:write"
	IntegrationsRead       Permission = "integrations:read"
	IntegrationsWrite      Permission = "integrations:write"
	LinkRulesRead          Permission = "link-rules:read"
	LinkRulesWrite         Permission = "link-rules:write"
	LookupTablesRead       Permission = "lookup-tables:read"
	LookupTablesWrite      Permission = "lookup-tables:write"
	OidcRead               Permission = "oidc:read"
	OidcWrite              Permission = "oidc:write"
	OrganizationRead       Permission = "organization:read"
	OrganizationWrite      Permission = "organization:write"
	RoutesRead             Permission = "routes:read"
	RoutesWrite            Permission = "routes:write"
	ScheduleOverridesWrite Permission = "schedule-overrides:write"
	SchedulesRead          Permission = "schedules:read"
	SchedulesWrite         Permission = "schedules:write"
	ServiceAccountsRead    Permission = "service-accounts:read"
	ServiceAccountsWrite   Permission = "service-accounts:write"
	StoredSnapshotsRead    Permission = "stored-snapshots:read"
	SystemStatusRead       Permission = "system-status:read"
	TeamsRead              Permission = "teams:read"
	TeamsWrite             Permission = "teams:write"
	TemplatesPreview       Permission = "templates:preview"
	UsersRead              Permission = "users:read"
	UsersWrite             Permission = "users:write"
)

Defines values for Permission.

func (Permission) Valid

func (e Permission) Valid() bool

Valid indicates whether the value is a known member of the Permission enum.

type PersonalAccessToken

type PersonalAccessToken struct {
	CreatedAt time.Time `json:"created_at"`

	// ExpiresAt Null means the token never expires; the UI warns.
	ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id              PublicId                     `json:"id"`
	LastUsedAddress nullable.Nullable[string]    `json:"last_used_address,omitempty"`
	LastUsedAt      nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
	Name            string                       `json:"name"`
	Permissions     []Permission                 `json:"permissions"`
}

PersonalAccessToken defines model for PersonalAccessToken.

type PersonalAccessTokenCreate

type PersonalAccessTokenCreate struct {
	ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`
	Name      string                       `json:"name"`

	// Permissions Must be a subset of the Permissions the caller holds.
	Permissions []Permission `json:"permissions"`
}

PersonalAccessTokenCreate defines model for PersonalAccessTokenCreate.

type PersonalAccessTokenCreated

type PersonalAccessTokenCreated struct {
	Token PersonalAccessToken `json:"token"`

	// Value The token, starting with `mstr_pat_`. Shown once.
	Value string `json:"value"`
}

PersonalAccessTokenCreated defines model for PersonalAccessTokenCreated.

type PersonalAccessTokenList

type PersonalAccessTokenList struct {
	Items []PersonalAccessToken `json:"items"`
}

PersonalAccessTokenList defines model for PersonalAccessTokenList.

type PreconditionFailed

type PreconditionFailed = Problem

PreconditionFailed RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type PreconditionRequired

type PreconditionRequired = Problem

PreconditionRequired RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type PreviewDestinationJSONRequestBody

type PreviewDestinationJSONRequestBody = DestinationPreviewRequest

PreviewDestinationJSONRequestBody defines body for PreviewDestination for application/json ContentType.

type PreviewDestinationResponse

type PreviewDestinationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DestinationPreview
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON501 the response for an HTTP 501 `application/problem+json` response
	ApplicationproblemJSON501 *NotImplemented
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *PreviewDestinationResponse429Headers
}

func ParsePreviewDestinationResponse

func ParsePreviewDestinationResponse(rsp *http.Response) (*PreviewDestinationResponse, error)

ParsePreviewDestinationResponse parses an HTTP response from a PreviewDestinationWithResponse call

func (PreviewDestinationResponse) ContentType

func (r PreviewDestinationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PreviewDestinationResponse) GetApplicationproblemJSON400

func (r PreviewDestinationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (PreviewDestinationResponse) GetApplicationproblemJSON401

func (r PreviewDestinationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (PreviewDestinationResponse) GetApplicationproblemJSON403

func (r PreviewDestinationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (PreviewDestinationResponse) GetApplicationproblemJSON404

func (r PreviewDestinationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (PreviewDestinationResponse) GetApplicationproblemJSON422

func (r PreviewDestinationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (PreviewDestinationResponse) GetApplicationproblemJSON429

func (r PreviewDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (PreviewDestinationResponse) GetApplicationproblemJSON501

func (r PreviewDestinationResponse) GetApplicationproblemJSON501() *NotImplemented

GetApplicationproblemJSON501 returns the response for an HTTP 501 `application/problem+json` response

func (PreviewDestinationResponse) GetBody

func (r PreviewDestinationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PreviewDestinationResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PreviewDestinationResponse) Status

Status returns HTTPResponse.Status

func (PreviewDestinationResponse) StatusCode

func (r PreviewDestinationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PreviewDestinationResponse429Headers

type PreviewDestinationResponse429Headers struct {
	RetryAfter *int
}

PreviewDestinationResponse429Headers the declared response headers of an HTTP 429 response for PreviewDestination

type PreviewGroupKeyJSONRequestBody

type PreviewGroupKeyJSONRequestBody = GroupKeyPreviewRequest

PreviewGroupKeyJSONRequestBody defines body for PreviewGroupKey for application/json ContentType.

type PreviewGroupKeyResponse

type PreviewGroupKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GroupKeyPreview
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *PreviewGroupKeyResponse429Headers
}

func ParsePreviewGroupKeyResponse

func ParsePreviewGroupKeyResponse(rsp *http.Response) (*PreviewGroupKeyResponse, error)

ParsePreviewGroupKeyResponse parses an HTTP response from a PreviewGroupKeyWithResponse call

func (PreviewGroupKeyResponse) ContentType

func (r PreviewGroupKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PreviewGroupKeyResponse) GetApplicationproblemJSON400

func (r PreviewGroupKeyResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (PreviewGroupKeyResponse) GetApplicationproblemJSON401

func (r PreviewGroupKeyResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (PreviewGroupKeyResponse) GetApplicationproblemJSON403

func (r PreviewGroupKeyResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (PreviewGroupKeyResponse) GetApplicationproblemJSON404

func (r PreviewGroupKeyResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (PreviewGroupKeyResponse) GetApplicationproblemJSON422

func (r PreviewGroupKeyResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (PreviewGroupKeyResponse) GetApplicationproblemJSON429

func (r PreviewGroupKeyResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (PreviewGroupKeyResponse) GetBody

func (r PreviewGroupKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PreviewGroupKeyResponse) GetJSON200

func (r PreviewGroupKeyResponse) GetJSON200() *GroupKeyPreview

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PreviewGroupKeyResponse) Status

func (r PreviewGroupKeyResponse) Status() string

Status returns HTTPResponse.Status

func (PreviewGroupKeyResponse) StatusCode

func (r PreviewGroupKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PreviewGroupKeyResponse429Headers

type PreviewGroupKeyResponse429Headers struct {
	RetryAfter *int
}

PreviewGroupKeyResponse429Headers the declared response headers of an HTTP 429 response for PreviewGroupKey

type PreviewTemplateJSONRequestBody

type PreviewTemplateJSONRequestBody = TemplatePreviewRequest

PreviewTemplateJSONRequestBody defines body for PreviewTemplate for application/json ContentType.

type PreviewTemplateResponse

type PreviewTemplateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TemplatePreviewResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *PreviewTemplateResponse429Headers
}

func ParsePreviewTemplateResponse

func ParsePreviewTemplateResponse(rsp *http.Response) (*PreviewTemplateResponse, error)

ParsePreviewTemplateResponse parses an HTTP response from a PreviewTemplateWithResponse call

func (PreviewTemplateResponse) ContentType

func (r PreviewTemplateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PreviewTemplateResponse) GetApplicationproblemJSON400

func (r PreviewTemplateResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (PreviewTemplateResponse) GetApplicationproblemJSON401

func (r PreviewTemplateResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (PreviewTemplateResponse) GetApplicationproblemJSON403

func (r PreviewTemplateResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (PreviewTemplateResponse) GetApplicationproblemJSON404

func (r PreviewTemplateResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (PreviewTemplateResponse) GetApplicationproblemJSON429

func (r PreviewTemplateResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (PreviewTemplateResponse) GetBody

func (r PreviewTemplateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PreviewTemplateResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PreviewTemplateResponse) Status

func (r PreviewTemplateResponse) Status() string

Status returns HTTPResponse.Status

func (PreviewTemplateResponse) StatusCode

func (r PreviewTemplateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PreviewTemplateResponse429Headers

type PreviewTemplateResponse429Headers struct {
	RetryAfter *int
}

PreviewTemplateResponse429Headers the declared response headers of an HTTP 429 response for PreviewTemplate

type Problem

type Problem struct {
	// AttemptsRemaining Set on the `link_code_invalid` refusal of `confirmMattermostLink`, `confirmBridgeLink` and `confirmSlackLink`; the attempts left for the code of the link request, 0 once it can no longer be used (void, used or expired, or after the last wrong code). Set on the `contact_code_invalid` refusal of `confirmMyGatewayContact` too, with the attempts left for the code of the contact, 0 once it is void.
	AttemptsRemaining *int `json:"attempts_remaining,omitempty"`

	// Code Stable machine code that refines `type`, listed per type in `x-problem-codes`. Clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`.
	Code *string `json:"code,omitempty"`

	// Detail Human explanation of this occurrence; may change between releases.
	Detail *string `json:"detail,omitempty"`

	// Errors Field-level errors. Present for `validation-failed`.
	Errors *[]ProblemError `json:"errors,omitempty"`

	// GatewayClass Set on `gateway-refused`; how the Notification gateway refused the notification, as the Bridge protocol classifies it.
	GatewayClass *ProblemGatewayClass `json:"gateway_class,omitempty"`

	// InUseBy Set on `team_in_use`, `schedule_in_use` and `chain_in_use`; the objects that hold the resource, each with its kind, `public_id` and name.
	InUseBy *[]InUseRef `json:"in_use_by,omitempty"`

	// Instance Request path that produced the problem.
	Instance *string `json:"instance,omitempty"`

	// LinkRules Set on the `in_use` refusal of a Lookup table (`updateLookupTable`, `deleteLookupTable`); the Link rules whose URL templates read the table by its name, in the order they were created.
	LinkRules *[]EntityRef `json:"link_rules,omitempty"`

	// OpenAlertGroupCount Set on `route-has-open-alert-groups`; the number of open Alert Groups that block the deletion.
	OpenAlertGroupCount *int `json:"open_alert_group_count,omitempty"`

	// RelatedAlertGroup Set on refusals that name another Alert Group, such as an Unresolve refused because a newer open Alert Group exists.
	RelatedAlertGroup *AlertGroupRef `json:"related_alert_group,omitempty"`

	// RetryAfterSeconds Set on `rate-limited`; equals the `Retry-After` header.
	RetryAfterSeconds *int `json:"retry_after_seconds,omitempty"`

	// Status HTTP status code.
	Status int `json:"status"`

	// Title Short human summary; may change between releases.
	Title string `json:"title"`

	// Type Stable problem type URI.
	Type string `json:"type"`
}

Problem RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type ProblemError

type ProblemError struct {
	// CheckCode Set on `destination_check_failed`; the code of the failing check, as in `DestinationCheckItem`, which clients translate, with `detail` as its English text.
	CheckCode nullable.Nullable[NullableDestinationCheckCode] `json:"check_code,omitempty"`

	// Code Stable code such as `required`, `invalid_format`, `unknown_id`, `too_long`, `too_short`, `out_of_range`, `invalid_regex`, `template_syntax`, `unknown_function`, `duplicate`, `unsupported`.
	Code string `json:"code"`

	// Column Column of a template error.
	Column *int `json:"column,omitempty"`

	// Detail Human explanation; may change between releases.
	Detail *string `json:"detail,omitempty"`

	// Line Line of a template error.
	Line *int `json:"line,omitempty"`

	// MissingScopes Set on `destination_check_failed` with the `check_code` `missing_scope` (Slack), omitted otherwise — the scopes Slack named as needed, as in `DestinationCheckItem`, which clients name in their own words; `detail` names them in English.
	MissingScopes *[]string `json:"missing_scopes,omitempty"`

	// Pointer RFC 6901 JSON Pointer to the offending field in the request body, or “ for the whole body. Query and path parameters use `/query/<name>` and `/path/<name>`.
	Pointer string `json:"pointer"`

	// Reason Set on `not_pageable`; why the person may not be Paged.
	Reason *NotPageableReason `json:"reason,omitempty"`
}

ProblemError defines model for ProblemError.

type ProblemGatewayClass

type ProblemGatewayClass string

ProblemGatewayClass Set on `gateway-refused`; how the Notification gateway refused the notification, as the Bridge protocol classifies it.

const (
	ProblemGatewayClassForbidden   ProblemGatewayClass = "forbidden"
	ProblemGatewayClassGone        ProblemGatewayClass = "gone"
	ProblemGatewayClassInvalid     ProblemGatewayClass = "invalid"
	ProblemGatewayClassRateLimited ProblemGatewayClass = "rate_limited"
	ProblemGatewayClassTransient   ProblemGatewayClass = "transient"
)

Defines values for ProblemGatewayClass.

func (ProblemGatewayClass) Valid

func (e ProblemGatewayClass) Valid() bool

Valid indicates whether the value is a known member of the ProblemGatewayClass enum.

type ProxyConfig

type ProxyConfig struct {
	// Address `host:port`.
	Address *string `json:"address,omitempty"`
	Enabled bool    `json:"enabled"`

	// PasswordStatus What a read shows instead of a Secret. The value itself is never returned.
	PasswordStatus *SecretStatus             `json:"password_status,omitempty"`
	Type           *ProxyType                `json:"type,omitempty"`
	Username       nullable.Nullable[string] `json:"username,omitempty"`
}

ProxyConfig Per-client proxy as read. The password is a Secret.

type ProxyConfigInput

type ProxyConfigInput struct {
	// Address `host:port`; the proxy's own address is checked by the outbound address policy.
	Address *string `json:"address,omitempty"`
	Enabled bool    `json:"enabled"`

	// Password Write-only Secret. Omit to keep the stored one; `null` clears it.
	Password nullable.Nullable[string] `json:"password,omitempty"`
	Type     *ProxyType                `json:"type,omitempty"`
	Username nullable.Nullable[string] `json:"username,omitempty"`
}

ProxyConfigInput Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.

type ProxyType

type ProxyType string

ProxyType defines model for ProxyType.

const (
	ProxyTypeHttp   ProxyType = "http"
	ProxyTypeHttps  ProxyType = "https"
	ProxyTypeSocks5 ProxyType = "socks5"
)

Defines values for ProxyType.

func (ProxyType) Valid

func (e ProxyType) Valid() bool

Valid indicates whether the value is a known member of the ProxyType enum.

type PublicId

type PublicId = string

PublicId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type QueueDepth

type QueueDepth struct {
	Destination EntityRef `json:"destination"`
	Queued      int       `json:"queued"`
}

QueueDepth defines model for QueueDepth.

type ReachReason

type ReachReason string

ReachReason Why a Mention of an On-call cannot reach a Destination of their Team, or of an Escalation chain that Pages their Schedule (C-27.FR-8): `no_account_link` — the person has no Account link in the Identity space of the Connection of a Mattermost, Slack, Telegram or Bridge Destination; `bridge_no_native_mentions` — the bridge of a Bridge Destination does not declare `native_mentions` in the `info` its Connection check last read; `webhook_no_thread_reply` — an outgoing webhook in template mode has no "reply in thread" request; `not_in_discussion_group` — the last Destination check of a Telegram Destination saw the person outside the discussion group of its channel.

const (
	ReachReasonBridgeNoNativeMentions ReachReason = "bridge_no_native_mentions"
	ReachReasonNoAccountLink          ReachReason = "no_account_link"
	ReachReasonNotInDiscussionGroup   ReachReason = "not_in_discussion_group"
	ReachReasonWebhookNoThreadReply   ReachReason = "webhook_no_thread_reply"
)

Defines values for ReachReason.

func (ReachReason) Valid

func (e ReachReason) Valid() bool

Valid indicates whether the value is a known member of the ReachReason enum.

type RegenerateTotpRecoveryCodesJSONRequestBody

type RegenerateTotpRecoveryCodesJSONRequestBody = TotpCode

RegenerateTotpRecoveryCodesJSONRequestBody defines body for RegenerateTotpRecoveryCodes for application/json ContentType.

type RegenerateTotpRecoveryCodesResponse

type RegenerateTotpRecoveryCodesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TotpRecoveryCodes
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RegenerateTotpRecoveryCodesResponse429Headers
}

func ParseRegenerateTotpRecoveryCodesResponse

func ParseRegenerateTotpRecoveryCodesResponse(rsp *http.Response) (*RegenerateTotpRecoveryCodesResponse, error)

ParseRegenerateTotpRecoveryCodesResponse parses an HTTP response from a RegenerateTotpRecoveryCodesWithResponse call

func (RegenerateTotpRecoveryCodesResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON400

func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON401

func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON403

func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON409

func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON422

func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON429

func (r RegenerateTotpRecoveryCodesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RegenerateTotpRecoveryCodesResponse) GetBody

GetBody returns the raw response body bytes

func (RegenerateTotpRecoveryCodesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RegenerateTotpRecoveryCodesResponse) Status

Status returns HTTPResponse.Status

func (RegenerateTotpRecoveryCodesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RegenerateTotpRecoveryCodesResponse429Headers

type RegenerateTotpRecoveryCodesResponse429Headers struct {
	RetryAfter *int
}

RegenerateTotpRecoveryCodesResponse429Headers the declared response headers of an HTTP 429 response for RegenerateTotpRecoveryCodes

type RelatedAlertGroup

type RelatedAlertGroup struct {
	DurationSeconds nullable.Nullable[int] `json:"duration_seconds,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id         PublicId         `json:"id"`
	Number     int              `json:"number"`
	Resolution *ResolvedBy      `json:"resolution,omitempty"`
	StartedAt  time.Time        `json:"started_at"`
	Status     AlertGroupStatus `json:"status"`
}

RelatedAlertGroup defines model for RelatedAlertGroup.

type RelatedAlertGroupList

type RelatedAlertGroupList struct {
	Items      []RelatedAlertGroup       `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

RelatedAlertGroupList defines model for RelatedAlertGroupList.

type RemindersPolicy

type RemindersPolicy struct {
	// CapSeconds Intervals double up to this cap.
	CapSeconds           int  `json:"cap_seconds"`
	Enabled              bool `json:"enabled"`
	FirstIntervalSeconds int  `json:"first_interval_seconds"`
}

RemindersPolicy defines model for RemindersPolicy.

type RemoveTeamUserResponse

type RemoveTeamUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RemoveTeamUserResponse429Headers
}

func ParseRemoveTeamUserResponse

func ParseRemoveTeamUserResponse(rsp *http.Response) (*RemoveTeamUserResponse, error)

ParseRemoveTeamUserResponse parses an HTTP response from a RemoveTeamUserWithResponse call

func (RemoveTeamUserResponse) ContentType

func (r RemoveTeamUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RemoveTeamUserResponse) GetApplicationproblemJSON401

func (r RemoveTeamUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RemoveTeamUserResponse) GetApplicationproblemJSON403

func (r RemoveTeamUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RemoveTeamUserResponse) GetApplicationproblemJSON404

func (r RemoveTeamUserResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RemoveTeamUserResponse) GetApplicationproblemJSON429

func (r RemoveTeamUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RemoveTeamUserResponse) GetBody

func (r RemoveTeamUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RemoveTeamUserResponse) Status

func (r RemoveTeamUserResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveTeamUserResponse) StatusCode

func (r RemoveTeamUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveTeamUserResponse429Headers

type RemoveTeamUserResponse429Headers struct {
	RetryAfter *int
}

RemoveTeamUserResponse429Headers the declared response headers of an HTTP 429 response for RemoveTeamUser

type RemoveTotpJSONRequestBody

type RemoveTotpJSONRequestBody = TotpRemoval

RemoveTotpJSONRequestBody defines body for RemoveTotp for application/json ContentType.

type RemoveTotpResponse

type RemoveTotpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RemoveTotpResponse429Headers
}

func ParseRemoveTotpResponse

func ParseRemoveTotpResponse(rsp *http.Response) (*RemoveTotpResponse, error)

ParseRemoveTotpResponse parses an HTTP response from a RemoveTotpWithResponse call

func (RemoveTotpResponse) ContentType

func (r RemoveTotpResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RemoveTotpResponse) GetApplicationproblemJSON400

func (r RemoveTotpResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (RemoveTotpResponse) GetApplicationproblemJSON401

func (r RemoveTotpResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RemoveTotpResponse) GetApplicationproblemJSON403

func (r RemoveTotpResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RemoveTotpResponse) GetApplicationproblemJSON404

func (r RemoveTotpResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RemoveTotpResponse) GetApplicationproblemJSON429

func (r RemoveTotpResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RemoveTotpResponse) GetBody

func (r RemoveTotpResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RemoveTotpResponse) Status

func (r RemoveTotpResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveTotpResponse) StatusCode

func (r RemoveTotpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveTotpResponse429Headers

type RemoveTotpResponse429Headers struct {
	RetryAfter *int
}

RemoveTotpResponse429Headers the declared response headers of an HTTP 429 response for RemoveTotp

type RenderedRequest

type RenderedRequest struct {
	Body    nullable.Nullable[string] `json:"body,omitempty"`
	Headers []HeaderTemplate          `json:"headers"`
	Method  string                    `json:"method"`
	Url     string                    `json:"url"`
}

RenderedRequest A request as it would be or was sent, with Secrets, the Signing secret and tokens masked.

type ReorderRoutesJSONRequestBody

type ReorderRoutesJSONRequestBody = RouteOrder

ReorderRoutesJSONRequestBody defines body for ReorderRoutes for application/json ContentType.

type ReorderRoutesParams

type ReorderRoutesParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

ReorderRoutesParams defines parameters for ReorderRoutes.

type ReorderRoutesResponse

type ReorderRoutesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RouteList
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ReorderRoutesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ReorderRoutesResponse429Headers
}

func ParseReorderRoutesResponse

func ParseReorderRoutesResponse(rsp *http.Response) (*ReorderRoutesResponse, error)

ParseReorderRoutesResponse parses an HTTP response from a ReorderRoutesWithResponse call

func (ReorderRoutesResponse) ContentType

func (r ReorderRoutesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReorderRoutesResponse) GetApplicationproblemJSON400

func (r ReorderRoutesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ReorderRoutesResponse) GetApplicationproblemJSON401

func (r ReorderRoutesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ReorderRoutesResponse) GetApplicationproblemJSON403

func (r ReorderRoutesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ReorderRoutesResponse) GetApplicationproblemJSON409

func (r ReorderRoutesResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ReorderRoutesResponse) GetApplicationproblemJSON412

func (r ReorderRoutesResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (ReorderRoutesResponse) GetApplicationproblemJSON422

func (r ReorderRoutesResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ReorderRoutesResponse) GetApplicationproblemJSON428

func (r ReorderRoutesResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (ReorderRoutesResponse) GetApplicationproblemJSON429

func (r ReorderRoutesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ReorderRoutesResponse) GetBody

func (r ReorderRoutesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ReorderRoutesResponse) GetJSON200

func (r ReorderRoutesResponse) GetJSON200() *RouteList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReorderRoutesResponse) Status

func (r ReorderRoutesResponse) Status() string

Status returns HTTPResponse.Status

func (ReorderRoutesResponse) StatusCode

func (r ReorderRoutesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReorderRoutesResponse200Headers

type ReorderRoutesResponse200Headers struct {
	ETag *string
}

ReorderRoutesResponse200Headers the declared response headers of an HTTP 200 response for ReorderRoutes

type ReorderRoutesResponse429Headers

type ReorderRoutesResponse429Headers struct {
	RetryAfter *int
}

ReorderRoutesResponse429Headers the declared response headers of an HTTP 429 response for ReorderRoutes

type ReplicaStatus

type ReplicaStatus struct {
	Id          string    `json:"id"`
	KeyIds      []string  `json:"key_ids"`
	Leader      bool      `json:"leader"`
	RefreshedAt time.Time `json:"refreshed_at"`
}

ReplicaStatus defines model for ReplicaStatus.

type RequestDirection

type RequestDirection string

RequestDirection Whether Muster sent the request (`outbound`) or received it (`inbound`).

const (
	Inbound  RequestDirection = "inbound"
	Outbound RequestDirection = "outbound"
)

Defines values for RequestDirection.

func (RequestDirection) Valid

func (e RequestDirection) Valid() bool

Valid indicates whether the value is a known member of the RequestDirection enum.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestLogList

type RequestLogList struct {
	Items      []RequestRecordSummary    `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

RequestLogList defines model for RequestLogList.

type RequestRecord

type RequestRecord struct {
	// AlertGroup The Alert Group whose delivery the request made, null for none.
	AlertGroup nullable.Nullable[AlertGroupRef] `json:"alert_group"`

	// At When the attempt was made, on the business clock.
	At time.Time `json:"at"`

	// Attempt Which attempt of the request this was, from 1.
	Attempt int `json:"attempt"`

	// Check The check or test a request belongs to, null for any other request.
	Check nullable.Nullable[NullableCheckKind] `json:"check"`

	// CheckRun A `public_id` in the format of `PublicId`, or null.
	CheckRun nullable.Nullable[NullablePublicId] `json:"check_run"`

	// ConnectionId A `public_id` in the format of `PublicId`, or null.
	ConnectionId nullable.Nullable[NullablePublicId] `json:"connection_id"`

	// Destination The Destination the request concerns, null for none.
	Destination nullable.Nullable[DestinationRef] `json:"destination"`

	// Direction Whether Muster sent the request (`outbound`) or received it (`inbound`).
	Direction RequestDirection `json:"direction"`

	// Error Why the attempt failed, masked; null for one that succeeded. Untrusted where it comes from the remote side.
	Error nullable.Nullable[string] `json:"error"`

	// ErrorClass How the attempt failed, as the outbound package classified it: the answer asked to wait (`retry_after`), was a server error, or the attempt got no answer, such as a refused connection or a timeout (`transient`); the answer was a client error (`fatal`), an answer it could not judge, such as one larger than its limit (`unknown`), or a redirect, which Muster never follows (`redirect`); or the outbound address policy refused the address (`blocked`). Null for an attempt that succeeded.
	ErrorClass nullable.Nullable[NullableRequestErrorClass] `json:"error_class"`

	// ErrorCode What failed when the attempt got no answer, as the checks name it (`NullableConnectionCheckCode`) — `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` or `request_failed`. Null for an attempt that got an answer.
	ErrorCode nullable.Nullable[NullableRequestErrorCode] `json:"error_code"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id        PublicId `json:"id"`
	LatencyMs int      `json:"latency_ms"`

	// Method The HTTP method, `WEBSOCKET` for an envelope received over a Slack Socket Mode connection.
	Method string `json:"method"`

	// Operation The operation as its protocol names it — the Bot API method for Telegram, the Web API method for Slack (`auth.test`, `chat.postMessage`), the `operationId` of the Bridge protocol, the operation of Mattermost's REST API in lower camel case — or for an outgoing webhook `event`, or the request of the template mode (`create`, `update`, `open_thread`, `reply_in_thread`).
	Operation string `json:"operation"`

	// RequestBody The body as sent, masked, cut to `request_log.body_max` bytes at a character boundary, bytes that are not UTF-8 replaced; untrusted text.
	RequestBody string `json:"request_body"`

	// RequestBodyBytes The length in bytes of the request body after Secrets are masked and before signed action ids and tokens are masked, bytes that are not UTF-8 replaced and the body cut.
	RequestBodyBytes int `json:"request_body_bytes"`

	// RequestBodyTruncated The request body is cut to `request_log.body_max` bytes.
	RequestBodyTruncated bool `json:"request_body_truncated"`

	// RequestHeaders HTTP headers by name, each with its values, masked. Untrusted text.
	RequestHeaders HttpHeaders `json:"request_headers"`

	// ResponseBody The answer's body, masked and cut as the request body — for a Socket Mode envelope Muster's confirmation; null without an answer; untrusted text.
	ResponseBody nullable.Nullable[string] `json:"response_body"`

	// ResponseBodyBytes The length in bytes of the answer's body after Secrets are masked and before signed action ids and tokens are masked, bytes that are not UTF-8 replaced and the body cut; for an answer larger than the client reads, of the bytes read. 0 without an answer.
	ResponseBodyBytes int `json:"response_body_bytes"`

	// ResponseBodyTruncated The answer's body is cut to `request_log.body_max` bytes.
	ResponseBodyTruncated bool `json:"response_body_truncated"`

	// ResponseHeaders The answer's headers, masked; null without an answer and for a Socket Mode envelope, whose confirmation has none.
	ResponseHeaders nullable.Nullable[NullableHttpHeaders] `json:"response_headers"`

	// Status The status of the answer, null when the attempt got no answer, and for a Socket Mode envelope, whose confirmation has no status.
	Status nullable.Nullable[int] `json:"status"`

	// Url The URL as errors show it, masked; untrusted text. Without user information, with the path prefix of the base URL as `[redacted]`.
	Url string `json:"url"`

	// Via How the request travelled.
	Via ConnectionPath `json:"via"`
}

RequestRecord One attempt of a request with its headers and bodies, masked. Headers, bodies and the error are untrusted text.

type RequestRecordId

type RequestRecordId = PublicId

RequestRecordId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type RequestRecordSummary

type RequestRecordSummary struct {
	// AlertGroup The Alert Group whose delivery the request made, null for none.
	AlertGroup nullable.Nullable[AlertGroupRef] `json:"alert_group"`

	// At When the attempt was made, on the business clock.
	At time.Time `json:"at"`

	// Attempt Which attempt of the request this was, from 1.
	Attempt int `json:"attempt"`

	// Check The check or test a request belongs to, null for any other request.
	Check nullable.Nullable[NullableCheckKind] `json:"check"`

	// CheckRun A `public_id` in the format of `PublicId`, or null.
	CheckRun nullable.Nullable[NullablePublicId] `json:"check_run"`

	// ConnectionId A `public_id` in the format of `PublicId`, or null.
	ConnectionId nullable.Nullable[NullablePublicId] `json:"connection_id"`

	// Destination The Destination the request concerns, null for none.
	Destination nullable.Nullable[DestinationRef] `json:"destination"`

	// Direction Whether Muster sent the request (`outbound`) or received it (`inbound`).
	Direction RequestDirection `json:"direction"`

	// ErrorClass How the attempt failed, as the outbound package classified it: the answer asked to wait (`retry_after`), was a server error, or the attempt got no answer, such as a refused connection or a timeout (`transient`); the answer was a client error (`fatal`), an answer it could not judge, such as one larger than its limit (`unknown`), or a redirect, which Muster never follows (`redirect`); or the outbound address policy refused the address (`blocked`). Null for an attempt that succeeded.
	ErrorClass nullable.Nullable[NullableRequestErrorClass] `json:"error_class"`

	// ErrorCode What failed when the attempt got no answer, as the checks name it (`NullableConnectionCheckCode`) — `dns_failed`, `connect_failed`, `tls_failed`, `timeout`, `proxy_refused`, `blocked` or `request_failed`. Null for an attempt that got an answer.
	ErrorCode nullable.Nullable[NullableRequestErrorCode] `json:"error_code"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id        PublicId `json:"id"`
	LatencyMs int      `json:"latency_ms"`

	// Method The HTTP method, `WEBSOCKET` for an envelope received over a Slack Socket Mode connection.
	Method string `json:"method"`

	// Operation The operation as its protocol names it — the Bot API method for Telegram, the Web API method for Slack (`auth.test`, `chat.postMessage`), the `operationId` of the Bridge protocol, the operation of Mattermost's REST API in lower camel case — or for an outgoing webhook `event`, or the request of the template mode (`create`, `update`, `open_thread`, `reply_in_thread`).
	Operation string `json:"operation"`

	// RequestBodyTruncated The request body is cut to `request_log.body_max` bytes.
	RequestBodyTruncated bool `json:"request_body_truncated"`

	// ResponseBodyTruncated The answer's body is cut to `request_log.body_max` bytes.
	ResponseBodyTruncated bool `json:"response_body_truncated"`

	// Status The status of the answer, null when the attempt got no answer, and for a Socket Mode envelope, whose confirmation has no status.
	Status nullable.Nullable[int] `json:"status"`

	// Url The URL as errors show it, masked; untrusted text. Without user information, with the path prefix of the base URL as `[redacted]`.
	Url string `json:"url"`

	// Via How the request travelled.
	Via ConnectionPath `json:"via"`
}

RequestRecordSummary One attempt of a request as a list shows it.

type RequestTemplate

type RequestTemplate struct {
	// Body Go template.
	Body    nullable.Nullable[string] `json:"body,omitempty"`
	Extract *[]ExtractionRule         `json:"extract,omitempty"`
	Headers []HeaderTemplate          `json:"headers"`
	Method  RequestTemplateMethod     `json:"method"`

	// Url Go template.
	Url string `json:"url"`
}

RequestTemplate defines model for RequestTemplate.

type RequestTemplateMethod

type RequestTemplateMethod string

RequestTemplateMethod defines model for RequestTemplate.Method.

const (
	DELETE RequestTemplateMethod = "DELETE"
	GET    RequestTemplateMethod = "GET"
	PATCH  RequestTemplateMethod = "PATCH"
	POST   RequestTemplateMethod = "POST"
	PUT    RequestTemplateMethod = "PUT"
)

Defines values for RequestTemplateMethod.

func (RequestTemplateMethod) Valid

func (e RequestTemplateMethod) Valid() bool

Valid indicates whether the value is a known member of the RequestTemplateMethod enum.

type ResetMyNotificationRulesResponse

type ResetMyNotificationRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationRules
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ResetMyNotificationRulesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ResetMyNotificationRulesResponse429Headers
}

func ParseResetMyNotificationRulesResponse

func ParseResetMyNotificationRulesResponse(rsp *http.Response) (*ResetMyNotificationRulesResponse, error)

ParseResetMyNotificationRulesResponse parses an HTTP response from a ResetMyNotificationRulesWithResponse call

func (ResetMyNotificationRulesResponse) ContentType

func (r ResetMyNotificationRulesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResetMyNotificationRulesResponse) GetApplicationproblemJSON401

func (r ResetMyNotificationRulesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ResetMyNotificationRulesResponse) GetApplicationproblemJSON403

func (r ResetMyNotificationRulesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ResetMyNotificationRulesResponse) GetApplicationproblemJSON429

func (r ResetMyNotificationRulesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ResetMyNotificationRulesResponse) GetBody

func (r ResetMyNotificationRulesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResetMyNotificationRulesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ResetMyNotificationRulesResponse) Status

Status returns HTTPResponse.Status

func (ResetMyNotificationRulesResponse) StatusCode

func (r ResetMyNotificationRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResetMyNotificationRulesResponse200Headers

type ResetMyNotificationRulesResponse200Headers struct {
	ETag *string
}

ResetMyNotificationRulesResponse200Headers the declared response headers of an HTTP 200 response for ResetMyNotificationRules

type ResetMyNotificationRulesResponse429Headers

type ResetMyNotificationRulesResponse429Headers struct {
	RetryAfter *int
}

ResetMyNotificationRulesResponse429Headers the declared response headers of an HTTP 429 response for ResetMyNotificationRules

type ResetUserTotpResponse

type ResetUserTotpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ResetUserTotpResponse429Headers
}

func ParseResetUserTotpResponse

func ParseResetUserTotpResponse(rsp *http.Response) (*ResetUserTotpResponse, error)

ParseResetUserTotpResponse parses an HTTP response from a ResetUserTotpWithResponse call

func (ResetUserTotpResponse) ContentType

func (r ResetUserTotpResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResetUserTotpResponse) GetApplicationproblemJSON401

func (r ResetUserTotpResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ResetUserTotpResponse) GetApplicationproblemJSON403

func (r ResetUserTotpResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ResetUserTotpResponse) GetApplicationproblemJSON404

func (r ResetUserTotpResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ResetUserTotpResponse) GetApplicationproblemJSON429

func (r ResetUserTotpResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ResetUserTotpResponse) GetBody

func (r ResetUserTotpResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResetUserTotpResponse) Status

func (r ResetUserTotpResponse) Status() string

Status returns HTTPResponse.Status

func (ResetUserTotpResponse) StatusCode

func (r ResetUserTotpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResetUserTotpResponse429Headers

type ResetUserTotpResponse429Headers struct {
	RetryAfter *int
}

ResetUserTotpResponse429Headers the declared response headers of an HTTP 429 response for ResetUserTotp

type ResolveAlertGroupJSONRequestBody

type ResolveAlertGroupJSONRequestBody = ResolveRequest

ResolveAlertGroupJSONRequestBody defines body for ResolveAlertGroup for application/json ContentType.

type ResolveAlertGroupResponse

type ResolveAlertGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommandResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ResolveAlertGroupResponse429Headers
}

func ParseResolveAlertGroupResponse

func ParseResolveAlertGroupResponse(rsp *http.Response) (*ResolveAlertGroupResponse, error)

ParseResolveAlertGroupResponse parses an HTTP response from a ResolveAlertGroupWithResponse call

func (ResolveAlertGroupResponse) ContentType

func (r ResolveAlertGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResolveAlertGroupResponse) GetApplicationproblemJSON400

func (r ResolveAlertGroupResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ResolveAlertGroupResponse) GetApplicationproblemJSON401

func (r ResolveAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ResolveAlertGroupResponse) GetApplicationproblemJSON403

func (r ResolveAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ResolveAlertGroupResponse) GetApplicationproblemJSON404

func (r ResolveAlertGroupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ResolveAlertGroupResponse) GetApplicationproblemJSON409

func (r ResolveAlertGroupResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ResolveAlertGroupResponse) GetApplicationproblemJSON422

func (r ResolveAlertGroupResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ResolveAlertGroupResponse) GetApplicationproblemJSON429

func (r ResolveAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ResolveAlertGroupResponse) GetBody

func (r ResolveAlertGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResolveAlertGroupResponse) GetJSON200

func (r ResolveAlertGroupResponse) GetJSON200() *CommandResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ResolveAlertGroupResponse) Status

func (r ResolveAlertGroupResponse) Status() string

Status returns HTTPResponse.Status

func (ResolveAlertGroupResponse) StatusCode

func (r ResolveAlertGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResolveAlertGroupResponse429Headers

type ResolveAlertGroupResponse429Headers struct {
	RetryAfter *int
}

ResolveAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for ResolveAlertGroup

type ResolveReason

type ResolveReason string

ResolveReason Why an Alert resolved.

const (
	ResolveReasonGone               ResolveReason = "gone"
	ResolveReasonIntegrationDeleted ResolveReason = "integration_deleted"
	ResolveReasonResolved           ResolveReason = "resolved"
	ResolveReasonStale              ResolveReason = "stale"
)

Defines values for ResolveReason.

func (ResolveReason) Valid

func (e ResolveReason) Valid() bool

Valid indicates whether the value is a known member of the ResolveReason enum.

type ResolveRequest

type ResolveRequest struct {
	// Note Optional Note recorded in the same request.
	Note *string `json:"note,omitempty"`
}

ResolveRequest defines model for ResolveRequest.

type ResolvedBy

type ResolvedBy struct {
	// Actor Set when `by` is `user`: the User or Service account that resolved it.
	Actor *ActorRef `json:"actor,omitempty"`

	// By Who resolved an Alert Group: a person or the system.
	By ResolverKind `json:"by"`

	// Reason Reason text when the system resolved it.
	Reason nullable.Nullable[string] `json:"reason,omitempty"`

	// ReasonCode Why an Alert resolved; null while it fires.
	ReasonCode nullable.Nullable[NullableResolveReason] `json:"reason_code,omitempty"`
}

ResolvedBy defines model for ResolvedBy.

type ResolverKind

type ResolverKind string

ResolverKind Who resolved an Alert Group: a person or the system.

const (
	ResolverKindSystem ResolverKind = "system"
	ResolverKindUser   ResolverKind = "user"
)

Defines values for ResolverKind.

func (ResolverKind) Valid

func (e ResolverKind) Valid() bool

Valid indicates whether the value is a known member of the ResolverKind enum.

type RetentionSettings

type RetentionSettings struct {
	// AlertDetailsDays Alerts inside Alert Groups, Timeline entries and delivery events (`retention.alert_details`). Never Notes.
	AlertDetailsDays int `json:"alert_details_days"`

	// AlertGroupSummariesDays Alert Group summary rows with their Notes (`retention.alert_group_summaries`); at least `alert_details_days`.
	AlertGroupSummariesDays int `json:"alert_group_summaries_days"`
	AuditLogDays            int `json:"audit_log_days"`
	StoredSnapshotsDays     int `json:"stored_snapshots_days"`
}

RetentionSettings Retention periods in days, from 1 to 36500 (100 years). `alert_group_summaries_days` must be at least `alert_details_days`: details are always removed before the summary rows they belong to, and an update that breaks this gets `422` with `retention_order`. Details are the Alerts inside Alert Groups, Timeline entries and delivery events; Notes are not details: they are kept with the summary rows and deleted with them.

type RetirePreviousSigningSecretResponse

type RetirePreviousSigningSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RetirePreviousSigningSecretResponse429Headers
}

func ParseRetirePreviousSigningSecretResponse

func ParseRetirePreviousSigningSecretResponse(rsp *http.Response) (*RetirePreviousSigningSecretResponse, error)

ParseRetirePreviousSigningSecretResponse parses an HTTP response from a RetirePreviousSigningSecretWithResponse call

func (RetirePreviousSigningSecretResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON401

func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON403

func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON404

func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON409

func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (RetirePreviousSigningSecretResponse) GetApplicationproblemJSON429

func (r RetirePreviousSigningSecretResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RetirePreviousSigningSecretResponse) GetBody

GetBody returns the raw response body bytes

func (RetirePreviousSigningSecretResponse) Status

Status returns HTTPResponse.Status

func (RetirePreviousSigningSecretResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RetirePreviousSigningSecretResponse429Headers

type RetirePreviousSigningSecretResponse429Headers struct {
	RetryAfter *int
}

RetirePreviousSigningSecretResponse429Headers the declared response headers of an HTTP 429 response for RetirePreviousSigningSecret

type RevokeIntegrationTokenResponse

type RevokeIntegrationTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RevokeIntegrationTokenResponse429Headers
}

func ParseRevokeIntegrationTokenResponse

func ParseRevokeIntegrationTokenResponse(rsp *http.Response) (*RevokeIntegrationTokenResponse, error)

ParseRevokeIntegrationTokenResponse parses an HTTP response from a RevokeIntegrationTokenWithResponse call

func (RevokeIntegrationTokenResponse) ContentType

func (r RevokeIntegrationTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON401

func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON403

func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON404

func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RevokeIntegrationTokenResponse) GetApplicationproblemJSON429

func (r RevokeIntegrationTokenResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RevokeIntegrationTokenResponse) GetBody

func (r RevokeIntegrationTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeIntegrationTokenResponse) Status

Status returns HTTPResponse.Status

func (RevokeIntegrationTokenResponse) StatusCode

func (r RevokeIntegrationTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeIntegrationTokenResponse429Headers

type RevokeIntegrationTokenResponse429Headers struct {
	RetryAfter *int
}

RevokeIntegrationTokenResponse429Headers the declared response headers of an HTTP 429 response for RevokeIntegrationToken

type RevokeMyIcalFeedResponse

type RevokeMyIcalFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RevokeMyIcalFeedResponse429Headers
}

func ParseRevokeMyIcalFeedResponse

func ParseRevokeMyIcalFeedResponse(rsp *http.Response) (*RevokeMyIcalFeedResponse, error)

ParseRevokeMyIcalFeedResponse parses an HTTP response from a RevokeMyIcalFeedWithResponse call

func (RevokeMyIcalFeedResponse) ContentType

func (r RevokeMyIcalFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeMyIcalFeedResponse) GetApplicationproblemJSON401

func (r RevokeMyIcalFeedResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RevokeMyIcalFeedResponse) GetApplicationproblemJSON403

func (r RevokeMyIcalFeedResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RevokeMyIcalFeedResponse) GetApplicationproblemJSON429

func (r RevokeMyIcalFeedResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RevokeMyIcalFeedResponse) GetBody

func (r RevokeMyIcalFeedResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeMyIcalFeedResponse) Status

func (r RevokeMyIcalFeedResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeMyIcalFeedResponse) StatusCode

func (r RevokeMyIcalFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeMyIcalFeedResponse429Headers

type RevokeMyIcalFeedResponse429Headers struct {
	RetryAfter *int
}

RevokeMyIcalFeedResponse429Headers the declared response headers of an HTTP 429 response for RevokeMyIcalFeed

type RevokePersonalAccessTokenResponse

type RevokePersonalAccessTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RevokePersonalAccessTokenResponse429Headers
}

func ParseRevokePersonalAccessTokenResponse

func ParseRevokePersonalAccessTokenResponse(rsp *http.Response) (*RevokePersonalAccessTokenResponse, error)

ParseRevokePersonalAccessTokenResponse parses an HTTP response from a RevokePersonalAccessTokenWithResponse call

func (RevokePersonalAccessTokenResponse) ContentType

func (r RevokePersonalAccessTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON401

func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON403

func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON404

func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RevokePersonalAccessTokenResponse) GetApplicationproblemJSON429

func (r RevokePersonalAccessTokenResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RevokePersonalAccessTokenResponse) GetBody

GetBody returns the raw response body bytes

func (RevokePersonalAccessTokenResponse) Status

Status returns HTTPResponse.Status

func (RevokePersonalAccessTokenResponse) StatusCode

func (r RevokePersonalAccessTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokePersonalAccessTokenResponse429Headers

type RevokePersonalAccessTokenResponse429Headers struct {
	RetryAfter *int
}

RevokePersonalAccessTokenResponse429Headers the declared response headers of an HTTP 429 response for RevokePersonalAccessToken

type RevokeServiceAccountTokenResponse

type RevokeServiceAccountTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RevokeServiceAccountTokenResponse429Headers
}

func ParseRevokeServiceAccountTokenResponse

func ParseRevokeServiceAccountTokenResponse(rsp *http.Response) (*RevokeServiceAccountTokenResponse, error)

ParseRevokeServiceAccountTokenResponse parses an HTTP response from a RevokeServiceAccountTokenWithResponse call

func (RevokeServiceAccountTokenResponse) ContentType

func (r RevokeServiceAccountTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON401

func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON403

func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON404

func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RevokeServiceAccountTokenResponse) GetApplicationproblemJSON429

func (r RevokeServiceAccountTokenResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RevokeServiceAccountTokenResponse) GetBody

GetBody returns the raw response body bytes

func (RevokeServiceAccountTokenResponse) Status

Status returns HTTPResponse.Status

func (RevokeServiceAccountTokenResponse) StatusCode

func (r RevokeServiceAccountTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeServiceAccountTokenResponse429Headers

type RevokeServiceAccountTokenResponse429Headers struct {
	RetryAfter *int
}

RevokeServiceAccountTokenResponse429Headers the declared response headers of an HTTP 429 response for RevokeServiceAccountToken

type RevokeUserIcalFeedResponse

type RevokeUserIcalFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RevokeUserIcalFeedResponse429Headers
}

func ParseRevokeUserIcalFeedResponse

func ParseRevokeUserIcalFeedResponse(rsp *http.Response) (*RevokeUserIcalFeedResponse, error)

ParseRevokeUserIcalFeedResponse parses an HTTP response from a RevokeUserIcalFeedWithResponse call

func (RevokeUserIcalFeedResponse) ContentType

func (r RevokeUserIcalFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeUserIcalFeedResponse) GetApplicationproblemJSON401

func (r RevokeUserIcalFeedResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RevokeUserIcalFeedResponse) GetApplicationproblemJSON403

func (r RevokeUserIcalFeedResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RevokeUserIcalFeedResponse) GetApplicationproblemJSON404

func (r RevokeUserIcalFeedResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RevokeUserIcalFeedResponse) GetApplicationproblemJSON429

func (r RevokeUserIcalFeedResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RevokeUserIcalFeedResponse) GetBody

func (r RevokeUserIcalFeedResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeUserIcalFeedResponse) Status

Status returns HTTPResponse.Status

func (RevokeUserIcalFeedResponse) StatusCode

func (r RevokeUserIcalFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeUserIcalFeedResponse429Headers

type RevokeUserIcalFeedResponse429Headers struct {
	RetryAfter *int
}

RevokeUserIcalFeedResponse429Headers the declared response headers of an HTTP 429 response for RevokeUserIcalFeed

type Role

type Role struct {
	Name        RoleName     `json:"name"`
	Permissions []Permission `json:"permissions"`
}

Role defines model for Role.

type RoleList

type RoleList struct {
	Items []Role `json:"items"`
}

RoleList defines model for RoleList.

type RoleName

type RoleName string

RoleName defines model for RoleName.

const (
	RoleNameAdmin     RoleName = "admin"
	RoleNameResponder RoleName = "responder"
	RoleNameViewer    RoleName = "viewer"
)

Defines values for RoleName.

func (RoleName) Valid

func (e RoleName) Valid() bool

Valid indicates whether the value is a known member of the RoleName enum.

type RotationLayer

type RotationLayer struct {
	// HandoverDay Set with `week`.
	HandoverDay  *Weekday `json:"handover_day,omitempty"`
	HandoverTime string   `json:"handover_time"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id     PublicId                          `json:"id"`
	Limits nullable.Nullable[RotationLimits] `json:"limits"`
	Name   string                            `json:"name"`

	// Number The position of the Rotation layer, 1 for the lowest; a higher one overrides those below.
	Number int `json:"number"`

	// ShiftLength How long a Shift of a Rotation layer lasts: a day, a week handed over on `handover_day`, or `shift_seconds` of wall-clock time.
	ShiftLength ShiftLength `json:"shift_length"`

	// ShiftSeconds Set with `hours`.
	ShiftSeconds *int               `json:"shift_seconds,omitempty"`
	StartDate    openapi_types.Date `json:"start_date"`
	UserIds      []PublicId         `json:"user_ids"`

	// Users The people of `user_ids`, in turn.
	Users []UserRef `json:"users"`
}

RotationLayer defines model for RotationLayer.

type RotationLayerInput

type RotationLayerInput struct {
	// HandoverDay The day of the handover of weekly Shifts; required with `week` and refused with the others.
	HandoverDay  *Weekday `json:"handover_day,omitempty"`
	HandoverTime string   `json:"handover_time"`

	// Id The `id` of one of the Schedule's Rotation layers, which keeps its identity; omit it for a new one.
	Id *PublicId `json:"id,omitempty"`

	// Limits The days and time of day to which the Shifts are cut; null for none.
	Limits nullable.Nullable[RotationLimits] `json:"limits,omitempty"`
	Name   string                            `json:"name"`

	// ShiftLength How long a Shift of a Rotation layer lasts: a day, a week handed over on `handover_day`, or `shift_seconds` of wall-clock time.
	ShiftLength ShiftLength `json:"shift_length"`

	// ShiftSeconds The length of a Shift with `hours`, whole hours from one hour to 28 days — a multiple of 3600 from 3600 to 2419200, else `422` `out_of_range`; required with `hours` and refused with the others.
	ShiftSeconds *int `json:"shift_seconds,omitempty"`

	// StartDate The day the first Shift starts, at `handover_time`, with the first person; from 2000-01-01 to 2100-12-31, else `422` `out_of_range`.
	StartDate openapi_types.Date `json:"start_date"`

	// UserIds The people who take Shifts in turn, in order; at most 100, else `422` `out_of_range`.
	UserIds []PublicId `json:"user_ids"`
}

RotationLayerInput A Rotation layer: the people who take Shifts in turn from `start_date` at `handover_time`, the first person first. Times are wall-clock times in the Schedule's time zone, so a handover at 10:00 stays at 10:00 across a change of the clocks. A wall-clock time that the clocks skip when they move forward is the instant they move; one that happens twice when they move back is its first occurrence (RFC 5545).

type RotationLayerShifts

type RotationLayerShifts struct {
	RotationLayer EntityRef       `json:"rotation_layer"`
	Shifts        []RotationShift `json:"shifts"`
}

RotationLayerShifts defines model for RotationLayerShifts.

type RotationLimits

type RotationLimits struct {
	Days []Weekday `json:"days"`

	// End Given with `start`.
	End *string `json:"end,omitempty"`

	// Start Given with `end`.
	Start *string `json:"start,omitempty"`
}

RotationLimits The days of the week, and optionally a time of day, to which a Rotation layer's Shifts are cut. An `end` earlier than `start` crosses midnight and runs until the end on the next day, and each window belongs to the day it starts on, so Friday 19:00–09:00 runs from Friday 19:00 to Saturday 09:00; an `end` equal to `start` is refused with `422` `out_of_range` at the end. Without `start` and `end` the limits are whole days.

type RotationShift

type RotationShift struct {
	End time.Time `json:"end"`

	// Skipped Why the person's Shift is skipped, or null when it is not.
	Skipped nullable.Nullable[NotPageableReason] `json:"skipped"`
	Start   time.Time                            `json:"start"`

	// User A User. Used wherever the person must be a User: the Owner and the previous Owner.
	User UserRef `json:"user"`
}

RotationShift A Shift of a Rotation layer within the period, cut to its limits.

type Route

type Route struct {
	// ChainEntries The Escalation chains of the Route (C-32.FR-2), each once with its Severity condition. Replaced as a whole; omit it on an update to keep the entries, and a creation without it has none. A chain that is unknown is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `chain_id`. Needs `routes:write` only. Chains run nothing until Escalation chains run.
	ChainEntries []ChainEntry `json:"chain_entries"`

	// Chains The Escalation chains of the Route's `chain_entries`, by name.
	Chains    []EscalationChainRef `json:"chains"`
	CreatedAt time.Time            `json:"created_at"`

	// DeliverToTeams "Also to the Teams from the label" (`route.deliver_to_teams`, C-26.FR-2): an Alert Group of the Route also goes to the Destinations of each of its Teams whose Severity condition its Severity level meets. Omitted on a create, false; omitted on an update, kept. The owning Team of the Route adds nothing.
	DeliverToTeams bool    `json:"deliver_to_teams"`
	Description    *string `json:"description,omitempty"`

	// DestinationEntries The Route's Destinations (C-26.FR-1), each once with its Severity condition, checked against the Severity level of each Alert Group of the Route. Replaced as a whole; an update that omits it and `destination_ids` keeps them. A Destination that is unknown or deleted is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `destination_id`. A Destination may be named by several Routes and Teams, each with its own condition; it gets one Root message for an Alert Group whichever entries reach it.
	DestinationEntries []DestinationEntry `json:"destination_entries"`

	// DestinationIds Derived from `destination_entries` on reads. When a request has no `destination_entries`, it sets them, keeping the stored condition of each Destination it keeps and `any` for a new one; beside `destination_entries` it is ignored. Removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	DestinationIds []PublicId `json:"destination_ids"`

	// Destinations The Route's Destinations with their health, for the Broken warning.
	Destinations []DestinationRef `json:"destinations"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// GroupKey Label names whose values split the Route's Alerts into Alert Groups. A missing label counts as an empty value.
	GroupKey []string `json:"group_key"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id        PublicId `json:"id"`
	IsDefault bool     `json:"is_default"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The Default route takes it like any Route.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Matchers Combined with AND. The Default route has none.
	Matchers []Matcher `json:"matchers"`

	// MessageLabels The label names of the line of key labels of the Route's Root messages, in their order, each shown as `name=value` when every firing Alert has the same value, as `name: N values` when they differ, and not at all when no Alert has it. Read only when `own_message_labels` is true, and then required unless the Route already has a list of its own, which an update that omits it keeps; an empty name is refused with `422` `invalid_format`, one given twice with `duplicate`, and the names a Group key takes are taken. A change, a change of the Group key while the list is computed, or a rename of the Route re-renders its open Root messages Quietly. A read gives the effective list: the Route's own, or while `own_message_labels` is false the list computed from the Group key without `alertname` and `organization.severity_label`, then `organization.team_label` and `namespace`. The computed list follows the Organization's settings as they are now, and a change of them does not change the Route's ETag; sent back with `own_message_labels` false, it is ignored.
	MessageLabels []string `json:"message_labels"`

	// MinimumSeverity Omitted on a create, `none`; omitted on an update, kept. A change applies at once to the Route's open Alert Groups, Quietly and without removing an acknowledgement or a Snooze.
	MinimumSeverity MinimumSeverity `json:"minimum_severity"`

	// Name Unique in the Organization.
	Name                string `json:"name"`
	OpenAlertGroupCount int    `json:"open_alert_group_count"`

	// OwnMessageLabels Whether the Route has a list of "Labels in the message" of its own (`route.message_labels`, C-29.FR-2). False, the default of a create, computes the list from the current Group key and the Organization's settings and ignores `message_labels`; an update that omits it keeps it.
	OwnMessageLabels bool `json:"own_message_labels"`

	// OwningTeam The Team that owns the Route, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`

	// OwningTeamId The Team that owns the Route (C-25.FR-2), which only organizes and filters and never adds delivery; `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Policy       RoutePolicy                         `json:"policy"`

	// Position Zero-based position in evaluation order; the Default route is last.
	Position int `json:"position"`

	// RunTeamChains "Run the Teams' Escalation chains" (`route.run_team_chains`), read with `deliver_to_teams`: stored and returned, and acting once Escalation chains run. Omitted on a create, true; omitted on an update, kept.
	RunTeamChains bool `json:"run_team_chains"`

	// Storm Set while the Route's Storm is active (`storm_active`), for the Storm banner.
	Storm       *RouteStorm `json:"storm,omitempty"`
	StormActive bool        `json:"storm_active"`

	// TemplateError Set while a template of the Route keeps failing.
	TemplateError *TemplateErrorState `json:"template_error,omitempty"`

	// Urgent From 0.2.0 a read gives true exactly when `minimum_severity` is `critical`. In a request, `true` without `minimum_severity` is read as `minimum_severity` `critical`, as a 0.1 client meant it; `false`, or either value beside `minimum_severity`, changes nothing. Removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Urgent bool `json:"urgent"`
}

Route defines model for Route.

type RouteId

type RouteId = PublicId

RouteId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type RouteInput

type RouteInput struct {
	// ChainEntries The Escalation chains of the Route (C-32.FR-2), each once with its Severity condition. Replaced as a whole; omit it on an update to keep the entries, and a creation without it has none. A chain that is unknown is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `chain_id`. Needs `routes:write` only. Chains run nothing until Escalation chains run.
	ChainEntries *[]ChainEntry `json:"chain_entries,omitempty"`

	// DeliverToTeams "Also to the Teams from the label" (`route.deliver_to_teams`, C-26.FR-2): an Alert Group of the Route also goes to the Destinations of each of its Teams whose Severity condition its Severity level meets. Omitted on a create, false; omitted on an update, kept. The owning Team of the Route adds nothing.
	DeliverToTeams *bool   `json:"deliver_to_teams,omitempty"`
	Description    *string `json:"description,omitempty"`

	// DestinationEntries The Route's Destinations (C-26.FR-1), each once with its Severity condition, checked against the Severity level of each Alert Group of the Route. Replaced as a whole; an update that omits it and `destination_ids` keeps them. A Destination that is unknown or deleted is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `destination_id`. A Destination may be named by several Routes and Teams, each with its own condition; it gets one Root message for an Alert Group whichever entries reach it.
	DestinationEntries *[]DestinationEntry `json:"destination_entries,omitempty"`

	// DestinationIds Derived from `destination_entries` on reads. When a request has no `destination_entries`, it sets them, keeping the stored condition of each Destination it keeps and `any` for a new one; beside `destination_entries` it is ignored. Removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	DestinationIds *[]PublicId `json:"destination_ids,omitempty"`

	// GroupKey Label names whose values split the Route's Alerts into Alert Groups. A missing label counts as an empty value.
	GroupKey []string `json:"group_key"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it. The Default route takes it like any Route.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Matchers Combined with AND. The Default route has none.
	Matchers []Matcher `json:"matchers"`

	// MessageLabels The label names of the line of key labels of the Route's Root messages, in their order, each shown as `name=value` when every firing Alert has the same value, as `name: N values` when they differ, and not at all when no Alert has it. Read only when `own_message_labels` is true, and then required unless the Route already has a list of its own, which an update that omits it keeps; an empty name is refused with `422` `invalid_format`, one given twice with `duplicate`, and the names a Group key takes are taken. A change, a change of the Group key while the list is computed, or a rename of the Route re-renders its open Root messages Quietly. A read gives the effective list: the Route's own, or while `own_message_labels` is false the list computed from the Group key without `alertname` and `organization.severity_label`, then `organization.team_label` and `namespace`. The computed list follows the Organization's settings as they are now, and a change of them does not change the Route's ETag; sent back with `own_message_labels` false, it is ignored.
	MessageLabels *[]string `json:"message_labels,omitempty"`

	// MinimumSeverity Omitted on a create, `none`; omitted on an update, kept. A change applies at once to the Route's open Alert Groups, Quietly and without removing an acknowledgement or a Snooze.
	MinimumSeverity *MinimumSeverity `json:"minimum_severity,omitempty"`

	// Name Unique in the Organization.
	Name string `json:"name"`

	// OwnMessageLabels Whether the Route has a list of "Labels in the message" of its own (`route.message_labels`, C-29.FR-2). False, the default of a create, computes the list from the current Group key and the Organization's settings and ignores `message_labels`; an update that omits it keeps it.
	OwnMessageLabels *bool `json:"own_message_labels,omitempty"`

	// OwningTeamId The Team that owns the Route (C-25.FR-2), which only organizes and filters and never adds delivery; `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Policy       RoutePolicy                         `json:"policy"`

	// RunTeamChains "Run the Teams' Escalation chains" (`route.run_team_chains`), read with `deliver_to_teams`: stored and returned, and acting once Escalation chains run. Omitted on a create, true; omitted on an update, kept.
	RunTeamChains *bool `json:"run_team_chains,omitempty"`

	// Urgent From 0.2.0 a read gives true exactly when `minimum_severity` is `critical`. In a request, `true` without `minimum_severity` is read as `minimum_severity` `critical`, as a 0.1 client meant it; `false`, or either value beside `minimum_severity`, changes nothing. Removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Urgent *bool `json:"urgent,omitempty"`
}

RouteInput defines model for RouteInput.

type RouteLabelSuggestion

type RouteLabelSuggestion struct {
	// AlertGroupCount How many of the Route's recent Alert Groups have an Alert with the label.
	AlertGroupCount int `json:"alert_group_count"`

	// ExampleValue The most frequent value of the label among the Alerts of those Alert Groups, the smallest of equally frequent ones.
	ExampleValue string `json:"example_value"`
	Label        string `json:"label"`
}

RouteLabelSuggestion defines model for RouteLabelSuggestion.

type RouteLabelSuggestionList

type RouteLabelSuggestionList struct {
	Items []RouteLabelSuggestion `json:"items"`
}

RouteLabelSuggestionList defines model for RouteLabelSuggestionList.

type RouteList

type RouteList struct {
	Items []Route `json:"items"`
}

RouteList All Routes in evaluation order, the Default route last. The list ETag covers the order.

type RouteOrder

type RouteOrder struct {
	// RouteIds Every Route except the Default route, in the new order.
	RouteIds []PublicId `json:"route_ids"`
}

RouteOrder defines model for RouteOrder.

type RoutePolicy

type RoutePolicy struct {
	AckTimeout          AckTimeoutPolicy `json:"ack_timeout"`
	AutoUnacknowledge   bool             `json:"auto_unacknowledge"`
	GracePeriodSeconds  int              `json:"grace_period_seconds"`
	Language            Language         `json:"language"`
	Reminders           RemindersPolicy  `json:"reminders"`
	ReopenWindowSeconds int              `json:"reopen_window_seconds"`

	// SnoozeDurationsSeconds Quick durations offered in messengers and the Snooze dialog.
	SnoozeDurationsSeconds []int `json:"snooze_durations_seconds"`

	// StormThreshold New Alert Groups per minute above which a Storm starts.
	StormThreshold int `json:"storm_threshold"`

	// Templates Go templates rendered in the template sandbox. Null uses Muster's default — the default content, which Muster lays out itself, for `root_message` and `line`, and the built-in template for `ack_timeout_notice`; `previewTemplate` returns the source of the built-in template of a kind for an empty `template`, for an editor to start from. In `updateRoute` a key left out keeps the stored template and null resets it to the built-in one; in `createRoute` a key left out is the built-in one. A template that fails its dry run against recent Stored Snapshots is refused with `422` at `/policy/templates/<name>`, with `template_syntax` or `unknown_function`, its `line` and `column`.
	Templates                   RouteTemplates `json:"templates"`
	ThreadBatchingWindowSeconds int            `json:"thread_batching_window_seconds"`
	UrgentRiseRemovesAck        bool           `json:"urgent_rise_removes_ack"`
}

RoutePolicy defines model for RoutePolicy.

type RouteProfile

type RouteProfile struct {
	GroupKey []string       `json:"group_key"`
	Id       RouteProfileId `json:"id"`

	// MinimumSeverity `none` for both profiles: neither sets a Minimum severity.
	MinimumSeverity MinimumSeverity `json:"minimum_severity"`
	Name            string          `json:"name"`
	Policy          RoutePolicy     `json:"policy"`

	// Urgent Read-only from 0.2.0: true exactly when `minimum_severity` is `critical`, so `false` for both profiles; removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Urgent bool `json:"urgent"`
}

RouteProfile A starting set of Route settings. Profiles only pre-fill the create form and are not stored.

type RouteProfileId

type RouteProfileId string

RouteProfileId defines model for RouteProfile.Id.

const (
	Informational RouteProfileId = "informational"
	Paging        RouteProfileId = "paging"
)

Defines values for RouteProfileId.

func (RouteProfileId) Valid

func (e RouteProfileId) Valid() bool

Valid indicates whether the value is a known member of the RouteProfileId enum.

type RouteProfileList

type RouteProfileList struct {
	Items []RouteProfile `json:"items"`
}

RouteProfileList defines model for RouteProfileList.

type RouteStorm

type RouteStorm struct {
	// AlertGroupCount New Alert Groups of the Route since the Storm started — the count of its Storm summary.
	AlertGroupCount int `json:"alert_group_count"`

	// Since When the Storm started.
	Since time.Time `json:"since"`
}

RouteStorm defines model for RouteStorm.

type RouteSuggestion

type RouteSuggestion struct {
	// Id `heartbeat_lost` suggests a Route for `alertname="MusterHeartbeatLost"`; `internal_alerts` suggests a Route for `alertname=~"Muster.*"`.
	Id RouteSuggestionId `json:"id"`

	// Route The Route that accepting would create at the top of the list, or for `internal_alerts` directly below the last Route other than the Default route that takes an Internal alert.
	Route RouteInput `json:"route"`
}

RouteSuggestion defines model for RouteSuggestion.

type RouteSuggestionAcceptance

type RouteSuggestionAcceptance struct {
	// DestinationIds Destinations for the created Route; required for `internal_alerts`.
	DestinationIds *[]PublicId `json:"destination_ids,omitempty"`
}

RouteSuggestionAcceptance defines model for RouteSuggestionAcceptance.

type RouteSuggestionId

type RouteSuggestionId string

RouteSuggestionId `heartbeat_lost` suggests a Route for `alertname="MusterHeartbeatLost"`; `internal_alerts` suggests a Route for `alertname=~"Muster.*"`.

const (
	RouteSuggestionIdHeartbeatLost  RouteSuggestionId = "heartbeat_lost"
	RouteSuggestionIdInternalAlerts RouteSuggestionId = "internal_alerts"
)

Defines values for RouteSuggestionId.

func (RouteSuggestionId) Valid

func (e RouteSuggestionId) Valid() bool

Valid indicates whether the value is a known member of the RouteSuggestionId enum.

type RouteSuggestionList

type RouteSuggestionList struct {
	Items []RouteSuggestion `json:"items"`
}

RouteSuggestionList defines model for RouteSuggestionList.

type RouteTemplates

type RouteTemplates struct {
	AckTimeoutNotice nullable.Nullable[string] `json:"ack_timeout_notice,omitempty"`
	Line             nullable.Nullable[string] `json:"line,omitempty"`

	// RootMessage Renders only the body of the Root message — from the environment and start time to the Alerts; the status colour, heading, links, notices, footer and buttons always come from Muster.
	RootMessage nullable.Nullable[string] `json:"root_message,omitempty"`
}

RouteTemplates Go templates rendered in the template sandbox. Null uses Muster's default — the default content, which Muster lays out itself, for `root_message` and `line`, and the built-in template for `ack_timeout_notice`; `previewTemplate` returns the source of the built-in template of a kind for an empty `template`, for an editor to start from. In `updateRoute` a key left out keeps the stored template and null resets it to the built-in one; in `createRoute` a key left out is the built-in one. A template that fails its dry run against recent Stored Snapshots is refused with `422` at `/policy/templates/<name>`, with `template_syntax` or `unknown_function`, its `line` and `column`.

type RunBulkCommandJSONRequestBody

type RunBulkCommandJSONRequestBody = BulkCommandRequest

RunBulkCommandJSONRequestBody defines body for RunBulkCommand for application/json ContentType.

type RunBulkCommandResponse

type RunBulkCommandResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BulkCommandResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RunBulkCommandResponse429Headers
}

func ParseRunBulkCommandResponse

func ParseRunBulkCommandResponse(rsp *http.Response) (*RunBulkCommandResponse, error)

ParseRunBulkCommandResponse parses an HTTP response from a RunBulkCommandWithResponse call

func (RunBulkCommandResponse) ContentType

func (r RunBulkCommandResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RunBulkCommandResponse) GetApplicationproblemJSON400

func (r RunBulkCommandResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (RunBulkCommandResponse) GetApplicationproblemJSON401

func (r RunBulkCommandResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RunBulkCommandResponse) GetApplicationproblemJSON403

func (r RunBulkCommandResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RunBulkCommandResponse) GetApplicationproblemJSON422

func (r RunBulkCommandResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (RunBulkCommandResponse) GetApplicationproblemJSON429

func (r RunBulkCommandResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (RunBulkCommandResponse) GetBody

func (r RunBulkCommandResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RunBulkCommandResponse) GetJSON200

func (r RunBulkCommandResponse) GetJSON200() *BulkCommandResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RunBulkCommandResponse) Status

func (r RunBulkCommandResponse) Status() string

Status returns HTTPResponse.Status

func (RunBulkCommandResponse) StatusCode

func (r RunBulkCommandResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RunBulkCommandResponse429Headers

type RunBulkCommandResponse429Headers struct {
	RetryAfter *int
}

RunBulkCommandResponse429Headers the declared response headers of an HTTP 429 response for RunBulkCommand

type Schedule

type Schedule struct {
	CreatedAt time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update.
	Etag *string `json:"etag,omitempty"`

	// GapAlert Whether a Schedule reports its gaps as the Internal alert `MusterScheduleGap` (`schedule.gap_alert`, C-27.FR-7): `by_default`, on while the Schedule is its Team's main one, so that the alert follows when another Schedule becomes main; `on`; or `off`, as for a Schedule that covers only part of the day.
	GapAlert ScheduleGapAlert `json:"gap_alert"`

	// GapAlertActive Whether the Leader's gap scan raises `MusterScheduleGap` for the Schedule now — true with `gap_alert` `on`, and with `by_default` while the Schedule is its Team's main one.
	GapAlertActive *bool `json:"gap_alert_active,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId `json:"id"`
	Main bool     `json:"main"`

	// ManagedBy The name of the tool that keeps the Schedule as code, such as `terraform`, or null when none does (C-33.FR-11); see `ScheduleInput`.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// NextGap The first gap within `schedule.gap_view` from the business clock's now, or null; a gap that has begun starts now, and one that lasts beyond the view ends with it.
	NextGap nullable.Nullable[ScheduleGap] `json:"next_gap,omitempty"`

	// RotationLayers From the lowest to the highest.
	RotationLayers []RotationLayer `json:"rotation_layers"`

	// Team The Team an object names, with its slug; `deleted` is true for a Team that was deleted since.
	Team TeamRef `json:"team"`

	// TeamId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	TeamId   PublicId `json:"team_id"`
	TimeZone string   `json:"time_zone"`
}

Schedule defines model for Schedule.

type ScheduleGap

type ScheduleGap struct {
	End   time.Time `json:"end"`
	Start time.Time `json:"start"`
}

ScheduleGap A gap of a Schedule, a time when no Override and no Rotation layer has a Shift with a person who may be Paged.

type ScheduleGapAlert

type ScheduleGapAlert string

ScheduleGapAlert Whether a Schedule reports its gaps as the Internal alert `MusterScheduleGap` (`schedule.gap_alert`, C-27.FR-7): `by_default`, on while the Schedule is its Team's main one, so that the alert follows when another Schedule becomes main; `on`; or `off`, as for a Schedule that covers only part of the day.

const (
	ByDefault ScheduleGapAlert = "by_default"
	Off       ScheduleGapAlert = "off"
	On        ScheduleGapAlert = "on"
)

Defines values for ScheduleGapAlert.

func (ScheduleGapAlert) Valid

func (e ScheduleGapAlert) Valid() bool

Valid indicates whether the value is a known member of the ScheduleGapAlert enum.

type ScheduleId

type ScheduleId = PublicId

ScheduleId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type ScheduleInput

type ScheduleInput struct {
	// GapAlert Whether the Schedule reports its gaps as the Internal alert `MusterScheduleGap` (`schedule.gap_alert`); `by_default` on a creation when omitted, and kept on an update when omitted.
	GapAlert *ScheduleGapAlert `json:"gap_alert,omitempty"`

	// Main True makes the Schedule its Team's main Schedule, whose On-call is the Team's; the first Schedule of a Team is main. False on the main Schedule is refused with `422` `unsupported`: mark another one main instead.
	Main *bool `json:"main,omitempty"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Name Unique in the Team, ignoring case.
	Name string `json:"name"`

	// RotationLayers From the lowest to the highest; at most 20, else `422` `out_of_range` at `/rotation_layers`.
	RotationLayers []RotationLayerInput `json:"rotation_layers"`

	// TeamId The Team of the Schedule, set on creation; a different one on an update is refused with `422` `unsupported`.
	TeamId PublicId `json:"team_id"`

	// TimeZone IANA time zone of the Schedule (`schedule.time_zone`); the Organization's at the time of creation when omitted, and kept on an update when omitted.
	TimeZone *string `json:"time_zone,omitempty"`
}

ScheduleInput defines model for ScheduleInput.

type ScheduleList

type ScheduleList struct {
	Items      []Schedule                `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

ScheduleList defines model for ScheduleList.

type ScheduleOnCall

type ScheduleOnCall struct {
	From time.Time `json:"from"`

	// Overrides The Overrides in the period, in the order they were created.
	Overrides []ScheduleOverride `json:"overrides"`

	// RotationLayers The Shifts of each Rotation layer in the period, from the lowest.
	RotationLayers []RotationLayerShifts `json:"rotation_layers"`

	// Segments The period cut into segments, adjacent segments of the same person and source joined.
	Segments []OnCallSegment `json:"segments"`
	To       time.Time       `json:"to"`

	// Warnings Each person of a Rotation layer or an Override in the period who may not be Paged, once per person and Rotation layer, or per Override.
	Warnings []ScheduleWarning `json:"warnings"`
}

ScheduleOnCall The Result of a Schedule over a period, with what it is made of.

type ScheduleOverride

type ScheduleOverride struct {
	CreatedAt time.Time `json:"created_at"`

	// CreatedBy Who resolved an Alert Group or wrote a Note, or is a row of the statistics by people: a User or a Service account. An Owner is always a User (`UserRef`), because a Service account cannot become an Owner; a Service account is a row of the statistics by people only through what it resolved.
	CreatedBy ActorRef  `json:"created_by"`
	End       time.Time `json:"end"`
	Etag      *string   `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id           PublicId                   `json:"id"`
	ReplacesUser nullable.Nullable[UserRef] `json:"replaces_user"`

	// ReplacesUserId A `public_id` in the format of `PublicId`, or null.
	ReplacesUserId nullable.Nullable[NullablePublicId] `json:"replaces_user_id"`
	Start          time.Time                           `json:"start"`

	// User A User. Used wherever the person must be a User: the Owner and the previous Owner.
	User UserRef `json:"user"`

	// UserId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	UserId PublicId `json:"user_id"`
}

ScheduleOverride defines model for ScheduleOverride.

type ScheduleOverrideInput

type ScheduleOverrideInput struct {
	// End After `start` and after the business clock's now (P-91), at most 31 days after `start`.
	End time.Time `json:"end"`

	// ReplacesUserId The person whose Shift it takes, which the Schedule shows and which changes nothing in the On-call; anyone, or null.
	ReplacesUserId nullable.Nullable[NullablePublicId] `json:"replaces_user_id,omitempty"`

	// Start At most 5 minutes before the business clock's now; fixed once the Override has begun.
	Start time.Time `json:"start"`

	// UserId The person who takes the Shift.
	UserId PublicId `json:"user_id"`
}

ScheduleOverrideInput defines model for ScheduleOverrideInput.

type ScheduleOverrideList

type ScheduleOverrideList struct {
	Items      []ScheduleOverride        `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

ScheduleOverrideList defines model for ScheduleOverrideList.

type ScheduleRef

type ScheduleRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId `json:"id"`
	Name string   `json:"name"`

	// Team The Team an object names, with its slug; `deleted` is true for a Team that was deleted since.
	Team TeamRef `json:"team"`
}

ScheduleRef The Schedule an object names, with its Team.

type ScheduleWarning

type ScheduleWarning struct {
	// Destination The Destination of the Team, or of an Escalation chain that Pages the Schedule — of a Route or a Team that names the chain —, that a Mention of the person cannot reach; null for another kind.
	Destination nullable.Nullable[DestinationRef] `json:"destination"`

	// End The end of the gap, or of the segment of `unreachable`, cut to the period; null for another kind.
	End nullable.Nullable[time.Time] `json:"end"`

	// GatewayReaches Set on every `unreachable` warning, true when the person has a confirmed contact at a Notification gateway, so that a call through it reaches them; whether that gateway is Broken is not considered. Left out for another kind.
	GatewayReaches *bool `json:"gateway_reaches,omitempty"`

	// Kind `disabled`, `viewer` and `not_in_team` name a person whose Shifts or Override are skipped; `gap` is a gap of the period, with its `start` and `end` and no person; `unreachable` is a segment of the period, with its `start` and `end`, in which its person is On-call and a Mention of them cannot reach the `destination`, with the `messenger` and the `reason` (C-27.FR-8).
	Kind ScheduleWarningKind `json:"kind"`

	// Messenger The messenger of `destination` — the type of its Connection, or `webhook` for an outgoing webhook; null for another kind.
	Messenger nullable.Nullable[DestinationType] `json:"messenger"`

	// OverrideId The Override that is skipped, or for `unreachable` the one that makes the person On-call in the segment; null otherwise.
	OverrideId nullable.Nullable[NullablePublicId] `json:"override_id"`

	// Reason Why a Mention of the person cannot reach `destination`; null for another kind.
	Reason nullable.Nullable[ReachReason] `json:"reason"`

	// RotationLayer The Rotation layer of the Shifts that are skipped, or for `unreachable` the one whose Shift makes the person On-call in the segment; null otherwise.
	RotationLayer nullable.Nullable[EntityRef] `json:"rotation_layer"`

	// Start The start of the gap, or of the segment of `unreachable`, cut to the period; null for another kind.
	Start nullable.Nullable[time.Time] `json:"start"`

	// User Null for a gap.
	User nullable.Nullable[UserRef] `json:"user"`
}

ScheduleWarning defines model for ScheduleWarning.

type ScheduleWarningKind

type ScheduleWarningKind string

ScheduleWarningKind `disabled`, `viewer` and `not_in_team` name a person whose Shifts or Override are skipped; `gap` is a gap of the period, with its `start` and `end` and no person; `unreachable` is a segment of the period, with its `start` and `end`, in which its person is On-call and a Mention of them cannot reach the `destination`, with the `messenger` and the `reason` (C-27.FR-8).

const (
	ScheduleWarningKindDisabled    ScheduleWarningKind = "disabled"
	ScheduleWarningKindGap         ScheduleWarningKind = "gap"
	ScheduleWarningKindNotInTeam   ScheduleWarningKind = "not_in_team"
	ScheduleWarningKindUnreachable ScheduleWarningKind = "unreachable"
	ScheduleWarningKindViewer      ScheduleWarningKind = "viewer"
)

Defines values for ScheduleWarningKind.

func (ScheduleWarningKind) Valid

func (e ScheduleWarningKind) Valid() bool

Valid indicates whether the value is a known member of the ScheduleWarningKind enum.

type SecretName

type SecretName = string

SecretName defines model for SecretName.

type SecretStatus

type SecretStatus struct {
	Set       bool                         `json:"set"`
	UpdatedAt nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
}

SecretStatus What a read shows instead of a Secret. The value itself is never returned.

type SendMyGatewayContactCodeResponse

type SendMyGatewayContactCodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *GatewayContact
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
	ApplicationproblemJSON502 *GatewayRefused
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SendMyGatewayContactCodeResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *SendMyGatewayContactCodeResponse503Headers
}

func ParseSendMyGatewayContactCodeResponse

func ParseSendMyGatewayContactCodeResponse(rsp *http.Response) (*SendMyGatewayContactCodeResponse, error)

ParseSendMyGatewayContactCodeResponse parses an HTTP response from a SendMyGatewayContactCodeWithResponse call

func (SendMyGatewayContactCodeResponse) ContentType

func (r SendMyGatewayContactCodeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendMyGatewayContactCodeResponse) GetApplicationproblemJSON401

func (r SendMyGatewayContactCodeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (SendMyGatewayContactCodeResponse) GetApplicationproblemJSON403

func (r SendMyGatewayContactCodeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (SendMyGatewayContactCodeResponse) GetApplicationproblemJSON404

func (r SendMyGatewayContactCodeResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (SendMyGatewayContactCodeResponse) GetApplicationproblemJSON422

func (r SendMyGatewayContactCodeResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (SendMyGatewayContactCodeResponse) GetApplicationproblemJSON429

func (r SendMyGatewayContactCodeResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (SendMyGatewayContactCodeResponse) GetApplicationproblemJSON502

func (r SendMyGatewayContactCodeResponse) GetApplicationproblemJSON502() *GatewayRefused

GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response

func (SendMyGatewayContactCodeResponse) GetApplicationproblemJSON503

func (r SendMyGatewayContactCodeResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (SendMyGatewayContactCodeResponse) GetBody

func (r SendMyGatewayContactCodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SendMyGatewayContactCodeResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (SendMyGatewayContactCodeResponse) Status

Status returns HTTPResponse.Status

func (SendMyGatewayContactCodeResponse) StatusCode

func (r SendMyGatewayContactCodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendMyGatewayContactCodeResponse429Headers

type SendMyGatewayContactCodeResponse429Headers struct {
	RetryAfter *int
}

SendMyGatewayContactCodeResponse429Headers the declared response headers of an HTTP 429 response for SendMyGatewayContactCode

type SendMyGatewayContactCodeResponse503Headers

type SendMyGatewayContactCodeResponse503Headers struct {
	RetryAfter *int
}

SendMyGatewayContactCodeResponse503Headers the declared response headers of an HTTP 503 response for SendMyGatewayContactCode

type ServiceAccount

type ServiceAccount struct {
	CreatedAt time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id         PublicId             `json:"id"`
	Name       string               `json:"name"`
	Role       RoleName             `json:"role"`
	Status     ServiceAccountStatus `json:"status"`
	TokenCount int                  `json:"token_count"`
}

ServiceAccount A non-person identity with a Role and tokens. It cannot sign in and has no Account links. It can never become the Owner of an Alert Group: Acknowledge and "Still on it" from it are refused with `command-refused` `owner_must_be_user`; it may Resolve, Snooze and add Notes.

type ServiceAccountId

type ServiceAccountId = PublicId

ServiceAccountId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type ServiceAccountInput

type ServiceAccountInput struct {
	Name string   `json:"name"`
	Role RoleName `json:"role"`
}

ServiceAccountInput defines model for ServiceAccountInput.

type ServiceAccountList

type ServiceAccountList struct {
	Items      []ServiceAccount          `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

ServiceAccountList defines model for ServiceAccountList.

type ServiceAccountStatus

type ServiceAccountStatus string

ServiceAccountStatus defines model for ServiceAccount.Status.

const (
	ServiceAccountStatusActive   ServiceAccountStatus = "active"
	ServiceAccountStatusDisabled ServiceAccountStatus = "disabled"
)

Defines values for ServiceAccountStatus.

func (ServiceAccountStatus) Valid

func (e ServiceAccountStatus) Valid() bool

Valid indicates whether the value is a known member of the ServiceAccountStatus enum.

type ServiceAccountToken

type ServiceAccountToken struct {
	CreatedAt time.Time `json:"created_at"`

	// ExpiresAt Null means the token never expires; the UI warns.
	ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id              PublicId                     `json:"id"`
	LastUsedAddress nullable.Nullable[string]    `json:"last_used_address,omitempty"`
	LastUsedAt      nullable.Nullable[time.Time] `json:"last_used_at,omitempty"`
	Name            string                       `json:"name"`
}

ServiceAccountToken defines model for ServiceAccountToken.

type ServiceAccountTokenCreate

type ServiceAccountTokenCreate struct {
	ExpiresAt nullable.Nullable[time.Time] `json:"expires_at,omitempty"`
	Name      string                       `json:"name"`
}

ServiceAccountTokenCreate defines model for ServiceAccountTokenCreate.

type ServiceAccountTokenCreated

type ServiceAccountTokenCreated struct {
	Token ServiceAccountToken `json:"token"`

	// Value The token, starting with `mstr_sat_`. Shown once.
	Value string `json:"value"`
}

ServiceAccountTokenCreated defines model for ServiceAccountTokenCreated.

type ServiceAccountTokenList

type ServiceAccountTokenList struct {
	Items []ServiceAccountToken `json:"items"`
}

ServiceAccountTokenList defines model for ServiceAccountTokenList.

type Session

type Session struct {
	// CsrfToken Send as `X-CSRF-Token` on every mutating request made with the session cookie.
	CsrfToken string `json:"csrf_token"`

	// DocsVersion The version segment of the documentation site the web UI links to (C-21.FR-11), derived from the version of the running build by the rule of the `runbook_url` of Internal alerts (C-19.FR-9) — the `major.minor` of a release `X.Y.Z`, or `latest` for any other version (a development build, a snapshot image, a pre-release).
	DocsVersion   string    `json:"docs_version"`
	ExpiresAt     time.Time `json:"expires_at"`
	IdleExpiresAt time.Time `json:"idle_expires_at"`

	// Method How the session signed in. OIDC accounts are re-checked at the identity provider per user, in the background, with the offline token the IdP granted at sign-in (`offline_access`); when the IdP refuses the user, all of the user's sessions end and the next request gets `401` with `oidc_session_ended`. An `oidc` session of a user without an offline token ends at most `auth.oidc_fallback_session_lifetime` after sign-in.
	Method SessionMethod `json:"method"`

	// Permissions Empty while the session is limited (`totp_required`, `totp_enrolment_required`).
	Permissions []Permission `json:"permissions"`

	// State `totp_required` after the password (or OIDC) step when the user has TOTP and the code was not yet given; `totp_enrolment_required` while the Organization's TOTP policy demands enrolment. In both limited states `permissions` is empty and only `getCurrentSession`, `deleteCurrentSession` and, per state, `submitSessionTotp` (`totp_required`) or `beginTotpEnrolment`, `confirmTotpEnrolment` and `getMyTotp` (`totp_enrolment_required`) work; everything else answers `403` with the code `totp_required` or `totp_enrolment_required`.
	State SessionState `json:"state"`
	User  User         `json:"user"`
}

Session defines model for Session.

type SessionCreate

type SessionCreate struct {
	// Login Compared case-insensitively.
	Login    string  `json:"login"`
	Password *string `json:"password,omitempty"`

	// RecoveryCode A single-use recovery code instead of `totp_code`.
	RecoveryCode *string `json:"recovery_code,omitempty"`

	// TotpCode Current TOTP code, if the user has TOTP and wants to finish in one request.
	TotpCode *string `json:"totp_code,omitempty"`
}

SessionCreate defines model for SessionCreate.

type SessionInfo

type SessionInfo struct {
	Address   nullable.Nullable[string] `json:"address,omitempty"`
	CreatedAt time.Time                 `json:"created_at"`
	Current   bool                      `json:"current"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id         PublicId  `json:"id"`
	LastUsedAt time.Time `json:"last_used_at"`

	// Method How the session signed in. OIDC accounts are re-checked at the identity provider per user, in the background, with the offline token the IdP granted at sign-in (`offline_access`); when the IdP refuses the user, all of the user's sessions end and the next request gets `401` with `oidc_session_ended`. An `oidc` session of a user without an offline token ends at most `auth.oidc_fallback_session_lifetime` after sign-in.
	Method    SessionMethod             `json:"method"`
	UserAgent nullable.Nullable[string] `json:"user_agent,omitempty"`
}

SessionInfo defines model for SessionInfo.

type SessionInfoList

type SessionInfoList struct {
	Items []SessionInfo `json:"items"`
}

SessionInfoList defines model for SessionInfoList.

type SessionMethod

type SessionMethod string

SessionMethod How the session signed in. OIDC accounts are re-checked at the identity provider per user, in the background, with the offline token the IdP granted at sign-in (`offline_access`); when the IdP refuses the user, all of the user's sessions end and the next request gets `401` with `oidc_session_ended`. An `oidc` session of a user without an offline token ends at most `auth.oidc_fallback_session_lifetime` after sign-in.

const (
	SessionMethodLocal SessionMethod = "local"
	SessionMethodOidc  SessionMethod = "oidc"
)

Defines values for SessionMethod.

func (SessionMethod) Valid

func (e SessionMethod) Valid() bool

Valid indicates whether the value is a known member of the SessionMethod enum.

type SessionState

type SessionState string

SessionState `totp_required` after the password (or OIDC) step when the user has TOTP and the code was not yet given; `totp_enrolment_required` while the Organization's TOTP policy demands enrolment. In both limited states `permissions` is empty and only `getCurrentSession`, `deleteCurrentSession` and, per state, `submitSessionTotp` (`totp_required`) or `beginTotpEnrolment`, `confirmTotpEnrolment` and `getMyTotp` (`totp_enrolment_required`) work; everything else answers `403` with the code `totp_required` or `totp_enrolment_required`.

const (
	SessionStateActive                SessionState = "active"
	SessionStateTotpEnrolmentRequired SessionState = "totp_enrolment_required"
	SessionStateTotpRequired          SessionState = "totp_required"
)

Defines values for SessionState.

func (SessionState) Valid

func (e SessionState) Valid() bool

Valid indicates whether the value is a known member of the SessionState enum.

type SessionTotp

type SessionTotp struct {
	// RecoveryCode A single-use recovery code.
	RecoveryCode *string `json:"recovery_code,omitempty"`

	// TotpCode Current TOTP code.
	TotpCode *string `json:"totp_code,omitempty"`
}

SessionTotp Exactly one of the two fields.

type SetDestinationSecretJSONRequestBody

type SetDestinationSecretJSONRequestBody = DestinationSecretInput

SetDestinationSecretJSONRequestBody defines body for SetDestinationSecret for application/json ContentType.

type SetDestinationSecretParams

type SetDestinationSecretParams struct {
	// IfMatch Optional ETag; when present and stale, the request gets `412`.
	IfMatch *IfMatchOptional `json:"If-Match,omitempty"`
}

SetDestinationSecretParams defines parameters for SetDestinationSecret.

type SetDestinationSecretResponse

type SetDestinationSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DestinationSecret
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SetDestinationSecretResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SetDestinationSecretResponse429Headers
}

func ParseSetDestinationSecretResponse

func ParseSetDestinationSecretResponse(rsp *http.Response) (*SetDestinationSecretResponse, error)

ParseSetDestinationSecretResponse parses an HTTP response from a SetDestinationSecretWithResponse call

func (SetDestinationSecretResponse) ContentType

func (r SetDestinationSecretResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetDestinationSecretResponse) GetApplicationproblemJSON400

func (r SetDestinationSecretResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (SetDestinationSecretResponse) GetApplicationproblemJSON401

func (r SetDestinationSecretResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (SetDestinationSecretResponse) GetApplicationproblemJSON403

func (r SetDestinationSecretResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (SetDestinationSecretResponse) GetApplicationproblemJSON404

func (r SetDestinationSecretResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (SetDestinationSecretResponse) GetApplicationproblemJSON409

func (r SetDestinationSecretResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (SetDestinationSecretResponse) GetApplicationproblemJSON412

func (r SetDestinationSecretResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (SetDestinationSecretResponse) GetApplicationproblemJSON422

func (r SetDestinationSecretResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (SetDestinationSecretResponse) GetApplicationproblemJSON429

func (r SetDestinationSecretResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (SetDestinationSecretResponse) GetBody

func (r SetDestinationSecretResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetDestinationSecretResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetDestinationSecretResponse) Status

Status returns HTTPResponse.Status

func (SetDestinationSecretResponse) StatusCode

func (r SetDestinationSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetDestinationSecretResponse200Headers

type SetDestinationSecretResponse200Headers struct {
	ETag *string
}

SetDestinationSecretResponse200Headers the declared response headers of an HTTP 200 response for SetDestinationSecret

type SetDestinationSecretResponse429Headers

type SetDestinationSecretResponse429Headers struct {
	RetryAfter *int
}

SetDestinationSecretResponse429Headers the declared response headers of an HTTP 429 response for SetDestinationSecret

type SeverityCondition

type SeverityCondition string

SeverityCondition The Severity condition of a Destination of a Route or a Team (C-26.FR-1), checked against the Severity level of the Alert Group, the highest level of its firing Alerts raised to the Route's Minimum severity. `any` meets every level, `critical` only critical, `below_critical` every level but critical.

const (
	SeverityConditionAny           SeverityCondition = "any"
	SeverityConditionBelowCritical SeverityCondition = "below_critical"
	SeverityConditionCritical      SeverityCondition = "critical"
)

Defines values for SeverityCondition.

func (SeverityCondition) Valid

func (e SeverityCondition) Valid() bool

Valid indicates whether the value is a known member of the SeverityCondition enum.

type SeverityLevel

type SeverityLevel string

SeverityLevel defines model for SeverityLevel.

const (
	SeverityLevelCritical SeverityLevel = "critical"
	SeverityLevelInfo     SeverityLevel = "info"
	SeverityLevelWarning  SeverityLevel = "warning"
)

Defines values for SeverityLevel.

func (SeverityLevel) Valid

func (e SeverityLevel) Valid() bool

Valid indicates whether the value is a known member of the SeverityLevel enum.

type SeverityLevelStyle

type SeverityLevelStyle struct {
	// Color CSS hex colour, for example `#d32f2f`.
	Color string        `json:"color"`
	Emoji string        `json:"emoji"`
	Level SeverityLevel `json:"level"`
}

SeverityLevelStyle defines model for SeverityLevelStyle.

type SeverityMappingEntry

type SeverityMappingEntry struct {
	Level SeverityLevel `json:"level"`
	Value string        `json:"value"`
}

SeverityMappingEntry defines model for SeverityMappingEntry.

type SeverityValue

type SeverityValue struct {
	Count int           `json:"count"`
	Level SeverityLevel `json:"level"`

	// Mapped False when the value has no mapping and counts as warning.
	Mapped bool   `json:"mapped"`
	Value  string `json:"value"`
}

SeverityValue defines model for SeverityValue.

type SeverityValueList

type SeverityValueList struct {
	Items      []SeverityValue `json:"items"`
	WindowDays int             `json:"window_days"`
}

SeverityValueList defines model for SeverityValueList.

type ShiftLength

type ShiftLength string

ShiftLength How long a Shift of a Rotation layer lasts: a day, a week handed over on `handover_day`, or `shift_seconds` of wall-clock time.

const (
	Day   ShiftLength = "day"
	Hours ShiftLength = "hours"
	Week  ShiftLength = "week"
)

Defines values for ShiftLength.

func (ShiftLength) Valid

func (e ShiftLength) Valid() bool

Valid indicates whether the value is a known member of the ShiftLength enum.

type SignInOptions

type SignInOptions struct {
	Oidc struct {
		// DisplayName Provider name for the button "Sign in with {display_name}". Present while OIDC is enabled.
		DisplayName *string `json:"display_name,omitempty"`
		Enabled     bool    `json:"enabled"`
	} `json:"oidc"`
}

SignInOptions What the sign-in page offers besides the local form, which is always shown.

type SigningSecretGenerated

type SigningSecretGenerated struct {
	// Secret The new Signing secret. Shown once.
	Secret string              `json:"secret"`
	Status SigningSecretStatus `json:"status"`
}

SigningSecretGenerated defines model for SigningSecretGenerated.

type SigningSecretStatus

type SigningSecretStatus struct {
	// PreviousActiveSince Set while the previous Signing secret still signs.
	PreviousActiveSince nullable.Nullable[time.Time] `json:"previous_active_since,omitempty"`
	Set                 bool                         `json:"set"`
	UpdatedAt           nullable.Nullable[time.Time] `json:"updated_at,omitempty"`
}

SigningSecretStatus defines model for SigningSecretStatus.

type SlackChannel

type SlackChannel struct {
	// Id The channel's id, `C…` or `G…`, as a Slack Destination takes it.
	Id        string `json:"id"`
	IsPrivate bool   `json:"is_private"`

	// Name The channel's name without `#`. Untrusted text from Slack.
	Name string `json:"name"`
}

SlackChannel A channel of a Slack Connection's workspace that the bot is a member of.

type SlackChannelList

type SlackChannelList struct {
	// Items By name.
	Items []SlackChannel `json:"items"`

	// Truncated More channels were left after the fifth page of `conversations.list`; a channel that is not listed is still saved by its id.
	Truncated bool `json:"truncated"`
}

SlackChannelList defines model for SlackChannelList.

type SlackCheckInfo

type SlackCheckInfo struct {
	// AppId The Slack app's id (`A…`); null in `http` mode, which has no step `app_token`, and when that step failed.
	AppId nullable.Nullable[string] `json:"app_id"`

	// BotUserId The bot's user id (`U…`).
	BotUserId string `json:"bot_user_id"`

	// TeamId The workspace's id (`T…`).
	TeamId string `json:"team_id"`

	// TeamName The workspace's name.
	TeamName string `json:"team_name"`
}

SlackCheckInfo What a check of a Slack Connection found.

type SlackConnection

type SlackConnection struct {
	// AppId The Slack app's id (`A…`), found by the step `app_token` of a check in `socket` mode; null before one and after the bot token changed.
	AppId nullable.Nullable[string] `json:"app_id,omitempty"`

	// AppTokenStatus What a read shows instead of a Secret. The value itself is never returned.
	AppTokenStatus SecretStatus `json:"app_token_status"`

	// BotName The bot's name (`user` of `auth.test`), as the last successful Connection check found it; null before one and after the bot token changed.
	BotName nullable.Nullable[string] `json:"bot_name,omitempty"`

	// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
	BotTokenStatus SecretStatus `json:"bot_token_status"`

	// BotUserId The bot's user id (`U…`); null as `bot_name`.
	BotUserId nullable.Nullable[string] `json:"bot_user_id,omitempty"`

	// CallbackUrl Where Slack posts the button presses of this Connection in `http` mode, `<MUSTER_INGEST_URL>/api/v1/callbacks/slack/<id>` on the ingest listener; enter it as the Interactivity Request URL of the Slack app. Slack's own address is fixed, so the Connection has no address field.
	CallbackUrl *string   `json:"callback_url,omitempty"`
	CreatedAt   time.Time `json:"created_at"`

	// DestinationCount A Connection used by Destinations cannot be deleted.
	DestinationCount int `json:"destination_count"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
	EventMode SlackEventMode `json:"event_mode"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as read. The password is a Secret.
	Proxy ProxyConfig `json:"proxy"`

	// SlackSigningSecretStatus What a read shows instead of a Secret. The value itself is never returned.
	SlackSigningSecretStatus SecretStatus `json:"slack_signing_secret_status"`

	// Socket Socket Mode only. What the last `hello` of the Leader's Socket Mode connection counted (C-24.FR-2, FR-9); null in `http` mode and before the first `hello` after the Connection was saved.
	Socket nullable.Nullable[SlackSocketStatus] `json:"socket,omitempty"`

	// TeamId The workspace's id (`T…`); null as `bot_name`.
	TeamId nullable.Nullable[string] `json:"team_id,omitempty"`

	// TeamName The workspace's name; null as `bot_name`.
	TeamName nullable.Nullable[string] `json:"team_name,omitempty"`
	Type     SlackConnectionType       `json:"type"`

	// UsergroupsRead Whether the bot token had the optional scope `usergroups:read` at the last successful Connection check (C-24.FR-1), which Team mentions and user group entries need; a check that no longer finds it sets it false. An installed Slack app gets a new scope only when it is reinstalled, which keeps the bot token. Null as `bot_name`.
	UsergroupsRead nullable.Nullable[bool] `json:"usergroups_read,omitempty"`
}

SlackConnection defines model for SlackConnection.

type SlackConnectionBase

type SlackConnectionBase struct {
	// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
	EventMode SlackEventMode `json:"event_mode"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`
	Type      SlackConnectionBaseType   `json:"type"`
}

SlackConnectionBase defines model for SlackConnectionBase.

type SlackConnectionBaseType

type SlackConnectionBaseType string

SlackConnectionBaseType defines model for SlackConnectionBase.Type.

const (
	SlackConnectionBaseTypeSlack SlackConnectionBaseType = "slack"
)

Defines values for SlackConnectionBaseType.

func (SlackConnectionBaseType) Valid

func (e SlackConnectionBaseType) Valid() bool

Valid indicates whether the value is a known member of the SlackConnectionBaseType enum.

type SlackConnectionDraft

type SlackConnectionDraft struct {
	// AppToken An app-level token (`xapp-…`) typed in the form, for the step `app_token` in `socket` mode, sent to Slack through the draft's proxy. Omit it to use the stored one of `connection_id`, which goes to Slack only through its saved proxy; without either the step is skipped.
	AppToken *string `json:"app_token,omitempty"`

	// BotToken A bot token (`xoxb-…`) typed in the form, sent to Slack through the draft's proxy. Omit it to use the stored token of `connection_id`, which goes to Slack only through its saved proxy; without either only the dry probe runs.
	BotToken *string `json:"bot_token,omitempty"`

	// ConnectionId The saved Slack Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
	ConnectionId *PublicId `json:"connection_id,omitempty"`

	// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
	EventMode SlackEventMode `json:"event_mode"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy *ProxyConfigInput        `json:"proxy,omitempty"`
	Type  SlackConnectionDraftType `json:"type"`
}

SlackConnectionDraft A Slack Connection as its form holds it, for `checkConnectionDraft`; Slack's address is fixed, so only the proxy can differ from the saved Connection, and the Slack signing secret is not checked.

type SlackConnectionDraftType

type SlackConnectionDraftType string

SlackConnectionDraftType defines model for SlackConnectionDraft.Type.

const (
	SlackConnectionDraftTypeSlack SlackConnectionDraftType = "slack"
)

Defines values for SlackConnectionDraftType.

func (SlackConnectionDraftType) Valid

func (e SlackConnectionDraftType) Valid() bool

Valid indicates whether the value is a known member of the SlackConnectionDraftType enum.

type SlackConnectionInput

type SlackConnectionInput struct {
	// AppToken Write-only Secret, the app-level token (`xapp-…`, with the scope `connections:write`); required in `socket` mode, sent now or stored. Omit on update to keep the stored one; a change to `http` keeps it.
	AppToken *string `json:"app_token,omitempty"`

	// BotToken Write-only Secret, the bot token (`xoxb-…`). Omit on update to keep the stored one; a new one forgets what the last check learned.
	BotToken *string `json:"bot_token,omitempty"`

	// EventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.
	EventMode SlackEventMode `json:"event_mode"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy ProxyConfigInput `json:"proxy"`

	// SlackSigningSecret Write-only Secret, the Slack signing secret of the app; required in `http` mode, sent now or stored. Omit on update to keep the stored one; a change to `socket` keeps it. It is never sent anywhere.
	SlackSigningSecret *string                  `json:"slack_signing_secret,omitempty"`
	Type               SlackConnectionInputType `json:"type"`
}

SlackConnectionInput defines model for SlackConnectionInput.

type SlackConnectionInputType

type SlackConnectionInputType string

SlackConnectionInputType defines model for SlackConnectionInput.Type.

const (
	SlackConnectionInputTypeSlack SlackConnectionInputType = "slack"
)

Defines values for SlackConnectionInputType.

func (SlackConnectionInputType) Valid

func (e SlackConnectionInputType) Valid() bool

Valid indicates whether the value is a known member of the SlackConnectionInputType enum.

type SlackConnectionType

type SlackConnectionType string

SlackConnectionType defines model for SlackConnection.Type.

const (
	SlackConnectionTypeSlack SlackConnectionType = "slack"
)

Defines values for SlackConnectionType.

func (SlackConnectionType) Valid

func (e SlackConnectionType) Valid() bool

Valid indicates whether the value is a known member of the SlackConnectionType enum.

type SlackDestination

type SlackDestination struct {
	// Buttons A Destination's button set, `destination.buttons` (C-28.FR-8): `organization`, "As in the Organization", the default, follows the Organization's set and its later changes; `own` shows only `items`, which are then required. A change re-renders the Destination's open Root messages, as edits.
	Buttons DestinationButtonSet `json:"buttons"`

	// ChannelId The channel's id as Slack shows it in the channel's details — `C…`, or `G…` for a private channel of an older workspace — in upper-case letters and digits, kept as entered without surrounding white space. Any other id, such as a direct chat's `D…`, a user's `U…` or a `#name`, is refused with `invalid_format`.
	ChannelId string `json:"channel_id"`

	// ChannelName The channel's name without `#`, as `conversations.info` answered it when the Destination was last saved. Untrusted text from Slack.
	ChannelName nullable.Nullable[string] `json:"channel_name,omitempty"`

	// ConnectionId A Slack Connection.
	ConnectionId PublicId  `json:"connection_id"`
	CreatedAt    time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag   *string           `json:"etag,omitempty"`
	Health DestinationHealth `json:"health"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter `destination.slack.limiter`: the form proposes 30 requests per minute, sends and edits together.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries in order, each with what it mentions now.
	MentionEntries []MentionEntry `json:"mention_entries"`

	// MentionWarnings The people and entries whose Mentions were not delivered (C-28.FR-3), by entry and then by the person's name; always empty on an outgoing webhook, which takes every person as data.
	MentionWarnings []MentionWarning `json:"mention_warnings"`

	// Mentions The L1 form of the Mention entries that L1 can express on the Destination's type (C-28.FR-5), removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions MentionSettings `json:"mentions"`
	Name     string          `json:"name"`

	// OwningTeam The Team that owns the Destination, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Routes       []EntityRef                         `json:"routes"`

	// Teams The Teams that name the Destination as a Destination of the Team, by name.
	Teams         []TeamRef            `json:"teams"`
	TemplateError *TemplateErrorState  `json:"template_error,omitempty"`
	Type          SlackDestinationType `json:"type"`
}

SlackDestination defines model for SlackDestination.

type SlackDestinationInput

type SlackDestinationInput struct {
	// Buttons The Destination's button set (C-28.FR-8, FR-10); omitted on create is `organization`, omitted on an update keeps it.
	Buttons *DestinationButtonSet `json:"buttons,omitempty"`

	// ChannelId The channel's id as Slack shows it in the channel's details — `C…`, or `G…` for a private channel of an older workspace — in upper-case letters and digits, kept as entered without surrounding white space. Any other id, such as a direct chat's `D…`, a user's `U…` or a `#name`, is refused with `invalid_format`.
	ChannelId string `json:"channel_id"`

	// ConnectionId A Slack Connection.
	ConnectionId PublicId `json:"connection_id"`

	// Limiter `destination.slack.limiter`: the form proposes 30 requests per minute, sends and edits together.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries (C-28.FR-1, FR-2), in order, each a target and the Loud events it applies to; omitted on create is none, which mentions nobody, and omitted on an update keeps them. A target the Destination's Connection cannot mention is refused with `422` `mention_unsupported` at `/mention_entries/{i}/target` — Slack has no `all` and no `everyone`, and takes groups and Teams only while the last check of its Connection found `usergroups:read`, a group with its `group_id` — and an entry whose target equals a stored one is kept whatever the Connection can mention now. An unknown or deleted User or Team is refused with `unknown_id` at its `user_id` or `team_id` unless the entry's target equals a stored one, and a target listed twice with `duplicate` at `/mention_entries/{i}/target`.
	MentionEntries *[]MentionEntryInput `json:"mention_entries,omitempty"`

	// Mentions The Mention settings of L1 (C-12.FR-8), deprecated since 0.2.0 and removed in 0.3.0 (C-28.FR-5). In a read, computed from the `mention_entries` that L1 can express on the Destination's type — the everyone choices, chosen Users and messenger groups L1 took there, for the six kinds of L1 — so that the other entries are not seen in it. In a request it is optional: when a request has no `mention_entries`, it sets them by the conversion of the 0.2.0 migration — on create they are its result; on update it replaces the entries that L1 can express, keeps the others after them, keeps the `storm_started` of a target present before and after, and changes nothing when it equals the stored form — validated as L1 validated it, at pointers under `/mentions`; ignored when `mention_entries` is present.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions *MentionSettings `json:"mentions,omitempty"`
	Name     string           `json:"name"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Type         SlackDestinationInputType           `json:"type"`
}

SlackDestinationInput A Slack Destination (C-24.FR-3) is a public or private channel of its Slack Connection's workspace, named by its id. Saving it runs `conversations.info`, which posts nothing, refuses an unknown or archived channel and one without the bot, and keeps the channel's name.

type SlackDestinationInputType

type SlackDestinationInputType string

SlackDestinationInputType defines model for SlackDestinationInput.Type.

const (
	SlackDestinationInputTypeSlack SlackDestinationInputType = "slack"
)

Defines values for SlackDestinationInputType.

func (SlackDestinationInputType) Valid

func (e SlackDestinationInputType) Valid() bool

Valid indicates whether the value is a known member of the SlackDestinationInputType enum.

type SlackDestinationType

type SlackDestinationType string

SlackDestinationType defines model for SlackDestination.Type.

const (
	SlackDestinationTypeSlack SlackDestinationType = "slack"
)

Defines values for SlackDestinationType.

func (SlackDestinationType) Valid

func (e SlackDestinationType) Valid() bool

Valid indicates whether the value is a known member of the SlackDestinationType enum.

type SlackEventMode

type SlackEventMode string

SlackEventMode How a Slack Connection receives button presses (`connection.slack.event_mode`, `socket` for a new Connection): `socket` — the Leader holds a Socket Mode connection with the app-level token, so Slack needs no address of Muster; `http` — Slack posts each press to the Connection's `callback_url`, signed with the Slack signing secret.

const (
	SlackEventModeHttp   SlackEventMode = "http"
	SlackEventModeSocket SlackEventMode = "socket"
)

Defines values for SlackEventMode.

func (SlackEventMode) Valid

func (e SlackEventMode) Valid() bool

Valid indicates whether the value is a known member of the SlackEventMode enum.

type SlackInteractionForm

type SlackInteractionForm struct {
	// Payload The interaction as JSON, a `block_actions` payload for a button press or a menu option (F-093), whose action `value` or `selected_option.value` carries the signed action id.
	Payload string `json:"payload"`
}

SlackInteractionForm The form Slack posts for an interaction of the app; the signature covers its raw bytes.

type SlackInteractionFormdataRequestBody

type SlackInteractionFormdataRequestBody = SlackInteractionForm

SlackInteractionFormdataRequestBody defines body for SlackInteraction for application/x-www-form-urlencoded ContentType.

type SlackInteractionParams

type SlackInteractionParams struct {
	// XSlackSignature `v0=` and the hex HMAC-SHA256 of `v0:<X-Slack-Request-Timestamp>:<raw body>` with the Slack signing secret.
	XSlackSignature string `json:"X-Slack-Signature"`

	// XSlackRequestTimestamp Unix time of the request, in seconds.
	XSlackRequestTimestamp string `json:"X-Slack-Request-Timestamp"`
}

SlackInteractionParams defines parameters for SlackInteraction.

type SlackInteractionResponse

type SlackInteractionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
	ApplicationproblemJSON500 *InternalError
}

func ParseSlackInteractionResponse

func ParseSlackInteractionResponse(rsp *http.Response) (*SlackInteractionResponse, error)

ParseSlackInteractionResponse parses an HTTP response from a SlackInteractionWithResponse call

func (SlackInteractionResponse) ContentType

func (r SlackInteractionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SlackInteractionResponse) GetApplicationproblemJSON400

func (r SlackInteractionResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (SlackInteractionResponse) GetApplicationproblemJSON401

func (r SlackInteractionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (SlackInteractionResponse) GetApplicationproblemJSON500

func (r SlackInteractionResponse) GetApplicationproblemJSON500() *InternalError

GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response

func (SlackInteractionResponse) GetBody

func (r SlackInteractionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SlackInteractionResponse) Status

func (r SlackInteractionResponse) Status() string

Status returns HTTPResponse.Status

func (SlackInteractionResponse) StatusCode

func (r SlackInteractionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SlackLinkConfirm

type SlackLinkConfirm struct {
	// Code The code the bot sent as a direct message.
	Code *string `json:"code,omitempty"`

	// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	RequestId PublicId `json:"request_id"`
}

SlackLinkConfirm defines model for SlackLinkConfirm.

type SlackLinkRequest

type SlackLinkRequest struct {
	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Handle The Slack email or name of the account to link; a leading `@` of a name is optional.
	Handle string `json:"handle"`
}

SlackLinkRequest defines model for SlackLinkRequest.

type SlackLinkStarted

type SlackLinkStarted struct {
	AttemptsRemaining int       `json:"attempts_remaining"`
	ExpiresAt         time.Time `json:"expires_at"`

	// RequestId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	RequestId PublicId `json:"request_id"`
}

SlackLinkStarted defines model for SlackLinkStarted.

type SlackSocketStatus

type SlackSocketStatus struct {
	// HelloAt When the Leader's Socket Mode connection last received `hello`, on the business clock.
	HelloAt time.Time `json:"hello_at"`

	// OtherConnections The connections of the Slack app that `hello` counted beyond those the Leader holds; more than 0 means another program, usually another Connection or installation using the same Slack app, takes some of the presses.
	OtherConnections int `json:"other_connections"`
}

SlackSocketStatus What a `hello` of the Leader's Socket Mode connection of a Slack Connection counted.

type SnapshotState

type SnapshotState string

SnapshotState `pending` until a worker has processed it, `processed`, or `failed` when the body could not be processed. A failed Snapshot is never retried by itself; `muster ingest replay` reprocesses it after a fix.

const (
	SnapshotStateFailed    SnapshotState = "failed"
	SnapshotStatePending   SnapshotState = "pending"
	SnapshotStateProcessed SnapshotState = "processed"
)

Defines values for SnapshotState.

func (SnapshotState) Valid

func (e SnapshotState) Valid() bool

Valid indicates whether the value is a known member of the SnapshotState enum.

type SnoozeAlertGroupJSONRequestBody

type SnoozeAlertGroupJSONRequestBody = SnoozeRequest

SnoozeAlertGroupJSONRequestBody defines body for SnoozeAlertGroup for application/json ContentType.

type SnoozeAlertGroupResponse

type SnoozeAlertGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommandResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SnoozeAlertGroupResponse429Headers
}

func ParseSnoozeAlertGroupResponse

func ParseSnoozeAlertGroupResponse(rsp *http.Response) (*SnoozeAlertGroupResponse, error)

ParseSnoozeAlertGroupResponse parses an HTTP response from a SnoozeAlertGroupWithResponse call

func (SnoozeAlertGroupResponse) ContentType

func (r SnoozeAlertGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SnoozeAlertGroupResponse) GetApplicationproblemJSON400

func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (SnoozeAlertGroupResponse) GetApplicationproblemJSON401

func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (SnoozeAlertGroupResponse) GetApplicationproblemJSON403

func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (SnoozeAlertGroupResponse) GetApplicationproblemJSON404

func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (SnoozeAlertGroupResponse) GetApplicationproblemJSON409

func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (SnoozeAlertGroupResponse) GetApplicationproblemJSON422

func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (SnoozeAlertGroupResponse) GetApplicationproblemJSON429

func (r SnoozeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (SnoozeAlertGroupResponse) GetBody

func (r SnoozeAlertGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SnoozeAlertGroupResponse) GetJSON200

func (r SnoozeAlertGroupResponse) GetJSON200() *CommandResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SnoozeAlertGroupResponse) Status

func (r SnoozeAlertGroupResponse) Status() string

Status returns HTTPResponse.Status

func (SnoozeAlertGroupResponse) StatusCode

func (r SnoozeAlertGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SnoozeAlertGroupResponse429Headers

type SnoozeAlertGroupResponse429Headers struct {
	RetryAfter *int
}

SnoozeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for SnoozeAlertGroup

type SnoozePreset

type SnoozePreset string

SnoozePreset A Snooze preset. `tomorrow` ends at the first start of the working day (`organization.workday_start`) after now, `week_start` at the first start of the working day on the first day of the week (`organization.week_start`) after now. After now is strict, so at the start itself the next one counts, and before the start of the working day `tomorrow` ends the same morning.

const (
	Tomorrow  SnoozePreset = "tomorrow"
	WeekStart SnoozePreset = "week_start"
)

Defines values for SnoozePreset.

func (SnoozePreset) Valid

func (e SnoozePreset) Valid() bool

Valid indicates whether the value is a known member of the SnoozePreset enum.

type SnoozePresetEnd

type SnoozePresetEnd struct {
	// Preset A Snooze preset. `tomorrow` ends at the first start of the working day (`organization.workday_start`) after now, `week_start` at the first start of the working day on the first day of the week (`organization.week_start`) after now. After now is strict, so at the start itself the next one counts, and before the start of the working day `tomorrow` ends the same morning.
	Preset SnoozePreset `json:"preset"`

	// Until The end a Snooze with this preset would set now.
	Until time.Time `json:"until"`
}

SnoozePresetEnd defines model for SnoozePresetEnd.

type SnoozePresetList

type SnoozePresetList struct {
	// Items One item per Snooze preset, in the order `tomorrow`, `week_start`.
	Items []SnoozePresetEnd `json:"items"`

	// TimeZone The IANA time zone of the ends — the request's, else the caller's profile time zone, else the Organization's.
	TimeZone string `json:"time_zone"`

	// WeekStart A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.
	WeekStart Weekday `json:"week_start"`

	// WorkdayStart The start of the working day, `organization.workday_start`.
	WorkdayStart string `json:"workday_start"`
}

SnoozePresetList defines model for SnoozePresetList.

type SnoozeRequest

type SnoozeRequest struct {
	// NoEnd Snooze until someone unsnoozes it.
	NoEnd *SnoozeRequestNoEnd `json:"no_end,omitempty"`

	// Preset A Snooze preset. `tomorrow` ends at the first start of the working day (`organization.workday_start`) after now, `week_start` at the first start of the working day on the first day of the week (`organization.week_start`) after now. After now is strict, so at the start itself the next one counts, and before the start of the working day `tomorrow` ends the same morning.
	Preset *SnoozePreset `json:"preset,omitempty"`

	// TimeZone IANA time zone in which the end of `preset` is computed; only with `preset`.
	TimeZone *string `json:"time_zone,omitempty"`

	// Until A future time.
	Until *time.Time `json:"until,omitempty"`
}

SnoozeRequest Exactly one of `until`, `no_end` and `preset`; none or more than one is `422` `one_of_required`, and a past `until` is `422` `out_of_range` at `/until`. A Snooze with no end is chosen explicitly, never by leaving a field out; the UI shows a warning before sending `no_end`. `time_zone` goes only with `preset`, so a `time_zone` without `preset` is `422` `unsupported` at `/time_zone`, and a time zone Muster does not know (or `Local`) is `422` `invalid_format` at `/time_zone`. Without `time_zone` the end of a preset is computed in the profile time zone of the User the caller acts as, else in the Organization's. In `runBulkCommand` the pointers start with `/snooze`.

type SnoozeRequestNoEnd

type SnoozeRequestNoEnd bool

SnoozeRequestNoEnd Snooze until someone unsnoozes it.

const (
	True SnoozeRequestNoEnd = true
)

Defines values for SnoozeRequestNoEnd.

func (SnoozeRequestNoEnd) Valid

func (e SnoozeRequestNoEnd) Valid() bool

Valid indicates whether the value is a known member of the SnoozeRequestNoEnd enum.

type StartBridgeCodeLinkJSONRequestBody

type StartBridgeCodeLinkJSONRequestBody = BridgeCodeLinkRequest

StartBridgeCodeLinkJSONRequestBody defines body for StartBridgeCodeLink for application/json ContentType.

type StartBridgeCodeLinkResponse

type StartBridgeCodeLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *BridgeCodeLinkStarted
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StartBridgeCodeLinkResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *StartBridgeCodeLinkResponse503Headers
}

func ParseStartBridgeCodeLinkResponse

func ParseStartBridgeCodeLinkResponse(rsp *http.Response) (*StartBridgeCodeLinkResponse, error)

ParseStartBridgeCodeLinkResponse parses an HTTP response from a StartBridgeCodeLinkWithResponse call

func (StartBridgeCodeLinkResponse) ContentType

func (r StartBridgeCodeLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON400

func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON401

func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON403

func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON409

func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON422

func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON429

func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StartBridgeCodeLinkResponse) GetApplicationproblemJSON503

func (r StartBridgeCodeLinkResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (StartBridgeCodeLinkResponse) GetBody

func (r StartBridgeCodeLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartBridgeCodeLinkResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (StartBridgeCodeLinkResponse) Status

Status returns HTTPResponse.Status

func (StartBridgeCodeLinkResponse) StatusCode

func (r StartBridgeCodeLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartBridgeCodeLinkResponse429Headers

type StartBridgeCodeLinkResponse429Headers struct {
	RetryAfter *int
}

StartBridgeCodeLinkResponse429Headers the declared response headers of an HTTP 429 response for StartBridgeCodeLink

type StartBridgeCodeLinkResponse503Headers

type StartBridgeCodeLinkResponse503Headers struct {
	RetryAfter *int
}

StartBridgeCodeLinkResponse503Headers the declared response headers of an HTTP 503 response for StartBridgeCodeLink

type StartBridgeLinkJSONRequestBody

type StartBridgeLinkJSONRequestBody = BridgeLinkRequest

StartBridgeLinkJSONRequestBody defines body for StartBridgeLink for application/json ContentType.

type StartBridgeLinkResponse

type StartBridgeLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *BridgeLinkStart
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StartBridgeLinkResponse429Headers
}

func ParseStartBridgeLinkResponse

func ParseStartBridgeLinkResponse(rsp *http.Response) (*StartBridgeLinkResponse, error)

ParseStartBridgeLinkResponse parses an HTTP response from a StartBridgeLinkWithResponse call

func (StartBridgeLinkResponse) ContentType

func (r StartBridgeLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartBridgeLinkResponse) GetApplicationproblemJSON400

func (r StartBridgeLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (StartBridgeLinkResponse) GetApplicationproblemJSON401

func (r StartBridgeLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StartBridgeLinkResponse) GetApplicationproblemJSON403

func (r StartBridgeLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StartBridgeLinkResponse) GetApplicationproblemJSON422

func (r StartBridgeLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (StartBridgeLinkResponse) GetApplicationproblemJSON429

func (r StartBridgeLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StartBridgeLinkResponse) GetBody

func (r StartBridgeLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartBridgeLinkResponse) GetJSON201

func (r StartBridgeLinkResponse) GetJSON201() *BridgeLinkStart

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (StartBridgeLinkResponse) Status

func (r StartBridgeLinkResponse) Status() string

Status returns HTTPResponse.Status

func (StartBridgeLinkResponse) StatusCode

func (r StartBridgeLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartBridgeLinkResponse429Headers

type StartBridgeLinkResponse429Headers struct {
	RetryAfter *int
}

StartBridgeLinkResponse429Headers the declared response headers of an HTTP 429 response for StartBridgeLink

type StartMattermostLinkJSONRequestBody

type StartMattermostLinkJSONRequestBody = MattermostLinkRequest

StartMattermostLinkJSONRequestBody defines body for StartMattermostLink for application/json ContentType.

type StartMattermostLinkResponse

type StartMattermostLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *MattermostLinkStarted
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StartMattermostLinkResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *StartMattermostLinkResponse503Headers
}

func ParseStartMattermostLinkResponse

func ParseStartMattermostLinkResponse(rsp *http.Response) (*StartMattermostLinkResponse, error)

ParseStartMattermostLinkResponse parses an HTTP response from a StartMattermostLinkWithResponse call

func (StartMattermostLinkResponse) ContentType

func (r StartMattermostLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartMattermostLinkResponse) GetApplicationproblemJSON400

func (r StartMattermostLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (StartMattermostLinkResponse) GetApplicationproblemJSON401

func (r StartMattermostLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StartMattermostLinkResponse) GetApplicationproblemJSON403

func (r StartMattermostLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StartMattermostLinkResponse) GetApplicationproblemJSON404

func (r StartMattermostLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (StartMattermostLinkResponse) GetApplicationproblemJSON409

func (r StartMattermostLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (StartMattermostLinkResponse) GetApplicationproblemJSON422

func (r StartMattermostLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (StartMattermostLinkResponse) GetApplicationproblemJSON429

func (r StartMattermostLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StartMattermostLinkResponse) GetApplicationproblemJSON503

func (r StartMattermostLinkResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (StartMattermostLinkResponse) GetBody

func (r StartMattermostLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartMattermostLinkResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (StartMattermostLinkResponse) Status

Status returns HTTPResponse.Status

func (StartMattermostLinkResponse) StatusCode

func (r StartMattermostLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartMattermostLinkResponse429Headers

type StartMattermostLinkResponse429Headers struct {
	RetryAfter *int
}

StartMattermostLinkResponse429Headers the declared response headers of an HTTP 429 response for StartMattermostLink

type StartMattermostLinkResponse503Headers

type StartMattermostLinkResponse503Headers struct {
	RetryAfter *int
}

StartMattermostLinkResponse503Headers the declared response headers of an HTTP 503 response for StartMattermostLink

type StartOidcLinkResponse

type StartOidcLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *OidcLinkStart
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StartOidcLinkResponse429Headers
}

func ParseStartOidcLinkResponse

func ParseStartOidcLinkResponse(rsp *http.Response) (*StartOidcLinkResponse, error)

ParseStartOidcLinkResponse parses an HTTP response from a StartOidcLinkWithResponse call

func (StartOidcLinkResponse) ContentType

func (r StartOidcLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartOidcLinkResponse) GetApplicationproblemJSON401

func (r StartOidcLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StartOidcLinkResponse) GetApplicationproblemJSON403

func (r StartOidcLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StartOidcLinkResponse) GetApplicationproblemJSON409

func (r StartOidcLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (StartOidcLinkResponse) GetApplicationproblemJSON429

func (r StartOidcLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StartOidcLinkResponse) GetBody

func (r StartOidcLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartOidcLinkResponse) GetJSON201

func (r StartOidcLinkResponse) GetJSON201() *OidcLinkStart

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (StartOidcLinkResponse) Status

func (r StartOidcLinkResponse) Status() string

Status returns HTTPResponse.Status

func (StartOidcLinkResponse) StatusCode

func (r StartOidcLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartOidcLinkResponse429Headers

type StartOidcLinkResponse429Headers struct {
	RetryAfter *int
}

StartOidcLinkResponse429Headers the declared response headers of an HTTP 429 response for StartOidcLink

type StartOidcSignInParams

type StartOidcSignInParams struct {
	// ReturnTo Path to open after sign-in: a relative path that starts with a single `/` (never `//`, `/\` or a scheme), at most 2000 characters. Anything else is ignored, not refused, so the flow is no open redirect.
	ReturnTo *string `form:"return_to,omitempty" json:"return_to,omitempty"`
}

StartOidcSignInParams defines parameters for StartOidcSignIn.

type StartOidcSignInResponse

type StartOidcSignInResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers302 the parsed response headers for an HTTP 302 response
	Headers302 *StartOidcSignInResponse302Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StartOidcSignInResponse429Headers
}

func ParseStartOidcSignInResponse

func ParseStartOidcSignInResponse(rsp *http.Response) (*StartOidcSignInResponse, error)

ParseStartOidcSignInResponse parses an HTTP response from a StartOidcSignInWithResponse call

func (StartOidcSignInResponse) ContentType

func (r StartOidcSignInResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartOidcSignInResponse) GetApplicationproblemJSON409

func (r StartOidcSignInResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (StartOidcSignInResponse) GetApplicationproblemJSON429

func (r StartOidcSignInResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StartOidcSignInResponse) GetBody

func (r StartOidcSignInResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartOidcSignInResponse) Status

func (r StartOidcSignInResponse) Status() string

Status returns HTTPResponse.Status

func (StartOidcSignInResponse) StatusCode

func (r StartOidcSignInResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartOidcSignInResponse302Headers

type StartOidcSignInResponse302Headers struct {
	Location *string
}

StartOidcSignInResponse302Headers the declared response headers of an HTTP 302 response for StartOidcSignIn

type StartOidcSignInResponse429Headers

type StartOidcSignInResponse429Headers struct {
	RetryAfter *int
}

StartOidcSignInResponse429Headers the declared response headers of an HTTP 429 response for StartOidcSignIn

type StartSlackLinkJSONRequestBody

type StartSlackLinkJSONRequestBody = SlackLinkRequest

StartSlackLinkJSONRequestBody defines body for StartSlackLink for application/json ContentType.

type StartSlackLinkResponse

type StartSlackLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *SlackLinkStarted
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StartSlackLinkResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *StartSlackLinkResponse503Headers
}

func ParseStartSlackLinkResponse

func ParseStartSlackLinkResponse(rsp *http.Response) (*StartSlackLinkResponse, error)

ParseStartSlackLinkResponse parses an HTTP response from a StartSlackLinkWithResponse call

func (StartSlackLinkResponse) ContentType

func (r StartSlackLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartSlackLinkResponse) GetApplicationproblemJSON400

func (r StartSlackLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (StartSlackLinkResponse) GetApplicationproblemJSON401

func (r StartSlackLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StartSlackLinkResponse) GetApplicationproblemJSON403

func (r StartSlackLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StartSlackLinkResponse) GetApplicationproblemJSON409

func (r StartSlackLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (StartSlackLinkResponse) GetApplicationproblemJSON422

func (r StartSlackLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (StartSlackLinkResponse) GetApplicationproblemJSON429

func (r StartSlackLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StartSlackLinkResponse) GetApplicationproblemJSON503

func (r StartSlackLinkResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (StartSlackLinkResponse) GetBody

func (r StartSlackLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartSlackLinkResponse) GetJSON202

func (r StartSlackLinkResponse) GetJSON202() *SlackLinkStarted

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (StartSlackLinkResponse) Status

func (r StartSlackLinkResponse) Status() string

Status returns HTTPResponse.Status

func (StartSlackLinkResponse) StatusCode

func (r StartSlackLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartSlackLinkResponse429Headers

type StartSlackLinkResponse429Headers struct {
	RetryAfter *int
}

StartSlackLinkResponse429Headers the declared response headers of an HTTP 429 response for StartSlackLink

type StartSlackLinkResponse503Headers

type StartSlackLinkResponse503Headers struct {
	RetryAfter *int
}

StartSlackLinkResponse503Headers the declared response headers of an HTTP 503 response for StartSlackLink

type StartTelegramLinkJSONRequestBody

type StartTelegramLinkJSONRequestBody = TelegramLinkRequest

StartTelegramLinkJSONRequestBody defines body for StartTelegramLink for application/json ContentType.

type StartTelegramLinkResponse

type StartTelegramLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *TelegramLinkStart
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StartTelegramLinkResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *StartTelegramLinkResponse503Headers
}

func ParseStartTelegramLinkResponse

func ParseStartTelegramLinkResponse(rsp *http.Response) (*StartTelegramLinkResponse, error)

ParseStartTelegramLinkResponse parses an HTTP response from a StartTelegramLinkWithResponse call

func (StartTelegramLinkResponse) ContentType

func (r StartTelegramLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartTelegramLinkResponse) GetApplicationproblemJSON400

func (r StartTelegramLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (StartTelegramLinkResponse) GetApplicationproblemJSON401

func (r StartTelegramLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StartTelegramLinkResponse) GetApplicationproblemJSON403

func (r StartTelegramLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StartTelegramLinkResponse) GetApplicationproblemJSON409

func (r StartTelegramLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (StartTelegramLinkResponse) GetApplicationproblemJSON422

func (r StartTelegramLinkResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (StartTelegramLinkResponse) GetApplicationproblemJSON429

func (r StartTelegramLinkResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StartTelegramLinkResponse) GetApplicationproblemJSON503

func (r StartTelegramLinkResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (StartTelegramLinkResponse) GetBody

func (r StartTelegramLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartTelegramLinkResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (StartTelegramLinkResponse) Status

func (r StartTelegramLinkResponse) Status() string

Status returns HTTPResponse.Status

func (StartTelegramLinkResponse) StatusCode

func (r StartTelegramLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartTelegramLinkResponse429Headers

type StartTelegramLinkResponse429Headers struct {
	RetryAfter *int
}

StartTelegramLinkResponse429Headers the declared response headers of an HTTP 429 response for StartTelegramLink

type StartTelegramLinkResponse503Headers

type StartTelegramLinkResponse503Headers struct {
	RetryAfter *int
}

StartTelegramLinkResponse503Headers the declared response headers of an HTTP 503 response for StartTelegramLink

type StatisticsDay

type StatisticsDay struct {
	AlertGroupCount int                `json:"alert_group_count"`
	Date            openapi_types.Date `json:"date"`

	// TimeToAcknowledge From the start of each Alert Group to its first acknowledgement; see `AlertGroupStatisticsItem`.
	TimeToAcknowledge DurationStats `json:"time_to_acknowledge"`
	TimeToResolve     DurationStats `json:"time_to_resolve"`
}

StatisticsDay defines model for StatisticsDay.

type StatisticsIntegration

type StatisticsIntegration = []PublicId

StatisticsIntegration defines model for StatisticsIntegration.

type StatisticsRoute

type StatisticsRoute = []PublicId

StatisticsRoute defines model for StatisticsRoute.

type StoredSnapshot

type StoredSnapshot struct {
	AlertCount nullable.Nullable[int] `json:"alert_count,omitempty"`

	// Body The body exactly as received. Alertmanager sends a JSON payload (see `AlertmanagerWebhook`), but any body up to the limit is stored.
	Body string `json:"body"`

	// BodyEncoding `base64` when the stored bytes are not valid UTF-8.
	BodyEncoding StoredSnapshotBodyEncoding `json:"body_encoding"`

	// ContentType The `Content-Type` of the request, if any.
	ContentType nullable.Nullable[string] `json:"content_type"`

	// GroupKey The `groupKey` of the payload; null when it could not be read.
	GroupKey nullable.Nullable[string] `json:"group_key,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id          PublicId                     `json:"id"`
	Integration EntityRef                    `json:"integration"`
	ProcessedAt nullable.Nullable[time.Time] `json:"processed_at,omitempty"`

	// ProcessingError Why processing failed, for `failed`: for example the body is not valid JSON or does not look like an Alertmanager payload. The body itself stays as received.
	ProcessingError nullable.Nullable[string] `json:"processing_error,omitempty"`
	ReceivedAt      time.Time                 `json:"received_at"`
	SizeBytes       int                       `json:"size_bytes"`

	// State `pending` until a worker has processed it, `processed`, or `failed` when the body could not be processed. A failed Snapshot is never retried by itself; `muster ingest replay` reprocesses it after a fix.
	State           SnapshotState          `json:"state"`
	TruncatedAlerts nullable.Nullable[int] `json:"truncated_alerts,omitempty"`
}

StoredSnapshot defines model for StoredSnapshot.

type StoredSnapshotBodyEncoding

type StoredSnapshotBodyEncoding string

StoredSnapshotBodyEncoding `base64` when the stored bytes are not valid UTF-8.

const (
	Base64 StoredSnapshotBodyEncoding = "base64"
	Utf8   StoredSnapshotBodyEncoding = "utf8"
)

Defines values for StoredSnapshotBodyEncoding.

func (StoredSnapshotBodyEncoding) Valid

func (e StoredSnapshotBodyEncoding) Valid() bool

Valid indicates whether the value is a known member of the StoredSnapshotBodyEncoding enum.

type StoredSnapshotId

type StoredSnapshotId = PublicId

StoredSnapshotId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type StoredSnapshotList

type StoredSnapshotList struct {
	Items      []StoredSnapshotSummary   `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

StoredSnapshotList defines model for StoredSnapshotList.

type StoredSnapshotSummary

type StoredSnapshotSummary struct {
	AlertCount nullable.Nullable[int] `json:"alert_count,omitempty"`

	// GroupKey The `groupKey` of the payload; null when it could not be read.
	GroupKey nullable.Nullable[string] `json:"group_key,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id          PublicId                     `json:"id"`
	Integration EntityRef                    `json:"integration"`
	ProcessedAt nullable.Nullable[time.Time] `json:"processed_at,omitempty"`

	// ProcessingError Why processing failed, for `failed`: for example the body is not valid JSON or does not look like an Alertmanager payload. The body itself stays as received.
	ProcessingError nullable.Nullable[string] `json:"processing_error,omitempty"`
	ReceivedAt      time.Time                 `json:"received_at"`
	SizeBytes       int                       `json:"size_bytes"`

	// State `pending` until a worker has processed it, `processed`, or `failed` when the body could not be processed. A failed Snapshot is never retried by itself; `muster ingest replay` reprocesses it after a fix.
	State           SnapshotState          `json:"state"`
	TruncatedAlerts nullable.Nullable[int] `json:"truncated_alerts,omitempty"`
}

StoredSnapshotSummary defines model for StoredSnapshotSummary.

type StreamLiveUpdatesResponse

type StreamLiveUpdatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *StreamLiveUpdatesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *StreamLiveUpdatesResponse429Headers
}

func ParseStreamLiveUpdatesResponse

func ParseStreamLiveUpdatesResponse(rsp *http.Response) (*StreamLiveUpdatesResponse, error)

ParseStreamLiveUpdatesResponse parses an HTTP response from a StreamLiveUpdatesWithResponse call

func (StreamLiveUpdatesResponse) ContentType

func (r StreamLiveUpdatesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StreamLiveUpdatesResponse) GetApplicationproblemJSON401

func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StreamLiveUpdatesResponse) GetApplicationproblemJSON403

func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StreamLiveUpdatesResponse) GetApplicationproblemJSON429

func (r StreamLiveUpdatesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (StreamLiveUpdatesResponse) GetBody

func (r StreamLiveUpdatesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StreamLiveUpdatesResponse) Status

func (r StreamLiveUpdatesResponse) Status() string

Status returns HTTPResponse.Status

func (StreamLiveUpdatesResponse) StatusCode

func (r StreamLiveUpdatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StreamLiveUpdatesResponse200Headers

type StreamLiveUpdatesResponse200Headers struct {
	CacheControl *string
}

StreamLiveUpdatesResponse200Headers the declared response headers of an HTTP 200 response for StreamLiveUpdates

type StreamLiveUpdatesResponse429Headers

type StreamLiveUpdatesResponse429Headers struct {
	RetryAfter *int
}

StreamLiveUpdatesResponse429Headers the declared response headers of an HTTP 429 response for StreamLiveUpdates

type SubmitSessionTotpJSONRequestBody

type SubmitSessionTotpJSONRequestBody = SessionTotp

SubmitSessionTotpJSONRequestBody defines body for SubmitSessionTotp for application/json ContentType.

type SubmitSessionTotpResponse

type SubmitSessionTotpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Session
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SubmitSessionTotpResponse429Headers
}

func ParseSubmitSessionTotpResponse

func ParseSubmitSessionTotpResponse(rsp *http.Response) (*SubmitSessionTotpResponse, error)

ParseSubmitSessionTotpResponse parses an HTTP response from a SubmitSessionTotpWithResponse call

func (SubmitSessionTotpResponse) ContentType

func (r SubmitSessionTotpResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubmitSessionTotpResponse) GetApplicationproblemJSON400

func (r SubmitSessionTotpResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (SubmitSessionTotpResponse) GetApplicationproblemJSON401

func (r SubmitSessionTotpResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (SubmitSessionTotpResponse) GetApplicationproblemJSON403

func (r SubmitSessionTotpResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (SubmitSessionTotpResponse) GetApplicationproblemJSON409

func (r SubmitSessionTotpResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (SubmitSessionTotpResponse) GetApplicationproblemJSON422

func (r SubmitSessionTotpResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (SubmitSessionTotpResponse) GetApplicationproblemJSON429

func (r SubmitSessionTotpResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (SubmitSessionTotpResponse) GetBody

func (r SubmitSessionTotpResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SubmitSessionTotpResponse) GetJSON200

func (r SubmitSessionTotpResponse) GetJSON200() *Session

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SubmitSessionTotpResponse) Status

func (r SubmitSessionTotpResponse) Status() string

Status returns HTTPResponse.Status

func (SubmitSessionTotpResponse) StatusCode

func (r SubmitSessionTotpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SubmitSessionTotpResponse429Headers

type SubmitSessionTotpResponse429Headers struct {
	RetryAfter *int
}

SubmitSessionTotpResponse429Headers the declared response headers of an HTTP 429 response for SubmitSessionTotp

type SuggestionId

type SuggestionId = RouteSuggestionId

SuggestionId `heartbeat_lost` suggests a Route for `alertname="MusterHeartbeatLost"`; `internal_alerts` suggests a Route for `alertname=~"Muster.*"`.

type SystemNotice

type SystemNotice struct {
	Audience SystemNoticeAudience         `json:"audience"`
	Kind     SystemNoticeKind             `json:"kind"`
	Since    nullable.Nullable[time.Time] `json:"since,omitempty"`

	// Until End of the recovery window ("Data may be incomplete until HH:MM").
	Until nullable.Nullable[time.Time] `json:"until,omitempty"`
}

SystemNotice defines model for SystemNotice.

type SystemNoticeAudience

type SystemNoticeAudience string

SystemNoticeAudience defines model for SystemNotice.Audience.

const (
	SystemNoticeAudienceAdmins SystemNoticeAudience = "admins"
	SystemNoticeAudienceAll    SystemNoticeAudience = "all"
)

Defines values for SystemNoticeAudience.

func (SystemNoticeAudience) Valid

func (e SystemNoticeAudience) Valid() bool

Valid indicates whether the value is a known member of the SystemNoticeAudience enum.

type SystemNoticeKind

type SystemNoticeKind string

SystemNoticeKind defines model for SystemNotice.Kind.

const (
	NoReplicaLeading        SystemNoticeKind = "no_replica_leading"
	RecoveringAfterDowntime SystemNoticeKind = "recovering_after_downtime"
)

Defines values for SystemNoticeKind.

func (SystemNoticeKind) Valid

func (e SystemNoticeKind) Valid() bool

Valid indicates whether the value is a known member of the SystemNoticeKind enum.

type SystemNoticeList

type SystemNoticeList struct {
	// Items Active Organization-wide notices the caller may see.
	Items []SystemNotice `json:"items"`
}

SystemNoticeList defines model for SystemNoticeList.

type SystemStatus

type SystemStatus struct {
	ActiveStorms          []ActiveStorm           `json:"active_storms"`
	BrokenDestinations    []BrokenDestination     `json:"broken_destinations"`
	Commit                *string                 `json:"commit,omitempty"`
	DeliveryQueues        []QueueDepth            `json:"delivery_queues"`
	IntegrationsAttention []IntegrationAttention  `json:"integrations_attention"`
	OutgoingHeartbeat     OutgoingHeartbeatResult `json:"outgoing_heartbeat"`
	Recovery              struct {
		Active     bool                         `json:"active"`
		PeriodFrom nullable.Nullable[time.Time] `json:"period_from,omitempty"`
		PeriodTo   nullable.Nullable[time.Time] `json:"period_to,omitempty"`
		Until      nullable.Nullable[time.Time] `json:"until,omitempty"`
	} `json:"recovery"`

	// Replicas Every live replica with the key ids it holds; the Leader is flagged.
	Replicas       []ReplicaStatus      `json:"replicas"`
	TemplateErrors []TemplateErrorEntry `json:"template_errors"`
	Version        string               `json:"version"`
}

SystemStatus Read-only status for Admins.

type Team

type Team struct {
	// ChainEntries The Escalation chains of the Team (C-32.FR-2), each once with its Severity condition, which run on the Alert Groups of the Team where their Route runs the Teams' chains (`run_team_chains`). Replaced as a whole; omit it on an update to keep the entries, and a creation without it has none. A chain that is unknown is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `chain_id`. Needs `teams:write` only.
	ChainEntries []ChainEntry `json:"chain_entries"`

	// Chains The Escalation chains of the Team's `chain_entries`, by name.
	Chains    []EscalationChainRef `json:"chains"`
	CreatedAt time.Time            `json:"created_at"`

	// Description Omit it on an update to keep it.
	Description string `json:"description"`

	// DestinationEntries The Destinations of the Team (C-26.FR-1), each once with its Severity condition, where the Alert Groups of the Team arrive from the Routes that deliver to the Teams from the label (`deliver_to_teams`). Replaced as a whole; omit it on an update to keep the entries, and a creation without it has none. A Destination that is unknown or deleted is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `destination_id`. A change reaches the open Alert Groups at their next change.
	DestinationEntries []DestinationEntry `json:"destination_entries"`

	// Destinations The Destinations of the Team's `destination_entries`, by name, with their health.
	Destinations []DestinationRef `json:"destinations"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// IdpEntries The groups of the identity provider whose people are in the Team, matched as the entries of the Role mapping are. At every OIDC sign-in and every successful background re-check a User joins the Team when an entry matches them and leaves it when they are in it only through entries that no longer match; a person added by hand is never taken out. A change applies to each User at their next sign-in or re-check. Omit it on an update to keep the entries; a creation without it has none.
	IdpEntries []TeamIdpEntry `json:"idp_entries"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Matchers The Team matchers (C-25.FR-5), in the syntax of Route Matchers on any label; each is enough on its own, so an Alert that any one of them picks belongs to the Team. Replaced as a whole; omit it on an update to keep it. An expression that is not RE2 is refused with `422` `invalid_regex` at `/matchers/{i}/value`.
	Matchers []Matcher `json:"matchers"`

	// MentionConnections Every Connection that is not deleted and may have a Destination — not a Bridge Connection whose stored `info` lists `roles` without `messenger` — by name, each with the Team's Team mention for it or null, and whether it can mention a group.
	MentionConnections []TeamMentionConnection `json:"mention_connections"`

	// Name Unique, ignoring case, among the Teams that are not deleted.
	Name string `json:"name"`

	// OwnWorkingHours False follows the Organization's Working hours (`team.working_hours`); true takes `working_hours`.
	OwnWorkingHours bool `json:"own_working_hours"`

	// Slug The value of the Team label that names the Team (`team.slug_format`) — 1 to 63 characters, lowercase letters, digits, `-`, `_` and `.`, starting with a letter or a digit — unique among the Teams that are not deleted. A slug outside the format is refused with `422` `invalid_format` at `/slug`.
	Slug string `json:"slug"`

	// TeamMentions The Team mentions of Connections that are not deleted, by Connection name.
	TeamMentions []TeamMention `json:"team_mentions"`

	// UserCount How many people are in the Team, disabled Users included.
	UserCount int `json:"user_count"`

	// WorkingHours The Team's own Working hours, required with `own_working_hours` on a creation and read only with it. A read always carries the effective ones, the Organization's when the Team has none of its own.
	WorkingHours WorkingHours `json:"working_hours"`
}

Team defines model for Team.

type TeamId

type TeamId = PublicId

TeamId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type TeamIdpEntry

type TeamIdpEntry struct {
	// Claim The claim the entry reads, by its exact name, from the ID token and then from userinfo; omitted or empty reads the groups claim of the OIDC settings.
	Claim *string `json:"claim,omitempty"`

	// Group A value of the claim, matched exactly, or a subtree `a/b/*`, which matches `a/b` and every group below it at `/` boundaries. An empty group, or `*` anywhere but a trailing `/*`, is refused with `422` `invalid_format` at the entry's `group`.
	Group string `json:"group"`
}

TeamIdpEntry An identity provider entry of a Team.

type TeamInput

type TeamInput struct {
	// ChainEntries The Escalation chains of the Team (C-32.FR-2), each once with its Severity condition, which run on the Alert Groups of the Team where their Route runs the Teams' chains (`run_team_chains`). Replaced as a whole; omit it on an update to keep the entries, and a creation without it has none. A chain that is unknown is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `chain_id`. Needs `teams:write` only.
	ChainEntries *[]ChainEntry `json:"chain_entries,omitempty"`

	// Description Omit it on an update to keep it.
	Description *string `json:"description,omitempty"`

	// DestinationEntries The Destinations of the Team (C-26.FR-1), each once with its Severity condition, where the Alert Groups of the Team arrive from the Routes that deliver to the Teams from the label (`deliver_to_teams`). Replaced as a whole; omit it on an update to keep the entries, and a creation without it has none. A Destination that is unknown or deleted is refused with `422` `unknown_id`, and one named twice with `duplicate`, at the entry's `destination_id`. A change reaches the open Alert Groups at their next change.
	DestinationEntries *[]DestinationEntry `json:"destination_entries,omitempty"`

	// IdpEntries The groups of the identity provider whose people are in the Team, matched as the entries of the Role mapping are. At every OIDC sign-in and every successful background re-check a User joins the Team when an entry matches them and leaves it when they are in it only through entries that no longer match; a person added by hand is never taken out. A change applies to each User at their next sign-in or re-check. Omit it on an update to keep the entries; a creation without it has none.
	IdpEntries *[]TeamIdpEntry `json:"idp_entries,omitempty"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// Matchers The Team matchers (C-25.FR-5), in the syntax of Route Matchers on any label; each is enough on its own, so an Alert that any one of them picks belongs to the Team. Replaced as a whole; omit it on an update to keep it. An expression that is not RE2 is refused with `422` `invalid_regex` at `/matchers/{i}/value`.
	Matchers *[]Matcher `json:"matchers,omitempty"`

	// Name Unique, ignoring case, among the Teams that are not deleted.
	Name string `json:"name"`

	// OwnWorkingHours False follows the Organization's Working hours (`team.working_hours`); true takes `working_hours`.
	OwnWorkingHours bool `json:"own_working_hours"`

	// Slug The value of the Team label that names the Team (`team.slug_format`) — 1 to 63 characters, lowercase letters, digits, `-`, `_` and `.`, starting with a letter or a digit — unique among the Teams that are not deleted. A slug outside the format is refused with `422` `invalid_format` at `/slug`.
	Slug string `json:"slug"`

	// TeamMentions The Team mentions (C-25.FR-8), at most one per Connection, each the group that mentions the Team through that Connection. Replaced as a whole; omit it on an update to keep them, and a creation without it has none. A Connection that cannot mention a group — a Telegram Connection, a Slack Connection whose last check found no `usergroups:read`, a Bridge Connection whose bridge declares no `group_mentions` in its stored `info`, or one that is a Notification gateway only — is refused with `422` `group_mentions_unsupported` at the entry's `connection_id`; an unknown or deleted Connection with `unknown_id`, and one named twice with `duplicate`, there too. A Team mention identical to a stored one, with the same `connection_id`, `group` and `group_id`, is kept whatever its Connection can mention now, so that one whose Connection lost the ability never blocks a save; only a new or changed one is checked. A Slack Team mention needs `group_id`, which the others refuse with `unsupported` at it. Saving does not call the messenger.
	TeamMentions *[]TeamMentionInput `json:"team_mentions,omitempty"`

	// WorkingHours The Team's own Working hours, required with `own_working_hours` on a creation and read only with it. A read always carries the effective ones, the Organization's when the Team has none of its own.
	WorkingHours *WorkingHours `json:"working_hours,omitempty"`
}

TeamInput defines model for TeamInput.

type TeamLabelValue

type TeamLabelValue struct {
	// AlertCount How many Alerts last seen within the window carry the value.
	AlertCount int `json:"alert_count"`

	// LastSeenAt When an Alert that carries the value was last seen.
	LastSeenAt time.Time `json:"last_seen_at"`

	// ValidSlug False when the value is not a valid slug (`team.slug_format`), so that no Team can take it as its slug.
	ValidSlug bool   `json:"valid_slug"`
	Value     string `json:"value"`
}

TeamLabelValue defines model for TeamLabelValue.

type TeamLabelValueList

type TeamLabelValueList struct {
	Items []TeamLabelValue `json:"items"`

	// Label The Team label of the Organization (`organization.team_label`).
	Label      string `json:"label"`
	WindowDays int    `json:"window_days"`
}

TeamLabelValueList defines model for TeamLabelValueList.

type TeamList

type TeamList struct {
	Items      []Team                    `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

TeamList defines model for TeamList.

type TeamMembership

type TeamMembership struct {
	// Matcher The Team matcher that picked the Alert, in the Alertmanager syntax, for the rule `matcher`.
	Matcher nullable.Nullable[string] `json:"matcher"`

	// Rule How an Alert belongs to a Team (C-25.FR-5) — by the value of the Team label, equal to the Team's slug, or by one of its Team matchers.
	Rule TeamRule `json:"rule"`

	// Team The Team an object names, with its slug; `deleted` is true for a Team that was deleted since.
	Team TeamRef `json:"team"`
}

TeamMembership A Team that an Alert belongs to, with the rule that decided it when the Alert started firing.

type TeamMention

type TeamMention struct {
	Available bool `json:"available"`

	// Connection A Connection by name, with its type.
	Connection ConnectionRef `json:"connection"`

	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Group The group that mentions the Team, without `@` — the name of a Mattermost group, the handle of a Slack user group, or a group name of the bridge — of the form of the group names of Mention settings, 1 to 64 letters, digits, `.`, `_` and `-`, starting with a letter or a digit. Another form is refused with `422` `invalid_format` at it.
	Group string `json:"group"`

	// GroupId The Slack user group's id (`S` followed by digits and capital letters), from `listConnectionGroups`, required for a Slack Connection and refused for the others (`422` `required` or `unsupported` at it, `invalid_format` for another form); Slack mentions the user group by it.
	GroupId *string `json:"group_id,omitempty"`

	// UnavailableReason Why the Team mention mentions nobody now; null while it is available.
	UnavailableReason nullable.Nullable[MentionUnavailableReason] `json:"unavailable_reason"`
}

TeamMention A Team mention as a read gives it, with its Connection and whether the Connection can carry it now. A Team mention whose Connection lost the ability, such as a Slack app reinstalled without `usergroups:read`, stays, reads `available` false with the reason, and mentions nobody.

type TeamMentionConnection

type TeamMentionConnection struct {
	// Available Whether the Connection can mention a group now.
	Available  bool      `json:"available"`
	Connection EntityRef `json:"connection"`

	// TeamMention The Team's Team mention for the Connection, null without one.
	TeamMention nullable.Nullable[TeamMention] `json:"team_mention"`
	Type        ConnectionType                 `json:"type"`

	// UnavailableReason Why it cannot; null while it can.
	UnavailableReason nullable.Nullable[MentionUnavailableReason] `json:"unavailable_reason"`
}

TeamMentionConnection A Connection that may have a Destination, with the Team's Team mention for it, for the field of each Connection on the Team page (C-25.FR-8). A Bridge Connection that is a Notification gateway only is not listed.

type TeamMentionInput

type TeamMentionInput struct {
	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Group The group that mentions the Team, without `@` — the name of a Mattermost group, the handle of a Slack user group, or a group name of the bridge — of the form of the group names of Mention settings, 1 to 64 letters, digits, `.`, `_` and `-`, starting with a letter or a digit. Another form is refused with `422` `invalid_format` at it.
	Group string `json:"group"`

	// GroupId The Slack user group's id (`S` followed by digits and capital letters), from `listConnectionGroups`, required for a Slack Connection and refused for the others (`422` `required` or `unsupported` at it, `invalid_format` for another form); Slack mentions the user group by it.
	GroupId *string `json:"group_id,omitempty"`
}

TeamMentionInput The Team mention of a Team for one Connection (C-25.FR-8).

type TeamOnCall

type TeamOnCall struct {
	// Next The segment that follows within `schedule.gap_view`, or null.
	Next nullable.Nullable[OnCallNext] `json:"next"`

	// NoSchedule The Team has no main Schedule ("No Schedule").
	NoSchedule bool `json:"no_schedule"`

	// RotationLayer The Rotation layer whose Shift makes the person On-call; null for an Override, in a gap and without a Schedule.
	RotationLayer nullable.Nullable[EntityRef] `json:"rotation_layer"`

	// Schedule The Team's main Schedule, or null.
	Schedule nullable.Nullable[ScheduleRef] `json:"schedule"`

	// Team The Team an object names, with its slug; `deleted` is true for a Team that was deleted since.
	Team TeamRef `json:"team"`

	// Unreachable The Destinations of the Team, and of the Routes and Teams that name an Escalation chain with a `page_on_call` step on the main Schedule, that a Mention of the On-call now cannot reach (C-27.FR-8, FR-9), each once, by the Destination's name; empty in a gap, without a Schedule and when every Destination reaches them.
	Unreachable []OnCallReach `json:"unreachable"`

	// Until The end of the current segment — the On-call's, or the gap's; null when it lasts beyond `schedule.gap_view` and without a Schedule.
	Until nullable.Nullable[time.Time] `json:"until"`

	// User The On-call now; null in a gap and without a Schedule.
	User nullable.Nullable[UserRef] `json:"user"`
}

TeamOnCall The On-call of a Team's main Schedule now. With `no_schedule` true, the Team has no main Schedule and every other field but `team` is null.

type TeamRef

type TeamRef struct {
	Deleted bool `json:"deleted"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId `json:"id"`
	Name string   `json:"name"`
	Slug string   `json:"slug"`
}

TeamRef The Team an object names, with its slug; `deleted` is true for a Team that was deleted since.

type TeamRule

type TeamRule string

TeamRule How an Alert belongs to a Team (C-25.FR-5) — by the value of the Team label, equal to the Team's slug, or by one of its Team matchers.

const (
	TeamRuleLabel   TeamRule = "label"
	TeamRuleMatcher TeamRule = "matcher"
)

Defines values for TeamRule.

func (TeamRule) Valid

func (e TeamRule) Valid() bool

Valid indicates whether the value is a known member of the TeamRule enum.

type TeamUser

type TeamUser struct {
	// IdpEntries With the source `idp`, the entries of the Team that matched the person at their last OIDC sign-in or re-check; empty without it.
	IdpEntries       []TeamIdpEntry    `json:"idp_entries"`
	LinkedMessengers []LinkedMessenger `json:"linked_messengers"`
	Role             RoleName          `json:"role"`
	Sources          []TeamUserSource  `json:"sources"`

	// User A User. Used wherever the person must be a User: the Owner and the previous Owner.
	User UserRef `json:"user"`
}

TeamUser defines model for TeamUser.

type TeamUserAdd

type TeamUserAdd struct {
	// UserId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	UserId PublicId `json:"user_id"`
}

TeamUserAdd defines model for TeamUserAdd.

type TeamUserList

type TeamUserList struct {
	Items []TeamUser `json:"items"`
}

TeamUserList defines model for TeamUserList.

type TeamUserSource

type TeamUserSource string

TeamUserSource How a person is in a Team. `by_hand` is an Admin's addition; `idp` is an identity provider entry of the Team that matched the person at their last OIDC sign-in or re-check. A person may have both.

const (
	ByHand TeamUserSource = "by_hand"
	Idp    TeamUserSource = "idp"
)

Defines values for TeamUserSource.

func (TeamUserSource) Valid

func (e TeamUserSource) Valid() bool

Valid indicates whether the value is a known member of the TeamUserSource enum.

type TelegramConnection

type TelegramConnection struct {
	// BotApiBaseUrl Absolute http(s) URL without query, fragment or user information; a path prefix is allowed. Requests go to `<base>/bot<token>/<method>`. A self-hosted Bot API server keeps the bot on that server only: never call api.telegram.org with this token from anywhere else.
	BotApiBaseUrl string `json:"bot_api_base_url"`

	// BotTokenStatus What a read shows instead of a Secret. The value itself is never returned.
	BotTokenStatus   SecretStatus              `json:"bot_token_status"`
	BotUsername      nullable.Nullable[string] `json:"bot_username,omitempty"`
	CreatedAt        time.Time                 `json:"created_at"`
	DestinationCount int                       `json:"destination_count"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as read. The password is a Secret.
	Proxy      ProxyConfig                  `json:"proxy"`
	Type       TelegramConnectionType       `json:"type"`
	UpdateMode TelegramUpdateMode           `json:"update_mode"`
	Warnings   []TelegramConnectionWarnings `json:"warnings"`
}

TelegramConnection defines model for TelegramConnection.

type TelegramConnectionBase

type TelegramConnectionBase struct {
	// BotApiBaseUrl Absolute http(s) URL without query, fragment or user information; a path prefix is allowed. Requests go to `<base>/bot<token>/<method>`. A self-hosted Bot API server keeps the bot on that server only: never call api.telegram.org with this token from anywhere else.
	BotApiBaseUrl string `json:"bot_api_base_url"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy  nullable.Nullable[string]  `json:"managed_by,omitempty"`
	Name       string                     `json:"name"`
	Type       TelegramConnectionBaseType `json:"type"`
	UpdateMode TelegramUpdateMode         `json:"update_mode"`
}

TelegramConnectionBase defines model for TelegramConnectionBase.

type TelegramConnectionBaseType

type TelegramConnectionBaseType string

TelegramConnectionBaseType defines model for TelegramConnectionBase.Type.

const (
	TelegramConnectionBaseTypeTelegram TelegramConnectionBaseType = "telegram"
)

Defines values for TelegramConnectionBaseType.

func (TelegramConnectionBaseType) Valid

func (e TelegramConnectionBaseType) Valid() bool

Valid indicates whether the value is a known member of the TelegramConnectionBaseType enum.

type TelegramConnectionDraft

type TelegramConnectionDraft struct {
	// BotApiBaseUrl The Bot API base URL as `TelegramConnectionBase` takes it.
	BotApiBaseUrl string `json:"bot_api_base_url"`

	// BotToken A bot token typed in the form, sent only to `bot_api_base_url`. Omit it to use the stored token of `connection_id`, which goes only to its saved base URL through its saved proxy.
	BotToken *string `json:"bot_token,omitempty"`

	// ConnectionId The saved Telegram Connection that the form edits; omit it for a new one. An omitted `proxy` is its saved proxy, and no proxy without it.
	ConnectionId *PublicId `json:"connection_id,omitempty"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy      *ProxyConfigInput           `json:"proxy,omitempty"`
	Type       TelegramConnectionDraftType `json:"type"`
	UpdateMode TelegramUpdateMode          `json:"update_mode"`
}

TelegramConnectionDraft A Telegram Connection as its form holds it, for `checkConnectionDraft`.

type TelegramConnectionDraftType

type TelegramConnectionDraftType string

TelegramConnectionDraftType defines model for TelegramConnectionDraft.Type.

const (
	TelegramConnectionDraftTypeTelegram TelegramConnectionDraftType = "telegram"
)

Defines values for TelegramConnectionDraftType.

func (TelegramConnectionDraftType) Valid

Valid indicates whether the value is a known member of the TelegramConnectionDraftType enum.

type TelegramConnectionInput

type TelegramConnectionInput struct {
	// BotApiBaseUrl Absolute http(s) URL without query, fragment or user information; a path prefix is allowed. Requests go to `<base>/bot<token>/<method>`. A self-hosted Bot API server keeps the bot on that server only: never call api.telegram.org with this token from anywhere else.
	BotApiBaseUrl string `json:"bot_api_base_url"`

	// BotToken Write-only Secret. Omit on update to keep the stored one.
	BotToken *string `json:"bot_token,omitempty"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`
	Name      string                    `json:"name"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy      ProxyConfigInput            `json:"proxy"`
	Type       TelegramConnectionInputType `json:"type"`
	UpdateMode TelegramUpdateMode          `json:"update_mode"`
}

TelegramConnectionInput defines model for TelegramConnectionInput.

type TelegramConnectionInputType

type TelegramConnectionInputType string

TelegramConnectionInputType defines model for TelegramConnectionInput.Type.

const (
	TelegramConnectionInputTypeTelegram TelegramConnectionInputType = "telegram"
)

Defines values for TelegramConnectionInputType.

func (TelegramConnectionInputType) Valid

Valid indicates whether the value is a known member of the TelegramConnectionInputType enum.

type TelegramConnectionType

type TelegramConnectionType string

TelegramConnectionType defines model for TelegramConnection.Type.

const (
	TelegramConnectionTypeTelegram TelegramConnectionType = "telegram"
)

Defines values for TelegramConnectionType.

func (TelegramConnectionType) Valid

func (e TelegramConnectionType) Valid() bool

Valid indicates whether the value is a known member of the TelegramConnectionType enum.

type TelegramConnectionWarnings

type TelegramConnectionWarnings string

TelegramConnectionWarnings defines model for TelegramConnection.Warnings.

const (
	BaseUrlUsesHttp TelegramConnectionWarnings = "base_url_uses_http"
)

Defines values for TelegramConnectionWarnings.

func (TelegramConnectionWarnings) Valid

func (e TelegramConnectionWarnings) Valid() bool

Valid indicates whether the value is a known member of the TelegramConnectionWarnings enum.

type TelegramDestination

type TelegramDestination struct {
	// Buttons A Destination's button set, `destination.buttons` (C-28.FR-8): `organization`, "As in the Organization", the default, follows the Organization's set and its later changes; `own` shows only `items`, which are then required. A change re-renders the Destination's open Root messages, as edits.
	Buttons DestinationButtonSet `json:"buttons"`

	// ChannelChatId The channel's numeric chat id, found by the Destination check (`getChat` on the channel). Null until a check has found it. Two Destinations with one `channel_chat_id` deliver to one chat.
	ChannelChatId nullable.Nullable[string] `json:"channel_chat_id,omitempty"`

	// ChannelId Telegram chat id or `@username` of the channel. Comments must be enabled on the channel.
	ChannelId    string                    `json:"channel_id"`
	ChannelTitle nullable.Nullable[string] `json:"channel_title,omitempty"`

	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId  `json:"connection_id"`
	CreatedAt    time.Time `json:"created_at"`

	// DiscussionGroupId The channel's linked discussion group, where comments live, found by the Destination check through `getChat` on the channel (`linked_chat_id`). Not an input. Null until a check has found it.
	DiscussionGroupId    nullable.Nullable[string] `json:"discussion_group_id,omitempty"`
	DiscussionGroupTitle nullable.Nullable[string] `json:"discussion_group_title,omitempty"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag   *string           `json:"etag,omitempty"`
	Health DestinationHealth `json:"health"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries in order, each with what it mentions now.
	MentionEntries []MentionEntry `json:"mention_entries"`

	// MentionWarnings The people and entries whose Mentions were not delivered (C-28.FR-3), by entry and then by the person's name; always empty on an outgoing webhook, which takes every person as data.
	MentionWarnings []MentionWarning `json:"mention_warnings"`

	// Mentions The L1 form of the Mention entries that L1 can express on the Destination's type (C-28.FR-5), removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions MentionSettings `json:"mentions"`
	Name     string          `json:"name"`

	// OwningTeam The Team that owns the Destination, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Routes       []EntityRef                         `json:"routes"`

	// Teams The Teams that name the Destination as a Destination of the Team, by name.
	Teams         []TeamRef               `json:"teams"`
	TemplateError *TemplateErrorState     `json:"template_error,omitempty"`
	Type          TelegramDestinationType `json:"type"`
}

TelegramDestination defines model for TelegramDestination.

type TelegramDestinationInput

type TelegramDestinationInput struct {
	// Buttons The Destination's button set (C-28.FR-8, FR-10); omitted on create is `organization`, omitted on an update keeps it.
	Buttons *DestinationButtonSet `json:"buttons,omitempty"`

	// ChannelId Telegram chat id or `@username` of the channel. Comments must be enabled on the channel.
	ChannelId string `json:"channel_id"`

	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries (C-28.FR-1, FR-2), in order, each a target and the Loud events it applies to; omitted on create is none, which mentions nobody, and omitted on an update keeps them. A target the Destination's Connection cannot mention is refused with `422` `mention_unsupported` at `/mention_entries/{i}/target` — Telegram takes only people and the On-call — and an entry whose target equals a stored one is kept whatever the Connection can mention now. An unknown or deleted User or Team is refused with `unknown_id` at its `user_id` or `team_id` unless the entry's target equals a stored one, and a target listed twice with `duplicate` at `/mention_entries/{i}/target`.
	MentionEntries *[]MentionEntryInput `json:"mention_entries,omitempty"`

	// Mentions The Mention settings of L1 (C-12.FR-8), deprecated since 0.2.0 and removed in 0.3.0 (C-28.FR-5). In a read, computed from the `mention_entries` that L1 can express on the Destination's type — the everyone choices, chosen Users and messenger groups L1 took there, for the six kinds of L1 — so that the other entries are not seen in it. In a request it is optional: when a request has no `mention_entries`, it sets them by the conversion of the 0.2.0 migration — on create they are its result; on update it replaces the entries that L1 can express, keeps the others after them, keeps the `storm_started` of a target present before and after, and changes nothing when it equals the stored form — validated as L1 validated it, at pointers under `/mentions`; ignored when `mention_entries` is present.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions *MentionSettings `json:"mentions,omitempty"`
	Name     string           `json:"name"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`
	Type         TelegramDestinationInputType        `json:"type"`
}

TelegramDestinationInput A Telegram Destination is configured by its channel only; Muster finds the channel's discussion group itself (see `TelegramDestination.discussion_group_id`).

type TelegramDestinationInputType

type TelegramDestinationInputType string

TelegramDestinationInputType defines model for TelegramDestinationInput.Type.

const (
	TelegramDestinationInputTypeTelegram TelegramDestinationInputType = "telegram"
)

Defines values for TelegramDestinationInputType.

func (TelegramDestinationInputType) Valid

Valid indicates whether the value is a known member of the TelegramDestinationInputType enum.

type TelegramDestinationType

type TelegramDestinationType string

TelegramDestinationType defines model for TelegramDestination.Type.

const (
	TelegramDestinationTypeTelegram TelegramDestinationType = "telegram"
)

Defines values for TelegramDestinationType.

func (TelegramDestinationType) Valid

func (e TelegramDestinationType) Valid() bool

Valid indicates whether the value is a known member of the TelegramDestinationType enum.

type TelegramLinkRequest

type TelegramLinkRequest struct {
	// ConnectionId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	ConnectionId PublicId `json:"connection_id"`
}

TelegramLinkRequest defines model for TelegramLinkRequest.

type TelegramLinkStart

type TelegramLinkStart struct {
	// DeepLink `t.me/<bot>?start=<token>`. The token is single-use and bound to the User and the Connection.
	DeepLink  string    `json:"deep_link"`
	ExpiresAt time.Time `json:"expires_at"`
}

TelegramLinkStart defines model for TelegramLinkStart.

type TelegramUpdate

type TelegramUpdate struct {
	UpdateId             int64                  `json:"update_id"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

TelegramUpdate A Bot API Update. Muster requests only the update types it needs and ignores unknown fields.

func (TelegramUpdate) Get

func (a TelegramUpdate) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for TelegramUpdate. Returns the specified element and whether it was found

func (TelegramUpdate) MarshalJSON

func (a TelegramUpdate) MarshalJSON() ([]byte, error)

Override default JSON handling for TelegramUpdate to handle AdditionalProperties

func (*TelegramUpdate) Set

func (a *TelegramUpdate) Set(fieldName string, value interface{})

Setter for additional properties for TelegramUpdate

func (*TelegramUpdate) UnmarshalJSON

func (a *TelegramUpdate) UnmarshalJSON(b []byte) error

Override default JSON handling for TelegramUpdate to handle AdditionalProperties

type TelegramUpdateMode

type TelegramUpdateMode string

TelegramUpdateMode defines model for TelegramUpdateMode.

const (
	TelegramUpdateModeLongPolling TelegramUpdateMode = "long_polling"
	TelegramUpdateModeWebhook     TelegramUpdateMode = "webhook"
)

Defines values for TelegramUpdateMode.

func (TelegramUpdateMode) Valid

func (e TelegramUpdateMode) Valid() bool

Valid indicates whether the value is a known member of the TelegramUpdateMode enum.

type TelegramWebhookJSONRequestBody

type TelegramWebhookJSONRequestBody = TelegramUpdate

TelegramWebhookJSONRequestBody defines body for TelegramWebhook for application/json ContentType.

type TelegramWebhookResponse

type TelegramWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
}

func ParseTelegramWebhookResponse

func ParseTelegramWebhookResponse(rsp *http.Response) (*TelegramWebhookResponse, error)

ParseTelegramWebhookResponse parses an HTTP response from a TelegramWebhookWithResponse call

func (TelegramWebhookResponse) ContentType

func (r TelegramWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TelegramWebhookResponse) GetApplicationproblemJSON400

func (r TelegramWebhookResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (TelegramWebhookResponse) GetApplicationproblemJSON401

func (r TelegramWebhookResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (TelegramWebhookResponse) GetBody

func (r TelegramWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TelegramWebhookResponse) Status

func (r TelegramWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (TelegramWebhookResponse) StatusCode

func (r TelegramWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TemplateErrorEntry

type TemplateErrorEntry struct {
	Error       string                        `json:"error"`
	Since       time.Time                     `json:"since"`
	Subject     EntityRef                     `json:"subject"`
	SubjectKind TemplateErrorEntrySubjectKind `json:"subject_kind"`
	Template    TemplateKind                  `json:"template"`
}

TemplateErrorEntry defines model for TemplateErrorEntry.

type TemplateErrorEntrySubjectKind

type TemplateErrorEntrySubjectKind string

TemplateErrorEntrySubjectKind defines model for TemplateErrorEntry.SubjectKind.

const (
	TemplateErrorEntrySubjectKindDestination TemplateErrorEntrySubjectKind = "destination"
	TemplateErrorEntrySubjectKindRoute       TemplateErrorEntrySubjectKind = "route"
)

Defines values for TemplateErrorEntrySubjectKind.

func (TemplateErrorEntrySubjectKind) Valid

Valid indicates whether the value is a known member of the TemplateErrorEntrySubjectKind enum.

type TemplateErrorState

type TemplateErrorState struct {
	Error string `json:"error"`

	// Fallback `fallback_template` for messenger templates, `not_sent` for outgoing webhook requests.
	Fallback TemplateErrorStateFallback `json:"fallback"`
	Since    time.Time                  `json:"since"`
}

TemplateErrorState defines model for TemplateErrorState.

type TemplateErrorStateFallback

type TemplateErrorStateFallback string

TemplateErrorStateFallback `fallback_template` for messenger templates, `not_sent` for outgoing webhook requests.

const (
	FallbackTemplate TemplateErrorStateFallback = "fallback_template"
	NotSent          TemplateErrorStateFallback = "not_sent"
)

Defines values for TemplateErrorStateFallback.

func (TemplateErrorStateFallback) Valid

func (e TemplateErrorStateFallback) Valid() bool

Valid indicates whether the value is a known member of the TemplateErrorStateFallback enum.

type TemplateKind

type TemplateKind string

TemplateKind defines model for TemplateKind.

const (
	TemplateKindAckTimeoutNotice TemplateKind = "ack_timeout_notice"
	TemplateKindLine             TemplateKind = "line"
	TemplateKindLinkRule         TemplateKind = "link_rule"
	TemplateKindRootMessage      TemplateKind = "root_message"
	TemplateKindWebhookRequest   TemplateKind = "webhook_request"
)

Defines values for TemplateKind.

func (TemplateKind) Valid

func (e TemplateKind) Valid() bool

Valid indicates whether the value is a known member of the TemplateKind enum.

type TemplatePreviewRequest

type TemplatePreviewRequest struct {
	// AlertGroupId A `public_id` in the format of `PublicId`, or null.
	AlertGroupId nullable.Nullable[NullablePublicId] `json:"alert_group_id,omitempty"`

	// Format The markup the output is laid out in and alert data are escaped for — `markdown` as in Mattermost (the default), `html` as in Telegram, `commonmark` as in a bridge's envelope body, `mrkdwn` as in Slack. Ignored for `link_rule` and `webhook_request`, which have no markup.
	Format nullable.Nullable[TemplatePreviewRequestFormat] `json:"format,omitempty"`
	Kind   TemplateKind                                    `json:"kind"`

	// Language UI or template language; null follows the default.
	Language nullable.Nullable[NullableLanguage] `json:"language,omitempty"`

	// LengthLimit Messenger length limit to apply, for example 4096.
	LengthLimit nullable.Nullable[int] `json:"length_limit,omitempty"`

	// RouteId A `public_id` in the format of `PublicId`, or null.
	RouteId nullable.Nullable[NullablePublicId] `json:"route_id,omitempty"`

	// StoredSnapshotId A recent Stored Snapshot as the sample. Without a sample the most recent ones the Route took are used (`template.dry_run_sample`), or a built-in example.
	StoredSnapshotId nullable.Nullable[string] `json:"stored_snapshot_id,omitempty"`

	// Template The template to render; empty renders what a Route without a template of the kind shows, and the result returns the source of the built-in template.
	Template string `json:"template"`
}

TemplatePreviewRequest defines model for TemplatePreviewRequest.

type TemplatePreviewRequestFormat

type TemplatePreviewRequestFormat string

TemplatePreviewRequestFormat The markup the output is laid out in and alert data are escaped for — `markdown` as in Mattermost (the default), `html` as in Telegram, `commonmark` as in a bridge's envelope body, `mrkdwn` as in Slack. Ignored for `link_rule` and `webhook_request`, which have no markup.

const (
	TemplatePreviewRequestFormatCommonmark  TemplatePreviewRequestFormat = "commonmark"
	TemplatePreviewRequestFormatHtml        TemplatePreviewRequestFormat = "html"
	TemplatePreviewRequestFormatLessThannil TemplatePreviewRequestFormat = "<nil>"
	TemplatePreviewRequestFormatMarkdown    TemplatePreviewRequestFormat = "markdown"
	TemplatePreviewRequestFormatMrkdwn      TemplatePreviewRequestFormat = "mrkdwn"
)

Defines values for TemplatePreviewRequestFormat.

func (TemplatePreviewRequestFormat) Valid

Valid indicates whether the value is a known member of the TemplatePreviewRequestFormat enum.

type TemplatePreviewResult

type TemplatePreviewResult struct {
	Errors []ProblemError `json:"errors"`

	// Format The markup of `output`; null for kinds without markup.
	Format nullable.Nullable[TemplatePreviewResultFormat] `json:"format,omitempty"`

	// Layout For `root_message`, the content of the rendered message as structured data; null when the template failed, and when a template of the Route renders the content, which the structured data cannot carry, as a bridge then receives no `layout`. The preview renders without the Route's line template, so for a Route with a line template it shows the compact layout, although a bridge receives none.
	Layout nullable.Nullable[MessageLayout] `json:"layout,omitempty"`

	// Length For `root_message`, the length of `output` as its messenger counts it — UTF-16 code units for `html`, characters otherwise.
	Length *int `json:"length,omitempty"`

	// MessengerLimit For `root_message`, the length limit the adapter of `format` declares — 16,383 for Mattermost, 4,096 for Telegram, 3,000 for a Slack section — and null for `commonmark`, whose limit each bridge declares.
	MessengerLimit nullable.Nullable[int] `json:"messenger_limit,omitempty"`

	// Output Rendered text; null when the template failed.
	Output nullable.Nullable[string]                      `json:"output,omitempty"`
	Sample nullable.Nullable[TemplatePreviewResultSample] `json:"sample,omitempty"`

	// Source The source of the rendered template — the request's `template`, or for an empty one the built-in template of the kind in the preview's language, for an editor to start from; null for `link_rule` and `webhook_request`, which have no built-in template.
	Source nullable.Nullable[string] `json:"source,omitempty"`

	// Truncated The output was shortened to the length limit.
	Truncated *bool `json:"truncated,omitempty"`
	Valid     bool  `json:"valid"`
}

TemplatePreviewResult defines model for TemplatePreviewResult.

type TemplatePreviewResultFormat

type TemplatePreviewResultFormat string

TemplatePreviewResultFormat The markup of `output`; null for kinds without markup.

const (
	TemplatePreviewResultFormatCommonmark  TemplatePreviewResultFormat = "commonmark"
	TemplatePreviewResultFormatHtml        TemplatePreviewResultFormat = "html"
	TemplatePreviewResultFormatLessThannil TemplatePreviewResultFormat = "<nil>"
	TemplatePreviewResultFormatMarkdown    TemplatePreviewResultFormat = "markdown"
	TemplatePreviewResultFormatMrkdwn      TemplatePreviewResultFormat = "mrkdwn"
)

Defines values for TemplatePreviewResultFormat.

func (TemplatePreviewResultFormat) Valid

Valid indicates whether the value is a known member of the TemplatePreviewResultFormat enum.

type TemplatePreviewResultSample

type TemplatePreviewResultSample string

TemplatePreviewResultSample defines model for TemplatePreviewResult.Sample.

const (
	TemplatePreviewResultSampleAlertGroup     TemplatePreviewResultSample = "alert_group"
	TemplatePreviewResultSampleExample        TemplatePreviewResultSample = "example"
	TemplatePreviewResultSampleLessThannil    TemplatePreviewResultSample = "<nil>"
	TemplatePreviewResultSampleStoredSnapshot TemplatePreviewResultSample = "stored_snapshot"
)

Defines values for TemplatePreviewResultSample.

func (TemplatePreviewResultSample) Valid

Valid indicates whether the value is a known member of the TemplatePreviewResultSample enum.

type TestDestinationJSONRequestBody

type TestDestinationJSONRequestBody = DestinationTestRequest

TestDestinationJSONRequestBody defines body for TestDestination for application/json ContentType.

type TestDestinationResponse

type TestDestinationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DestinationTestResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON501 the response for an HTTP 501 `application/problem+json` response
	ApplicationproblemJSON501 *NotImplemented
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *TestDestinationResponse429Headers
}

func ParseTestDestinationResponse

func ParseTestDestinationResponse(rsp *http.Response) (*TestDestinationResponse, error)

ParseTestDestinationResponse parses an HTTP response from a TestDestinationWithResponse call

func (TestDestinationResponse) ContentType

func (r TestDestinationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TestDestinationResponse) GetApplicationproblemJSON400

func (r TestDestinationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (TestDestinationResponse) GetApplicationproblemJSON401

func (r TestDestinationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (TestDestinationResponse) GetApplicationproblemJSON403

func (r TestDestinationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (TestDestinationResponse) GetApplicationproblemJSON404

func (r TestDestinationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (TestDestinationResponse) GetApplicationproblemJSON422

func (r TestDestinationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (TestDestinationResponse) GetApplicationproblemJSON429

func (r TestDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (TestDestinationResponse) GetApplicationproblemJSON501

func (r TestDestinationResponse) GetApplicationproblemJSON501() *NotImplemented

GetApplicationproblemJSON501 returns the response for an HTTP 501 `application/problem+json` response

func (TestDestinationResponse) GetBody

func (r TestDestinationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TestDestinationResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TestDestinationResponse) Status

func (r TestDestinationResponse) Status() string

Status returns HTTPResponse.Status

func (TestDestinationResponse) StatusCode

func (r TestDestinationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TestDestinationResponse429Headers

type TestDestinationResponse429Headers struct {
	RetryAfter *int
}

TestDestinationResponse429Headers the declared response headers of an HTTP 429 response for TestDestination

type TestSource

type TestSource struct {
	// AlertGroupId A recent Alert Group of one of the Destination's Routes; required for `alert_group`.
	AlertGroupId nullable.Nullable[string] `json:"alert_group_id,omitempty"`
	Kind         TestSourceKind            `json:"kind"`
}

TestSource defines model for TestSource.

type TestSourceKind

type TestSourceKind string

TestSourceKind defines model for TestSource.Kind.

const (
	TestSourceKindAlertGroup TestSourceKind = "alert_group"
	TestSourceKindExample    TestSourceKind = "example"
)

Defines values for TestSourceKind.

func (TestSourceKind) Valid

func (e TestSourceKind) Valid() bool

Valid indicates whether the value is a known member of the TestSourceKind enum.

type TestStep

type TestStep struct {
	DurationMs int `json:"duration_ms"`

	// Error What failed, in English. Secrets, the Signing secret and tokens are masked. Clients show it as the detail of `error_code`, or of `error_class` without one.
	Error nullable.Nullable[string] `json:"error,omitempty"`

	// ErrorClass How a delivery attempt ended. `limited`: no limiter token was free within `delivery.interactive_budget`, so nothing was sent (a test only; the attempt did not reach the remote side).
	ErrorClass DeliveryErrorClass `json:"error_class"`

	// ErrorCode What failed in a step where `error_class` does not tell it, for the `press` step of a Mattermost Destination: `press_not_reached` — the bot pressed the button, but the press did not reach Muster's callback; `error` names the host of `MUSTER_INGEST_URL` to add to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server; `bot_unknown` — no Connection check has learned the bot yet, so it did not press; run the Connection check, then test again. Null otherwise.
	ErrorCode nullable.Nullable[NullableTestStepErrorCode] `json:"error_code,omitempty"`
	Extracted *map[string]string                           `json:"extracted,omitempty"`

	// Name `message` — the test message to a messenger; `press` — for a Mattermost Destination, the bot's own press of the test message's first button (`POST /api/v4/posts/{post_id}/actions/{action_id}`): `error_class` `none` when the press reached Muster's callback; otherwise `error` says to add the host of `MUSTER_INGEST_URL` to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server, and `limited` means no limiter token was free for it; `event` and `create` — the requests of an outgoing webhook. A Slack Destination's `message` is sent with `chat.postMessage`.
	Name TestStepName `json:"name"`

	// Request A request as it would be or was sent, with Secrets, the Signing secret and tokens masked.
	Request *RenderedRequest `json:"request,omitempty"`

	// ResponseBody Truncated. Untrusted text; render as plain text. Secrets, the Signing secret and tokens are masked.
	ResponseBody   nullable.Nullable[string] `json:"response_body,omitempty"`
	ResponseStatus nullable.Nullable[int]    `json:"response_status,omitempty"`
}

TestStep defines model for TestStep.

type TestStepName

type TestStepName string

TestStepName `message` — the test message to a messenger; `press` — for a Mattermost Destination, the bot's own press of the test message's first button (`POST /api/v4/posts/{post_id}/actions/{action_id}`): `error_class` `none` when the press reached Muster's callback; otherwise `error` says to add the host of `MUSTER_INGEST_URL` to `ServiceSettings.AllowedUntrustedInternalConnections` on the Mattermost server, and `limited` means no limiter token was free for it; `event` and `create` — the requests of an outgoing webhook. A Slack Destination's `message` is sent with `chat.postMessage`.

const (
	TestStepNameCreate  TestStepName = "create"
	TestStepNameEvent   TestStepName = "event"
	TestStepNameMessage TestStepName = "message"
	TestStepNamePress   TestStepName = "press"
)

Defines values for TestStepName.

func (TestStepName) Valid

func (e TestStepName) Valid() bool

Valid indicates whether the value is a known member of the TestStepName enum.

type TimelineActor

type TimelineActor struct {
	// Id A `public_id` in the format of `PublicId`, or null.
	Id   nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
	Kind ActorKind                           `json:"kind"`
	Name nullable.Nullable[string]           `json:"name,omitempty"`

	// Reason Reason of an automatic transition, for example `owner_disabled` or `owner_deleted` when disabling or deleting a user released their acknowledgement.
	Reason    nullable.Nullable[string] `json:"reason,omitempty"`
	TokenName nullable.Nullable[string] `json:"token_name,omitempty"`

	// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `gateway` marks an Acknowledge from a call through a Notification gateway; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
	Transport *Transport `json:"transport,omitempty"`
}

TimelineActor Who caused the entry. `system` entries carry the reason in `reason`.

type TimelineAlertsEntry

type TimelineAlertsEntry struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`
	At    time.Time     `json:"at"`

	// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
	// The Timeline kind of each event is given in `x-event-kinds`.
	Event        LifecycleEvent `json:"event"`
	Fingerprints *[]string      `json:"fingerprints,omitempty"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id   PublicId                `json:"id"`
	Kind TimelineAlertsEntryKind `json:"kind"`

	// LabelConflicts Static labels the added Alerts already carried.
	LabelConflicts *[]string     `json:"label_conflicts,omitempty"`
	Loudness       Loudness      `json:"loudness"`
	Mentions       []MentionName `json:"mentions"`

	// Reason Why the Severity level rose, as text, for a `severity_raised` that no Alert caused; clients translate `reason_code` and show this text only when there is no code.
	Reason nullable.Nullable[string] `json:"reason,omitempty"`

	// ReasonCode The stable code of the reason of an automatic status change: why the Alert that resolved the Alert Group resolved (`resolved`, `gone`, `stale`, `integration_deleted`), why the Owner was released (`owner_disabled`, `owner_deleted`), `reminders_unanswered` when nobody answered the last two Reminders and the Alert Group was unacknowledged automatically, or `minimum_severity` when the Severity level was raised by the Minimum severity of the Route. Null when the entry has no reason or its reason has no code.
	ReasonCode nullable.Nullable[NullableStatusChangeReason] `json:"reason_code,omitempty"`

	// ReplacedLabel The Instance label that differs, for `alert_replaced`.
	ReplacedLabel nullable.Nullable[string] `json:"replaced_label,omitempty"`

	// Team The Team that joined, for `team_joined`; a Team deleted since keeps its name.
	Team *TeamRef `json:"team,omitempty"`

	// TeamMatcher The Team matcher that brought the Team, for `team_joined` by the rule `matcher`.
	TeamMatcher nullable.Nullable[string] `json:"team_matcher,omitempty"`

	// TeamRule The rule that brought the Team, for `team_joined`.
	TeamRule *TeamRule `json:"team_rule,omitempty"`
}

TimelineAlertsEntry defines model for TimelineAlertsEntry.

type TimelineAlertsEntryKind

type TimelineAlertsEntryKind string

TimelineAlertsEntryKind defines model for TimelineAlertsEntry.Kind.

const (
	TimelineAlertsEntryKindAlerts TimelineAlertsEntryKind = "alerts"
)

Defines values for TimelineAlertsEntryKind.

func (TimelineAlertsEntryKind) Valid

func (e TimelineAlertsEntryKind) Valid() bool

Valid indicates whether the value is a known member of the TimelineAlertsEntryKind enum.

type TimelineDeliveryEntry

type TimelineDeliveryEntry struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`
	At    time.Time     `json:"at"`

	// DeliveryEvent Delivery events are not lifecycle events and reach neither messengers nor outgoing webhook events.
	DeliveryEvent DeliveryEventKind `json:"delivery_event"`
	Destination   EntityRef         `json:"destination"`

	// Error Provider error text. Secrets, the Signing secret and tokens are masked. Untrusted: render as plain text.
	Error nullable.Nullable[string] `json:"error,omitempty"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id       PublicId                  `json:"id"`
	Kind     TimelineDeliveryEntryKind `json:"kind"`
	Loudness Loudness                  `json:"loudness"`

	// Mention For `mention_not_delivered` only, the person whom a Mention entry named and the delivered Loud message did not mention as their messenger mentions them (C-28.FR-3), or the group, Team mention or everyone in the chat that a bridge's Mention line left out for length (C-12.FR-11), that of a Page's Thread reply included; nothing was written in the Thread for it.
	Mention *UndeliveredMention `json:"mention,omitempty"`

	// Mentions Mentions the delivery event carried (see the Loud and Quiet table of delivery events).
	Mentions []MentionName `json:"mentions"`
}

TimelineDeliveryEntry defines model for TimelineDeliveryEntry.

type TimelineDeliveryEntryKind

type TimelineDeliveryEntryKind string

TimelineDeliveryEntryKind defines model for TimelineDeliveryEntry.Kind.

const (
	TimelineDeliveryEntryKindDelivery TimelineDeliveryEntryKind = "delivery"
)

Defines values for TimelineDeliveryEntryKind.

func (TimelineDeliveryEntryKind) Valid

func (e TimelineDeliveryEntryKind) Valid() bool

Valid indicates whether the value is a known member of the TimelineDeliveryEntryKind enum.

type TimelineEntry

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

TimelineEntry One Timeline entry; `kind` selects the variant.

func (TimelineEntry) AsTimelineAlertsEntry

func (t TimelineEntry) AsTimelineAlertsEntry() (TimelineAlertsEntry, error)

AsTimelineAlertsEntry returns the union data inside the TimelineEntry as a TimelineAlertsEntry

func (TimelineEntry) AsTimelineDeliveryEntry

func (t TimelineEntry) AsTimelineDeliveryEntry() (TimelineDeliveryEntry, error)

AsTimelineDeliveryEntry returns the union data inside the TimelineEntry as a TimelineDeliveryEntry

func (TimelineEntry) AsTimelineEscalationEntry

func (t TimelineEntry) AsTimelineEscalationEntry() (TimelineEscalationEntry, error)

AsTimelineEscalationEntry returns the union data inside the TimelineEntry as a TimelineEscalationEntry

func (TimelineEntry) AsTimelineNoteEntry

func (t TimelineEntry) AsTimelineNoteEntry() (TimelineNoteEntry, error)

AsTimelineNoteEntry returns the union data inside the TimelineEntry as a TimelineNoteEntry

func (TimelineEntry) AsTimelineStatusEntry

func (t TimelineEntry) AsTimelineStatusEntry() (TimelineStatusEntry, error)

AsTimelineStatusEntry returns the union data inside the TimelineEntry as a TimelineStatusEntry

func (TimelineEntry) AsTimelineSystemEntry

func (t TimelineEntry) AsTimelineSystemEntry() (TimelineSystemEntry, error)

AsTimelineSystemEntry returns the union data inside the TimelineEntry as a TimelineSystemEntry

func (TimelineEntry) AsTimelineTimersEntry

func (t TimelineEntry) AsTimelineTimersEntry() (TimelineTimersEntry, error)

AsTimelineTimersEntry returns the union data inside the TimelineEntry as a TimelineTimersEntry

func (TimelineEntry) Discriminator

func (t TimelineEntry) Discriminator() (string, error)

func (*TimelineEntry) FromTimelineAlertsEntry

func (t *TimelineEntry) FromTimelineAlertsEntry(v TimelineAlertsEntry) error

FromTimelineAlertsEntry overwrites any union data inside the TimelineEntry as the provided TimelineAlertsEntry

func (*TimelineEntry) FromTimelineDeliveryEntry

func (t *TimelineEntry) FromTimelineDeliveryEntry(v TimelineDeliveryEntry) error

FromTimelineDeliveryEntry overwrites any union data inside the TimelineEntry as the provided TimelineDeliveryEntry

func (*TimelineEntry) FromTimelineEscalationEntry

func (t *TimelineEntry) FromTimelineEscalationEntry(v TimelineEscalationEntry) error

FromTimelineEscalationEntry overwrites any union data inside the TimelineEntry as the provided TimelineEscalationEntry

func (*TimelineEntry) FromTimelineNoteEntry

func (t *TimelineEntry) FromTimelineNoteEntry(v TimelineNoteEntry) error

FromTimelineNoteEntry overwrites any union data inside the TimelineEntry as the provided TimelineNoteEntry

func (*TimelineEntry) FromTimelineStatusEntry

func (t *TimelineEntry) FromTimelineStatusEntry(v TimelineStatusEntry) error

FromTimelineStatusEntry overwrites any union data inside the TimelineEntry as the provided TimelineStatusEntry

func (*TimelineEntry) FromTimelineSystemEntry

func (t *TimelineEntry) FromTimelineSystemEntry(v TimelineSystemEntry) error

FromTimelineSystemEntry overwrites any union data inside the TimelineEntry as the provided TimelineSystemEntry

func (*TimelineEntry) FromTimelineTimersEntry

func (t *TimelineEntry) FromTimelineTimersEntry(v TimelineTimersEntry) error

FromTimelineTimersEntry overwrites any union data inside the TimelineEntry as the provided TimelineTimersEntry

func (TimelineEntry) MarshalJSON

func (t TimelineEntry) MarshalJSON() ([]byte, error)

func (*TimelineEntry) MergeTimelineAlertsEntry

func (t *TimelineEntry) MergeTimelineAlertsEntry(v TimelineAlertsEntry) error

MergeTimelineAlertsEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineAlertsEntry

func (*TimelineEntry) MergeTimelineDeliveryEntry

func (t *TimelineEntry) MergeTimelineDeliveryEntry(v TimelineDeliveryEntry) error

MergeTimelineDeliveryEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineDeliveryEntry

func (*TimelineEntry) MergeTimelineEscalationEntry

func (t *TimelineEntry) MergeTimelineEscalationEntry(v TimelineEscalationEntry) error

MergeTimelineEscalationEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineEscalationEntry

func (*TimelineEntry) MergeTimelineNoteEntry

func (t *TimelineEntry) MergeTimelineNoteEntry(v TimelineNoteEntry) error

MergeTimelineNoteEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineNoteEntry

func (*TimelineEntry) MergeTimelineStatusEntry

func (t *TimelineEntry) MergeTimelineStatusEntry(v TimelineStatusEntry) error

MergeTimelineStatusEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineStatusEntry

func (*TimelineEntry) MergeTimelineSystemEntry

func (t *TimelineEntry) MergeTimelineSystemEntry(v TimelineSystemEntry) error

MergeTimelineSystemEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineSystemEntry

func (*TimelineEntry) MergeTimelineTimersEntry

func (t *TimelineEntry) MergeTimelineTimersEntry(v TimelineTimersEntry) error

MergeTimelineTimersEntry performs a merge with any union data inside the TimelineEntry, using the provided TimelineTimersEntry

func (*TimelineEntry) UnmarshalJSON

func (t *TimelineEntry) UnmarshalJSON(b []byte) error

func (TimelineEntry) ValueByDiscriminator

func (t TimelineEntry) ValueByDiscriminator() (interface{}, error)

type TimelineEntryBase

type TimelineEntryBase struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`
	At    time.Time     `json:"at"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id   PublicId     `json:"id"`
	Kind TimelineKind `json:"kind"`
}

TimelineEntryBase defines model for TimelineEntryBase.

type TimelineEntryList

type TimelineEntryList struct {
	Items      []TimelineEntry           `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

TimelineEntryList defines model for TimelineEntryList.

type TimelineEscalationEntry

type TimelineEscalationEntry struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`

	// Assignees The Assignees after the change, for `assignees_changed`; empty once Acknowledge, Snooze or Resolve cleared them.
	Assignees *[]Assignee `json:"assignees,omitempty"`
	At        time.Time   `json:"at"`

	// Chain The Escalation chain of the event, null once it was deleted or for an event of no chain.
	Chain nullable.Nullable[EscalationChainRef] `json:"chain,omitempty"`

	// ChainName The name of the chain when its run started; null for an event of no chain.
	ChainName nullable.Nullable[string] `json:"chain_name,omitempty"`

	// Destination The outgoing webhook Destination the step sent to, for `escalation_webhook`.
	Destination *DestinationRef `json:"destination,omitempty"`

	// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
	// The Timeline kind of each event is given in `x-event-kinds`.
	Event LifecycleEvent `json:"event"`

	// Everyone The word for everyone in the chat that a `page_team` step wrote instead of a Team mention; null otherwise.
	Everyone nullable.Nullable[PageEveryone] `json:"everyone,omitempty"`

	// Gateway The Notification gateway of a call; null for a Page by Mention.
	Gateway nullable.Nullable[EntityRef] `json:"gateway,omitempty"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id PublicId `json:"id"`

	// Importance How a step Paged its people, which ran their Notification rule of that name (C-31.FR-3); null for a Page of a Team or of everyone in the chat, and for the events of the kind that are no Page by Mention.
	Importance nullable.Nullable[NullablePageImportance] `json:"importance,omitempty"`
	Kind       TimelineEscalationEntryKind               `json:"kind"`
	Loudness   Loudness                                  `json:"loudness"`
	Mentions   []MentionName                             `json:"mentions"`

	// PagedUsers The people the Page names.
	PagedUsers []UserRef `json:"paged_users"`

	// Reason Why a Page reached its person nowhere (`page_not_delivered`): the Notification gateway refused the call (`call_refused`), answered what Muster cannot classify (`call_unknown`), or kept failing until the retry budget was used (`call_budget_used`); the person had no confirmed contact at the gateway at the first attempt (`no_confirmed_contact`); the gateway was deleted, or is no Notification gateway any more, before the call was sent (`gateway_deleted`); or the call came due while the gateway was Broken, and is never sent (`gateway_broken`). A Page by Mention (C-32.FR-10): none of its chain's Destinations has the Alert Group's Root message (`no_root_message`), the person has no Account link in the Identity space of any of them (`no_account_link`), or every Thread reply that would mention them ended Not delivered, was withheld while its Destination was Broken, or was never sent because its Root message ended Not delivered (`not_delivered`). Null for the other events of the kind. Later versions add reasons; clients show an unknown one as it is.
	Reason nullable.Nullable[PageNotDeliveredReason] `json:"reason,omitempty"`

	// SkipReason Why a step was skipped (`escalation_step_skipped`, C-32.FR-14): outside the Working hours of its chain (`outside_working_hours`), for a Severity level its condition does not meet (`severity`), in a gap of the Schedule it Pages (`schedule_gap`), for a person it names who became a Viewer (`viewer`) or was disabled (`disabled`) since it was saved, or for a step "Send to an outgoing webhook" whose Destination was deleted (`destination_deleted`) or is no longer an outgoing webhook in the mode events or both (`webhook_events_required`), or for a step "Page the whole Team" that none of its chain's Destinations can mention, as a Telegram channel cannot (`no_mention_possible`), or for a step "Call through a Notification gateway" or a call action of a Notification rule whose gateway was deleted or is no Notification gateway any more (`gateway_deleted`), or for a person it would call who has no confirmed contact there (`no_confirmed_contact`), with the person in `paged_users` (C-32.FR-14, C-30.FR-9, C-31.FR-3). Null when the step was made. Later versions add reasons; clients show an unknown one as it is.
	SkipReason nullable.Nullable[EscalationSkipReason] `json:"skip_reason,omitempty"`

	// Step The number of the step of the chain; null for an event of no chain.
	Step nullable.Nullable[int] `json:"step,omitempty"`

	// Team The Team whose Team mention a `page_team` step wrote, for its `paged`; null otherwise.
	Team nullable.Nullable[TeamRef] `json:"team,omitempty"`
}

TimelineEscalationEntry An event of Escalation chains and Pages (C-32), such as `paged` for a Page by Mention, with its people and `importance`, or the `team` or the word for `everyone` of a `page_team` step, `paged` for a call through a Notification gateway, Quiet, with its person and its `gateway` (C-30.FR-4), `page_not_delivered` for a call through a Notification gateway or a Page by Mention that ended Not delivered, `escalation_step_skipped` for a step of a chain that was skipped, with the chain, the step and `skip_reason`, and the person in `paged_users` for a skip of a person, `escalation_webhook` for a step that sent to an outgoing webhook, with the chain, the step and `destination`, or `assignees_changed`, with the Assignees after the change in `assignees`.

type TimelineEscalationEntryKind

type TimelineEscalationEntryKind string

TimelineEscalationEntryKind defines model for TimelineEscalationEntry.Kind.

const (
	TimelineEscalationEntryKindEscalation TimelineEscalationEntryKind = "escalation"
)

Defines values for TimelineEscalationEntryKind.

func (TimelineEscalationEntryKind) Valid

Valid indicates whether the value is a known member of the TimelineEscalationEntryKind enum.

type TimelineKind

type TimelineKind string

TimelineKind defines model for TimelineKind.

const (
	TimelineKindAlerts     TimelineKind = "alerts"
	TimelineKindDelivery   TimelineKind = "delivery"
	TimelineKindEscalation TimelineKind = "escalation"
	TimelineKindNotes      TimelineKind = "notes"
	TimelineKindStatus     TimelineKind = "status"
	TimelineKindSystem     TimelineKind = "system"
	TimelineKindTimers     TimelineKind = "timers"
)

Defines values for TimelineKind.

func (TimelineKind) Valid

func (e TimelineKind) Valid() bool

Valid indicates whether the value is a known member of the TimelineKind enum.

type TimelineLifecycleFields

type TimelineLifecycleFields struct {
	// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
	// The Timeline kind of each event is given in `x-event-kinds`.
	Event    LifecycleEvent `json:"event"`
	Loudness Loudness       `json:"loudness"`
	Mentions []MentionName  `json:"mentions"`
}

TimelineLifecycleFields defines model for TimelineLifecycleFields.

type TimelineNoteEntry

type TimelineNoteEntry struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`
	At    time.Time     `json:"at"`

	// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
	// The Timeline kind of each event is given in `x-event-kinds`.
	Event LifecycleEvent `json:"event"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id       PublicId              `json:"id"`
	Kind     TimelineNoteEntryKind `json:"kind"`
	Loudness Loudness              `json:"loudness"`
	Mentions []MentionName         `json:"mentions"`
	Note     Note                  `json:"note"`
}

TimelineNoteEntry defines model for TimelineNoteEntry.

type TimelineNoteEntryKind

type TimelineNoteEntryKind string

TimelineNoteEntryKind defines model for TimelineNoteEntry.Kind.

const (
	TimelineNoteEntryKindNotes TimelineNoteEntryKind = "notes"
)

Defines values for TimelineNoteEntryKind.

func (TimelineNoteEntryKind) Valid

func (e TimelineNoteEntryKind) Valid() bool

Valid indicates whether the value is a known member of the TimelineNoteEntryKind enum.

type TimelineStatusEntry

type TimelineStatusEntry struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`
	At    time.Time     `json:"at"`

	// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
	// The Timeline kind of each event is given in `x-event-kinds`.
	Event LifecycleEvent `json:"event"`

	// Fingerprints The Alerts that started the Alert Group (`created`), reopened it (`reopened`) or whose resolution resolved it (`resolved`): Alerts of one Snapshot are one entry.
	Fingerprints *[]string                                   `json:"fingerprints,omitempty"`
	FromStatus   nullable.Nullable[NullableAlertGroupStatus] `json:"from_status,omitempty"`

	// Gateway The Notification gateway of the call that an acknowledgement through the Transport `gateway` came from, as the `gateway` of an entry of the kind `escalation`; null for any other entry, and for one that a version without it recorded.
	Gateway nullable.Nullable[EntityRef] `json:"gateway,omitempty"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id   PublicId                `json:"id"`
	Kind TimelineStatusEntryKind `json:"kind"`

	// LabelConflicts Static labels the Alerts of `created` or `reopened` already carried.
	LabelConflicts *[]string     `json:"label_conflicts,omitempty"`
	Loudness       Loudness      `json:"loudness"`
	Mentions       []MentionName `json:"mentions"`

	// Owner The Owner after the entry, if any.
	Owner *UserRef `json:"owner,omitempty"`

	// PreviousOwner The Owner who lost the Alert Group (Takeover, urgency rise, auto-unacknowledge, an Owner disabled or deleted).
	PreviousOwner *UserRef `json:"previous_owner,omitempty"`

	// Reason Reason of an automatic status change, as text; clients translate `reason_code` and show this text only when there is no code.
	Reason nullable.Nullable[string] `json:"reason,omitempty"`

	// ReasonCode The stable code of the reason of an automatic status change: why the Alert that resolved the Alert Group resolved (`resolved`, `gone`, `stale`, `integration_deleted`), why the Owner was released (`owner_disabled`, `owner_deleted`), `reminders_unanswered` when nobody answered the last two Reminders and the Alert Group was unacknowledged automatically, or `minimum_severity` when the Severity level was raised by the Minimum severity of the Route. Null when the entry has no reason or its reason has no code.
	ReasonCode  nullable.Nullable[NullableStatusChangeReason] `json:"reason_code,omitempty"`
	SnoozeUntil nullable.Nullable[time.Time]                  `json:"snooze_until,omitempty"`
	ToStatus    *AlertGroupStatus                             `json:"to_status,omitempty"`
}

TimelineStatusEntry defines model for TimelineStatusEntry.

type TimelineStatusEntryKind

type TimelineStatusEntryKind string

TimelineStatusEntryKind defines model for TimelineStatusEntry.Kind.

const (
	TimelineStatusEntryKindStatus TimelineStatusEntryKind = "status"
)

Defines values for TimelineStatusEntryKind.

func (TimelineStatusEntryKind) Valid

func (e TimelineStatusEntryKind) Valid() bool

Valid indicates whether the value is a known member of the TimelineStatusEntryKind enum.

type TimelineSystemEntry

type TimelineSystemEntry struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`
	At    time.Time     `json:"at"`

	// Destination The Destination the Alert Group joined, for `destination_joined`.
	Destination *DestinationRef           `json:"destination,omitempty"`
	Detail      nullable.Nullable[string] `json:"detail,omitempty"`

	// Event Set for lifecycle events of kind `system`.
	Event *LifecycleEvent `json:"event,omitempty"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id          PublicId                       `json:"id"`
	Kind        TimelineSystemEntryKind        `json:"kind"`
	Loudness    *Loudness                      `json:"loudness,omitempty"`
	Mentions    *[]MentionName                 `json:"mentions,omitempty"`
	PeriodFrom  nullable.Nullable[time.Time]   `json:"period_from,omitempty"`
	PeriodTo    nullable.Nullable[time.Time]   `json:"period_to,omitempty"`
	SystemEvent TimelineSystemEntrySystemEvent `json:"system_event"`

	// TeamValue The value of the Team label that names no Team, for `unknown_team_value`.
	TeamValue nullable.Nullable[string] `json:"team_value,omitempty"`
}

TimelineSystemEntry defines model for TimelineSystemEntry.

type TimelineSystemEntryKind

type TimelineSystemEntryKind string

TimelineSystemEntryKind defines model for TimelineSystemEntry.Kind.

const (
	TimelineSystemEntryKindSystem TimelineSystemEntryKind = "system"
)

Defines values for TimelineSystemEntryKind.

func (TimelineSystemEntryKind) Valid

func (e TimelineSystemEntryKind) Valid() bool

Valid indicates whether the value is a known member of the TimelineSystemEntryKind enum.

type TimelineSystemEntrySystemEvent

type TimelineSystemEntrySystemEvent string

TimelineSystemEntrySystemEvent defines model for TimelineSystemEntry.SystemEvent.

const (
	TimelineSystemEntrySystemEventDestinationJoined    TimelineSystemEntrySystemEvent = "destination_joined"
	TimelineSystemEntrySystemEventFallbackTemplateUsed TimelineSystemEntrySystemEvent = "fallback_template_used"
	TimelineSystemEntrySystemEventMovedToDefaultRoute  TimelineSystemEntrySystemEvent = "moved_to_default_route"
	TimelineSystemEntrySystemEventMusterUnavailable    TimelineSystemEntrySystemEvent = "muster_unavailable"
	TimelineSystemEntrySystemEventTemplateValueMissing TimelineSystemEntrySystemEvent = "template_value_missing"
	TimelineSystemEntrySystemEventUnknownTeamValue     TimelineSystemEntrySystemEvent = "unknown_team_value"
)

Defines values for TimelineSystemEntrySystemEvent.

func (TimelineSystemEntrySystemEvent) Valid

Valid indicates whether the value is a known member of the TimelineSystemEntrySystemEvent enum.

type TimelineTimersEntry

type TimelineTimersEntry struct {
	// Actor Who caused the entry. `system` entries carry the reason in `reason`.
	Actor TimelineActor `json:"actor"`
	At    time.Time     `json:"at"`

	// Event Lifecycle event names, exactly as in the lifecycle event tables (every row is one Timeline entry with the row's kind, loudness and Mentions).
	// The Timeline kind of each event is given in `x-event-kinds`.
	Event LifecycleEvent `json:"event"`

	// Id `TE` for lifecycle and system entries, `NE` for a Note (the same id as its `note`), `DE` for a delivery event.
	Id       PublicId                `json:"id"`
	Kind     TimelineTimersEntryKind `json:"kind"`
	Loudness Loudness                `json:"loudness"`
	Mentions []MentionName           `json:"mentions"`

	// MissedCount For `notices_missed`.
	MissedCount  nullable.Nullable[int] `json:"missed_count,omitempty"`
	NoticeNumber nullable.Nullable[int] `json:"notice_number,omitempty"`
}

TimelineTimersEntry defines model for TimelineTimersEntry.

type TimelineTimersEntryKind

type TimelineTimersEntryKind string

TimelineTimersEntryKind defines model for TimelineTimersEntry.Kind.

const (
	TimelineTimersEntryKindTimers TimelineTimersEntryKind = "timers"
)

Defines values for TimelineTimersEntryKind.

func (TimelineTimersEntryKind) Valid

func (e TimelineTimersEntryKind) Valid() bool

Valid indicates whether the value is a known member of the TimelineTimersEntryKind enum.

type To

type To = time.Time

To defines model for To.

type TokenId

type TokenId = PublicId

TokenId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type TooManyRequests

type TooManyRequests = Problem

TooManyRequests RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type TotpCode

type TotpCode struct {
	// Code Current TOTP code.
	Code string `json:"code"`
}

TotpCode defines model for TotpCode.

type TotpEnrolment

type TotpEnrolment struct {
	OtpauthUri string `json:"otpauth_uri"`

	// Secret Base32 seed for manual entry.
	Secret string `json:"secret"`
}

TotpEnrolment Shown once, while enrolling. The UI renders `otpauth_uri` as a QR code.

type TotpPolicy

type TotpPolicy string

TotpPolicy Who must enrol TOTP. `local_users` covers every account that has a password; an account that signs in through OIDC — created through OIDC or linked — is not one. A user has one TOTP enrolment, asked at every sign-in and kept when the account changes its sign-in method; on an OIDC sign-in `oidc.skip_totp_with_idp_mfa` may skip it.

const (
	TotpPolicyEveryone   TotpPolicy = "everyone"
	TotpPolicyLocalUsers TotpPolicy = "local_users"
	TotpPolicyNobody     TotpPolicy = "nobody"
)

Defines values for TotpPolicy.

func (TotpPolicy) Valid

func (e TotpPolicy) Valid() bool

Valid indicates whether the value is a known member of the TotpPolicy enum.

type TotpRecoveryCodes

type TotpRecoveryCodes struct {
	Codes []string `json:"codes"`
}

TotpRecoveryCodes Single-use recovery codes, shown once.

type TotpRemoval

type TotpRemoval struct {
	// Password The current password; local users only.
	Password *string `json:"password,omitempty"`

	// RecoveryCode A single-use recovery code.
	RecoveryCode *string `json:"recovery_code,omitempty"`

	// TotpCode Current TOTP code.
	TotpCode *string `json:"totp_code,omitempty"`
}

TotpRemoval One proof is enough.

type TotpStatus

type TotpStatus struct {
	Enrolled               bool                         `json:"enrolled"`
	EnrolledAt             nullable.Nullable[time.Time] `json:"enrolled_at,omitempty"`
	EnrolmentPending       bool                         `json:"enrolment_pending"`
	RecoveryCodesRemaining int                          `json:"recovery_codes_remaining"`
}

TotpStatus defines model for TotpStatus.

type Transport

type Transport string

Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `gateway` marks an Acknowledge from a call through a Notification gateway; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.

const (
	TransportApi        Transport = "api"
	TransportBridge     Transport = "bridge"
	TransportCli        Transport = "cli"
	TransportGateway    Transport = "gateway"
	TransportMattermost Transport = "mattermost"
	TransportSlack      Transport = "slack"
	TransportSystem     Transport = "system"
	TransportTelegram   Transport = "telegram"
	TransportUi         Transport = "ui"
)

Defines values for Transport.

func (Transport) Valid

func (e Transport) Valid() bool

Valid indicates whether the value is a known member of the Transport enum.

type UnacknowledgeAlertGroupResponse

type UnacknowledgeAlertGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommandResult
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UnacknowledgeAlertGroupResponse429Headers
}

func ParseUnacknowledgeAlertGroupResponse

func ParseUnacknowledgeAlertGroupResponse(rsp *http.Response) (*UnacknowledgeAlertGroupResponse, error)

ParseUnacknowledgeAlertGroupResponse parses an HTTP response from a UnacknowledgeAlertGroupWithResponse call

func (UnacknowledgeAlertGroupResponse) ContentType

func (r UnacknowledgeAlertGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON401

func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON403

func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON404

func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON409

func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON429

func (r UnacknowledgeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UnacknowledgeAlertGroupResponse) GetBody

func (r UnacknowledgeAlertGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnacknowledgeAlertGroupResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UnacknowledgeAlertGroupResponse) Status

Status returns HTTPResponse.Status

func (UnacknowledgeAlertGroupResponse) StatusCode

func (r UnacknowledgeAlertGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnacknowledgeAlertGroupResponse429Headers

type UnacknowledgeAlertGroupResponse429Headers struct {
	RetryAfter *int
}

UnacknowledgeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for UnacknowledgeAlertGroup

type Unauthorized

type Unauthorized = Problem

Unauthorized RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type UndeliveredMention

type UndeliveredMention struct {
	// Entry The entry that named the person or the Mention; absent for a template's token and for the Team mention or everyone of a Page.
	Entry *MentionEntryRef `json:"entry,omitempty"`

	// Event The Loud event the entry applied to; absent for a template's token and for the Team mention or everyone of a Page.
	Event *MentionEvent `json:"event,omitempty"`

	// Mention The group or everyone in the chat; absent for a person.
	Mention *NamedMention `json:"mention,omitempty"`

	// Page The Page whose Thread reply left out the Team mention or everyone in the chat that it named; absent for any other Mention.
	Page *MentionPage `json:"page,omitempty"`

	// Reason Why a person whom a Mention entry named was not mentioned as their messenger mentions them (C-28.FR-3): they have no Account link in the Identity space of the Destination's Connection, so the message left them out (`no_account_link`), or the bridge does not declare `native_mentions` in its `info` — or Muster has read none yet — or their Account link has no marker, its `external_id` being longer than 512 characters or neither it nor the person having a display name, so the message named them by the plain name, which notifies nobody (`bridge_cannot_mention_people`, C-22.FR-16), or the message went through a bridge whose Mention line keeps only the whole Mentions that fit half of `limits.max_body_length` and left theirs out (`message_too_long`, C-12.FR-11). `message_too_long` is also the reason of a group, a Team mention or everyone in the chat that such a line left out, the only reason a Mention that names no one person is not delivered.
	Reason MentionNotDeliveredReason `json:"reason"`

	// User The person; absent for a group or everyone, which `mention` names.
	User *UserRef `json:"user,omitempty"`
}

UndeliveredMention A person whom a Mention entry named for a Loud event and whom a delivered Loud message did not mention as their messenger mentions them (C-28.FR-3); or a group, a Team mention or everyone in the chat that a bridge's Mention line left out for length (C-12.FR-11), with `mention` in place of `user`. A Mention of a template's token (`{{ mention "here" }}`, a group's token), which no entry named, has neither `entry` nor `event`; nor has the Team mention or everyone in the chat that a Page named (C-32.FR-9), which has `page` in place of `entry`.

type Unprocessable

type Unprocessable = Problem

Unprocessable RFC 9457 problem details, served as `application/problem+json`. `type` is a stable URI under `https://muster-io.github.io/muster/problems/`; clients branch on `type`, `code` and `errors[].code`, never on `title` or `detail`. Validation errors raised by the request-validation middleware and by the strict server are mapped to this schema by one function. Every `code` is listed in `x-problem-codes`.

type UnresolveAlertGroupResponse

type UnresolveAlertGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommandResult
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UnresolveAlertGroupResponse429Headers
}

func ParseUnresolveAlertGroupResponse

func ParseUnresolveAlertGroupResponse(rsp *http.Response) (*UnresolveAlertGroupResponse, error)

ParseUnresolveAlertGroupResponse parses an HTTP response from a UnresolveAlertGroupWithResponse call

func (UnresolveAlertGroupResponse) ContentType

func (r UnresolveAlertGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnresolveAlertGroupResponse) GetApplicationproblemJSON401

func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UnresolveAlertGroupResponse) GetApplicationproblemJSON403

func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UnresolveAlertGroupResponse) GetApplicationproblemJSON404

func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UnresolveAlertGroupResponse) GetApplicationproblemJSON409

func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UnresolveAlertGroupResponse) GetApplicationproblemJSON429

func (r UnresolveAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UnresolveAlertGroupResponse) GetBody

func (r UnresolveAlertGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnresolveAlertGroupResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UnresolveAlertGroupResponse) Status

Status returns HTTPResponse.Status

func (UnresolveAlertGroupResponse) StatusCode

func (r UnresolveAlertGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnresolveAlertGroupResponse429Headers

type UnresolveAlertGroupResponse429Headers struct {
	RetryAfter *int
}

UnresolveAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for UnresolveAlertGroup

type UnsnoozeAlertGroupResponse

type UnsnoozeAlertGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommandResult
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UnsnoozeAlertGroupResponse429Headers
}

func ParseUnsnoozeAlertGroupResponse

func ParseUnsnoozeAlertGroupResponse(rsp *http.Response) (*UnsnoozeAlertGroupResponse, error)

ParseUnsnoozeAlertGroupResponse parses an HTTP response from a UnsnoozeAlertGroupWithResponse call

func (UnsnoozeAlertGroupResponse) ContentType

func (r UnsnoozeAlertGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON401

func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON403

func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON404

func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON409

func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UnsnoozeAlertGroupResponse) GetApplicationproblemJSON429

func (r UnsnoozeAlertGroupResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UnsnoozeAlertGroupResponse) GetBody

func (r UnsnoozeAlertGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnsnoozeAlertGroupResponse) GetJSON200

func (r UnsnoozeAlertGroupResponse) GetJSON200() *CommandResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UnsnoozeAlertGroupResponse) Status

Status returns HTTPResponse.Status

func (UnsnoozeAlertGroupResponse) StatusCode

func (r UnsnoozeAlertGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnsnoozeAlertGroupResponse429Headers

type UnsnoozeAlertGroupResponse429Headers struct {
	RetryAfter *int
}

UnsnoozeAlertGroupResponse429Headers the declared response headers of an HTTP 429 response for UnsnoozeAlertGroup

type UpdateConnectionJSONRequestBody

type UpdateConnectionJSONRequestBody = ConnectionInput

UpdateConnectionJSONRequestBody defines body for UpdateConnection for application/json ContentType.

type UpdateConnectionParams

type UpdateConnectionParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateConnectionParams defines parameters for UpdateConnection.

type UpdateConnectionResponse

type UpdateConnectionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Connection
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateConnectionResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateConnectionResponse429Headers
}

func ParseUpdateConnectionResponse

func ParseUpdateConnectionResponse(rsp *http.Response) (*UpdateConnectionResponse, error)

ParseUpdateConnectionResponse parses an HTTP response from a UpdateConnectionWithResponse call

func (UpdateConnectionResponse) ContentType

func (r UpdateConnectionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateConnectionResponse) GetApplicationproblemJSON400

func (r UpdateConnectionResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON401

func (r UpdateConnectionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON403

func (r UpdateConnectionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON404

func (r UpdateConnectionResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON409

func (r UpdateConnectionResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON412

func (r UpdateConnectionResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON422

func (r UpdateConnectionResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON428

func (r UpdateConnectionResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateConnectionResponse) GetApplicationproblemJSON429

func (r UpdateConnectionResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateConnectionResponse) GetBody

func (r UpdateConnectionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateConnectionResponse) GetJSON200

func (r UpdateConnectionResponse) GetJSON200() *Connection

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateConnectionResponse) Status

func (r UpdateConnectionResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateConnectionResponse) StatusCode

func (r UpdateConnectionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateConnectionResponse200Headers

type UpdateConnectionResponse200Headers struct {
	ETag *string
}

UpdateConnectionResponse200Headers the declared response headers of an HTTP 200 response for UpdateConnection

type UpdateConnectionResponse429Headers

type UpdateConnectionResponse429Headers struct {
	RetryAfter *int
}

UpdateConnectionResponse429Headers the declared response headers of an HTTP 429 response for UpdateConnection

type UpdateDestinationJSONRequestBody

type UpdateDestinationJSONRequestBody = DestinationInput

UpdateDestinationJSONRequestBody defines body for UpdateDestination for application/json ContentType.

type UpdateDestinationParams

type UpdateDestinationParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateDestinationParams defines parameters for UpdateDestination.

type UpdateDestinationResponse

type UpdateDestinationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Destination
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Limited
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateDestinationResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateDestinationResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *UpdateDestinationResponse503Headers
}

func ParseUpdateDestinationResponse

func ParseUpdateDestinationResponse(rsp *http.Response) (*UpdateDestinationResponse, error)

ParseUpdateDestinationResponse parses an HTTP response from a UpdateDestinationWithResponse call

func (UpdateDestinationResponse) ContentType

func (r UpdateDestinationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateDestinationResponse) GetApplicationproblemJSON400

func (r UpdateDestinationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON401

func (r UpdateDestinationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON403

func (r UpdateDestinationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON404

func (r UpdateDestinationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON409

func (r UpdateDestinationResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON412

func (r UpdateDestinationResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON422

func (r UpdateDestinationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON428

func (r UpdateDestinationResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON429

func (r UpdateDestinationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateDestinationResponse) GetApplicationproblemJSON503

func (r UpdateDestinationResponse) GetApplicationproblemJSON503() *Limited

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (UpdateDestinationResponse) GetBody

func (r UpdateDestinationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateDestinationResponse) GetJSON200

func (r UpdateDestinationResponse) GetJSON200() *Destination

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateDestinationResponse) Status

func (r UpdateDestinationResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateDestinationResponse) StatusCode

func (r UpdateDestinationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateDestinationResponse200Headers

type UpdateDestinationResponse200Headers struct {
	ETag *string
}

UpdateDestinationResponse200Headers the declared response headers of an HTTP 200 response for UpdateDestination

type UpdateDestinationResponse429Headers

type UpdateDestinationResponse429Headers struct {
	RetryAfter *int
}

UpdateDestinationResponse429Headers the declared response headers of an HTTP 429 response for UpdateDestination

type UpdateDestinationResponse503Headers

type UpdateDestinationResponse503Headers struct {
	RetryAfter *int
}

UpdateDestinationResponse503Headers the declared response headers of an HTTP 503 response for UpdateDestination

type UpdateEscalationChainJSONRequestBody

type UpdateEscalationChainJSONRequestBody = EscalationChainInput

UpdateEscalationChainJSONRequestBody defines body for UpdateEscalationChain for application/json ContentType.

type UpdateEscalationChainParams

type UpdateEscalationChainParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateEscalationChainParams defines parameters for UpdateEscalationChain.

type UpdateEscalationChainResponse

type UpdateEscalationChainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EscalationChain
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateEscalationChainResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateEscalationChainResponse429Headers
}

func ParseUpdateEscalationChainResponse

func ParseUpdateEscalationChainResponse(rsp *http.Response) (*UpdateEscalationChainResponse, error)

ParseUpdateEscalationChainResponse parses an HTTP response from a UpdateEscalationChainWithResponse call

func (UpdateEscalationChainResponse) ContentType

func (r UpdateEscalationChainResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateEscalationChainResponse) GetApplicationproblemJSON400

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON401

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON403

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON404

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON409

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON412

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON422

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON428

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateEscalationChainResponse) GetApplicationproblemJSON429

func (r UpdateEscalationChainResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateEscalationChainResponse) GetBody

func (r UpdateEscalationChainResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateEscalationChainResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateEscalationChainResponse) Status

Status returns HTTPResponse.Status

func (UpdateEscalationChainResponse) StatusCode

func (r UpdateEscalationChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateEscalationChainResponse200Headers

type UpdateEscalationChainResponse200Headers struct {
	ETag *string
}

UpdateEscalationChainResponse200Headers the declared response headers of an HTTP 200 response for UpdateEscalationChain

type UpdateEscalationChainResponse429Headers

type UpdateEscalationChainResponse429Headers struct {
	RetryAfter *int
}

UpdateEscalationChainResponse429Headers the declared response headers of an HTTP 429 response for UpdateEscalationChain

type UpdateIntegrationJSONRequestBody

type UpdateIntegrationJSONRequestBody = IntegrationInput

UpdateIntegrationJSONRequestBody defines body for UpdateIntegration for application/json ContentType.

type UpdateIntegrationParams

type UpdateIntegrationParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateIntegrationParams defines parameters for UpdateIntegration.

type UpdateIntegrationResponse

type UpdateIntegrationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Integration
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateIntegrationResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateIntegrationResponse429Headers
}

func ParseUpdateIntegrationResponse

func ParseUpdateIntegrationResponse(rsp *http.Response) (*UpdateIntegrationResponse, error)

ParseUpdateIntegrationResponse parses an HTTP response from a UpdateIntegrationWithResponse call

func (UpdateIntegrationResponse) ContentType

func (r UpdateIntegrationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateIntegrationResponse) GetApplicationproblemJSON400

func (r UpdateIntegrationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON401

func (r UpdateIntegrationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON403

func (r UpdateIntegrationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON404

func (r UpdateIntegrationResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON409

func (r UpdateIntegrationResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON412

func (r UpdateIntegrationResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON422

func (r UpdateIntegrationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON428

func (r UpdateIntegrationResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateIntegrationResponse) GetApplicationproblemJSON429

func (r UpdateIntegrationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateIntegrationResponse) GetBody

func (r UpdateIntegrationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateIntegrationResponse) GetJSON200

func (r UpdateIntegrationResponse) GetJSON200() *Integration

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateIntegrationResponse) Status

func (r UpdateIntegrationResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateIntegrationResponse) StatusCode

func (r UpdateIntegrationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateIntegrationResponse200Headers

type UpdateIntegrationResponse200Headers struct {
	ETag *string
}

UpdateIntegrationResponse200Headers the declared response headers of an HTTP 200 response for UpdateIntegration

type UpdateIntegrationResponse429Headers

type UpdateIntegrationResponse429Headers struct {
	RetryAfter *int
}

UpdateIntegrationResponse429Headers the declared response headers of an HTTP 429 response for UpdateIntegration

type UpdateLinkRuleJSONRequestBody

type UpdateLinkRuleJSONRequestBody = LinkRuleBase

UpdateLinkRuleJSONRequestBody defines body for UpdateLinkRule for application/json ContentType.

type UpdateLinkRuleParams

type UpdateLinkRuleParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateLinkRuleParams defines parameters for UpdateLinkRule.

type UpdateLinkRuleResponse

type UpdateLinkRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LinkRule
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateLinkRuleResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateLinkRuleResponse429Headers
}

func ParseUpdateLinkRuleResponse

func ParseUpdateLinkRuleResponse(rsp *http.Response) (*UpdateLinkRuleResponse, error)

ParseUpdateLinkRuleResponse parses an HTTP response from a UpdateLinkRuleWithResponse call

func (UpdateLinkRuleResponse) ContentType

func (r UpdateLinkRuleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateLinkRuleResponse) GetApplicationproblemJSON400

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON401

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON403

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON404

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON409

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON412

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON422

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON428

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateLinkRuleResponse) GetApplicationproblemJSON429

func (r UpdateLinkRuleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateLinkRuleResponse) GetBody

func (r UpdateLinkRuleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateLinkRuleResponse) GetJSON200

func (r UpdateLinkRuleResponse) GetJSON200() *LinkRule

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateLinkRuleResponse) Status

func (r UpdateLinkRuleResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateLinkRuleResponse) StatusCode

func (r UpdateLinkRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateLinkRuleResponse200Headers

type UpdateLinkRuleResponse200Headers struct {
	ETag *string
}

UpdateLinkRuleResponse200Headers the declared response headers of an HTTP 200 response for UpdateLinkRule

type UpdateLinkRuleResponse429Headers

type UpdateLinkRuleResponse429Headers struct {
	RetryAfter *int
}

UpdateLinkRuleResponse429Headers the declared response headers of an HTTP 429 response for UpdateLinkRule

type UpdateLookupTableJSONRequestBody

type UpdateLookupTableJSONRequestBody = LookupTableBase

UpdateLookupTableJSONRequestBody defines body for UpdateLookupTable for application/json ContentType.

type UpdateLookupTableParams

type UpdateLookupTableParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateLookupTableParams defines parameters for UpdateLookupTable.

type UpdateLookupTableResponse

type UpdateLookupTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LookupTable
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateLookupTableResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateLookupTableResponse429Headers
}

func ParseUpdateLookupTableResponse

func ParseUpdateLookupTableResponse(rsp *http.Response) (*UpdateLookupTableResponse, error)

ParseUpdateLookupTableResponse parses an HTTP response from a UpdateLookupTableWithResponse call

func (UpdateLookupTableResponse) ContentType

func (r UpdateLookupTableResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateLookupTableResponse) GetApplicationproblemJSON400

func (r UpdateLookupTableResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON401

func (r UpdateLookupTableResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON403

func (r UpdateLookupTableResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON404

func (r UpdateLookupTableResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON409

func (r UpdateLookupTableResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON412

func (r UpdateLookupTableResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON422

func (r UpdateLookupTableResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON428

func (r UpdateLookupTableResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateLookupTableResponse) GetApplicationproblemJSON429

func (r UpdateLookupTableResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateLookupTableResponse) GetBody

func (r UpdateLookupTableResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateLookupTableResponse) GetJSON200

func (r UpdateLookupTableResponse) GetJSON200() *LookupTable

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateLookupTableResponse) Status

func (r UpdateLookupTableResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateLookupTableResponse) StatusCode

func (r UpdateLookupTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateLookupTableResponse200Headers

type UpdateLookupTableResponse200Headers struct {
	ETag *string
}

UpdateLookupTableResponse200Headers the declared response headers of an HTTP 200 response for UpdateLookupTable

type UpdateLookupTableResponse429Headers

type UpdateLookupTableResponse429Headers struct {
	RetryAfter *int
}

UpdateLookupTableResponse429Headers the declared response headers of an HTTP 429 response for UpdateLookupTable

type UpdateMeJSONRequestBody

type UpdateMeJSONRequestBody = MeUpdate

UpdateMeJSONRequestBody defines body for UpdateMe for application/json ContentType.

type UpdateMeResponse

type UpdateMeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Me
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateMeResponse429Headers
}

func ParseUpdateMeResponse

func ParseUpdateMeResponse(rsp *http.Response) (*UpdateMeResponse, error)

ParseUpdateMeResponse parses an HTTP response from a UpdateMeWithResponse call

func (UpdateMeResponse) ContentType

func (r UpdateMeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateMeResponse) GetApplicationproblemJSON400

func (r UpdateMeResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateMeResponse) GetApplicationproblemJSON401

func (r UpdateMeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateMeResponse) GetApplicationproblemJSON403

func (r UpdateMeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateMeResponse) GetApplicationproblemJSON422

func (r UpdateMeResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateMeResponse) GetApplicationproblemJSON429

func (r UpdateMeResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateMeResponse) GetBody

func (r UpdateMeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateMeResponse) GetJSON200

func (r UpdateMeResponse) GetJSON200() *Me

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateMeResponse) Status

func (r UpdateMeResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateMeResponse) StatusCode

func (r UpdateMeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMeResponse429Headers

type UpdateMeResponse429Headers struct {
	RetryAfter *int
}

UpdateMeResponse429Headers the declared response headers of an HTTP 429 response for UpdateMe

type UpdateMyNotificationRulesJSONRequestBody

type UpdateMyNotificationRulesJSONRequestBody = NotificationRulesUpdate

UpdateMyNotificationRulesJSONRequestBody defines body for UpdateMyNotificationRules for application/json ContentType.

type UpdateMyNotificationRulesParams

type UpdateMyNotificationRulesParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateMyNotificationRulesParams defines parameters for UpdateMyNotificationRules.

type UpdateMyNotificationRulesResponse

type UpdateMyNotificationRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationRules
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateMyNotificationRulesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateMyNotificationRulesResponse429Headers
}

func ParseUpdateMyNotificationRulesResponse

func ParseUpdateMyNotificationRulesResponse(rsp *http.Response) (*UpdateMyNotificationRulesResponse, error)

ParseUpdateMyNotificationRulesResponse parses an HTTP response from a UpdateMyNotificationRulesWithResponse call

func (UpdateMyNotificationRulesResponse) ContentType

func (r UpdateMyNotificationRulesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateMyNotificationRulesResponse) GetApplicationproblemJSON400

func (r UpdateMyNotificationRulesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateMyNotificationRulesResponse) GetApplicationproblemJSON401

func (r UpdateMyNotificationRulesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateMyNotificationRulesResponse) GetApplicationproblemJSON403

func (r UpdateMyNotificationRulesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateMyNotificationRulesResponse) GetApplicationproblemJSON412

func (r UpdateMyNotificationRulesResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateMyNotificationRulesResponse) GetApplicationproblemJSON422

func (r UpdateMyNotificationRulesResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateMyNotificationRulesResponse) GetApplicationproblemJSON428

func (r UpdateMyNotificationRulesResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateMyNotificationRulesResponse) GetApplicationproblemJSON429

func (r UpdateMyNotificationRulesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateMyNotificationRulesResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateMyNotificationRulesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateMyNotificationRulesResponse) Status

Status returns HTTPResponse.Status

func (UpdateMyNotificationRulesResponse) StatusCode

func (r UpdateMyNotificationRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMyNotificationRulesResponse200Headers

type UpdateMyNotificationRulesResponse200Headers struct {
	ETag *string
}

UpdateMyNotificationRulesResponse200Headers the declared response headers of an HTTP 200 response for UpdateMyNotificationRules

type UpdateMyNotificationRulesResponse429Headers

type UpdateMyNotificationRulesResponse429Headers struct {
	RetryAfter *int
}

UpdateMyNotificationRulesResponse429Headers the declared response headers of an HTTP 429 response for UpdateMyNotificationRules

type UpdateOidcSettingsJSONRequestBody

type UpdateOidcSettingsJSONRequestBody = OidcSettingsInput

UpdateOidcSettingsJSONRequestBody defines body for UpdateOidcSettings for application/json ContentType.

type UpdateOidcSettingsParams

type UpdateOidcSettingsParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateOidcSettingsParams defines parameters for UpdateOidcSettings.

type UpdateOidcSettingsResponse

type UpdateOidcSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OidcSettings
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateOidcSettingsResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateOidcSettingsResponse429Headers
}

func ParseUpdateOidcSettingsResponse

func ParseUpdateOidcSettingsResponse(rsp *http.Response) (*UpdateOidcSettingsResponse, error)

ParseUpdateOidcSettingsResponse parses an HTTP response from a UpdateOidcSettingsWithResponse call

func (UpdateOidcSettingsResponse) ContentType

func (r UpdateOidcSettingsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateOidcSettingsResponse) GetApplicationproblemJSON400

func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateOidcSettingsResponse) GetApplicationproblemJSON401

func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateOidcSettingsResponse) GetApplicationproblemJSON403

func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateOidcSettingsResponse) GetApplicationproblemJSON412

func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateOidcSettingsResponse) GetApplicationproblemJSON422

func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateOidcSettingsResponse) GetApplicationproblemJSON428

func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateOidcSettingsResponse) GetApplicationproblemJSON429

func (r UpdateOidcSettingsResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateOidcSettingsResponse) GetBody

func (r UpdateOidcSettingsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateOidcSettingsResponse) GetJSON200

func (r UpdateOidcSettingsResponse) GetJSON200() *OidcSettings

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateOidcSettingsResponse) Status

Status returns HTTPResponse.Status

func (UpdateOidcSettingsResponse) StatusCode

func (r UpdateOidcSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOidcSettingsResponse200Headers

type UpdateOidcSettingsResponse200Headers struct {
	ETag *string
}

UpdateOidcSettingsResponse200Headers the declared response headers of an HTTP 200 response for UpdateOidcSettings

type UpdateOidcSettingsResponse429Headers

type UpdateOidcSettingsResponse429Headers struct {
	RetryAfter *int
}

UpdateOidcSettingsResponse429Headers the declared response headers of an HTTP 429 response for UpdateOidcSettings

type UpdateOrganizationJSONRequestBody

type UpdateOrganizationJSONRequestBody = OrganizationInput

UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType.

type UpdateOrganizationParams

type UpdateOrganizationParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateOrganizationParams defines parameters for UpdateOrganization.

type UpdateOrganizationResponse

type UpdateOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Organization
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateOrganizationResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateOrganizationResponse429Headers
}

func ParseUpdateOrganizationResponse

func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error)

ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call

func (UpdateOrganizationResponse) ContentType

func (r UpdateOrganizationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateOrganizationResponse) GetApplicationproblemJSON400

func (r UpdateOrganizationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateOrganizationResponse) GetApplicationproblemJSON401

func (r UpdateOrganizationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateOrganizationResponse) GetApplicationproblemJSON403

func (r UpdateOrganizationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateOrganizationResponse) GetApplicationproblemJSON412

func (r UpdateOrganizationResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateOrganizationResponse) GetApplicationproblemJSON422

func (r UpdateOrganizationResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateOrganizationResponse) GetApplicationproblemJSON428

func (r UpdateOrganizationResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateOrganizationResponse) GetApplicationproblemJSON429

func (r UpdateOrganizationResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateOrganizationResponse) GetBody

func (r UpdateOrganizationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateOrganizationResponse) GetJSON200

func (r UpdateOrganizationResponse) GetJSON200() *Organization

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateOrganizationResponse) Status

Status returns HTTPResponse.Status

func (UpdateOrganizationResponse) StatusCode

func (r UpdateOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOrganizationResponse200Headers

type UpdateOrganizationResponse200Headers struct {
	ETag *string
}

UpdateOrganizationResponse200Headers the declared response headers of an HTTP 200 response for UpdateOrganization

type UpdateOrganizationResponse429Headers

type UpdateOrganizationResponse429Headers struct {
	RetryAfter *int
}

UpdateOrganizationResponse429Headers the declared response headers of an HTTP 429 response for UpdateOrganization

type UpdateOutboundPolicyJSONRequestBody

type UpdateOutboundPolicyJSONRequestBody = OutboundPolicy

UpdateOutboundPolicyJSONRequestBody defines body for UpdateOutboundPolicy for application/json ContentType.

type UpdateOutboundPolicyParams

type UpdateOutboundPolicyParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateOutboundPolicyParams defines parameters for UpdateOutboundPolicy.

type UpdateOutboundPolicyResponse

type UpdateOutboundPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OutboundPolicy
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateOutboundPolicyResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateOutboundPolicyResponse429Headers
}

func ParseUpdateOutboundPolicyResponse

func ParseUpdateOutboundPolicyResponse(rsp *http.Response) (*UpdateOutboundPolicyResponse, error)

ParseUpdateOutboundPolicyResponse parses an HTTP response from a UpdateOutboundPolicyWithResponse call

func (UpdateOutboundPolicyResponse) ContentType

func (r UpdateOutboundPolicyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON400

func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON401

func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON403

func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON412

func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON422

func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON428

func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateOutboundPolicyResponse) GetApplicationproblemJSON429

func (r UpdateOutboundPolicyResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateOutboundPolicyResponse) GetBody

func (r UpdateOutboundPolicyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateOutboundPolicyResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateOutboundPolicyResponse) Status

Status returns HTTPResponse.Status

func (UpdateOutboundPolicyResponse) StatusCode

func (r UpdateOutboundPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOutboundPolicyResponse200Headers

type UpdateOutboundPolicyResponse200Headers struct {
	ETag *string
}

UpdateOutboundPolicyResponse200Headers the declared response headers of an HTTP 200 response for UpdateOutboundPolicy

type UpdateOutboundPolicyResponse429Headers

type UpdateOutboundPolicyResponse429Headers struct {
	RetryAfter *int
}

UpdateOutboundPolicyResponse429Headers the declared response headers of an HTTP 429 response for UpdateOutboundPolicy

type UpdateRouteJSONRequestBody

type UpdateRouteJSONRequestBody = RouteInput

UpdateRouteJSONRequestBody defines body for UpdateRoute for application/json ContentType.

type UpdateRouteParams

type UpdateRouteParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateRouteParams defines parameters for UpdateRoute.

type UpdateRouteResponse

type UpdateRouteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Route
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateRouteResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateRouteResponse429Headers
}

func ParseUpdateRouteResponse

func ParseUpdateRouteResponse(rsp *http.Response) (*UpdateRouteResponse, error)

ParseUpdateRouteResponse parses an HTTP response from a UpdateRouteWithResponse call

func (UpdateRouteResponse) ContentType

func (r UpdateRouteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateRouteResponse) GetApplicationproblemJSON400

func (r UpdateRouteResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON401

func (r UpdateRouteResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON403

func (r UpdateRouteResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON404

func (r UpdateRouteResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON409

func (r UpdateRouteResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON412

func (r UpdateRouteResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON422

func (r UpdateRouteResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON428

func (r UpdateRouteResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateRouteResponse) GetApplicationproblemJSON429

func (r UpdateRouteResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateRouteResponse) GetBody

func (r UpdateRouteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateRouteResponse) GetJSON200

func (r UpdateRouteResponse) GetJSON200() *Route

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateRouteResponse) Status

func (r UpdateRouteResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateRouteResponse) StatusCode

func (r UpdateRouteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRouteResponse200Headers

type UpdateRouteResponse200Headers struct {
	ETag *string
}

UpdateRouteResponse200Headers the declared response headers of an HTTP 200 response for UpdateRoute

type UpdateRouteResponse429Headers

type UpdateRouteResponse429Headers struct {
	RetryAfter *int
}

UpdateRouteResponse429Headers the declared response headers of an HTTP 429 response for UpdateRoute

type UpdateScheduleJSONRequestBody

type UpdateScheduleJSONRequestBody = ScheduleInput

UpdateScheduleJSONRequestBody defines body for UpdateSchedule for application/json ContentType.

type UpdateScheduleOverrideJSONRequestBody

type UpdateScheduleOverrideJSONRequestBody = ScheduleOverrideInput

UpdateScheduleOverrideJSONRequestBody defines body for UpdateScheduleOverride for application/json ContentType.

type UpdateScheduleOverrideParams

type UpdateScheduleOverrideParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateScheduleOverrideParams defines parameters for UpdateScheduleOverride.

type UpdateScheduleOverrideResponse

type UpdateScheduleOverrideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ScheduleOverride
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateScheduleOverrideResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateScheduleOverrideResponse429Headers
}

func ParseUpdateScheduleOverrideResponse

func ParseUpdateScheduleOverrideResponse(rsp *http.Response) (*UpdateScheduleOverrideResponse, error)

ParseUpdateScheduleOverrideResponse parses an HTTP response from a UpdateScheduleOverrideWithResponse call

func (UpdateScheduleOverrideResponse) ContentType

func (r UpdateScheduleOverrideResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON400

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON401

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON403

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON404

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON409

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON412

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON422

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON428

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetApplicationproblemJSON429

func (r UpdateScheduleOverrideResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateScheduleOverrideResponse) GetBody

func (r UpdateScheduleOverrideResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateScheduleOverrideResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateScheduleOverrideResponse) Status

Status returns HTTPResponse.Status

func (UpdateScheduleOverrideResponse) StatusCode

func (r UpdateScheduleOverrideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateScheduleOverrideResponse200Headers

type UpdateScheduleOverrideResponse200Headers struct {
	ETag *string
}

UpdateScheduleOverrideResponse200Headers the declared response headers of an HTTP 200 response for UpdateScheduleOverride

type UpdateScheduleOverrideResponse429Headers

type UpdateScheduleOverrideResponse429Headers struct {
	RetryAfter *int
}

UpdateScheduleOverrideResponse429Headers the declared response headers of an HTTP 429 response for UpdateScheduleOverride

type UpdateScheduleParams

type UpdateScheduleParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateScheduleParams defines parameters for UpdateSchedule.

type UpdateScheduleResponse

type UpdateScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Schedule
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateScheduleResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateScheduleResponse429Headers
}

func ParseUpdateScheduleResponse

func ParseUpdateScheduleResponse(rsp *http.Response) (*UpdateScheduleResponse, error)

ParseUpdateScheduleResponse parses an HTTP response from a UpdateScheduleWithResponse call

func (UpdateScheduleResponse) ContentType

func (r UpdateScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateScheduleResponse) GetApplicationproblemJSON400

func (r UpdateScheduleResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON401

func (r UpdateScheduleResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON403

func (r UpdateScheduleResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON404

func (r UpdateScheduleResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON409

func (r UpdateScheduleResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON412

func (r UpdateScheduleResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON422

func (r UpdateScheduleResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON428

func (r UpdateScheduleResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateScheduleResponse) GetApplicationproblemJSON429

func (r UpdateScheduleResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateScheduleResponse) GetBody

func (r UpdateScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateScheduleResponse) GetJSON200

func (r UpdateScheduleResponse) GetJSON200() *Schedule

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateScheduleResponse) Status

func (r UpdateScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateScheduleResponse) StatusCode

func (r UpdateScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateScheduleResponse200Headers

type UpdateScheduleResponse200Headers struct {
	ETag *string
}

UpdateScheduleResponse200Headers the declared response headers of an HTTP 200 response for UpdateSchedule

type UpdateScheduleResponse429Headers

type UpdateScheduleResponse429Headers struct {
	RetryAfter *int
}

UpdateScheduleResponse429Headers the declared response headers of an HTTP 429 response for UpdateSchedule

type UpdateServiceAccountJSONRequestBody

type UpdateServiceAccountJSONRequestBody = ServiceAccountInput

UpdateServiceAccountJSONRequestBody defines body for UpdateServiceAccount for application/json ContentType.

type UpdateServiceAccountParams

type UpdateServiceAccountParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateServiceAccountParams defines parameters for UpdateServiceAccount.

type UpdateServiceAccountResponse

type UpdateServiceAccountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceAccount
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateServiceAccountResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateServiceAccountResponse429Headers
}

func ParseUpdateServiceAccountResponse

func ParseUpdateServiceAccountResponse(rsp *http.Response) (*UpdateServiceAccountResponse, error)

ParseUpdateServiceAccountResponse parses an HTTP response from a UpdateServiceAccountWithResponse call

func (UpdateServiceAccountResponse) ContentType

func (r UpdateServiceAccountResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateServiceAccountResponse) GetApplicationproblemJSON400

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON401

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON403

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON404

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON409

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON412

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON422

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON428

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateServiceAccountResponse) GetApplicationproblemJSON429

func (r UpdateServiceAccountResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateServiceAccountResponse) GetBody

func (r UpdateServiceAccountResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateServiceAccountResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateServiceAccountResponse) Status

Status returns HTTPResponse.Status

func (UpdateServiceAccountResponse) StatusCode

func (r UpdateServiceAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateServiceAccountResponse200Headers

type UpdateServiceAccountResponse200Headers struct {
	ETag *string
}

UpdateServiceAccountResponse200Headers the declared response headers of an HTTP 200 response for UpdateServiceAccount

type UpdateServiceAccountResponse429Headers

type UpdateServiceAccountResponse429Headers struct {
	RetryAfter *int
}

UpdateServiceAccountResponse429Headers the declared response headers of an HTTP 429 response for UpdateServiceAccount

type UpdateTeamJSONRequestBody

type UpdateTeamJSONRequestBody = TeamInput

UpdateTeamJSONRequestBody defines body for UpdateTeam for application/json ContentType.

type UpdateTeamParams

type UpdateTeamParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateTeamParams defines parameters for UpdateTeam.

type UpdateTeamResponse

type UpdateTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Team
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateTeamResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateTeamResponse429Headers
}

func ParseUpdateTeamResponse

func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error)

ParseUpdateTeamResponse parses an HTTP response from a UpdateTeamWithResponse call

func (UpdateTeamResponse) ContentType

func (r UpdateTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateTeamResponse) GetApplicationproblemJSON400

func (r UpdateTeamResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON401

func (r UpdateTeamResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON403

func (r UpdateTeamResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON404

func (r UpdateTeamResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON409

func (r UpdateTeamResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON412

func (r UpdateTeamResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON422

func (r UpdateTeamResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON428

func (r UpdateTeamResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateTeamResponse) GetApplicationproblemJSON429

func (r UpdateTeamResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateTeamResponse) GetBody

func (r UpdateTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateTeamResponse) GetJSON200

func (r UpdateTeamResponse) GetJSON200() *Team

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateTeamResponse) Status

func (r UpdateTeamResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateTeamResponse) StatusCode

func (r UpdateTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTeamResponse200Headers

type UpdateTeamResponse200Headers struct {
	ETag *string
}

UpdateTeamResponse200Headers the declared response headers of an HTTP 200 response for UpdateTeam

type UpdateTeamResponse429Headers

type UpdateTeamResponse429Headers struct {
	RetryAfter *int
}

UpdateTeamResponse429Headers the declared response headers of an HTTP 429 response for UpdateTeam

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody = UserUpdate

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserNotificationRulesJSONRequestBody

type UpdateUserNotificationRulesJSONRequestBody = NotificationRulesUpdate

UpdateUserNotificationRulesJSONRequestBody defines body for UpdateUserNotificationRules for application/json ContentType.

type UpdateUserNotificationRulesParams

type UpdateUserNotificationRulesParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateUserNotificationRulesParams defines parameters for UpdateUserNotificationRules.

type UpdateUserNotificationRulesResponse

type UpdateUserNotificationRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationRules
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateUserNotificationRulesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateUserNotificationRulesResponse429Headers
}

func ParseUpdateUserNotificationRulesResponse

func ParseUpdateUserNotificationRulesResponse(rsp *http.Response) (*UpdateUserNotificationRulesResponse, error)

ParseUpdateUserNotificationRulesResponse parses an HTTP response from a UpdateUserNotificationRulesWithResponse call

func (UpdateUserNotificationRulesResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON400

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON401

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON403

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON404

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON412

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON422

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON428

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetApplicationproblemJSON429

func (r UpdateUserNotificationRulesResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateUserNotificationRulesResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateUserNotificationRulesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateUserNotificationRulesResponse) Status

Status returns HTTPResponse.Status

func (UpdateUserNotificationRulesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateUserNotificationRulesResponse200Headers

type UpdateUserNotificationRulesResponse200Headers struct {
	ETag *string
}

UpdateUserNotificationRulesResponse200Headers the declared response headers of an HTTP 200 response for UpdateUserNotificationRules

type UpdateUserNotificationRulesResponse429Headers

type UpdateUserNotificationRulesResponse429Headers struct {
	RetryAfter *int
}

UpdateUserNotificationRulesResponse429Headers the declared response headers of an HTTP 429 response for UpdateUserNotificationRules

type UpdateUserParams

type UpdateUserParams struct {
	// IfMatch ETag of the representation being replaced, as returned by the last read. A mismatch gets `412`; a missing header gets `428`.
	IfMatch IfMatch `json:"If-Match"`
}

UpdateUserParams defines parameters for UpdateUser.

type UpdateUserResponse

type UpdateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON412 the response for an HTTP 412 `application/problem+json` response
	ApplicationproblemJSON412 *PreconditionFailed
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *Unprocessable
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *TooManyRequests
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateUserResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateUserResponse429Headers
}

func ParseUpdateUserResponse

func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)

ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call

func (UpdateUserResponse) ContentType

func (r UpdateUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateUserResponse) GetApplicationproblemJSON400

func (r UpdateUserResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON401

func (r UpdateUserResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON403

func (r UpdateUserResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON404

func (r UpdateUserResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON409

func (r UpdateUserResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON412

func (r UpdateUserResponse) GetApplicationproblemJSON412() *PreconditionFailed

GetApplicationproblemJSON412 returns the response for an HTTP 412 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON422

func (r UpdateUserResponse) GetApplicationproblemJSON422() *Unprocessable

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON428

func (r UpdateUserResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (UpdateUserResponse) GetApplicationproblemJSON429

func (r UpdateUserResponse) GetApplicationproblemJSON429() *TooManyRequests

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateUserResponse) GetBody

func (r UpdateUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateUserResponse) GetJSON200

func (r UpdateUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateUserResponse) Status

func (r UpdateUserResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserResponse) StatusCode

func (r UpdateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserResponse200Headers

type UpdateUserResponse200Headers struct {
	ETag *string
}

UpdateUserResponse200Headers the declared response headers of an HTTP 200 response for UpdateUser

type UpdateUserResponse429Headers

type UpdateUserResponse429Headers struct {
	RetryAfter *int
}

UpdateUserResponse429Headers the declared response headers of an HTTP 429 response for UpdateUser

type User

type User struct {
	CreatedAt time.Time                 `json:"created_at"`
	Email     nullable.Nullable[string] `json:"email,omitempty"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Language UI language; null follows the browser.
	Language     nullable.Nullable[NullableLanguage] `json:"language,omitempty"`
	LastSignInAt nullable.Nullable[time.Time]        `json:"last_sign_in_at,omitempty"`

	// Login As entered. Logins are case-insensitive; uniqueness and sign-in compare them lowercased.
	Login string `json:"login"`

	// Name Display name. `deleted-user-<id>` after deletion.
	Name string `json:"name"`

	// OidcOfflineAccess True while Muster holds an offline token from the identity provider for this OIDC account, so it is re-checked in the background and its Personal access tokens have no inactivity limit. The token itself is never returned.
	OidcOfflineAccess *bool    `json:"oidc_offline_access,omitempty"`
	Role              RoleName `json:"role"`

	// RoleLocked True for an account that signs in through OIDC while OIDC and `oidc.sync_role` are both on, so the identity provider decides the Role.
	RoleLocked *bool `json:"role_locked,omitempty"`

	// SignInMethod How the user signs in now, one way only. `local` with a password (which may still wait for its setup link); `oidc` only through the identity provider, which is then the only source of truth for the account — created through OIDC, or a local account that linked an identity and lost its password.
	SignInMethod *UserSignInMethod `json:"sign_in_method,omitempty"`

	// Source How the account was created; `sign_in_method` says how it signs in now (linking OIDC or a conversion by an Admin changes it).
	Source UserSource `json:"source"`
	Status UserStatus `json:"status"`

	// TimeZone IANA time zone; null follows the browser.
	TimeZone    nullable.Nullable[string] `json:"time_zone,omitempty"`
	TotpEnabled bool                      `json:"totp_enabled"`
}

User defines model for User.

type UserCreate

type UserCreate struct {
	Email nullable.Nullable[string] `json:"email,omitempty"`

	// Login Stored as entered and unique case-insensitively in the Organization (`409` `name_taken` when another user has the same login in any case).
	Login string   `json:"login"`
	Name  string   `json:"name"`
	Role  RoleName `json:"role"`
}

UserCreate defines model for UserCreate.

type UserCreated

type UserCreated struct {
	// PasswordSetupLink Single-use link the Admin hands over; Muster sends no email. The token is in the URL fragment (`<public url>/password-setup#token=<token>`), so it is not sent to any server until the page posts it.
	PasswordSetupLink PasswordSetupLink `json:"password_setup_link"`
	User              User              `json:"user"`
}

UserCreated defines model for UserCreated.

type UserDirectoryList

type UserDirectoryList struct {
	Items      []UserRef                 `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

UserDirectoryList defines model for UserDirectoryList.

type UserId

type UserId = PublicId

UserId Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.

type UserList

type UserList struct {
	Items      []User                    `json:"items"`
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

UserList defines model for UserList.

type UserRef

type UserRef struct {
	// Deactivated The user was deleted; the UI shows "(deactivated)".
	Deactivated bool `json:"deactivated"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id    PublicId `json:"id"`
	Login *string  `json:"login,omitempty"`
	Name  string   `json:"name"`
}

UserRef A User. Used wherever the person must be a User: the Owner and the previous Owner.

type UserSignInMethod

type UserSignInMethod string

UserSignInMethod How the user signs in now, one way only. `local` with a password (which may still wait for its setup link); `oidc` only through the identity provider, which is then the only source of truth for the account — created through OIDC, or a local account that linked an identity and lost its password.

const (
	UserSignInMethodLocal UserSignInMethod = "local"
	UserSignInMethodOidc  UserSignInMethod = "oidc"
)

Defines values for UserSignInMethod.

func (UserSignInMethod) Valid

func (e UserSignInMethod) Valid() bool

Valid indicates whether the value is a known member of the UserSignInMethod enum.

type UserSource

type UserSource string

UserSource How the account was created; `sign_in_method` says how it signs in now (linking OIDC or a conversion by an Admin changes it).

const (
	UserSourceBootstrap UserSource = "bootstrap"
	UserSourceLocal     UserSource = "local"
	UserSourceOidc      UserSource = "oidc"
)

Defines values for UserSource.

func (UserSource) Valid

func (e UserSource) Valid() bool

Valid indicates whether the value is a known member of the UserSource enum.

type UserStatus

type UserStatus string

UserStatus defines model for UserStatus.

const (
	UserStatusActive   UserStatus = "active"
	UserStatusDeleted  UserStatus = "deleted"
	UserStatusDisabled UserStatus = "disabled"
)

Defines values for UserStatus.

func (UserStatus) Valid

func (e UserStatus) Valid() bool

Valid indicates whether the value is a known member of the UserStatus enum.

type UserUpdate

type UserUpdate struct {
	Email nullable.Nullable[string] `json:"email,omitempty"`
	Name  string                    `json:"name"`
	Role  RoleName                  `json:"role"`
}

UserUpdate defines model for UserUpdate.

type WebhookActor

type WebhookActor struct {
	// Id A `public_id` in the format of `PublicId`, or null.
	Id    nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
	Kind  ActorKind                           `json:"kind"`
	Login nullable.Nullable[string]           `json:"login,omitempty"`
	Name  nullable.Nullable[string]           `json:"name,omitempty"`

	// Reason Reason of a `system` transition, for example `timer`, or `owner_disabled` and `owner_deleted` when disabling or deleting a user released their acknowledgement. On `page_not_delivered` and `escalation_step_skipped` it repeats the reason of the event, also given in `page.reason` and `escalation_step.reason`.
	Reason    nullable.Nullable[string] `json:"reason,omitempty"`
	TokenName nullable.Nullable[string] `json:"token_name,omitempty"`

	// Transport How a Command or change reached Muster. `bridge` marks presses and Text commands through a Bridge Connection; `slack` marks presses through a Slack Connection; `gateway` marks an Acknowledge from a call through a Notification gateway; `cli` marks audited CLI commands (`--actor`); `system` marks transitions Muster starts on its own.
	Transport *Transport `json:"transport,omitempty"`
}

WebhookActor defines model for WebhookActor.

type WebhookAlert

type WebhookAlert struct {
	// Annotations Label names and values.
	Annotations  *Labels                   `json:"annotations,omitempty"`
	Fingerprint  string                    `json:"fingerprint"`
	GeneratorUrl nullable.Nullable[string] `json:"generator_url,omitempty"`

	// Labels Label names and values.
	Labels Labels `json:"labels"`

	// ResolveReason Why an Alert resolved; null while it fires.
	ResolveReason nullable.Nullable[NullableResolveReason] `json:"resolve_reason,omitempty"`
	ResolvedAt    nullable.Nullable[time.Time]             `json:"resolved_at,omitempty"`
	StartsAt      time.Time                                `json:"starts_at"`
	Status        AlertState                               `json:"status"`
}

WebhookAlert defines model for WebhookAlert.

type WebhookAlertGroup

type WebhookAlertGroup struct {
	// Assignees The Assignees of the Alert Group (C-32.FR-12), each with the owning Team of their chain; empty once acknowledged, snoozed or resolved. The Owner is `owner`, named without a Team.
	Assignees []WebhookAssignee `json:"assignees"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id     PublicId `json:"id"`
	Number int      `json:"number"`

	// Owner Present while acknowledged.
	Owner       *WebhookUser                 `json:"owner,omitempty"`
	ReopenCount *int                         `json:"reopen_count,omitempty"`
	ResolvedAt  nullable.Nullable[time.Time] `json:"resolved_at,omitempty"`
	Route       EntityRef                    `json:"route"`

	// SeverityLevel The highest Severity level of the firing Alerts, raised to the Route's Minimum severity; each Alert of `alerts[]` keeps its own level.
	SeverityLevel SeverityLevel                `json:"severity_level"`
	SnoozeUntil   nullable.Nullable[time.Time] `json:"snooze_until,omitempty"`
	StartedAt     time.Time                    `json:"started_at"`
	Status        AlertGroupStatus             `json:"status"`
	Summary       nullable.Nullable[string]    `json:"summary,omitempty"`

	// Teams The Teams of the Alert Group (C-25.FR-6), in the order they joined; a Team deleted since keeps its name.
	Teams []WebhookTeam `json:"teams"`
	Title string        `json:"title"`

	// Urgent True exactly when `severity_level` is `critical`.
	Urgent bool `json:"urgent"`

	// Url Link to the Alert Group page at `MUSTER_PUBLIC_URL`.
	Url string `json:"url"`
}

WebhookAlertGroup The current state of the Alert Group when the event was recorded.

type WebhookAssignee

type WebhookAssignee struct {
	// Team The owning Team of the chain; null when none owns it.
	Team nullable.Nullable[WebhookTeam] `json:"team"`
	User WebhookUser                    `json:"user"`
}

WebhookAssignee An Assignee as an outgoing webhook event names them, with the owning Team of their chain.

type WebhookChainRef

type WebhookChainRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId `json:"id"`
	Name string   `json:"name"`
}

WebhookChainRef An Escalation chain as an outgoing webhook event names it.

type WebhookDestination

type WebhookDestination struct {
	CreatedAt time.Time `json:"created_at"`

	// Etag The same value as the `ETag` header; send it as `If-Match` on the next update. Lets a client update an item of a list without reading it again.
	Etag *string `json:"etag,omitempty"`

	// Events Required when `mode` is `events` or `both`.
	Events *WebhookEventsConfig `json:"events,omitempty"`
	Health DestinationHealth    `json:"health"`

	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id PublicId `json:"id"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries in order, each with what it mentions now.
	MentionEntries []MentionEntry `json:"mention_entries"`

	// MentionWarnings The people and entries whose Mentions were not delivered (C-28.FR-3), by entry and then by the person's name; always empty on an outgoing webhook, which takes every person as data.
	MentionWarnings []MentionWarning `json:"mention_warnings"`

	// Mentions The L1 form of the Mention entries that L1 can express on the Destination's type (C-28.FR-5), removed in 0.3.0.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions MentionSettings        `json:"mentions"`
	Mode     WebhookDestinationMode `json:"mode"`
	Name     string                 `json:"name"`

	// OwningTeam The Team that owns the Destination, null when none does.
	OwningTeam nullable.Nullable[TeamRef] `json:"owning_team"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`

	// Proxy Per-client proxy as read. The password is a Secret.
	Proxy               ProxyConfig         `json:"proxy"`
	Routes              []EntityRef         `json:"routes"`
	SigningSecretStatus SigningSecretStatus `json:"signing_secret_status"`

	// Teams The Teams that name the Destination as a Destination of the Team, by name.
	Teams []TeamRef `json:"teams"`

	// Template Required when `mode` is `template` or `both`.
	Template      *WebhookTemplateConfig `json:"template,omitempty"`
	TemplateError *TemplateErrorState    `json:"template_error,omitempty"`
	Type          WebhookDestinationType `json:"type"`
	Warnings      []DestinationWarning   `json:"warnings"`
}

WebhookDestination defines model for WebhookDestination.

type WebhookDestinationBase

type WebhookDestinationBase struct {
	// Events Required when `mode` is `events` or `both`.
	Events *WebhookEventsConfig `json:"events,omitempty"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries (C-28.FR-1, FR-2), in order, each a target and the Loud events it applies to; omitted on create is none, which mentions nobody, and omitted on an update keeps them. A target the Destination's Connection cannot mention is refused with `422` `mention_unsupported` at `/mention_entries/{i}/target` — an outgoing webhook takes every target, as data — and an entry whose target equals a stored one is kept whatever the Connection can mention now. An unknown or deleted User or Team is refused with `unknown_id` at its `user_id` or `team_id` unless the entry's target equals a stored one, and a target listed twice with `duplicate` at `/mention_entries/{i}/target`.
	MentionEntries *[]MentionEntryInput `json:"mention_entries,omitempty"`

	// Mentions The Mention settings of L1 (C-12.FR-8), deprecated since 0.2.0 and removed in 0.3.0 (C-28.FR-5). In a read, computed from the `mention_entries` that L1 can express on the Destination's type — the everyone choices, chosen Users and messenger groups L1 took there, for the six kinds of L1 — so that the other entries are not seen in it. In a request it is optional: when a request has no `mention_entries`, it sets them by the conversion of the 0.2.0 migration — on create they are its result; on update it replaces the entries that L1 can express, keeps the others after them, keeps the `storm_started` of a target present before and after, and changes nothing when it equals the stored form — validated as L1 validated it, at pointers under `/mentions`; ignored when `mention_entries` is present.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions *MentionSettings           `json:"mentions,omitempty"`
	Mode     WebhookDestinationBaseMode `json:"mode"`
	Name     string                     `json:"name"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`

	// Template Required when `mode` is `template` or `both`.
	Template *WebhookTemplateConfig     `json:"template,omitempty"`
	Type     WebhookDestinationBaseType `json:"type"`
}

WebhookDestinationBase defines model for WebhookDestinationBase.

type WebhookDestinationBaseMode

type WebhookDestinationBaseMode string

WebhookDestinationBaseMode defines model for WebhookDestinationBase.Mode.

const (
	WebhookDestinationBaseModeBoth     WebhookDestinationBaseMode = "both"
	WebhookDestinationBaseModeEvents   WebhookDestinationBaseMode = "events"
	WebhookDestinationBaseModeTemplate WebhookDestinationBaseMode = "template"
)

Defines values for WebhookDestinationBaseMode.

func (WebhookDestinationBaseMode) Valid

func (e WebhookDestinationBaseMode) Valid() bool

Valid indicates whether the value is a known member of the WebhookDestinationBaseMode enum.

type WebhookDestinationBaseType

type WebhookDestinationBaseType string

WebhookDestinationBaseType defines model for WebhookDestinationBase.Type.

const (
	WebhookDestinationBaseTypeWebhook WebhookDestinationBaseType = "webhook"
)

Defines values for WebhookDestinationBaseType.

func (WebhookDestinationBaseType) Valid

func (e WebhookDestinationBaseType) Valid() bool

Valid indicates whether the value is a known member of the WebhookDestinationBaseType enum.

type WebhookDestinationInput

type WebhookDestinationInput struct {
	// Events Required when `mode` is `events` or `both`.
	Events *WebhookEventsConfig `json:"events,omitempty"`

	// Limiter A rate limit of `limit` calls per `per_seconds`.
	Limiter Limiter `json:"limiter"`

	// ManagedBy The name of the tool that keeps the object as code, such as `terraform`, or null when none does (C-33.FR-11) — 1 to 32 characters, lowercase letters, digits, `.`, `_` and `-`, starting with a letter or a digit; another value is refused with `422` `invalid_format` at `/managed_by`. A mark only, recorded in the Audit log like any field; the mark itself changes no behaviour of Muster and never causes a write to be refused. Omitted on a creation, none; omitted on an update, kept; `null` clears it. Reads always carry it.
	ManagedBy nullable.Nullable[string] `json:"managed_by,omitempty"`

	// MentionEntries The Mention entries (C-28.FR-1, FR-2), in order, each a target and the Loud events it applies to; omitted on create is none, which mentions nobody, and omitted on an update keeps them. A target the Destination's Connection cannot mention is refused with `422` `mention_unsupported` at `/mention_entries/{i}/target` — an outgoing webhook takes every target, as data — and an entry whose target equals a stored one is kept whatever the Connection can mention now. An unknown or deleted User or Team is refused with `unknown_id` at its `user_id` or `team_id` unless the entry's target equals a stored one, and a target listed twice with `duplicate` at `/mention_entries/{i}/target`.
	MentionEntries *[]MentionEntryInput `json:"mention_entries,omitempty"`

	// Mentions The Mention settings of L1 (C-12.FR-8), deprecated since 0.2.0 and removed in 0.3.0 (C-28.FR-5). In a read, computed from the `mention_entries` that L1 can express on the Destination's type — the everyone choices, chosen Users and messenger groups L1 took there, for the six kinds of L1 — so that the other entries are not seen in it. In a request it is optional: when a request has no `mention_entries`, it sets them by the conversion of the 0.2.0 migration — on create they are its result; on update it replaces the entries that L1 can express, keeps the others after them, keeps the `storm_started` of a target present before and after, and changes nothing when it equals the stored form — validated as L1 validated it, at pointers under `/mentions`; ignored when `mention_entries` is present.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Mentions *MentionSettings            `json:"mentions,omitempty"`
	Mode     WebhookDestinationInputMode `json:"mode"`
	Name     string                      `json:"name"`

	// OwningTeamId The Team that owns the Destination (C-25.FR-2), which only organizes and filters; owning it never makes it one of the Team's Destinations. `null` clears it, and an update that omits it keeps it. An unknown or deleted Team is refused with `422` `unknown_id`.
	OwningTeamId nullable.Nullable[NullablePublicId] `json:"owning_team_id,omitempty"`

	// Proxy Per-client proxy as written. Omitting `password` keeps the stored one; `null` clears it.
	Proxy ProxyConfigInput `json:"proxy"`

	// Template Required when `mode` is `template` or `both`.
	Template *WebhookTemplateConfig      `json:"template,omitempty"`
	Type     WebhookDestinationInputType `json:"type"`
}

WebhookDestinationInput defines model for WebhookDestinationInput.

type WebhookDestinationInputMode

type WebhookDestinationInputMode string

WebhookDestinationInputMode defines model for WebhookDestinationInput.Mode.

const (
	WebhookDestinationInputModeBoth     WebhookDestinationInputMode = "both"
	WebhookDestinationInputModeEvents   WebhookDestinationInputMode = "events"
	WebhookDestinationInputModeTemplate WebhookDestinationInputMode = "template"
)

Defines values for WebhookDestinationInputMode.

func (WebhookDestinationInputMode) Valid

Valid indicates whether the value is a known member of the WebhookDestinationInputMode enum.

type WebhookDestinationInputType

type WebhookDestinationInputType string

WebhookDestinationInputType defines model for WebhookDestinationInput.Type.

const (
	WebhookDestinationInputTypeWebhook WebhookDestinationInputType = "webhook"
)

Defines values for WebhookDestinationInputType.

func (WebhookDestinationInputType) Valid

Valid indicates whether the value is a known member of the WebhookDestinationInputType enum.

type WebhookDestinationMode

type WebhookDestinationMode string

WebhookDestinationMode defines model for WebhookDestination.Mode.

const (
	WebhookDestinationModeBoth     WebhookDestinationMode = "both"
	WebhookDestinationModeEvents   WebhookDestinationMode = "events"
	WebhookDestinationModeTemplate WebhookDestinationMode = "template"
)

Defines values for WebhookDestinationMode.

func (WebhookDestinationMode) Valid

func (e WebhookDestinationMode) Valid() bool

Valid indicates whether the value is a known member of the WebhookDestinationMode enum.

type WebhookDestinationRef

type WebhookDestinationRef struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId        `json:"id"`
	Name string          `json:"name"`
	Type DestinationType `json:"type"`
}

WebhookDestinationRef A Destination as an outgoing webhook event names it.

type WebhookDestinationType

type WebhookDestinationType string

WebhookDestinationType defines model for WebhookDestination.Type.

const (
	WebhookDestinationTypeWebhook WebhookDestinationType = "webhook"
)

Defines values for WebhookDestinationType.

func (WebhookDestinationType) Valid

func (e WebhookDestinationType) Valid() bool

Valid indicates whether the value is a known member of the WebhookDestinationType enum.

type WebhookEscalationStep

type WebhookEscalationStep struct {
	// Chain The chain, null once it was deleted.
	Chain nullable.Nullable[WebhookChainRef] `json:"chain"`

	// Reason Why the step was skipped on `escalation_step_skipped`; null on `escalation_webhook`, whose step was made.
	Reason nullable.Nullable[EscalationSkipReason] `json:"reason"`
	Step   int                                     `json:"step"`
	Users  []WebhookUser                           `json:"users"`
}

WebhookEscalationStep A step of an Escalation chain as an outgoing webhook event names it, on `escalation_step_skipped` and `escalation_webhook`; `users` names the person of a skip of a person, and is empty otherwise.

type WebhookEventName

type WebhookEventName string

WebhookEventName One of the lifecycle event names (see `LifecycleEvent`) or `test`, which only a Destination test sends. New names are added within `version` 1; receivers ignore names they do not know.

const (
	WebhookEventNameAckTimeout            WebhookEventName = "ack_timeout"
	WebhookEventNameAcknowledged          WebhookEventName = "acknowledged"
	WebhookEventNameAlertContinued        WebhookEventName = "alert_continued"
	WebhookEventNameAlertReplaced         WebhookEventName = "alert_replaced"
	WebhookEventNameAlertResolved         WebhookEventName = "alert_resolved"
	WebhookEventNameAlertsAdded           WebhookEventName = "alerts_added"
	WebhookEventNameAnnotationsChanged    WebhookEventName = "annotations_changed"
	WebhookEventNameAssigneesChanged      WebhookEventName = "assignees_changed"
	WebhookEventNameAutoUnacknowledged    WebhookEventName = "auto_unacknowledged"
	WebhookEventNameCreated               WebhookEventName = "created"
	WebhookEventNameDestinationJoined     WebhookEventName = "destination_joined"
	WebhookEventNameEscalationStepSkipped WebhookEventName = "escalation_step_skipped"
	WebhookEventNameEscalationWebhook     WebhookEventName = "escalation_webhook"
	WebhookEventNameMovedToDefaultRoute   WebhookEventName = "moved_to_default_route"
	WebhookEventNameNoteAdded             WebhookEventName = "note_added"
	WebhookEventNameNoticesMissed         WebhookEventName = "notices_missed"
	WebhookEventNamePageNotDelivered      WebhookEventName = "page_not_delivered"
	WebhookEventNamePaged                 WebhookEventName = "paged"
	WebhookEventNameReminder              WebhookEventName = "reminder"
	WebhookEventNameReminderAnswered      WebhookEventName = "reminder_answered"
	WebhookEventNameReopened              WebhookEventName = "reopened"
	WebhookEventNameResolved              WebhookEventName = "resolved"
	WebhookEventNameSeverityRaised        WebhookEventName = "severity_raised"
	WebhookEventNameSnoozeEnded           WebhookEventName = "snooze_ended"
	WebhookEventNameSnoozed               WebhookEventName = "snoozed"
	WebhookEventNameTakeover              WebhookEventName = "takeover"
	WebhookEventNameTeamJoined            WebhookEventName = "team_joined"
	WebhookEventNameTest                  WebhookEventName = "test"
	WebhookEventNameUnacknowledged        WebhookEventName = "unacknowledged"
	WebhookEventNameUnclaimed             WebhookEventName = "unclaimed"
	WebhookEventNameUnknownTeamValue      WebhookEventName = "unknown_team_value"
	WebhookEventNameUnresolved            WebhookEventName = "unresolved"
	WebhookEventNameUnsnoozed             WebhookEventName = "unsnoozed"
	WebhookEventNameUrgencyRaised         WebhookEventName = "urgency_raised"
)

Defines values for WebhookEventName.

func (WebhookEventName) Valid

func (e WebhookEventName) Valid() bool

Valid indicates whether the value is a known member of the WebhookEventName enum.

type WebhookEventsConfig

type WebhookEventsConfig struct {
	Headers []HeaderTemplate `json:"headers"`

	// Url Go template that may use Secrets.
	Url string `json:"url"`
}

WebhookEventsConfig defines model for WebhookEventsConfig.

type WebhookInitiator

type WebhookInitiator struct {
	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

WebhookInitiator sends OpenAPI 3.1 webhook requests to target URLs. Modeled on the generated Client, but with no stored Server -- the full target URL is provided per-call by the caller (typically discovered from a subscription registration).

func NewWebhookInitiator

func NewWebhookInitiator(opts ...WebhookInitiatorOption) (*WebhookInitiator, error)

NewWebhookInitiator creates a new WebhookInitiator with reasonable defaults.

func (*WebhookInitiator) DeliverAlertGroupEvent

func (p *WebhookInitiator) DeliverAlertGroupEvent(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, body DeliverAlertGroupEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*WebhookInitiator) DeliverAlertGroupEventWithBody

func (p *WebhookInitiator) DeliverAlertGroupEventWithBody(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type WebhookInitiatorInterface

type WebhookInitiatorInterface interface {
	// DeliverAlertGroupEventWithBody fires the alertGroupEvent webhook with any body
	DeliverAlertGroupEventWithBody(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DeliverAlertGroupEvent(ctx context.Context, targetURL string, params *DeliverAlertGroupEventParams, body DeliverAlertGroupEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

WebhookInitiatorInterface is the interface specification for the webhook initiator.

type WebhookInitiatorOption

type WebhookInitiatorOption func(*WebhookInitiator) error

WebhookInitiatorOption allows setting custom parameters during construction.

func WithWebhookHTTPClient

func WithWebhookHTTPClient(doer HttpRequestDoer) WebhookInitiatorOption

WithWebhookHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithWebhookRequestEditorFn

func WithWebhookRequestEditorFn(fn RequestEditorFn) WebhookInitiatorOption

WithWebhookRequestEditorFn allows setting up a callback function, which will be called right before sending the webhook request. This can be used to mutate the request, e.g. to add signature headers.

type WebhookMentionTarget

type WebhookMentionTarget struct {
	// Id A `public_id` in the format of `PublicId`, or null.
	Id    nullable.Nullable[NullablePublicId] `json:"id,omitempty"`
	Login nullable.Nullable[string]           `json:"login,omitempty"`
	Name  nullable.Nullable[string]           `json:"name,omitempty"`
	Slug  nullable.Nullable[string]           `json:"slug,omitempty"`
	Type  WebhookMentionTargetType            `json:"type"`
}

WebhookMentionTarget A resolved Mention as data (C-15.FR-11). `everyone` has no other fields, `group` has `name`, `user` has `id`, `name` and `login` — the On-call of a Team and the people that `paged` Pages are `user` targets — and `team` has `slug` and `name`, one per Team of the Alert Group for "Team from the label", or the Team of a step "Page the whole Team" on `paged`.

type WebhookMentionTargetType

type WebhookMentionTargetType string

WebhookMentionTargetType defines model for WebhookMentionTarget.Type.

const (
	WebhookMentionTargetTypeEveryone WebhookMentionTargetType = "everyone"
	WebhookMentionTargetTypeGroup    WebhookMentionTargetType = "group"
	WebhookMentionTargetTypeTeam     WebhookMentionTargetType = "team"
	WebhookMentionTargetTypeUser     WebhookMentionTargetType = "user"
)

Defines values for WebhookMentionTargetType.

func (WebhookMentionTargetType) Valid

func (e WebhookMentionTargetType) Valid() bool

Valid indicates whether the value is a known member of the WebhookMentionTargetType enum.

type WebhookPage

type WebhookPage struct {
	// Chain The Escalation chain whose step made the Page; null for a Page that no step of a chain made, and once the chain was deleted.
	Chain nullable.Nullable[WebhookChainRef] `json:"chain"`

	// Gateway The Notification gateway of a call; null for a Page by Mention.
	Gateway nullable.Nullable[EntityRef] `json:"gateway"`

	// Importance How the step Paged its people; null for a step "Page the whole Team" and a call through a Notification gateway.
	Importance nullable.Nullable[PageImportance] `json:"importance"`

	// Reason Why the Page was not delivered, on `page_not_delivered`; null on `paged`.
	Reason nullable.Nullable[PageNotDeliveredReason] `json:"reason"`

	// Step The number of that step in its chain; null when no step of a chain made the Page, and kept when the chain was deleted.
	Step nullable.Nullable[int] `json:"step"`

	// Users The people the Page names; empty for a step "Page the whole Team".
	Users []WebhookUser `json:"users"`
}

WebhookPage A Page as an outgoing webhook event names it, on `paged` and `page_not_delivered`.

type WebhookTeam

type WebhookTeam struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id   PublicId `json:"id"`
	Name string   `json:"name"`
	Slug string   `json:"slug"`
}

WebhookTeam A Team as an outgoing webhook event names it.

type WebhookTemplateConfig

type WebhookTemplateConfig struct {
	Create RequestTemplate `json:"create"`

	// OpenThread Runs once before the first Thread reply.
	OpenThread *RequestTemplate `json:"open_thread,omitempty"`

	// ReplyInThread Carries the events whose messenger form is a Thread reply.
	ReplyInThread *RequestTemplate `json:"reply_in_thread,omitempty"`
	Update        RequestTemplate  `json:"update"`
}

WebhookTemplateConfig defines model for WebhookTemplateConfig.

type WebhookUser

type WebhookUser struct {
	// Id Opaque public identifier (`public_id`): a type prefix of one or two letters followed by 12 random characters of Crockford base32 (`0`–`9` and `A`–`Z` without `I`, `L`, `O` and `U`; 60 bits), such as `AGK7M3QX9P2RTA` for an Alert Group. Prefixes use the same letters and differ per type: `AG` Alert Group, `AE` Audit log entry, `AK` Account link, `AR` Account link request, `CA` call through a Notification gateway, `CN` Connection, `CR` check run, `DE` delivery event, `DS` Destination, `EC` Escalation chain, `ER` run of an Escalation chain, `GC` contact at a Notification gateway, `KR` Link rule, `NE` Note, `NK` Integration token, `NT` Integration, `PT` Personal access token, `RG` Organization, `RQ` record of the Request log, `RT` Route, `RY` Rotation layer, `SA` Service account, `SC` Schedule, `SN` session, `SR` User, `SS` Stored Snapshot, `ST` Service account token, `TB` Lookup table, `TE` Timeline entry, `TM` Team, `VR` Override. Responses always carry the canonical upper-case form. Input is case-insensitive and normalized before lookup — `O` reads as `0`, `I` and `L` as `1` — so the pattern also admits lower case and those letters. People refer to Alert Groups by `#N`, never by `public_id`.
	Id    PublicId `json:"id"`
	Login string   `json:"login"`
	Name  string   `json:"name"`
}

WebhookUser defines model for WebhookUser.

type Weekday

type Weekday string

Weekday A day of the week. As the Organization's `week_start` it is `organization.week_start` (default `monday`), the first day of the week, on which the Snooze preset `week_start` ends at the start of the working day; omit it on an update to keep it.

const (
	Friday    Weekday = "friday"
	Monday    Weekday = "monday"
	Saturday  Weekday = "saturday"
	Sunday    Weekday = "sunday"
	Thursday  Weekday = "thursday"
	Tuesday   Weekday = "tuesday"
	Wednesday Weekday = "wednesday"
)

Defines values for Weekday.

func (Weekday) Valid

func (e Weekday) Valid() bool

Valid indicates whether the value is a known member of the Weekday enum.

type WorkingHours

type WorkingHours struct {
	Days []Weekday `json:"days"`

	// End Later than `start` on the same day, else `422` `out_of_range` at the end.
	End   string `json:"end"`
	Start string `json:"start"`

	// TimeZone IANA time zone, such as `Europe/Berlin`.
	TimeZone string `json:"time_zone"`
}

WorkingHours Working hours (C-25.FR-9): days of the week, a start and an end on the 24-hour clock and an IANA time zone. The end is later than the start on the same day: Working hours never span midnight. Holidays are not part of them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL