samva 0.18.0 → 0.20.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 -0
- package/dist/client/sdk.gen.d.ts +94 -36
- package/dist/client/sdk.gen.js +269 -55
- package/dist/client/types.gen.d.ts +497 -106
- package/dist/effect/campaigns.d.ts +35 -3
- package/dist/effect/contact-groups.d.ts +39 -3
- package/dist/effect/contacts.d.ts +240 -17
- package/dist/effect/contacts.js +3 -1
- package/dist/effect/conversations.d.ts +11 -11
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +12 -12
- package/dist/effect/extensions.d.ts +3 -3
- package/dist/effect/generated/campaigns.d.ts +73 -4
- package/dist/effect/generated/campaigns.js +18 -1
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/effect/generated/contacts.d.ts +608 -55
- package/dist/effect/generated/contacts.js +55 -10
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/effect/generated/conversations.js +1 -1
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/effect/generated/extension-installations.js +6 -0
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/effect/generated/extensions.js +2 -0
- package/dist/effect/generated/journeys.d.ts +13 -61
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/mailboxes.d.ts +584 -78
- package/dist/effect/generated/mailboxes.js +65 -24
- package/dist/effect/generated/messages.d.ts +35 -1
- package/dist/effect/generated/messages.js +9 -2
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/effect/generated/organizations.js +7 -3
- package/dist/effect/generated/shared.d.ts +104 -49
- package/dist/effect/generated/shared.js +51 -28
- package/dist/effect/generated/templates.d.ts +44 -1
- package/dist/effect/generated/templates.js +9 -3
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/effect/generated/unsubscribe-groups.js +75 -58
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -0
- package/dist/effect/generated-metadata.d.ts +22 -6
- package/dist/effect/generated-metadata.js +334 -329
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/mailboxes.d.ts +144 -12
- package/dist/effect/messages.d.ts +8 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/organizations.d.ts +4 -4
- package/dist/effect/templates.d.ts +12 -1
- package/dist/effect/unsubscribe-groups.d.ts +29 -18
- package/dist/effect/unsubscribe-groups.js +5 -5
- package/dist/effect/webhooks.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/mailbox-events.js +39 -11
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +24 -4
- package/dist/service-map.js +26 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/contacts.ts
|
|
@@ -9,7 +9,7 @@ const ContactCustomFields = /* @__PURE__ */ Schema.Record(Schema.String, Schema.
|
|
|
9
9
|
Schema.Null
|
|
10
10
|
])).annotate({ identifier: "ContactCustomFields" });
|
|
11
11
|
const ContactIdentityInput = /* @__PURE__ */ Schema.Struct({
|
|
12
|
-
|
|
12
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
13
13
|
identifier: Schema.String,
|
|
14
14
|
verified: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
15
15
|
}).annotate({ identifier: "ContactIdentityInput" });
|
|
@@ -116,6 +116,7 @@ const ContactProfileUpdate = /* @__PURE__ */ Schema.Struct({
|
|
|
116
116
|
}).annotate({ identifier: "ContactProfileUpdate" });
|
|
117
117
|
const ContactSummary = /* @__PURE__ */ Schema.Struct({
|
|
118
118
|
id: ContactId,
|
|
119
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
119
120
|
name: Schema.String,
|
|
120
121
|
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
121
122
|
status: Schema.Union([
|
|
@@ -132,8 +133,13 @@ const ContactSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
132
133
|
lastActiveAt: Schema.Union([Schema.String, Schema.Null]),
|
|
133
134
|
createdAt: Schema.String
|
|
134
135
|
}).annotate({ identifier: "ContactSummary" });
|
|
136
|
+
const ContactPage = /* @__PURE__ */ Schema.Struct({
|
|
137
|
+
items: Schema.Array(ContactSummary),
|
|
138
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
139
|
+
}).annotate({ identifier: "ContactPage" });
|
|
135
140
|
const Contact = /* @__PURE__ */ Schema.Struct({
|
|
136
141
|
id: ContactId,
|
|
142
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
137
143
|
name: Schema.String,
|
|
138
144
|
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
139
145
|
avatar: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -153,13 +159,10 @@ const Contact = /* @__PURE__ */ Schema.Struct({
|
|
|
153
159
|
createdAt: Schema.String,
|
|
154
160
|
updatedAt: Schema.String
|
|
155
161
|
}).annotate({ identifier: "Contact" });
|
|
156
|
-
const ContactPage = /* @__PURE__ */ Schema.Struct({
|
|
157
|
-
items: Schema.Array(ContactSummary),
|
|
158
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
159
|
-
}).annotate({ identifier: "ContactPage" });
|
|
160
162
|
const ContactsListQuery = /* @__PURE__ */ Schema.Struct({
|
|
161
163
|
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
162
164
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
165
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
163
166
|
search: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
164
167
|
status: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
165
168
|
Schema.Literal("active"),
|
|
@@ -180,6 +183,7 @@ const ContactsList422 = ValidationError;
|
|
|
180
183
|
const ContactsList500 = InternalError;
|
|
181
184
|
const ContactsList504 = GatewayTimeoutError;
|
|
182
185
|
const ContactsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
186
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
183
187
|
name: Schema.String,
|
|
184
188
|
displayName: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
185
189
|
avatar: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
@@ -201,6 +205,7 @@ const ContactsCreate201 = Contact;
|
|
|
201
205
|
const ContactsCreate401 = UnauthorizedError;
|
|
202
206
|
const ContactsCreate402 = PaymentRequiredError;
|
|
203
207
|
const ContactsCreate403 = ForbiddenError;
|
|
208
|
+
const ContactsCreate404 = ResourceNotFoundError;
|
|
204
209
|
const ContactsCreate409 = ConflictError;
|
|
205
210
|
const ContactsCreate422 = ValidationError;
|
|
206
211
|
const ContactsCreate500 = InternalError;
|
|
@@ -291,7 +296,7 @@ const ContactsGetGroupMemberships500 = InternalError;
|
|
|
291
296
|
const ContactsGetGroupMemberships504 = GatewayTimeoutError;
|
|
292
297
|
const ContactsAddIdentityPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactId });
|
|
293
298
|
const ContactsAddIdentityRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
294
|
-
|
|
299
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
295
300
|
identifier: Schema.String,
|
|
296
301
|
verified: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
297
302
|
});
|
|
@@ -314,6 +319,24 @@ const ContactsRemoveIdentity404 = ResourceNotFoundError;
|
|
|
314
319
|
const ContactsRemoveIdentity422 = ValidationError;
|
|
315
320
|
const ContactsRemoveIdentity500 = InternalError;
|
|
316
321
|
const ContactsRemoveIdentity504 = GatewayTimeoutError;
|
|
322
|
+
const ContactsSetConsentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
323
|
+
id: ContactId,
|
|
324
|
+
identityId: ContactIdentityId,
|
|
325
|
+
channel: Schema.Literal("email")
|
|
326
|
+
});
|
|
327
|
+
const ContactsSetConsentRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
328
|
+
status: Schema.Union([Schema.Literal("opted_in"), Schema.Literal("opted_out")]),
|
|
329
|
+
source: Schema.String.annotate({ description: "Where the consent was captured, such as a form URL or a checkout step." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
330
|
+
capturedAt: Schema.String,
|
|
331
|
+
proof: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
|
|
332
|
+
});
|
|
333
|
+
const ContactsSetConsent200 = Contact;
|
|
334
|
+
const ContactsSetConsent401 = UnauthorizedError;
|
|
335
|
+
const ContactsSetConsent403 = ForbiddenError;
|
|
336
|
+
const ContactsSetConsent404 = ResourceNotFoundError;
|
|
337
|
+
const ContactsSetConsent422 = ValidationError;
|
|
338
|
+
const ContactsSetConsent500 = InternalError;
|
|
339
|
+
const ContactsSetConsent504 = GatewayTimeoutError;
|
|
317
340
|
const ContactsAddTagsPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactId });
|
|
318
341
|
const ContactsAddTagsRequestJson = /* @__PURE__ */ Schema.Struct({ tags: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) });
|
|
319
342
|
const ContactsAddTags200 = Contact;
|
|
@@ -344,6 +367,7 @@ const ContactsBulkDelete500 = InternalError;
|
|
|
344
367
|
const ContactsBulkDelete502 = BillingProviderError;
|
|
345
368
|
const ContactsBulkDelete504 = GatewayTimeoutError;
|
|
346
369
|
const ContactsBulkImportRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
370
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
347
371
|
contacts: Schema.Array(Schema.Struct({
|
|
348
372
|
name: Schema.String,
|
|
349
373
|
displayName: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
@@ -385,6 +409,7 @@ const ContactsBulkImport200 = /* @__PURE__ */ Schema.Struct({
|
|
|
385
409
|
const ContactsBulkImport401 = UnauthorizedError;
|
|
386
410
|
const ContactsBulkImport402 = PaymentRequiredError;
|
|
387
411
|
const ContactsBulkImport403 = ForbiddenError;
|
|
412
|
+
const ContactsBulkImport404 = ResourceNotFoundError;
|
|
388
413
|
const ContactsBulkImport422 = ValidationError;
|
|
389
414
|
const ContactsBulkImport500 = InternalError;
|
|
390
415
|
const ContactsBulkImport502 = BillingProviderError;
|
|
@@ -446,6 +471,7 @@ const ContactsExport422 = ValidationError;
|
|
|
446
471
|
const ContactsExport500 = InternalError;
|
|
447
472
|
const ContactsExport504 = GatewayTimeoutError;
|
|
448
473
|
const ContactsFindRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
474
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
449
475
|
email: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
450
476
|
phone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
451
477
|
externalId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
@@ -453,11 +479,13 @@ const ContactsFindRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
453
479
|
const ContactsFind200 = /* @__PURE__ */ Schema.Union([Contact, Schema.Null]);
|
|
454
480
|
const ContactsFind401 = UnauthorizedError;
|
|
455
481
|
const ContactsFind403 = ForbiddenError;
|
|
482
|
+
const ContactsFind404 = ResourceNotFoundError;
|
|
456
483
|
const ContactsFind409 = ConflictError;
|
|
457
484
|
const ContactsFind422 = ValidationError;
|
|
458
485
|
const ContactsFind500 = InternalError;
|
|
459
486
|
const ContactsFind504 = GatewayTimeoutError;
|
|
460
487
|
const ContactsFindOrCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
488
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
461
489
|
lookup: ContactLookup,
|
|
462
490
|
create: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
463
491
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -475,6 +503,7 @@ const ContactsFindOrCreate200 = /* @__PURE__ */ Schema.Struct({
|
|
|
475
503
|
const ContactsFindOrCreate401 = UnauthorizedError;
|
|
476
504
|
const ContactsFindOrCreate402 = PaymentRequiredError;
|
|
477
505
|
const ContactsFindOrCreate403 = ForbiddenError;
|
|
506
|
+
const ContactsFindOrCreate404 = ResourceNotFoundError;
|
|
478
507
|
const ContactsFindOrCreate409 = ConflictError;
|
|
479
508
|
const ContactsFindOrCreate422 = ValidationError;
|
|
480
509
|
const ContactsFindOrCreate500 = InternalError;
|
|
@@ -497,6 +526,7 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
497
526
|
ContactsCreate401.pipe(HttpApiSchema.status(401)),
|
|
498
527
|
ContactsCreate402.pipe(HttpApiSchema.status(402)),
|
|
499
528
|
ContactsCreate403.pipe(HttpApiSchema.status(403)),
|
|
529
|
+
ContactsCreate404.pipe(HttpApiSchema.status(404)),
|
|
500
530
|
ContactsCreate409.pipe(HttpApiSchema.status(409)),
|
|
501
531
|
ContactsCreate422.pipe(HttpApiSchema.status(422)),
|
|
502
532
|
ContactsCreate500,
|
|
@@ -599,7 +629,19 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
599
629
|
ContactsRemoveIdentity500,
|
|
600
630
|
ContactsRemoveIdentity504.pipe(HttpApiSchema.status(504))
|
|
601
631
|
]
|
|
602
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.removeIdentity").annotate(OpenApi.Summary, "Remove a contact identity").annotate(OpenApi.Description, "Removes one address from the contact and returns the contact."), HttpApiEndpoint.
|
|
632
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.removeIdentity").annotate(OpenApi.Summary, "Remove a contact identity").annotate(OpenApi.Description, "Removes one address from the contact and returns the contact."), HttpApiEndpoint.put("contactsSetConsent", "/v1/contacts/:id/identities/:identityId/consent/:channel", {
|
|
633
|
+
params: ContactsSetConsentPathParams,
|
|
634
|
+
payload: ContactsSetConsentRequestJson,
|
|
635
|
+
success: ContactsSetConsent200,
|
|
636
|
+
error: [
|
|
637
|
+
ContactsSetConsent401.pipe(HttpApiSchema.status(401)),
|
|
638
|
+
ContactsSetConsent403.pipe(HttpApiSchema.status(403)),
|
|
639
|
+
ContactsSetConsent404.pipe(HttpApiSchema.status(404)),
|
|
640
|
+
ContactsSetConsent422.pipe(HttpApiSchema.status(422)),
|
|
641
|
+
ContactsSetConsent500,
|
|
642
|
+
ContactsSetConsent504.pipe(HttpApiSchema.status(504))
|
|
643
|
+
]
|
|
644
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.setConsent").annotate(OpenApi.Summary, "Record contact consent").annotate(OpenApi.Description, "Records the contact's consent on one channel at one of its addresses and returns the contact. `opted_out` stops every send on that channel to that address until the contact opts back in; `opted_in` is what channels that require opt-in check for. `source` and `capturedAt` say where and when the contact decided; `proof` keeps your evidence. A decision captured before the recorded one is ignored. A change publishes `contact.consent_changed`."), HttpApiEndpoint.post("contactsAddTags", "/v1/contacts/:id/tags", {
|
|
603
645
|
params: ContactsAddTagsPathParams,
|
|
604
646
|
payload: ContactsAddTagsRequestJson,
|
|
605
647
|
success: ContactsAddTags200,
|
|
@@ -641,6 +683,7 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
641
683
|
ContactsBulkImport401.pipe(HttpApiSchema.status(401)),
|
|
642
684
|
ContactsBulkImport402.pipe(HttpApiSchema.status(402)),
|
|
643
685
|
ContactsBulkImport403.pipe(HttpApiSchema.status(403)),
|
|
686
|
+
ContactsBulkImport404.pipe(HttpApiSchema.status(404)),
|
|
644
687
|
ContactsBulkImport422.pipe(HttpApiSchema.status(422)),
|
|
645
688
|
ContactsBulkImport500,
|
|
646
689
|
ContactsBulkImport502.pipe(HttpApiSchema.status(502)),
|
|
@@ -684,18 +727,20 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
684
727
|
error: [
|
|
685
728
|
ContactsFind401.pipe(HttpApiSchema.status(401)),
|
|
686
729
|
ContactsFind403.pipe(HttpApiSchema.status(403)),
|
|
730
|
+
ContactsFind404.pipe(HttpApiSchema.status(404)),
|
|
687
731
|
ContactsFind409.pipe(HttpApiSchema.status(409)),
|
|
688
732
|
ContactsFind422.pipe(HttpApiSchema.status(422)),
|
|
689
733
|
ContactsFind500,
|
|
690
734
|
ContactsFind504.pipe(HttpApiSchema.status(504))
|
|
691
735
|
]
|
|
692
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.find").annotate(OpenApi.Summary, "Find a contact").annotate(OpenApi.Description, "Looks up a single contact by email address or external ID and returns null when no contact matches."), HttpApiEndpoint.post("contactsFindOrCreate", "/v1/contacts/find-or-create", {
|
|
736
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.find").annotate(OpenApi.Summary, "Find a contact").annotate(OpenApi.Description, "Looks up a single contact by exactly one of email address, phone number, or external ID and returns null when no contact matches. A phone number without `+` is read in the organization's default region."), HttpApiEndpoint.post("contactsFindOrCreate", "/v1/contacts/find-or-create", {
|
|
693
737
|
payload: ContactsFindOrCreateRequestJson,
|
|
694
738
|
success: ContactsFindOrCreate200,
|
|
695
739
|
error: [
|
|
696
740
|
ContactsFindOrCreate401.pipe(HttpApiSchema.status(401)),
|
|
697
741
|
ContactsFindOrCreate402.pipe(HttpApiSchema.status(402)),
|
|
698
742
|
ContactsFindOrCreate403.pipe(HttpApiSchema.status(403)),
|
|
743
|
+
ContactsFindOrCreate404.pipe(HttpApiSchema.status(404)),
|
|
699
744
|
ContactsFindOrCreate409.pipe(HttpApiSchema.status(409)),
|
|
700
745
|
ContactsFindOrCreate422.pipe(HttpApiSchema.status(422)),
|
|
701
746
|
ContactsFindOrCreate500,
|
|
@@ -704,6 +749,6 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
704
749
|
]
|
|
705
750
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.findOrCreate").annotate(OpenApi.Summary, "Find or create a contact").annotate(OpenApi.Description, "Looks up exactly one identifier through `lookup: { type, value }`. Returns `{ contact, created: false }` unchanged when it exists. Otherwise creates the lookup identity (or external ID), applies `create` attributes, and returns `{ contact, created: true }`. Additional addresses belong in `create.identities`, custom fields in `create.profile.customFields`; custom field keys must be defined and values must match their types. An external ID lookup cannot be contradicted by `create.externalId`. Creation returns HTTP 409 ConflictError if an externalId or address belongs to another contact; the conflicting field is named and no contact is created. Use the update endpoint to change an existing contact.")).annotate(OpenApi.Description, "Contact CRUD, bulk operations, engagement metrics, and activity timeline") {};
|
|
706
751
|
//#endregion
|
|
707
|
-
export { BulkUpdateResult, Contact, ContactActivityPage, ContactCustomFields, ContactGroupMembershipPage, ContactIdentityInput, ContactListMembership, ContactLocation, ContactLookup, ContactPage, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactSummary, ContactsAddIdentity200, ContactsAddIdentity401, ContactsAddIdentity403, ContactsAddIdentity404, ContactsAddIdentity409, ContactsAddIdentity422, ContactsAddIdentity500, ContactsAddIdentity504, ContactsAddIdentityPathParams, ContactsAddIdentityRequestJson, ContactsAddTags200, ContactsAddTags401, ContactsAddTags403, ContactsAddTags404, ContactsAddTags422, ContactsAddTags500, ContactsAddTags504, ContactsAddTagsPathParams, ContactsAddTagsRequestJson, ContactsBulkDelete200, ContactsBulkDelete401, ContactsBulkDelete403, ContactsBulkDelete422, ContactsBulkDelete500, ContactsBulkDelete502, ContactsBulkDelete504, ContactsBulkDeleteRequestJson, ContactsBulkImport200, ContactsBulkImport401, ContactsBulkImport402, ContactsBulkImport403, ContactsBulkImport422, ContactsBulkImport500, ContactsBulkImport502, ContactsBulkImport504, ContactsBulkImportRequestJson, ContactsBulkUpdateStatus200, ContactsBulkUpdateStatus401, ContactsBulkUpdateStatus402, ContactsBulkUpdateStatus403, ContactsBulkUpdateStatus422, ContactsBulkUpdateStatus500, ContactsBulkUpdateStatus502, ContactsBulkUpdateStatus504, ContactsBulkUpdateStatusRequestJson, ContactsBulkUpdateTags200, ContactsBulkUpdateTags401, ContactsBulkUpdateTags403, ContactsBulkUpdateTags422, ContactsBulkUpdateTags500, ContactsBulkUpdateTags504, ContactsBulkUpdateTagsRequestJson, ContactsCreate201, ContactsCreate401, ContactsCreate402, ContactsCreate403, ContactsCreate409, ContactsCreate422, ContactsCreate500, ContactsCreate502, ContactsCreate504, ContactsCreateRequestJson, ContactsExport200, ContactsExport401, ContactsExport403, ContactsExport422, ContactsExport500, ContactsExport504, ContactsExportRequestJson, ContactsFind200, ContactsFind401, ContactsFind403, ContactsFind409, ContactsFind422, ContactsFind500, ContactsFind504, ContactsFindOrCreate200, ContactsFindOrCreate401, ContactsFindOrCreate402, ContactsFindOrCreate403, ContactsFindOrCreate409, ContactsFindOrCreate422, ContactsFindOrCreate500, ContactsFindOrCreate502, ContactsFindOrCreate504, ContactsFindOrCreateRequestJson, ContactsFindRequestJson, ContactsGet200, ContactsGet401, ContactsGet403, ContactsGet404, ContactsGet422, ContactsGet500, ContactsGet504, ContactsGetActivityTimeline200, ContactsGetActivityTimeline401, ContactsGetActivityTimeline403, ContactsGetActivityTimeline404, ContactsGetActivityTimeline422, ContactsGetActivityTimeline500, ContactsGetActivityTimeline504, ContactsGetActivityTimelinePathParams, ContactsGetActivityTimelineQuery, ContactsGetEngagement200, ContactsGetEngagement401, ContactsGetEngagement403, ContactsGetEngagement404, ContactsGetEngagement422, ContactsGetEngagement500, ContactsGetEngagement504, ContactsGetEngagementPathParams, ContactsGetGroupMemberships200, ContactsGetGroupMemberships401, ContactsGetGroupMemberships403, ContactsGetGroupMemberships404, ContactsGetGroupMemberships422, ContactsGetGroupMemberships500, ContactsGetGroupMemberships504, ContactsGetGroupMembershipsPathParams, ContactsGetGroupMembershipsQuery, ContactsGetPathParams, ContactsGroup, ContactsList200, ContactsList401, ContactsList403, ContactsList422, ContactsList500, ContactsList504, ContactsListQuery, ContactsRemove200, ContactsRemove401, ContactsRemove403, ContactsRemove404, ContactsRemove422, ContactsRemove500, ContactsRemove502, ContactsRemove504, ContactsRemoveIdentity200, ContactsRemoveIdentity401, ContactsRemoveIdentity403, ContactsRemoveIdentity404, ContactsRemoveIdentity422, ContactsRemoveIdentity500, ContactsRemoveIdentity504, ContactsRemoveIdentityPathParams, ContactsRemovePathParams, ContactsRemoveTags200, ContactsRemoveTags401, ContactsRemoveTags403, ContactsRemoveTags404, ContactsRemoveTags422, ContactsRemoveTags500, ContactsRemoveTags504, ContactsRemoveTagsPathParams, ContactsRemoveTagsRequestJson, ContactsUpdate200, ContactsUpdate401, ContactsUpdate402, ContactsUpdate403, ContactsUpdate404, ContactsUpdate422, ContactsUpdate500, ContactsUpdate502, ContactsUpdate504, ContactsUpdatePathParams, ContactsUpdateRequestJson };
|
|
752
|
+
export { BulkUpdateResult, Contact, ContactActivityPage, ContactCustomFields, ContactGroupMembershipPage, ContactIdentityInput, ContactListMembership, ContactLocation, ContactLookup, ContactPage, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactSummary, ContactsAddIdentity200, ContactsAddIdentity401, ContactsAddIdentity403, ContactsAddIdentity404, ContactsAddIdentity409, ContactsAddIdentity422, ContactsAddIdentity500, ContactsAddIdentity504, ContactsAddIdentityPathParams, ContactsAddIdentityRequestJson, ContactsAddTags200, ContactsAddTags401, ContactsAddTags403, ContactsAddTags404, ContactsAddTags422, ContactsAddTags500, ContactsAddTags504, ContactsAddTagsPathParams, ContactsAddTagsRequestJson, ContactsBulkDelete200, ContactsBulkDelete401, ContactsBulkDelete403, ContactsBulkDelete422, ContactsBulkDelete500, ContactsBulkDelete502, ContactsBulkDelete504, ContactsBulkDeleteRequestJson, ContactsBulkImport200, ContactsBulkImport401, ContactsBulkImport402, ContactsBulkImport403, ContactsBulkImport404, ContactsBulkImport422, ContactsBulkImport500, ContactsBulkImport502, ContactsBulkImport504, ContactsBulkImportRequestJson, ContactsBulkUpdateStatus200, ContactsBulkUpdateStatus401, ContactsBulkUpdateStatus402, ContactsBulkUpdateStatus403, ContactsBulkUpdateStatus422, ContactsBulkUpdateStatus500, ContactsBulkUpdateStatus502, ContactsBulkUpdateStatus504, ContactsBulkUpdateStatusRequestJson, ContactsBulkUpdateTags200, ContactsBulkUpdateTags401, ContactsBulkUpdateTags403, ContactsBulkUpdateTags422, ContactsBulkUpdateTags500, ContactsBulkUpdateTags504, ContactsBulkUpdateTagsRequestJson, ContactsCreate201, ContactsCreate401, ContactsCreate402, ContactsCreate403, ContactsCreate404, ContactsCreate409, ContactsCreate422, ContactsCreate500, ContactsCreate502, ContactsCreate504, ContactsCreateRequestJson, ContactsExport200, ContactsExport401, ContactsExport403, ContactsExport422, ContactsExport500, ContactsExport504, ContactsExportRequestJson, ContactsFind200, ContactsFind401, ContactsFind403, ContactsFind404, ContactsFind409, ContactsFind422, ContactsFind500, ContactsFind504, ContactsFindOrCreate200, ContactsFindOrCreate401, ContactsFindOrCreate402, ContactsFindOrCreate403, ContactsFindOrCreate404, ContactsFindOrCreate409, ContactsFindOrCreate422, ContactsFindOrCreate500, ContactsFindOrCreate502, ContactsFindOrCreate504, ContactsFindOrCreateRequestJson, ContactsFindRequestJson, ContactsGet200, ContactsGet401, ContactsGet403, ContactsGet404, ContactsGet422, ContactsGet500, ContactsGet504, ContactsGetActivityTimeline200, ContactsGetActivityTimeline401, ContactsGetActivityTimeline403, ContactsGetActivityTimeline404, ContactsGetActivityTimeline422, ContactsGetActivityTimeline500, ContactsGetActivityTimeline504, ContactsGetActivityTimelinePathParams, ContactsGetActivityTimelineQuery, ContactsGetEngagement200, ContactsGetEngagement401, ContactsGetEngagement403, ContactsGetEngagement404, ContactsGetEngagement422, ContactsGetEngagement500, ContactsGetEngagement504, ContactsGetEngagementPathParams, ContactsGetGroupMemberships200, ContactsGetGroupMemberships401, ContactsGetGroupMemberships403, ContactsGetGroupMemberships404, ContactsGetGroupMemberships422, ContactsGetGroupMemberships500, ContactsGetGroupMemberships504, ContactsGetGroupMembershipsPathParams, ContactsGetGroupMembershipsQuery, ContactsGetPathParams, ContactsGroup, ContactsList200, ContactsList401, ContactsList403, ContactsList422, ContactsList500, ContactsList504, ContactsListQuery, ContactsRemove200, ContactsRemove401, ContactsRemove403, ContactsRemove404, ContactsRemove422, ContactsRemove500, ContactsRemove502, ContactsRemove504, ContactsRemoveIdentity200, ContactsRemoveIdentity401, ContactsRemoveIdentity403, ContactsRemoveIdentity404, ContactsRemoveIdentity422, ContactsRemoveIdentity500, ContactsRemoveIdentity504, ContactsRemoveIdentityPathParams, ContactsRemovePathParams, ContactsRemoveTags200, ContactsRemoveTags401, ContactsRemoveTags403, ContactsRemoveTags404, ContactsRemoveTags422, ContactsRemoveTags500, ContactsRemoveTags504, ContactsRemoveTagsPathParams, ContactsRemoveTagsRequestJson, ContactsSetConsent200, ContactsSetConsent401, ContactsSetConsent403, ContactsSetConsent404, ContactsSetConsent422, ContactsSetConsent500, ContactsSetConsent504, ContactsSetConsentPathParams, ContactsSetConsentRequestJson, ContactsUpdate200, ContactsUpdate401, ContactsUpdate402, ContactsUpdate403, ContactsUpdate404, ContactsUpdate422, ContactsUpdate500, ContactsUpdate502, ContactsUpdate504, ContactsUpdatePathParams, ContactsUpdateRequestJson };
|
|
708
753
|
|
|
709
754
|
//# sourceMappingURL=contacts.js.map
|
|
@@ -40,7 +40,7 @@ export type ConversationContact = {
|
|
|
40
40
|
readonly name: string;
|
|
41
41
|
readonly displayName: string | null;
|
|
42
42
|
readonly identities: ReadonlyArray<{
|
|
43
|
-
readonly
|
|
43
|
+
readonly type: "email" | "phone";
|
|
44
44
|
readonly identifier: string;
|
|
45
45
|
readonly verified: boolean;
|
|
46
46
|
}>;
|
|
@@ -50,7 +50,7 @@ export declare const ConversationContact: Schema.Struct<{
|
|
|
50
50
|
readonly name: Schema.String;
|
|
51
51
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
52
52
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
53
|
-
readonly
|
|
53
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
54
54
|
readonly identifier: Schema.String;
|
|
55
55
|
readonly verified: Schema.Boolean;
|
|
56
56
|
}>>;
|
|
@@ -169,7 +169,7 @@ export declare const Conversation: Schema.Struct<{
|
|
|
169
169
|
readonly name: Schema.String;
|
|
170
170
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
171
171
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
172
|
-
readonly
|
|
172
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
173
173
|
readonly identifier: Schema.String;
|
|
174
174
|
readonly verified: Schema.Boolean;
|
|
175
175
|
}>>;
|
|
@@ -318,7 +318,7 @@ export declare const ConversationsCreate201: Schema.Struct<{
|
|
|
318
318
|
readonly name: Schema.String;
|
|
319
319
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
320
320
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
321
|
-
readonly
|
|
321
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
322
322
|
readonly identifier: Schema.String;
|
|
323
323
|
readonly verified: Schema.Boolean;
|
|
324
324
|
}>>;
|
|
@@ -386,7 +386,7 @@ export declare const ConversationsGetById200: Schema.Struct<{
|
|
|
386
386
|
readonly name: Schema.String;
|
|
387
387
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
388
388
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
389
|
-
readonly
|
|
389
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
390
390
|
readonly identifier: Schema.String;
|
|
391
391
|
readonly verified: Schema.Boolean;
|
|
392
392
|
}>>;
|
|
@@ -500,7 +500,7 @@ export declare const ConversationsUpdate200: Schema.Struct<{
|
|
|
500
500
|
readonly name: Schema.String;
|
|
501
501
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
502
502
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
503
|
-
readonly
|
|
503
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
504
504
|
readonly identifier: Schema.String;
|
|
505
505
|
readonly verified: Schema.Boolean;
|
|
506
506
|
}>>;
|
|
@@ -576,7 +576,7 @@ export declare const ConversationsAddCategories200: Schema.Struct<{
|
|
|
576
576
|
readonly name: Schema.String;
|
|
577
577
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
578
578
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
579
|
-
readonly
|
|
579
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
580
580
|
readonly identifier: Schema.String;
|
|
581
581
|
readonly verified: Schema.Boolean;
|
|
582
582
|
}>>;
|
|
@@ -652,7 +652,7 @@ export declare const ConversationsRemoveCategories200: Schema.Struct<{
|
|
|
652
652
|
readonly name: Schema.String;
|
|
653
653
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
654
654
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
655
|
-
readonly
|
|
655
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
656
656
|
readonly identifier: Schema.String;
|
|
657
657
|
readonly verified: Schema.Boolean;
|
|
658
658
|
}>>;
|
|
@@ -728,7 +728,7 @@ export declare const ConversationsAddChannels200: Schema.Struct<{
|
|
|
728
728
|
readonly name: Schema.String;
|
|
729
729
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
730
730
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
731
|
-
readonly
|
|
731
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
732
732
|
readonly identifier: Schema.String;
|
|
733
733
|
readonly verified: Schema.Boolean;
|
|
734
734
|
}>>;
|
|
@@ -804,7 +804,7 @@ export declare const ConversationsRemoveChannels200: Schema.Struct<{
|
|
|
804
804
|
readonly name: Schema.String;
|
|
805
805
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
806
806
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
807
|
-
readonly
|
|
807
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
808
808
|
readonly identifier: Schema.String;
|
|
809
809
|
readonly verified: Schema.Boolean;
|
|
810
810
|
}>>;
|
|
@@ -880,7 +880,7 @@ export declare const ConversationsAddContacts200: Schema.Struct<{
|
|
|
880
880
|
readonly name: Schema.String;
|
|
881
881
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
882
882
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
883
|
-
readonly
|
|
883
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
884
884
|
readonly identifier: Schema.String;
|
|
885
885
|
readonly verified: Schema.Boolean;
|
|
886
886
|
}>>;
|
|
@@ -956,7 +956,7 @@ export declare const ConversationsRemoveContacts200: Schema.Struct<{
|
|
|
956
956
|
readonly name: Schema.String;
|
|
957
957
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
958
958
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
959
|
-
readonly
|
|
959
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
960
960
|
readonly identifier: Schema.String;
|
|
961
961
|
readonly verified: Schema.Boolean;
|
|
962
962
|
}>>;
|
|
@@ -1077,7 +1077,7 @@ export declare const ConversationsAddTags200: Schema.Struct<{
|
|
|
1077
1077
|
readonly name: Schema.String;
|
|
1078
1078
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1079
1079
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1080
|
-
readonly
|
|
1080
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1081
1081
|
readonly identifier: Schema.String;
|
|
1082
1082
|
readonly verified: Schema.Boolean;
|
|
1083
1083
|
}>>;
|
|
@@ -1153,7 +1153,7 @@ export declare const ConversationsRemoveTags200: Schema.Struct<{
|
|
|
1153
1153
|
readonly name: Schema.String;
|
|
1154
1154
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1155
1155
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1156
|
-
readonly
|
|
1156
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1157
1157
|
readonly identifier: Schema.String;
|
|
1158
1158
|
readonly verified: Schema.Boolean;
|
|
1159
1159
|
}>>;
|
|
@@ -1220,7 +1220,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
1220
1220
|
readonly name: Schema.String;
|
|
1221
1221
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1222
1222
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1223
|
-
readonly
|
|
1223
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1224
1224
|
readonly identifier: Schema.String;
|
|
1225
1225
|
readonly verified: Schema.Boolean;
|
|
1226
1226
|
}>>;
|
|
@@ -1354,7 +1354,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
1354
1354
|
readonly name: Schema.String;
|
|
1355
1355
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1356
1356
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1357
|
-
readonly
|
|
1357
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1358
1358
|
readonly identifier: Schema.String;
|
|
1359
1359
|
readonly verified: Schema.Boolean;
|
|
1360
1360
|
}>>;
|
|
@@ -1488,7 +1488,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
1488
1488
|
readonly name: Schema.String;
|
|
1489
1489
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1490
1490
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1491
|
-
readonly
|
|
1491
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1492
1492
|
readonly identifier: Schema.String;
|
|
1493
1493
|
readonly verified: Schema.Boolean;
|
|
1494
1494
|
}>>;
|
|
@@ -1622,7 +1622,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
1622
1622
|
readonly name: Schema.String;
|
|
1623
1623
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1624
1624
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1625
|
-
readonly
|
|
1625
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1626
1626
|
readonly identifier: Schema.String;
|
|
1627
1627
|
readonly verified: Schema.Boolean;
|
|
1628
1628
|
}>>;
|
|
@@ -1781,7 +1781,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
1781
1781
|
readonly name: Schema.String;
|
|
1782
1782
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1783
1783
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1784
|
-
readonly
|
|
1784
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1785
1785
|
readonly identifier: Schema.String;
|
|
1786
1786
|
readonly verified: Schema.Boolean;
|
|
1787
1787
|
}>>;
|
|
@@ -1893,7 +1893,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
1893
1893
|
readonly name: Schema.String;
|
|
1894
1894
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1895
1895
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
1896
|
-
readonly
|
|
1896
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
1897
1897
|
readonly identifier: Schema.String;
|
|
1898
1898
|
readonly verified: Schema.Boolean;
|
|
1899
1899
|
}>>;
|
|
@@ -2212,7 +2212,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
2212
2212
|
readonly name: Schema.String;
|
|
2213
2213
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2214
2214
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
2215
|
-
readonly
|
|
2215
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2216
2216
|
readonly identifier: Schema.String;
|
|
2217
2217
|
readonly verified: Schema.Boolean;
|
|
2218
2218
|
}>>;
|
|
@@ -2346,7 +2346,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
2346
2346
|
readonly name: Schema.String;
|
|
2347
2347
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2348
2348
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
2349
|
-
readonly
|
|
2349
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2350
2350
|
readonly identifier: Schema.String;
|
|
2351
2351
|
readonly verified: Schema.Boolean;
|
|
2352
2352
|
}>>;
|
|
@@ -2480,7 +2480,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
2480
2480
|
readonly name: Schema.String;
|
|
2481
2481
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2482
2482
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
2483
|
-
readonly
|
|
2483
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2484
2484
|
readonly identifier: Schema.String;
|
|
2485
2485
|
readonly verified: Schema.Boolean;
|
|
2486
2486
|
}>>;
|
|
@@ -2614,7 +2614,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
2614
2614
|
readonly name: Schema.String;
|
|
2615
2615
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2616
2616
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
2617
|
-
readonly
|
|
2617
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2618
2618
|
readonly identifier: Schema.String;
|
|
2619
2619
|
readonly verified: Schema.Boolean;
|
|
2620
2620
|
}>>;
|
|
@@ -2772,7 +2772,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
2772
2772
|
readonly name: Schema.String;
|
|
2773
2773
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2774
2774
|
readonly identities: Schema.$Array<Schema.Struct<{
|
|
2775
|
-
readonly
|
|
2775
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2776
2776
|
readonly identifier: Schema.String;
|
|
2777
2777
|
readonly verified: Schema.Boolean;
|
|
2778
2778
|
}>>;
|
|
@@ -34,7 +34,7 @@ const ConversationContact = /* @__PURE__ */ Schema.Struct({
|
|
|
34
34
|
name: Schema.String,
|
|
35
35
|
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
36
36
|
identities: Schema.Array(Schema.Struct({
|
|
37
|
-
|
|
37
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
38
38
|
identifier: Schema.String,
|
|
39
39
|
verified: Schema.Boolean
|
|
40
40
|
}))
|