-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi_model.gen.go
More file actions
129 lines (95 loc) · 3.52 KB
/
api_model.gen.go
File metadata and controls
129 lines (95 loc) · 3.52 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Package aboutmyemail provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
package aboutmyemail
import (
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
// N400Error defines model for 400Error.
type N400Error struct {
Message string `json:"message"`
}
// N500Error defines model for 500Error.
type N500Error struct {
Message string `json:"message"`
}
// StatusResult defines model for StatusResult.
type StatusResult struct {
// Id Identifier for the result
Id string `json:"id"`
// Messages Zero or more processing update messages
Messages *[]string `json:"messages,omitempty"`
// Token Opaque token copied from request
Token *string `json:"token,omitempty"`
// Url Where human readable result is available
Url *string `json:"url,omitempty"`
}
// Submit defines model for Submit.
type Submit struct {
// FinishedUrl Callback when processing is complete
FinishedUrl *string `json:"finishedUrl,omitempty"`
// From The email address for MAIL FROM
From string `json:"from"`
// Helo The hostname given in the HELO
Helo *string `json:"helo,omitempty"`
// Ip The IP address the mail is sent from
Ip string `json:"ip"`
// Options 'stage' for staged rendering
Options *string `json:"options,omitempty"`
// Payload The headers and body of the message
Payload string `json:"payload"`
// ProgressUrl Regular callbacks for progress messages
ProgressUrl *string `json:"progressUrl,omitempty"`
// Smtputf8 Whether the email is localized
Smtputf8 *bool `json:"smtputf8,omitempty"`
// To The email address for RCPT TO
To string `json:"to"`
// Token Opaque token returned in response
Token *string `json:"token,omitempty"`
}
// SubmitForm defines model for SubmitForm.
type SubmitForm struct {
// FinishedUrl Callback when processing is complete
FinishedUrl *string `json:"finishedUrl,omitempty"`
// From The email address for MAIL FROM
From string `json:"from"`
// Helo The hostname given in the HELO
Helo *string `json:"helo,omitempty"`
// Ip The IP address the mail is sent from
Ip string `json:"ip"`
// Options 'stage' for staged rendering
Options *string `json:"options,omitempty"`
// Payload The headers and body of the message
Payload openapi_types.File `json:"payload"`
// ProgressUrl Regular callbacks for progress messages
ProgressUrl *string `json:"progressUrl,omitempty"`
// Smtputf8 Whether the email is localized
Smtputf8 *bool `json:"smtputf8,omitempty"`
// To The email address for RCPT TO
To string `json:"to"`
// Token Opaque token returned in response
Token *string `json:"token,omitempty"`
}
// SubmitSuccess defines model for SubmitSuccess.
type SubmitSuccess struct {
// Id Identifier for the result
Id string `json:"id"`
}
// UploadResult defines model for UploadResult.
type UploadResult struct {
// Messages Diagnostics about uploaded files
Messages []string `json:"messages"`
}
// ContentPostMultipartBody defines parameters for ContentPost.
type ContentPostMultipartBody struct {
Filename *[]openapi_types.File `json:"filename,omitempty"`
}
// EmailJSONRequestBody defines body for Email for application/json ContentType.
type EmailJSONRequestBody = Submit
// EmailMultipartRequestBody defines body for Email for multipart/form-data ContentType.
type EmailMultipartRequestBody = SubmitForm
// ContentPostMultipartRequestBody defines body for ContentPost for multipart/form-data ContentType.
type ContentPostMultipartRequestBody ContentPostMultipartBody