samva 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{categories-4u9Az4No.js → categories-DvsHUJtX.js} +9 -1
- package/dist/client/sdk.gen.d.ts +119 -33
- package/dist/client/types.gen.d.ts +643 -142
- package/dist/{client-DCM6U0-I.js → client-ByJHYp7r.js} +612 -223
- package/dist/{client-attribution-DYUSAa76.js → client-attribution-N5A784Zo.js} +2 -2
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +212 -0
- package/dist/effect/brands.js +24 -0
- package/dist/effect/campaigns.d.ts +35 -1
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +21 -12
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.d.ts +17 -6
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated-metadata.d.ts +8 -0
- package/dist/effect/generated.d.ts +2880 -1661
- package/dist/effect/index.d.ts +2 -2
- package/dist/effect/index.js +4 -4
- package/dist/effect/internal/operation.d.ts +10 -4
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +24 -6
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +5 -268
- package/dist/effect/organizations.js +4 -2
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +16 -0
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +260 -38
- package/dist/effect/templates.js +7 -3
- package/dist/effect/unsubscribe-groups.d.ts +17 -0
- package/dist/effect/unsubscribe-groups.js +4 -2
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{operation-02YX3hY9.js → operation-D2nEeKBD.js} +34 -5
- package/dist/promises/errors.gen.d.ts +22 -4
- package/dist/promises/index.d.ts +3 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-8MaPNAam.js → promises-DAv8ZtOX.js} +376 -52
- package/dist/service-map.d.ts +45 -6
- package/package.json +7 -7
- package/dist/effect/design.d.ts +0 -209
- package/dist/effect/design.js +0 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#endregion
|
|
2
2
|
//#region src/client-attribution.ts
|
|
3
|
-
const SDK_VERSION = "0.
|
|
3
|
+
const SDK_VERSION = "0.8.0";
|
|
4
4
|
const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
|
|
5
5
|
const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { clientAttribution as n, CLIENT_ATTRIBUTION_HEADER as t };
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=client-attribution-
|
|
9
|
+
//# sourceMappingURL=client-attribution-N5A784Zo.js.map
|
package/dist/effect/analytics.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/analytics.ts
|
|
4
4
|
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
exportData: () => exportData,
|
package/dist/effect/api-keys.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/api-keys.ts
|
|
4
4
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
@@ -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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/attachments.ts
|
|
4
4
|
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
downloadUrl: () => downloadUrl,
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated";
|
|
2
|
+
export declare const list: (_?: never) => import("effect/Effect").Effect<{
|
|
3
|
+
readonly items: readonly {
|
|
4
|
+
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
5
|
+
readonly slug: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly isDefault: boolean;
|
|
8
|
+
readonly css: string;
|
|
9
|
+
readonly assets: {
|
|
10
|
+
readonly logoUrl?: string | null;
|
|
11
|
+
readonly logoDarkUrl?: string | null;
|
|
12
|
+
readonly iconUrl?: string | null;
|
|
13
|
+
};
|
|
14
|
+
readonly footer: {
|
|
15
|
+
readonly companyName?: string | null;
|
|
16
|
+
readonly address?: {
|
|
17
|
+
readonly street1: string;
|
|
18
|
+
readonly street2?: string | null;
|
|
19
|
+
readonly city: string;
|
|
20
|
+
readonly region: string;
|
|
21
|
+
readonly postalCode: string;
|
|
22
|
+
readonly country: string;
|
|
23
|
+
} | null;
|
|
24
|
+
readonly socialLinks?: readonly {
|
|
25
|
+
readonly label: string;
|
|
26
|
+
readonly url: string;
|
|
27
|
+
}[] | null;
|
|
28
|
+
};
|
|
29
|
+
readonly digest: string;
|
|
30
|
+
readonly createdAt: string;
|
|
31
|
+
readonly updatedAt: string;
|
|
32
|
+
}[];
|
|
33
|
+
}, 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>;
|
|
34
|
+
export declare const create: (input: {
|
|
35
|
+
readonly slug: string;
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly css?: string | null | undefined;
|
|
38
|
+
readonly assets?: {
|
|
39
|
+
readonly logoUrl?: string | null | undefined;
|
|
40
|
+
readonly logoDarkUrl?: string | null | undefined;
|
|
41
|
+
readonly iconUrl?: string | null | undefined;
|
|
42
|
+
} | null | undefined;
|
|
43
|
+
readonly footer?: {
|
|
44
|
+
readonly companyName?: string | null | undefined;
|
|
45
|
+
readonly address?: {
|
|
46
|
+
readonly street1: string;
|
|
47
|
+
readonly street2?: string | null | undefined;
|
|
48
|
+
readonly city: string;
|
|
49
|
+
readonly region: string;
|
|
50
|
+
readonly postalCode: string;
|
|
51
|
+
readonly country: string;
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
readonly socialLinks?: readonly {
|
|
54
|
+
readonly label: string;
|
|
55
|
+
readonly url: string;
|
|
56
|
+
}[] | null | undefined;
|
|
57
|
+
} | null | undefined;
|
|
58
|
+
readonly isDefault?: boolean | null | undefined;
|
|
59
|
+
}) => import("effect/Effect").Effect<{
|
|
60
|
+
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
61
|
+
readonly slug: string;
|
|
62
|
+
readonly name: string;
|
|
63
|
+
readonly isDefault: boolean;
|
|
64
|
+
readonly css: string;
|
|
65
|
+
readonly assets: {
|
|
66
|
+
readonly logoUrl?: string | null;
|
|
67
|
+
readonly logoDarkUrl?: string | null;
|
|
68
|
+
readonly iconUrl?: string | null;
|
|
69
|
+
};
|
|
70
|
+
readonly footer: {
|
|
71
|
+
readonly companyName?: string | null;
|
|
72
|
+
readonly address?: {
|
|
73
|
+
readonly street1: string;
|
|
74
|
+
readonly street2?: string | null;
|
|
75
|
+
readonly city: string;
|
|
76
|
+
readonly region: string;
|
|
77
|
+
readonly postalCode: string;
|
|
78
|
+
readonly country: string;
|
|
79
|
+
} | null;
|
|
80
|
+
readonly socialLinks?: readonly {
|
|
81
|
+
readonly label: string;
|
|
82
|
+
readonly url: string;
|
|
83
|
+
}[] | null;
|
|
84
|
+
};
|
|
85
|
+
readonly digest: string;
|
|
86
|
+
readonly createdAt: string;
|
|
87
|
+
readonly updatedAt: string;
|
|
88
|
+
}, 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>;
|
|
89
|
+
export declare const get: (input: {
|
|
90
|
+
readonly slug: string;
|
|
91
|
+
}) => import("effect/Effect").Effect<{
|
|
92
|
+
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
93
|
+
readonly slug: string;
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly isDefault: boolean;
|
|
96
|
+
readonly css: string;
|
|
97
|
+
readonly assets: {
|
|
98
|
+
readonly logoUrl?: string | null;
|
|
99
|
+
readonly logoDarkUrl?: string | null;
|
|
100
|
+
readonly iconUrl?: string | null;
|
|
101
|
+
};
|
|
102
|
+
readonly footer: {
|
|
103
|
+
readonly companyName?: string | null;
|
|
104
|
+
readonly address?: {
|
|
105
|
+
readonly street1: string;
|
|
106
|
+
readonly street2?: string | null;
|
|
107
|
+
readonly city: string;
|
|
108
|
+
readonly region: string;
|
|
109
|
+
readonly postalCode: string;
|
|
110
|
+
readonly country: string;
|
|
111
|
+
} | null;
|
|
112
|
+
readonly socialLinks?: readonly {
|
|
113
|
+
readonly label: string;
|
|
114
|
+
readonly url: string;
|
|
115
|
+
}[] | null;
|
|
116
|
+
};
|
|
117
|
+
readonly digest: string;
|
|
118
|
+
readonly createdAt: string;
|
|
119
|
+
readonly updatedAt: string;
|
|
120
|
+
}, 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>;
|
|
121
|
+
export declare const update: (input: {
|
|
122
|
+
readonly slug: string;
|
|
123
|
+
readonly newSlug?: string | null | undefined;
|
|
124
|
+
readonly name?: string | null | undefined;
|
|
125
|
+
readonly css?: string | null | undefined;
|
|
126
|
+
readonly assets?: {
|
|
127
|
+
readonly logoUrl?: string | null | undefined;
|
|
128
|
+
readonly logoDarkUrl?: string | null | undefined;
|
|
129
|
+
readonly iconUrl?: string | null | undefined;
|
|
130
|
+
} | null | undefined;
|
|
131
|
+
readonly footer?: {
|
|
132
|
+
readonly companyName?: string | null | undefined;
|
|
133
|
+
readonly address?: {
|
|
134
|
+
readonly street1: string;
|
|
135
|
+
readonly street2?: string | null | undefined;
|
|
136
|
+
readonly city: string;
|
|
137
|
+
readonly region: string;
|
|
138
|
+
readonly postalCode: string;
|
|
139
|
+
readonly country: string;
|
|
140
|
+
} | null | undefined;
|
|
141
|
+
readonly socialLinks?: readonly {
|
|
142
|
+
readonly label: string;
|
|
143
|
+
readonly url: string;
|
|
144
|
+
}[] | null | undefined;
|
|
145
|
+
} | null | undefined;
|
|
146
|
+
}) => import("effect/Effect").Effect<{
|
|
147
|
+
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
148
|
+
readonly slug: string;
|
|
149
|
+
readonly name: string;
|
|
150
|
+
readonly isDefault: boolean;
|
|
151
|
+
readonly css: string;
|
|
152
|
+
readonly assets: {
|
|
153
|
+
readonly logoUrl?: string | null;
|
|
154
|
+
readonly logoDarkUrl?: string | null;
|
|
155
|
+
readonly iconUrl?: string | null;
|
|
156
|
+
};
|
|
157
|
+
readonly footer: {
|
|
158
|
+
readonly companyName?: string | null;
|
|
159
|
+
readonly address?: {
|
|
160
|
+
readonly street1: string;
|
|
161
|
+
readonly street2?: string | null;
|
|
162
|
+
readonly city: string;
|
|
163
|
+
readonly region: string;
|
|
164
|
+
readonly postalCode: string;
|
|
165
|
+
readonly country: string;
|
|
166
|
+
} | null;
|
|
167
|
+
readonly socialLinks?: readonly {
|
|
168
|
+
readonly label: string;
|
|
169
|
+
readonly url: string;
|
|
170
|
+
}[] | null;
|
|
171
|
+
};
|
|
172
|
+
readonly digest: string;
|
|
173
|
+
readonly createdAt: string;
|
|
174
|
+
readonly updatedAt: string;
|
|
175
|
+
}, import("./generated").ConflictError | 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>;
|
|
176
|
+
export declare const remove: (input: {
|
|
177
|
+
readonly slug: string;
|
|
178
|
+
}) => import("effect/Effect").Effect<{
|
|
179
|
+
readonly success: boolean;
|
|
180
|
+
}, import("./generated").ConflictError | 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>;
|
|
181
|
+
export declare const setDefault: (input: {
|
|
182
|
+
readonly slug: string;
|
|
183
|
+
}) => import("effect/Effect").Effect<{
|
|
184
|
+
readonly id: string & import("effect/Brand").Brand<"BrandId">;
|
|
185
|
+
readonly slug: string;
|
|
186
|
+
readonly name: string;
|
|
187
|
+
readonly isDefault: boolean;
|
|
188
|
+
readonly css: string;
|
|
189
|
+
readonly assets: {
|
|
190
|
+
readonly logoUrl?: string | null;
|
|
191
|
+
readonly logoDarkUrl?: string | null;
|
|
192
|
+
readonly iconUrl?: string | null;
|
|
193
|
+
};
|
|
194
|
+
readonly footer: {
|
|
195
|
+
readonly companyName?: string | null;
|
|
196
|
+
readonly address?: {
|
|
197
|
+
readonly street1: string;
|
|
198
|
+
readonly street2?: string | null;
|
|
199
|
+
readonly city: string;
|
|
200
|
+
readonly region: string;
|
|
201
|
+
readonly postalCode: string;
|
|
202
|
+
readonly country: string;
|
|
203
|
+
} | null;
|
|
204
|
+
readonly socialLinks?: readonly {
|
|
205
|
+
readonly label: string;
|
|
206
|
+
readonly url: string;
|
|
207
|
+
}[] | null;
|
|
208
|
+
};
|
|
209
|
+
readonly digest: string;
|
|
210
|
+
readonly createdAt: string;
|
|
211
|
+
readonly updatedAt: string;
|
|
212
|
+
}, 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,24 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { n as make } from "../operation-D2nEeKBD.js";
|
|
3
|
+
import { O as UpdateBrand, u as CreateBrand } from "../client-ByJHYp7r.js";
|
|
4
|
+
//#region src/effect/brands.ts
|
|
5
|
+
var brands_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
CreatePayload: () => CreateBrand,
|
|
7
|
+
UpdatePayload: () => UpdateBrand,
|
|
8
|
+
create: () => create,
|
|
9
|
+
get: () => get,
|
|
10
|
+
list: () => list,
|
|
11
|
+
remove: () => remove,
|
|
12
|
+
setDefault: () => setDefault,
|
|
13
|
+
update: () => update
|
|
14
|
+
});
|
|
15
|
+
const list = make("brandsList");
|
|
16
|
+
const create = make("brandsCreate");
|
|
17
|
+
const get = make("brandsGet");
|
|
18
|
+
const update = make("brandsUpdate");
|
|
19
|
+
const remove = make("brandsRemove");
|
|
20
|
+
const setDefault = make("brandsSetDefault");
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload, create, get, list, remove, setDefault, brands_exports as t, update };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=brands.js.map
|
|
@@ -27,6 +27,8 @@ export declare const list: ((input?: {
|
|
|
27
27
|
readonly templateData?: {
|
|
28
28
|
readonly [x: string]: import("./generated").JsonValue;
|
|
29
29
|
} | null;
|
|
30
|
+
readonly locale?: string;
|
|
31
|
+
readonly timeZone?: string;
|
|
30
32
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
31
33
|
readonly replyTo?: readonly string[] | null;
|
|
32
34
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -111,6 +113,8 @@ export declare const list: ((input?: {
|
|
|
111
113
|
readonly templateData?: {
|
|
112
114
|
readonly [x: string]: import("./generated").JsonValue;
|
|
113
115
|
} | null;
|
|
116
|
+
readonly locale?: string;
|
|
117
|
+
readonly timeZone?: string;
|
|
114
118
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
115
119
|
readonly replyTo?: readonly string[] | null;
|
|
116
120
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -194,6 +198,8 @@ export declare const list: ((input?: {
|
|
|
194
198
|
readonly templateData?: {
|
|
195
199
|
readonly [x: string]: import("./generated").JsonValue;
|
|
196
200
|
} | null;
|
|
201
|
+
readonly locale?: string;
|
|
202
|
+
readonly timeZone?: string;
|
|
197
203
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
198
204
|
readonly replyTo?: readonly string[] | null;
|
|
199
205
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -290,6 +296,8 @@ export declare const create: (input: {
|
|
|
290
296
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
291
297
|
} | null | undefined;
|
|
292
298
|
} | null | undefined;
|
|
299
|
+
readonly locale?: string | undefined;
|
|
300
|
+
readonly timeZone?: string | undefined;
|
|
293
301
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
294
302
|
readonly replyTo?: readonly string[] | null | undefined;
|
|
295
303
|
readonly unsubscribeGroupId?: string | null | undefined;
|
|
@@ -364,6 +372,8 @@ export declare const create: (input: {
|
|
|
364
372
|
readonly templateData?: {
|
|
365
373
|
readonly [x: string]: import("./generated").JsonValue;
|
|
366
374
|
} | null;
|
|
375
|
+
readonly locale?: string;
|
|
376
|
+
readonly timeZone?: string;
|
|
367
377
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
368
378
|
readonly replyTo?: readonly string[] | null;
|
|
369
379
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -437,6 +447,8 @@ export declare const get: (input: {
|
|
|
437
447
|
readonly templateData?: {
|
|
438
448
|
readonly [x: string]: import("./generated").JsonValue;
|
|
439
449
|
} | null;
|
|
450
|
+
readonly locale?: string;
|
|
451
|
+
readonly timeZone?: string;
|
|
440
452
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
441
453
|
readonly replyTo?: readonly string[] | null;
|
|
442
454
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -510,6 +522,8 @@ export declare const archive: (input: {
|
|
|
510
522
|
readonly templateData?: {
|
|
511
523
|
readonly [x: string]: import("./generated").JsonValue;
|
|
512
524
|
} | null;
|
|
525
|
+
readonly locale?: string;
|
|
526
|
+
readonly timeZone?: string;
|
|
513
527
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
514
528
|
readonly replyTo?: readonly string[] | null;
|
|
515
529
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -604,6 +618,8 @@ export declare const update: (input: {
|
|
|
604
618
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
605
619
|
} | null | undefined;
|
|
606
620
|
} | null | undefined;
|
|
621
|
+
readonly locale?: string | undefined;
|
|
622
|
+
readonly timeZone?: string | undefined;
|
|
607
623
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
608
624
|
readonly replyTo?: readonly string[] | null | undefined;
|
|
609
625
|
readonly unsubscribeGroupId?: string | null | undefined;
|
|
@@ -678,6 +694,8 @@ export declare const update: (input: {
|
|
|
678
694
|
readonly templateData?: {
|
|
679
695
|
readonly [x: string]: import("./generated").JsonValue;
|
|
680
696
|
} | null;
|
|
697
|
+
readonly locale?: string;
|
|
698
|
+
readonly timeZone?: string;
|
|
681
699
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
682
700
|
readonly replyTo?: readonly string[] | null;
|
|
683
701
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -759,6 +777,8 @@ export declare const listRuns: ((input: {
|
|
|
759
777
|
readonly templateData?: {
|
|
760
778
|
readonly [x: string]: import("./generated").JsonValue;
|
|
761
779
|
} | null;
|
|
780
|
+
readonly locale?: string;
|
|
781
|
+
readonly timeZone?: string;
|
|
762
782
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
763
783
|
readonly replyTo?: readonly string[] | null;
|
|
764
784
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -841,6 +861,8 @@ export declare const listRuns: ((input: {
|
|
|
841
861
|
readonly templateData?: {
|
|
842
862
|
readonly [x: string]: import("./generated").JsonValue;
|
|
843
863
|
} | null;
|
|
864
|
+
readonly locale?: string;
|
|
865
|
+
readonly timeZone?: string;
|
|
844
866
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
845
867
|
readonly replyTo?: readonly string[] | null;
|
|
846
868
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -922,6 +944,8 @@ export declare const listRuns: ((input: {
|
|
|
922
944
|
readonly templateData?: {
|
|
923
945
|
readonly [x: string]: import("./generated").JsonValue;
|
|
924
946
|
} | null;
|
|
947
|
+
readonly locale?: string;
|
|
948
|
+
readonly timeZone?: string;
|
|
925
949
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
926
950
|
readonly replyTo?: readonly string[] | null;
|
|
927
951
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -996,6 +1020,8 @@ export declare const scheduleRun: (input: {
|
|
|
996
1020
|
readonly templateData?: {
|
|
997
1021
|
readonly [x: string]: import("./generated").JsonValue;
|
|
998
1022
|
} | null;
|
|
1023
|
+
readonly locale?: string;
|
|
1024
|
+
readonly timeZone?: string;
|
|
999
1025
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1000
1026
|
readonly replyTo?: readonly string[] | null;
|
|
1001
1027
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -1036,7 +1062,7 @@ export declare const scheduleRun: (input: {
|
|
|
1036
1062
|
readonly memberRole: string;
|
|
1037
1063
|
readonly createdAt: string;
|
|
1038
1064
|
readonly updatedAt: string;
|
|
1039
|
-
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | 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>;
|
|
1065
|
+
}, import("./generated").BrandAddressRequiredError | import("./generated").CampaignFooterRequiredError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | 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>;
|
|
1040
1066
|
export declare const getRun: (input: {
|
|
1041
1067
|
readonly id: string;
|
|
1042
1068
|
readonly runId: string;
|
|
@@ -1068,6 +1094,8 @@ export declare const getRun: (input: {
|
|
|
1068
1094
|
readonly templateData?: {
|
|
1069
1095
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1070
1096
|
} | null;
|
|
1097
|
+
readonly locale?: string;
|
|
1098
|
+
readonly timeZone?: string;
|
|
1071
1099
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1072
1100
|
readonly replyTo?: readonly string[] | null;
|
|
1073
1101
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -1142,6 +1170,8 @@ export declare const pauseRun: (input: {
|
|
|
1142
1170
|
readonly templateData?: {
|
|
1143
1171
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1144
1172
|
} | null;
|
|
1173
|
+
readonly locale?: string;
|
|
1174
|
+
readonly timeZone?: string;
|
|
1145
1175
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1146
1176
|
readonly replyTo?: readonly string[] | null;
|
|
1147
1177
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -1217,6 +1247,8 @@ export declare const resumeRun: (input: {
|
|
|
1217
1247
|
readonly templateData?: {
|
|
1218
1248
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1219
1249
|
} | null;
|
|
1250
|
+
readonly locale?: string;
|
|
1251
|
+
readonly timeZone?: string;
|
|
1220
1252
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1221
1253
|
readonly replyTo?: readonly string[] | null;
|
|
1222
1254
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -1292,6 +1324,8 @@ export declare const cancelRun: (input: {
|
|
|
1292
1324
|
readonly templateData?: {
|
|
1293
1325
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1294
1326
|
} | null;
|
|
1327
|
+
readonly locale?: string;
|
|
1328
|
+
readonly timeZone?: string;
|
|
1295
1329
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1296
1330
|
readonly replyTo?: readonly string[] | null;
|
|
1297
1331
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
package/dist/effect/campaigns.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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/campaigns.ts
|
|
4
4
|
var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
archive: () => archive,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-
|
|
1
|
+
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-DvsHUJtX.js";
|
|
2
2
|
export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
package/dist/effect/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-
|
|
2
|
+
import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-ByJHYp7r.js";
|
|
3
3
|
//#region src/effect/client.ts
|
|
4
4
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
Service: () => Service,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/contact-groups.ts
|
|
4
4
|
var contact_groups_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addMembers: () => addMembers,
|
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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/contacts.ts
|
|
4
4
|
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
bulkDelete: () => bulkDelete,
|
|
@@ -33,7 +33,7 @@ export declare const list: ((input?: {
|
|
|
33
33
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
34
34
|
readonly actorHistory: readonly {
|
|
35
35
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
36
|
-
readonly actorType: "agent" | "contact" | "
|
|
36
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
37
37
|
readonly joinedAt: string;
|
|
38
38
|
readonly leftAt?: string | null;
|
|
39
39
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -129,7 +129,7 @@ export declare const list: ((input?: {
|
|
|
129
129
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
130
130
|
readonly actorHistory: readonly {
|
|
131
131
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
132
|
-
readonly actorType: "agent" | "contact" | "
|
|
132
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
133
133
|
readonly joinedAt: string;
|
|
134
134
|
readonly leftAt?: string | null;
|
|
135
135
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -224,7 +224,7 @@ export declare const list: ((input?: {
|
|
|
224
224
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
225
225
|
readonly actorHistory: readonly {
|
|
226
226
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
227
|
-
readonly actorType: "agent" | "contact" | "
|
|
227
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
228
228
|
readonly joinedAt: string;
|
|
229
229
|
readonly leftAt?: string | null;
|
|
230
230
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -467,7 +467,7 @@ export declare const create: (input: {
|
|
|
467
467
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
468
468
|
readonly actorHistory: readonly {
|
|
469
469
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
470
|
-
readonly actorType: "agent" | "contact" | "
|
|
470
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
471
471
|
readonly joinedAt: string;
|
|
472
472
|
readonly leftAt?: string | null;
|
|
473
473
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -549,7 +549,7 @@ export declare const getById: (input: {
|
|
|
549
549
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
550
550
|
readonly actorHistory: readonly {
|
|
551
551
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
552
|
-
readonly actorType: "agent" | "contact" | "
|
|
552
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
553
553
|
readonly joinedAt: string;
|
|
554
554
|
readonly leftAt?: string | null;
|
|
555
555
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -604,7 +604,7 @@ export declare const getById: (input: {
|
|
|
604
604
|
readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
|
|
605
605
|
readonly participants: readonly {
|
|
606
606
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
607
|
-
readonly actorType: "agent" | "contact" | "
|
|
607
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
608
608
|
readonly contact: {
|
|
609
609
|
readonly id: string;
|
|
610
610
|
readonly name: string;
|
|
@@ -740,7 +740,8 @@ export declare const listMessages: ((input: {
|
|
|
740
740
|
readonly scheduling: {
|
|
741
741
|
readonly dueAt: string;
|
|
742
742
|
readonly expiresAt: string;
|
|
743
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
743
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
744
|
+
readonly reviewExpectedAt: string | null;
|
|
744
745
|
} | null;
|
|
745
746
|
readonly id: string;
|
|
746
747
|
readonly messageId: string;
|
|
@@ -809,6 +810,8 @@ export declare const listMessages: ((input: {
|
|
|
809
810
|
readonly createdAt: string;
|
|
810
811
|
readonly updatedAt: string;
|
|
811
812
|
}[];
|
|
813
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
814
|
+
readonly reviewExpectedAt: string | null;
|
|
812
815
|
}[];
|
|
813
816
|
readonly pagination: {
|
|
814
817
|
readonly page: number;
|
|
@@ -939,7 +942,8 @@ export declare const listMessages: ((input: {
|
|
|
939
942
|
readonly scheduling: {
|
|
940
943
|
readonly dueAt: string;
|
|
941
944
|
readonly expiresAt: string;
|
|
942
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
945
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
946
|
+
readonly reviewExpectedAt: string | null;
|
|
943
947
|
} | null;
|
|
944
948
|
readonly id: string;
|
|
945
949
|
readonly messageId: string;
|
|
@@ -1008,6 +1012,8 @@ export declare const listMessages: ((input: {
|
|
|
1008
1012
|
readonly createdAt: string;
|
|
1009
1013
|
readonly updatedAt: string;
|
|
1010
1014
|
}[];
|
|
1015
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1016
|
+
readonly reviewExpectedAt: string | null;
|
|
1011
1017
|
}[];
|
|
1012
1018
|
readonly pagination: {
|
|
1013
1019
|
readonly page: number;
|
|
@@ -1137,7 +1143,8 @@ export declare const listMessages: ((input: {
|
|
|
1137
1143
|
readonly scheduling: {
|
|
1138
1144
|
readonly dueAt: string;
|
|
1139
1145
|
readonly expiresAt: string;
|
|
1140
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1146
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1147
|
+
readonly reviewExpectedAt: string | null;
|
|
1141
1148
|
} | null;
|
|
1142
1149
|
readonly id: string;
|
|
1143
1150
|
readonly messageId: string;
|
|
@@ -1206,6 +1213,8 @@ export declare const listMessages: ((input: {
|
|
|
1206
1213
|
readonly createdAt: string;
|
|
1207
1214
|
readonly updatedAt: string;
|
|
1208
1215
|
}[];
|
|
1216
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1217
|
+
readonly reviewExpectedAt: string | null;
|
|
1209
1218
|
}, 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>;
|
|
1210
1219
|
};
|
|
1211
1220
|
export declare const update: (input: {
|
|
@@ -1397,7 +1406,7 @@ export declare const update: (input: {
|
|
|
1397
1406
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1398
1407
|
readonly actorHistory: readonly {
|
|
1399
1408
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1400
|
-
readonly actorType: "agent" | "contact" | "
|
|
1409
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
1401
1410
|
readonly joinedAt: string;
|
|
1402
1411
|
readonly leftAt?: string | null;
|
|
1403
1412
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -1480,7 +1489,7 @@ export declare const addContacts: (input: {
|
|
|
1480
1489
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1481
1490
|
readonly actorHistory: readonly {
|
|
1482
1491
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1483
|
-
readonly actorType: "agent" | "contact" | "
|
|
1492
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
1484
1493
|
readonly joinedAt: string;
|
|
1485
1494
|
readonly leftAt?: string | null;
|
|
1486
1495
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -1563,7 +1572,7 @@ export declare const removeContacts: (input: {
|
|
|
1563
1572
|
readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
|
|
1564
1573
|
readonly actorHistory: readonly {
|
|
1565
1574
|
readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
|
|
1566
|
-
readonly actorType: "agent" | "contact" | "
|
|
1575
|
+
readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
|
|
1567
1576
|
readonly joinedAt: string;
|
|
1568
1577
|
readonly leftAt?: string | null;
|
|
1569
1578
|
readonly role: "initiator" | "observer" | "responder";
|
|
@@ -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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/conversations.ts
|
|
4
4
|
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addContacts: () => addContacts,
|
|
@@ -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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/custom-fields.ts
|
|
4
4
|
var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|