samva 0.34.0 → 0.36.0
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/AGENTS.md +17 -0
- package/README.md +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +51 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1467 -143
- package/dist/effect/generated/campaigns.js +84 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +501 -108
- package/dist/effect/generated/conversations.js +106 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -8
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, } from "./generated/shared";
|
|
2
2
|
export declare const list: ((input?: {
|
|
3
3
|
readonly limit?: number | null | undefined;
|
|
4
|
-
readonly cursor?: string |
|
|
5
|
-
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" |
|
|
6
|
-
readonly channel?: "email" |
|
|
7
|
-
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" |
|
|
8
|
-
readonly search?: string |
|
|
9
|
-
readonly projectId?: string |
|
|
10
|
-
readonly namespaceId?: string |
|
|
4
|
+
readonly cursor?: string | undefined;
|
|
5
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | undefined;
|
|
6
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
7
|
+
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | undefined;
|
|
8
|
+
readonly search?: string | undefined;
|
|
9
|
+
readonly projectId?: string | undefined;
|
|
10
|
+
readonly namespaceId?: string | undefined;
|
|
11
11
|
readonly shared?: boolean | null | undefined;
|
|
12
12
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesList">) & {
|
|
13
13
|
readonly pages: (input?: {
|
|
14
14
|
readonly limit?: number | null | undefined;
|
|
15
|
-
readonly cursor?: string |
|
|
16
|
-
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" |
|
|
17
|
-
readonly channel?: "email" |
|
|
18
|
-
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" |
|
|
19
|
-
readonly search?: string |
|
|
20
|
-
readonly projectId?: string |
|
|
21
|
-
readonly namespaceId?: string |
|
|
15
|
+
readonly cursor?: string | undefined;
|
|
16
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | undefined;
|
|
17
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
18
|
+
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | undefined;
|
|
19
|
+
readonly search?: string | undefined;
|
|
20
|
+
readonly projectId?: string | undefined;
|
|
21
|
+
readonly namespaceId?: string | undefined;
|
|
22
22
|
readonly shared?: boolean | null | undefined;
|
|
23
23
|
} | undefined) => import("effect/Stream").Stream<{
|
|
24
24
|
readonly items: readonly {
|
|
25
25
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
26
26
|
readonly slug: string;
|
|
27
27
|
readonly name: string;
|
|
28
|
-
readonly channel: "email";
|
|
28
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
29
29
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
30
30
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
31
31
|
readonly shared: boolean;
|
|
32
32
|
readonly entryPath: string;
|
|
33
33
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
34
|
-
readonly isActive: boolean;
|
|
35
34
|
readonly publishedAt: string | null;
|
|
36
35
|
readonly brand: {
|
|
37
36
|
readonly slug: string;
|
|
@@ -48,28 +47,27 @@ export declare const list: ((input?: {
|
|
|
48
47
|
readonly updatedAt: string;
|
|
49
48
|
}[];
|
|
50
49
|
readonly nextCursor: string | null;
|
|
51
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
50
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
52
51
|
readonly items: (input?: {
|
|
53
52
|
readonly limit?: number | null | undefined;
|
|
54
|
-
readonly cursor?: string |
|
|
55
|
-
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" |
|
|
56
|
-
readonly channel?: "email" |
|
|
57
|
-
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" |
|
|
58
|
-
readonly search?: string |
|
|
59
|
-
readonly projectId?: string |
|
|
60
|
-
readonly namespaceId?: string |
|
|
53
|
+
readonly cursor?: string | undefined;
|
|
54
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | undefined;
|
|
55
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
56
|
+
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | undefined;
|
|
57
|
+
readonly search?: string | undefined;
|
|
58
|
+
readonly projectId?: string | undefined;
|
|
59
|
+
readonly namespaceId?: string | undefined;
|
|
61
60
|
readonly shared?: boolean | null | undefined;
|
|
62
61
|
} | undefined) => import("effect/Stream").Stream<{
|
|
63
62
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
64
63
|
readonly slug: string;
|
|
65
64
|
readonly name: string;
|
|
66
|
-
readonly channel: "email";
|
|
65
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
67
66
|
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
68
67
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
69
68
|
readonly shared: boolean;
|
|
70
69
|
readonly entryPath: string;
|
|
71
70
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
72
|
-
readonly isActive: boolean;
|
|
73
71
|
readonly publishedAt: string | null;
|
|
74
72
|
readonly brand: {
|
|
75
73
|
readonly slug: string;
|
|
@@ -84,7 +82,7 @@ export declare const list: ((input?: {
|
|
|
84
82
|
readonly lastUsedAt: string | null;
|
|
85
83
|
readonly createdAt: string;
|
|
86
84
|
readonly updatedAt: string;
|
|
87
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
85
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
88
86
|
};
|
|
89
87
|
export declare const create: (input: {
|
|
90
88
|
readonly name: string;
|
|
@@ -94,7 +92,6 @@ export declare const create: (input: {
|
|
|
94
92
|
readonly useBrand?: boolean | null | undefined;
|
|
95
93
|
readonly description?: string | null | undefined;
|
|
96
94
|
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
97
|
-
readonly isActive?: boolean | null | undefined;
|
|
98
95
|
readonly namespaceId?: string | null | undefined;
|
|
99
96
|
readonly shared?: boolean | null | undefined;
|
|
100
97
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreate">;
|
|
@@ -113,11 +110,11 @@ export declare const addEntry: (input: {
|
|
|
113
110
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAddEntry">;
|
|
114
111
|
export declare const listFamilies: ((input?: {
|
|
115
112
|
readonly limit?: number | null | undefined;
|
|
116
|
-
readonly cursor?: string |
|
|
113
|
+
readonly cursor?: string | undefined;
|
|
117
114
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesListFamilies">) & {
|
|
118
115
|
readonly pages: (input?: {
|
|
119
116
|
readonly limit?: number | null | undefined;
|
|
120
|
-
readonly cursor?: string |
|
|
117
|
+
readonly cursor?: string | undefined;
|
|
121
118
|
} | undefined) => import("effect/Stream").Stream<{
|
|
122
119
|
readonly items: readonly {
|
|
123
120
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
@@ -126,9 +123,8 @@ export declare const listFamilies: ((input?: {
|
|
|
126
123
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
127
124
|
readonly name: string;
|
|
128
125
|
readonly slug: string;
|
|
129
|
-
readonly channel: "email";
|
|
126
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
130
127
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
131
|
-
readonly isActive: boolean;
|
|
132
128
|
readonly createdAt: string;
|
|
133
129
|
readonly updatedAt: string;
|
|
134
130
|
}[];
|
|
@@ -136,10 +132,10 @@ export declare const listFamilies: ((input?: {
|
|
|
136
132
|
readonly updatedAt: string;
|
|
137
133
|
}[];
|
|
138
134
|
readonly nextCursor: string | null;
|
|
139
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
135
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
140
136
|
readonly items: (input?: {
|
|
141
137
|
readonly limit?: number | null | undefined;
|
|
142
|
-
readonly cursor?: string |
|
|
138
|
+
readonly cursor?: string | undefined;
|
|
143
139
|
} | undefined) => import("effect/Stream").Stream<{
|
|
144
140
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
145
141
|
readonly name: string;
|
|
@@ -147,15 +143,14 @@ export declare const listFamilies: ((input?: {
|
|
|
147
143
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
148
144
|
readonly name: string;
|
|
149
145
|
readonly slug: string;
|
|
150
|
-
readonly channel: "email";
|
|
146
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
151
147
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
152
|
-
readonly isActive: boolean;
|
|
153
148
|
readonly createdAt: string;
|
|
154
149
|
readonly updatedAt: string;
|
|
155
150
|
}[];
|
|
156
151
|
readonly createdAt: string;
|
|
157
152
|
readonly updatedAt: string;
|
|
158
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
153
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
159
154
|
};
|
|
160
155
|
export declare const createFamily: (input: {
|
|
161
156
|
readonly name: string;
|
|
@@ -185,9 +180,13 @@ export declare const detachFamilyMember: (input: {
|
|
|
185
180
|
export declare const getById: (input: {
|
|
186
181
|
readonly id: string;
|
|
187
182
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetById">;
|
|
188
|
-
|
|
183
|
+
declare const deleteTemplate: (input: {
|
|
184
|
+
readonly id: string;
|
|
185
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDelete">;
|
|
186
|
+
export { deleteTemplate as delete };
|
|
187
|
+
export declare const deleteProject: (input: {
|
|
189
188
|
readonly id: string;
|
|
190
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"
|
|
189
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteProject">;
|
|
191
190
|
export declare const update: (input: {
|
|
192
191
|
readonly id: string;
|
|
193
192
|
readonly data: {
|
|
@@ -205,7 +204,6 @@ export declare const update: (input: {
|
|
|
205
204
|
readonly opens?: boolean | null | undefined;
|
|
206
205
|
readonly clicks?: boolean | null | undefined;
|
|
207
206
|
} | null | undefined;
|
|
208
|
-
readonly isActive?: boolean | null | undefined;
|
|
209
207
|
readonly shared?: boolean | null | undefined;
|
|
210
208
|
};
|
|
211
209
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesUpdate">;
|
|
@@ -328,12 +326,12 @@ export declare const renderPublication: (input: {
|
|
|
328
326
|
export declare const listInputContracts: ((input: {
|
|
329
327
|
readonly id: string;
|
|
330
328
|
readonly limit?: number | null | undefined;
|
|
331
|
-
readonly cursor?: string |
|
|
329
|
+
readonly cursor?: string | undefined;
|
|
332
330
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesListInputContracts">) & {
|
|
333
331
|
readonly pages: (input: {
|
|
334
332
|
readonly id: string;
|
|
335
333
|
readonly limit?: number | null | undefined;
|
|
336
|
-
readonly cursor?: string |
|
|
334
|
+
readonly cursor?: string | undefined;
|
|
337
335
|
}) => import("effect/Stream").Stream<{
|
|
338
336
|
readonly items: readonly {
|
|
339
337
|
readonly id: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
@@ -347,11 +345,11 @@ export declare const listInputContracts: ((input: {
|
|
|
347
345
|
readonly createdAt: string;
|
|
348
346
|
}[];
|
|
349
347
|
readonly nextCursor: string | null;
|
|
350
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
348
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
351
349
|
readonly items: (input: {
|
|
352
350
|
readonly id: string;
|
|
353
351
|
readonly limit?: number | null | undefined;
|
|
354
|
-
readonly cursor?: string |
|
|
352
|
+
readonly cursor?: string | undefined;
|
|
355
353
|
}) => import("effect/Stream").Stream<{
|
|
356
354
|
readonly id: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
357
355
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
@@ -362,7 +360,7 @@ export declare const listInputContracts: ((input: {
|
|
|
362
360
|
readonly [x: string]: import("./generated").JsonValue;
|
|
363
361
|
};
|
|
364
362
|
readonly createdAt: string;
|
|
365
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
363
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
366
364
|
};
|
|
367
365
|
export declare const getInputContract: (input: {
|
|
368
366
|
readonly id: string;
|
package/dist/effect/templates.js
CHANGED
|
@@ -14,7 +14,9 @@ var templates_exports = /* @__PURE__ */ __exportAll({
|
|
|
14
14
|
createFamily: () => createFamily,
|
|
15
15
|
createFamilyFromTemplate: () => createFamilyFromTemplate,
|
|
16
16
|
createFromWebsite: () => createFromWebsite,
|
|
17
|
+
delete: () => deleteTemplate,
|
|
17
18
|
deleteFamily: () => deleteFamily,
|
|
19
|
+
deleteProject: () => deleteProject,
|
|
18
20
|
detachFamilyMember: () => detachFamilyMember,
|
|
19
21
|
diffWorkspace: () => diffWorkspace,
|
|
20
22
|
getById: () => getById,
|
|
@@ -30,7 +32,6 @@ var templates_exports = /* @__PURE__ */ __exportAll({
|
|
|
30
32
|
patchWorkspace: () => patchWorkspace,
|
|
31
33
|
publish: () => publish,
|
|
32
34
|
putWorkspaceAsset: () => putWorkspaceAsset,
|
|
33
|
-
remove: () => remove,
|
|
34
35
|
removeWorkspaceResource: () => removeWorkspaceResource,
|
|
35
36
|
renameFamily: () => renameFamily,
|
|
36
37
|
renderPublication: () => renderPublication,
|
|
@@ -55,7 +56,8 @@ const createFamilyFromTemplate = /* @__PURE__ */ make("templatesCreateFamilyFrom
|
|
|
55
56
|
const attachFamilyMember = /* @__PURE__ */ make("templatesAttachFamilyMember");
|
|
56
57
|
const detachFamilyMember = /* @__PURE__ */ make("templatesDetachFamilyMember");
|
|
57
58
|
const getById = /* @__PURE__ */ make("templatesGetById");
|
|
58
|
-
const
|
|
59
|
+
const deleteTemplate = /* @__PURE__ */ make("templatesDelete");
|
|
60
|
+
const deleteProject = /* @__PURE__ */ make("templatesDeleteProject");
|
|
59
61
|
const update = /* @__PURE__ */ make("templatesUpdate");
|
|
60
62
|
const openWorkspace = /* @__PURE__ */ make("templatesOpenWorkspace");
|
|
61
63
|
const getGitRepository = /* @__PURE__ */ make("templatesGetGitRepository");
|
|
@@ -76,6 +78,6 @@ const listInputContracts = /* @__PURE__ */ make("templatesListInputContracts");
|
|
|
76
78
|
const getInputContract = /* @__PURE__ */ make("templatesGetInputContract");
|
|
77
79
|
const diffWorkspace = /* @__PURE__ */ make("templatesDiffWorkspace");
|
|
78
80
|
const workspaceHistory = /* @__PURE__ */ make("templatesWorkspaceHistory");
|
|
79
|
-
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, createFromWebsite, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset,
|
|
81
|
+
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, createFromWebsite, deleteTemplate as delete, deleteFamily, deleteProject, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, removeWorkspaceResource, renameFamily, renderPublication, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports, update, workspaceHistory };
|
|
80
82
|
|
|
81
83
|
//# sourceMappingURL=templates.js.map
|
package/dist/effect/topics.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const list: (input?: {
|
|
2
|
-
readonly namespaceId?: string |
|
|
2
|
+
readonly namespaceId?: string | undefined;
|
|
3
3
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsList">;
|
|
4
4
|
export declare const get: (input: {
|
|
5
5
|
readonly id: string;
|
|
@@ -31,20 +31,20 @@ export declare const setDefault: (input: {
|
|
|
31
31
|
export declare const listSubscriptions: ((input: {
|
|
32
32
|
readonly id: string;
|
|
33
33
|
readonly limit?: number | null | undefined;
|
|
34
|
-
readonly cursor?: string |
|
|
35
|
-
readonly channel?: "email" |
|
|
36
|
-
readonly status?: "subscribed" | "unsubscribed" |
|
|
34
|
+
readonly cursor?: string | undefined;
|
|
35
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
36
|
+
readonly status?: "subscribed" | "unsubscribed" | undefined;
|
|
37
37
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsListSubscriptions">) & {
|
|
38
38
|
readonly pages: (input: {
|
|
39
39
|
readonly id: string;
|
|
40
40
|
readonly limit?: number | null | undefined;
|
|
41
|
-
readonly cursor?: string |
|
|
42
|
-
readonly channel?: "email" |
|
|
43
|
-
readonly status?: "subscribed" | "unsubscribed" |
|
|
41
|
+
readonly cursor?: string | undefined;
|
|
42
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
43
|
+
readonly status?: "subscribed" | "unsubscribed" | undefined;
|
|
44
44
|
}) => import("effect/Stream").Stream<{
|
|
45
45
|
readonly items: readonly {
|
|
46
46
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
47
|
-
readonly channel: "email";
|
|
47
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
48
48
|
readonly status: "subscribed" | "unsubscribed";
|
|
49
49
|
readonly source: string;
|
|
50
50
|
readonly subscribedAt: string | null;
|
|
@@ -53,42 +53,42 @@ export declare const listSubscriptions: ((input: {
|
|
|
53
53
|
readonly updatedAt: string;
|
|
54
54
|
}[];
|
|
55
55
|
readonly nextCursor: string | null;
|
|
56
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
56
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
57
57
|
readonly items: (input: {
|
|
58
58
|
readonly id: string;
|
|
59
59
|
readonly limit?: number | null | undefined;
|
|
60
|
-
readonly cursor?: string |
|
|
61
|
-
readonly channel?: "email" |
|
|
62
|
-
readonly status?: "subscribed" | "unsubscribed" |
|
|
60
|
+
readonly cursor?: string | undefined;
|
|
61
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
62
|
+
readonly status?: "subscribed" | "unsubscribed" | undefined;
|
|
63
63
|
}) => import("effect/Stream").Stream<{
|
|
64
64
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
65
|
-
readonly channel: "email";
|
|
65
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
66
66
|
readonly status: "subscribed" | "unsubscribed";
|
|
67
67
|
readonly source: string;
|
|
68
68
|
readonly subscribedAt: string | null;
|
|
69
69
|
readonly unsubscribedAt: string | null;
|
|
70
70
|
readonly createdAt: string;
|
|
71
71
|
readonly updatedAt: string;
|
|
72
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
72
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
73
73
|
};
|
|
74
74
|
export declare const setSubscriptions: (input: {
|
|
75
75
|
readonly id: string;
|
|
76
76
|
readonly contacts: readonly ({
|
|
77
|
+
readonly contactId: string;
|
|
78
|
+
} | {
|
|
77
79
|
readonly email: string;
|
|
78
80
|
} | {
|
|
79
81
|
readonly phone: string;
|
|
80
|
-
} | {
|
|
81
|
-
readonly contactId: string;
|
|
82
82
|
})[];
|
|
83
|
-
readonly channel: "email";
|
|
83
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
84
84
|
readonly status: "subscribed" | "unsubscribed";
|
|
85
85
|
readonly source?: string | null | undefined;
|
|
86
86
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsSetSubscriptions">;
|
|
87
87
|
export declare const checkSubscription: (input: {
|
|
88
|
-
readonly contactId?: string |
|
|
89
|
-
readonly email?: string |
|
|
90
|
-
readonly phone?: string |
|
|
91
|
-
readonly namespaceId?: string |
|
|
92
|
-
readonly channel: "email";
|
|
93
|
-
readonly topicIds?: string |
|
|
88
|
+
readonly contactId?: string | undefined;
|
|
89
|
+
readonly email?: string | undefined;
|
|
90
|
+
readonly phone?: string | undefined;
|
|
91
|
+
readonly namespaceId?: string | undefined;
|
|
92
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
93
|
+
readonly topicIds?: string | undefined;
|
|
94
94
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsCheckSubscription">;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, } from "./generated/shared";
|
|
2
2
|
export declare const list: ((input?: {
|
|
3
3
|
readonly limit?: number | null | undefined;
|
|
4
|
-
readonly cursor?: string |
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
4
|
+
readonly cursor?: string | undefined;
|
|
5
|
+
readonly namespaceId?: string | undefined;
|
|
6
|
+
readonly search?: string | undefined;
|
|
7
|
+
readonly status?: "active" | "disabled" | undefined;
|
|
7
8
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksList">) & {
|
|
8
9
|
readonly pages: (input?: {
|
|
9
10
|
readonly limit?: number | null | undefined;
|
|
10
|
-
readonly cursor?: string |
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
11
|
+
readonly cursor?: string | undefined;
|
|
12
|
+
readonly namespaceId?: string | undefined;
|
|
13
|
+
readonly search?: string | undefined;
|
|
14
|
+
readonly status?: "active" | "disabled" | undefined;
|
|
13
15
|
} | undefined) => import("effect/Stream").Stream<{
|
|
14
16
|
readonly items: readonly {
|
|
15
17
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
16
18
|
readonly name: string;
|
|
17
19
|
readonly url: string;
|
|
18
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
19
|
-
readonly channels: readonly "email"[] | null;
|
|
20
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
21
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[] | null;
|
|
20
22
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
21
23
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
22
24
|
readonly status: "active" | "disabled";
|
|
@@ -34,18 +36,19 @@ export declare const list: ((input?: {
|
|
|
34
36
|
};
|
|
35
37
|
}[];
|
|
36
38
|
readonly nextCursor: string | null;
|
|
37
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
39
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
38
40
|
readonly items: (input?: {
|
|
39
41
|
readonly limit?: number | null | undefined;
|
|
40
|
-
readonly cursor?: string |
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
42
|
+
readonly cursor?: string | undefined;
|
|
43
|
+
readonly namespaceId?: string | undefined;
|
|
44
|
+
readonly search?: string | undefined;
|
|
45
|
+
readonly status?: "active" | "disabled" | undefined;
|
|
43
46
|
} | undefined) => import("effect/Stream").Stream<{
|
|
44
47
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
45
48
|
readonly name: string;
|
|
46
49
|
readonly url: string;
|
|
47
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
48
|
-
readonly channels: readonly "email"[] | null;
|
|
50
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
51
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[] | null;
|
|
49
52
|
readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
|
|
50
53
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
51
54
|
readonly status: "active" | "disabled";
|
|
@@ -61,13 +64,13 @@ export declare const list: ((input?: {
|
|
|
61
64
|
readonly exhausted: number;
|
|
62
65
|
readonly cancelled: number;
|
|
63
66
|
};
|
|
64
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
67
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
65
68
|
};
|
|
66
69
|
export declare const create: (input: {
|
|
67
70
|
readonly name: string;
|
|
68
71
|
readonly url: string;
|
|
69
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
70
|
-
readonly channels?: readonly "email"[] | null | undefined;
|
|
72
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
73
|
+
readonly channels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
71
74
|
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
72
75
|
readonly namespaceId?: string | null | undefined;
|
|
73
76
|
readonly headers?: {
|
|
@@ -88,8 +91,8 @@ export declare const update: (input: {
|
|
|
88
91
|
readonly id: string;
|
|
89
92
|
readonly name?: string | null | undefined;
|
|
90
93
|
readonly url?: string | null | undefined;
|
|
91
|
-
readonly eventTypes?: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[] | null | undefined;
|
|
92
|
-
readonly channels?: readonly "email"[] | null | undefined;
|
|
94
|
+
readonly eventTypes?: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[] | null | undefined;
|
|
95
|
+
readonly channels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
93
96
|
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
94
97
|
readonly namespaceId?: string | null | undefined;
|
|
95
98
|
readonly headers?: {
|
|
@@ -130,12 +133,12 @@ export declare const test: (input: {
|
|
|
130
133
|
export declare const getLogs: ((input: {
|
|
131
134
|
readonly id: string;
|
|
132
135
|
readonly limit?: number | null | undefined;
|
|
133
|
-
readonly cursor?: string |
|
|
136
|
+
readonly cursor?: string | undefined;
|
|
134
137
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetLogs">) & {
|
|
135
138
|
readonly pages: (input: {
|
|
136
139
|
readonly id: string;
|
|
137
140
|
readonly limit?: number | null | undefined;
|
|
138
|
-
readonly cursor?: string |
|
|
141
|
+
readonly cursor?: string | undefined;
|
|
139
142
|
}) => import("effect/Stream").Stream<{
|
|
140
143
|
readonly items: readonly {
|
|
141
144
|
readonly id: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
|
|
@@ -168,11 +171,11 @@ export declare const getLogs: ((input: {
|
|
|
168
171
|
}[];
|
|
169
172
|
}[];
|
|
170
173
|
readonly nextCursor: string | null;
|
|
171
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
174
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
172
175
|
readonly items: (input: {
|
|
173
176
|
readonly id: string;
|
|
174
177
|
readonly limit?: number | null | undefined;
|
|
175
|
-
readonly cursor?: string |
|
|
178
|
+
readonly cursor?: string | undefined;
|
|
176
179
|
}) => import("effect/Stream").Stream<{
|
|
177
180
|
readonly id: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
|
|
178
181
|
readonly eventId: string & import("effect/Brand").Brand<"WebhookEventId">;
|
|
@@ -202,12 +205,12 @@ export declare const getLogs: ((input: {
|
|
|
202
205
|
readonly errorMessage: string | null;
|
|
203
206
|
readonly createdAt: string;
|
|
204
207
|
}[];
|
|
205
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
208
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
206
209
|
};
|
|
207
210
|
export declare const getStats: (input: {
|
|
208
211
|
readonly id: string;
|
|
209
|
-
readonly after?: string |
|
|
210
|
-
readonly before?: string |
|
|
212
|
+
readonly after?: string | undefined;
|
|
213
|
+
readonly before?: string | undefined;
|
|
211
214
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetStats">;
|
|
212
215
|
export declare const retryDelivery: (input: {
|
|
213
216
|
readonly id: string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError, fromApiError } from "./promises/errors.gen.js";
|
|
1
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError, fromApiError } from "./promises/errors.gen.js";
|
|
2
2
|
import { MediaUploadError } from "./inline-attachments.js";
|
|
3
3
|
import { MailboxEventStream, MailboxEventStreamError } from "./mailbox-events.js";
|
|
4
4
|
import { createClient } from "./promises/client.js";
|
|
5
|
-
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError, createClient, fromApiError };
|
|
5
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError, createClient, fromApiError };
|
package/dist/mailbox/test.js
CHANGED
|
@@ -85,12 +85,18 @@ const fixtures = {
|
|
|
85
85
|
...common,
|
|
86
86
|
action: {
|
|
87
87
|
state: "approvalRequired",
|
|
88
|
+
reviewRound: 1,
|
|
88
89
|
decision: {
|
|
89
|
-
|
|
90
|
+
id: "pdec_0000000000000000",
|
|
91
|
+
reviewRound: 1,
|
|
92
|
+
requirement: "person",
|
|
93
|
+
decider: "person",
|
|
94
|
+
outcome: "hold",
|
|
90
95
|
reason: "Approval required",
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
scopes: [{
|
|
97
|
+
kind: "mailbox",
|
|
98
|
+
id: common.mailboxId
|
|
99
|
+
}]
|
|
94
100
|
},
|
|
95
101
|
id: "mbxact_0000000000000000",
|
|
96
102
|
type: "sendMessage",
|
|
@@ -110,6 +116,7 @@ const fixtures = {
|
|
|
110
116
|
action: {
|
|
111
117
|
id: "mbxact_0000000000000000",
|
|
112
118
|
type: "sendMessage",
|
|
119
|
+
reviewRound: 1,
|
|
113
120
|
threadId: message.threadId,
|
|
114
121
|
proposedBy: actor,
|
|
115
122
|
createdAt: timestamp
|