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.
@@ -1,73 +1,24 @@
1
- export declare const list: (_?: never) => import("effect/Effect").Effect<{
2
- readonly items: readonly {
3
- readonly id: string & import("effect/Brand").Brand<"UnsubscribeId">;
4
- readonly organizationId: string;
5
- readonly name: string;
6
- readonly description: string | null;
7
- readonly isDefault: boolean;
8
- readonly memberCount: number;
9
- readonly createdAt: string;
10
- readonly updatedAt: string;
11
- }[];
12
- }, 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>;
1
+ export declare const list: (_?: never) => import("./internal/operation").OperationResult<"unsubscribeList">;
13
2
  export declare const create: (input: {
14
3
  readonly name: string;
15
4
  readonly description?: string | null | undefined;
16
- }) => import("effect/Effect").Effect<{
17
- readonly id: string & import("effect/Brand").Brand<"UnsubscribeId">;
18
- readonly organizationId: string;
19
- readonly name: string;
20
- readonly description: string | null;
21
- readonly isDefault: boolean;
22
- readonly memberCount: number;
23
- readonly createdAt: string;
24
- readonly updatedAt: string;
25
- }, import("./errors").ConflictError | 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>;
5
+ }) => import("./internal/operation").OperationResult<"unsubscribeCreate">;
26
6
  export declare const update: (input: {
27
7
  readonly id: string;
28
8
  readonly name?: string | null | undefined;
29
9
  readonly description?: string | null | undefined;
30
- }) => import("effect/Effect").Effect<{
31
- readonly id: string & import("effect/Brand").Brand<"UnsubscribeId">;
32
- readonly organizationId: string;
33
- readonly name: string;
34
- readonly description: string | null;
35
- readonly isDefault: boolean;
36
- readonly memberCount: number;
37
- readonly createdAt: string;
38
- readonly updatedAt: string;
39
- }, 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>;
10
+ }) => import("./internal/operation").OperationResult<"unsubscribeUpdate">;
40
11
  export declare const remove: (input: {
41
12
  readonly id: string;
42
- }) => import("effect/Effect").Effect<{
43
- readonly success: boolean;
44
- }, import("./errors").ConflictError | 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>;
13
+ }) => import("./internal/operation").OperationResult<"unsubscribeRemove">;
45
14
  export declare const setDefault: (input: {
46
15
  readonly id: string;
47
- }) => import("effect/Effect").Effect<{
48
- readonly id: string & import("effect/Brand").Brand<"UnsubscribeId">;
49
- readonly organizationId: string;
50
- readonly name: string;
51
- readonly description: string | null;
52
- readonly isDefault: boolean;
53
- readonly memberCount: number;
54
- readonly createdAt: string;
55
- readonly updatedAt: string;
56
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
16
+ }) => import("./internal/operation").OperationResult<"unsubscribeSetDefault">;
57
17
  export declare const listMembers: ((input: {
58
18
  readonly id: string;
59
19
  readonly limit?: string | null | undefined;
60
20
  readonly cursor?: string | null | undefined;
61
- }) => import("effect/Effect").Effect<{
62
- readonly items: readonly {
63
- readonly id: string & import("effect/Brand").Brand<"UnsubscribeGroupMemberId">;
64
- readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
65
- readonly source: "api" | "complaint" | "link" | "manual";
66
- readonly unsubscribedAt: string;
67
- readonly createdAt: string;
68
- }[];
69
- readonly nextCursor: string | null;
70
- }, 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>) & {
21
+ }) => import("./internal/operation").OperationResult<"unsubscribeListMembers">) & {
71
22
  readonly pages: (input: {
72
23
  readonly id: string;
73
24
  readonly limit?: string | null | undefined;
@@ -104,10 +55,7 @@ export declare const addMembers: (input: {
104
55
  readonly phone: string;
105
56
  })[];
106
57
  readonly source?: "api" | "complaint" | "link" | "manual" | null | undefined;
107
- }) => import("effect/Effect").Effect<{
108
- readonly added: number;
109
- readonly skipped: number;
110
- }, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
58
+ }) => import("./internal/operation").OperationResult<"unsubscribeAddMembers">;
111
59
  export declare const removeMembers: (input: {
112
60
  readonly id: string;
113
61
  readonly members: readonly ({
@@ -117,19 +65,10 @@ export declare const removeMembers: (input: {
117
65
  } | {
118
66
  readonly phone: string;
119
67
  })[];
120
- }) => import("effect/Effect").Effect<{
121
- readonly removed: number;
122
- }, 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>;
68
+ }) => import("./internal/operation").OperationResult<"unsubscribeRemoveMembers">;
123
69
  export declare const checkSubscription: (input?: {
124
70
  readonly contactId?: string | null | undefined;
125
71
  readonly email?: string | null | undefined;
126
72
  readonly phone?: string | null | undefined;
127
73
  readonly groupIds?: string | null | undefined;
128
- } | undefined) => import("effect/Effect").Effect<{
129
- readonly contactId: (string & import("effect/Brand").Brand<"ContactId">) | null;
130
- readonly unsubscribedGroups: readonly {
131
- readonly groupId: string;
132
- readonly groupName: string;
133
- readonly unsubscribedAt: string;
134
- }[];
135
- }, 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>;
74
+ } | undefined) => import("./internal/operation").OperationResult<"unsubscribeCheckSubscription">;
@@ -4,31 +4,7 @@ export declare const list: ((input?: {
4
4
  readonly cursor?: string | null | undefined;
5
5
  readonly search?: string | null | undefined;
6
6
  readonly status?: "active" | "disabled" | null | undefined;
7
- } | undefined) => import("effect/Effect").Effect<{
8
- readonly items: readonly {
9
- readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
10
- readonly name: string;
11
- readonly url: string;
12
- readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
13
- readonly channels: readonly "email"[] | null;
14
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
15
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
16
- readonly status: "active" | "disabled";
17
- readonly hasCustomHeaders: boolean;
18
- readonly failureStartedAt: string | null;
19
- readonly lastSucceededAt: string | null;
20
- readonly createdAt: string;
21
- readonly updatedAt: string;
22
- readonly deliveries: {
23
- readonly total: number;
24
- readonly pending: number;
25
- readonly delivered: number;
26
- readonly exhausted: number;
27
- readonly cancelled: number;
28
- };
29
- }[];
30
- readonly nextCursor: string | null;
31
- }, 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>) & {
7
+ } | undefined) => import("./internal/operation").OperationResult<"webhooksList">) & {
32
8
  readonly pages: (input?: {
33
9
  readonly limit?: string | null | undefined;
34
10
  readonly cursor?: string | null | undefined;
@@ -98,53 +74,16 @@ export declare const create: (input: {
98
74
  readonly [x: string]: string | undefined;
99
75
  } | null | undefined;
100
76
  readonly status?: "active" | "disabled" | null | undefined;
101
- }) => import("effect/Effect").Effect<{
102
- readonly endpoint: {
103
- readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
104
- readonly name: string;
105
- readonly url: string;
106
- readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
107
- readonly channels: readonly "email"[] | null;
108
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
109
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
110
- readonly status: "active" | "disabled";
111
- readonly hasCustomHeaders: boolean;
112
- readonly failureStartedAt: string | null;
113
- readonly lastSucceededAt: string | null;
114
- readonly createdAt: string;
115
- readonly updatedAt: string;
116
- };
117
- readonly secret: import("effect/Redacted").Redacted<string>;
118
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
77
+ }) => import("./internal/operation").OperationResult<"webhooksCreate">;
119
78
  export declare const getSecret: (input: {
120
79
  readonly id: string;
121
- }) => import("effect/Effect").Effect<{
122
- readonly secret: import("effect/Redacted").Redacted<string>;
123
- readonly createdAt: string;
124
- readonly previousExpiresAt: string | null;
125
- }, 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>;
80
+ }) => import("./internal/operation").OperationResult<"webhooksGetSecret">;
126
81
  export declare const get: (input: {
127
82
  readonly id: string;
128
- }) => import("effect/Effect").Effect<{
129
- readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
130
- readonly name: string;
131
- readonly url: string;
132
- readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
133
- readonly channels: readonly "email"[] | null;
134
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
135
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
136
- readonly status: "active" | "disabled";
137
- readonly hasCustomHeaders: boolean;
138
- readonly failureStartedAt: string | null;
139
- readonly lastSucceededAt: string | null;
140
- readonly createdAt: string;
141
- readonly updatedAt: string;
142
- }, 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>;
83
+ }) => import("./internal/operation").OperationResult<"webhooksGet">;
143
84
  export declare const remove: (input: {
144
85
  readonly id: string;
145
- }) => import("effect/Effect").Effect<{
146
- readonly success: boolean;
147
- }, import("./errors").BillingProviderError | 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>;
86
+ }) => import("./internal/operation").OperationResult<"webhooksRemove">;
148
87
  export declare const update: (input: {
149
88
  readonly id: string;
150
89
  readonly name?: string | null | undefined;
@@ -157,21 +96,7 @@ export declare const update: (input: {
157
96
  readonly [x: string]: string | undefined;
158
97
  } | null | undefined;
159
98
  readonly status?: "active" | "disabled" | null | undefined;
160
- }) => import("effect/Effect").Effect<{
161
- readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
162
- readonly name: string;
163
- readonly url: string;
164
- readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
165
- readonly channels: readonly "email"[] | null;
166
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
167
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
168
- readonly status: "active" | "disabled";
169
- readonly hasCustomHeaders: boolean;
170
- readonly failureStartedAt: string | null;
171
- readonly lastSucceededAt: string | null;
172
- readonly createdAt: string;
173
- readonly updatedAt: string;
174
- }, import("./errors").ConflictError | 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>;
99
+ }) => import("./internal/operation").OperationResult<"webhooksUpdate">;
175
100
  export declare const test: (input: {
176
101
  readonly id: string;
177
102
  readonly data?: {
@@ -201,47 +126,12 @@ export declare const test: (input: {
201
126
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
202
127
  } | null | undefined;
203
128
  } | null | undefined;
204
- }) => import("effect/Effect").Effect<{
205
- readonly accepted: true;
206
- readonly eventId: string & import("effect/Brand").Brand<"WebhookEventId">;
207
- readonly deliveryId: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
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>;
129
+ }) => import("./internal/operation").OperationResult<"webhooksTest">;
209
130
  export declare const getLogs: ((input: {
210
131
  readonly id: string;
211
132
  readonly limit?: string | null | undefined;
212
133
  readonly cursor?: string | null | undefined;
213
- }) => import("effect/Effect").Effect<{
214
- readonly items: readonly {
215
- readonly id: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
216
- readonly eventId: string & import("effect/Brand").Brand<"WebhookEventId">;
217
- readonly eventType: string;
218
- readonly occurredAt: string;
219
- readonly endpointId: string & import("effect/Brand").Brand<"WebhookEndpointId">;
220
- readonly status: "cancelled" | "delivered" | "exhausted" | "pending";
221
- readonly automaticAttempts: number;
222
- readonly nextAttemptAt: string | null;
223
- readonly completedAt: string | null;
224
- readonly createdAt: string;
225
- readonly updatedAt: string;
226
- readonly attempts: readonly {
227
- readonly id: string & import("effect/Brand").Brand<"WebhookAttemptId">;
228
- readonly deliveryId: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
229
- readonly kind: "automatic" | "manual";
230
- readonly attemptNumber: number;
231
- readonly classification: "cancelled" | "http-error" | "network-error" | "success" | "timeout";
232
- readonly attemptedAt: string;
233
- readonly responseStatus: number | null;
234
- readonly responseHeaders: {
235
- readonly [x: string]: string;
236
- } | null;
237
- readonly durationMs: number | null;
238
- readonly errorCode: string | null;
239
- readonly errorMessage: string | null;
240
- readonly createdAt: string;
241
- }[];
242
- }[];
243
- readonly nextCursor: string | null;
244
- }, 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>) & {
134
+ }) => import("./internal/operation").OperationResult<"webhooksGetLogs">) & {
245
135
  readonly pages: (input: {
246
136
  readonly id: string;
247
137
  readonly limit?: string | null | undefined;
@@ -316,31 +206,11 @@ export declare const getStats: (input: {
316
206
  readonly id: string;
317
207
  readonly after?: string | null | undefined;
318
208
  readonly before?: string | null | undefined;
319
- }) => import("effect/Effect").Effect<{
320
- readonly total: number;
321
- readonly pending: number;
322
- readonly delivered: number;
323
- readonly exhausted: number;
324
- readonly cancelled: number;
325
- readonly daily: readonly {
326
- readonly date: string;
327
- readonly pending: number;
328
- readonly delivered: number;
329
- readonly exhausted: number;
330
- readonly cancelled: number;
331
- }[];
332
- }, 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>;
209
+ }) => import("./internal/operation").OperationResult<"webhooksGetStats">;
333
210
  export declare const retryDelivery: (input: {
334
211
  readonly id: string;
335
212
  readonly deliveryId: string;
336
- }) => import("effect/Effect").Effect<{
337
- readonly accepted: true;
338
- readonly deliveryId: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
339
- readonly attemptId: string & import("effect/Brand").Brand<"WebhookAttemptId">;
340
- readonly outcome: "failed" | "succeeded";
341
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
213
+ }) => import("./internal/operation").OperationResult<"webhooksRetryDelivery">;
342
214
  export declare const regenerateSecret: (input: {
343
215
  readonly id: string;
344
- }) => import("effect/Effect").Effect<{
345
- readonly secret: import("effect/Redacted").Redacted<string>;
346
- }, 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>;
216
+ }) => import("./internal/operation").OperationResult<"webhooksRegenerateSecret">;
@@ -1,46 +1 @@
1
- export declare const get: (_?: never) => import("effect/Effect").Effect<{
2
- readonly organization: {
3
- readonly id: string & import("effect/Brand").Brand<"OrganizationId">;
4
- readonly slug: string;
5
- readonly name: string;
6
- };
7
- readonly credential: {
8
- readonly type: "apiKey";
9
- readonly id: string;
10
- readonly name: string;
11
- readonly start: string | null;
12
- readonly access: {
13
- readonly mode: "full";
14
- } | {
15
- readonly mode: "restricted";
16
- readonly resources: {
17
- readonly messages?: "read" | "write" | null;
18
- readonly email?: "read" | "write" | null;
19
- readonly domains?: "read" | "write" | null;
20
- readonly phoneNumbers?: "read" | "write" | null;
21
- readonly contacts?: "read" | "write" | null;
22
- readonly conversations?: "read" | "write" | null;
23
- readonly templates?: "read" | "write" | null;
24
- readonly webhooks?: "read" | "write" | null;
25
- readonly apiKeys?: "read" | "write" | null;
26
- readonly organization?: "read" | "write" | null;
27
- readonly billing?: "read" | "write" | null;
28
- readonly analytics?: "read" | "write" | null;
29
- };
30
- readonly mailboxes?: {
31
- readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
32
- readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
33
- readonly sendMode?: "approval" | "send" | null;
34
- } | null;
35
- readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
36
- };
37
- } | {
38
- readonly type: "user";
39
- readonly user: {
40
- readonly id: string;
41
- readonly name: string;
42
- readonly email: string;
43
- };
44
- readonly role: "admin" | "member" | "owner";
45
- };
46
- }, 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>;
1
+ export declare const get: (_?: never) => import("./internal/operation").OperationResult<"whoamiGet">;
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.22.0";
2
+ var version = "0.22.1";
3
3
  //#endregion
