samva 0.52.0 → 0.53.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/dist/client/sdk.gen.d.ts +15 -8
- package/dist/client/sdk.gen.js +35 -28
- package/dist/client/types.gen.d.ts +92 -15
- package/dist/effect/events.d.ts +16 -0
- package/dist/effect/generated/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/journeys.d.ts +1047 -49
- package/dist/effect/generated/journeys.js +10 -4
- package/dist/effect/generated/logs.d.ts +12 -0
- package/dist/effect/generated/mailboxes.d.ts +8 -0
- package/dist/effect/generated/mailboxes.js +2 -1
- package/dist/effect/generated/messages.d.ts +10 -0
- package/dist/effect/generated/scheduled-messages.d.ts +36 -0
- package/dist/effect/generated/shared.d.ts +398 -15
- package/dist/effect/generated/shared.js +51 -13
- package/dist/effect/generated/whats-app-flows.d.ts +23 -5
- package/dist/effect/generated/whats-app-flows.js +9 -7
- package/dist/effect/journeys.d.ts +66 -0
- package/dist/effect/mailboxes.d.ts +2 -0
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/whatsapp-flows.d.ts +30 -0
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/package.json +2 -2
|
@@ -48,14 +48,22 @@ export declare const EventsCreateRequestJson: Schema.Struct<{
|
|
|
48
48
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
49
49
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
50
50
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
51
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
51
52
|
}>, Schema.Struct<{
|
|
52
53
|
readonly externalId: Schema.String;
|
|
53
54
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
54
55
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
56
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
55
57
|
}>, Schema.Struct<{
|
|
56
58
|
readonly email: Schema.String;
|
|
57
59
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
58
60
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
61
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
62
|
+
}>, Schema.Struct<{
|
|
63
|
+
readonly phone: Schema.String;
|
|
64
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
65
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
66
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
59
67
|
}>]>;
|
|
60
68
|
readonly name: Schema.String;
|
|
61
69
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -106,14 +114,22 @@ export declare const EventsBatchRequestJson: Schema.Struct<{
|
|
|
106
114
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
107
115
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
108
116
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
117
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
109
118
|
}>, Schema.Struct<{
|
|
110
119
|
readonly externalId: Schema.String;
|
|
111
120
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
112
121
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
122
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
113
123
|
}>, Schema.Struct<{
|
|
114
124
|
readonly email: Schema.String;
|
|
115
125
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
116
126
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
127
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
128
|
+
}>, Schema.Struct<{
|
|
129
|
+
readonly phone: Schema.String;
|
|
130
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
131
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
132
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
117
133
|
}>]>;
|
|
118
134
|
readonly name: Schema.String;
|
|
119
135
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -123,14 +139,22 @@ export declare const EventsBatchRequestJson: Schema.Struct<{
|
|
|
123
139
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
124
140
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
125
141
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
142
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
126
143
|
}>, Schema.Struct<{
|
|
127
144
|
readonly externalId: Schema.String;
|
|
128
145
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
129
146
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
147
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
130
148
|
}>, Schema.Struct<{
|
|
131
149
|
readonly email: Schema.String;
|
|
132
150
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
133
151
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
152
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
153
|
+
}>, Schema.Struct<{
|
|
154
|
+
readonly phone: Schema.String;
|
|
155
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
156
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
157
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
134
158
|
}>]>;
|
|
135
159
|
readonly name: Schema.String;
|
|
136
160
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -177,14 +201,22 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
|
|
|
177
201
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
178
202
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
179
203
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
204
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
180
205
|
}>, Schema.Struct<{
|
|
181
206
|
readonly externalId: Schema.String;
|
|
182
207
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
183
208
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
209
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
184
210
|
}>, Schema.Struct<{
|
|
185
211
|
readonly email: Schema.String;
|
|
186
212
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
187
213
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
214
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
215
|
+
}>, Schema.Struct<{
|
|
216
|
+
readonly phone: Schema.String;
|
|
217
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
218
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
219
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
188
220
|
}>]>;
|
|
189
221
|
readonly name: Schema.String;
|
|
190
222
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -194,14 +226,22 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
|
|
|
194
226
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
195
227
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
196
228
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
229
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
197
230
|
}>, Schema.Struct<{
|
|
198
231
|
readonly externalId: Schema.String;
|
|
199
232
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
200
233
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
234
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
201
235
|
}>, Schema.Struct<{
|
|
202
236
|
readonly email: Schema.String;
|
|
203
237
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
204
238
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
239
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
240
|
+
}>, Schema.Struct<{
|
|
241
|
+
readonly phone: Schema.String;
|
|
242
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
243
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
244
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
205
245
|
}>]>;
|
|
206
246
|
readonly name: Schema.String;
|
|
207
247
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -332,14 +372,22 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
|
|
|
332
372
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
333
373
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
334
374
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
375
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
335
376
|
}>, Schema.Struct<{
|
|
336
377
|
readonly externalId: Schema.String;
|
|
337
378
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
338
379
|
readonly email: Schema.optionalKey<Schema.Never>;
|
|
380
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
339
381
|
}>, Schema.Struct<{
|
|
340
382
|
readonly email: Schema.String;
|
|
341
383
|
readonly id: Schema.optionalKey<Schema.Never>;
|
|
342
384
|
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
385
|
+
readonly phone: Schema.optionalKey<Schema.Never>;
|
|
386
|
+
}>, Schema.Struct<{
|
|
387
|
+
readonly phone: Schema.String;
|
|
388
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
389
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
390
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
343
391
|
}>]>;
|
|
344
392
|
readonly name: Schema.String;
|
|
345
393
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
@@ -57,7 +57,7 @@ var EventsGroup = class extends HttpApiGroup.make("Events").add(HttpApiEndpoint.
|
|
|
57
57
|
EventsCreate502.pipe(HttpApiSchema.status(502)),
|
|
58
58
|
EventsCreate504.pipe(HttpApiSchema.status(504))
|
|
59
59
|
]
|
|
60
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "events.create").annotate(OpenApi.Summary, "Record a contact event").annotate(OpenApi.Description, "Records a custom contact event. Identify the contact by exactly one ID, external ID, or
|
|
60
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "events.create").annotate(OpenApi.Summary, "Record a contact event").annotate(OpenApi.Description, "Records a custom contact event. Identify the contact by exactly one ID, external ID, email, or E.164 phone number. An unmatched external ID, email, or phone number creates a contact; an unknown contact ID returns 404. An idempotency key replays the original event in the credential’s scope. Event names use letters, digits, underscores, hyphens, and dots, up to 255 characters; contact. and samva. prefixes are reserved. Properties allow at most 50 keys and 32 KiB of UTF-8 JSON. Events are retained for 90 days."), HttpApiEndpoint.post("eventsBatch", "/v1/events/batch", {
|
|
61
61
|
headers: EventsBatchHeaders,
|
|
62
62
|
payload: EventsBatchRequestJson,
|
|
63
63
|
success: EventsBatch200,
|