Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,7 @@ export const marshalCreateEmailRequest = (
request.cc !== undefined
? request.cc.map(elt => marshalCreateEmailRequestAddress(elt, defaults))
: undefined,
from:
request.from !== undefined
? marshalCreateEmailRequestAddress(request.from, defaults)
: undefined,
from: marshalCreateEmailRequestAddress(request.from, defaults),
html: request.html,
project_id: request.projectId ?? defaults.defaultProjectId,
send_before: request.sendBefore,
Expand Down
2 changes: 1 addition & 1 deletion packages/clients/src/api/tem/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export type CreateEmailRequest = {
*/
region?: Region
/** Sender information. Must be from a checked domain declared in the Project. */
from?: CreateEmailRequestAddress
from: CreateEmailRequestAddress
/** An array of the primary recipient's information. */
to?: CreateEmailRequestAddress[]
/** An array of the carbon copy recipient's information. */
Expand Down
64 changes: 64 additions & 0 deletions packages/clients/src/api/tem/v1alpha1/validation-rules.gen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,70 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

export const CreateDomainRequest = {
domainName: {
maxLength: 255,
minLength: 1,
},
}

export const CreateEmailRequest = {
subject: {
minLength: 6,
},
}

export const CreateEmailRequestAddress = {
email: {
minLength: 1,
},
}

export const CreateEmailRequestAttachment = {
name: {
minLength: 1,
},
type: {
minLength: 1,
},
}

export const CreateEmailRequestHeader = {
key: {
minLength: 1,
},
value: {
minLength: 1,
},
}

export const ListDomainsRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 1000,
},
}

export const ListEmailsRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 1000,
},
search: {
maxLength: 100,
minLength: 3,
},
subject: {
minLength: 6,
},
}

export const ListWebhookEventsRequest = {
page: {
greaterThan: 0,
Expand Down