samva 0.4.0 → 0.6.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 +3 -2
- package/README.md +12 -2
- package/dist/{categories-CsUa8ojo.js → categories-4u9Az4No.js} +28 -8
- package/dist/client/sdk.gen.d.ts +545 -74
- package/dist/client/types.gen.d.ts +3907 -747
- package/dist/{client-BmZK_uCt.js → client-DCM6U0-I.js} +3061 -808
- package/dist/{client-attribution-BslSOa_8.js → client-attribution-DYUSAa76.js} +2 -2
- package/dist/effect/analytics.d.ts +66 -0
- package/dist/effect/analytics.js +21 -0
- package/dist/effect/api-keys.d.ts +198 -34
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.d.ts +53 -0
- package/dist/effect/attachments.js +17 -0
- package/dist/effect/campaigns.d.ts +52 -18
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +375 -0
- package/dist/effect/contact-groups.js +29 -0
- package/dist/effect/contacts.d.ts +35 -19
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +191 -44
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.d.ts +111 -0
- package/dist/effect/custom-fields.js +17 -0
- package/dist/effect/design.d.ts +2 -2
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +931 -97
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +16 -4
- package/dist/effect/generated.d.ts +19596 -10819
- package/dist/effect/index.d.ts +6 -1
- package/dist/effect/index.js +8 -3
- package/dist/effect/internal/operation.d.ts +124 -26
- package/dist/effect/media.d.ts +8 -8
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +473 -64
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +7 -110
- package/dist/effect/organizations.js +2 -4
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +96 -12
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +35 -295
- package/dist/effect/templates.js +3 -5
- package/dist/effect/unsubscribe-groups.d.ts +161 -0
- package/dist/effect/unsubscribe-groups.js +25 -0
- package/dist/effect/webhooks.d.ts +52 -18
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
- package/dist/normalize.d.ts +3 -7
- package/dist/{operation-B1knNlxk.js → operation-02YX3hY9.js} +144 -8
- package/dist/promises/errors.gen.d.ts +47 -39
- package/dist/promises/index.d.ts +19 -4
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-n1opem5V.js → promises-8MaPNAam.js} +1679 -267
- package/dist/service-map.d.ts +221 -8
- package/package.json +29 -9
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#endregion
|
|
2
2
|
//#region src/client-attribution.ts
|
|
3
|
-
const SDK_VERSION = "0.
|
|
3
|
+
const SDK_VERSION = "0.6.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-DYUSAa76.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const getStats: (input?: {
|
|
2
|
+
readonly startDate?: Date | null | undefined;
|
|
3
|
+
readonly endDate?: Date | null | undefined;
|
|
4
|
+
readonly groupBy?: string | null | undefined;
|
|
5
|
+
readonly channel?: string | null | undefined;
|
|
6
|
+
} | undefined) => import("effect/Effect").Effect<{
|
|
7
|
+
readonly volumeHistory: readonly {
|
|
8
|
+
readonly date: string;
|
|
9
|
+
readonly email: number;
|
|
10
|
+
}[];
|
|
11
|
+
}, import("./generated").AnalyticsQueryError | 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>;
|
|
12
|
+
export declare const getChannelStats: (input?: {
|
|
13
|
+
readonly startDate?: Date | null | undefined;
|
|
14
|
+
readonly endDate?: Date | null | undefined;
|
|
15
|
+
} | undefined) => import("effect/Effect").Effect<{
|
|
16
|
+
readonly email: {
|
|
17
|
+
readonly sent: number;
|
|
18
|
+
readonly deliveryRate: number;
|
|
19
|
+
readonly uniqueOpenedMessages: number;
|
|
20
|
+
readonly openTrackingEligibleDeliveredMessages: number;
|
|
21
|
+
readonly uniqueMessageOpenRate: number;
|
|
22
|
+
readonly uniqueClickedMessages: number;
|
|
23
|
+
readonly clickTrackingEligibleDeliveredMessages: number;
|
|
24
|
+
readonly uniqueMessageClickRate: number;
|
|
25
|
+
readonly bounceRate: number;
|
|
26
|
+
};
|
|
27
|
+
}, import("./generated").AnalyticsQueryError | 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>;
|
|
28
|
+
export declare const getTopContacts: (input?: {
|
|
29
|
+
readonly startDate?: Date | null | undefined;
|
|
30
|
+
readonly endDate?: Date | null | undefined;
|
|
31
|
+
readonly limit?: string | null | undefined;
|
|
32
|
+
readonly sortBy?: string | null | undefined;
|
|
33
|
+
} | undefined) => import("effect/Effect").Effect<readonly {
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly name: string | null;
|
|
36
|
+
readonly email: string | null;
|
|
37
|
+
readonly phone: string | null;
|
|
38
|
+
readonly messageCount: number;
|
|
39
|
+
}[], import("./generated").AnalyticsQueryError | 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>;
|
|
40
|
+
export declare const getHourlyDistribution: (input?: {
|
|
41
|
+
readonly startDate?: Date | null | undefined;
|
|
42
|
+
readonly endDate?: Date | null | undefined;
|
|
43
|
+
} | undefined) => import("effect/Effect").Effect<readonly {
|
|
44
|
+
readonly hour: string;
|
|
45
|
+
readonly count: number;
|
|
46
|
+
}[], import("./generated").AnalyticsQueryError | 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>;
|
|
47
|
+
export declare const getDeliveryMetrics: (input?: {
|
|
48
|
+
readonly startDate?: Date | null | undefined;
|
|
49
|
+
readonly endDate?: Date | null | undefined;
|
|
50
|
+
readonly channel?: string | null | undefined;
|
|
51
|
+
} | undefined) => import("effect/Effect").Effect<{
|
|
52
|
+
readonly deliveredRate: number;
|
|
53
|
+
readonly failedRate: number;
|
|
54
|
+
readonly pendingRate: number;
|
|
55
|
+
readonly avgDeliveryTimeMs: number;
|
|
56
|
+
}, import("./generated").AnalyticsQueryError | 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>;
|
|
57
|
+
export declare const exportData: (input: {
|
|
58
|
+
readonly startDate: Date;
|
|
59
|
+
readonly endDate: Date;
|
|
60
|
+
readonly format?: string | null | undefined;
|
|
61
|
+
readonly includeChannels?: readonly string[] | null | undefined;
|
|
62
|
+
}) => import("effect/Effect").Effect<{
|
|
63
|
+
readonly content: string;
|
|
64
|
+
readonly mimeType: string;
|
|
65
|
+
readonly filename: string;
|
|
66
|
+
}, import("./generated").AnalyticsQueryError | 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>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { n as make } from "../operation-02YX3hY9.js";
|
|
3
|
+
//#region src/effect/analytics.ts
|
|
4
|
+
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
exportData: () => exportData,
|
|
6
|
+
getChannelStats: () => getChannelStats,
|
|
7
|
+
getDeliveryMetrics: () => getDeliveryMetrics,
|
|
8
|
+
getHourlyDistribution: () => getHourlyDistribution,
|
|
9
|
+
getStats: () => getStats,
|
|
10
|
+
getTopContacts: () => getTopContacts
|
|
11
|
+
});
|
|
12
|
+
const getStats = make("analyticsGetStats");
|
|
13
|
+
const getChannelStats = make("analyticsGetChannelStats");
|
|
14
|
+
const getTopContacts = make("analyticsGetTopContacts");
|
|
15
|
+
const getHourlyDistribution = make("analyticsGetHourlyDistribution");
|
|
16
|
+
const getDeliveryMetrics = make("analyticsGetDeliveryMetrics");
|
|
17
|
+
const exportData = make("analyticsExportData");
|
|
18
|
+
//#endregion
|
|
19
|
+
export { exportData, getChannelStats, getDeliveryMetrics, getHourlyDistribution, getStats, getTopContacts, analytics_exports as t };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=analytics.js.map
|
|
@@ -14,10 +14,31 @@ export declare const list: ((input?: {
|
|
|
14
14
|
readonly expiresAt: string | null;
|
|
15
15
|
readonly lastUsedAt: string | null;
|
|
16
16
|
readonly isActive: boolean;
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
17
|
+
readonly access: {
|
|
18
|
+
readonly mode: "full";
|
|
19
|
+
} | {
|
|
20
|
+
readonly mode: "restricted";
|
|
21
|
+
readonly resources: {
|
|
22
|
+
readonly messages?: "read" | "write" | null;
|
|
23
|
+
readonly email?: "read" | "write" | null;
|
|
24
|
+
readonly domains?: "read" | "write" | null;
|
|
25
|
+
readonly phoneNumbers?: "read" | "write" | null;
|
|
26
|
+
readonly contacts?: "read" | "write" | null;
|
|
27
|
+
readonly conversations?: "read" | "write" | null;
|
|
28
|
+
readonly templates?: "read" | "write" | null;
|
|
29
|
+
readonly competitors?: "read" | "write" | null;
|
|
30
|
+
readonly webhooks?: "read" | "write" | null;
|
|
31
|
+
readonly apiKeys?: "read" | "write" | null;
|
|
32
|
+
readonly organization?: "read" | "write" | null;
|
|
33
|
+
readonly billing?: "read" | "write" | null;
|
|
34
|
+
readonly analytics?: "read" | "write" | null;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly owner: {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly email: string;
|
|
19
41
|
} | null;
|
|
20
|
-
readonly roleName?: string | null;
|
|
21
42
|
}[];
|
|
22
43
|
readonly pagination: {
|
|
23
44
|
readonly page: number;
|
|
@@ -25,7 +46,7 @@ export declare const list: ((input?: {
|
|
|
25
46
|
readonly total: number;
|
|
26
47
|
readonly totalPages: number;
|
|
27
48
|
};
|
|
28
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
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>) & {
|
|
29
50
|
readonly pages: (input?: {
|
|
30
51
|
readonly page?: string | null | undefined;
|
|
31
52
|
readonly limit?: string | null | undefined;
|
|
@@ -42,10 +63,31 @@ export declare const list: ((input?: {
|
|
|
42
63
|
readonly expiresAt: string | null;
|
|
43
64
|
readonly lastUsedAt: string | null;
|
|
44
65
|
readonly isActive: boolean;
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
66
|
+
readonly access: {
|
|
67
|
+
readonly mode: "full";
|
|
68
|
+
} | {
|
|
69
|
+
readonly mode: "restricted";
|
|
70
|
+
readonly resources: {
|
|
71
|
+
readonly messages?: "read" | "write" | null;
|
|
72
|
+
readonly email?: "read" | "write" | null;
|
|
73
|
+
readonly domains?: "read" | "write" | null;
|
|
74
|
+
readonly phoneNumbers?: "read" | "write" | null;
|
|
75
|
+
readonly contacts?: "read" | "write" | null;
|
|
76
|
+
readonly conversations?: "read" | "write" | null;
|
|
77
|
+
readonly templates?: "read" | "write" | null;
|
|
78
|
+
readonly competitors?: "read" | "write" | null;
|
|
79
|
+
readonly webhooks?: "read" | "write" | null;
|
|
80
|
+
readonly apiKeys?: "read" | "write" | null;
|
|
81
|
+
readonly organization?: "read" | "write" | null;
|
|
82
|
+
readonly billing?: "read" | "write" | null;
|
|
83
|
+
readonly analytics?: "read" | "write" | null;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly owner: {
|
|
87
|
+
readonly id: string;
|
|
88
|
+
readonly name: string;
|
|
89
|
+
readonly email: string;
|
|
47
90
|
} | null;
|
|
48
|
-
readonly roleName?: string | null;
|
|
49
91
|
}[];
|
|
50
92
|
readonly pagination: {
|
|
51
93
|
readonly page: number;
|
|
@@ -53,7 +95,7 @@ export declare const list: ((input?: {
|
|
|
53
95
|
readonly total: number;
|
|
54
96
|
readonly totalPages: number;
|
|
55
97
|
};
|
|
56
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
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>;
|
|
57
99
|
readonly items: (input?: {
|
|
58
100
|
readonly page?: string | null | undefined;
|
|
59
101
|
readonly limit?: string | null | undefined;
|
|
@@ -69,18 +111,56 @@ export declare const list: ((input?: {
|
|
|
69
111
|
readonly expiresAt: string | null;
|
|
70
112
|
readonly lastUsedAt: string | null;
|
|
71
113
|
readonly isActive: boolean;
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
114
|
+
readonly access: {
|
|
115
|
+
readonly mode: "full";
|
|
116
|
+
} | {
|
|
117
|
+
readonly mode: "restricted";
|
|
118
|
+
readonly resources: {
|
|
119
|
+
readonly messages?: "read" | "write" | null;
|
|
120
|
+
readonly email?: "read" | "write" | null;
|
|
121
|
+
readonly domains?: "read" | "write" | null;
|
|
122
|
+
readonly phoneNumbers?: "read" | "write" | null;
|
|
123
|
+
readonly contacts?: "read" | "write" | null;
|
|
124
|
+
readonly conversations?: "read" | "write" | null;
|
|
125
|
+
readonly templates?: "read" | "write" | null;
|
|
126
|
+
readonly competitors?: "read" | "write" | null;
|
|
127
|
+
readonly webhooks?: "read" | "write" | null;
|
|
128
|
+
readonly apiKeys?: "read" | "write" | null;
|
|
129
|
+
readonly organization?: "read" | "write" | null;
|
|
130
|
+
readonly billing?: "read" | "write" | null;
|
|
131
|
+
readonly analytics?: "read" | "write" | null;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly owner: {
|
|
135
|
+
readonly id: string;
|
|
136
|
+
readonly name: string;
|
|
137
|
+
readonly email: string;
|
|
74
138
|
} | null;
|
|
75
|
-
|
|
76
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
139
|
+
}, 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>;
|
|
77
140
|
};
|
|
78
141
|
export declare const create: (input: {
|
|
79
142
|
readonly name: string;
|
|
80
143
|
readonly description?: string | null | undefined;
|
|
81
144
|
readonly expiresAt?: string | null | undefined;
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
145
|
+
readonly access?: {
|
|
146
|
+
readonly mode: string;
|
|
147
|
+
} | {
|
|
148
|
+
readonly mode: string;
|
|
149
|
+
readonly resources: {
|
|
150
|
+
readonly messages?: string | null | undefined;
|
|
151
|
+
readonly email?: string | null | undefined;
|
|
152
|
+
readonly domains?: string | null | undefined;
|
|
153
|
+
readonly phoneNumbers?: string | null | undefined;
|
|
154
|
+
readonly contacts?: string | null | undefined;
|
|
155
|
+
readonly conversations?: string | null | undefined;
|
|
156
|
+
readonly templates?: string | null | undefined;
|
|
157
|
+
readonly competitors?: string | null | undefined;
|
|
158
|
+
readonly webhooks?: string | null | undefined;
|
|
159
|
+
readonly apiKeys?: string | null | undefined;
|
|
160
|
+
readonly organization?: string | null | undefined;
|
|
161
|
+
readonly billing?: string | null | undefined;
|
|
162
|
+
readonly analytics?: string | null | undefined;
|
|
163
|
+
};
|
|
84
164
|
} | null | undefined;
|
|
85
165
|
}) => import("effect/Effect").Effect<{
|
|
86
166
|
readonly id: string;
|
|
@@ -92,11 +172,32 @@ export declare const create: (input: {
|
|
|
92
172
|
readonly expiresAt: string | null;
|
|
93
173
|
readonly lastUsedAt: string | null;
|
|
94
174
|
readonly isActive: boolean;
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
175
|
+
readonly access: {
|
|
176
|
+
readonly mode: "full";
|
|
177
|
+
} | {
|
|
178
|
+
readonly mode: "restricted";
|
|
179
|
+
readonly resources: {
|
|
180
|
+
readonly messages?: "read" | "write" | null;
|
|
181
|
+
readonly email?: "read" | "write" | null;
|
|
182
|
+
readonly domains?: "read" | "write" | null;
|
|
183
|
+
readonly phoneNumbers?: "read" | "write" | null;
|
|
184
|
+
readonly contacts?: "read" | "write" | null;
|
|
185
|
+
readonly conversations?: "read" | "write" | null;
|
|
186
|
+
readonly templates?: "read" | "write" | null;
|
|
187
|
+
readonly competitors?: "read" | "write" | null;
|
|
188
|
+
readonly webhooks?: "read" | "write" | null;
|
|
189
|
+
readonly apiKeys?: "read" | "write" | null;
|
|
190
|
+
readonly organization?: "read" | "write" | null;
|
|
191
|
+
readonly billing?: "read" | "write" | null;
|
|
192
|
+
readonly analytics?: "read" | "write" | null;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly owner: {
|
|
196
|
+
readonly id: string;
|
|
197
|
+
readonly name: string;
|
|
198
|
+
readonly email: string;
|
|
97
199
|
} | null;
|
|
98
|
-
|
|
99
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
200
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
100
201
|
export declare const get: (input: {
|
|
101
202
|
readonly id: string;
|
|
102
203
|
}) => import("effect/Effect").Effect<{
|
|
@@ -109,16 +210,37 @@ export declare const get: (input: {
|
|
|
109
210
|
readonly expiresAt: string | null;
|
|
110
211
|
readonly lastUsedAt: string | null;
|
|
111
212
|
readonly isActive: boolean;
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
213
|
+
readonly access: {
|
|
214
|
+
readonly mode: "full";
|
|
215
|
+
} | {
|
|
216
|
+
readonly mode: "restricted";
|
|
217
|
+
readonly resources: {
|
|
218
|
+
readonly messages?: "read" | "write" | null;
|
|
219
|
+
readonly email?: "read" | "write" | null;
|
|
220
|
+
readonly domains?: "read" | "write" | null;
|
|
221
|
+
readonly phoneNumbers?: "read" | "write" | null;
|
|
222
|
+
readonly contacts?: "read" | "write" | null;
|
|
223
|
+
readonly conversations?: "read" | "write" | null;
|
|
224
|
+
readonly templates?: "read" | "write" | null;
|
|
225
|
+
readonly competitors?: "read" | "write" | null;
|
|
226
|
+
readonly webhooks?: "read" | "write" | null;
|
|
227
|
+
readonly apiKeys?: "read" | "write" | null;
|
|
228
|
+
readonly organization?: "read" | "write" | null;
|
|
229
|
+
readonly billing?: "read" | "write" | null;
|
|
230
|
+
readonly analytics?: "read" | "write" | null;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly owner: {
|
|
234
|
+
readonly id: string;
|
|
235
|
+
readonly name: string;
|
|
236
|
+
readonly email: string;
|
|
114
237
|
} | null;
|
|
115
|
-
|
|
116
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
238
|
+
}, 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>;
|
|
117
239
|
export declare const revoke: (input: {
|
|
118
240
|
readonly id: string;
|
|
119
241
|
}) => import("effect/Effect").Effect<{
|
|
120
242
|
readonly success: boolean;
|
|
121
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
243
|
+
}, 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>;
|
|
122
244
|
export declare const update: (input: {
|
|
123
245
|
readonly id: string;
|
|
124
246
|
readonly name?: string | null | undefined;
|
|
@@ -133,11 +255,32 @@ export declare const update: (input: {
|
|
|
133
255
|
readonly expiresAt: string | null;
|
|
134
256
|
readonly lastUsedAt: string | null;
|
|
135
257
|
readonly isActive: boolean;
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
258
|
+
readonly access: {
|
|
259
|
+
readonly mode: "full";
|
|
260
|
+
} | {
|
|
261
|
+
readonly mode: "restricted";
|
|
262
|
+
readonly resources: {
|
|
263
|
+
readonly messages?: "read" | "write" | null;
|
|
264
|
+
readonly email?: "read" | "write" | null;
|
|
265
|
+
readonly domains?: "read" | "write" | null;
|
|
266
|
+
readonly phoneNumbers?: "read" | "write" | null;
|
|
267
|
+
readonly contacts?: "read" | "write" | null;
|
|
268
|
+
readonly conversations?: "read" | "write" | null;
|
|
269
|
+
readonly templates?: "read" | "write" | null;
|
|
270
|
+
readonly competitors?: "read" | "write" | null;
|
|
271
|
+
readonly webhooks?: "read" | "write" | null;
|
|
272
|
+
readonly apiKeys?: "read" | "write" | null;
|
|
273
|
+
readonly organization?: "read" | "write" | null;
|
|
274
|
+
readonly billing?: "read" | "write" | null;
|
|
275
|
+
readonly analytics?: "read" | "write" | null;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
readonly owner: {
|
|
279
|
+
readonly id: string;
|
|
280
|
+
readonly name: string;
|
|
281
|
+
readonly email: string;
|
|
138
282
|
} | null;
|
|
139
|
-
|
|
140
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
283
|
+
}, 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>;
|
|
141
284
|
export declare const rotate: (input: {
|
|
142
285
|
readonly id: string;
|
|
143
286
|
}) => import("effect/Effect").Effect<{
|
|
@@ -150,16 +293,37 @@ export declare const rotate: (input: {
|
|
|
150
293
|
readonly expiresAt: string | null;
|
|
151
294
|
readonly lastUsedAt: string | null;
|
|
152
295
|
readonly isActive: boolean;
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
296
|
+
readonly access: {
|
|
297
|
+
readonly mode: "full";
|
|
298
|
+
} | {
|
|
299
|
+
readonly mode: "restricted";
|
|
300
|
+
readonly resources: {
|
|
301
|
+
readonly messages?: "read" | "write" | null;
|
|
302
|
+
readonly email?: "read" | "write" | null;
|
|
303
|
+
readonly domains?: "read" | "write" | null;
|
|
304
|
+
readonly phoneNumbers?: "read" | "write" | null;
|
|
305
|
+
readonly contacts?: "read" | "write" | null;
|
|
306
|
+
readonly conversations?: "read" | "write" | null;
|
|
307
|
+
readonly templates?: "read" | "write" | null;
|
|
308
|
+
readonly competitors?: "read" | "write" | null;
|
|
309
|
+
readonly webhooks?: "read" | "write" | null;
|
|
310
|
+
readonly apiKeys?: "read" | "write" | null;
|
|
311
|
+
readonly organization?: "read" | "write" | null;
|
|
312
|
+
readonly billing?: "read" | "write" | null;
|
|
313
|
+
readonly analytics?: "read" | "write" | null;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly owner: {
|
|
317
|
+
readonly id: string;
|
|
318
|
+
readonly name: string;
|
|
319
|
+
readonly email: string;
|
|
155
320
|
} | null;
|
|
156
|
-
|
|
157
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
321
|
+
}, 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("./generated").ValidationError, import("./client").Service>;
|
|
158
322
|
export declare const remove: (input: {
|
|
159
323
|
readonly id: string;
|
|
160
324
|
}) => import("effect/Effect").Effect<{
|
|
161
325
|
readonly success: boolean;
|
|
162
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
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>;
|
|
163
327
|
export declare const getStats: (input: {
|
|
164
328
|
readonly id: string;
|
|
165
329
|
readonly period?: string | null | undefined;
|
|
@@ -171,7 +335,7 @@ export declare const getStats: (input: {
|
|
|
171
335
|
readonly date: string;
|
|
172
336
|
readonly requests: number;
|
|
173
337
|
}[];
|
|
174
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
338
|
+
}, 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>;
|
|
175
339
|
export declare const getActivity: (input: {
|
|
176
340
|
readonly id: string;
|
|
177
341
|
readonly page?: string | null | undefined;
|
|
@@ -187,4 +351,4 @@ export declare const getActivity: (input: {
|
|
|
187
351
|
}[];
|
|
188
352
|
readonly total: number;
|
|
189
353
|
readonly hasMore: boolean;
|
|
190
|
-
}, import("./generated").ForbiddenError | 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/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
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-02YX3hY9.js";
|
|
3
3
|
//#region src/effect/api-keys.ts
|
|
4
4
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const list: (input: {
|
|
2
|
+
readonly messageId: string;
|
|
3
|
+
}) => import("effect/Effect").Effect<{
|
|
4
|
+
readonly attachments: readonly {
|
|
5
|
+
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
6
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
7
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
8
|
+
readonly filename: string;
|
|
9
|
+
readonly contentType: string;
|
|
10
|
+
readonly size: number;
|
|
11
|
+
readonly contentId: string | null;
|
|
12
|
+
readonly isInline: boolean;
|
|
13
|
+
readonly createdAt: string;
|
|
14
|
+
}[];
|
|
15
|
+
readonly total: number;
|
|
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>;
|
|
17
|
+
export declare const getById: (input: {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
}) => import("effect/Effect").Effect<{
|
|
20
|
+
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
21
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
22
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
23
|
+
readonly filename: string;
|
|
24
|
+
readonly contentType: string;
|
|
25
|
+
readonly size: number;
|
|
26
|
+
readonly contentId: string | null;
|
|
27
|
+
readonly isInline: boolean;
|
|
28
|
+
readonly createdAt: string;
|
|
29
|
+
}, 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>;
|
|
30
|
+
export declare const remove: (input: {
|
|
31
|
+
readonly id: string;
|
|
32
|
+
}) => import("effect/Effect").Effect<{
|
|
33
|
+
readonly success: boolean;
|
|
34
|
+
readonly deletedId: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
35
|
+
}, 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>;
|
|
36
|
+
export declare const downloadUrl: (input: {
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly expiresIn?: string | null | undefined;
|
|
39
|
+
}) => import("effect/Effect").Effect<{
|
|
40
|
+
readonly url: string;
|
|
41
|
+
readonly expiresAt: string;
|
|
42
|
+
readonly attachment: {
|
|
43
|
+
readonly id: string & import("effect/Brand").Brand<"AttachmentId">;
|
|
44
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
45
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
46
|
+
readonly filename: string;
|
|
47
|
+
readonly contentType: string;
|
|
48
|
+
readonly size: number;
|
|
49
|
+
readonly contentId: string | null;
|
|
50
|
+
readonly isInline: boolean;
|
|
51
|
+
readonly createdAt: string;
|
|
52
|
+
};
|
|
53
|
+
}, 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>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { n as make } from "../operation-02YX3hY9.js";
|
|
3
|
+
//#region src/effect/attachments.ts
|
|
4
|
+
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
downloadUrl: () => downloadUrl,
|
|
6
|
+
getById: () => getById,
|
|
7
|
+
list: () => list,
|
|
8
|
+
remove: () => remove
|
|
9
|
+
});
|
|
10
|
+
const list = make("attachmentsList");
|
|
11
|
+
const getById = make("attachmentsGetById");
|
|
12
|
+
const remove = make("attachmentsRemove");
|
|
13
|
+
const downloadUrl = make("attachmentsDownloadUrl");
|
|
14
|
+
//#endregion
|
|
15
|
+
export { downloadUrl, getById, list, remove, attachments_exports as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=attachments.js.map
|