samva 0.17.0 → 0.19.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/AGENTS.md +5 -0
- package/README.md +18 -3
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +39 -23
- package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
- package/dist/client/types.gen.d.ts +175 -44
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +23 -2
- package/dist/effect/api-keys.d.ts +12 -12
- package/dist/effect/api-keys.js +29 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +19 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +26 -3
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +35 -2
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/contact-groups.d.ts +53 -17
- package/dist/effect/contact-groups.js +31 -2
- package/dist/effect/contacts.d.ts +244 -41
- package/dist/effect/contacts.js +54 -2
- package/dist/effect/conversations.d.ts +28 -28
- package/dist/effect/conversations.js +37 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +19 -2
- package/dist/effect/email.d.ts +75 -75
- package/dist/effect/email.js +140 -2
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/events.js +17 -3
- package/dist/effect/extension-installations.d.ts +23 -23
- package/dist/effect/extension-installations.js +29 -2
- package/dist/effect/extensions.d.ts +12 -12
- package/dist/effect/extensions.js +21 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +14 -3
- package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
- package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
- package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
- package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
- package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
- package/dist/effect/generated/contacts.d.ts +477 -54
- package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
- package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
- package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
- package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
- package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
- package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
- package/dist/effect/generated/mailboxes.d.ts +310 -0
- package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
- package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
- package/dist/effect/generated/messages.d.ts +31 -0
- package/dist/effect/generated/messages.js +677 -0
- package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
- package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
- package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
- package/dist/effect/generated/shared.d.ts +70 -20
- package/dist/effect/generated/shared.js +1073 -0
- package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
- package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
- package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
- package/dist/effect/generated-metadata.d.ts +7 -2
- package/dist/effect/generated-metadata.js +925 -0
- package/dist/effect/index.d.ts +1 -2
- package/dist/effect/index.js +32 -32
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +18 -18
- package/dist/effect/journeys.js +39 -2
- package/dist/effect/mailboxes.d.ts +314 -182
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -10
- package/dist/effect/messages.d.ts +19 -14
- package/dist/effect/messages.js +15 -14
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +21 -2
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +17 -2
- package/dist/effect/organizations.d.ts +11 -11
- package/dist/effect/organizations.js +25 -2
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +21 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +10 -2
- package/dist/effect/templates.d.ts +39 -39
- package/dist/effect/templates.js +80 -3
- package/dist/effect/unsubscribe-groups.d.ts +39 -28
- package/dist/effect/unsubscribe-groups.js +29 -2
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/effect/webhooks.js +35 -3
- package/dist/effect/whoami.d.ts +9 -9
- package/dist/effect/whoami.js +10 -2
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -4
- package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
- package/package.json +6 -2
- package/dist/categories-CA4XIQAb.js +0 -1011
- package/dist/client-DOzUrdTE.js +0 -1115
- package/dist/send-Bxc0XfGE.js +0 -722
|
@@ -1,39 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as JsonObject, Ct as MessageId, D as Cursor, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Nt as PaymentRequiredError, Y as InternalError, _ as ContactGroupId, b as ContactIdentityId, en as ValidationError, h as ContactEvent, l as BillingProviderError, m as ConflictError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware, v as ContactId, x as ConversationId, y as ContactIdentity } from "./client-DOzUrdTE.js";
|
|
3
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
3
|
import * as Schema from "effect/Schema";
|
|
6
|
-
//#region src/effect/generated/contact-events.ts
|
|
7
|
-
const ContactEventPage = /* @__PURE__ */ Schema.Struct({
|
|
8
|
-
items: Schema.Array(ContactEvent),
|
|
9
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
10
|
-
}).annotate({ identifier: "ContactEventPage" });
|
|
11
|
-
const ContactEventsListEventsPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactId });
|
|
12
|
-
const ContactEventsListEventsQuery = /* @__PURE__ */ Schema.Struct({
|
|
13
|
-
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
14
|
-
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
|
|
15
|
-
});
|
|
16
|
-
const ContactEventsListEvents200 = ContactEventPage;
|
|
17
|
-
const ContactEventsListEvents401 = UnauthorizedError;
|
|
18
|
-
const ContactEventsListEvents403 = ForbiddenError;
|
|
19
|
-
const ContactEventsListEvents404 = ResourceNotFoundError;
|
|
20
|
-
const ContactEventsListEvents422 = ValidationError;
|
|
21
|
-
const ContactEventsListEvents500 = InternalError;
|
|
22
|
-
const ContactEventsListEvents504 = GatewayTimeoutError;
|
|
23
|
-
var ContactEventsGroup = class extends HttpApiGroup.make("Contact events").add(HttpApiEndpoint.get("contactEventsListEvents", "/v1/contacts/:id/events", {
|
|
24
|
-
params: ContactEventsListEventsPathParams,
|
|
25
|
-
query: ContactEventsListEventsQuery,
|
|
26
|
-
success: ContactEventsListEvents200,
|
|
27
|
-
error: [
|
|
28
|
-
ContactEventsListEvents401.pipe(HttpApiSchema.status(401)),
|
|
29
|
-
ContactEventsListEvents403.pipe(HttpApiSchema.status(403)),
|
|
30
|
-
ContactEventsListEvents404.pipe(HttpApiSchema.status(404)),
|
|
31
|
-
ContactEventsListEvents422.pipe(HttpApiSchema.status(422)),
|
|
32
|
-
ContactEventsListEvents500,
|
|
33
|
-
ContactEventsListEvents504.pipe(HttpApiSchema.status(504))
|
|
34
|
-
]
|
|
35
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contactEvents.listEvents").annotate(OpenApi.Summary, "List contact events").annotate(OpenApi.Description, "Returns custom and Samva lifecycle events, newest occurrence first, within the 90-day retention window. Pass nextCursor back as cursor for the next page.")).annotate(OpenApi.Description, "A contact's custom and lifecycle event timeline") {};
|
|
36
|
-
//#endregion
|
|
37
4
|
//#region src/effect/generated/contacts.ts
|
|
38
5
|
const ContactCustomFields = /* @__PURE__ */ Schema.Record(Schema.String, Schema.Union([
|
|
39
6
|
Schema.String,
|
|
@@ -42,7 +9,7 @@ const ContactCustomFields = /* @__PURE__ */ Schema.Record(Schema.String, Schema.
|
|
|
42
9
|
Schema.Null
|
|
43
10
|
])).annotate({ identifier: "ContactCustomFields" });
|
|
44
11
|
const ContactIdentityInput = /* @__PURE__ */ Schema.Struct({
|
|
45
|
-
|
|
12
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
46
13
|
identifier: Schema.String,
|
|
47
14
|
verified: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
48
15
|
}).annotate({ identifier: "ContactIdentityInput" });
|
|
@@ -165,6 +132,10 @@ const ContactSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
165
132
|
lastActiveAt: Schema.Union([Schema.String, Schema.Null]),
|
|
166
133
|
createdAt: Schema.String
|
|
167
134
|
}).annotate({ identifier: "ContactSummary" });
|
|
135
|
+
const ContactPage = /* @__PURE__ */ Schema.Struct({
|
|
136
|
+
items: Schema.Array(ContactSummary),
|
|
137
|
+
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
138
|
+
}).annotate({ identifier: "ContactPage" });
|
|
168
139
|
const Contact = /* @__PURE__ */ Schema.Struct({
|
|
169
140
|
id: ContactId,
|
|
170
141
|
name: Schema.String,
|
|
@@ -186,10 +157,6 @@ const Contact = /* @__PURE__ */ Schema.Struct({
|
|
|
186
157
|
createdAt: Schema.String,
|
|
187
158
|
updatedAt: Schema.String
|
|
188
159
|
}).annotate({ identifier: "Contact" });
|
|
189
|
-
const ContactPage = /* @__PURE__ */ Schema.Struct({
|
|
190
|
-
items: Schema.Array(ContactSummary),
|
|
191
|
-
nextCursor: Schema.Union([Schema.String, Schema.Null])
|
|
192
|
-
}).annotate({ identifier: "ContactPage" });
|
|
193
160
|
const ContactsListQuery = /* @__PURE__ */ Schema.Struct({
|
|
194
161
|
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
195
162
|
cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
|
|
@@ -324,7 +291,7 @@ const ContactsGetGroupMemberships500 = InternalError;
|
|
|
324
291
|
const ContactsGetGroupMemberships504 = GatewayTimeoutError;
|
|
325
292
|
const ContactsAddIdentityPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactId });
|
|
326
293
|
const ContactsAddIdentityRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
327
|
-
|
|
294
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
328
295
|
identifier: Schema.String,
|
|
329
296
|
verified: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
330
297
|
});
|
|
@@ -347,6 +314,24 @@ const ContactsRemoveIdentity404 = ResourceNotFoundError;
|
|
|
347
314
|
const ContactsRemoveIdentity422 = ValidationError;
|
|
348
315
|
const ContactsRemoveIdentity500 = InternalError;
|
|
349
316
|
const ContactsRemoveIdentity504 = GatewayTimeoutError;
|
|
317
|
+
const ContactsSetConsentPathParams = /* @__PURE__ */ Schema.Struct({
|
|
318
|
+
id: ContactId,
|
|
319
|
+
identityId: ContactIdentityId,
|
|
320
|
+
channel: Schema.Literal("email")
|
|
321
|
+
});
|
|
322
|
+
const ContactsSetConsentRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
323
|
+
status: Schema.Union([Schema.Literal("opted_in"), Schema.Literal("opted_out")]),
|
|
324
|
+
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" })),
|
|
325
|
+
capturedAt: Schema.String,
|
|
326
|
+
proof: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
|
|
327
|
+
});
|
|
328
|
+
const ContactsSetConsent200 = Contact;
|
|
329
|
+
const ContactsSetConsent401 = UnauthorizedError;
|
|
330
|
+
const ContactsSetConsent403 = ForbiddenError;
|
|
331
|
+
const ContactsSetConsent404 = ResourceNotFoundError;
|
|
332
|
+
const ContactsSetConsent422 = ValidationError;
|
|
333
|
+
const ContactsSetConsent500 = InternalError;
|
|
334
|
+
const ContactsSetConsent504 = GatewayTimeoutError;
|
|
350
335
|
const ContactsAddTagsPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactId });
|
|
351
336
|
const ContactsAddTagsRequestJson = /* @__PURE__ */ Schema.Struct({ tags: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) });
|
|
352
337
|
const ContactsAddTags200 = Contact;
|
|
@@ -632,7 +617,19 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
632
617
|
ContactsRemoveIdentity500,
|
|
633
618
|
ContactsRemoveIdentity504.pipe(HttpApiSchema.status(504))
|
|
634
619
|
]
|
|
635
|
-
}).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.
|
|
620
|
+
}).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", {
|
|
621
|
+
params: ContactsSetConsentPathParams,
|
|
622
|
+
payload: ContactsSetConsentRequestJson,
|
|
623
|
+
success: ContactsSetConsent200,
|
|
624
|
+
error: [
|
|
625
|
+
ContactsSetConsent401.pipe(HttpApiSchema.status(401)),
|
|
626
|
+
ContactsSetConsent403.pipe(HttpApiSchema.status(403)),
|
|
627
|
+
ContactsSetConsent404.pipe(HttpApiSchema.status(404)),
|
|
628
|
+
ContactsSetConsent422.pipe(HttpApiSchema.status(422)),
|
|
629
|
+
ContactsSetConsent500,
|
|
630
|
+
ContactsSetConsent504.pipe(HttpApiSchema.status(504))
|
|
631
|
+
]
|
|
632
|
+
}).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", {
|
|
636
633
|
params: ContactsAddTagsPathParams,
|
|
637
634
|
payload: ContactsAddTagsRequestJson,
|
|
638
635
|
success: ContactsAddTags200,
|
|
@@ -722,7 +719,7 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
722
719
|
ContactsFind500,
|
|
723
720
|
ContactsFind504.pipe(HttpApiSchema.status(504))
|
|
724
721
|
]
|
|
725
|
-
}).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", {
|
|
722
|
+
}).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", {
|
|
726
723
|
payload: ContactsFindOrCreateRequestJson,
|
|
727
724
|
success: ContactsFindOrCreate200,
|
|
728
725
|
error: [
|
|
@@ -737,51 +734,6 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
737
734
|
]
|
|
738
735
|
}).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") {};
|
|
739
736
|
//#endregion
|
|
740
|
-
|
|
741
|
-
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
742
|
-
addIdentity: () => addIdentity,
|
|
743
|
-
addTags: () => addTags,
|
|
744
|
-
bulkDelete: () => bulkDelete,
|
|
745
|
-
bulkImport: () => bulkImport,
|
|
746
|
-
bulkUpdateStatus: () => bulkUpdateStatus,
|
|
747
|
-
bulkUpdateTags: () => bulkUpdateTags,
|
|
748
|
-
create: () => create,
|
|
749
|
-
export: () => exportContacts,
|
|
750
|
-
find: () => find,
|
|
751
|
-
findOrCreate: () => findOrCreate,
|
|
752
|
-
get: () => get,
|
|
753
|
-
getActivityTimeline: () => getActivityTimeline,
|
|
754
|
-
getEngagement: () => getEngagement,
|
|
755
|
-
getGroupMemberships: () => getGroupMemberships,
|
|
756
|
-
list: () => list,
|
|
757
|
-
listEvents: () => listEvents,
|
|
758
|
-
remove: () => remove,
|
|
759
|
-
removeIdentity: () => removeIdentity,
|
|
760
|
-
removeTags: () => removeTags,
|
|
761
|
-
update: () => update
|
|
762
|
-
});
|
|
763
|
-
const make = forGroup(ContactsGroup);
|
|
764
|
-
const list = make("contactsList");
|
|
765
|
-
const create = make("contactsCreate");
|
|
766
|
-
const find = make("contactsFind");
|
|
767
|
-
const findOrCreate = make("contactsFindOrCreate");
|
|
768
|
-
const get = make("contactsGet");
|
|
769
|
-
const remove = make("contactsRemove");
|
|
770
|
-
const update = make("contactsUpdate");
|
|
771
|
-
const addIdentity = make("contactsAddIdentity");
|
|
772
|
-
const removeIdentity = make("contactsRemoveIdentity");
|
|
773
|
-
const addTags = make("contactsAddTags");
|
|
774
|
-
const removeTags = make("contactsRemoveTags");
|
|
775
|
-
const getEngagement = make("contactsGetEngagement");
|
|
776
|
-
const bulkImport = make("contactsBulkImport");
|
|
777
|
-
const bulkDelete = make("contactsBulkDelete");
|
|
778
|
-
const bulkUpdateTags = make("contactsBulkUpdateTags");
|
|
779
|
-
const bulkUpdateStatus = make("contactsBulkUpdateStatus");
|
|
780
|
-
const exportContacts = make("contactsExport");
|
|
781
|
-
const getActivityTimeline = make("contactsGetActivityTimeline");
|
|
782
|
-
const getGroupMemberships = make("contactsGetGroupMemberships");
|
|
783
|
-
const listEvents = forGroup(ContactEventsGroup)("contactEventsListEvents");
|
|
784
|
-
//#endregion
|
|
785
|
-
export { listEvents as _, bulkUpdateStatus as a, removeTags as b, create as c, findOrCreate as d, get as f, list as g, getGroupMemberships as h, bulkImport as i, exportContacts as l, getEngagement as m, addTags as n, bulkUpdateTags as o, getActivityTimeline as p, bulkDelete as r, contacts_exports as s, addIdentity as t, find as u, remove as v, update as x, removeIdentity as y };
|
|
737
|
+
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, ContactsSetConsent200, ContactsSetConsent401, ContactsSetConsent403, ContactsSetConsent404, ContactsSetConsent422, ContactsSetConsent500, ContactsSetConsent504, ContactsSetConsentPathParams, ContactsSetConsentRequestJson, ContactsUpdate200, ContactsUpdate401, ContactsUpdate402, ContactsUpdate403, ContactsUpdate404, ContactsUpdate422, ContactsUpdate500, ContactsUpdate502, ContactsUpdate504, ContactsUpdatePathParams, ContactsUpdateRequestJson };
|
|
786
738
|
|
|
787
|
-
//# sourceMappingURL=contacts
|
|
739
|
+
//# 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
|
}>>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as JsonObject, D as Cursor, Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Tt as MessagePage, Y as InternalError, en as ValidationError, et as JsonValue, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware, v as ContactId, x as ConversationId } from "./client-DOzUrdTE.js";
|
|
3
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, ContactId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, JsonValue, MessagePage, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
3
|
import * as Schema from "effect/Schema";
|
|
6
4
|
//#region src/effect/generated/conversations.ts
|
|
@@ -36,7 +34,7 @@ const ConversationContact = /* @__PURE__ */ Schema.Struct({
|
|
|
36
34
|
name: Schema.String,
|
|
37
35
|
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
38
36
|
identities: Schema.Array(Schema.Struct({
|
|
39
|
-
|
|
37
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
40
38
|
identifier: Schema.String,
|
|
41
39
|
verified: Schema.Boolean
|
|
42
40
|
}))
|
|
@@ -458,37 +456,6 @@ var ConversationsGroup = class extends HttpApiGroup.make("Conversations").add(Ht
|
|
|
458
456
|
]
|
|
459
457
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "conversations.removeTags").annotate(OpenApi.Summary, "Remove conversation tags").annotate(OpenApi.Description, "Removes the given tags from the conversation and returns the conversation. A tag the conversation does not have is ignored.")).annotate(OpenApi.Description, "Create, update, and list conversations with your contacts.") {};
|
|
460
458
|
//#endregion
|
|
461
|
-
|
|
462
|
-
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
463
|
-
addCategories: () => addCategories,
|
|
464
|
-
addChannels: () => addChannels,
|
|
465
|
-
addContacts: () => addContacts,
|
|
466
|
-
addTags: () => addTags,
|
|
467
|
-
create: () => create,
|
|
468
|
-
getById: () => getById,
|
|
469
|
-
list: () => list,
|
|
470
|
-
listMessages: () => listMessages,
|
|
471
|
-
removeCategories: () => removeCategories,
|
|
472
|
-
removeChannels: () => removeChannels,
|
|
473
|
-
removeContacts: () => removeContacts,
|
|
474
|
-
removeTags: () => removeTags,
|
|
475
|
-
update: () => update
|
|
476
|
-
});
|
|
477
|
-
const make = forGroup(ConversationsGroup);
|
|
478
|
-
const list = make("conversationsList");
|
|
479
|
-
const create = make("conversationsCreate");
|
|
480
|
-
const getById = make("conversationsGetById");
|
|
481
|
-
const listMessages = make("conversationsListMessages");
|
|
482
|
-
const update = make("conversationsUpdate");
|
|
483
|
-
const addTags = make("conversationsAddTags");
|
|
484
|
-
const removeTags = make("conversationsRemoveTags");
|
|
485
|
-
const addCategories = make("conversationsAddCategories");
|
|
486
|
-
const removeCategories = make("conversationsRemoveCategories");
|
|
487
|
-
const addChannels = make("conversationsAddChannels");
|
|
488
|
-
const removeChannels = make("conversationsRemoveChannels");
|
|
489
|
-
const addContacts = make("conversationsAddContacts");
|
|
490
|
-
const removeContacts = make("conversationsRemoveContacts");
|
|
491
|
-
//#endregion
|
|
492
|
-
export { conversations_exports as a, list as c, removeChannels as d, removeContacts as f, addTags as i, listMessages as l, update as m, addChannels as n, create as o, removeTags as p, addContacts as r, getById as s, addCategories as t, removeCategories as u };
|
|
459
|
+
export { Conversation, ConversationContact, ConversationContext, ConversationPage, ConversationSummary, ConversationsAddCategories200, ConversationsAddCategories401, ConversationsAddCategories403, ConversationsAddCategories404, ConversationsAddCategories422, ConversationsAddCategories500, ConversationsAddCategories504, ConversationsAddCategoriesPathParams, ConversationsAddCategoriesRequestJson, ConversationsAddChannels200, ConversationsAddChannels401, ConversationsAddChannels403, ConversationsAddChannels404, ConversationsAddChannels422, ConversationsAddChannels500, ConversationsAddChannels504, ConversationsAddChannelsPathParams, ConversationsAddChannelsRequestJson, ConversationsAddContacts200, ConversationsAddContacts401, ConversationsAddContacts403, ConversationsAddContacts404, ConversationsAddContacts422, ConversationsAddContacts500, ConversationsAddContacts504, ConversationsAddContactsPathParams, ConversationsAddContactsRequestJson, ConversationsAddTags200, ConversationsAddTags401, ConversationsAddTags403, ConversationsAddTags404, ConversationsAddTags422, ConversationsAddTags500, ConversationsAddTags504, ConversationsAddTagsPathParams, ConversationsAddTagsRequestJson, ConversationsCreate201, ConversationsCreate401, ConversationsCreate403, ConversationsCreate422, ConversationsCreate500, ConversationsCreate504, ConversationsCreateRequestJson, ConversationsGetById200, ConversationsGetById401, ConversationsGetById403, ConversationsGetById404, ConversationsGetById422, ConversationsGetById500, ConversationsGetById504, ConversationsGetByIdPathParams, ConversationsGroup, ConversationsList200, ConversationsList401, ConversationsList403, ConversationsList422, ConversationsList500, ConversationsList504, ConversationsListMessages200, ConversationsListMessages401, ConversationsListMessages403, ConversationsListMessages404, ConversationsListMessages422, ConversationsListMessages500, ConversationsListMessages504, ConversationsListMessagesPathParams, ConversationsListMessagesQuery, ConversationsListQuery, ConversationsRemoveCategories200, ConversationsRemoveCategories401, ConversationsRemoveCategories403, ConversationsRemoveCategories404, ConversationsRemoveCategories422, ConversationsRemoveCategories500, ConversationsRemoveCategories504, ConversationsRemoveCategoriesPathParams, ConversationsRemoveCategoriesRequestJson, ConversationsRemoveChannels200, ConversationsRemoveChannels401, ConversationsRemoveChannels403, ConversationsRemoveChannels404, ConversationsRemoveChannels422, ConversationsRemoveChannels500, ConversationsRemoveChannels504, ConversationsRemoveChannelsPathParams, ConversationsRemoveChannelsRequestJson, ConversationsRemoveContacts200, ConversationsRemoveContacts401, ConversationsRemoveContacts403, ConversationsRemoveContacts404, ConversationsRemoveContacts422, ConversationsRemoveContacts500, ConversationsRemoveContacts504, ConversationsRemoveContactsPathParams, ConversationsRemoveContactsRequestJson, ConversationsRemoveTags200, ConversationsRemoveTags401, ConversationsRemoveTags403, ConversationsRemoveTags404, ConversationsRemoveTags422, ConversationsRemoveTags500, ConversationsRemoveTags504, ConversationsRemoveTagsPathParams, ConversationsRemoveTagsRequestJson, ConversationsUpdate200, ConversationsUpdate401, ConversationsUpdate403, ConversationsUpdate404, ConversationsUpdate422, ConversationsUpdate500, ConversationsUpdate504, ConversationsUpdatePathParams, ConversationsUpdateRequestJson, UnknownRecord };
|
|
493
460
|
|
|
494
|
-
//# sourceMappingURL=conversations
|
|
461
|
+
//# sourceMappingURL=conversations.js.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Jt as UnauthorizedError, K as ForbiddenError, Lt as ResourceNotFoundError, Mt as OrganizationId, Y as InternalError, en as ValidationError, m as ConflictError, q as GatewayTimeoutError, s as ApiKeySecurityMiddleware } from "./client-DOzUrdTE.js";
|
|
3
|
-
import { n as forGroup } from "./operation-n_IYgNVK.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
3
|
import * as Schema from "effect/Schema";
|
|
6
4
|
//#region src/effect/generated/custom-fields.ts
|
|
@@ -8,7 +6,7 @@ const CustomFieldDefinitionId = /* @__PURE__ */ Schema.String.check(Schema.isPat
|
|
|
8
6
|
expected: "a string matching the RegExp ^cfield_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
9
7
|
identifier: "CustomFieldDefinitionId"
|
|
10
8
|
})).pipe(Schema.brand("CustomFieldDefinitionId"));
|
|
11
|
-
const
|
|
9
|
+
const CustomFieldList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Schema.Struct({
|
|
12
10
|
id: CustomFieldDefinitionId,
|
|
13
11
|
organizationId: OrganizationId,
|
|
14
12
|
key: Schema.String,
|
|
@@ -27,6 +25,7 @@ const CustomFieldsList200 = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(
|
|
|
27
25
|
createdAt: Schema.String,
|
|
28
26
|
updatedAt: Schema.String
|
|
29
27
|
})).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "CustomFieldList" });
|
|
28
|
+
const CustomFieldsList200 = CustomFieldList;
|
|
30
29
|
const CustomFieldsList401 = UnauthorizedError;
|
|
31
30
|
const CustomFieldsList403 = ForbiddenError;
|
|
32
31
|
const CustomFieldsList422 = ValidationError;
|
|
@@ -158,19 +157,6 @@ var CustomFieldsGroup = class extends HttpApiGroup.make("Custom Fields").add(Htt
|
|
|
158
157
|
]
|
|
159
158
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "customFields.update").annotate(OpenApi.Summary, "Update a custom field").annotate(OpenApi.Description, "Updates an existing custom field definition and returns the updated field.")).annotate(OpenApi.Description, "Custom field definitions for contact metadata") {};
|
|
160
159
|
//#endregion
|
|
161
|
-
|
|
162
|
-
var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
163
|
-
create: () => create,
|
|
164
|
-
list: () => list,
|
|
165
|
-
remove: () => remove,
|
|
166
|
-
update: () => update
|
|
167
|
-
});
|
|
168
|
-
const make = forGroup(CustomFieldsGroup);
|
|
169
|
-
const list = make("customFieldsList");
|
|
170
|
-
const create = make("customFieldsCreate");
|
|
171
|
-
const update = make("customFieldsUpdate");
|
|
172
|
-
const remove = make("customFieldsRemove");
|
|
173
|
-
//#endregion
|
|
174
|
-
export { update as a, remove as i, custom_fields_exports as n, list as r, create as t };
|
|
160
|
+
export { CustomFieldDefinitionId, CustomFieldList, CustomFieldsCreate201, CustomFieldsCreate401, CustomFieldsCreate403, CustomFieldsCreate409, CustomFieldsCreate422, CustomFieldsCreate500, CustomFieldsCreate504, CustomFieldsCreateRequestJson, CustomFieldsGroup, CustomFieldsList200, CustomFieldsList401, CustomFieldsList403, CustomFieldsList422, CustomFieldsList500, CustomFieldsList504, CustomFieldsRemove200, CustomFieldsRemove401, CustomFieldsRemove403, CustomFieldsRemove404, CustomFieldsRemove422, CustomFieldsRemove500, CustomFieldsRemove504, CustomFieldsRemovePathParams, CustomFieldsUpdate200, CustomFieldsUpdate401, CustomFieldsUpdate403, CustomFieldsUpdate404, CustomFieldsUpdate422, CustomFieldsUpdate500, CustomFieldsUpdate504, CustomFieldsUpdatePathParams, CustomFieldsUpdateRequestJson };
|
|
175
161
|
|
|
176
|
-
//# sourceMappingURL=custom-fields
|
|
162
|
+
//# sourceMappingURL=custom-fields.js.map
|