@usehercules/sdk 1.14.2 → 1.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +111 -0
- package/client.d.mts +8 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -1
- package/client.d.ts.map +1 -1
- package/client.js +22 -7
- package/client.js.map +1 -1
- package/client.mjs +22 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/commerce/coupons.d.mts +1 -1
- package/resources/commerce/coupons.d.mts.map +1 -1
- package/resources/commerce/coupons.d.ts +1 -1
- package/resources/commerce/coupons.d.ts.map +1 -1
- package/resources/commerce/coupons.js +1 -1
- package/resources/commerce/coupons.js.map +1 -1
- package/resources/commerce/coupons.mjs +1 -1
- package/resources/commerce/coupons.mjs.map +1 -1
- package/resources/commerce/customers.d.mts +3 -3
- package/resources/commerce/customers.d.mts.map +1 -1
- package/resources/commerce/customers.d.ts +3 -3
- package/resources/commerce/customers.d.ts.map +1 -1
- package/resources/commerce/customers.js +3 -3
- package/resources/commerce/customers.js.map +1 -1
- package/resources/commerce/customers.mjs +3 -3
- package/resources/commerce/customers.mjs.map +1 -1
- package/resources/commerce/features.d.mts +1 -1
- package/resources/commerce/features.d.mts.map +1 -1
- package/resources/commerce/features.d.ts +1 -1
- package/resources/commerce/features.d.ts.map +1 -1
- package/resources/commerce/features.js +1 -1
- package/resources/commerce/features.js.map +1 -1
- package/resources/commerce/features.mjs +1 -1
- package/resources/commerce/features.mjs.map +1 -1
- package/resources/commerce/products/products.d.mts +1 -1
- package/resources/commerce/products/products.d.mts.map +1 -1
- package/resources/commerce/products/products.d.ts +1 -1
- package/resources/commerce/products/products.d.ts.map +1 -1
- package/resources/commerce/products/products.js +1 -1
- package/resources/commerce/products/products.js.map +1 -1
- package/resources/commerce/products/products.mjs +1 -1
- package/resources/commerce/products/products.mjs.map +1 -1
- package/resources/content/assets.d.mts +1 -1
- package/resources/content/assets.d.mts.map +1 -1
- package/resources/content/assets.d.ts +1 -1
- package/resources/content/assets.d.ts.map +1 -1
- package/resources/content/assets.js +1 -1
- package/resources/content/assets.js.map +1 -1
- package/resources/content/assets.mjs +1 -1
- package/resources/content/assets.mjs.map +1 -1
- package/resources/content/collections/collections.d.mts +1 -1
- package/resources/content/collections/collections.d.mts.map +1 -1
- package/resources/content/collections/collections.d.ts +1 -1
- package/resources/content/collections/collections.d.ts.map +1 -1
- package/resources/content/collections/collections.js +1 -1
- package/resources/content/collections/collections.js.map +1 -1
- package/resources/content/collections/collections.mjs +1 -1
- package/resources/content/collections/collections.mjs.map +1 -1
- package/resources/content/entries.d.mts +2 -2
- package/resources/content/entries.d.mts.map +1 -1
- package/resources/content/entries.d.ts +2 -2
- package/resources/content/entries.d.ts.map +1 -1
- package/resources/content/entries.js +2 -2
- package/resources/content/entries.js.map +1 -1
- package/resources/content/entries.mjs +2 -2
- package/resources/content/entries.mjs.map +1 -1
- package/resources/content/locales.d.mts +1 -1
- package/resources/content/locales.d.mts.map +1 -1
- package/resources/content/locales.d.ts +1 -1
- package/resources/content/locales.d.ts.map +1 -1
- package/resources/content/locales.js +1 -1
- package/resources/content/locales.js.map +1 -1
- package/resources/content/locales.mjs +1 -1
- package/resources/content/locales.mjs.map +1 -1
- package/resources/content/releases/releases.d.mts +1 -1
- package/resources/content/releases/releases.d.mts.map +1 -1
- package/resources/content/releases/releases.d.ts +1 -1
- package/resources/content/releases/releases.d.ts.map +1 -1
- package/resources/content/releases/releases.js +1 -1
- package/resources/content/releases/releases.js.map +1 -1
- package/resources/content/releases/releases.mjs +1 -1
- package/resources/content/releases/releases.mjs.map +1 -1
- package/resources/email/email.d.mts +215 -0
- package/resources/email/email.d.mts.map +1 -0
- package/resources/email/email.d.ts +215 -0
- package/resources/email/email.d.ts.map +1 -0
- package/resources/email/email.js +43 -0
- package/resources/email/email.js.map +1 -0
- package/resources/email/email.mjs +38 -0
- package/resources/email/email.mjs.map +1 -0
- package/resources/email/identities.d.mts +145 -0
- package/resources/email/identities.d.mts.map +1 -0
- package/resources/email/identities.d.ts +145 -0
- package/resources/email/identities.d.ts.map +1 -0
- package/resources/email/identities.js +51 -0
- package/resources/email/identities.js.map +1 -0
- package/resources/email/identities.mjs +47 -0
- package/resources/email/identities.mjs.map +1 -0
- package/resources/email/index.d.mts +3 -0
- package/resources/email/index.d.mts.map +1 -0
- package/resources/email/index.d.ts +3 -0
- package/resources/email/index.d.ts.map +1 -0
- package/resources/email/index.js +9 -0
- package/resources/email/index.js.map +1 -0
- package/resources/email/index.mjs +4 -0
- package/resources/email/index.mjs.map +1 -0
- package/resources/email.d.mts +2 -0
- package/resources/email.d.mts.map +1 -0
- package/resources/email.d.ts +2 -0
- package/resources/email.d.ts.map +1 -0
- package/resources/email.js +6 -0
- package/resources/email.js.map +1 -0
- package/resources/email.mjs +3 -0
- package/resources/email.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +46 -10
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/commerce/coupons.ts +1 -5
- package/src/resources/commerce/customers.ts +3 -7
- package/src/resources/commerce/features.ts +1 -5
- package/src/resources/commerce/products/products.ts +1 -5
- package/src/resources/content/assets.ts +1 -5
- package/src/resources/content/collections/collections.ts +1 -1
- package/src/resources/content/entries.ts +2 -10
- package/src/resources/content/locales.ts +1 -5
- package/src/resources/content/releases/releases.ts +1 -5
- package/src/resources/email/email.ts +292 -0
- package/src/resources/email/identities.ts +198 -0
- package/src/resources/email/index.ts +20 -0
- package/src/resources/email.ts +3 -0
- package/src/resources/index.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Identities extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new sender identity for email verification. For email identities, a
|
|
8
|
+
* verification email is sent. For domain identities, DNS records are returned that
|
|
9
|
+
* must be configured to verify ownership.
|
|
10
|
+
*/
|
|
11
|
+
create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a paginated list of sender identities (email addresses and domains)
|
|
14
|
+
* configured for this website.
|
|
15
|
+
*/
|
|
16
|
+
list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesCursorIDPage, Identity>;
|
|
17
|
+
/**
|
|
18
|
+
* Permanently deletes a sender identity. Emails can no longer be sent from this
|
|
19
|
+
* address or domain after deletion.
|
|
20
|
+
*/
|
|
21
|
+
delete(identityID: string, options?: RequestOptions): APIPromise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a sender identity by ID. Returns the identity with its current
|
|
24
|
+
* verification status and any required DNS records.
|
|
25
|
+
*/
|
|
26
|
+
get(identityID: string, options?: RequestOptions): APIPromise<Identity>;
|
|
27
|
+
/**
|
|
28
|
+
* Triggers a manual recheck of the identity's verification status against AWS SES.
|
|
29
|
+
* Returns the identity with its updated status.
|
|
30
|
+
*/
|
|
31
|
+
verify(identityID: string, body: IdentityVerifyParams, options?: RequestOptions): APIPromise<Identity>;
|
|
32
|
+
}
|
|
33
|
+
export type IdentitiesCursorIDPage = CursorIDPage<Identity>;
|
|
34
|
+
/**
|
|
35
|
+
* A verified sender identity (email address or domain) for sending emails
|
|
36
|
+
*/
|
|
37
|
+
export interface Identity {
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for the identity
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* Timestamp when the identity was created
|
|
44
|
+
*/
|
|
45
|
+
created_at: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether a custom MAIL FROM domain is enabled for SPF alignment
|
|
48
|
+
*/
|
|
49
|
+
mail_from_enabled: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The verification status of the identity
|
|
52
|
+
*/
|
|
53
|
+
status: 'pending' | 'verified' | 'failed';
|
|
54
|
+
/**
|
|
55
|
+
* The type of identity: 'email' for a single email address, 'domain' for an entire
|
|
56
|
+
* domain
|
|
57
|
+
*/
|
|
58
|
+
type: 'email' | 'domain';
|
|
59
|
+
/**
|
|
60
|
+
* The email address or domain name
|
|
61
|
+
*/
|
|
62
|
+
value: string;
|
|
63
|
+
/**
|
|
64
|
+
* The subdomain prefix used for the custom MAIL FROM domain (e.g. 'mail' for
|
|
65
|
+
* mail.yourdomain.com)
|
|
66
|
+
*/
|
|
67
|
+
mail_from_subdomain?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* DNS records required for verification (only present for domain identities)
|
|
70
|
+
*/
|
|
71
|
+
verification_records?: Array<Identity.VerificationRecord> | null;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace Identity {
|
|
74
|
+
/**
|
|
75
|
+
* A DNS record required for domain verification
|
|
76
|
+
*/
|
|
77
|
+
interface VerificationRecord {
|
|
78
|
+
/**
|
|
79
|
+
* The DNS record name/host
|
|
80
|
+
*/
|
|
81
|
+
name: string;
|
|
82
|
+
/**
|
|
83
|
+
* Verification status of this individual record
|
|
84
|
+
*/
|
|
85
|
+
status: 'pending' | 'verified' | 'failed';
|
|
86
|
+
/**
|
|
87
|
+
* The DNS record type
|
|
88
|
+
*/
|
|
89
|
+
type: 'TXT' | 'CNAME' | 'MX';
|
|
90
|
+
/**
|
|
91
|
+
* The DNS record value
|
|
92
|
+
*/
|
|
93
|
+
value: string;
|
|
94
|
+
/**
|
|
95
|
+
* The DNS record priority (for MX records)
|
|
96
|
+
*/
|
|
97
|
+
priority?: number;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export type IdentityCreateParams = IdentityCreateParams.Variant0 | IdentityCreateParams.Variant1;
|
|
101
|
+
export declare namespace IdentityCreateParams {
|
|
102
|
+
interface Variant0 {
|
|
103
|
+
/**
|
|
104
|
+
* Create an email address identity
|
|
105
|
+
*/
|
|
106
|
+
type: 'email';
|
|
107
|
+
/**
|
|
108
|
+
* The email address to verify
|
|
109
|
+
*/
|
|
110
|
+
value: string;
|
|
111
|
+
}
|
|
112
|
+
interface Variant1 {
|
|
113
|
+
/**
|
|
114
|
+
* Create a domain identity
|
|
115
|
+
*/
|
|
116
|
+
type: 'domain';
|
|
117
|
+
/**
|
|
118
|
+
* The domain name to verify
|
|
119
|
+
*/
|
|
120
|
+
value: string;
|
|
121
|
+
/**
|
|
122
|
+
* Enable a custom MAIL FROM domain for SPF alignment. When enabled, additional DNS
|
|
123
|
+
* records are required.
|
|
124
|
+
*/
|
|
125
|
+
mail_from_enabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The subdomain prefix for the custom MAIL FROM domain (e.g. 'mail' for
|
|
128
|
+
* mail.yourdomain.com). Defaults to 'mail'.
|
|
129
|
+
*/
|
|
130
|
+
mail_from_subdomain?: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export interface IdentityListParams extends CursorIDPageParams {
|
|
134
|
+
}
|
|
135
|
+
export interface IdentityVerifyParams {
|
|
136
|
+
/**
|
|
137
|
+
* If true and the identity is an unverified email address, resend the verification
|
|
138
|
+
* email.
|
|
139
|
+
*/
|
|
140
|
+
resend?: boolean;
|
|
141
|
+
}
|
|
142
|
+
export declare namespace Identities {
|
|
143
|
+
export { type Identity as Identity, type IdentitiesCursorIDPage as IdentitiesCursorIDPage, type IdentityCreateParams as IdentityCreateParams, type IdentityListParams as IdentityListParams, type IdentityVerifyParams as IdentityVerifyParams, };
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=identities.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identities.d.mts","sourceRoot":"","sources":["../../src/resources/email/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIlF;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,QAAQ,CAAC;IAIhD;;;OAGG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOtE;;;OAGG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIvE;;;OAGG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAA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KACf;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;QAEf;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAE5B;;;WAGG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CACF;AAED,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;CAAG;AAEjE,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Identities extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new sender identity for email verification. For email identities, a
|
|
8
|
+
* verification email is sent. For domain identities, DNS records are returned that
|
|
9
|
+
* must be configured to verify ownership.
|
|
10
|
+
*/
|
|
11
|
+
create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a paginated list of sender identities (email addresses and domains)
|
|
14
|
+
* configured for this website.
|
|
15
|
+
*/
|
|
16
|
+
list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesCursorIDPage, Identity>;
|
|
17
|
+
/**
|
|
18
|
+
* Permanently deletes a sender identity. Emails can no longer be sent from this
|
|
19
|
+
* address or domain after deletion.
|
|
20
|
+
*/
|
|
21
|
+
delete(identityID: string, options?: RequestOptions): APIPromise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a sender identity by ID. Returns the identity with its current
|
|
24
|
+
* verification status and any required DNS records.
|
|
25
|
+
*/
|
|
26
|
+
get(identityID: string, options?: RequestOptions): APIPromise<Identity>;
|
|
27
|
+
/**
|
|
28
|
+
* Triggers a manual recheck of the identity's verification status against AWS SES.
|
|
29
|
+
* Returns the identity with its updated status.
|
|
30
|
+
*/
|
|
31
|
+
verify(identityID: string, body: IdentityVerifyParams, options?: RequestOptions): APIPromise<Identity>;
|
|
32
|
+
}
|
|
33
|
+
export type IdentitiesCursorIDPage = CursorIDPage<Identity>;
|
|
34
|
+
/**
|
|
35
|
+
* A verified sender identity (email address or domain) for sending emails
|
|
36
|
+
*/
|
|
37
|
+
export interface Identity {
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for the identity
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* Timestamp when the identity was created
|
|
44
|
+
*/
|
|
45
|
+
created_at: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether a custom MAIL FROM domain is enabled for SPF alignment
|
|
48
|
+
*/
|
|
49
|
+
mail_from_enabled: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The verification status of the identity
|
|
52
|
+
*/
|
|
53
|
+
status: 'pending' | 'verified' | 'failed';
|
|
54
|
+
/**
|
|
55
|
+
* The type of identity: 'email' for a single email address, 'domain' for an entire
|
|
56
|
+
* domain
|
|
57
|
+
*/
|
|
58
|
+
type: 'email' | 'domain';
|
|
59
|
+
/**
|
|
60
|
+
* The email address or domain name
|
|
61
|
+
*/
|
|
62
|
+
value: string;
|
|
63
|
+
/**
|
|
64
|
+
* The subdomain prefix used for the custom MAIL FROM domain (e.g. 'mail' for
|
|
65
|
+
* mail.yourdomain.com)
|
|
66
|
+
*/
|
|
67
|
+
mail_from_subdomain?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* DNS records required for verification (only present for domain identities)
|
|
70
|
+
*/
|
|
71
|
+
verification_records?: Array<Identity.VerificationRecord> | null;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace Identity {
|
|
74
|
+
/**
|
|
75
|
+
* A DNS record required for domain verification
|
|
76
|
+
*/
|
|
77
|
+
interface VerificationRecord {
|
|
78
|
+
/**
|
|
79
|
+
* The DNS record name/host
|
|
80
|
+
*/
|
|
81
|
+
name: string;
|
|
82
|
+
/**
|
|
83
|
+
* Verification status of this individual record
|
|
84
|
+
*/
|
|
85
|
+
status: 'pending' | 'verified' | 'failed';
|
|
86
|
+
/**
|
|
87
|
+
* The DNS record type
|
|
88
|
+
*/
|
|
89
|
+
type: 'TXT' | 'CNAME' | 'MX';
|
|
90
|
+
/**
|
|
91
|
+
* The DNS record value
|
|
92
|
+
*/
|
|
93
|
+
value: string;
|
|
94
|
+
/**
|
|
95
|
+
* The DNS record priority (for MX records)
|
|
96
|
+
*/
|
|
97
|
+
priority?: number;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export type IdentityCreateParams = IdentityCreateParams.Variant0 | IdentityCreateParams.Variant1;
|
|
101
|
+
export declare namespace IdentityCreateParams {
|
|
102
|
+
interface Variant0 {
|
|
103
|
+
/**
|
|
104
|
+
* Create an email address identity
|
|
105
|
+
*/
|
|
106
|
+
type: 'email';
|
|
107
|
+
/**
|
|
108
|
+
* The email address to verify
|
|
109
|
+
*/
|
|
110
|
+
value: string;
|
|
111
|
+
}
|
|
112
|
+
interface Variant1 {
|
|
113
|
+
/**
|
|
114
|
+
* Create a domain identity
|
|
115
|
+
*/
|
|
116
|
+
type: 'domain';
|
|
117
|
+
/**
|
|
118
|
+
* The domain name to verify
|
|
119
|
+
*/
|
|
120
|
+
value: string;
|
|
121
|
+
/**
|
|
122
|
+
* Enable a custom MAIL FROM domain for SPF alignment. When enabled, additional DNS
|
|
123
|
+
* records are required.
|
|
124
|
+
*/
|
|
125
|
+
mail_from_enabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The subdomain prefix for the custom MAIL FROM domain (e.g. 'mail' for
|
|
128
|
+
* mail.yourdomain.com). Defaults to 'mail'.
|
|
129
|
+
*/
|
|
130
|
+
mail_from_subdomain?: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export interface IdentityListParams extends CursorIDPageParams {
|
|
134
|
+
}
|
|
135
|
+
export interface IdentityVerifyParams {
|
|
136
|
+
/**
|
|
137
|
+
* If true and the identity is an unverified email address, resend the verification
|
|
138
|
+
* email.
|
|
139
|
+
*/
|
|
140
|
+
resend?: boolean;
|
|
141
|
+
}
|
|
142
|
+
export declare namespace Identities {
|
|
143
|
+
export { type Identity as Identity, type IdentitiesCursorIDPage as IdentitiesCursorIDPage, type IdentityCreateParams as IdentityCreateParams, type IdentityListParams as IdentityListParams, type IdentityVerifyParams as IdentityVerifyParams, };
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=identities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identities.d.ts","sourceRoot":"","sources":["../../src/resources/email/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIlF;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,QAAQ,CAAC;IAIhD;;;OAGG;IACH,MAAM,C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CAAC;KACnB;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,QAAQ,GAAG,oBAAoB,CAAC,QAAQ,CAAC;AAEjG,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,UAAiB,QAAQ;QACvB;;WAEG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;QAEf;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAE5B;;;WAGG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CACF;AAED,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;CAAG;AAEjE,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Identities = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
class Identities extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new sender identity for email verification. For email identities, a
|
|
12
|
+
* verification email is sent. For domain identities, DNS records are returned that
|
|
13
|
+
* must be configured to verify ownership.
|
|
14
|
+
*/
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this._client.post('/v1/email/identities', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a paginated list of sender identities (email addresses and domains)
|
|
20
|
+
* configured for this website.
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.getAPIList('/v1/email/identities', (pagination_1.CursorIDPage), { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Permanently deletes a sender identity. Emails can no longer be sent from this
|
|
27
|
+
* address or domain after deletion.
|
|
28
|
+
*/
|
|
29
|
+
delete(identityID, options) {
|
|
30
|
+
return this._client.delete((0, path_1.path) `/v1/email/identities/${identityID}`, {
|
|
31
|
+
...options,
|
|
32
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves a sender identity by ID. Returns the identity with its current
|
|
37
|
+
* verification status and any required DNS records.
|
|
38
|
+
*/
|
|
39
|
+
get(identityID, options) {
|
|
40
|
+
return this._client.get((0, path_1.path) `/v1/email/identities/${identityID}`, options);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Triggers a manual recheck of the identity's verification status against AWS SES.
|
|
44
|
+
* Returns the identity with its updated status.
|
|
45
|
+
*/
|
|
46
|
+
verify(identityID, body, options) {
|
|
47
|
+
return this._client.post((0, path_1.path) `/v1/email/identities/${identityID}/verify`, { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.Identities = Identities;
|
|
51
|
+
//# sourceMappingURL=identities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identities.js","sourceRoot":"","sources":["../../src/resources/email/identities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@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorIDPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
export class Identities extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new sender identity for email verification. For email identities, a
|
|
9
|
+
* verification email is sent. For domain identities, DNS records are returned that
|
|
10
|
+
* must be configured to verify ownership.
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this._client.post('/v1/email/identities', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves a paginated list of sender identities (email addresses and domains)
|
|
17
|
+
* configured for this website.
|
|
18
|
+
*/
|
|
19
|
+
list(query = {}, options) {
|
|
20
|
+
return this._client.getAPIList('/v1/email/identities', (CursorIDPage), { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Permanently deletes a sender identity. Emails can no longer be sent from this
|
|
24
|
+
* address or domain after deletion.
|
|
25
|
+
*/
|
|
26
|
+
delete(identityID, options) {
|
|
27
|
+
return this._client.delete(path `/v1/email/identities/${identityID}`, {
|
|
28
|
+
...options,
|
|
29
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves a sender identity by ID. Returns the identity with its current
|
|
34
|
+
* verification status and any required DNS records.
|
|
35
|
+
*/
|
|
36
|
+
get(identityID, options) {
|
|
37
|
+
return this._client.get(path `/v1/email/identities/${identityID}`, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Triggers a manual recheck of the identity's verification status against AWS SES.
|
|
41
|
+
* Returns the identity with its updated status.
|
|
42
|
+
*/
|
|
43
|
+
verify(identityID, body, options) {
|
|
44
|
+
return this._client.post(path `/v1/email/identities/${identityID}/verify`, { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=identities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identities.mjs","sourceRoot":"","sources":["../../src/resources/email/identities.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAwC;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,YAAsB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,UAAU,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,UAAkB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,UAAkB,EAAE,IAA0B,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,UAAU,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EmailResource, type Attachment, type Email, type EmailGetResponse, type EmailSendResponse, type EmailListParams, type EmailSendParams, type EmailsCursorIDPage, } from "./email.mjs";
|
|
2
|
+
export { Identities, type Identity, type IdentityCreateParams, type IdentityListParams, type IdentityVerifyParams, type IdentitiesCursorIDPage, } from "./identities.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/email/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB;OACM,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EmailResource, type Attachment, type Email, type EmailGetResponse, type EmailSendResponse, type EmailListParams, type EmailSendParams, type EmailsCursorIDPage, } from "./email.js";
|
|
2
|
+
export { Identities, type Identity, type IdentityCreateParams, type IdentityListParams, type IdentityVerifyParams, type IdentitiesCursorIDPage, } from "./identities.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/email/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB;OACM,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Identities = exports.EmailResource = void 0;
|
|
5
|
+
var email_1 = require("./email.js");
|
|
6
|
+
Object.defineProperty(exports, "EmailResource", { enumerable: true, get: function () { return email_1.EmailResource; } });
|
|
7
|
+
var identities_1 = require("./identities.js");
|
|
8
|
+
Object.defineProperty(exports, "Identities", { enumerable: true, get: function () { return identities_1.Identities; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/email/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCASiB;AARf,sGAAA,aAAa,OAAA;AASf,8CAOsB;AANpB,wGAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/email/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAQd;OACM,EACL,UAAU,GAMX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.mts","sourceRoot":"","sources":["../src/resources/email.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../src/resources/email.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./email/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=email.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.js","sourceRoot":"","sources":["../src/resources/email.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.mjs","sourceRoot":"","sources":["../src/resources/email.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Commerce, type Currency, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce/commerce.mjs";
|
|
2
2
|
export { Content } from "./content/content.mjs";
|
|
3
3
|
export { Domains, type Domain, type DomainListParams, type DomainsCursorIDPage } from "./domains.mjs";
|
|
4
|
+
export { EmailResource, type Attachment, type Email, type EmailGetResponse, type EmailSendResponse, type EmailListParams, type EmailSendParams, type EmailsCursorIDPage, } from "./email/email.mjs";
|
|
4
5
|
export { Files, type File, type Upload, type FileListParams, type FilesCursorIDPage } from "./files.mjs";
|
|
5
6
|
export { PushNotifications, type PushNotificationEnableResponse, type PushNotificationIdentifyResponse, type PushNotificationSendResponse, type PushNotificationSubscribeResponse, type PushNotificationUnsubscribeResponse, type PushNotificationIdentifyParams, type PushNotificationSendParams, type PushNotificationSubscribeParams, type PushNotificationUnsubscribeParams, } from "./push-notifications/push-notifications.mjs";
|
|
6
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE;OACzE,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE;OAC9E,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE;OACzE,EACL,aAAa,EACb,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB;OACM,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE;OAC9E,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Commerce, type Currency, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce/commerce.js";
|
|
2
2
|
export { Content } from "./content/content.js";
|
|
3
3
|
export { Domains, type Domain, type DomainListParams, type DomainsCursorIDPage } from "./domains.js";
|
|
4
|
+
export { EmailResource, type Attachment, type Email, type EmailGetResponse, type EmailSendResponse, type EmailListParams, type EmailSendParams, type EmailsCursorIDPage, } from "./email/email.js";
|
|
4
5
|
export { Files, type File, type Upload, type FileListParams, type FilesCursorIDPage } from "./files.js";
|
|
5
6
|
export { PushNotifications, type PushNotificationEnableResponse, type PushNotificationIdentifyResponse, type PushNotificationSendResponse, type PushNotificationSubscribeResponse, type PushNotificationUnsubscribeResponse, type PushNotificationIdentifyParams, type PushNotificationSendParams, type PushNotificationSubscribeParams, type PushNotificationUnsubscribeParams, } from "./push-notifications/push-notifications.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE;OACzE,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE;OAC9E,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE;OACzE,EACL,aAAa,EACb,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB;OACM,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE;OAC9E,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
|
package/resources/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.PushNotifications = exports.Files = exports.Domains = exports.Content = exports.Commerce = void 0;
|
|
4
|
+
exports.PushNotifications = exports.Files = exports.EmailResource = exports.Domains = exports.Content = exports.Commerce = void 0;
|
|
5
5
|
var commerce_1 = require("./commerce/commerce.js");
|
|
6
6
|
Object.defineProperty(exports, "Commerce", { enumerable: true, get: function () { return commerce_1.Commerce; } });
|
|
7
7
|
var content_1 = require("./content/content.js");
|
|
8
8
|
Object.defineProperty(exports, "Content", { enumerable: true, get: function () { return content_1.Content; } });
|
|
9
9
|
var domains_1 = require("./domains.js");
|
|
10
10
|
Object.defineProperty(exports, "Domains", { enumerable: true, get: function () { return domains_1.Domains; } });
|
|
11
|
+
var email_1 = require("./email/email.js");
|
|
12
|
+
Object.defineProperty(exports, "EmailResource", { enumerable: true, get: function () { return email_1.EmailResource; } });
|
|
11
13
|
var files_1 = require("./files.js");
|
|
12
14
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
13
15
|
var push_notifications_1 = require("./push-notifications/push-notifications.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,wCAAkG;AAAzF,kGAAA,OAAO,OAAA;AAChB,oCAAqG;AAA5F,8FAAA,KAAK,OAAA;AACd,iFAWiD;AAV/C,uHAAA,iBAAiB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,wCAAkG;AAAzF,kGAAA,OAAO,OAAA;AAChB,0CASuB;AARrB,sGAAA,aAAa,OAAA;AASf,oCAAqG;AAA5F,8FAAA,KAAK,OAAA;AACd,iFAWiD;AAV/C,uHAAA,iBAAiB,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export { Commerce, } from "./commerce/commerce.mjs";
|
|
3
3
|
export { Content } from "./content/content.mjs";
|
|
4
4
|
export { Domains } from "./domains.mjs";
|
|
5
|
+
export { EmailResource, } from "./email/email.mjs";
|
|
5
6
|
export { Files } from "./files.mjs";
|
|
6
7
|
export { PushNotifications, } from "./push-notifications/push-notifications.mjs";
|
|
7
8
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAQT;OACM,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAgE;OACzE,EAAE,KAAK,EAAuE;OAC9E,EACL,iBAAiB,GAUlB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAQT;OACM,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAgE;OACzE,EACL,aAAa,GAQd;OACM,EAAE,KAAK,EAAuE;OAC9E,EACL,iBAAiB,GAUlB"}
|