samva 0.22.0 → 0.22.1

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.
@@ -3,27 +3,7 @@ export declare const list: ((input?: {
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
5
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 nextCursor: string | null;
26
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
6
+ } | undefined) => import("./internal/operation").OperationResult<"contactGroupsList">) & {
27
7
  readonly pages: (input?: {
28
8
  readonly limit?: string | null | undefined;
29
9
  readonly cursor?: string | null | undefined;
@@ -109,44 +89,10 @@ export declare const create: (input: {
109
89
  readonly icon?: string | null | undefined;
110
90
  readonly parentGroupId?: string | null | undefined;
111
91
  readonly isActive?: boolean | null | undefined;
112
- }) => import("effect/Effect").Effect<{
113
- readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
114
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
115
- readonly name: string;
116
- readonly description: string | null;
117
- readonly type: "dynamic" | "smart" | "static";
118
- readonly criteria: {
119
- readonly [x: string]: import("./generated").JsonValue;
120
- } | null;
121
- readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
122
- readonly icon: string | null;
123
- readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
124
- readonly contactCount: number;
125
- readonly lastCalculatedAt: string | null;
126
- readonly isActive: boolean;
127
- readonly createdAt: string;
128
- readonly updatedAt: string;
129
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
92
+ }) => import("./internal/operation").OperationResult<"contactGroupsCreate">;
130
93
  export declare const getById: (input: {
131
94
  readonly id: string;
132
- }) => import("effect/Effect").Effect<{
133
- readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
134
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
135
- readonly name: string;
136
- readonly description: string | null;
137
- readonly type: "dynamic" | "smart" | "static";
138
- readonly criteria: {
139
- readonly [x: string]: import("./generated").JsonValue;
140
- } | null;
141
- readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
142
- readonly icon: string | null;
143
- readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
144
- readonly contactCount: number;
145
- readonly lastCalculatedAt: string | null;
146
- readonly isActive: boolean;
147
- readonly createdAt: string;
148
- readonly updatedAt: string;
149
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
95
+ }) => import("./internal/operation").OperationResult<"contactGroupsGetById">;
150
96
  export declare const update: (input: {
151
97
  readonly id: string;
152
98
  readonly name?: string | null | undefined;
@@ -183,29 +129,10 @@ export declare const update: (input: {
183
129
  readonly icon?: string | null | undefined;
184
130
  readonly parentGroupId?: string | null | undefined;
185
131
  readonly isActive?: boolean | null | undefined;
186
- }) => import("effect/Effect").Effect<{
187
- readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
188
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
189
- readonly name: string;
190
- readonly description: string | null;
191
- readonly type: "dynamic" | "smart" | "static";
192
- readonly criteria: {
193
- readonly [x: string]: import("./generated").JsonValue;
194
- } | null;
195
- readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
196
- readonly icon: string | null;
197
- readonly parentGroupId: (string & import("effect/Brand").Brand<"ContactGroupId">) | null;
198
- readonly contactCount: number;
199
- readonly lastCalculatedAt: string | null;
200
- readonly isActive: boolean;
201
- readonly createdAt: string;
202
- readonly updatedAt: string;
203
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
132
+ }) => import("./internal/operation").OperationResult<"contactGroupsUpdate">;
204
133
  export declare const remove: (input: {
205
134
  readonly id: string;
206
- }) => import("effect/Effect").Effect<{
207
- readonly success: boolean;
208
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
135
+ }) => import("./internal/operation").OperationResult<"contactGroupsRemove">;
209
136
  export declare const preview: (input: {
210
137
  readonly criteria: {
211
138
  readonly tags?: readonly string[] | null | undefined;
@@ -239,62 +166,15 @@ export declare const preview: (input: {
239
166
  } | null;
240
167
  }[] | null | undefined;
241
168
  };
242
- }) => import("effect/Effect").Effect<{
243
- readonly count: number;
244
- readonly sample: readonly {
245
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
246
- readonly name: string;
247
- readonly status: string;
248
- }[];
249
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
169
+ }) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
250
170
  export declare const evaluateDynamic: (input: {
251
171
  readonly id: string;
252
- }) => import("effect/Effect").Effect<{
253
- readonly added: number;
254
- readonly removed: number;
255
- readonly total: number;
256
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
172
+ }) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
257
173
  export declare const getMembers: ((input: {
258
174
  readonly id: string;
259
175
  readonly limit?: string | null | undefined;
260
176
  readonly cursor?: string | null | undefined;
261
- }) => import("effect/Effect").Effect<{
262
- readonly items: readonly {
263
- readonly id: string;
264
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
265
- readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
266
- readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
267
- readonly role: "admin" | "member" | "moderator";
268
- readonly joinedAt: string;
269
- readonly joinedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
270
- readonly expiresAt: string | null;
271
- readonly contact: {
272
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
273
- readonly name: string;
274
- readonly displayName: string | null;
275
- readonly type: string;
276
- readonly identities?: readonly {
277
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
278
- readonly type: "email" | "phone";
279
- readonly identifier: string;
280
- readonly verified: boolean;
281
- readonly channels: readonly {
282
- readonly channel: "email";
283
- readonly reachability: "reachable" | "unknown" | "unreachable";
284
- readonly consent: {
285
- readonly status: "opted_in" | "opted_out";
286
- readonly source: string;
287
- readonly capturedAt: string;
288
- readonly proof: {
289
- readonly [x: string]: import("./generated").JsonValue;
290
- } | null;
291
- } | null;
292
- }[];
293
- }[] | null;
294
- } | null;
295
- }[];
296
- readonly nextCursor: string | null;
297
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
177
+ }) => import("./internal/operation").OperationResult<"contactGroupsGetMembers">) & {
298
178
  readonly pages: (input: {
299
179
  readonly id: string;
300
180
  readonly limit?: string | null | undefined;
@@ -379,13 +259,8 @@ export declare const addMembers: (input: {
379
259
  readonly id: string;
380
260
  readonly contactIds: readonly string[];
381
261
  readonly role?: "admin" | "member" | "moderator" | null | undefined;
382
- }) => import("effect/Effect").Effect<{
383
- readonly added: number;
384
- readonly skipped: number;
385
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
262
+ }) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
386
263
  export declare const removeMembers: (input: {
387
264
  readonly id: string;
388
265
  readonly contactIds: readonly string[];
389
- }) => import("effect/Effect").Effect<{
390
- readonly removed: number;
391
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
266
+ }) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;