@leadping/sdk 1.0.125 → 1.0.127

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 (57) hide show
  1. package/dist/conversations/index.d.ts +4 -4
  2. package/dist/conversations/index.d.ts.map +1 -1
  3. package/dist/conversations/index.js +5 -5
  4. package/dist/conversations/index.js.map +1 -1
  5. package/dist/conversations/item/index.d.ts +10 -5
  6. package/dist/conversations/item/index.d.ts.map +1 -1
  7. package/dist/conversations/item/index.js +9 -4
  8. package/dist/conversations/item/index.js.map +1 -1
  9. package/dist/conversations/item/markHandled/index.d.ts +2 -2
  10. package/dist/conversations/item/markHandled/index.d.ts.map +1 -1
  11. package/dist/conversations/item/markHandled/index.js +1 -1
  12. package/dist/conversations/item/markHandled/index.js.map +1 -1
  13. package/dist/conversations/item/markRead/index.d.ts +2 -2
  14. package/dist/conversations/item/markRead/index.d.ts.map +1 -1
  15. package/dist/conversations/item/markRead/index.js +1 -1
  16. package/dist/conversations/item/markRead/index.js.map +1 -1
  17. package/dist/conversations/item/markReplyNeeded/index.d.ts +2 -2
  18. package/dist/conversations/item/markReplyNeeded/index.d.ts.map +1 -1
  19. package/dist/conversations/item/markReplyNeeded/index.js +1 -1
  20. package/dist/conversations/item/markReplyNeeded/index.js.map +1 -1
  21. package/dist/conversations/item/outboundReadiness/index.d.ts +2 -2
  22. package/dist/conversations/item/outboundReadiness/index.d.ts.map +1 -1
  23. package/dist/conversations/item/outboundReadiness/index.js +1 -1
  24. package/dist/conversations/item/outboundReadiness/index.js.map +1 -1
  25. package/dist/conversations/item/retry/index.d.ts +33 -0
  26. package/dist/conversations/item/retry/index.d.ts.map +1 -0
  27. package/dist/conversations/item/retry/index.js +31 -0
  28. package/dist/conversations/item/retry/index.js.map +1 -0
  29. package/dist/conversations/my/index.d.ts +8 -4
  30. package/dist/conversations/my/index.d.ts.map +1 -1
  31. package/dist/conversations/my/index.js +3 -3
  32. package/dist/conversations/my/index.js.map +1 -1
  33. package/dist/models/index.d.ts +132 -1
  34. package/dist/models/index.d.ts.map +1 -1
  35. package/dist/models/index.js +128 -0
  36. package/dist/models/index.js.map +1 -1
  37. package/dist/phoneCall/dial/index.d.ts +22 -0
  38. package/dist/phoneCall/dial/index.d.ts.map +1 -0
  39. package/dist/phoneCall/dial/index.js +21 -0
  40. package/dist/phoneCall/dial/index.js.map +1 -0
  41. package/dist/phoneCall/dial/item/index.d.ts +33 -0
  42. package/dist/phoneCall/dial/item/index.d.ts.map +1 -0
  43. package/dist/phoneCall/dial/item/index.js +31 -0
  44. package/dist/phoneCall/dial/item/index.js.map +1 -0
  45. package/dist/phoneCall/index.d.ts +10 -0
  46. package/dist/phoneCall/index.d.ts.map +1 -1
  47. package/dist/phoneCall/index.js +10 -0
  48. package/dist/phoneCall/index.js.map +1 -1
  49. package/dist/phoneCall/next/index.d.ts +22 -0
  50. package/dist/phoneCall/next/index.d.ts.map +1 -0
  51. package/dist/phoneCall/next/index.js +21 -0
  52. package/dist/phoneCall/next/index.js.map +1 -0
  53. package/dist/phoneCall/next/item/index.d.ts +39 -0
  54. package/dist/phoneCall/next/item/index.d.ts.map +1 -0
  55. package/dist/phoneCall/next/item/index.js +31 -0
  56. package/dist/phoneCall/next/item/index.js.map +1 -0
  57. package/package.json +1 -1