4
4
  export { version };
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "TypeScript SDK for the Samva email API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -202,20 +202,20 @@
202
202
  "typecheck": "tsc --noEmit && tsc --noEmit -p codegen/tsconfig.json && tsc --noEmit -p tests/tsconfig.json"
203
203
  },
204
204
  "dependencies": {
205
- "@samva/webhooks": "0.22.0"
205
+ "@samva/webhooks": "0.22.1"
206
206
  },
207
207
  "devDependencies": {
208
- "@effect/openapi-generator": "4.0.0",
209
- "@effect/platform-node": "4.0.0",
210
- "@effect/vitest": "4.0.0",
208
+ "@effect/openapi-generator": "4.0.4",
209
+ "@effect/platform-node": "4.0.4",
210
+ "@effect/vitest": "4.0.4",
211
211
  "@types/node": "^26.6.2",
212
- "effect": "4.0.0",
212
+ "effect": "4.0.4",
213
213
  "tsdown": "^0.22.13",
214
214
  "typescript": "^7.0.2",
215
215
  "vitest": "^5.0.3"
216
216
  },
217
217
  "peerDependencies": {
218
- "effect": "4.0.0"
218
+ "effect": "4.0.4"
219
219
  },
220
220
  "peerDependenciesMeta": {
221
221
  "effect": {