@leadping/sdk 1.0.83 → 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
  */
@@ -7124,13 +7152,13 @@ export interface LeadMetadata extends AdditionalDataHolder, Parsable {
7124
7152
  */
7125
7153
  trustedFormCheckedAt?: Date | null;
7126
7154
  /**
7127
- * Browser or client user agent captured when this lead attribution metadata was submitted.
7155
+ * Server-issued timestamp when TrustedForm returned HTTP 400 or the certificate was already used by the organization; the evidence remains unverified.
7128
7156
  */
7129
- userAgent?: string | null;
7157
+ trustedFormRejectedAt?: Date | null;
7130
7158
  /**
7131
- * User ID associated with this lead's attribution metadata.
7159
+ * Browser or client user agent captured when this lead attribution metadata was submitted.
7132
7160
  */
7133
- userId?: string | null;
7161
+ userAgent?: string | null;
7134
7162
  /**
7135
7163
  * UTM campaign parameter captured for lead attribution reporting.
7136
7164
  */
@@ -10548,6 +10576,7 @@ export interface PhoneNumberOptOutMetricsResponse extends AdditionalDataHolder,
10548
10576
  windowStartedAt?: Date | null;
10549
10577
  }
10550
10578
  export type PhoneNumberOutboundHealthStatus = (typeof PhoneNumberOutboundHealthStatusObject)[keyof typeof PhoneNumberOutboundHealthStatusObject];
10579
+ export type PhoneNumberOwnership = (typeof PhoneNumberOwnershipObject)[keyof typeof PhoneNumberOwnershipObject];
10551
10580
  /**
10552
10581
  * Messaging and calling warmup for a Leadping phone number.
10553
10582
  */
@@ -10617,10 +10646,6 @@ export interface PhoneNumberResponse extends AdditionalDataHolder, Parsable {
10617
10646
  * The isDemo property
10618
10647
  */
10619
10648
  isDemo?: boolean | null;
10620
- /**
10621
- * Indicates whether Leadping provisions and manages this phone number.
10622
- */
10623
- leadpingOwned?: boolean | null;
10624
10649
  /**
10625
10650
  * UTC timestamp when the resource was last modified, or null when it has not been updated.
10626
10651
  */
@@ -10641,6 +10666,10 @@ export interface PhoneNumberResponse extends AdditionalDataHolder, Parsable {
10641
10666
  * Provides a compact API reference to another resource using its stable identifier and human-readable display name.
10642
10667
  */
10643
10668
  organization?: PhoneNumberResponse_organization | null;
10669
+ /**
10670
+ * Identifies whose traffic a phone number serves, independently of provider control.
10671
+ */
10672
+ ownership?: PhoneNumberOwnership | null;
10644
10673
  /**
10645
10674
  * Identifier of the canonical phone identity for this number.
10646
10675
  */
@@ -10834,9 +10863,9 @@ export interface PhoneNumberTableRow extends AdditionalDataHolder, Parsable {
10834
10863
  */
10835
10864
  organizationId?: string | null;
10836
10865
  /**
10837
- * 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.
10838
10867
  */
10839
- ownership?: string | null;
10868
+ ownership?: PhoneNumberOwnership | null;
10840
10869
  /**
10841
10870
  * Human-readable routing summary for this phone number.
10842
10871
  */
@@ -12907,6 +12936,20 @@ export declare function serializeSourceTableRow_organization(writer: Serializati
12907
12936
  * @param writer Serialization writer to use to serialize this model
12908
12937
  */
12909
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;
12910
12953
  /**
12911
12954
  * Serializes information the current object
12912
12955
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -13216,6 +13259,10 @@ export interface SmsEventTableRow extends AdditionalDataHolder, Parsable {
13216
13259
  * Display name for the actor that performed the action.
13217
13260
  */
13218
13261
  actorDisplayName?: string | null;
13262
+ /**
13263
+ * The lead who performed this action.
13264
+ */
13265
+ actorLeadId?: string | null;
13219
13266
  /**
13220
13267
  * User ID for the actor that performed the action.
13221
13268
  */
@@ -13532,6 +13579,10 @@ export interface SmsResponse extends AdditionalDataHolder, Parsable {
13532
13579
  * UTC timestamp when Leadping will retry this SMS message.
13533
13580
  */
13534
13581
  nextRetryAt?: Date | null;
13582
+ /**
13583
+ * The organization receiving this message status update.
13584
+ */
13585
+ organizationId?: string | null;
13535
13586
  /**
13536
13587
  * Phone number ID selected for outbound delivery.
13537
13588
  */
@@ -13650,6 +13701,10 @@ export interface SourceRequest extends AdditionalDataHolder, Parsable {
13650
13701
  * Whether to look up lead phone numbers during intake. When disabled, lookup is required before calling or texting.
13651
13702
  */
13652
13703
  automaticPhoneLookup?: boolean | null;
13704
+ /**
13705
+ * Maximum new leads accepted per UTC day. Null means unlimited; zero pauses intake.
13706
+ */
13707
+ dailyLeadLimit?: number | null;
13653
13708
  /**
13654
13709
  * Tag IDs automatically assigned to leads created by this source.
13655
13710
  */
@@ -13707,6 +13762,10 @@ export interface SourceResponse extends AdditionalDataHolder, Parsable {
13707
13762
  * Email used to resolve the creator's avatar.
13708
13763
  */
13709
13764
  createdByUserEmail?: string | null;
13765
+ /**
13766
+ * Maximum new leads accepted per UTC day. Null means unlimited; zero pauses intake.
13767
+ */
13768
+ dailyLeadLimit?: number | null;
13710
13769
  /**
13711
13770
  * Tag IDs automatically assigned to leads created by this source.
13712
13771
  */
@@ -13905,6 +13964,52 @@ export interface SourceTableRow_organization extends IdNamePair, Parsable {
13905
13964
  */
13906
13965
  export interface SourceTableRow_user extends IdNamePair, Parsable {
13907
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
+ }
13908
14013
  /**
13909
14014
  * Describes a physical or mailing address using international locality, administrative-area, postal-code, and country fields.
13910
14015
  */
@@ -14994,7 +15099,7 @@ export interface UserNotificationPreferences extends AdditionalDataHolder, Parsa
14994
15099
  */
14995
15100
  paymentFailedSmsEnabled?: boolean | null;
14996
15101
  /**
14997
- * 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.
14998
15103
  */
14999
15104
  quietHoursEnabled?: boolean | null;
15000
15105
  /**
@@ -16184,6 +16289,14 @@ export declare const PhoneNumberOutboundHealthStatusObject: {
16184
16289
  readonly Suspended: "suspended";
16185
16290
  readonly Disabled: "disabled";
16186
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
+ };
16187
16300
  /**
16188
16301
  * Identifies the current traffic-ramp stage of controlled voice warmup for a Leadping-managed phone number.
16189
16302
  */