@@ -717,7 +717,7 @@ export interface AutomationRequest extends AdditionalDataHolder, Parsable {
717
717
  */
718
718
  scope?: string | null;
719
719
  /**
720
- * Time zone used by workflow time and day conditions in preview and runtime. New workflows default to the organization�s time zone.
720
+ * Time zone used by workflow time and day conditions in preview and runtime. New workflows default to the organization's time zone.
721
721
  */
722
722
  timeZoneId?: string | null;
723
723
  /**
@@ -1745,6 +1745,16 @@ export interface CallEventTableRow extends AdditionalDataHolder, Parsable {
1745
1745
  }
1746
1746
  export type CallEventTableRow_outboundSource = (typeof CallEventTableRow_outboundSourceObject)[keyof typeof CallEventTableRow_outboundSourceObject];
1747
1747
  export type CallEventTableRow_status = (typeof CallEventTableRow_statusObject)[keyof typeof CallEventTableRow_statusObject];
1748
+ export interface CallRetryRequest extends AdditionalDataHolder, Parsable {
1749
+ /**
1750
+ * The prior retry time observed by the rep.
1751
+ */
1752
+ expectedRetryAt?: Date | null;
1753
+ /**
1754
+ * When to offer this call again. Clear to remove the retry.
1755
+ */
1756
+ retryAt?: Date | null;
1757
+ }
1748
1758
  /**
1749
1759
  * Defines the input used for change billing plan.
1750
1760
  */
@@ -1802,6 +1812,35 @@ export interface ComplianceUpdateRequest extends AdditionalDataHolder, Parsable
1802
1812
  export interface ComplianceUpdateRequest_compliance extends Parsable, UserCompliance {
1803
1813
  }
1804
1814
  export type ConsentVerificationStatus = (typeof ConsentVerificationStatusObject)[keyof typeof ConsentVerificationStatusObject];
1815
+ /**
1816
+ * A page of inbox conversations with optional action counts and refresh timing.
1817
+ */
1818
+ export interface ConversationPage extends AdditionalDataHolder, Parsable {
1819
+ /**
1820
+ * The continuationToken property
1821
+ */
1822
+ continuationToken?: string | null;
1823
+ /**
1824
+ * The items property
1825
+ */
1826
+ items?: ConversationResponse[] | null;
1827
+ /**
1828
+ * Visible unanswered conversations, capped at ReplyCountDisplayLimit + 1. Included on request.
1829
+ */
1830
+ needsReplyCount?: number | null;
1831
+ /**
1832
+ * The pageSize property
1833
+ */
1834
+ pageSize?: number | null;
1835
+ /**
1836
+ * Time remaining until a scheduled action or contact window could change this page, measured on the server.
1837
+ */
1838
+ refreshAfter?: string | null;
1839
+ /**
1840
+ * The totalCount property
1841
+ */
1842
+ totalCount?: number | null;
1843
+ }
1805
1844
  /**
1806
1845
  * Describes conversation data returned by Leadping.
1807
1846
  */
