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
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
export declare const list: ((input?: {
|
|
2
|
+
readonly page?: string | null | undefined;
|
|
3
|
+
readonly limit?: string | null | undefined;
|
|
4
|
+
readonly type?: string | readonly string[] | null | undefined;
|
|
5
|
+
readonly isActive?: string | null | undefined;
|
|
6
|
+
} | undefined) => import("effect/Effect").Effect<{
|
|
7
|
+
readonly items: readonly {
|
|
8
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
9
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly description: string | null;
|
|
12
|
+
readonly type: "dynamic" | "smart" | "static";
|
|
13
|
+
readonly criteria: {
|
|
14
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
15
|
+
} | null;
|
|
16
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
17
|
+
readonly icon: string | null;
|
|
18
|
+
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
19
|
+
readonly contactCount: number;
|
|
20
|
+
readonly lastCalculatedAt: string | null;
|
|
21
|
+
readonly isActive: boolean;
|
|
22
|
+
readonly createdAt: string;
|
|
23
|
+
readonly updatedAt: string;
|
|
24
|
+
}[];
|
|
25
|
+
readonly pagination: {
|
|
26
|
+
readonly page: number;
|
|
27
|
+
readonly limit: number;
|
|
28
|
+
readonly total: number;
|
|
29
|
+
readonly totalPages: number;
|
|
30
|
+
};
|
|
31
|
+
}, 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>) & {
|
|
32
|
+
readonly pages: (input?: {
|
|
33
|
+
readonly page?: string | null | undefined;
|
|
34
|
+
readonly limit?: string | null | undefined;
|
|
35
|
+
readonly type?: string | readonly string[] | null | undefined;
|
|
36
|
+
readonly isActive?: string | null | undefined;
|
|
37
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
38
|
+
readonly items: readonly {
|
|
39
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
40
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly description: string | null;
|
|
43
|
+
readonly type: "dynamic" | "smart" | "static";
|
|
44
|
+
readonly criteria: {
|
|
45
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
46
|
+
} | null;
|
|
47
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
48
|
+
readonly icon: string | null;
|
|
49
|
+
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
50
|
+
readonly contactCount: number;
|
|
51
|
+
readonly lastCalculatedAt: string | null;
|
|
52
|
+
readonly isActive: boolean;
|
|
53
|
+
readonly createdAt: string;
|
|
54
|
+
readonly updatedAt: string;
|
|
55
|
+
}[];
|
|
56
|
+
readonly pagination: {
|
|
57
|
+
readonly page: number;
|
|
58
|
+
readonly limit: number;
|
|
59
|
+
readonly total: number;
|
|
60
|
+
readonly totalPages: number;
|
|
61
|
+
};
|
|
62
|
+
}, 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>;
|
|
63
|
+
readonly items: (input?: {
|
|
64
|
+
readonly page?: string | null | undefined;
|
|
65
|
+
readonly limit?: string | null | undefined;
|
|
66
|
+
readonly type?: string | readonly string[] | null | undefined;
|
|
67
|
+
readonly isActive?: string | null | undefined;
|
|
68
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
69
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
70
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly description: string | null;
|
|
73
|
+
readonly type: "dynamic" | "smart" | "static";
|
|
74
|
+
readonly criteria: {
|
|
75
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
76
|
+
} | null;
|
|
77
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
78
|
+
readonly icon: string | null;
|
|
79
|
+
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
80
|
+
readonly contactCount: number;
|
|
81
|
+
readonly lastCalculatedAt: string | null;
|
|
82
|
+
readonly isActive: boolean;
|
|
83
|
+
readonly createdAt: string;
|
|
84
|
+
readonly updatedAt: string;
|
|
85
|
+
}, 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>;
|
|
86
|
+
};
|
|
87
|
+
export declare const create: (input: {
|
|
88
|
+
readonly name: string;
|
|
89
|
+
readonly description?: string | null | undefined;
|
|
90
|
+
readonly type?: string | null | undefined;
|
|
91
|
+
readonly criteria?: {
|
|
92
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
93
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
94
|
+
} | null)[] | {
|
|
95
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
96
|
+
} | null)[] | {
|
|
97
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
98
|
+
} | null)[] | {
|
|
99
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
100
|
+
} | null)[] | {
|
|
101
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
102
|
+
} | null)[] | {
|
|
103
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
104
|
+
} | null)[] | {
|
|
105
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
106
|
+
} | null)[] | {
|
|
107
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
108
|
+
} | null)[] | {
|
|
109
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
110
|
+
} | null)[] | {
|
|
111
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
112
|
+
} | null)[] | {
|
|
113
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
114
|
+
} | null)[] | {
|
|
115
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
116
|
+
} | null | undefined;
|
|
117
|
+
} | null | undefined;
|
|
118
|
+
readonly color?: string | null | undefined;
|
|
119
|
+
readonly icon?: string | null | undefined;
|
|
120
|
+
readonly parentGroupId?: string | null | undefined;
|
|
121
|
+
readonly isActive?: boolean | null | undefined;
|
|
122
|
+
}) => import("effect/Effect").Effect<{
|
|
123
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
124
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
125
|
+
readonly name: string;
|
|
126
|
+
readonly description: string | null;
|
|
127
|
+
readonly type: "dynamic" | "smart" | "static";
|
|
128
|
+
readonly criteria: {
|
|
129
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
130
|
+
} | null;
|
|
131
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
132
|
+
readonly icon: string | null;
|
|
133
|
+
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
134
|
+
readonly contactCount: number;
|
|
135
|
+
readonly lastCalculatedAt: string | null;
|
|
136
|
+
readonly isActive: boolean;
|
|
137
|
+
readonly createdAt: string;
|
|
138
|
+
readonly updatedAt: string;
|
|
139
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
140
|
+
export declare const getById: (input: {
|
|
141
|
+
readonly id: string;
|
|
142
|
+
}) => import("effect/Effect").Effect<{
|
|
143
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
144
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
145
|
+
readonly name: string;
|
|
146
|
+
readonly description: string | null;
|
|
147
|
+
readonly type: "dynamic" | "smart" | "static";
|
|
148
|
+
readonly criteria: {
|
|
149
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
150
|
+
} | null;
|
|
151
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
152
|
+
readonly icon: string | null;
|
|
153
|
+
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
154
|
+
readonly contactCount: number;
|
|
155
|
+
readonly lastCalculatedAt: string | null;
|
|
156
|
+
readonly isActive: boolean;
|
|
157
|
+
readonly createdAt: string;
|
|
158
|
+
readonly updatedAt: string;
|
|
159
|
+
}, 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>;
|
|
160
|
+
export declare const update: (input: {
|
|
161
|
+
readonly id: string;
|
|
162
|
+
readonly name?: string | null | undefined;
|
|
163
|
+
readonly description?: string | null | undefined;
|
|
164
|
+
readonly type?: string | null | undefined;
|
|
165
|
+
readonly criteria?: {
|
|
166
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
167
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
168
|
+
} | null)[] | {
|
|
169
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
170
|
+
} | null)[] | {
|
|
171
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
172
|
+
} | null)[] | {
|
|
173
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
174
|
+
} | null)[] | {
|
|
175
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
176
|
+
} | null)[] | {
|
|
177
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
178
|
+
} | null)[] | {
|
|
179
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
180
|
+
} | null)[] | {
|
|
181
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
182
|
+
} | null)[] | {
|
|
183
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
184
|
+
} | null)[] | {
|
|
185
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
186
|
+
} | null)[] | {
|
|
187
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
188
|
+
} | null)[] | {
|
|
189
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
190
|
+
} | null | undefined;
|
|
191
|
+
} | null | undefined;
|
|
192
|
+
readonly color?: string | null | undefined;
|
|
193
|
+
readonly icon?: string | null | undefined;
|
|
194
|
+
readonly parentGroupId?: string | null | undefined;
|
|
195
|
+
readonly isActive?: boolean | null | undefined;
|
|
196
|
+
}) => import("effect/Effect").Effect<{
|
|
197
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
198
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
199
|
+
readonly name: string;
|
|
200
|
+
readonly description: string | null;
|
|
201
|
+
readonly type: "dynamic" | "smart" | "static";
|
|
202
|
+
readonly criteria: {
|
|
203
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
204
|
+
} | null;
|
|
205
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
206
|
+
readonly icon: string | null;
|
|
207
|
+
readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
|
|
208
|
+
readonly contactCount: number;
|
|
209
|
+
readonly lastCalculatedAt: string | null;
|
|
210
|
+
readonly isActive: boolean;
|
|
211
|
+
readonly createdAt: string;
|
|
212
|
+
readonly updatedAt: string;
|
|
213
|
+
}, 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>;
|
|
214
|
+
export declare const remove: (input: {
|
|
215
|
+
readonly id: string;
|
|
216
|
+
}) => import("effect/Effect").Effect<{
|
|
217
|
+
readonly success: boolean;
|
|
218
|
+
}, 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>;
|
|
219
|
+
export declare const preview: (input: {
|
|
220
|
+
readonly criteria: {
|
|
221
|
+
readonly contactTypes?: readonly string[] | null | undefined;
|
|
222
|
+
readonly capabilities?: readonly string[] | null | undefined;
|
|
223
|
+
readonly tags?: readonly string[] | null | undefined;
|
|
224
|
+
readonly channels?: readonly string[] | null | undefined;
|
|
225
|
+
readonly match?: string | null | undefined;
|
|
226
|
+
readonly conditions?: readonly {
|
|
227
|
+
readonly field: string;
|
|
228
|
+
readonly operator: string;
|
|
229
|
+
readonly value: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
230
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
231
|
+
} | null)[] | {
|
|
232
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
233
|
+
} | null)[] | {
|
|
234
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
235
|
+
} | null)[] | {
|
|
236
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
237
|
+
} | null)[] | {
|
|
238
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
239
|
+
} | null)[] | {
|
|
240
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
241
|
+
} | null)[] | {
|
|
242
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
243
|
+
} | null)[] | {
|
|
244
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
245
|
+
} | null)[] | {
|
|
246
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
247
|
+
} | null)[] | {
|
|
248
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
249
|
+
} | null)[] | {
|
|
250
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
251
|
+
} | null;
|
|
252
|
+
}[] | null | undefined;
|
|
253
|
+
};
|
|
254
|
+
}) => import("effect/Effect").Effect<{
|
|
255
|
+
readonly count: number;
|
|
256
|
+
readonly sample: readonly {
|
|
257
|
+
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
258
|
+
readonly name: string;
|
|
259
|
+
readonly type: string;
|
|
260
|
+
readonly status: string;
|
|
261
|
+
}[];
|
|
262
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
263
|
+
export declare const evaluateDynamic: (input: {
|
|
264
|
+
readonly groupId: string;
|
|
265
|
+
}) => import("effect/Effect").Effect<{
|
|
266
|
+
readonly added: number;
|
|
267
|
+
readonly removed: number;
|
|
268
|
+
readonly total: number;
|
|
269
|
+
}, 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>;
|
|
270
|
+
export declare const getMembers: ((input: {
|
|
271
|
+
readonly groupId: string;
|
|
272
|
+
readonly page?: string | null | undefined;
|
|
273
|
+
readonly limit?: string | null | undefined;
|
|
274
|
+
}) => import("effect/Effect").Effect<{
|
|
275
|
+
readonly items: readonly {
|
|
276
|
+
readonly id: string;
|
|
277
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
278
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
279
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
280
|
+
readonly role: "admin" | "member" | "moderator";
|
|
281
|
+
readonly joinedAt: string;
|
|
282
|
+
readonly joinedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
283
|
+
readonly expiresAt: string | null;
|
|
284
|
+
readonly contact: {
|
|
285
|
+
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
286
|
+
readonly name: string;
|
|
287
|
+
readonly displayName: string | null;
|
|
288
|
+
readonly type: string;
|
|
289
|
+
readonly identities?: readonly {
|
|
290
|
+
readonly channel: "email";
|
|
291
|
+
readonly identifier: string;
|
|
292
|
+
readonly verified: boolean;
|
|
293
|
+
}[] | null;
|
|
294
|
+
} | null;
|
|
295
|
+
}[];
|
|
296
|
+
readonly pagination: {
|
|
297
|
+
readonly page: number;
|
|
298
|
+
readonly limit: number;
|
|
299
|
+
readonly total: number;
|
|
300
|
+
readonly totalPages: number;
|
|
301
|
+
};
|
|
302
|
+
}, 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>) & {
|
|
303
|
+
readonly pages: (input: {
|
|
304
|
+
readonly groupId: string;
|
|
305
|
+
readonly page?: string | null | undefined;
|
|
306
|
+
readonly limit?: string | null | undefined;
|
|
307
|
+
}) => import("effect/Stream").Stream<{
|
|
308
|
+
readonly items: readonly {
|
|
309
|
+
readonly id: string;
|
|
310
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
311
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
312
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
313
|
+
readonly role: "admin" | "member" | "moderator";
|
|
314
|
+
readonly joinedAt: string;
|
|
315
|
+
readonly joinedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
316
|
+
readonly expiresAt: string | null;
|
|
317
|
+
readonly contact: {
|
|
318
|
+
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
319
|
+
readonly name: string;
|
|
320
|
+
readonly displayName: string | null;
|
|
321
|
+
readonly type: string;
|
|
322
|
+
readonly identities?: readonly {
|
|
323
|
+
readonly channel: "email";
|
|
324
|
+
readonly identifier: string;
|
|
325
|
+
readonly verified: boolean;
|
|
326
|
+
}[] | null;
|
|
327
|
+
} | null;
|
|
328
|
+
}[];
|
|
329
|
+
readonly pagination: {
|
|
330
|
+
readonly page: number;
|
|
331
|
+
readonly limit: number;
|
|
332
|
+
readonly total: number;
|
|
333
|
+
readonly totalPages: number;
|
|
334
|
+
};
|
|
335
|
+
}, 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>;
|
|
336
|
+
readonly items: (input: {
|
|
337
|
+
readonly groupId: string;
|
|
338
|
+
readonly page?: string | null | undefined;
|
|
339
|
+
readonly limit?: string | null | undefined;
|
|
340
|
+
}) => import("effect/Stream").Stream<{
|
|
341
|
+
readonly id: string;
|
|
342
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
343
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
344
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
345
|
+
readonly role: "admin" | "member" | "moderator";
|
|
346
|
+
readonly joinedAt: string;
|
|
347
|
+
readonly joinedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
348
|
+
readonly expiresAt: string | null;
|
|
349
|
+
readonly contact: {
|
|
350
|
+
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
351
|
+
readonly name: string;
|
|
352
|
+
readonly displayName: string | null;
|
|
353
|
+
readonly type: string;
|
|
354
|
+
readonly identities?: readonly {
|
|
355
|
+
readonly channel: "email";
|
|
356
|
+
readonly identifier: string;
|
|
357
|
+
readonly verified: boolean;
|
|
358
|
+
}[] | null;
|
|
359
|
+
} | null;
|
|
360
|
+
}, 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>;
|
|
361
|
+
};
|
|
362
|
+
export declare const addMembers: (input: {
|
|
363
|
+
readonly groupId: string;
|
|
364
|
+
readonly contactIds: readonly string[];
|
|
365
|
+
readonly role?: string | null | undefined;
|
|
366
|
+
}) => import("effect/Effect").Effect<{
|
|
367
|
+
readonly added: number;
|
|
368
|
+
readonly skipped: number;
|
|
369
|
+
}, 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>;
|
|
370
|
+
export declare const removeMembers: (input: {
|
|
371
|
+
readonly groupId: string;
|
|
372
|
+
readonly contactIds: readonly string[];
|
|
373
|
+
}) => import("effect/Effect").Effect<{
|
|
374
|
+
readonly removed: number;
|
|
375
|
+
}, 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,29 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { n as make } from "../operation-02YX3hY9.js";
|
|
3
|
+
//#region src/effect/contact-groups.ts
|
|
4
|
+
var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
addMembers: () => addMembers,
|
|
6
|
+
create: () => create,
|
|
7
|
+
evaluateDynamic: () => evaluateDynamic,
|
|
8
|
+
getById: () => getById,
|
|
9
|
+
getMembers: () => getMembers,
|
|
10
|
+
list: () => list,
|
|
11
|
+
preview: () => preview,
|
|
12
|
+
remove: () => remove,
|
|
13
|
+
removeMembers: () => removeMembers,
|
|
14
|
+
update: () => update
|
|
15
|
+
});
|
|
16
|
+
const list = make("contactGroupsList");
|
|
17
|
+
const create = make("contactGroupsCreate");
|
|
18
|
+
const getById = make("contactGroupsGetById");
|
|
19
|
+
const update = make("contactGroupsUpdate");
|
|
20
|
+
const remove = make("contactGroupsRemove");
|
|
21
|
+
const preview = make("contactGroupsPreview");
|
|
22
|
+
const evaluateDynamic = make("contactGroupsEvaluateDynamic");
|
|
23
|
+
const getMembers = make("contactGroupsGetMembers");
|
|
24
|
+
const addMembers = make("contactGroupsAddMembers");
|
|
25
|
+
const removeMembers = make("contactGroupsRemoveMembers");
|
|
26
|
+
//#endregion
|
|
27
|
+
export { addMembers, create, evaluateDynamic, getById, getMembers, list, preview, remove, removeMembers, contact_groups_exports as t, update };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=contact-groups.js.map
|
|
@@ -98,6 +98,11 @@ export declare const list: ((input?: {
|
|
|
98
98
|
readonly totalInteractions: number;
|
|
99
99
|
readonly lastActiveAt: string | null;
|
|
100
100
|
};
|
|
101
|
+
readonly lists: readonly {
|
|
102
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
103
|
+
readonly name: string;
|
|
104
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
105
|
+
}[];
|
|
101
106
|
}[];
|
|
102
107
|
readonly pagination: {
|
|
103
108
|
readonly page: number;
|
|
@@ -105,7 +110,7 @@ export declare const list: ((input?: {
|
|
|
105
110
|
readonly total: number;
|
|
106
111
|
readonly totalPages: number;
|
|
107
112
|
};
|
|
108
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
113
|
+
}, 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>) & {
|
|
109
114
|
readonly pages: (input?: {
|
|
110
115
|
readonly page?: string | null | undefined;
|
|
111
116
|
readonly limit?: string | null | undefined;
|
|
@@ -206,6 +211,11 @@ export declare const list: ((input?: {
|
|
|
206
211
|
readonly totalInteractions: number;
|
|
207
212
|
readonly lastActiveAt: string | null;
|
|
208
213
|
};
|
|
214
|
+
readonly lists: readonly {
|
|
215
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
216
|
+
readonly name: string;
|
|
217
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
218
|
+
}[];
|
|
209
219
|
}[];
|
|
210
220
|
readonly pagination: {
|
|
211
221
|
readonly page: number;
|
|
@@ -213,7 +223,7 @@ export declare const list: ((input?: {
|
|
|
213
223
|
readonly total: number;
|
|
214
224
|
readonly totalPages: number;
|
|
215
225
|
};
|
|
216
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
226
|
+
}, 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>;
|
|
217
227
|
readonly items: (input?: {
|
|
218
228
|
readonly page?: string | null | undefined;
|
|
219
229
|
readonly limit?: string | null | undefined;
|
|
@@ -313,7 +323,12 @@ export declare const list: ((input?: {
|
|
|
313
323
|
readonly totalInteractions: number;
|
|
314
324
|
readonly lastActiveAt: string | null;
|
|
315
325
|
};
|
|
316
|
-
|
|
326
|
+
readonly lists: readonly {
|
|
327
|
+
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
328
|
+
readonly name: string;
|
|
329
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
330
|
+
}[];
|
|
331
|
+
}, 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>;
|
|
317
332
|
};
|
|
318
333
|
export declare const create: (input: {
|
|
319
334
|
readonly type: string;
|
|
@@ -557,7 +572,7 @@ export declare const create: (input: {
|
|
|
557
572
|
readonly updatedAt: string;
|
|
558
573
|
readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
559
574
|
readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
560
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
575
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
561
576
|
export declare const find: (input?: {
|
|
562
577
|
readonly email?: string | null | undefined;
|
|
563
578
|
readonly phone?: string | null | undefined;
|
|
@@ -649,7 +664,7 @@ export declare const find: (input?: {
|
|
|
649
664
|
readonly updatedAt: string;
|
|
650
665
|
readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
651
666
|
readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
652
|
-
} | null, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
667
|
+
} | null, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
653
668
|
export declare const findOrCreate: (input?: {
|
|
654
669
|
readonly email?: string | null | undefined;
|
|
655
670
|
readonly phone?: string | null | undefined;
|
|
@@ -743,7 +758,7 @@ export declare const findOrCreate: (input?: {
|
|
|
743
758
|
readonly updatedAt: string;
|
|
744
759
|
readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
745
760
|
readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
746
|
-
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
761
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
747
762
|
export declare const get: (input: {
|
|
748
763
|
readonly id: string;
|
|
749
764
|
}) => import("effect/Effect").Effect<{
|
|
@@ -833,12 +848,12 @@ export declare const get: (input: {
|
|
|
833
848
|
readonly updatedAt: string;
|
|
834
849
|
readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
835
850
|
readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
836
|
-
}, 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>;
|
|
851
|
+
}, 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>;
|
|
837
852
|
export declare const remove: (input: {
|
|
838
853
|
readonly id: string;
|
|
839
854
|
}) => import("effect/Effect").Effect<{
|
|
840
855
|
readonly success: boolean;
|
|
841
|
-
}, 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>;
|
|
856
|
+
}, 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>;
|
|
842
857
|
export declare const update: (input: {
|
|
843
858
|
readonly id: string;
|
|
844
859
|
readonly type?: string | null | undefined;
|
|
@@ -1082,7 +1097,7 @@ export declare const update: (input: {
|
|
|
1082
1097
|
readonly updatedAt: string;
|
|
1083
1098
|
readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
1084
1099
|
readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
1085
|
-
}, 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>;
|
|
1100
|
+
}, 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>;
|
|
1086
1101
|
export declare const getEngagement: (input: {
|
|
1087
1102
|
readonly id: string;
|
|
1088
1103
|
}) => import("effect/Effect").Effect<{
|
|
@@ -1094,7 +1109,7 @@ export declare const getEngagement: (input: {
|
|
|
1094
1109
|
readonly channelsUsed: {
|
|
1095
1110
|
readonly [x: string]: number;
|
|
1096
1111
|
};
|
|
1097
|
-
}, 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>;
|
|
1112
|
+
}, 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>;
|
|
1098
1113
|
export declare const bulkImport: (input: {
|
|
1099
1114
|
readonly contacts: readonly {
|
|
1100
1115
|
readonly name: string;
|
|
@@ -1144,13 +1159,13 @@ export declare const bulkImport: (input: {
|
|
|
1144
1159
|
readonly contactId?: (string & import("effect/Brand").Brand<"ContactId">) | null;
|
|
1145
1160
|
readonly error?: string | null;
|
|
1146
1161
|
}[];
|
|
1147
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1162
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1148
1163
|
export declare const bulkDelete: (input: {
|
|
1149
1164
|
readonly ids: readonly string[];
|
|
1150
1165
|
}) => import("effect/Effect").Effect<{
|
|
1151
1166
|
readonly deleted: number;
|
|
1152
1167
|
readonly failed: number;
|
|
1153
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1168
|
+
}, import("./generated").BillingProviderError | 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>;
|
|
1154
1169
|
export declare const bulkUpdateTags: (input: {
|
|
1155
1170
|
readonly ids: readonly string[];
|
|
1156
1171
|
readonly operation: string;
|
|
@@ -1158,14 +1173,14 @@ export declare const bulkUpdateTags: (input: {
|
|
|
1158
1173
|
}) => import("effect/Effect").Effect<{
|
|
1159
1174
|
readonly updated: number;
|
|
1160
1175
|
readonly failed: number;
|
|
1161
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1176
|
+
}, 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>;
|
|
1162
1177
|
export declare const bulkUpdateStatus: (input: {
|
|
1163
1178
|
readonly ids: readonly string[];
|
|
1164
1179
|
readonly status: string;
|
|
1165
1180
|
}) => import("effect/Effect").Effect<{
|
|
1166
1181
|
readonly updated: number;
|
|
1167
1182
|
readonly failed: number;
|
|
1168
|
-
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1183
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1169
1184
|
declare const exportContacts: (input?: {
|
|
1170
1185
|
readonly ids?: readonly string[] | null | undefined;
|
|
1171
1186
|
readonly format?: string | null | undefined;
|
|
@@ -1179,7 +1194,7 @@ declare const exportContacts: (input?: {
|
|
|
1179
1194
|
readonly data: string;
|
|
1180
1195
|
readonly format: "csv" | "json";
|
|
1181
1196
|
readonly count: number;
|
|
1182
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1197
|
+
}, 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>;
|
|
1183
1198
|
export { exportContacts as export };
|
|
1184
1199
|
export declare const getActivityTimeline: ((input: {
|
|
1185
1200
|
readonly id: string;
|
|
@@ -1203,7 +1218,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
1203
1218
|
readonly total: number;
|
|
1204
1219
|
readonly totalPages: number;
|
|
1205
1220
|
};
|
|
1206
|
-
}, 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>) & {
|
|
1221
|
+
}, 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>) & {
|
|
1207
1222
|
readonly pages: (input: {
|
|
1208
1223
|
readonly id: string;
|
|
1209
1224
|
readonly page?: string | null | undefined;
|
|
@@ -1226,7 +1241,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
1226
1241
|
readonly total: number;
|
|
1227
1242
|
readonly totalPages: number;
|
|
1228
1243
|
};
|
|
1229
|
-
}, 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>;
|
|
1244
|
+
}, 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>;
|
|
1230
1245
|
readonly items: (input: {
|
|
1231
1246
|
readonly id: string;
|
|
1232
1247
|
readonly page?: string | null | undefined;
|
|
@@ -1241,7 +1256,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
1241
1256
|
readonly snippet: string | null;
|
|
1242
1257
|
readonly createdAt: string;
|
|
1243
1258
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1244
|
-
}, 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>;
|
|
1259
|
+
}, 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>;
|
|
1245
1260
|
};
|
|
1246
1261
|
export declare const getGroupMemberships: (input: {
|
|
1247
1262
|
readonly id: string;
|
|
@@ -1250,7 +1265,8 @@ export declare const getGroupMemberships: (input: {
|
|
|
1250
1265
|
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
1251
1266
|
readonly name: string;
|
|
1252
1267
|
readonly type: string;
|
|
1268
|
+
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
1253
1269
|
readonly role: string;
|
|
1254
1270
|
readonly joinedAt: string;
|
|
1255
1271
|
}[];
|
|
1256
|
-
}, 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>;
|
|
1272
|
+
}, 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/contacts.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/contacts.ts
|
|
4
4
|
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
bulkDelete: () => bulkDelete,
|