@leadping/sdk 1.0.143 → 1.0.145

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.
Files changed (131) hide show
  1. package/dist/appointments/bookedTimes/index.d.ts +13 -2
  2. package/dist/appointments/bookedTimes/index.d.ts.map +1 -1
  3. package/dist/appointments/bookedTimes/index.js +5 -4
  4. package/dist/appointments/bookedTimes/index.js.map +1 -1
  5. package/dist/appointments/index.d.ts +4 -0
  6. package/dist/appointments/index.d.ts.map +1 -1
  7. package/dist/appointments/index.js +5 -1
  8. package/dist/appointments/index.js.map +1 -1
  9. package/dist/appointments/item/cancel/index.d.ts +3 -0
  10. package/dist/appointments/item/cancel/index.d.ts.map +1 -1
  11. package/dist/appointments/item/cancel/index.js +3 -0
  12. package/dist/appointments/item/cancel/index.js.map +1 -1
  13. package/dist/appointments/item/complete/index.d.ts +3 -0
  14. package/dist/appointments/item/complete/index.d.ts.map +1 -1
  15. package/dist/appointments/item/complete/index.js +3 -0
  16. package/dist/appointments/item/complete/index.js.map +1 -1
  17. package/dist/appointments/item/dismiss/index.d.ts +3 -0
  18. package/dist/appointments/item/dismiss/index.d.ts.map +1 -1
  19. package/dist/appointments/item/dismiss/index.js +3 -0
  20. package/dist/appointments/item/dismiss/index.js.map +1 -1
  21. package/dist/appointments/item/index.d.ts +5 -0
  22. package/dist/appointments/item/index.d.ts.map +1 -1
  23. package/dist/appointments/item/index.js +6 -1
  24. package/dist/appointments/item/index.js.map +1 -1
  25. package/dist/appointments/item/snooze/index.d.ts +3 -0
  26. package/dist/appointments/item/snooze/index.d.ts.map +1 -1
  27. package/dist/appointments/item/snooze/index.js +3 -0
  28. package/dist/appointments/item/snooze/index.js.map +1 -1
  29. package/dist/automations/item/clone/index.d.ts +33 -0
  30. package/dist/automations/item/clone/index.d.ts.map +1 -0
  31. package/dist/automations/item/clone/index.js +31 -0
  32. package/dist/automations/item/clone/index.js.map +1 -0
  33. package/dist/automations/item/index.d.ts +5 -0
  34. package/dist/automations/item/index.d.ts.map +1 -1
  35. package/dist/automations/item/index.js +5 -0
  36. package/dist/automations/item/index.js.map +1 -1
  37. package/dist/automations/item/leads/index.d.ts +4 -3
  38. package/dist/automations/item/leads/index.d.ts.map +1 -1
  39. package/dist/automations/item/leads/index.js +2 -1
  40. package/dist/automations/item/leads/index.js.map +1 -1
  41. package/dist/automations/item/leads/item/run/index.d.ts +1 -1
  42. package/dist/automations/item/leads/item/run/item/index.d.ts +2 -0
  43. package/dist/automations/item/leads/item/run/item/index.d.ts.map +1 -1
  44. package/dist/automations/item/leads/item/run/item/index.js +3 -1
  45. package/dist/automations/item/leads/item/run/item/index.js.map +1 -1
  46. package/dist/automations/item/runForAudience/index.d.ts +2 -0
  47. package/dist/automations/item/runForAudience/index.d.ts.map +1 -1
  48. package/dist/automations/item/runForAudience/index.js +3 -1
  49. package/dist/automations/item/runForAudience/index.js.map +1 -1
  50. package/dist/automations/leadAudience/index.js +1 -1
  51. package/dist/conversations/item/retry/index.d.ts +5 -2
  52. package/dist/conversations/item/retry/index.d.ts.map +1 -1
  53. package/dist/conversations/item/retry/index.js +5 -2
  54. package/dist/conversations/item/retry/index.js.map +1 -1
  55. package/dist/invitations/decline/index.d.ts +5 -0
  56. package/dist/invitations/decline/index.d.ts.map +1 -1
  57. package/dist/invitations/decline/index.js +6 -1
  58. package/dist/invitations/decline/index.js.map +1 -1
  59. package/dist/invitations/index.d.ts +4 -1
  60. package/dist/invitations/index.d.ts.map +1 -1
  61. package/dist/invitations/index.js +1 -1
  62. package/dist/invitations/index.js.map +1 -1
  63. package/dist/invitations/item/accept/index.d.ts +6 -2
  64. package/dist/invitations/item/accept/index.d.ts.map +1 -1
  65. package/dist/invitations/item/accept/index.js +7 -4
  66. package/dist/invitations/item/accept/index.js.map +1 -1
  67. package/dist/invitations/item/decline/index.d.ts +6 -2
  68. package/dist/invitations/item/decline/index.d.ts.map +1 -1
  69. package/dist/invitations/item/decline/index.js +7 -4
  70. package/dist/invitations/item/decline/index.js.map +1 -1
  71. package/dist/leadStatusChanges/item/index.d.ts +1 -0
  72. package/dist/leadStatusChanges/item/index.d.ts.map +1 -1
  73. package/dist/leadStatusChanges/item/index.js +1 -0
  74. package/dist/leadStatusChanges/item/index.js.map +1 -1
  75. package/dist/messageTemplates/index.d.ts +3 -1
  76. package/dist/messageTemplates/index.d.ts.map +1 -1
  77. package/dist/messageTemplates/index.js +4 -2
  78. package/dist/messageTemplates/index.js.map +1 -1
  79. package/dist/messageTemplates/item/index.d.ts +4 -0
  80. package/dist/messageTemplates/item/index.d.ts.map +1 -1
  81. package/dist/messageTemplates/item/index.js +6 -2
  82. package/dist/messageTemplates/item/index.js.map +1 -1
  83. package/dist/models/index.d.ts +114 -2
  84. package/dist/models/index.d.ts.map +1 -1
  85. package/dist/models/index.js +99 -0
  86. package/dist/models/index.js.map +1 -1
  87. package/dist/notifications/item/markRead/index.d.ts +1 -0
  88. package/dist/notifications/item/markRead/index.d.ts.map +1 -1
  89. package/dist/notifications/item/markRead/index.js +1 -0
  90. package/dist/notifications/item/markRead/index.js.map +1 -1
  91. package/dist/notifications/markAllRead/index.d.ts +1 -0
  92. package/dist/notifications/markAllRead/index.d.ts.map +1 -1
  93. package/dist/notifications/markAllRead/index.js +1 -0
  94. package/dist/notifications/markAllRead/index.js.map +1 -1
  95. package/dist/paymentMethods/item/index.d.ts +1 -0
  96. package/dist/paymentMethods/item/index.d.ts.map +1 -1
  97. package/dist/paymentMethods/item/index.js +1 -0
  98. package/dist/paymentMethods/item/index.js.map +1 -1
  99. package/dist/phoneCall/budget/index.d.ts +2 -2
  100. package/dist/phoneCall/budget/index.js +1 -1
  101. package/dist/phoneCall/dial/index.d.ts +1 -1
  102. package/dist/phoneCall/dial/item/index.d.ts +2 -0
  103. package/dist/phoneCall/dial/item/index.d.ts.map +1 -1
  104. package/dist/phoneCall/dial/item/index.js +3 -1
  105. package/dist/phoneCall/dial/item/index.js.map +1 -1
  106. package/dist/phoneCall/item/hangup/index.d.ts +1 -0
  107. package/dist/phoneCall/item/hangup/index.d.ts.map +1 -1
  108. package/dist/phoneCall/item/hangup/index.js +1 -0
  109. package/dist/phoneCall/item/hangup/index.js.map +1 -1
  110. package/dist/phoneCall/item/transfer/index.d.ts +1 -0
  111. package/dist/phoneCall/item/transfer/index.d.ts.map +1 -1
  112. package/dist/phoneCall/item/transfer/index.js +1 -0
  113. package/dist/phoneCall/item/transfer/index.js.map +1 -1
  114. package/dist/phoneCall/next/index.d.ts +1 -1
  115. package/dist/phoneCall/next/item/index.d.ts +8 -3
  116. package/dist/phoneCall/next/item/index.d.ts.map +1 -1
  117. package/dist/phoneCall/next/item/index.js +6 -4
  118. package/dist/phoneCall/next/item/index.js.map +1 -1
  119. package/dist/phoneCall/next/mobile/index.d.ts +1 -1
  120. package/dist/phoneCall/next/mobile/item/index.d.ts +7 -5
  121. package/dist/phoneCall/next/mobile/item/index.d.ts.map +1 -1
  122. package/dist/phoneCall/next/mobile/item/index.js +6 -4
  123. package/dist/phoneCall/next/mobile/item/index.js.map +1 -1
  124. package/dist/suppressions/admin/leads/index.d.ts +1 -1
  125. package/dist/suppressions/admin/leads/item/index.d.ts +1 -1
  126. package/dist/suppressions/admin/leads/item/item/index.d.ts +1 -1
  127. package/dist/suppressions/admin/leads/item/item/item/index.d.ts +3 -2
  128. package/dist/suppressions/admin/leads/item/item/item/index.d.ts.map +1 -1
  129. package/dist/suppressions/admin/leads/item/item/item/index.js +2 -1
  130. package/dist/suppressions/admin/leads/item/item/item/index.js.map +1 -1
  131. package/package.json +1 -1
