-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_create_prompt_request.go
36 lines (34 loc) · 1.97 KB
/
model_create_prompt_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* ApproveAPISwagger
*
* The simple API to request a user's approval on anything via email + sms.
*
* API version: 1.0.1
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package approveapi
type CreatePromptRequest struct {
// The body of the approval request to show the user.
Body string `json:"body"`
// Allows calling `create_prompt` multiple times idempotently, such that a prompt is sent at-most once. This key should contain sufficient randomness. Idempotent requests are stored for 24 hours. After that time, the same key will create a new request.
IdempotencyKey *string `json:"idempotency_key,omitempty"`
// The title of an approval request. Defaults to an empty string.
Title *string `json:"title,omitempty"`
// The reject action text. If not specified the reject button will NOT be rendered, and the user will only see an approve action button.
RejectText *string `json:"reject_text,omitempty"`
// The number of seconds until this request can no longer be answered.
ExpiresIn *float32 `json:"expires_in,omitempty"`
// If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false.
LongPoll *bool `json:"long_poll,omitempty"`
InternalData *map[string]string `json:"internal_data,omitempty"`
// The user to send the approval request to. Can be either an email address or a phone number.
User string `json:"user"`
// The approve action text. Defaults to 'Approve'.
ApproveText *string `json:"approve_text,omitempty"`
// An HTTPS URL to redirect the user to if the prompt is approved. This URL is kept secret until the user is redirected to it.
ApproveRedirectUrl *string `json:"approve_redirect_url,omitempty"`
// An HTTPS URL to redirect the user to if the prompt is rejected. This URL is kept secret until the user is redirected to it.
RejectRedirectUrl *string `json:"reject_redirect_url,omitempty"`
Metadata *PromptMetadata `json:"metadata,omitempty"`
}