@leadping/sdk 1.0.84 → 1.0.85

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.
@@ -3241,6 +3241,18 @@ export declare function createSourceTableRow_userFromDiscriminatorValue(parseNod
3241
3241
  * @returns {SourceTableRow}
3242
3242
  */
3243
3243
  export declare function createSourceTableRowFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3244
+ /**
3245
+ * Creates a new instance of the appropriate class based on discriminator value
3246
+ * @param parseNode The parse node to use to read the discriminator value and create the object
3247
+ * @returns {SpendLimitsRequest}
3248
+ */
3249
+ export declare function createSpendLimitsRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3250
+ /**
3251
+ * Creates a new instance of the appropriate class based on discriminator value
3252
+ * @param parseNode The parse node to use to read the discriminator value and create the object
3253
+ * @returns {SpendLimitsResponse}
3254
+ */
3255
+ export declare function createSpendLimitsResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3244
3256
  /**
3245
3257
  * Creates a new instance of the appropriate class based on discriminator value
3246
3258
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -5706,6 +5718,18 @@ export declare function deserializeIntoSourceTableRow_organization(sourceTableRo
5706
5718
  * @returns {Record<string, (node: ParseNode) => void>}
5707
5719
  */
5708
5720
  export declare function deserializeIntoSourceTableRow_user(sourceTableRow_user?: Partial<SourceTableRow_user> | undefined): Record<string, (node: ParseNode) => void>;
5721
+ /**
5722
+ * The deserialization information for the current model
5723
+ * @param SpendLimitsRequest The instance to deserialize into.
5724
+ * @returns {Record<string, (node: ParseNode) => void>}
5725
+ */
5726
+ export declare function deserializeIntoSpendLimitsRequest(spendLimitsRequest?: Partial<SpendLimitsRequest> | undefined): Record<string, (node: ParseNode) => void>;
5727
+ /**
5728
+ * The deserialization information for the current model
5729
+ * @param SpendLimitsResponse The instance to deserialize into.
5730
+ * @returns {Record<string, (node: ParseNode) => void>}
5731
+ */
5732
+ export declare function deserializeIntoSpendLimitsResponse(spendLimitsResponse?: Partial<SpendLimitsResponse> | undefined): Record<string, (node: ParseNode) => void>;
5709
5733
  /**
5710
5734
  * The deserialization information for the current model
5711
5735
  * @param StreetAddress The instance to deserialize into.
@@ -6182,6 +6206,10 @@ export interface EventTableRow extends AdditionalDataHolder, Parsable {
6182
6206
  * Email address for the person who created this event timeline table row.
6183
6207
  */
6184
6208
  actorEmail?: string | null;
6209
+ /**
6210
+ * The lead who performed this action.
6211
+ */
6212
+ actorLeadId?: string | null;
6185
6213
  /**
6186
6214
  * User ID for the person or system that created this event timeline table row.
6187
6215
  */
@@ -7131,10 +7159,6 @@ export interface LeadMetadata extends AdditionalDataHolder, Parsable {
7131
7159
  * Browser or client user agent captured when this lead attribution metadata was submitted.
7132
7160
  */
7133
7161
  userAgent?: string | null;
7134
- /**
7135
- * User ID associated with this lead's attribution metadata.
7136
- */
7137
- userId?: string | null;
7138
7162
  /**
7139
7163
  * UTM campaign parameter captured for lead attribution reporting.
7140
7164
  */
@@ -10552,6 +10576,7 @@ export interface PhoneNumberOptOutMetricsResponse extends AdditionalDataHolder,
10552
10576
  windowStartedAt?: Date | null;
10553
10577
  }
10554
10578
  export type PhoneNumberOutboundHealthStatus = (typeof PhoneNumberOutboundHealthStatusObject)[keyof typeof PhoneNumberOutboundHealthStatusObject];
10579
+ export type PhoneNumberOwnership = (typeof PhoneNumberOwnershipObject)[keyof typeof PhoneNumberOwnershipObject];
10555
10580
  /**
10556
10581
  * Messaging and calling warmup for a Leadping phone number.
10557
10582
  */
@@ -10621,10 +10646,6 @@ export interface PhoneNumberResponse extends AdditionalDataHolder, Parsable {
10621
10646
  * The isDemo property
10622
10647
  */
10623
10648
  isDemo?: boolean | null;
10624
- /**
10625
- * Indicates whether Leadping provisions and manages this phone number.
10626
- */
10627
- leadpingOwned?: boolean | null;
10628
10649
  /**
10629
10650
  * UTC timestamp when the resource was last modified, or null when it has not been updated.
10630
10651
  */
@@ -10645,6 +10666,10 @@ export interface PhoneNumberResponse extends AdditionalDataHolder, Parsable {
10645
10666
  * Provides a compact API reference to another resource using its stable identifier and human-readable display name.
10646
10667
  */
10647
10668
  organization?: PhoneNumberResponse_organization | null;
10669
+ /**
10670
+ * Identifies whose traffic a phone number serves, independently of provider control.
10671
+ */
10672
+ ownership?: PhoneNumberOwnership | null;
10648
10673
  /**
10649
10674
  * Identifier of the canonical phone identity for this number.
10650
10675
  */
@@ -10838,9 +10863,9 @@ export interface PhoneNumberTableRow extends AdditionalDataHolder, Parsable {
10838
10863
  */
10839
10864
  organizationId?: string | null;
10840
10865
  /**
10841
- * Ownership classification for this phone number, such as Leadping-owned or customer-owned.
10866
+ * Identifies whose traffic a phone number serves, independently of provider control.
10842
10867
  */
10843
- ownership?: string | null;
10868
+ ownership?: PhoneNumberOwnership | null;
10844
10869
  /**
10845
10870
  * Human-readable routing summary for this phone number.
10846
10871
  */
@@ -12911,6 +12936,20 @@ export declare function serializeSourceTableRow_organization(writer: Serializati
12911
12936
  * @param writer Serialization writer to use to serialize this model
12912
12937
  */
12913
12938
  export declare function serializeSourceTableRow_user(writer: SerializationWriter, sourceTableRow_user?: Partial<SourceTableRow_user> | undefined | null, isSerializingDerivedType?: boolean): void;
12939
+ /**
12940
+ * Serializes information the current object
12941
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12942
+ * @param SpendLimitsRequest The instance to serialize from.
12943
+ * @param writer Serialization writer to use to serialize this model
12944
+ */
12945
+ export declare function serializeSpendLimitsRequest(writer: SerializationWriter, spendLimitsRequest?: Partial<SpendLimitsRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
12946
+ /**
12947
+ * Serializes information the current object
12948
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12949
+ * @param SpendLimitsResponse The instance to serialize from.
12950
+ * @param writer Serialization writer to use to serialize this model
12951
+ */
12952
+ export declare function serializeSpendLimitsResponse(writer: SerializationWriter, spendLimitsResponse?: Partial<SpendLimitsResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
12914
12953
  /**
12915
12954
  * Serializes information the current object
12916
12955
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -13220,6 +13259,10 @@ export interface SmsEventTableRow extends AdditionalDataHolder, Parsable {
13220
13259
  * Display name for the actor that performed the action.
13221
13260
  */
13222
13261
  actorDisplayName?: string | null;
13262
+ /**
13263
+ * The lead who performed this action.
13264
+ */
13265
+ actorLeadId?: string | null;
13223
13266
  /**
13224
13267
  * User ID for the actor that performed the action.
13225
13268
  */
@@ -13536,6 +13579,10 @@ export interface SmsResponse extends AdditionalDataHolder, Parsable {
13536
13579
  * UTC timestamp when Leadping will retry this SMS message.
13537
13580
  */
13538
13581
  nextRetryAt?: Date | null;
13582
+ /**
13583
+ * The organization receiving this message status update.
13584
+ */
13585
+ organizationId?: string | null;
13539
13586
  /**
13540
13587
  * Phone number ID selected for outbound delivery.
13541
13588
  */
@@ -13654,6 +13701,10 @@ export interface SourceRequest extends AdditionalDataHolder, Parsable {
13654
13701
  * Whether to look up lead phone numbers during intake. When disabled, lookup is required before calling or texting.
13655
13702
  */
13656
13703
  automaticPhoneLookup?: boolean | null;
13704
+ /**
13705
+ * Maximum new leads accepted per UTC day. Null means unlimited; zero pauses intake.
13706
+ */
13707
+ dailyLeadLimit?: number | null;
13657
13708
  /**
13658
13709
  * Tag IDs automatically assigned to leads created by this source.
13659
13710
  */
@@ -13711,6 +13762,10 @@ export interface SourceResponse extends AdditionalDataHolder, Parsable {
13711
13762
  * Email used to resolve the creator's avatar.
13712
13763
  */
13713
13764
  createdByUserEmail?: string | null;
13765
+ /**
13766
+ * Maximum new leads accepted per UTC day. Null means unlimited; zero pauses intake.
13767
+ */
13768
+ dailyLeadLimit?: number | null;
13714
13769
  /**
13715
13770
  * Tag IDs automatically assigned to leads created by this source.
13716
13771
  */
@@ -13909,6 +13964,52 @@ export interface SourceTableRow_organization extends IdNamePair, Parsable {
13909
13964
  */
13910
13965
  export interface SourceTableRow_user extends IdNamePair, Parsable {
13911
13966
  }
13967
+ /**
13968
+ * Organization usage budgets in USD. Null removes a limit; zero stops new paid usage.
13969
+ */
13970
+ export interface SpendLimitsRequest extends AdditionalDataHolder, Parsable {
13971
+ /**
13972
+ * The dailyLimit property
13973
+ */
13974
+ dailyLimit?: number | null;
13975
+ /**
13976
+ * The monthlyLimit property
13977
+ */
13978
+ monthlyLimit?: number | null;
13979
+ }
13980
+ /**
13981
+ * UTC calendar usage budgets, settled spend, and pending usage reservations in USD.
13982
+ */
13983
+ export interface SpendLimitsResponse extends AdditionalDataHolder, Parsable {
13984
+ /**
13985
+ * The dailyLimit property
13986
+ */
13987
+ dailyLimit?: number | null;
13988
+ /**
13989
+ * The dailyResetsAt property
13990
+ */
13991
+ dailyResetsAt?: Date | null;
13992
+ /**
13993
+ * The dailySpent property
13994
+ */
13995
+ dailySpent?: number | null;
13996
+ /**
13997
+ * The monthlyLimit property
13998
+ */
13999
+ monthlyLimit?: number | null;
14000
+ /**
14001
+ * The monthlyResetsAt property
14002
+ */
14003
+ monthlyResetsAt?: Date | null;
14004
+ /**
14005
+ * The monthlySpent property
14006
+ */
14007
+ monthlySpent?: number | null;
14008
+ /**
14009
+ * The reserved property
14010
+ */
14011
+ reserved?: number | null;
14012
+ }
13912
14013
  /**
13913
14014
  * Describes a physical or mailing address using international locality, administrative-area, postal-code, and country fields.
13914
14015
  */
@@ -14998,7 +15099,7 @@ export interface UserNotificationPreferences extends AdditionalDataHolder, Parsa
14998
15099
  */
14999
15100
  paymentFailedSmsEnabled?: boolean | null;
15000
15101
  /**
15001
- * Whether push and automation alerts wait until the user's daily quiet hours end.
15102
+ * Whether push, SMS, and automation alerts wait until the user's daily quiet hours end.
15002
15103
  */
15003
15104
  quietHoursEnabled?: boolean | null;
15004
15105
  /**
@@ -16188,6 +16289,14 @@ export declare const PhoneNumberOutboundHealthStatusObject: {
16188
16289
  readonly Suspended: "suspended";
16189
16290
  readonly Disabled: "disabled";
16190
16291
  };
16292
+ /**
16293
+ * Identifies whose traffic a phone number serves, independently of provider control.
16294
+ */
16295
+ export declare const PhoneNumberOwnershipObject: {
16296
+ readonly Unassigned: "Unassigned";
16297
+ readonly Leadping: "Leadping";
16298
+ readonly Organization: "Organization";
16299
+ };
16191
16300
  /**
16192
16301
  * Identifies the current traffic-ramp stage of controlled voice warmup for a Leadping-managed phone number.
16193
16302
  */