@@ -1822,6 +1861,10 @@ export interface ConversationResponse extends AdditionalDataHolder, Parsable {
1822
1861
  * Optional profile image URL explicitly associated with the lead.
1823
1862
  */
1824
1863
  avatarUrl?: string | null;
1864
+ /**
1865
+ * Rep-selected time for the next call attempt.
1866
+ */
1867
+ callRetryAt?: Date | null;
1825
1868
  /**
1826
1869
  * Current manual voice eligibility, including contact hours. Populated on individual conversation reads. Sender readiness and billing are checked when calling; null means eligibility has not been evaluated.
1827
1870
  */
@@ -1854,6 +1897,14 @@ export interface ConversationResponse extends AdditionalDataHolder, Parsable {
1854
1897
  * Unique Leadping identifier for this conversation response.
1855
1898
  */
1856
1899
  id?: string | null;
1900
+ /**
1901
+ * The next action for a conversation, in inbox priority order.
1902
+ */
1903
+ inboxAction?: number | null;
1904
+ /**
1905
+ * Customer reply time, due time, or request time explaining the action.
1906
+ */
1907
+ inboxActionAt?: Date | null;
1857
1908
  /**
1858
1909
  * Indicates whether the Leadping conversation has been archived.
1859
1910
  */
@@ -2279,6 +2330,12 @@ export declare function createBrowserCallApprovalFromDiscriminatorValue(parseNod
2279
2330
  * @returns {CallEventTableRow}
2280
2331
  */
2281
2332
  export declare function createCallEventTableRowFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2333
+ /**
2334
+ * Creates a new instance of the appropriate class based on discriminator value
2335
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2336
+ * @returns {CallRetryRequest}
2337
+ */
2338
+ export declare function createCallRetryRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2282
2339
  /**
2283
2340
  * Creates a new instance of the appropriate class based on discriminator value
2284
2341
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2303,6 +2360,12 @@ export declare function createComplianceUpdateRequest_complianceFromDiscriminato
2303
2360
  * @returns {ComplianceUpdateRequest}
2304
2361
  */
2305
2362
  export declare function createComplianceUpdateRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2363
+ /**
2364
+ * Creates a new instance of the appropriate class based on discriminator value
2365
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2366
+ * @returns {ConversationPage}
2367
+ */
2368
+ export declare function createConversationPageFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2306
2369
  /**
2307
2370
  * Creates a new instance of the appropriate class based on discriminator value
2308
2371
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2843,6 +2906,12 @@ export declare function createLeadTableRowFromDiscriminatorValue(parseNode: Pars
2843
2906
  * @returns {LeadTagsRequest}
2844
2907
  */
2845
2908
  export declare function createLeadTagsRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2909
+ /**
2910
+ * Creates a new instance of the appropriate class based on discriminator value
2911
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2912
+ * @returns {ManualDialRequest}
2913
+ */
2914
+ export declare function createManualDialRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
2846
2915
  /**
2847
2916
  * Creates a new instance of the appropriate class based on discriminator value
2848
2917
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3900,6 +3969,10 @@ export declare function createWalletResponseFromDiscriminatorValue(parseNode: Pa
3900
3969
  * Summary schema for Leadping API current lead status change summary data used in dashboards and reports.
3901
3970
  */
3902
3971
  export interface CurrentLeadStatusSummary extends AdditionalDataHolder, Parsable {
3972
+ /**
3973
+ * The promised callback time, independent of a general follow-up task.
3974
+ */
3975
+ callbackAt?: Date | null;
3903
3976
  /**
3904
3977
  * Controlled lead status change categories used for reporting, automation, and analytics.
3905
3978
  */
@@ -4916,6 +4989,12 @@ export declare function deserializeIntoBrowserCallApproval(browserCallApproval?:
4916
4989
  * @returns {Record<string, (node: ParseNode) => void>}
4917
4990
  */
4918
4991
  export declare function deserializeIntoCallEventTableRow(callEventTableRow?: Partial<CallEventTableRow> | undefined): Record<string, (node: ParseNode) => void>;
4992
+ /**
4993
+ * The deserialization information for the current model
4994
+ * @param CallRetryRequest The instance to deserialize into.
4995
+ * @returns {Record<string, (node: ParseNode) => void>}
4996
+ */
4997
+ export declare function deserializeIntoCallRetryRequest(callRetryRequest?: Partial<CallRetryRequest> | undefined): Record<string, (node: ParseNode) => void>;
4919
4998
  /**
4920
4999
  * The deserialization information for the current model
4921
5000
  * @param ChangeBillingPlanRequest The instance to deserialize into.
@@ -4940,6 +5019,12 @@ export declare function deserializeIntoComplianceUpdateRequest(complianceUpdateR
4940
5019
  * @returns {Record<string, (node: ParseNode) => void>}
4941
5020
  */
4942
5021
  export declare function deserializeIntoComplianceUpdateRequest_compliance(complianceUpdateRequest_compliance?: Partial<ComplianceUpdateRequest_compliance> | undefined): Record<string, (node: ParseNode) => void>;
5022
+ /**
5023
+ * The deserialization information for the current model
5024
+ * @param ConversationPage The instance to deserialize into.
5025
+ * @returns {Record<string, (node: ParseNode) => void>}
5026
+ */
5027
+ export declare function deserializeIntoConversationPage(conversationPage?: Partial<ConversationPage> | undefined): Record<string, (node: ParseNode) => void>;
4943
5028
  /**
4944
5029
  * The deserialization information for the current model
4945
5030
  * @param ConversationResponse The instance to deserialize into.
@@ -5480,6 +5565,12 @@ export declare function deserializeIntoLeadTableRow_source(leadTableRow_source?:
5480
5565
  * @returns {Record<string, (node: ParseNode) => void>}
5481
5566
  */
5482
5567
  export declare function deserializeIntoLeadTagsRequest(leadTagsRequest?: Partial<LeadTagsRequest> | undefined): Record<string, (node: ParseNode) => void>;
5568
+ /**
5569
+ * The deserialization information for the current model
5570
+ * @param ManualDialRequest The instance to deserialize into.
5571
+ * @returns {Record<string, (node: ParseNode) => void>}
5572
+ */
5573
+ export declare function deserializeIntoManualDialRequest(manualDialRequest?: Partial<ManualDialRequest> | undefined): Record<string, (node: ParseNode) => void>;
5483
5574
  /**
5484
5575
  * The deserialization information for the current model
5485
5576
  * @param MessageMediaAttachment The instance to deserialize into.
@@ -7306,6 +7397,10 @@ export interface LeadContactabilityResponse extends AdditionalDataHolder, Parsab
7306
7397
  * Whether the lead can currently be texted after evaluating applicable contact hours, suppression, and consent rules.
7307
7398
  */
7308
7399
  canText?: boolean | null;
7400
+ /**
7401
+ * Next opening or closing of a contact window that can change this result.
7402
+ */
7403
+ nextWindowChangeAt?: Date | null;
7309
7404
  /**
7310
7405
  * Whether the stored phone lookup rules out texting this recipient.
7311
7406
  */
@@ -8760,6 +8855,15 @@ export interface LeadTagsRequest extends AdditionalDataHolder, Parsable {
8760
8855
  */
8761
8856
  tagNames?: string[] | null;
8762
8857
  }
8858
+ /**
8859
+ * Requests a manual browser call to a number entered by the agent.
8860
+ */
8861
+ export interface ManualDialRequest extends AdditionalDataHolder, Parsable {
8862
+ /**
8863
+ * The destination phone number.
8864
+ */
8865
+ phoneNumber?: string | null;
8866
+ }
8763
8867
  /**
8764
8868
  * Media attached to an SMS/MMS conversation event.
8765
8869
  */
@@ -11985,6 +12089,10 @@ export interface SendSmsRequest extends AdditionalDataHolder, Parsable {
11985
12089
  * Idempotency key used to prevent duplicate outbound delivery.
11986
12090
  */
11987
12091
  outboundIdempotencyKey?: string | null;
12092
+ /**
12093
+ * Version of the incoming conversation reply displayed to the agent when composing this response.
12094
+ */
12095
+ replyVersion?: number | null;
11988
12096
  /**
11989
12097
  * UTC timestamp when Leadping should send the SMS message.
11990
12098
  */
@@ -12384,6 +12492,13 @@ export declare function serializeBrowserCallApproval(writer: SerializationWriter
12384
12492
  * @param writer Serialization writer to use to serialize this model
12385
12493
  */
12386
12494
  export declare function serializeCallEventTableRow(writer: SerializationWriter, callEventTableRow?: Partial<CallEventTableRow> | undefined | null, isSerializingDerivedType?: boolean): void;
12495
+ /**
12496
+ * Serializes information the current object
12497
+ * @param CallRetryRequest The instance to serialize from.
12498
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12499
+ * @param writer Serialization writer to use to serialize this model
12500
+ */
12501
+ export declare function serializeCallRetryRequest(writer: SerializationWriter, callRetryRequest?: Partial<CallRetryRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
12387
12502
  /**
12388
12503
  * Serializes information the current object
12389
12504
  * @param ChangeBillingPlanRequest The instance to serialize from.
@@ -12412,6 +12527,13 @@ export declare function serializeComplianceUpdateRequest(writer: SerializationWr
12412
12527
  * @param writer Serialization writer to use to serialize this model
12413
12528
  */
12414
12529
  export declare function serializeComplianceUpdateRequest_compliance(writer: SerializationWriter, complianceUpdateRequest_compliance?: Partial<ComplianceUpdateRequest_compliance> | undefined | null, isSerializingDerivedType?: boolean): void;
12530
+ /**
12531
+ * Serializes information the current object
12532
+ * @param ConversationPage The instance to serialize from.
12533
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12534
+ * @param writer Serialization writer to use to serialize this model
12535
+ */
12536
+ export declare function serializeConversationPage(writer: SerializationWriter, conversationPage?: Partial<ConversationPage> | undefined | null, isSerializingDerivedType?: boolean): void;
12415
12537
  /**
12416
12538
  * Serializes information the current object
12417
12539
  * @param ConversationResponse The instance to serialize from.
@@ -13042,6 +13164,13 @@ export declare function serializeLeadTableRow_source(writer: SerializationWriter
13042
13164
  * @param writer Serialization writer to use to serialize this model
13043
13165
  */
13044
13166
  export declare function serializeLeadTagsRequest(writer: SerializationWriter, leadTagsRequest?: Partial<LeadTagsRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
13167
+ /**
13168
+ * Serializes information the current object
13169
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
13170
+ * @param ManualDialRequest The instance to serialize from.
13171
+ * @param writer Serialization writer to use to serialize this model
13172
+ */
13173
+ export declare function serializeManualDialRequest(writer: SerializationWriter, manualDialRequest?: Partial<ManualDialRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
13045
13174
  /**
13046
13175
  * Serializes information the current object
13047
13176
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -16996,6 +17125,7 @@ export declare const LeadInquiry_urgencyObject: {
16996
17125
  export declare const LeadIntakeRequest_consentCertificateTypeObject: {
16997
17126
  readonly TrustedForm: "TrustedForm";
16998
17127
  readonly Leadping: "Leadping";
17128
+ readonly ManualVoice: "ManualVoice";
16999
17129
  readonly Other: "Other";
17000
17130
  };
17001
17131
  /**
@@ -17004,6 +17134,7 @@ export declare const LeadIntakeRequest_consentCertificateTypeObject: {
17004
17134
  export declare const LeadMetadata_consentCertificateTypeObject: {
17005
17135
  readonly TrustedForm: "TrustedForm";
17006
17136
  readonly Leadping: "Leadping";
17137
+ readonly ManualVoice: "ManualVoice";
17007
17138
  readonly Other: "Other";
17008
17139
  };
17009
17140
  /**