samva 0.56.0 → 0.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -2
- package/README.md +9 -8
- package/dist/effect/accounts.js +9 -10
- package/dist/effect/agents.js +16 -17
- package/dist/effect/analytics.js +9 -10
- package/dist/effect/api-keys.js +11 -12
- package/dist/effect/approval-requests.js +7 -8
- package/dist/effect/attachments.js +7 -8
- package/dist/effect/brands.js +9 -10
- package/dist/effect/campaigns.js +18 -19
- package/dist/effect/contact-groups.js +13 -14
- package/dist/effect/contacts.js +29 -30
- package/dist/effect/conversations.js +16 -17
- package/dist/effect/custom-fields.js +7 -8
- package/dist/effect/descriptors/accounts.d.ts +50 -52
- package/dist/effect/descriptors/accounts.js +50 -52
- package/dist/effect/descriptors/agents.d.ts +113 -115
- package/dist/effect/descriptors/agents.js +120 -122
- package/dist/effect/descriptors/analytics.d.ts +47 -49
- package/dist/effect/descriptors/analytics.js +42 -44
- package/dist/effect/descriptors/api-keys.d.ts +69 -71
- package/dist/effect/descriptors/api-keys.js +73 -75
- package/dist/effect/descriptors/approval-requests.d.ts +34 -36
- package/dist/effect/descriptors/approval-requests.js +36 -38
- package/dist/effect/descriptors/attachments.d.ts +34 -36
- package/dist/effect/descriptors/attachments.js +36 -38
- package/dist/effect/descriptors/brands.d.ts +51 -53
- package/dist/effect/descriptors/brands.js +53 -55
- package/dist/effect/descriptors/campaigns.d.ts +130 -132
- package/dist/effect/descriptors/campaigns.js +137 -139
- package/dist/effect/descriptors/contact-groups.d.ts +86 -88
- package/dist/effect/descriptors/contact-groups.js +90 -92
- package/dist/effect/descriptors/contacts.d.ts +242 -244
- package/dist/effect/descriptors/contacts.js +227 -229
- package/dist/effect/descriptors/conversations.d.ts +114 -116
- package/dist/effect/descriptors/conversations.js +123 -125
- package/dist/effect/descriptors/custom-fields.d.ts +33 -35
- package/dist/effect/descriptors/custom-fields.js +33 -35
- package/dist/effect/descriptors/email.d.ts +623 -625
- package/dist/effect/descriptors/email.js +562 -578
- package/dist/effect/descriptors/events.d.ts +15 -17
- package/dist/effect/descriptors/events.js +14 -16
- package/dist/effect/descriptors/feedback.d.ts +7 -9
- package/dist/effect/descriptors/feedback.js +3 -3
- package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
- package/dist/effect/descriptors/integrations-catalog.js +142 -144
- package/dist/effect/descriptors/integrations.d.ts +60 -62
- package/dist/effect/descriptors/integrations.js +63 -65
- package/dist/effect/descriptors/journeys.d.ts +123 -125
- package/dist/effect/descriptors/journeys.js +133 -135
- package/dist/effect/descriptors/logs.d.ts +16 -18
- package/dist/effect/descriptors/logs.js +16 -18
- package/dist/effect/descriptors/mailboxes.d.ts +780 -782
- package/dist/effect/descriptors/mailboxes.js +795 -797
- package/dist/effect/descriptors/media.d.ts +43 -45
- package/dist/effect/descriptors/media.js +46 -48
- package/dist/effect/descriptors/messages.d.ts +86 -88
- package/dist/effect/descriptors/messages.js +83 -92
- package/dist/effect/descriptors/namespaces.d.ts +96 -98
- package/dist/effect/descriptors/namespaces.js +107 -109
- package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
- package/dist/effect/descriptors/newsletter-domains.js +39 -41
- package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
- package/dist/effect/descriptors/newsletter-issues.js +109 -111
- package/dist/effect/descriptors/newsletters.d.ts +43 -45
- package/dist/effect/descriptors/newsletters.js +46 -48
- package/dist/effect/descriptors/operations.d.ts +25 -27
- package/dist/effect/descriptors/operations.js +26 -28
- package/dist/effect/descriptors/organizations.d.ts +96 -98
- package/dist/effect/descriptors/organizations.js +86 -88
- package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
- package/dist/effect/descriptors/phone-numbers.js +40 -42
- package/dist/effect/descriptors/policies.d.ts +26 -28
- package/dist/effect/descriptors/policies.js +29 -31
- package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
- package/dist/effect/descriptors/scheduled-messages.js +43 -45
- package/dist/effect/descriptors/subscriptions.d.ts +7 -9
- package/dist/effect/descriptors/subscriptions.js +3 -3
- package/dist/effect/descriptors/template-registrations.d.ts +26 -28
- package/dist/effect/descriptors/template-registrations.js +29 -31
- package/dist/effect/descriptors/template-share-links.d.ts +44 -46
- package/dist/effect/descriptors/template-share-links.js +49 -51
- package/dist/effect/descriptors/templates.d.ts +361 -363
- package/dist/effect/descriptors/templates.js +348 -350
- package/dist/effect/descriptors/topic-forms.d.ts +44 -46
- package/dist/effect/descriptors/topic-forms.js +49 -51
- package/dist/effect/descriptors/topics.d.ts +77 -79
- package/dist/effect/descriptors/topics.js +80 -82
- package/dist/effect/descriptors/webhooks.d.ts +96 -98
- package/dist/effect/descriptors/webhooks.js +103 -105
- package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
- package/dist/effect/descriptors/whats-app-flows.js +90 -92
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
- package/dist/effect/descriptors/whats-app-setup-links.js +33 -35
- package/dist/effect/descriptors/whats-app.d.ts +110 -112
- package/dist/effect/descriptors/whats-app.js +111 -113
- package/dist/effect/descriptors/whoami.d.ts +7 -9
- package/dist/effect/descriptors/whoami.js +3 -3
- package/dist/effect/email.js +66 -67
- package/dist/effect/events.js +5 -6
- package/dist/effect/feedback.js +4 -4
- package/dist/effect/generated/accounts.d.ts +144 -142
- package/dist/effect/generated/accounts.js +14 -9
- package/dist/effect/generated/agents.d.ts +1502 -1493
- package/dist/effect/generated/agents.js +28 -16
- package/dist/effect/generated/analytics.d.ts +55 -53
- package/dist/effect/generated/analytics.js +14 -9
- package/dist/effect/generated/api-keys.d.ts +216 -212
- package/dist/effect/generated/api-keys.js +18 -11
- package/dist/effect/generated/approval-requests.d.ts +60 -60
- package/dist/effect/generated/approval-requests.js +10 -7
- package/dist/effect/generated/attachments.d.ts +32 -32
- package/dist/effect/generated/attachments.js +10 -7
- package/dist/effect/generated/brands.d.ts +179 -177
- package/dist/effect/generated/brands.js +14 -9
- package/dist/effect/generated/campaigns.d.ts +1083 -1072
- package/dist/effect/generated/campaigns.js +32 -18
- package/dist/effect/generated/contact-events.d.ts +3 -6
- package/dist/effect/generated/contact-events.js +4 -4
- package/dist/effect/generated/contact-groups.d.ts +186 -180
- package/dist/effect/generated/contact-groups.js +22 -13
- package/dist/effect/generated/contacts.d.ts +1565 -1545
- package/dist/effect/generated/contacts.js +50 -27
- package/dist/effect/generated/conversations.d.ts +340 -331
- package/dist/effect/generated/conversations.js +28 -16
- package/dist/effect/generated/custom-fields.d.ts +63 -63
- package/dist/effect/generated/custom-fields.js +10 -7
- package/dist/effect/generated/email.d.ts +2731 -2671
- package/dist/effect/generated/email.js +130 -67
- package/dist/effect/generated/events.d.ts +160 -162
- package/dist/effect/generated/events.js +6 -5
- package/dist/effect/generated/feedback.d.ts +3 -6
- package/dist/effect/generated/feedback.js +4 -4
- package/dist/effect/generated/index.d.ts +174 -45
- package/dist/effect/generated/integrations-catalog.d.ts +459 -446
- package/dist/effect/generated/integrations-catalog.js +36 -20
- package/dist/effect/generated/integrations.d.ts +155 -152
- package/dist/effect/generated/integrations.js +16 -10
- package/dist/effect/generated/journeys.d.ts +864 -854
- package/dist/effect/generated/journeys.js +30 -17
- package/dist/effect/generated/logs.d.ts +147 -149
- package/dist/effect/generated/logs.js +6 -5
- package/dist/effect/generated/mailboxes.d.ts +7271 -7196
- package/dist/effect/generated/mailboxes.js +160 -82
- package/dist/effect/generated/media.d.ts +77 -76
- package/dist/effect/generated/media.js +12 -8
- package/dist/effect/generated/messages.d.ts +1092 -1086
- package/dist/effect/generated/messages.js +22 -13
- package/dist/effect/generated/namespaces.d.ts +184 -177
- package/dist/effect/generated/namespaces.js +24 -14
- package/dist/effect/generated/newsletter-domains.d.ts +57 -57
- package/dist/effect/generated/newsletter-domains.js +10 -7
- package/dist/effect/generated/newsletter-issues.d.ts +225 -218
- package/dist/effect/generated/newsletter-issues.js +24 -14
- package/dist/effect/generated/newsletters.d.ts +46 -45
- package/dist/effect/generated/newsletters.js +12 -8
- package/dist/effect/generated/operations.d.ts +79 -80
- package/dist/effect/generated/operations.js +8 -6
- package/dist/effect/generated/organizations.d.ts +438 -430
- package/dist/effect/generated/organizations.js +26 -15
- package/dist/effect/generated/phone-numbers.d.ts +87 -86
- package/dist/effect/generated/phone-numbers.js +12 -8
- package/dist/effect/generated/policies.d.ts +64 -65
- package/dist/effect/generated/policies.js +8 -6
- package/dist/effect/generated/scheduled-messages.d.ts +66 -65
- package/dist/effect/generated/scheduled-messages.js +12 -8
- package/dist/effect/generated/shared.d.ts +33 -33
- package/dist/effect/generated/shared.js +61 -61
- package/dist/effect/generated/subscriptions.d.ts +3 -6
- package/dist/effect/generated/subscriptions.js +4 -4
- package/dist/effect/generated/template-registrations.d.ts +135 -136
- package/dist/effect/generated/template-registrations.js +8 -6
- package/dist/effect/generated/template-share-links.d.ts +25 -24
- package/dist/effect/generated/template-share-links.js +12 -8
- package/dist/effect/generated/templates.d.ts +2678 -2645
- package/dist/effect/generated/templates.js +76 -40
- package/dist/effect/generated/topic-forms.d.ts +47 -46
- package/dist/effect/generated/topic-forms.js +12 -8
- package/dist/effect/generated/topics.d.ts +204 -199
- package/dist/effect/generated/topics.js +20 -12
- package/dist/effect/generated/webhooks.d.ts +268 -261
- package/dist/effect/generated/webhooks.js +24 -14
- package/dist/effect/generated/whats-app-flows.d.ts +250 -244
- package/dist/effect/generated/whats-app-flows.js +22 -13
- package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
- package/dist/effect/generated/whats-app-setup-links.js +10 -7
- package/dist/effect/generated/whats-app.d.ts +439 -430
- package/dist/effect/generated/whats-app.js +28 -16
- package/dist/effect/generated/whoami.d.ts +3 -6
- package/dist/effect/generated/whoami.js +4 -4
- package/dist/effect/integrations-catalog.js +20 -21
- package/dist/effect/integrations.js +10 -11
- package/dist/effect/internal/client.d.ts +2 -1
- package/dist/effect/internal/client.js +3 -3
- package/dist/effect/internal/email-sender.js +5 -4
- package/dist/effect/internal/operation.d.ts +11 -7
- package/dist/effect/internal/operation.js +17 -12
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/journeys.js +17 -18
- package/dist/effect/logs.js +5 -6
- package/dist/effect/mailboxes.js +82 -83
- package/dist/effect/media.js +8 -9
- package/dist/effect/messages.js +12 -13
- package/dist/effect/namespaces.js +14 -15
- package/dist/effect/newsletter-domains.js +7 -8
- package/dist/effect/newsletter-issues.js +14 -15
- package/dist/effect/newsletters.js +8 -9
- package/dist/effect/operations.js +6 -7
- package/dist/effect/organizations.js +15 -16
- package/dist/effect/phone-numbers.js +8 -9
- package/dist/effect/policies.js +6 -7
- package/dist/effect/runtime.js +3 -3
- package/dist/effect/scheduled-messages.js +8 -9
- package/dist/effect/subscriptions.js +4 -4
- package/dist/effect/template-registrations.js +6 -7
- package/dist/effect/template-share-links.js +8 -9
- package/dist/effect/templates.js +40 -41
- package/dist/effect/topic-forms.js +8 -9
- package/dist/effect/topics.js +12 -13
- package/dist/effect/webhooks.js +14 -15
- package/dist/effect/whatsapp-flows.js +13 -14
- package/dist/effect/whatsapp-setup-links.js +7 -8
- package/dist/effect/whatsapp.js +16 -17
- package/dist/effect/whoami.js +4 -4
- package/dist/package.json.js +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiEndpoint,
|
|
1
|
+
import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/contacts.ts
|
|
@@ -846,7 +846,7 @@ const ContactsPlanImport404 = ResourceNotFoundError;
|
|
|
846
846
|
const ContactsPlanImport422 = ValidationError;
|
|
847
847
|
const ContactsPlanImport500 = InternalError;
|
|
848
848
|
const ContactsPlanImport504 = GatewayTimeoutError;
|
|
849
|
-
|
|
849
|
+
const ContactsListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("contactsList", "/v1/contacts", {
|
|
850
850
|
query: ContactsListQuery,
|
|
851
851
|
success: ContactsList200,
|
|
852
852
|
error: [
|
|
@@ -857,7 +857,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
857
857
|
ContactsList500,
|
|
858
858
|
ContactsList504.pipe(HttpApiSchema.status(504))
|
|
859
859
|
]
|
|
860
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.list").annotate(OpenApi.Summary, "List contacts").annotate(OpenApi.Description, "Returns contact summaries for the organization, newest first, filterable by search term, status, and creation time (`after`, `before`). `fields` is a comma-separated list of defined custom field keys to return in each summary's `customFields`; omitted keys and unselected fields are not returned. Filter by one defined custom field with `customField` and a JSON-encoded scalar `customFieldValue` (for example, `\"creator\"`, `42`, or `true`). Both filter parameters are required together, and unknown keys or values of the wrong type are rejected. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read full identities, profile, and metadata with `GET /v1/contacts/{id}`.")
|
|
860
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.list").annotate(OpenApi.Summary, "List contacts").annotate(OpenApi.Description, "Returns contact summaries for the organization, newest first, filterable by search term, status, and creation time (`after`, `before`). `fields` is a comma-separated list of defined custom field keys to return in each summary's `customFields`; omitted keys and unselected fields are not returned. Filter by one defined custom field with `customField` and a JSON-encoded scalar `customFieldValue` (for example, `\"creator\"`, `42`, or `true`). Both filter parameters are required together, and unknown keys or values of the wrong type are rejected. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read full identities, profile, and metadata with `GET /v1/contacts/{id}`."))();
|
|
861
|
+
const ContactsCreateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsCreate", "/v1/contacts", {
|
|
861
862
|
payload: ContactsCreateRequestJson,
|
|
862
863
|
success: ContactsCreate201.pipe(HttpApiSchema.status(201)),
|
|
863
864
|
error: [
|
|
@@ -872,7 +873,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
872
873
|
ContactsCreate502.pipe(HttpApiSchema.status(502)),
|
|
873
874
|
ContactsCreate504.pipe(HttpApiSchema.status(504))
|
|
874
875
|
]
|
|
875
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.create").annotate(OpenApi.Summary, "Create a contact").annotate(OpenApi.Description, "Creates a contact and returns it with a 201 status. An identity another contact already holds is a conflict.")
|
|
876
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.create").annotate(OpenApi.Summary, "Create a contact").annotate(OpenApi.Description, "Creates a contact and returns it with a 201 status. An identity another contact already holds is a conflict."))();
|
|
877
|
+
const ContactsGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("contactsGet", "/v1/contacts/:id", {
|
|
876
878
|
params: ContactsGetPathParams,
|
|
877
879
|
success: ContactsGet200,
|
|
878
880
|
error: [
|
|
@@ -884,7 +886,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
884
886
|
ContactsGet500,
|
|
885
887
|
ContactsGet504.pipe(HttpApiSchema.status(504))
|
|
886
888
|
]
|
|
887
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.get").annotate(OpenApi.Summary, "Get a contact").annotate(OpenApi.Description, "Returns a contact with its identities, profile, tags, and metadata.")
|
|
889
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.get").annotate(OpenApi.Summary, "Get a contact").annotate(OpenApi.Description, "Returns a contact with its identities, profile, tags, and metadata."))();
|
|
890
|
+
const ContactsRemoveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("contactsRemove", "/v1/contacts/:id", {
|
|
888
891
|
params: ContactsRemovePathParams,
|
|
889
892
|
success: ContactsRemove200,
|
|
890
893
|
error: [
|
|
@@ -897,7 +900,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
897
900
|
ContactsRemove502.pipe(HttpApiSchema.status(502)),
|
|
898
901
|
ContactsRemove504.pipe(HttpApiSchema.status(504))
|
|
899
902
|
]
|
|
900
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.remove").annotate(OpenApi.Summary, "Delete a contact").annotate(OpenApi.Description, "Permanently deletes a contact by its ID.")
|
|
903
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.remove").annotate(OpenApi.Summary, "Delete a contact").annotate(OpenApi.Description, "Permanently deletes a contact by its ID."))();
|
|
904
|
+
const ContactsUpdateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("contactsUpdate", "/v1/contacts/:id", {
|
|
901
905
|
params: ContactsUpdatePathParams,
|
|
902
906
|
payload: ContactsUpdateRequestJson,
|
|
903
907
|
success: ContactsUpdate200,
|
|
@@ -912,7 +916,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
912
916
|
ContactsUpdate502.pipe(HttpApiSchema.status(502)),
|
|
913
917
|
ContactsUpdate504.pipe(HttpApiSchema.status(504))
|
|
914
918
|
]
|
|
915
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.update").annotate(OpenApi.Summary, "Update a contact").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key. `profile` replaces each field it names and `null` clears one; its `customFields` merge by key the same way. Identities and tags are not updated here: use `POST /v1/contacts/{id}/identities`, `DELETE /v1/contacts/{id}/identities/{identityId}`, `POST /v1/contacts/{id}/tags`, and `DELETE /v1/contacts/{id}/tags`.")
|
|
919
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.update").annotate(OpenApi.Summary, "Update a contact").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key. `profile` replaces each field it names and `null` clears one; its `customFields` merge by key the same way. Identities and tags are not updated here: use `POST /v1/contacts/{id}/identities`, `DELETE /v1/contacts/{id}/identities/{identityId}`, `POST /v1/contacts/{id}/tags`, and `DELETE /v1/contacts/{id}/tags`."))();
|
|
920
|
+
const ContactsGetActivityTimelineEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("contactsGetActivityTimeline", "/v1/contacts/:id/activity", {
|
|
916
921
|
params: ContactsGetActivityTimelinePathParams,
|
|
917
922
|
query: ContactsGetActivityTimelineQuery,
|
|
918
923
|
success: ContactsGetActivityTimeline200,
|
|
@@ -925,7 +930,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
925
930
|
ContactsGetActivityTimeline500,
|
|
926
931
|
ContactsGetActivityTimeline504.pipe(HttpApiSchema.status(504))
|
|
927
932
|
]
|
|
928
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getActivityTimeline").annotate(OpenApi.Summary, "Get contact activity timeline").annotate(OpenApi.Description, "Returns a contact's message activity, newest first, optionally filtered by channel. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.")
|
|
933
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getActivityTimeline").annotate(OpenApi.Summary, "Get contact activity timeline").annotate(OpenApi.Description, "Returns a contact's message activity, newest first, optionally filtered by channel. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."))();
|
|
934
|
+
const ContactsGetEngagementEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("contactsGetEngagement", "/v1/contacts/:id/engagement", {
|
|
929
935
|
params: ContactsGetEngagementPathParams,
|
|
930
936
|
success: ContactsGetEngagement200,
|
|
931
937
|
error: [
|
|
@@ -937,7 +943,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
937
943
|
ContactsGetEngagement500,
|
|
938
944
|
ContactsGetEngagement504.pipe(HttpApiSchema.status(504))
|
|
939
945
|
]
|
|
940
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getEngagement").annotate(OpenApi.Summary, "Get contact engagement metrics").annotate(OpenApi.Description, "Returns aggregated engagement metrics for a contact, including message counts and active conversation totals.")
|
|
946
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getEngagement").annotate(OpenApi.Summary, "Get contact engagement metrics").annotate(OpenApi.Description, "Returns aggregated engagement metrics for a contact, including message counts and active conversation totals."))();
|
|
947
|
+
const ContactsGetGroupMembershipsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("contactsGetGroupMemberships", "/v1/contacts/:id/groups", {
|
|
941
948
|
params: ContactsGetGroupMembershipsPathParams,
|
|
942
949
|
query: ContactsGetGroupMembershipsQuery,
|
|
943
950
|
success: ContactsGetGroupMemberships200,
|
|
@@ -950,7 +957,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
950
957
|
ContactsGetGroupMemberships500,
|
|
951
958
|
ContactsGetGroupMemberships504.pipe(HttpApiSchema.status(504))
|
|
952
959
|
]
|
|
953
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getGroupMemberships").annotate(OpenApi.Summary, "List a contact's group memberships").annotate(OpenApi.Description, "Returns the contact groups a contact belongs to, most recently joined first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.")
|
|
960
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getGroupMemberships").annotate(OpenApi.Summary, "List a contact's group memberships").annotate(OpenApi.Description, "Returns the contact groups a contact belongs to, most recently joined first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."))();
|
|
961
|
+
const ContactsAddIdentityEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsAddIdentity", "/v1/contacts/:id/identities", {
|
|
954
962
|
params: ContactsAddIdentityPathParams,
|
|
955
963
|
payload: ContactsAddIdentityRequestJson,
|
|
956
964
|
success: ContactsAddIdentity200,
|
|
@@ -964,7 +972,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
964
972
|
ContactsAddIdentity500,
|
|
965
973
|
ContactsAddIdentity504.pipe(HttpApiSchema.status(504))
|
|
966
974
|
]
|
|
967
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.addIdentity").annotate(OpenApi.Summary, "Add a contact identity").annotate(OpenApi.Description, "Adds an address the contact is reached at and returns the contact. Adding an address the contact already has updates whether it is verified. An address another contact holds is a conflict.")
|
|
975
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.addIdentity").annotate(OpenApi.Summary, "Add a contact identity").annotate(OpenApi.Description, "Adds an address the contact is reached at and returns the contact. Adding an address the contact already has updates whether it is verified. An address another contact holds is a conflict."))();
|
|
976
|
+
const ContactsRemoveIdentityEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("contactsRemoveIdentity", "/v1/contacts/:id/identities/:identityId", {
|
|
968
977
|
params: ContactsRemoveIdentityPathParams,
|
|
969
978
|
success: ContactsRemoveIdentity200,
|
|
970
979
|
error: [
|
|
@@ -976,7 +985,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
976
985
|
ContactsRemoveIdentity500,
|
|
977
986
|
ContactsRemoveIdentity504.pipe(HttpApiSchema.status(504))
|
|
978
987
|
]
|
|
979
|
-
}).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.")
|
|
988
|
+
}).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."))();
|
|
989
|
+
const ContactsSetConsentEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.put("contactsSetConsent", "/v1/contacts/:id/identities/:identityId/consent/:channel", {
|
|
980
990
|
params: ContactsSetConsentPathParams,
|
|
981
991
|
payload: ContactsSetConsentRequestJson,
|
|
982
992
|
success: ContactsSetConsent200,
|
|
@@ -989,7 +999,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
989
999
|
ContactsSetConsent500,
|
|
990
1000
|
ContactsSetConsent504.pipe(HttpApiSchema.status(504))
|
|
991
1001
|
]
|
|
992
|
-
}).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`.")
|
|
1002
|
+
}).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`."))();
|
|
1003
|
+
const ContactsMergeEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsMerge", "/v1/contacts/:id/merge", {
|
|
993
1004
|
params: ContactsMergePathParams,
|
|
994
1005
|
headers: ContactsMergeHeaders,
|
|
995
1006
|
payload: ContactsMergeRequestJson,
|
|
@@ -1005,7 +1016,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1005
1016
|
ContactsMerge502.pipe(HttpApiSchema.status(502)),
|
|
1006
1017
|
ContactsMerge504.pipe(HttpApiSchema.status(504))
|
|
1007
1018
|
]
|
|
1008
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.merge").annotate(OpenApi.Summary, "Merge contacts").annotate(OpenApi.Description, "Merges `from` into the contact in the path, within one organization and namespace. The kept contact wins profile and metadata conflicts, blank fields fill, and an explicit topic unsubscribe wins. The absorbed contact remains a record pointing to the kept contact; duplicate campaign recipients and other conflict history stay available. A merge cannot be undone. Agents use the merge-by-connection operation with their own verified connection instead of choosing a source contact.")
|
|
1019
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.merge").annotate(OpenApi.Summary, "Merge contacts").annotate(OpenApi.Description, "Merges `from` into the contact in the path, within one organization and namespace. The kept contact wins profile and metadata conflicts, blank fields fill, and an explicit topic unsubscribe wins. The absorbed contact remains a record pointing to the kept contact; duplicate campaign recipients and other conflict history stay available. A merge cannot be undone. Agents use the merge-by-connection operation with their own verified connection instead of choosing a source contact."))();
|
|
1020
|
+
const ContactsMergeByConnectionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsMergeByConnection", "/v1/contacts/:id/merge-by-connection", {
|
|
1009
1021
|
params: ContactsMergeByConnectionPathParams,
|
|
1010
1022
|
headers: ContactsMergeByConnectionHeaders,
|
|
1011
1023
|
payload: ContactsMergeByConnectionRequestJson,
|
|
@@ -1021,7 +1033,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1021
1033
|
ContactsMergeByConnection502.pipe(HttpApiSchema.status(502)),
|
|
1022
1034
|
ContactsMergeByConnection504.pipe(HttpApiSchema.status(504))
|
|
1023
1035
|
]
|
|
1024
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.mergeByConnection").annotate(OpenApi.Summary, "Merge contacts by verified connection").annotate(OpenApi.Description, "Uses the conversation's active per-contact connection and a current signed conversation admission to derive the contact holding its verified email. Supply the account ID as `connection`; an unverified address, another contact's connection, or a different organization or namespace is refused. If no contact holds the verified email, attaches that identity instead. The conversation contact is kept, and the merge conflict rules are the same as the merge operation.")
|
|
1036
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.mergeByConnection").annotate(OpenApi.Summary, "Merge contacts by verified connection").annotate(OpenApi.Description, "Uses the conversation's active per-contact connection and a current signed conversation admission to derive the contact holding its verified email. Supply the account ID as `connection`; an unverified address, another contact's connection, or a different organization or namespace is refused. If no contact holds the verified email, attaches that identity instead. The conversation contact is kept, and the merge conflict rules are the same as the merge operation."))();
|
|
1037
|
+
const ContactsAddTagsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsAddTags", "/v1/contacts/:id/tags", {
|
|
1025
1038
|
params: ContactsAddTagsPathParams,
|
|
1026
1039
|
payload: ContactsAddTagsRequestJson,
|
|
1027
1040
|
success: ContactsAddTags200,
|
|
@@ -1034,7 +1047,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1034
1047
|
ContactsAddTags500,
|
|
1035
1048
|
ContactsAddTags504.pipe(HttpApiSchema.status(504))
|
|
1036
1049
|
]
|
|
1037
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.addTags").annotate(OpenApi.Summary, "Add contact tags").annotate(OpenApi.Description, "Adds the given tags to the contact, keeping the tags it already has, and returns the contact.")
|
|
1050
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.addTags").annotate(OpenApi.Summary, "Add contact tags").annotate(OpenApi.Description, "Adds the given tags to the contact, keeping the tags it already has, and returns the contact."))();
|
|
1051
|
+
const ContactsRemoveTagsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("contactsRemoveTags", "/v1/contacts/:id/tags", {
|
|
1038
1052
|
params: ContactsRemoveTagsPathParams,
|
|
1039
1053
|
payload: ContactsRemoveTagsRequestJson,
|
|
1040
1054
|
success: ContactsRemoveTags200,
|
|
@@ -1047,7 +1061,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1047
1061
|
ContactsRemoveTags500,
|
|
1048
1062
|
ContactsRemoveTags504.pipe(HttpApiSchema.status(504))
|
|
1049
1063
|
]
|
|
1050
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.removeTags").annotate(OpenApi.Summary, "Remove contact tags").annotate(OpenApi.Description, "Removes the given tags from the contact and returns the contact. A tag the contact does not have is ignored.")
|
|
1064
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.removeTags").annotate(OpenApi.Summary, "Remove contact tags").annotate(OpenApi.Description, "Removes the given tags from the contact and returns the contact. A tag the contact does not have is ignored."))();
|
|
1065
|
+
const ContactsBulkDeleteEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsBulkDelete", "/v1/contacts/bulk-delete", {
|
|
1051
1066
|
payload: ContactsBulkDeleteRequestJson,
|
|
1052
1067
|
success: ContactsBulkDelete200,
|
|
1053
1068
|
error: [
|
|
@@ -1059,7 +1074,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1059
1074
|
ContactsBulkDelete502.pipe(HttpApiSchema.status(502)),
|
|
1060
1075
|
ContactsBulkDelete504.pipe(HttpApiSchema.status(504))
|
|
1061
1076
|
]
|
|
1062
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.bulkDelete").annotate(OpenApi.Summary, "Bulk delete contacts").annotate(OpenApi.Description, "Permanently deletes multiple contacts by ID, returning counts of deleted and failed records. One request carries at most 1000 ids.")
|
|
1077
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.bulkDelete").annotate(OpenApi.Summary, "Bulk delete contacts").annotate(OpenApi.Description, "Permanently deletes multiple contacts by ID, returning counts of deleted and failed records. One request carries at most 1000 ids."))();
|
|
1078
|
+
const ContactsBulkUpdateStatusEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsBulkUpdateStatus", "/v1/contacts/bulk-update-status", {
|
|
1063
1079
|
payload: ContactsBulkUpdateStatusRequestJson,
|
|
1064
1080
|
success: ContactsBulkUpdateStatus200,
|
|
1065
1081
|
error: [
|
|
@@ -1072,7 +1088,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1072
1088
|
ContactsBulkUpdateStatus502.pipe(HttpApiSchema.status(502)),
|
|
1073
1089
|
ContactsBulkUpdateStatus504.pipe(HttpApiSchema.status(504))
|
|
1074
1090
|
]
|
|
1075
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.bulkUpdateStatus").annotate(OpenApi.Summary, "Bulk update contact status").annotate(OpenApi.Description, "Sets the status on multiple contacts in one request, returning counts of updated and failed records. One request carries at most 1000 ids.")
|
|
1091
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.bulkUpdateStatus").annotate(OpenApi.Summary, "Bulk update contact status").annotate(OpenApi.Description, "Sets the status on multiple contacts in one request, returning counts of updated and failed records. One request carries at most 1000 ids."))();
|
|
1092
|
+
const ContactsBulkUpdateTagsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsBulkUpdateTags", "/v1/contacts/bulk-update-tags", {
|
|
1076
1093
|
payload: ContactsBulkUpdateTagsRequestJson,
|
|
1077
1094
|
success: ContactsBulkUpdateTags200,
|
|
1078
1095
|
error: [
|
|
@@ -1083,7 +1100,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1083
1100
|
ContactsBulkUpdateTags500,
|
|
1084
1101
|
ContactsBulkUpdateTags504.pipe(HttpApiSchema.status(504))
|
|
1085
1102
|
]
|
|
1086
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.bulkUpdateTags").annotate(OpenApi.Summary, "Bulk update contact tags").annotate(OpenApi.Description, "Adds, removes, or replaces tags on multiple contacts in one request, returning counts of updated and failed records. One request carries at most 1000 ids.")
|
|
1103
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.bulkUpdateTags").annotate(OpenApi.Summary, "Bulk update contact tags").annotate(OpenApi.Description, "Adds, removes, or replaces tags on multiple contacts in one request, returning counts of updated and failed records. One request carries at most 1000 ids."))();
|
|
1104
|
+
const ContactsExportEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsExport", "/v1/contacts/export", {
|
|
1087
1105
|
payload: ContactsExportRequestJson,
|
|
1088
1106
|
success: ContactsExport200,
|
|
1089
1107
|
error: [
|
|
@@ -1094,7 +1112,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1094
1112
|
ContactsExport500,
|
|
1095
1113
|
ContactsExport504.pipe(HttpApiSchema.status(504))
|
|
1096
1114
|
]
|
|
1097
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.export").annotate(OpenApi.Summary, "Export contacts").annotate(OpenApi.Description, "Exports contacts as JSON or CSV, returning the serialized data and a count of exported records. The ids filter takes at most 1000 ids.")
|
|
1115
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.export").annotate(OpenApi.Summary, "Export contacts").annotate(OpenApi.Description, "Exports contacts as JSON or CSV, returning the serialized data and a count of exported records. The ids filter takes at most 1000 ids."))();
|
|
1116
|
+
const ContactsFindEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsFind", "/v1/contacts/find", {
|
|
1098
1117
|
payload: ContactsFindRequestJson,
|
|
1099
1118
|
success: ContactsFind200,
|
|
1100
1119
|
error: [
|
|
@@ -1107,7 +1126,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1107
1126
|
ContactsFind500,
|
|
1108
1127
|
ContactsFind504.pipe(HttpApiSchema.status(504))
|
|
1109
1128
|
]
|
|
1110
|
-
}).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.")
|
|
1129
|
+
}).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."))();
|
|
1130
|
+
const ContactsFindOrCreateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsFindOrCreate", "/v1/contacts/find-or-create", {
|
|
1111
1131
|
payload: ContactsFindOrCreateRequestJson,
|
|
1112
1132
|
success: ContactsFindOrCreate200,
|
|
1113
1133
|
error: [
|
|
@@ -1122,7 +1142,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1122
1142
|
ContactsFindOrCreate502.pipe(HttpApiSchema.status(502)),
|
|
1123
1143
|
ContactsFindOrCreate504.pipe(HttpApiSchema.status(504))
|
|
1124
1144
|
]
|
|
1125
|
-
}).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.")
|
|
1145
|
+
}).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."))();
|
|
1146
|
+
const ContactsStartImportEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsStartImport", "/v1/contacts/imports", {
|
|
1126
1147
|
headers: ContactsStartImportHeaders,
|
|
1127
1148
|
payload: ContactsStartImportRequestJson,
|
|
1128
1149
|
success: ContactsStartImport202.pipe(HttpApiSchema.status(202)),
|
|
@@ -1138,7 +1159,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1138
1159
|
ContactsStartImport502.pipe(HttpApiSchema.status(502)),
|
|
1139
1160
|
ContactsStartImport504.pipe(HttpApiSchema.status(504))
|
|
1140
1161
|
]
|
|
1141
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.startImport").annotate(OpenApi.Summary, "Start or resume a list migration").annotate(OpenApi.Description, "The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Imported suppressions use the contact's namespace. Namespace-scoped credentials import contacts and restrictions only into their own namespace; organization-level suppressions protect every namespace. New active contacts are billable and normal contact events apply.")
|
|
1162
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.startImport").annotate(OpenApi.Summary, "Start or resume a list migration").annotate(OpenApi.Description, "The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Imported suppressions use the contact's namespace. Namespace-scoped credentials import contacts and restrictions only into their own namespace; organization-level suppressions protect every namespace. New active contacts are billable and normal contact events apply."))();
|
|
1163
|
+
const ContactsGetImportJobEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("contactsGetImportJob", "/v1/contacts/imports/:id", {
|
|
1142
1164
|
params: ContactsGetImportJobPathParams,
|
|
1143
1165
|
success: ContactsGetImportJob200,
|
|
1144
1166
|
error: [
|
|
@@ -1150,7 +1172,8 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1150
1172
|
ContactsGetImportJob500,
|
|
1151
1173
|
ContactsGetImportJob504.pipe(HttpApiSchema.status(504))
|
|
1152
1174
|
]
|
|
1153
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getImportJob").annotate(OpenApi.Summary, "Get list migration progress").annotate(OpenApi.Description, "Returns the visible import job's committed counts, generation, terminal failure and resumability. The job persists across worker restarts and page reloads.")
|
|
1175
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.getImportJob").annotate(OpenApi.Summary, "Get list migration progress").annotate(OpenApi.Description, "Returns the visible import job's committed counts, generation, terminal failure and resumability. The job persists across worker restarts and page reloads."))();
|
|
1176
|
+
const ContactsPlanImportEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("contactsPlanImport", "/v1/contacts/imports/plan", {
|
|
1154
1177
|
payload: ContactsPlanImportRequestJson,
|
|
1155
1178
|
success: ContactsPlanImport200,
|
|
1156
1179
|
error: [
|
|
@@ -1162,7 +1185,7 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
1162
1185
|
ContactsPlanImport500,
|
|
1163
1186
|
ContactsPlanImport504.pipe(HttpApiSchema.status(504))
|
|
1164
1187
|
]
|
|
1165
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.planImport").annotate(OpenApi.Summary, "Preview a list migration").annotate(OpenApi.Description, "The complete encoded JSON request must not exceed 3000000 bytes. Reads multiple export files without changing contacts. Readers are assumed opted in where permission evidence is absent or blank. Explicit restrictive evidence wins per address. Returns estimated counts and at most 100 diagnostics; processing rechecks current restrictions. Filenames never establish permission. Missing email columns refuse the file; unrecognized nonblank status values are conflicts and never subscribe a reader."))
|
|
1166
|
-
export { BulkUpdateResult, Contact, ContactActivityPage, ContactCustomFields, ContactGroupMembershipPage, ContactIdentityInput, ContactImportJobId, ContactListMembership, ContactLocation, ContactLookup, ContactPage, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactSummary, ContactsAddIdentity200, ContactsAddIdentity400, ContactsAddIdentity401, ContactsAddIdentity403, ContactsAddIdentity404, ContactsAddIdentity409, ContactsAddIdentity422, ContactsAddIdentity500, ContactsAddIdentity504, ContactsAddIdentityPathParams, ContactsAddIdentityRequestJson, ContactsAddTags200, ContactsAddTags400, ContactsAddTags401, ContactsAddTags403, ContactsAddTags404, ContactsAddTags422, ContactsAddTags500, ContactsAddTags504, ContactsAddTagsPathParams, ContactsAddTagsRequestJson, ContactsBulkDelete200, ContactsBulkDelete400, ContactsBulkDelete401, ContactsBulkDelete403, ContactsBulkDelete422, ContactsBulkDelete500, ContactsBulkDelete502, ContactsBulkDelete504, ContactsBulkDeleteRequestJson, ContactsBulkUpdateStatus200, ContactsBulkUpdateStatus400, ContactsBulkUpdateStatus401, ContactsBulkUpdateStatus402, ContactsBulkUpdateStatus403, ContactsBulkUpdateStatus422, ContactsBulkUpdateStatus500, ContactsBulkUpdateStatus502, ContactsBulkUpdateStatus504, ContactsBulkUpdateStatusRequestJson, ContactsBulkUpdateTags200, ContactsBulkUpdateTags400, ContactsBulkUpdateTags401, ContactsBulkUpdateTags403, ContactsBulkUpdateTags422, ContactsBulkUpdateTags500, ContactsBulkUpdateTags504, ContactsBulkUpdateTagsRequestJson, ContactsCreate201, ContactsCreate400, ContactsCreate401, ContactsCreate402, ContactsCreate403, ContactsCreate404, ContactsCreate409, ContactsCreate422, ContactsCreate500, ContactsCreate502, ContactsCreate504, ContactsCreateRequestJson, ContactsExport200, ContactsExport400, ContactsExport401, ContactsExport403, ContactsExport422, ContactsExport500, ContactsExport504, ContactsExportRequestJson, ContactsFind200, ContactsFind400, ContactsFind401, ContactsFind403, ContactsFind404, ContactsFind409, ContactsFind422, ContactsFind500, ContactsFind504, ContactsFindOrCreate200, ContactsFindOrCreate400, ContactsFindOrCreate401, ContactsFindOrCreate402, ContactsFindOrCreate403, ContactsFindOrCreate404, ContactsFindOrCreate409, ContactsFindOrCreate422, ContactsFindOrCreate500, ContactsFindOrCreate502, ContactsFindOrCreate504, ContactsFindOrCreateRequestJson, ContactsFindRequestJson, ContactsGet200, ContactsGet400, ContactsGet401, ContactsGet403, ContactsGet404, ContactsGet422, ContactsGet500, ContactsGet504, ContactsGetActivityTimeline200, ContactsGetActivityTimeline400, ContactsGetActivityTimeline401, ContactsGetActivityTimeline403, ContactsGetActivityTimeline404, ContactsGetActivityTimeline422, ContactsGetActivityTimeline500, ContactsGetActivityTimeline504, ContactsGetActivityTimelinePathParams, ContactsGetActivityTimelineQuery, ContactsGetEngagement200, ContactsGetEngagement400, ContactsGetEngagement401, ContactsGetEngagement403, ContactsGetEngagement404, ContactsGetEngagement422, ContactsGetEngagement500, ContactsGetEngagement504, ContactsGetEngagementPathParams, ContactsGetGroupMemberships200, ContactsGetGroupMemberships400, ContactsGetGroupMemberships401, ContactsGetGroupMemberships403, ContactsGetGroupMemberships404, ContactsGetGroupMemberships422, ContactsGetGroupMemberships500, ContactsGetGroupMemberships504, ContactsGetGroupMembershipsPathParams, ContactsGetGroupMembershipsQuery, ContactsGetImportJob200, ContactsGetImportJob400, ContactsGetImportJob401, ContactsGetImportJob403, ContactsGetImportJob404, ContactsGetImportJob422, ContactsGetImportJob500, ContactsGetImportJob504, ContactsGetImportJobPathParams, ContactsGetPathParams,
|
|
1188
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.planImport").annotate(OpenApi.Summary, "Preview a list migration").annotate(OpenApi.Description, "The complete encoded JSON request must not exceed 3000000 bytes. Reads multiple export files without changing contacts. Readers are assumed opted in where permission evidence is absent or blank. Explicit restrictive evidence wins per address. Returns estimated counts and at most 100 diagnostics; processing rechecks current restrictions. Filenames never establish permission. Missing email columns refuse the file; unrecognized nonblank status values are conflicts and never subscribe a reader."))();
|
|
1189
|
+
export { BulkUpdateResult, Contact, ContactActivityPage, ContactCustomFields, ContactGroupMembershipPage, ContactIdentityInput, ContactImportJobId, ContactListMembership, ContactLocation, ContactLookup, ContactPage, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactSummary, ContactsAddIdentity200, ContactsAddIdentity400, ContactsAddIdentity401, ContactsAddIdentity403, ContactsAddIdentity404, ContactsAddIdentity409, ContactsAddIdentity422, ContactsAddIdentity500, ContactsAddIdentity504, ContactsAddIdentityEndpoint, ContactsAddIdentityPathParams, ContactsAddIdentityRequestJson, ContactsAddTags200, ContactsAddTags400, ContactsAddTags401, ContactsAddTags403, ContactsAddTags404, ContactsAddTags422, ContactsAddTags500, ContactsAddTags504, ContactsAddTagsEndpoint, ContactsAddTagsPathParams, ContactsAddTagsRequestJson, ContactsBulkDelete200, ContactsBulkDelete400, ContactsBulkDelete401, ContactsBulkDelete403, ContactsBulkDelete422, ContactsBulkDelete500, ContactsBulkDelete502, ContactsBulkDelete504, ContactsBulkDeleteEndpoint, ContactsBulkDeleteRequestJson, ContactsBulkUpdateStatus200, ContactsBulkUpdateStatus400, ContactsBulkUpdateStatus401, ContactsBulkUpdateStatus402, ContactsBulkUpdateStatus403, ContactsBulkUpdateStatus422, ContactsBulkUpdateStatus500, ContactsBulkUpdateStatus502, ContactsBulkUpdateStatus504, ContactsBulkUpdateStatusEndpoint, ContactsBulkUpdateStatusRequestJson, ContactsBulkUpdateTags200, ContactsBulkUpdateTags400, ContactsBulkUpdateTags401, ContactsBulkUpdateTags403, ContactsBulkUpdateTags422, ContactsBulkUpdateTags500, ContactsBulkUpdateTags504, ContactsBulkUpdateTagsEndpoint, ContactsBulkUpdateTagsRequestJson, ContactsCreate201, ContactsCreate400, ContactsCreate401, ContactsCreate402, ContactsCreate403, ContactsCreate404, ContactsCreate409, ContactsCreate422, ContactsCreate500, ContactsCreate502, ContactsCreate504, ContactsCreateEndpoint, ContactsCreateRequestJson, ContactsExport200, ContactsExport400, ContactsExport401, ContactsExport403, ContactsExport422, ContactsExport500, ContactsExport504, ContactsExportEndpoint, ContactsExportRequestJson, ContactsFind200, ContactsFind400, ContactsFind401, ContactsFind403, ContactsFind404, ContactsFind409, ContactsFind422, ContactsFind500, ContactsFind504, ContactsFindEndpoint, ContactsFindOrCreate200, ContactsFindOrCreate400, ContactsFindOrCreate401, ContactsFindOrCreate402, ContactsFindOrCreate403, ContactsFindOrCreate404, ContactsFindOrCreate409, ContactsFindOrCreate422, ContactsFindOrCreate500, ContactsFindOrCreate502, ContactsFindOrCreate504, ContactsFindOrCreateEndpoint, ContactsFindOrCreateRequestJson, ContactsFindRequestJson, ContactsGet200, ContactsGet400, ContactsGet401, ContactsGet403, ContactsGet404, ContactsGet422, ContactsGet500, ContactsGet504, ContactsGetActivityTimeline200, ContactsGetActivityTimeline400, ContactsGetActivityTimeline401, ContactsGetActivityTimeline403, ContactsGetActivityTimeline404, ContactsGetActivityTimeline422, ContactsGetActivityTimeline500, ContactsGetActivityTimeline504, ContactsGetActivityTimelineEndpoint, ContactsGetActivityTimelinePathParams, ContactsGetActivityTimelineQuery, ContactsGetEndpoint, ContactsGetEngagement200, ContactsGetEngagement400, ContactsGetEngagement401, ContactsGetEngagement403, ContactsGetEngagement404, ContactsGetEngagement422, ContactsGetEngagement500, ContactsGetEngagement504, ContactsGetEngagementEndpoint, ContactsGetEngagementPathParams, ContactsGetGroupMemberships200, ContactsGetGroupMemberships400, ContactsGetGroupMemberships401, ContactsGetGroupMemberships403, ContactsGetGroupMemberships404, ContactsGetGroupMemberships422, ContactsGetGroupMemberships500, ContactsGetGroupMemberships504, ContactsGetGroupMembershipsEndpoint, ContactsGetGroupMembershipsPathParams, ContactsGetGroupMembershipsQuery, ContactsGetImportJob200, ContactsGetImportJob400, ContactsGetImportJob401, ContactsGetImportJob403, ContactsGetImportJob404, ContactsGetImportJob422, ContactsGetImportJob500, ContactsGetImportJob504, ContactsGetImportJobEndpoint, ContactsGetImportJobPathParams, ContactsGetPathParams, ContactsList200, ContactsList400, ContactsList401, ContactsList403, ContactsList422, ContactsList500, ContactsList504, ContactsListEndpoint, ContactsListQuery, ContactsMerge200, ContactsMerge400, ContactsMerge401, ContactsMerge403, ContactsMerge404, ContactsMerge409, ContactsMerge422, ContactsMerge500, ContactsMerge502, ContactsMerge504, ContactsMergeByConnection200, ContactsMergeByConnection400, ContactsMergeByConnection401, ContactsMergeByConnection403, ContactsMergeByConnection404, ContactsMergeByConnection409, ContactsMergeByConnection422, ContactsMergeByConnection500, ContactsMergeByConnection502, ContactsMergeByConnection504, ContactsMergeByConnectionEndpoint, ContactsMergeByConnectionHeaders, ContactsMergeByConnectionPathParams, ContactsMergeByConnectionRequestJson, ContactsMergeEndpoint, ContactsMergeHeaders, ContactsMergePathParams, ContactsMergeRequestJson, ContactsPlanImport200, ContactsPlanImport400, ContactsPlanImport401, ContactsPlanImport403, ContactsPlanImport404, ContactsPlanImport422, ContactsPlanImport500, ContactsPlanImport504, ContactsPlanImportEndpoint, ContactsPlanImportRequestJson, ContactsRemove200, ContactsRemove400, ContactsRemove401, ContactsRemove403, ContactsRemove404, ContactsRemove422, ContactsRemove500, ContactsRemove502, ContactsRemove504, ContactsRemoveEndpoint, ContactsRemoveIdentity200, ContactsRemoveIdentity400, ContactsRemoveIdentity401, ContactsRemoveIdentity403, ContactsRemoveIdentity404, ContactsRemoveIdentity422, ContactsRemoveIdentity500, ContactsRemoveIdentity504, ContactsRemoveIdentityEndpoint, ContactsRemoveIdentityPathParams, ContactsRemovePathParams, ContactsRemoveTags200, ContactsRemoveTags400, ContactsRemoveTags401, ContactsRemoveTags403, ContactsRemoveTags404, ContactsRemoveTags422, ContactsRemoveTags500, ContactsRemoveTags504, ContactsRemoveTagsEndpoint, ContactsRemoveTagsPathParams, ContactsRemoveTagsRequestJson, ContactsSetConsent200, ContactsSetConsent400, ContactsSetConsent401, ContactsSetConsent403, ContactsSetConsent404, ContactsSetConsent422, ContactsSetConsent500, ContactsSetConsent504, ContactsSetConsentEndpoint, ContactsSetConsentPathParams, ContactsSetConsentRequestJson, ContactsStartImport202, ContactsStartImport400, ContactsStartImport401, ContactsStartImport402, ContactsStartImport403, ContactsStartImport404, ContactsStartImport409, ContactsStartImport422, ContactsStartImport500, ContactsStartImport502, ContactsStartImport504, ContactsStartImportEndpoint, ContactsStartImportHeaders, ContactsStartImportRequestJson, ContactsUpdate200, ContactsUpdate400, ContactsUpdate401, ContactsUpdate402, ContactsUpdate403, ContactsUpdate404, ContactsUpdate422, ContactsUpdate500, ContactsUpdate502, ContactsUpdate504, ContactsUpdateEndpoint, ContactsUpdatePathParams, ContactsUpdateRequestJson };
|
|
1167
1190
|
|
|
1168
1191
|
//# sourceMappingURL=contacts.js.map
|