samva 0.9.0 → 0.11.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/README.md +60 -10
- package/dist/client/sdk.gen.d.ts +1106 -215
- package/dist/client/types.gen.d.ts +11554 -6343
- package/dist/{client-DB7zbTti.js → client-8YXjfsVc.js} +6492 -3068
- package/dist/{client-attribution-vK1yjEdG.js → client-attribution-Ct2FKITg.js} +2 -2
- package/dist/effect/analytics.d.ts +18 -18
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.d.ts +100 -44
- package/dist/effect/api-keys.js +2 -4
- package/dist/effect/attachments.d.ts +5 -6
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +33 -63
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +33 -50
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.d.ts +327 -729
- package/dist/effect/contacts.js +10 -2
- package/dist/effect/conversations.d.ts +579 -1134
- package/dist/effect/conversations.js +14 -2
- package/dist/effect/custom-fields.d.ts +5 -55
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.d.ts +283 -317
- package/dist/effect/email.js +5 -3
- package/dist/effect/extension-installations.d.ts +218 -0
- package/dist/effect/extension-installations.js +25 -0
- package/dist/effect/extensions.d.ts +192 -0
- package/dist/effect/extensions.js +19 -0
- package/dist/effect/feedback.d.ts +12 -0
- package/dist/effect/feedback.js +13 -0
- package/dist/effect/generated.d.ts +31383 -14386
- package/dist/effect/index.d.ts +6 -1
- package/dist/effect/index.js +7 -2
- package/dist/effect/internal/client.d.ts +5 -2
- package/dist/effect/internal/mailbox-events.d.ts +11 -0
- package/dist/effect/internal/operation.d.ts +23 -377
- package/dist/effect/mailboxes.d.ts +1676 -0
- package/dist/effect/mailboxes.js +3 -0
- package/dist/effect/media.d.ts +9 -9
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +173 -940
- package/dist/effect/messages.js +6 -2
- package/dist/effect/namespaces.d.ts +82 -0
- package/dist/effect/namespaces.js +19 -0
- package/dist/effect/operations.d.ts +68 -12
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +8 -7
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/pagination.d.ts +16 -21
- package/dist/effect/scheduled-messages.d.ts +15 -25
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +213 -290
- package/dist/effect/templates.js +2 -2
- package/dist/effect/unsubscribe-groups.d.ts +22 -76
- package/dist/effect/unsubscribe-groups.js +1 -1
- package/dist/effect/webhooks.d.ts +119 -41
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +3 -2
- package/dist/mailbox-events-CcWm8lO4.js +617 -0
- package/dist/mailbox-events.d.ts +175 -0
- package/dist/mailboxes-4gJMAJh4.js +147 -0
- package/dist/{operation-Cdp1EI_1.js → operation-BuyvAsZ1.js} +403 -67
- package/dist/promises/errors.gen.d.ts +5 -0
- package/dist/promises/index.d.ts +23 -1
- package/dist/promises/index.js +3 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-DoEUUjNM.js → promises-CqAmI39P.js} +3242 -556
- package/dist/service-map.d.ts +458 -36
- package/package.json +28 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#endregion
|
|
2
2
|
//#region src/client-attribution.ts
|
|
3
|
-
const SDK_VERSION = "0.
|
|
3
|
+
const SDK_VERSION = "0.11.0";
|
|
4
4
|
const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
|
|
5
5
|
const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { clientAttribution as n, CLIENT_ATTRIBUTION_HEADER as t };
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=client-attribution-
|
|
9
|
+
//# sourceMappingURL=client-attribution-Ct2FKITg.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const getStats: (input?: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
2
|
+
readonly after?: Date | null | undefined;
|
|
3
|
+
readonly before?: Date | null | undefined;
|
|
4
4
|
readonly groupBy?: string | null | undefined;
|
|
5
5
|
readonly channel?: string | null | undefined;
|
|
6
6
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -8,10 +8,10 @@ export declare const getStats: (input?: {
|
|
|
8
8
|
readonly date: string;
|
|
9
9
|
readonly email: number;
|
|
10
10
|
}[];
|
|
11
|
-
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
11
|
+
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
12
12
|
export declare const getChannelStats: (input?: {
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
13
|
+
readonly after?: Date | null | undefined;
|
|
14
|
+
readonly before?: Date | null | undefined;
|
|
15
15
|
} | undefined) => import("effect/Effect").Effect<{
|
|
16
16
|
readonly email: {
|
|
17
17
|
readonly sent: number;
|
|
@@ -24,10 +24,10 @@ export declare const getChannelStats: (input?: {
|
|
|
24
24
|
readonly uniqueMessageClickRate: number;
|
|
25
25
|
readonly bounceRate: number;
|
|
26
26
|
};
|
|
27
|
-
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
27
|
+
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
28
28
|
export declare const getTopContacts: (input?: {
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
29
|
+
readonly after?: Date | null | undefined;
|
|
30
|
+
readonly before?: Date | null | undefined;
|
|
31
31
|
readonly limit?: string | null | undefined;
|
|
32
32
|
readonly sortBy?: string | null | undefined;
|
|
33
33
|
} | undefined) => import("effect/Effect").Effect<readonly {
|
|
@@ -36,31 +36,31 @@ export declare const getTopContacts: (input?: {
|
|
|
36
36
|
readonly email: string | null;
|
|
37
37
|
readonly phone: string | null;
|
|
38
38
|
readonly messageCount: number;
|
|
39
|
-
}[], import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
39
|
+
}[], import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
40
40
|
export declare const getHourlyDistribution: (input?: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
41
|
+
readonly after?: Date | null | undefined;
|
|
42
|
+
readonly before?: Date | null | undefined;
|
|
43
43
|
} | undefined) => import("effect/Effect").Effect<readonly {
|
|
44
44
|
readonly hour: string;
|
|
45
45
|
readonly count: number;
|
|
46
|
-
}[], import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
46
|
+
}[], import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
47
47
|
export declare const getDeliveryMetrics: (input?: {
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
48
|
+
readonly after?: Date | null | undefined;
|
|
49
|
+
readonly before?: Date | null | undefined;
|
|
50
50
|
readonly channel?: string | null | undefined;
|
|
51
51
|
} | undefined) => import("effect/Effect").Effect<{
|
|
52
52
|
readonly deliveredRate: number;
|
|
53
53
|
readonly failedRate: number;
|
|
54
54
|
readonly pendingRate: number;
|
|
55
55
|
readonly avgDeliveryTimeMs: number;
|
|
56
|
-
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
56
|
+
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
57
57
|
export declare const exportData: (input: {
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
58
|
+
readonly after: Date;
|
|
59
|
+
readonly before: Date;
|
|
60
60
|
readonly format?: string | null | undefined;
|
|
61
61
|
readonly includeChannels?: readonly string[] | null | undefined;
|
|
62
62
|
}) => import("effect/Effect").Effect<{
|
|
63
63
|
readonly content: string;
|
|
64
64
|
readonly mimeType: string;
|
|
65
65
|
readonly filename: string;
|
|
66
|
-
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
66
|
+
}, import("./generated").AnalyticsQueryError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
package/dist/effect/analytics.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-BuyvAsZ1.js";
|
|
3
3
|
//#region src/effect/analytics.ts
|
|
4
4
|
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
exportData: () => exportData,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
|
-
readonly page?: string | null | undefined;
|
|
3
2
|
readonly limit?: string | null | undefined;
|
|
3
|
+
readonly cursor?: string | null | undefined;
|
|
4
4
|
readonly status?: string | null | undefined;
|
|
5
5
|
readonly search?: string | null | undefined;
|
|
6
6
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -26,13 +26,18 @@ export declare const list: ((input?: {
|
|
|
26
26
|
readonly contacts?: "read" | "write" | null;
|
|
27
27
|
readonly conversations?: "read" | "write" | null;
|
|
28
28
|
readonly templates?: "read" | "write" | null;
|
|
29
|
-
readonly competitors?: "read" | "write" | null;
|
|
30
29
|
readonly webhooks?: "read" | "write" | null;
|
|
31
30
|
readonly apiKeys?: "read" | "write" | null;
|
|
32
31
|
readonly organization?: "read" | "write" | null;
|
|
33
32
|
readonly billing?: "read" | "write" | null;
|
|
34
33
|
readonly analytics?: "read" | "write" | null;
|
|
35
34
|
};
|
|
35
|
+
readonly mailboxes?: {
|
|
36
|
+
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
37
|
+
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
38
|
+
readonly sendMode?: "approval" | "send" | null;
|
|
39
|
+
} | null;
|
|
40
|
+
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
36
41
|
};
|
|
37
42
|
readonly owner: {
|
|
38
43
|
readonly id: string;
|
|
@@ -40,16 +45,11 @@ export declare const list: ((input?: {
|
|
|
40
45
|
readonly email: string;
|
|
41
46
|
} | null;
|
|
42
47
|
}[];
|
|
43
|
-
readonly
|
|
44
|
-
|
|
45
|
-
readonly limit: number;
|
|
46
|
-
readonly total: number;
|
|
47
|
-
readonly totalPages: number;
|
|
48
|
-
};
|
|
49
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
48
|
+
readonly nextCursor: string | null;
|
|
49
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
|
|
50
50
|
readonly pages: (input?: {
|
|
51
|
-
readonly page?: string | null | undefined;
|
|
52
51
|
readonly limit?: string | null | undefined;
|
|
52
|
+
readonly cursor?: string | null | undefined;
|
|
53
53
|
readonly status?: string | null | undefined;
|
|
54
54
|
readonly search?: string | null | undefined;
|
|
55
55
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -75,13 +75,18 @@ export declare const list: ((input?: {
|
|
|
75
75
|
readonly contacts?: "read" | "write" | null;
|
|
76
76
|
readonly conversations?: "read" | "write" | null;
|
|
77
77
|
readonly templates?: "read" | "write" | null;
|
|
78
|
-
readonly competitors?: "read" | "write" | null;
|
|
79
78
|
readonly webhooks?: "read" | "write" | null;
|
|
80
79
|
readonly apiKeys?: "read" | "write" | null;
|
|
81
80
|
readonly organization?: "read" | "write" | null;
|
|
82
81
|
readonly billing?: "read" | "write" | null;
|
|
83
82
|
readonly analytics?: "read" | "write" | null;
|
|
84
83
|
};
|
|
84
|
+
readonly mailboxes?: {
|
|
85
|
+
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
86
|
+
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
87
|
+
readonly sendMode?: "approval" | "send" | null;
|
|
88
|
+
} | null;
|
|
89
|
+
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
85
90
|
};
|
|
86
91
|
readonly owner: {
|
|
87
92
|
readonly id: string;
|
|
@@ -89,16 +94,11 @@ export declare const list: ((input?: {
|
|
|
89
94
|
readonly email: string;
|
|
90
95
|
} | null;
|
|
91
96
|
}[];
|
|
92
|
-
readonly
|
|
93
|
-
|
|
94
|
-
readonly limit: number;
|
|
95
|
-
readonly total: number;
|
|
96
|
-
readonly totalPages: number;
|
|
97
|
-
};
|
|
98
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
97
|
+
readonly nextCursor: string | null;
|
|
98
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
99
99
|
readonly items: (input?: {
|
|
100
|
-
readonly page?: string | null | undefined;
|
|
101
100
|
readonly limit?: string | null | undefined;
|
|
101
|
+
readonly cursor?: string | null | undefined;
|
|
102
102
|
readonly status?: string | null | undefined;
|
|
103
103
|
readonly search?: string | null | undefined;
|
|
104
104
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -123,20 +123,25 @@ export declare const list: ((input?: {
|
|
|
123
123
|
readonly contacts?: "read" | "write" | null;
|
|
124
124
|
readonly conversations?: "read" | "write" | null;
|
|
125
125
|
readonly templates?: "read" | "write" | null;
|
|
126
|
-
readonly competitors?: "read" | "write" | null;
|
|
127
126
|
readonly webhooks?: "read" | "write" | null;
|
|
128
127
|
readonly apiKeys?: "read" | "write" | null;
|
|
129
128
|
readonly organization?: "read" | "write" | null;
|
|
130
129
|
readonly billing?: "read" | "write" | null;
|
|
131
130
|
readonly analytics?: "read" | "write" | null;
|
|
132
131
|
};
|
|
132
|
+
readonly mailboxes?: {
|
|
133
|
+
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
134
|
+
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
135
|
+
readonly sendMode?: "approval" | "send" | null;
|
|
136
|
+
} | null;
|
|
137
|
+
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
133
138
|
};
|
|
134
139
|
readonly owner: {
|
|
135
140
|
readonly id: string;
|
|
136
141
|
readonly name: string;
|
|
137
142
|
readonly email: string;
|
|
138
143
|
} | null;
|
|
139
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
144
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
140
145
|
};
|
|
141
146
|
export declare const create: (input: {
|
|
142
147
|
readonly name: string;
|
|
@@ -154,13 +159,18 @@ export declare const create: (input: {
|
|
|
154
159
|
readonly contacts?: string | null | undefined;
|
|
155
160
|
readonly conversations?: string | null | undefined;
|
|
156
161
|
readonly templates?: string | null | undefined;
|
|
157
|
-
readonly competitors?: string | null | undefined;
|
|
158
162
|
readonly webhooks?: string | null | undefined;
|
|
159
163
|
readonly apiKeys?: string | null | undefined;
|
|
160
164
|
readonly organization?: string | null | undefined;
|
|
161
165
|
readonly billing?: string | null | undefined;
|
|
162
166
|
readonly analytics?: string | null | undefined;
|
|
163
167
|
};
|
|
168
|
+
readonly mailboxes?: {
|
|
169
|
+
readonly permissions: readonly string[];
|
|
170
|
+
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
171
|
+
readonly sendMode?: string | null | undefined;
|
|
172
|
+
} | null | undefined;
|
|
173
|
+
readonly namespaceId?: string | null | undefined;
|
|
164
174
|
} | null | undefined;
|
|
165
175
|
}) => import("effect/Effect").Effect<{
|
|
166
176
|
readonly id: string;
|
|
@@ -184,20 +194,25 @@ export declare const create: (input: {
|
|
|
184
194
|
readonly contacts?: "read" | "write" | null;
|
|
185
195
|
readonly conversations?: "read" | "write" | null;
|
|
186
196
|
readonly templates?: "read" | "write" | null;
|
|
187
|
-
readonly competitors?: "read" | "write" | null;
|
|
188
197
|
readonly webhooks?: "read" | "write" | null;
|
|
189
198
|
readonly apiKeys?: "read" | "write" | null;
|
|
190
199
|
readonly organization?: "read" | "write" | null;
|
|
191
200
|
readonly billing?: "read" | "write" | null;
|
|
192
201
|
readonly analytics?: "read" | "write" | null;
|
|
193
202
|
};
|
|
203
|
+
readonly mailboxes?: {
|
|
204
|
+
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
205
|
+
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
206
|
+
readonly sendMode?: "approval" | "send" | null;
|
|
207
|
+
} | null;
|
|
208
|
+
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
194
209
|
};
|
|
195
210
|
readonly owner: {
|
|
196
211
|
readonly id: string;
|
|
197
212
|
readonly name: string;
|
|
198
213
|
readonly email: string;
|
|
199
214
|
} | null;
|
|
200
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
215
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
201
216
|
export declare const get: (input: {
|
|
202
217
|
readonly id: string;
|
|
203
218
|
}) => import("effect/Effect").Effect<{
|
|
@@ -222,29 +237,37 @@ export declare const get: (input: {
|
|
|
222
237
|
readonly contacts?: "read" | "write" | null;
|
|
223
238
|
readonly conversations?: "read" | "write" | null;
|
|
224
239
|
readonly templates?: "read" | "write" | null;
|
|
225
|
-
readonly competitors?: "read" | "write" | null;
|
|
226
240
|
readonly webhooks?: "read" | "write" | null;
|
|
227
241
|
readonly apiKeys?: "read" | "write" | null;
|
|
228
242
|
readonly organization?: "read" | "write" | null;
|
|
229
243
|
readonly billing?: "read" | "write" | null;
|
|
230
244
|
readonly analytics?: "read" | "write" | null;
|
|
231
245
|
};
|
|
246
|
+
readonly mailboxes?: {
|
|
247
|
+
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
248
|
+
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
249
|
+
readonly sendMode?: "approval" | "send" | null;
|
|
250
|
+
} | null;
|
|
251
|
+
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
232
252
|
};
|
|
233
253
|
readonly owner: {
|
|
234
254
|
readonly id: string;
|
|
235
255
|
readonly name: string;
|
|
236
256
|
readonly email: string;
|
|
237
257
|
} | null;
|
|
238
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
258
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
239
259
|
export declare const revoke: (input: {
|
|
240
260
|
readonly id: string;
|
|
241
261
|
}) => import("effect/Effect").Effect<{
|
|
242
262
|
readonly success: boolean;
|
|
243
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
263
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
244
264
|
export declare const update: (input: {
|
|
245
265
|
readonly id: string;
|
|
246
266
|
readonly name?: string | null | undefined;
|
|
247
267
|
readonly description?: string | null | undefined;
|
|
268
|
+
readonly mailboxes?: {
|
|
269
|
+
readonly sendMode: string;
|
|
270
|
+
} | null | undefined;
|
|
248
271
|
}) => import("effect/Effect").Effect<{
|
|
249
272
|
readonly id: string;
|
|
250
273
|
readonly name: string;
|
|
@@ -267,20 +290,25 @@ export declare const update: (input: {
|
|
|
267
290
|
readonly contacts?: "read" | "write" | null;
|
|
268
291
|
readonly conversations?: "read" | "write" | null;
|
|
269
292
|
readonly templates?: "read" | "write" | null;
|
|
270
|
-
readonly competitors?: "read" | "write" | null;
|
|
271
293
|
readonly webhooks?: "read" | "write" | null;
|
|
272
294
|
readonly apiKeys?: "read" | "write" | null;
|
|
273
295
|
readonly organization?: "read" | "write" | null;
|
|
274
296
|
readonly billing?: "read" | "write" | null;
|
|
275
297
|
readonly analytics?: "read" | "write" | null;
|
|
276
298
|
};
|
|
299
|
+
readonly mailboxes?: {
|
|
300
|
+
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
301
|
+
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
302
|
+
readonly sendMode?: "approval" | "send" | null;
|
|
303
|
+
} | null;
|
|
304
|
+
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
277
305
|
};
|
|
278
306
|
readonly owner: {
|
|
279
307
|
readonly id: string;
|
|
280
308
|
readonly name: string;
|
|
281
309
|
readonly email: string;
|
|
282
310
|
} | null;
|
|
283
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
311
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
284
312
|
export declare const rotate: (input: {
|
|
285
313
|
readonly id: string;
|
|
286
314
|
}) => import("effect/Effect").Effect<{
|
|
@@ -305,28 +333,29 @@ export declare const rotate: (input: {
|
|
|
305
333
|
readonly contacts?: "read" | "write" | null;
|
|
306
334
|
readonly conversations?: "read" | "write" | null;
|
|
307
335
|
readonly templates?: "read" | "write" | null;
|
|
308
|
-
readonly competitors?: "read" | "write" | null;
|
|
309
336
|
readonly webhooks?: "read" | "write" | null;
|
|
310
337
|
readonly apiKeys?: "read" | "write" | null;
|
|
311
338
|
readonly organization?: "read" | "write" | null;
|
|
312
339
|
readonly billing?: "read" | "write" | null;
|
|
313
340
|
readonly analytics?: "read" | "write" | null;
|
|
314
341
|
};
|
|
342
|
+
readonly mailboxes?: {
|
|
343
|
+
readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
|
|
344
|
+
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
345
|
+
readonly sendMode?: "approval" | "send" | null;
|
|
346
|
+
} | null;
|
|
347
|
+
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
315
348
|
};
|
|
316
349
|
readonly owner: {
|
|
317
350
|
readonly id: string;
|
|
318
351
|
readonly name: string;
|
|
319
352
|
readonly email: string;
|
|
320
353
|
} | null;
|
|
321
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
322
|
-
export declare const remove: (input: {
|
|
323
|
-
readonly id: string;
|
|
324
|
-
}) => import("effect/Effect").Effect<{
|
|
325
|
-
readonly success: boolean;
|
|
326
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
354
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
327
355
|
export declare const getStats: (input: {
|
|
328
356
|
readonly id: string;
|
|
329
|
-
readonly
|
|
357
|
+
readonly after?: string | null | undefined;
|
|
358
|
+
readonly before?: string | null | undefined;
|
|
330
359
|
}) => import("effect/Effect").Effect<{
|
|
331
360
|
readonly totalRequests: number;
|
|
332
361
|
readonly successfulRequests: number;
|
|
@@ -335,13 +364,13 @@ export declare const getStats: (input: {
|
|
|
335
364
|
readonly date: string;
|
|
336
365
|
readonly requests: number;
|
|
337
366
|
}[];
|
|
338
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
339
|
-
export declare const getActivity: (input: {
|
|
367
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
368
|
+
export declare const getActivity: ((input: {
|
|
340
369
|
readonly id: string;
|
|
341
|
-
readonly page?: string | null | undefined;
|
|
342
370
|
readonly limit?: string | null | undefined;
|
|
371
|
+
readonly cursor?: string | null | undefined;
|
|
343
372
|
}) => import("effect/Effect").Effect<{
|
|
344
|
-
readonly
|
|
373
|
+
readonly items: readonly {
|
|
345
374
|
readonly id: string;
|
|
346
375
|
readonly timestamp: string;
|
|
347
376
|
readonly method: string;
|
|
@@ -349,6 +378,33 @@ export declare const getActivity: (input: {
|
|
|
349
378
|
readonly statusCode: number;
|
|
350
379
|
readonly latency: number;
|
|
351
380
|
}[];
|
|
352
|
-
readonly
|
|
353
|
-
|
|
354
|
-
|
|
381
|
+
readonly nextCursor: string | null;
|
|
382
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
|
|
383
|
+
readonly pages: (input: {
|
|
384
|
+
readonly id: string;
|
|
385
|
+
readonly limit?: string | null | undefined;
|
|
386
|
+
readonly cursor?: string | null | undefined;
|
|
387
|
+
}) => import("effect/Stream").Stream<{
|
|
388
|
+
readonly items: readonly {
|
|
389
|
+
readonly id: string;
|
|
390
|
+
readonly timestamp: string;
|
|
391
|
+
readonly method: string;
|
|
392
|
+
readonly endpoint: string;
|
|
393
|
+
readonly statusCode: number;
|
|
394
|
+
readonly latency: number;
|
|
395
|
+
}[];
|
|
396
|
+
readonly nextCursor: string | null;
|
|
397
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
398
|
+
readonly items: (input: {
|
|
399
|
+
readonly id: string;
|
|
400
|
+
readonly limit?: string | null | undefined;
|
|
401
|
+
readonly cursor?: string | null | undefined;
|
|
402
|
+
}) => import("effect/Stream").Stream<{
|
|
403
|
+
readonly id: string;
|
|
404
|
+
readonly timestamp: string;
|
|
405
|
+
readonly method: string;
|
|
406
|
+
readonly endpoint: string;
|
|
407
|
+
readonly statusCode: number;
|
|
408
|
+
readonly latency: number;
|
|
409
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
410
|
+
};
|
package/dist/effect/api-keys.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-BuyvAsZ1.js";
|
|
3
3
|
//#region src/effect/api-keys.ts
|
|
4
4
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
@@ -7,7 +7,6 @@ var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
|
7
7
|
getActivity: () => getActivity,
|
|
8
8
|
getStats: () => getStats,
|
|
9
9
|
list: () => list,
|
|
10
|
-
remove: () => remove,
|
|
11
10
|
revoke: () => revoke,
|
|
12
11
|
rotate: () => rotate,
|
|
13
12
|
update: () => update
|
|
@@ -18,10 +17,9 @@ const get = make("apiKeysGet");
|
|
|
18
17
|
const revoke = make("apiKeysRevoke");
|
|
19
18
|
const update = make("apiKeysUpdate");
|
|
20
19
|
const rotate = make("apiKeysRotate");
|
|
21
|
-
const remove = make("apiKeysRemove");
|
|
22
20
|
const getStats = make("apiKeysGetStats");
|
|
23
21
|
const getActivity = make("apiKeysGetActivity");
|
|
24
22
|
//#endregion
|
|
25
|
-
export { create, get, getActivity, getStats, list,
|
|
23
|
+
export { create, get, getActivity, getStats, list, revoke, rotate, api_keys_exports as t, update };
|
|
26
24
|
|
|
27
25
|
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const list: (input: {
|
|
2
2
|
readonly messageId: string;
|
|
3
3
|
}) => import("effect/Effect").Effect<{
|
|
4
|
-
readonly
|
|
4
|
+
readonly items: readonly {
|
|
5
5
|
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
6
6
|
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
7
7
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
@@ -12,8 +12,7 @@ export declare const list: (input: {
|
|
|
12
12
|
readonly isInline: boolean;
|
|
13
13
|
readonly createdAt: string;
|
|
14
14
|
}[];
|
|
15
|
-
|
|
16
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
15
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
17
16
|
export declare const getById: (input: {
|
|
18
17
|
readonly id: string;
|
|
19
18
|
}) => import("effect/Effect").Effect<{
|
|
@@ -26,13 +25,13 @@ export declare const getById: (input: {
|
|
|
26
25
|
readonly contentId: string | null;
|
|
27
26
|
readonly isInline: boolean;
|
|
28
27
|
readonly createdAt: string;
|
|
29
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
28
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
30
29
|
export declare const remove: (input: {
|
|
31
30
|
readonly id: string;
|
|
32
31
|
}) => import("effect/Effect").Effect<{
|
|
33
32
|
readonly success: boolean;
|
|
34
33
|
readonly deletedId: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
35
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
34
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
36
35
|
export declare const downloadUrl: (input: {
|
|
37
36
|
readonly id: string;
|
|
38
37
|
readonly expiresIn?: string | null | undefined;
|
|
@@ -50,4 +49,4 @@ export declare const downloadUrl: (input: {
|
|
|
50
49
|
readonly isInline: boolean;
|
|
51
50
|
readonly createdAt: string;
|
|
52
51
|
};
|
|
53
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
52
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-BuyvAsZ1.js";
|
|
3
3
|
//#region src/effect/attachments.ts
|
|
4
4
|
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
downloadUrl: () => downloadUrl,
|
package/dist/effect/brands.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const list: (_?: never) => import("effect/Effect").Effect<{
|
|
|
30
30
|
readonly createdAt: string;
|
|
31
31
|
readonly updatedAt: string;
|
|
32
32
|
}[];
|
|
33
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
33
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
34
34
|
export declare const create: (input: {
|
|
35
35
|
readonly slug: string;
|
|
36
36
|
readonly name: string;
|
|
@@ -85,7 +85,7 @@ export declare const create: (input: {
|
|
|
85
85
|
readonly digest: string;
|
|
86
86
|
readonly createdAt: string;
|
|
87
87
|
readonly updatedAt: string;
|
|
88
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
88
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
89
89
|
export declare const get: (input: {
|
|
90
90
|
readonly slug: string;
|
|
91
91
|
}) => import("effect/Effect").Effect<{
|
|
@@ -117,7 +117,7 @@ export declare const get: (input: {
|
|
|
117
117
|
readonly digest: string;
|
|
118
118
|
readonly createdAt: string;
|
|
119
119
|
readonly updatedAt: string;
|
|
120
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
120
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
121
121
|
export declare const update: (input: {
|
|
122
122
|
readonly slug: string;
|
|
123
123
|
readonly newSlug?: string | null | undefined;
|
|
@@ -172,12 +172,12 @@ export declare const update: (input: {
|
|
|
172
172
|
readonly digest: string;
|
|
173
173
|
readonly createdAt: string;
|
|
174
174
|
readonly updatedAt: string;
|
|
175
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
175
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
176
176
|
export declare const remove: (input: {
|
|
177
177
|
readonly slug: string;
|
|
178
178
|
}) => import("effect/Effect").Effect<{
|
|
179
179
|
readonly success: boolean;
|
|
180
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
180
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
181
181
|
export declare const setDefault: (input: {
|
|
182
182
|
readonly slug: string;
|
|
183
183
|
}) => import("effect/Effect").Effect<{
|
|
@@ -209,4 +209,4 @@ export declare const setDefault: (input: {
|
|
|
209
209
|
readonly digest: string;
|
|
210
210
|
readonly createdAt: string;
|
|
211
211
|
readonly updatedAt: string;
|
|
212
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
212
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
package/dist/effect/brands.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
3
|
-
import {
|
|
2
|
+
import { n as make } from "../operation-BuyvAsZ1.js";
|
|
3
|
+
import { k as UpdateBrand, u as CreateBrand } from "../client-8YXjfsVc.js";
|
|
4
4
|
//#region src/effect/brands.ts
|
|
5
5
|
var brands_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CreatePayload: () => CreateBrand,
|