Skip to content

Commit 771f956

Browse files
committed
feat: update generated APIs
1 parent 8c907c7 commit 771f956

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

packages/clients/src/api/tem/v1alpha1/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
validatePathParam,
88
waitForResource,
99
} from '../../../bridge'
10-
import type { Region, WaitForOptions } from '../../../bridge'
10+
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge'
1111
import {
1212
DOMAIN_TRANSIENT_STATUSES,
1313
EMAIL_TRANSIENT_STATUSES,
@@ -84,7 +84,7 @@ const jsonContentHeaders = {
8484
*/
8585
export class API extends ParentAPI {
8686
/** Lists the available regions of the API. */
87-
public static readonly LOCALITIES: Region[] = ['fr-par']
87+
public static readonly LOCALITIES: ScwRegion[] = ['fr-par']
8888

8989
/**
9090
* Send an email. You must specify the `region`, the sender and the

packages/clients/src/api/tem/v1alpha1/types.gen.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3-
import type { Region } from '../../../bridge'
3+
import type { Region as ScwRegion } from '../../../bridge'
44

55
export type BlocklistType =
66
| 'unknown_type'
@@ -317,7 +317,7 @@ export interface Domain {
317317
* Region to target. If none is passed will use default region from the
318318
* config.
319319
*/
320-
region: Region
320+
region: ScwRegion
321321
}
322322

323323
export interface WebhookEvent {
@@ -399,7 +399,7 @@ export type BulkCreateBlocklistsRequest = {
399399
* Region to target. If none is passed will use default region from the
400400
* config.
401401
*/
402-
region?: Region
402+
region?: ScwRegion
403403
/** Domain ID linked to the blocklist. */
404404
domainId: string
405405
/** Email blocked by the blocklist. */
@@ -420,7 +420,7 @@ export type CancelEmailRequest = {
420420
* Region to target. If none is passed will use default region from the
421421
* config.
422422
*/
423-
region?: Region
423+
region?: ScwRegion
424424
/** ID of the email to cancel. */
425425
emailId: string
426426
}
@@ -430,7 +430,7 @@ export type CheckDomainRequest = {
430430
* Region to target. If none is passed will use default region from the
431431
* config.
432432
*/
433-
region?: Region
433+
region?: ScwRegion
434434
/** ID of the domain to check. */
435435
domainId: string
436436
}
@@ -440,7 +440,7 @@ export type CreateDomainRequest = {
440440
* Region to target. If none is passed will use default region from the
441441
* config.
442442
*/
443-
region?: Region
443+
region?: ScwRegion
444444
/** ID of the project to which the domain belongs. */
445445
projectId?: string
446446
/** Fully qualified domain dame. */
@@ -456,7 +456,7 @@ export type CreateEmailRequest = {
456456
* Region to target. If none is passed will use default region from the
457457
* config.
458458
*/
459-
region?: Region
459+
region?: ScwRegion
460460
/** Sender information. Must be from a checked domain declared in the Project. */
461461
from: CreateEmailRequestAddress
462462
/** An array of the primary recipient's information. */
@@ -491,7 +491,7 @@ export type CreateWebhookRequest = {
491491
* Region to target. If none is passed will use default region from the
492492
* config.
493493
*/
494-
region?: Region
494+
region?: ScwRegion
495495
/** ID of the Domain to watch for triggering events. */
496496
domainId: string
497497
/** ID of the project to which the Webhook belongs. */
@@ -509,7 +509,7 @@ export type DeleteBlocklistRequest = {
509509
* Region to target. If none is passed will use default region from the
510510
* config.
511511
*/
512-
region?: Region
512+
region?: ScwRegion
513513
/** ID of the blocklist to delete. */
514514
blocklistId: string
515515
}
@@ -519,7 +519,7 @@ export type DeleteWebhookRequest = {
519519
* Region to target. If none is passed will use default region from the
520520
* config.
521521
*/
522-
region?: Region
522+
region?: ScwRegion
523523
/** ID of the Webhook to delete. */
524524
webhookId: string
525525
}
@@ -544,7 +544,7 @@ export type GetDomainLastStatusRequest = {
544544
* Region to target. If none is passed will use default region from the
545545
* config.
546546
*/
547-
region?: Region
547+
region?: ScwRegion
548548
/** ID of the domain to delete. */
549549
domainId: string
550550
}
@@ -554,7 +554,7 @@ export type GetDomainRequest = {
554554
* Region to target. If none is passed will use default region from the
555555
* config.
556556
*/
557-
region?: Region
557+
region?: ScwRegion
558558
/** ID of the domain. */
559559
domainId: string
560560
}
@@ -564,7 +564,7 @@ export type GetEmailRequest = {
564564
* Region to target. If none is passed will use default region from the
565565
* config.
566566
*/
567-
region?: Region
567+
region?: ScwRegion
568568
/** ID of the email to retrieve. */
569569
emailId: string
570570
}
@@ -574,7 +574,7 @@ export type GetProjectSettingsRequest = {
574574
* Region to target. If none is passed will use default region from the
575575
* config.
576576
*/
577-
region?: Region
577+
region?: ScwRegion
578578
/** ID of the project. */
579579
projectId?: string
580580
}
@@ -584,7 +584,7 @@ export type GetStatisticsRequest = {
584584
* Region to target. If none is passed will use default region from the
585585
* config.
586586
*/
587-
region?: Region
587+
region?: ScwRegion
588588
/** (Optional) Number of emails for this Project. */
589589
projectId?: string
590590
/**
@@ -605,7 +605,7 @@ export type GetWebhookRequest = {
605605
* Region to target. If none is passed will use default region from the
606606
* config.
607607
*/
608-
region?: Region
608+
region?: ScwRegion
609609
/** ID of the Webhook to check. */
610610
webhookId: string
611611
}
@@ -615,7 +615,7 @@ export type ListBlocklistsRequest = {
615615
* Region to target. If none is passed will use default region from the
616616
* config.
617617
*/
618-
region?: Region
618+
region?: ScwRegion
619619
/** (Optional) List blocklist corresponding to specific criteria. */
620620
orderBy?: ListBlocklistsRequestOrderBy
621621
/** (Optional) Requested page number. Value must be greater or equal to 1. */
@@ -647,7 +647,7 @@ export type ListDomainsRequest = {
647647
* Region to target. If none is passed will use default region from the
648648
* config.
649649
*/
650-
region?: Region
650+
region?: ScwRegion
651651
/** Requested page number. Value must be greater or equal to 1. */
652652
page?: number
653653
/** Requested page size. Value must be between 1 and 1000. */
@@ -674,7 +674,7 @@ export type ListEmailsRequest = {
674674
* Region to target. If none is passed will use default region from the
675675
* config.
676676
*/
677-
region?: Region
677+
region?: ScwRegion
678678
page?: number
679679
pageSize?: number
680680
/** (Optional) ID of the Project in which to list the emails. */
@@ -717,7 +717,7 @@ export type ListWebhookEventsRequest = {
717717
* Region to target. If none is passed will use default region from the
718718
* config.
719719
*/
720-
region?: Region
720+
region?: ScwRegion
721721
/** ID of the Webhook linked to the events. */
722722
webhookId: string
723723
/** (Optional) List Webhook events corresponding to specific criteria. */
@@ -752,7 +752,7 @@ export type ListWebhooksRequest = {
752752
* Region to target. If none is passed will use default region from the
753753
* config.
754754
*/
755-
region?: Region
755+
region?: ScwRegion
756756
/** (Optional) List Webhooks corresponding to specific criteria. */
757757
orderBy?: ListWebhooksRequestOrderBy
758758
/** (Optional) Requested page number. Value must be greater or equal to 1. */
@@ -784,7 +784,7 @@ export type RevokeDomainRequest = {
784784
* Region to target. If none is passed will use default region from the
785785
* config.
786786
*/
787-
region?: Region
787+
region?: ScwRegion
788788
/** ID of the domain to delete. */
789789
domainId: string
790790
}
@@ -824,7 +824,7 @@ export type UpdateDomainRequest = {
824824
* Region to target. If none is passed will use default region from the
825825
* config.
826826
*/
827-
region?: Region
827+
region?: ScwRegion
828828
/** ID of the domain to update. */
829829
domainId: string
830830
/**
@@ -839,7 +839,7 @@ export type UpdateProjectSettingsRequest = {
839839
* Region to target. If none is passed will use default region from the
840840
* config.
841841
*/
842-
region?: Region
842+
region?: ScwRegion
843843
/** ID of the project. */
844844
projectId?: string
845845
/** Periodic report update details - all fields are optional. */
@@ -851,7 +851,7 @@ export type UpdateWebhookRequest = {
851851
* Region to target. If none is passed will use default region from the
852852
* config.
853853
*/
854-
region?: Region
854+
region?: ScwRegion
855855
/** ID of the Webhook to update. */
856856
webhookId: string
857857
/** Name of the Webhook to update. */

0 commit comments

Comments
 (0)