@getlatedev/node 0.2.1164 → 0.2.1165

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/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1164",
39
+ version: "0.2.1165",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1164",
8
+ version: "0.2.1165",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1164",
3
+ "version": "0.2.1165",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12239,6 +12239,7 @@ export type WebhookPayloadAccountAdsInitialSyncCompleted = {
12239
12239
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12240
12240
  */
12241
12241
  id: string;
12242
+ profiles?: WebhookProfiles;
12242
12243
  /**
12243
12244
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12244
12245
  */
@@ -12372,6 +12373,7 @@ export type WebhookPayloadAccountAdsSyncFailed = {
12372
12373
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
12373
12374
  */
12374
12375
  id: string;
12376
+ profiles?: WebhookProfiles;
12375
12377
  /**
12376
12378
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12377
12379
  */
@@ -12425,6 +12427,7 @@ export type WebhookPayloadAccountAdsSyncRecovered = {
12425
12427
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
12426
12428
  */
12427
12429
  id: string;
12430
+ profiles?: WebhookProfiles;
12428
12431
  /**
12429
12432
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12430
12433
  */
@@ -12455,6 +12458,7 @@ export type WebhookPayloadAccountConnected = {
12455
12458
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12456
12459
  */
12457
12460
  id: string;
12461
+ profiles?: WebhookProfiles;
12458
12462
  /**
12459
12463
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12460
12464
  */
@@ -12489,6 +12493,7 @@ export type WebhookPayloadAccountDisconnected = {
12489
12493
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12490
12494
  */
12491
12495
  id: string;
12496
+ profiles?: WebhookProfiles;
12492
12497
  /**
12493
12498
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12494
12499
  */
@@ -12551,6 +12556,7 @@ export type WebhookPayloadAdStatusChanged = {
12551
12556
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12552
12557
  */
12553
12558
  id: string;
12559
+ profiles?: WebhookProfiles;
12554
12560
  /**
12555
12561
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12556
12562
  */
@@ -12670,6 +12676,7 @@ export type WebhookPayloadAdVideoProcessed = {
12670
12676
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
12671
12677
  */
12672
12678
  id: string;
12679
+ profiles?: WebhookProfiles;
12673
12680
  /**
12674
12681
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12675
12682
  */
@@ -12761,6 +12768,7 @@ export type WebhookPayloadAnalyticsSynced = {
12761
12768
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12762
12769
  */
12763
12770
  id: string;
12771
+ profiles?: WebhookProfiles;
12764
12772
  /**
12765
12773
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
12766
12774
  */
@@ -12839,6 +12847,7 @@ export type WebhookPayloadCallEnded = {
12839
12847
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12840
12848
  */
12841
12849
  id: string;
12850
+ profiles?: WebhookProfiles;
12842
12851
  event: 'call.ended';
12843
12852
  call: {
12844
12853
  id?: string;
@@ -12913,6 +12922,7 @@ export type WebhookPayloadCallFailed = {
12913
12922
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12914
12923
  */
12915
12924
  id: string;
12925
+ profiles?: WebhookProfiles;
12916
12926
  event: 'call.failed';
12917
12927
  call: {
12918
12928
  id?: string;
@@ -12952,6 +12962,7 @@ export type WebhookPayloadCallPermissionRequest = {
12952
12962
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12953
12963
  */
12954
12964
  id: string;
12965
+ profiles?: WebhookProfiles;
12955
12966
  event: 'call.permission_request';
12956
12967
  permission: {
12957
12968
  /**
@@ -12995,6 +13006,7 @@ export type WebhookPayloadCallReceived = {
12995
13006
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
12996
13007
  */
12997
13008
  id: string;
13009
+ profiles?: WebhookProfiles;
12998
13010
  event: 'call.received';
12999
13011
  call: {
13000
13012
  /**
@@ -13044,6 +13056,7 @@ export type WebhookPayloadComment = {
13044
13056
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
13045
13057
  */
13046
13058
  id: string;
13059
+ profiles?: WebhookProfiles;
13047
13060
  /**
13048
13061
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
13049
13062
  */
@@ -13258,6 +13271,7 @@ export type WebhookPayloadContactFieldChanged = {
13258
13271
  * Event id, the dedupe key.
13259
13272
  */
13260
13273
  id: string;
13274
+ profiles?: WebhookProfiles;
13261
13275
  event: 'contact.field_changed';
13262
13276
  timestamp: string;
13263
13277
  contact: {
@@ -13300,6 +13314,7 @@ export type WebhookPayloadContactTag = {
13300
13314
  * Event id, the dedupe key.
13301
13315
  */
13302
13316
  id: string;
13317
+ profiles?: WebhookProfiles;
13303
13318
  event: 'contact.tag_added' | 'contact.tag_removed';
13304
13319
  timestamp: string;
13305
13320
  contact: {
@@ -13332,6 +13347,7 @@ export type WebhookPayloadConversationControlChanged = {
13332
13347
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
13333
13348
  */
13334
13349
  id: string;
13350
+ profiles?: WebhookProfiles;
13335
13351
  event: 'conversation.control_changed';
13336
13352
  conversation: InboxWebhookConversationDetail;
13337
13353
  account: InboxWebhookAccount;
@@ -13388,6 +13404,7 @@ export type WebhookPayloadConversationStarted = {
13388
13404
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
13389
13405
  */
13390
13406
  id: string;
13407
+ profiles?: WebhookProfiles;
13391
13408
  event: 'conversation.started';
13392
13409
  conversation: InboxWebhookConversationDetail;
13393
13410
  account: InboxWebhookAccount;
@@ -13416,6 +13433,7 @@ export type WebhookPayloadExternalPost = {
13416
13433
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
13417
13434
  */
13418
13435
  id: string;
13436
+ profiles?: WebhookProfiles;
13419
13437
  /**
13420
13438
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
13421
13439
  */
@@ -13447,6 +13465,7 @@ export type WebhookPayloadLead = {
13447
13465
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
13448
13466
  */
13449
13467
  id: string;
13468
+ profiles?: WebhookProfiles;
13450
13469
  /**
13451
13470
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
13452
13471
  */
@@ -13524,6 +13543,7 @@ export type WebhookPayloadMessage = {
13524
13543
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
13525
13544
  */
13526
13545
  id: string;
13546
+ profiles?: WebhookProfiles;
13527
13547
  /**
13528
13548
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
13529
13549
  */
@@ -14156,6 +14176,7 @@ export type WebhookPayloadMessageDeleted = {
14156
14176
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14157
14177
  */
14158
14178
  id: string;
14179
+ profiles?: WebhookProfiles;
14159
14180
  event: 'message.deleted';
14160
14181
  message: InboxWebhookMessage;
14161
14182
  deletedAt: string;
@@ -14193,6 +14214,7 @@ export type WebhookPayloadMessageDeliveryStatus = {
14193
14214
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14194
14215
  */
14195
14216
  id: string;
14217
+ profiles?: WebhookProfiles;
14196
14218
  event: 'message.delivered' | 'message.read' | 'message.played' | 'message.failed';
14197
14219
  message: InboxWebhookMessage;
14198
14220
  /**
@@ -14254,6 +14276,7 @@ export type WebhookPayloadMessageEdited = {
14254
14276
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14255
14277
  */
14256
14278
  id: string;
14279
+ profiles?: WebhookProfiles;
14257
14280
  event: 'message.edited';
14258
14281
  message: InboxWebhookMessage;
14259
14282
  /**
@@ -14286,6 +14309,7 @@ export type WebhookPayloadMessageSent = {
14286
14309
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14287
14310
  */
14288
14311
  id: string;
14312
+ profiles?: WebhookProfiles;
14289
14313
  /**
14290
14314
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14291
14315
  */
@@ -14586,6 +14610,7 @@ export type WebhookPayloadPost = {
14586
14610
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14587
14611
  */
14588
14612
  id: string;
14613
+ profiles?: WebhookProfiles;
14589
14614
  /**
14590
14615
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14591
14616
  */
@@ -14657,6 +14682,7 @@ export type WebhookPayloadPostPlatform = {
14657
14682
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14658
14683
  */
14659
14684
  id: string;
14685
+ profiles?: WebhookProfiles;
14660
14686
  /**
14661
14687
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14662
14688
  */
@@ -14768,6 +14794,7 @@ export type WebhookPayloadReaction = {
14768
14794
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14769
14795
  */
14770
14796
  id: string;
14797
+ profiles?: WebhookProfiles;
14771
14798
  /**
14772
14799
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14773
14800
  */
@@ -14829,6 +14856,7 @@ export type WebhookPayloadReferral = {
14829
14856
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14830
14857
  */
14831
14858
  id: string;
14859
+ profiles?: WebhookProfiles;
14832
14860
  /**
14833
14861
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14834
14862
  */
@@ -14905,6 +14933,7 @@ export type WebhookPayloadReviewNew = {
14905
14933
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14906
14934
  */
14907
14935
  id: string;
14936
+ profiles?: WebhookProfiles;
14908
14937
  /**
14909
14938
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14910
14939
  */
@@ -14942,6 +14971,7 @@ export type WebhookPayloadReviewUpdated = {
14942
14971
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
14943
14972
  */
14944
14973
  id: string;
14974
+ profiles?: WebhookProfiles;
14945
14975
  /**
14946
14976
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14947
14977
  */
@@ -14974,6 +15004,7 @@ export type WebhookPayloadSequenceEnrollment = {
14974
15004
  * Event id, the dedupe key.
14975
15005
  */
14976
15006
  id: string;
15007
+ profiles?: WebhookProfiles;
14977
15008
  event: 'sequence.enrolled' | 'sequence.exited';
14978
15009
  timestamp: string;
14979
15010
  sequence: {
@@ -15050,6 +15081,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
15050
15081
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
15051
15082
  */
15052
15083
  id: string;
15084
+ profiles?: WebhookProfiles;
15053
15085
  /**
15054
15086
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
15055
15087
  */
@@ -15107,6 +15139,7 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
15107
15139
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
15108
15140
  */
15109
15141
  id: string;
15142
+ profiles?: WebhookProfiles;
15110
15143
  /**
15111
15144
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
15112
15145
  */
@@ -15161,6 +15194,7 @@ export type WebhookPayloadWhatsAppAccountQualityUpdated = {
15161
15194
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
15162
15195
  */
15163
15196
  id: string;
15197
+ profiles?: WebhookProfiles;
15164
15198
  /**
15165
15199
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
15166
15200
  */
@@ -15218,6 +15252,7 @@ export type WebhookPayloadWhatsAppAccountStatusUpdated = {
15218
15252
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
15219
15253
  */
15220
15254
  id: string;
15255
+ profiles?: WebhookProfiles;
15221
15256
  /**
15222
15257
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
15223
15258
  */
@@ -15295,6 +15330,7 @@ export type WebhookPayloadWhatsAppContactIdentityChanged = {
15295
15330
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
15296
15331
  */
15297
15332
  id: string;
15333
+ profiles?: WebhookProfiles;
15298
15334
  /**
15299
15335
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
15300
15336
  */
@@ -15350,6 +15386,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
15350
15386
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
15351
15387
  */
15352
15388
  id: string;
15389
+ profiles?: WebhookProfiles;
15353
15390
  /**
15354
15391
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
15355
15392
  */
@@ -15440,6 +15477,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
15440
15477
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
15441
15478
  */
15442
15479
  id: string;
15480
+ profiles?: WebhookProfiles;
15443
15481
  /**
15444
15482
  * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
15445
15483
  */
@@ -15504,6 +15542,7 @@ export type WebhookPayloadWorkflowRun = {
15504
15542
  * Event id, the dedupe key.
15505
15543
  */
15506
15544
  id: string;
15545
+ profiles?: WebhookProfiles;
15507
15546
  event: 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
15508
15547
  timestamp: string;
15509
15548
  workflow: {
@@ -15558,6 +15597,14 @@ export type event44 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
15558
15597
  */
15559
15598
  export type status39 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
15560
15599
 
15600
+ /**
15601
+ * The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
15602
+ */
15603
+ export type WebhookProfiles = Array<{
15604
+ id: string;
15605
+ externalId: (string) | null;
15606
+ }>;
15607
+
15561
15608
  /**
15562
15609
  * WhatsApp only. Meta's `conversation` object from the status webhook (the billing
15563
15610
  * window, not the Zernio inbox `conversation`). Same presence rules as `pricing`;