@@ -247,6 +247,19 @@ export interface AppointmentActivity extends AdditionalDataHolder, Parsable {
247
247
  */
248
248
  type?: string | null;
249
249
  }
250
+ /**
251
+ * An occupied interval ending at the first available instant.
252
+ */
253
+ export interface AppointmentInterval extends AdditionalDataHolder, Parsable {
254
+ /**
255
+ * The endAt property
256
+ */
257
+ endAt?: Date | null;
258
+ /**
259
+ * The startAt property
260
+ */
261
+ startAt?: Date | null;
262
+ }
250
263
  /**
251
264
  * Creates or reschedules an agent's callback appointment.
252
265
  */
@@ -389,6 +402,10 @@ export interface AppointmentResponse extends AdditionalDataHolder, Parsable {
389
402
  * Public Leadping API schema for automation action data.
390
403
  */
391
404
  export interface AutomationAction extends AdditionalDataHolder, Parsable {
405
+ /**
406
+ * Optional name shown in the automation editor in place of the generated action title.
407
+ */
408
+ displayName?: string | null;
392
409
  /**
393
410
  * Unique Leadping identifier for this automation action.
394
411
  */
@@ -518,6 +535,10 @@ export interface AutomationCondition extends AdditionalDataHolder, Parsable {
518
535
  * Automation comparison operator used by this condition.
519
536
  */
520
537
  operator?: string | null;
538
+ /**
539
+ * The priority property
540
+ */
541
+ priority?: number | null;
521
542
  /**
522
543
  * Key-value settings that configure how this automation condition behaves.
523
544
  */
@@ -683,6 +704,18 @@ export interface AutomationPreviewRequest extends AdditionalDataHolder, Parsable
683
704
  * Public Leadping API schema for automation request snapshot data.
684
705
  */
685
706
  automation?: AutomationRequestSnapshot | null;
707
+ /**
708
+ * The decisionActionId property
709
+ */
710
+ decisionActionId?: string | null;
711
+ /**
712
+ * The exampleReply property
713
+ */
714
+ exampleReply?: string | null;
715
+ /**
716
+ * The previousMessage property
717
+ */
718
+ previousMessage?: string | null;
686
719
  /**
687
720
  * Automation trigger type that starts the workflow.
688
721
  */
@@ -704,6 +737,10 @@ export interface AutomationPreviewResponse extends AdditionalDataHolder, Parsabl
704
737
  * Example payload clients can use to understand this automation preview response format.
705
738
  */
706
739
  samplePayload?: AutomationPreviewResponse_samplePayload | null;
740
+ /**
741
+ * The selectedConnectionId property
742
+ */
743
+ selectedConnectionId?: string | null;
707
744
  /**
708
745
  * Automation trigger type that starts the workflow.
709
746
  */
@@ -743,7 +780,7 @@ export interface AutomationRequest extends AdditionalDataHolder, Parsable {
743
780
  */
744
781
  description?: string | null;
745
782
  /**
746
- * Indicates whether this automation configuration request is active and available in the Leadping API.
783
+ * Set to true to enable a valid workflow or false to save it disabled. When omitted on update, an active workflow stays enabled only if the edited definition is runnable.
747
784
  */
748
785
  enabled?: boolean | null;
749
786
  /**
@@ -758,6 +795,10 @@ export interface AutomationRequest extends AdditionalDataHolder, Parsable {
758
795
  * Scope that limits where this automation configuration request applies in Leadping.
759
796
  */
760
797
  scope?: string | null;
798
+ /**
799
+ * Ends an enrolled lead’s run when an inbound SMS or MMS arrives.
800
+ */
801
+ stopOnReply?: boolean | null;
761
802
  /**
762
803
  * Time zone used by workflow time and day conditions in preview and runtime. New workflows default to the organization's time zone.
763
804
  */
@@ -827,6 +868,10 @@ export interface AutomationRequestSnapshot extends AdditionalDataHolder, Parsabl
827
868
  * Scope that limits where this automation request snapshot applies in Leadping.
828
869
  */
829
870
  scope?: string | null;
871
+ /**
872
+ * Ends an enrolled lead’s run when an inbound SMS or MMS arrives.
873
+ */
874
+ stopOnReply?: boolean | null;
830
875
  /**
831
876
  * Time zone used by workflow time and day conditions in preview and runtime. Defaults to UTC.
832
877
  */
@@ -920,6 +965,10 @@ export interface AutomationResponse extends AdditionalDataHolder, Parsable {
920
965
  * Scope that limits where this automation configuration response applies in Leadping.
921
966
  */
922
967
  scope?: string | null;
968
+ /**
969
+ * Ends an enrolled lead’s run when an inbound SMS or MMS arrives.
970
+ */
971
+ stopOnReply?: boolean | null;
923
972
  /**
924
973
  * Time zone used by workflow time and day conditions in preview and runtime. Defaults to UTC.
925
974
  */
@@ -1003,6 +1052,10 @@ export interface AutomationRunRecord extends AdditionalDataHolder, Parsable {
1003
1052
  * Number of processing attempts made for this workflow or delivery request.
1004
1053
  */
1005
1054
  processingAttempts?: number | null;
1055
+ /**
1056
+ * The replyEventId property
1057
+ */
1058
+ replyEventId?: string | null;
1006
1059
  /**
1007
1060
  * Human-readable reason explaining why Leadping skipped this automation run.
1008
1061
  */
@@ -1015,6 +1068,10 @@ export interface AutomationRunRecord extends AdditionalDataHolder, Parsable {
1015
1068
  * Current lifecycle status for this automation run record in the Leadping API.
1016
1069
  */
1017
1070
  status?: string | null;
1071
+ /**
1072
+ * The stopOnReply property
1073
+ */
1074
+ stopOnReply?: boolean | null;
1018
1075
  /**
1019
1076
  * Identifier of the trigger node selected when this run was queued.
1020
1077
  */
@@ -1433,6 +1490,10 @@ export interface AutomationWorkflowRunResponse extends AdditionalDataHolder, Par
1433
1490
  * Unique identifier of the organization associated with this Leadping automation workflow run.
1434
1491
  */
1435
1492
  organizationId?: string | null;
1493
+ /**
1494
+ * Inbound message that stopped the run.
1495
+ */
1496
+ replyEventId?: string | null;
1436
1497
  /**
1437
1498
  * Total number of retry records represented by this Leadping automation workflow run.
1438
1499
  */
@@ -1835,6 +1896,12 @@ export interface ChangeBillingPlanRequest extends AdditionalDataHolder, Parsable
1835
1896
  */
1836
1897
  billingPlan?: BillingPlan | null;
1837
1898
  }
1899
+ export interface CloneAutomationRequest extends AdditionalDataHolder, Parsable {
1900
+ /**
1901
+ * The name of the new automation.
1902
+ */
1903
+ name?: string | null;
1904
+ }
1838
1905
  /**
1839
1906
  * Describes one durable diagnostic entry from the processing of a communication.
1840
1907
  */
@@ -2176,6 +2243,12 @@ export declare function createAppointmentActionRequestFromDiscriminatorValue(par
2176
2243
  * @returns {AppointmentActivity}
2177
2244
  */
2178
2245
  export declare function createAppointmentActivityFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2246
+ /**
2247
+ * Creates a new instance of the appropriate class based on discriminator value
2248
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2249
+ * @returns {AppointmentInterval}
2250
+ */
2251
+ export declare function createAppointmentIntervalFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2179
2252
  /**
2180
2253
  * Creates a new instance of the appropriate class based on discriminator value
2181
2254
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2464,6 +2537,12 @@ export declare function createCallRetryRequestFromDiscriminatorValue(parseNode:
2464
2537
  * @returns {ChangeBillingPlanRequest}
2465
2538
  */
2466
2539
  export declare function createChangeBillingPlanRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2540
+ /**
2541
+ * Creates a new instance of the appropriate class based on discriminator value
2542
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2543
+ * @returns {CloneAutomationRequest}
2544
+ */
2545
+ export declare function createCloneAutomationRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2467
2546
  /**
2468
2547
  * Creates a new instance of the appropriate class based on discriminator value
2469
2548
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4859,6 +4938,12 @@ export declare function deserializeIntoAppointmentActionRequest(appointmentActio
4859
4938
  * @returns {Record<string, (node: ParseNode) => void>}
4860
4939
  */
4861
4940
  export declare function deserializeIntoAppointmentActivity(appointmentActivity?: Partial<AppointmentActivity> | undefined): Record<string, (node: ParseNode) => void>;
4941
+ /**
4942
+ * The deserialization information for the current model
4943
+ * @param AppointmentInterval The instance to deserialize into.
4944
+ * @returns {Record<string, (node: ParseNode) => void>}
4945
+ */
4946
+ export declare function deserializeIntoAppointmentInterval(appointmentInterval?: Partial<AppointmentInterval> | undefined): Record<string, (node: ParseNode) => void>;
4862
4947
  /**
4863
4948
  * The deserialization information for the current model
4864
4949
  * @param AppointmentRequest The instance to deserialize into.
@@ -5147,6 +5232,12 @@ export declare function deserializeIntoCallRetryRequest(callRetryRequest?: Parti
5147
5232
  * @returns {Record<string, (node: ParseNode) => void>}
5148
5233
  */
5149
5234
  export declare function deserializeIntoChangeBillingPlanRequest(changeBillingPlanRequest?: Partial<ChangeBillingPlanRequest> | undefined): Record<string, (node: ParseNode) => void>;
5235
+ /**
5236
+ * The deserialization information for the current model
5237
+ * @param CloneAutomationRequest The instance to deserialize into.
5238
+ * @returns {Record<string, (node: ParseNode) => void>}
5239
+ */
5240
+ export declare function deserializeIntoCloneAutomationRequest(cloneAutomationRequest?: Partial<CloneAutomationRequest> | undefined): Record<string, (node: ParseNode) => void>;
5150
5241
  /**
5151
5242
  * The deserialization information for the current model
5152
5243
  * @param CommunicationConsoleEntry The instance to deserialize into.
@@ -11351,9 +11442,13 @@ export interface PhoneIdentityResponse extends AdditionalDataHolder, Parsable {
11351
11442
  */
11352
11443
  number?: string | null;
11353
11444
  /**
11354
- * Whether Telnyx rejected SMS routing to this destination with error 40001.
11445
+ * Whether a recipient-specific carrier rejection currently blocks texting.
11355
11446
  */
11356
11447
  smsNotRoutable?: boolean | null;
11448
+ /**
11449
+ * The provider error code responsible for the current texting restriction.
11450
+ */
11451
+ smsRestrictionCode?: string | null;
11357
11452
  }
11358
11453
  /**
11359
11454
  * Public Leadping API schema for phone lookup result data.
@@ -12395,6 +12490,13 @@ export declare function serializeAppointmentActionRequest(writer: SerializationW
12395
12490
  * @param writer Serialization writer to use to serialize this model
12396
12491
  */
12397
12492
  export declare function serializeAppointmentActivity(writer: SerializationWriter, appointmentActivity?: Partial<AppointmentActivity> | undefined | null, isSerializingDerivedType?: boolean): void;
12493
+ /**
12494
+ * Serializes information the current object
12495
+ * @param AppointmentInterval The instance to serialize from.
12496
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12497
+ * @param writer Serialization writer to use to serialize this model
12498
+ */
12499
+ export declare function serializeAppointmentInterval(writer: SerializationWriter, appointmentInterval?: Partial<AppointmentInterval> | undefined | null, isSerializingDerivedType?: boolean): void;
12398
12500
  /**
12399
12501
  * Serializes information the current object
12400
12502
  * @param AppointmentRequest The instance to serialize from.
@@ -12731,6 +12833,13 @@ export declare function serializeCallRetryRequest(writer: SerializationWriter, c
12731
12833
  * @param writer Serialization writer to use to serialize this model
12732
12834
  */
12733
12835
  export declare function serializeChangeBillingPlanRequest(writer: SerializationWriter, changeBillingPlanRequest?: Partial<ChangeBillingPlanRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
12836
+ /**
12837
+ * Serializes information the current object
12838
+ * @param CloneAutomationRequest The instance to serialize from.
12839
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12840
+ * @param writer Serialization writer to use to serialize this model
12841
+ */
12842
+ export declare function serializeCloneAutomationRequest(writer: SerializationWriter, cloneAutomationRequest?: Partial<CloneAutomationRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
12734
12843
  /**
12735
12844
  * Serializes information the current object
12736
12845
  * @param CommunicationConsoleEntry The instance to serialize from.
@@ -17129,6 +17238,7 @@ export declare const BillableUnitObject: {
17129
17238
  readonly Payment_processing_fee: "payment_processing_fee";
17130
17239
  readonly Connection_action: "connection_action";
17131
17240
  readonly Automation_run: "automation_run";
17241
+ readonly Ai_credit: "ai_credit";
17132
17242
  };
17133
17243
  /**
17134
17244
  * Reusable payment types supported for immediate billing payments.
@@ -18170,6 +18280,7 @@ export declare const TransactionResponse_billableUnitObject: {
18170
18280
  readonly Payment_processing_fee: "payment_processing_fee";
18171
18281
  readonly Connection_action: "connection_action";
18172
18282
  readonly Automation_run: "automation_run";
18283
+ readonly Ai_credit: "ai_credit";
18173
18284
  };
18174
18285
  /**
18175
18286
  * Identifies the messaging, calling, phone-number, lookup, or platform channel that generated billable usage.
@@ -18220,6 +18331,7 @@ export declare const TransactionTableRow_billableUnitObject: {
18220
18331
  readonly Payment_processing_fee: "payment_processing_fee";
18221
18332
  readonly Connection_action: "connection_action";
18222
18333
  readonly Automation_run: "automation_run";
18334
+ readonly Ai_credit: "ai_credit";
18223
18335
  };
18224
18336
  /**
18225
18337
  * Identifies the messaging, calling, phone-number, lookup, or platform channel that generated billable usage.