@livechat/developer-studio-api 5.12.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-MWQIJSSO.mjs +10358 -0
- package/dist/{chunk-XVLSQUPO.mjs → chunk-OA7BKSZP.mjs} +26 -25
- package/dist/contracts-BEh-tWhD.d.mts +5480 -0
- package/dist/contracts-BEh-tWhD.d.ts +5480 -0
- package/dist/events-CJ8UHYDf.d.mts +5480 -0
- package/dist/events-CJ8UHYDf.d.ts +5480 -0
- package/dist/index.d.mts +121 -1016
- package/dist/index.d.ts +121 -1016
- package/dist/index.js +26 -25
- package/dist/index.mjs +1 -1
- package/dist/workflow-contracts.d.mts +1 -1
- package/dist/workflow-contracts.d.ts +1 -1
- package/dist/workflow-contracts.js +26 -25
- package/dist/workflow-contracts.mjs +1 -1
- package/package.json +4 -4
- package/dist/events-BdPlrYKo.d.mts +0 -16156
- package/dist/events-BdPlrYKo.d.ts +0 -16156
|
@@ -8569,30 +8569,31 @@ var segmentMembershipDataZod = customerMetadataZod.extend({
|
|
|
8569
8569
|
membership_last_updated_at: z.string(),
|
|
8570
8570
|
segment_fields: z.object({
|
|
8571
8571
|
email: z.string().optional(),
|
|
8572
|
-
customer_properties: z.record(z.unknown()).optional()
|
|
8573
|
-
}).
|
|
8574
|
-
}).
|
|
8572
|
+
customer_properties: z.record(z.string(), z.unknown()).optional()
|
|
8573
|
+
}).loose().optional()
|
|
8574
|
+
}).loose();
|
|
8575
8575
|
var cdpCustomerEventMessageZod = z.discriminatedUnion("type", [
|
|
8576
8576
|
z.object({
|
|
8577
8577
|
id: z.string(),
|
|
8578
8578
|
type: z.literal("customer_email_set" /* EmailSet */),
|
|
8579
8579
|
data: customerMetadataZod.extend({
|
|
8580
8580
|
email: z.string()
|
|
8581
|
-
}).
|
|
8581
|
+
}).loose()
|
|
8582
8582
|
}),
|
|
8583
8583
|
z.object({
|
|
8584
8584
|
id: z.string(),
|
|
8585
8585
|
type: z.literal("customer_properties_values_updated" /* PropertiesValuesUpdated */),
|
|
8586
8586
|
data: customerMetadataZod.extend({
|
|
8587
8587
|
customer_properties: z.record(
|
|
8588
|
+
z.string(),
|
|
8588
8589
|
z.object({
|
|
8589
8590
|
value: z.unknown(),
|
|
8590
8591
|
last_updated_at: z.string(),
|
|
8591
8592
|
last_updated_agent_account_id: z.string().optional(),
|
|
8592
8593
|
last_updated_agent_client_id: z.string().optional()
|
|
8593
|
-
}).
|
|
8594
|
+
}).loose()
|
|
8594
8595
|
)
|
|
8595
|
-
}).
|
|
8596
|
+
}).loose()
|
|
8596
8597
|
}),
|
|
8597
8598
|
z.object({
|
|
8598
8599
|
id: z.string(),
|
|
@@ -8865,9 +8866,9 @@ var integrationEventsCoreZods = {
|
|
|
8865
8866
|
},
|
|
8866
8867
|
get authorization() {
|
|
8867
8868
|
return z6.object({
|
|
8868
|
-
headers: z6.record(z6.string()).optional(),
|
|
8869
|
-
query_params: z6.record(z6.string()).optional(),
|
|
8870
|
-
data: z6.record(z6.string()).optional()
|
|
8869
|
+
headers: z6.record(z6.string(), z6.string()).optional(),
|
|
8870
|
+
query_params: z6.record(z6.string(), z6.string()).optional(),
|
|
8871
|
+
data: z6.record(z6.string(), z6.string()).optional()
|
|
8871
8872
|
});
|
|
8872
8873
|
},
|
|
8873
8874
|
withCore(schema) {
|
|
@@ -8891,7 +8892,7 @@ var BigCommerceEventNames = /* @__PURE__ */ ((BigCommerceEventNames2) => {
|
|
|
8891
8892
|
})(BigCommerceEventNames || {});
|
|
8892
8893
|
var bigcommerceEventsZods = {
|
|
8893
8894
|
provider: z7.literal("bigcommerce" /* BigCommerce */),
|
|
8894
|
-
eventName: z7.
|
|
8895
|
+
eventName: z7.enum(BigCommerceEventNames),
|
|
8895
8896
|
events: {
|
|
8896
8897
|
cartCreated: integrationEventBase.extend({
|
|
8897
8898
|
name: z7.literal("cart_created" /* CartCreated */)
|
|
@@ -8961,7 +8962,7 @@ var HubspotEventNames = /* @__PURE__ */ ((HubspotEventNames2) => {
|
|
|
8961
8962
|
})(HubspotEventNames || {});
|
|
8962
8963
|
var hubspotEventsZods = {
|
|
8963
8964
|
provider: z8.literal("hubspot" /* HubSpot */),
|
|
8964
|
-
eventName: z8.
|
|
8965
|
+
eventName: z8.enum(HubspotEventNames),
|
|
8965
8966
|
events: {
|
|
8966
8967
|
contactCreated: integrationEventBase.extend({
|
|
8967
8968
|
name: z8.literal("contact_created" /* ContactCreated */)
|
|
@@ -9015,7 +9016,7 @@ var MailchimpEventNames = /* @__PURE__ */ ((MailchimpEventNames2) => {
|
|
|
9015
9016
|
})(MailchimpEventNames || {});
|
|
9016
9017
|
var mailchimpEventsZods = {
|
|
9017
9018
|
provider: z9.literal("mailchimp" /* Mailchimp */),
|
|
9018
|
-
eventName: z9.
|
|
9019
|
+
eventName: z9.enum(MailchimpEventNames),
|
|
9019
9020
|
events: {
|
|
9020
9021
|
subscribed: integrationEventBase.extend({
|
|
9021
9022
|
listId: z9.string(),
|
|
@@ -9073,7 +9074,7 @@ var ShopifyEventNames = /* @__PURE__ */ ((ShopifyEventNames2) => {
|
|
|
9073
9074
|
})(ShopifyEventNames || {});
|
|
9074
9075
|
var shopifyEventsZods = {
|
|
9075
9076
|
provider: z10.literal("shopify" /* Shopify */),
|
|
9076
|
-
eventName: z10.
|
|
9077
|
+
eventName: z10.enum(ShopifyEventNames),
|
|
9077
9078
|
events: {
|
|
9078
9079
|
orderCreated: integrationEventBase.extend({
|
|
9079
9080
|
name: z10.literal("order_created" /* OrderCreated */)
|
|
@@ -9124,7 +9125,7 @@ var SlackEventNames = /* @__PURE__ */ ((SlackEventNames2) => {
|
|
|
9124
9125
|
})(SlackEventNames || {});
|
|
9125
9126
|
var slackEventsZods = {
|
|
9126
9127
|
provider: z11.literal("slack" /* Slack */),
|
|
9127
|
-
eventName: z11.
|
|
9128
|
+
eventName: z11.enum(SlackEventNames),
|
|
9128
9129
|
events: {
|
|
9129
9130
|
channelNewMessagePosted: integrationEventBase.extend({
|
|
9130
9131
|
name: z11.literal("channel_new_message_posted" /* ChannelNewMessagePosted */),
|
|
@@ -9198,7 +9199,7 @@ var TextCustomerSegmentType = /* @__PURE__ */ ((TextCustomerSegmentType2) => {
|
|
|
9198
9199
|
return TextCustomerSegmentType2;
|
|
9199
9200
|
})(TextCustomerSegmentType || {});
|
|
9200
9201
|
var textCustomerEventsZods = {
|
|
9201
|
-
eventName: z12.
|
|
9202
|
+
eventName: z12.enum(TextCustomerEventNames),
|
|
9202
9203
|
events: {
|
|
9203
9204
|
emailSet: integrationEventBase.extend({
|
|
9204
9205
|
name: z12.literal("customer_email_set" /* EmailSet */),
|
|
@@ -9215,11 +9216,11 @@ var textCustomerEventsZods = {
|
|
|
9215
9216
|
}),
|
|
9216
9217
|
segmentAdded: integrationEventBase.extend({
|
|
9217
9218
|
name: z12.literal("segment_added" /* SegmentAdded */),
|
|
9218
|
-
segment_type: z12.
|
|
9219
|
+
segment_type: z12.enum(TextCustomerSegmentType)
|
|
9219
9220
|
}),
|
|
9220
9221
|
segmentRemoved: integrationEventBase.extend({
|
|
9221
9222
|
name: z12.literal("segment_removed" /* SegmentRemoved */),
|
|
9222
|
-
segment_type: z12.
|
|
9223
|
+
segment_type: z12.enum(TextCustomerSegmentType)
|
|
9223
9224
|
})
|
|
9224
9225
|
},
|
|
9225
9226
|
get event() {
|
|
@@ -9273,7 +9274,7 @@ var baseFiltersZod = z13.object({
|
|
|
9273
9274
|
});
|
|
9274
9275
|
var textHelpDeskEventsZods = {
|
|
9275
9276
|
provider: z13.literal("text-helpdesk" /* HelpDesk */),
|
|
9276
|
-
eventName: z13.
|
|
9277
|
+
eventName: z13.enum(TextHelpDeskEventNames),
|
|
9277
9278
|
events: {
|
|
9278
9279
|
ticketCreated: integrationEventBase.extend({
|
|
9279
9280
|
name: z13.literal("ticket_created" /* TicketCreated */)
|
|
@@ -9284,15 +9285,15 @@ var textHelpDeskEventsZods = {
|
|
|
9284
9285
|
ticketStatusChanged: integrationEventBase.extend({
|
|
9285
9286
|
name: z13.literal("ticket_status_changed" /* TicketStatusChanged */),
|
|
9286
9287
|
status: z13.object({
|
|
9287
|
-
from: z13.array(z13.
|
|
9288
|
-
to: z13.array(z13.
|
|
9288
|
+
from: z13.array(z13.enum(TicketStatus)).optional(),
|
|
9289
|
+
to: z13.array(z13.enum(TicketStatus)).optional()
|
|
9289
9290
|
}).optional()
|
|
9290
9291
|
}).extend(baseFiltersZod.shape),
|
|
9291
9292
|
ticketPriorityChanged: integrationEventBase.extend({
|
|
9292
9293
|
name: z13.literal("ticket_priority_changed" /* TicketPriorityChanged */),
|
|
9293
9294
|
priority: z13.object({
|
|
9294
|
-
from: z13.array(z13.
|
|
9295
|
-
to: z13.array(z13.
|
|
9295
|
+
from: z13.array(z13.enum(TicketPriority)).optional(),
|
|
9296
|
+
to: z13.array(z13.enum(TicketPriority)).optional()
|
|
9296
9297
|
}).optional()
|
|
9297
9298
|
}).extend(baseFiltersZod.shape),
|
|
9298
9299
|
ticketTagsChanged: integrationEventBase.extend({
|
|
@@ -9421,7 +9422,7 @@ var livechatEventContext = z14.object({
|
|
|
9421
9422
|
});
|
|
9422
9423
|
var textLivechatEventsZods = {
|
|
9423
9424
|
provider: z14.literal("text-livechat" /* LiveChat */),
|
|
9424
|
-
eventName: z14.
|
|
9425
|
+
eventName: z14.enum(TextLivechatEventNames),
|
|
9425
9426
|
events: {
|
|
9426
9427
|
chatStarted: integrationEventBase.extend(livechatChatContext.shape).extend({
|
|
9427
9428
|
name: z14.literal("chat_started" /* ChatStarted */),
|
|
@@ -9472,14 +9473,14 @@ var textLivechatEventsZods = {
|
|
|
9472
9473
|
}),
|
|
9473
9474
|
customerLeftChat: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
|
|
9474
9475
|
name: z14.literal("customer_left_chat" /* CustomerLeftChat */),
|
|
9475
|
-
reasons: z14.array(z14.
|
|
9476
|
+
reasons: z14.array(z14.enum(CustomerLeftChatReason)).optional()
|
|
9476
9477
|
}),
|
|
9477
9478
|
chatIdle: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
|
|
9478
9479
|
name: z14.literal("chat_idle" /* ChatIdle */)
|
|
9479
9480
|
}),
|
|
9480
9481
|
productCardEvent: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
|
|
9481
9482
|
name: z14.literal("product_card_event" /* ProductCardEvent */),
|
|
9482
|
-
type: z14.
|
|
9483
|
+
type: z14.enum(TextLivechatProductCardEventType),
|
|
9483
9484
|
product_id: z14.string().optional()
|
|
9484
9485
|
}),
|
|
9485
9486
|
richMessagePostback: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
|