@leadping/sdk 1.0.32 → 1.0.34

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 (92) hide show
  1. package/dist/analytics/my/index.d.ts +10 -1
  2. package/dist/analytics/my/index.d.ts.map +1 -1
  3. package/dist/analytics/my/index.js.map +1 -1
  4. package/dist/automations/index.d.ts +2 -2
  5. package/dist/automations/item/index.d.ts +2 -2
  6. package/dist/automations/preview/index.d.ts +2 -2
  7. package/dist/contact/index.d.ts +2 -2
  8. package/dist/conversations/my/index.d.ts +3 -0
  9. package/dist/conversations/my/index.d.ts.map +1 -1
  10. package/dist/conversations/my/index.js.map +1 -1
  11. package/dist/events/all/my/index.d.ts +9 -0
  12. package/dist/events/all/my/index.d.ts.map +1 -1
  13. package/dist/events/all/my/index.js.map +1 -1
  14. package/dist/events/conversations/item/notes/index.d.ts +2 -2
  15. package/dist/events/organizations/item/index.d.ts +6 -0
  16. package/dist/events/organizations/item/index.d.ts.map +1 -1
  17. package/dist/events/organizations/item/index.js.map +1 -1
  18. package/dist/feedback/index.d.ts +2 -2
  19. package/dist/leadStatusChanges/all/my/index.d.ts +2 -2
  20. package/dist/leadStatuses/index.d.ts +1 -1
  21. package/dist/leads/all/my/index.d.ts +12 -0
  22. package/dist/leads/all/my/index.d.ts.map +1 -1
  23. package/dist/leads/all/my/index.js.map +1 -1
  24. package/dist/leads/index.d.ts +2 -2
  25. package/dist/leads/intake/index.d.ts +4 -4
  26. package/dist/leads/item/archive/index.d.ts +3 -3
  27. package/dist/leads/item/index.d.ts +2 -2
  28. package/dist/leads/item/tags/index.d.ts +5 -5
  29. package/dist/models/index.d.ts +687 -600
  30. package/dist/models/index.d.ts.map +1 -1
  31. package/dist/models/index.js +531 -464
  32. package/dist/models/index.js.map +1 -1
  33. package/dist/notifications/markAllRead/index.d.ts +3 -3
  34. package/dist/notifications/markAllRead/index.d.ts.map +1 -1
  35. package/dist/notifications/markAllRead/index.js +4 -2
  36. package/dist/notifications/markAllRead/index.js.map +1 -1
  37. package/dist/notifications/push/installations/current/index.d.ts +2 -2
  38. package/dist/notifications/push/installations/index.d.ts +1 -1
  39. package/dist/notifications/push/installations/item/index.d.ts +2 -2
  40. package/dist/notifications/unreadCount/index.d.ts +3 -3
  41. package/dist/notifications/unreadCount/index.d.ts.map +1 -1
  42. package/dist/notifications/unreadCount/index.js +4 -2
  43. package/dist/notifications/unreadCount/index.js.map +1 -1
  44. package/dist/organizations/invitations/accept/index.d.ts +2 -2
  45. package/dist/organizations/me/index.d.ts +4 -4
  46. package/dist/organizations/me/invitations/index.d.ts +2 -2
  47. package/dist/organizations/me/members/index.d.ts +2 -2
  48. package/dist/organizations/me/members/item/index.d.ts +2 -2
  49. package/dist/organizations/me/switchEscaped/index.d.ts +2 -2
  50. package/dist/paymentMethods/invoices/index.d.ts +1 -1
  51. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts +3 -0
  52. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts.map +1 -1
  53. package/dist/paymentMethods/invoices/item/pdfAccess/index.js.map +1 -1
  54. package/dist/phoneCall/initiate/index.d.ts +2 -2
  55. package/dist/phoneNumbers/index.d.ts +2 -2
  56. package/dist/phoneNumbers/isAvailableForPurchase/index.d.ts +2 -2
  57. package/dist/phoneNumbers/item/index.d.ts +2 -2
  58. package/dist/phoneNumbers/item/status/index.d.ts +1 -1
  59. package/dist/phoneNumbers/item/warmup/index.d.ts +1 -1
  60. package/dist/phoneNumbers/outgoing/conversation/item/index.d.ts +2 -2
  61. package/dist/phoneNumbers/outgoing/conversation/item/override/index.d.ts +2 -2
  62. package/dist/phoneNumbers/outgoing/manualOverride/index.d.ts +2 -2
  63. package/dist/phoneNumbers/outgoing/newEscaped/index.d.ts +2 -2
  64. package/dist/phoneNumbers/search/index.d.ts +2 -2
  65. package/dist/reports/exports/index.d.ts +1 -1
  66. package/dist/reports/exports/item/download/index.d.ts +3 -0
  67. package/dist/reports/exports/item/download/index.d.ts.map +1 -1
  68. package/dist/reports/exports/item/download/index.js.map +1 -1
  69. package/dist/sms/media/index.d.ts +4 -4
  70. package/dist/sms/media/index.d.ts.map +1 -1
  71. package/dist/sms/media/index.js +4 -2
  72. package/dist/sms/media/index.js.map +1 -1
  73. package/dist/sms/send/index.d.ts +2 -2
  74. package/dist/sources/index.d.ts +2 -2
  75. package/dist/sources/item/index.d.ts +2 -2
  76. package/dist/sources/item/metrics/index.d.ts +1 -1
  77. package/dist/suppressions/all/my/index.d.ts +2 -2
  78. package/dist/suppressions/check/index.d.ts +2 -2
  79. package/dist/suppressions/index.d.ts +3 -3
  80. package/dist/suppressions/item/index.d.ts +2 -2
  81. package/dist/suppressions/release/index.d.ts +2 -2
  82. package/dist/tags/index.d.ts +6 -3
  83. package/dist/tags/index.d.ts.map +1 -1
  84. package/dist/tags/index.js.map +1 -1
  85. package/dist/tags/item/index.d.ts +2 -2
  86. package/dist/transactions/all/my/index.d.ts +6 -0
  87. package/dist/transactions/all/my/index.d.ts.map +1 -1
  88. package/dist/transactions/all/my/index.js.map +1 -1
  89. package/dist/users/changeBillingPlan/index.d.ts +2 -2
  90. package/dist/users/compliance/index.d.ts +2 -2
  91. package/dist/users/me/index.d.ts +2 -2
  92. package/package.json +1 -1
@@ -1407,6 +1407,15 @@ export function createPhoneCallResponseFromDiscriminatorValue(parseNode) {
1407
1407
  export function createPhoneFromDiscriminatorValue(parseNode) {
1408
1408
  return deserializeIntoPhone;
1409
1409
  }
1410
+ /**
1411
+ * Creates a new instance of the appropriate class based on discriminator value
1412
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1413
+ * @returns {PhoneIdentityLookupAction}
1414
+ */
1415
+ // @ts-ignore
1416
+ export function createPhoneIdentityLookupActionFromDiscriminatorValue(parseNode) {
1417
+ return deserializeIntoPhoneIdentityLookupAction;
1418
+ }
1410
1419
  /**
1411
1420
  * Creates a new instance of the appropriate class based on discriminator value
1412
1421
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2385,7 +2394,7 @@ export function deserializeIntoActivationDomainOption(activationDomainOption = {
2385
2394
  return {
2386
2395
  "availabilityStatus": n => { activationDomainOption.availabilityStatus = n.getStringValue(); },
2387
2396
  "domainName": n => { activationDomainOption.domainName = n.getStringValue(); },
2388
- "estimatedAnnualCost": n => { activationDomainOption.estimatedAnnualCost = n.getNumberValue(); },
2397
+ "estimatedAnnualCost": n => { activationDomainOption.estimatedAnnualCost = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2389
2398
  "industryRelevance": n => { activationDomainOption.industryRelevance = n.getStringValue(); },
2390
2399
  "recommended": n => { activationDomainOption.recommended = n.getBooleanValue(); },
2391
2400
  "trustConcerns": n => { activationDomainOption.trustConcerns = n.getStringValue(); },
@@ -2429,10 +2438,10 @@ export function deserializeIntoActivationTimelineEvent_actor(activationTimelineE
2429
2438
  // @ts-ignore
2430
2439
  export function deserializeIntoAnalyticsComparison(analyticsComparison = {}) {
2431
2440
  return {
2432
- "changePercent": n => { analyticsComparison.changePercent = n.getNumberValue(); },
2433
- "current": n => { analyticsComparison.current = n.getNumberValue(); },
2441
+ "changePercent": n => { analyticsComparison.changePercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2442
+ "current": n => { analyticsComparison.current = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2434
2443
  "direction": n => { analyticsComparison.direction = n.getStringValue(); },
2435
- "previous": n => { analyticsComparison.previous = n.getNumberValue(); },
2444
+ "previous": n => { analyticsComparison.previous = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2436
2445
  };
2437
2446
  }
2438
2447
  /**
@@ -2459,7 +2468,7 @@ export function deserializeIntoAnalyticsTrendPointOfdecimal(analyticsTrendPointO
2459
2468
  "endAt": n => { analyticsTrendPointOfdecimal.endAt = n.getDateValue(); },
2460
2469
  "label": n => { analyticsTrendPointOfdecimal.label = n.getStringValue(); },
2461
2470
  "startAt": n => { analyticsTrendPointOfdecimal.startAt = n.getDateValue(); },
2462
- "value": n => { analyticsTrendPointOfdecimal.value = n.getNumberValue(); },
2471
+ "value": n => { analyticsTrendPointOfdecimal.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2463
2472
  };
2464
2473
  }
2465
2474
  /**
@@ -2473,7 +2482,7 @@ export function deserializeIntoAnalyticsTrendPointOfint(analyticsTrendPointOfint
2473
2482
  "endAt": n => { analyticsTrendPointOfint.endAt = n.getDateValue(); },
2474
2483
  "label": n => { analyticsTrendPointOfint.label = n.getStringValue(); },
2475
2484
  "startAt": n => { analyticsTrendPointOfint.startAt = n.getDateValue(); },
2476
- "value": n => { analyticsTrendPointOfint.value = n.getNumberValue(); },
2485
+ "value": n => { analyticsTrendPointOfint.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2477
2486
  };
2478
2487
  }
2479
2488
  /**
@@ -2486,7 +2495,7 @@ export function deserializeIntoAutomationAction(automationAction = {}) {
2486
2495
  return {
2487
2496
  "id": n => { automationAction.id = n.getStringValue(); },
2488
2497
  "isEnabled": n => { automationAction.isEnabled = n.getBooleanValue(); },
2489
- "order": n => { automationAction.order = n.getNumberValue(); },
2498
+ "order": n => { automationAction.order = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2490
2499
  "settings": n => { automationAction.settings = n.getObjectValue(createAutomationAction_settingsFromDiscriminatorValue); },
2491
2500
  "type": n => { automationAction.type = n.getStringValue(); },
2492
2501
  };
@@ -2516,8 +2525,8 @@ export function deserializeIntoAutomationActionRunRecord(automationActionRunReco
2516
2525
  "failureCode": n => { automationActionRunRecord.failureCode = n.getStringValue(); },
2517
2526
  "id": n => { automationActionRunRecord.id = n.getStringValue(); },
2518
2527
  "nextRetryAt": n => { automationActionRunRecord.nextRetryAt = n.getDateValue(); },
2519
- "order": n => { automationActionRunRecord.order = n.getNumberValue(); },
2520
- "processingAttempts": n => { automationActionRunRecord.processingAttempts = n.getNumberValue(); },
2528
+ "order": n => { automationActionRunRecord.order = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2529
+ "processingAttempts": n => { automationActionRunRecord.processingAttempts = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2521
2530
  "scheduledAt": n => { automationActionRunRecord.scheduledAt = n.getDateValue(); },
2522
2531
  "startedAt": n => { automationActionRunRecord.startedAt = n.getDateValue(); },
2523
2532
  "status": n => { automationActionRunRecord.status = n.getStringValue(); },
@@ -2655,7 +2664,7 @@ export function deserializeIntoAutomationRequest(automationRequest = {}) {
2655
2664
  "name": n => { automationRequest.name = n.getStringValue(); },
2656
2665
  "scope": n => { automationRequest.scope = n.getStringValue(); },
2657
2666
  "triggers": n => { automationRequest.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
2658
- "version": n => { automationRequest.version = n.getNumberValue(); },
2667
+ "version": n => { automationRequest.version = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2659
2668
  "visibility": n => { automationRequest.visibility = n.getStringValue(); },
2660
2669
  };
2661
2670
  }
@@ -2711,7 +2720,7 @@ export function deserializeIntoAutomationResponse(automationResponse = {}) {
2711
2720
  "scope": n => { automationResponse.scope = n.getStringValue(); },
2712
2721
  "triggers": n => { automationResponse.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
2713
2722
  "user": n => { automationResponse.user = n.getObjectValue(createAutomationResponse_userFromDiscriminatorValue); },
2714
- "version": n => { automationResponse.version = n.getNumberValue(); },
2723
+ "version": n => { automationResponse.version = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2715
2724
  "visibility": n => { automationResponse.visibility = n.getStringValue(); },
2716
2725
  };
2717
2726
  }
@@ -2754,7 +2763,7 @@ export function deserializeIntoAutomationRunRecord(automationRunRecord = {}) {
2754
2763
  "lastAttemptAt": n => { automationRunRecord.lastAttemptAt = n.getDateValue(); },
2755
2764
  "leadId": n => { automationRunRecord.leadId = n.getStringValue(); },
2756
2765
  "organizationId": n => { automationRunRecord.organizationId = n.getStringValue(); },
2757
- "processingAttempts": n => { automationRunRecord.processingAttempts = n.getNumberValue(); },
2766
+ "processingAttempts": n => { automationRunRecord.processingAttempts = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2758
2767
  "skippedReason": n => { automationRunRecord.skippedReason = n.getStringValue(); },
2759
2768
  "startedAt": n => { automationRunRecord.startedAt = n.getDateValue(); },
2760
2769
  "status": n => { automationRunRecord.status = n.getStringValue(); },
@@ -2865,7 +2874,7 @@ export function deserializeIntoAutomationWorkflowActionResponse(automationWorkfl
2865
2874
  "failureCode": n => { automationWorkflowActionResponse.failureCode = n.getStringValue(); },
2866
2875
  "id": n => { automationWorkflowActionResponse.id = n.getStringValue(); },
2867
2876
  "nextRetryAt": n => { automationWorkflowActionResponse.nextRetryAt = n.getDateValue(); },
2868
- "retryCount": n => { automationWorkflowActionResponse.retryCount = n.getNumberValue(); },
2877
+ "retryCount": n => { automationWorkflowActionResponse.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2869
2878
  "safeReason": n => { automationWorkflowActionResponse.safeReason = n.getStringValue(); },
2870
2879
  "scheduledAt": n => { automationWorkflowActionResponse.scheduledAt = n.getDateValue(); },
2871
2880
  "skippedAt": n => { automationWorkflowActionResponse.skippedAt = n.getDateValue(); },
@@ -2874,7 +2883,7 @@ export function deserializeIntoAutomationWorkflowActionResponse(automationWorkfl
2874
2883
  "statusDisplay": n => { automationWorkflowActionResponse.statusDisplay = n.getStringValue(); },
2875
2884
  "stepDisplayName": n => { automationWorkflowActionResponse.stepDisplayName = n.getStringValue(); },
2876
2885
  "stepId": n => { automationWorkflowActionResponse.stepId = n.getStringValue(); },
2877
- "stepOrder": n => { automationWorkflowActionResponse.stepOrder = n.getNumberValue(); },
2886
+ "stepOrder": n => { automationWorkflowActionResponse.stepOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2878
2887
  "userSummary": n => { automationWorkflowActionResponse.userSummary = n.getStringValue(); },
2879
2888
  };
2880
2889
  }
@@ -2910,7 +2919,7 @@ export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowR
2910
2919
  "cancelledAt": n => { automationWorkflowRunResponse.cancelledAt = n.getDateValue(); },
2911
2920
  "completedAt": n => { automationWorkflowRunResponse.completedAt = n.getDateValue(); },
2912
2921
  "currentStep": n => { automationWorkflowRunResponse.currentStep = n.getObjectValue(createAutomationWorkflowRunResponse_currentStepFromDiscriminatorValue); },
2913
- "currentStepOrder": n => { automationWorkflowRunResponse.currentStepOrder = n.getNumberValue(); },
2922
+ "currentStepOrder": n => { automationWorkflowRunResponse.currentStepOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2914
2923
  "events": n => { automationWorkflowRunResponse.events = n.getCollectionOfObjectValues(createAutomationWorkflowEventResponseFromDiscriminatorValue); },
2915
2924
  "failedAt": n => { automationWorkflowRunResponse.failedAt = n.getDateValue(); },
2916
2925
  "id": n => { automationWorkflowRunResponse.id = n.getStringValue(); },
@@ -2919,11 +2928,11 @@ export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowR
2919
2928
  "lastErrorMessage": n => { automationWorkflowRunResponse.lastErrorMessage = n.getStringValue(); },
2920
2929
  "lastExecutionAt": n => { automationWorkflowRunResponse.lastExecutionAt = n.getDateValue(); },
2921
2930
  "leadId": n => { automationWorkflowRunResponse.leadId = n.getStringValue(); },
2922
- "maxRetryCount": n => { automationWorkflowRunResponse.maxRetryCount = n.getNumberValue(); },
2931
+ "maxRetryCount": n => { automationWorkflowRunResponse.maxRetryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2923
2932
  "nextExecutionAt": n => { automationWorkflowRunResponse.nextExecutionAt = n.getDateValue(); },
2924
2933
  "nextRetryAt": n => { automationWorkflowRunResponse.nextRetryAt = n.getDateValue(); },
2925
2934
  "organizationId": n => { automationWorkflowRunResponse.organizationId = n.getStringValue(); },
2926
- "retryCount": n => { automationWorkflowRunResponse.retryCount = n.getNumberValue(); },
2935
+ "retryCount": n => { automationWorkflowRunResponse.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2927
2936
  "skipReasonCode": n => { automationWorkflowRunResponse.skipReasonCode = n.getStringValue(); },
2928
2937
  "skipReasonDisplay": n => { automationWorkflowRunResponse.skipReasonDisplay = n.getStringValue(); },
2929
2938
  "startedAt": n => { automationWorkflowRunResponse.startedAt = n.getDateValue(); },
@@ -2977,14 +2986,14 @@ export function deserializeIntoAutomationWorkflowStatusResponse(automationWorkfl
2977
2986
  export function deserializeIntoCallEventTableRow(callEventTableRow = {}) {
2978
2987
  return {
2979
2988
  "answeredAt": n => { callEventTableRow.answeredAt = n.getDateValue(); },
2980
- "billableAmount": n => { callEventTableRow.billableAmount = n.getNumberValue(); },
2981
- "billableSeconds": n => { callEventTableRow.billableSeconds = n.getNumberValue(); },
2989
+ "billableAmount": n => { callEventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2990
+ "billableSeconds": n => { callEventTableRow.billableSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2982
2991
  "billingStatus": n => { callEventTableRow.billingStatus = n.getStringValue(); },
2983
2992
  "callerId": n => { callEventTableRow.callerId = n.getStringValue(); },
2984
2993
  "conversationId": n => { callEventTableRow.conversationId = n.getStringValue(); },
2985
2994
  "createdAt": n => { callEventTableRow.createdAt = n.getDateValue(); },
2986
2995
  "direction": n => { callEventTableRow.direction = n.getStringValue(); },
2987
- "duration": n => { callEventTableRow.duration = n.getNumberValue(); },
2996
+ "duration": n => { callEventTableRow.duration = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2988
2997
  "endedAt": n => { callEventTableRow.endedAt = n.getDateValue(); },
2989
2998
  "fromPhoneNumber": n => { callEventTableRow.fromPhoneNumber = n.getStringValue(); },
2990
2999
  "fromPhoneNumberId": n => { callEventTableRow.fromPhoneNumberId = n.getStringValue(); },
@@ -3123,8 +3132,8 @@ export function deserializeIntoConversationResponse_phoneNumber(conversationResp
3123
3132
  // @ts-ignore
3124
3133
  export function deserializeIntoCoordinate(coordinate = {}) {
3125
3134
  return {
3126
- "latitude": n => { coordinate.latitude = n.getNumberValue(); },
3127
- "longitude": n => { coordinate.longitude = n.getNumberValue(); },
3135
+ "latitude": n => { coordinate.latitude = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3136
+ "longitude": n => { coordinate.longitude = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3128
3137
  };
3129
3138
  }
3130
3139
  /**
@@ -3211,22 +3220,22 @@ export function deserializeIntoCustomerAnalyticsResponse(customerAnalyticsRespon
3211
3220
  // @ts-ignore
3212
3221
  export function deserializeIntoCustomerAnalyticsSummary(customerAnalyticsSummary = {}) {
3213
3222
  return {
3214
- "averageResponseMinutes": n => { customerAnalyticsSummary.averageResponseMinutes = n.getNumberValue(); },
3223
+ "averageResponseMinutes": n => { customerAnalyticsSummary.averageResponseMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3215
3224
  "billingStatus": n => { customerAnalyticsSummary.billingStatus = n.getStringValue(); },
3216
- "callMinutes": n => { customerAnalyticsSummary.callMinutes = n.getNumberValue(); },
3217
- "callsPlaced": n => { customerAnalyticsSummary.callsPlaced = n.getNumberValue(); },
3218
- "callsReceived": n => { customerAnalyticsSummary.callsReceived = n.getNumberValue(); },
3219
- "leads": n => { customerAnalyticsSummary.leads = n.getNumberValue(); },
3225
+ "callMinutes": n => { customerAnalyticsSummary.callMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3226
+ "callsPlaced": n => { customerAnalyticsSummary.callsPlaced = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3227
+ "callsReceived": n => { customerAnalyticsSummary.callsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3228
+ "leads": n => { customerAnalyticsSummary.leads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3220
3229
  "leadsComparison": n => { customerAnalyticsSummary.leadsComparison = n.getObjectValue(createAnalyticsComparisonFromDiscriminatorValue); },
3221
- "medianResponseMinutes": n => { customerAnalyticsSummary.medianResponseMinutes = n.getNumberValue(); },
3222
- "missedCalls": n => { customerAnalyticsSummary.missedCalls = n.getNumberValue(); },
3223
- "missedLeads": n => { customerAnalyticsSummary.missedLeads = n.getNumberValue(); },
3224
- "respondedWithinFiveMinutesPercent": n => { customerAnalyticsSummary.respondedWithinFiveMinutesPercent = n.getNumberValue(); },
3225
- "smsReceived": n => { customerAnalyticsSummary.smsReceived = n.getNumberValue(); },
3226
- "smsSent": n => { customerAnalyticsSummary.smsSent = n.getNumberValue(); },
3227
- "unreadMessages": n => { customerAnalyticsSummary.unreadMessages = n.getNumberValue(); },
3228
- "usageSpend": n => { customerAnalyticsSummary.usageSpend = n.getNumberValue(); },
3229
- "walletBalance": n => { customerAnalyticsSummary.walletBalance = n.getNumberValue(); },
3230
+ "medianResponseMinutes": n => { customerAnalyticsSummary.medianResponseMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3231
+ "missedCalls": n => { customerAnalyticsSummary.missedCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3232
+ "missedLeads": n => { customerAnalyticsSummary.missedLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3233
+ "respondedWithinFiveMinutesPercent": n => { customerAnalyticsSummary.respondedWithinFiveMinutesPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3234
+ "smsReceived": n => { customerAnalyticsSummary.smsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3235
+ "smsSent": n => { customerAnalyticsSummary.smsSent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3236
+ "unreadMessages": n => { customerAnalyticsSummary.unreadMessages = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3237
+ "usageSpend": n => { customerAnalyticsSummary.usageSpend = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3238
+ "walletBalance": n => { customerAnalyticsSummary.walletBalance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3230
3239
  "walletStatus": n => { customerAnalyticsSummary.walletStatus = n.getStringValue(); },
3231
3240
  };
3232
3241
  }
@@ -3238,13 +3247,13 @@ export function deserializeIntoCustomerAnalyticsSummary(customerAnalyticsSummary
3238
3247
  // @ts-ignore
3239
3248
  export function deserializeIntoCustomerAutomationHealth(customerAutomationHealth = {}) {
3240
3249
  return {
3241
- "automationCount": n => { customerAutomationHealth.automationCount = n.getNumberValue(); },
3242
- "enabledCount": n => { customerAutomationHealth.enabledCount = n.getNumberValue(); },
3243
- "executions": n => { customerAutomationHealth.executions = n.getNumberValue(); },
3250
+ "automationCount": n => { customerAutomationHealth.automationCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3251
+ "enabledCount": n => { customerAutomationHealth.enabledCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3252
+ "executions": n => { customerAutomationHealth.executions = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3244
3253
  "failingAutomations": n => { customerAutomationHealth.failingAutomations = n.getCollectionOfObjectValues(createCustomerFailingAutomationFromDiscriminatorValue); },
3245
- "failureCount": n => { customerAutomationHealth.failureCount = n.getNumberValue(); },
3254
+ "failureCount": n => { customerAutomationHealth.failureCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3246
3255
  "lastFailure": n => { customerAutomationHealth.lastFailure = n.getObjectValue(createCustomerAutomationHealth_lastFailureFromDiscriminatorValue); },
3247
- "successCount": n => { customerAutomationHealth.successCount = n.getNumberValue(); },
3256
+ "successCount": n => { customerAutomationHealth.successCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3248
3257
  };
3249
3258
  }
3250
3259
  /**
@@ -3266,16 +3275,16 @@ export function deserializeIntoCustomerAutomationHealth_lastFailure(customerAuto
3266
3275
  // @ts-ignore
3267
3276
  export function deserializeIntoCustomerCommunicationUsage(customerCommunicationUsage = {}) {
3268
3277
  return {
3269
- "answeredCalls": n => { customerCommunicationUsage.answeredCalls = n.getNumberValue(); },
3270
- "callMinutes": n => { customerCommunicationUsage.callMinutes = n.getNumberValue(); },
3271
- "callsPlaced": n => { customerCommunicationUsage.callsPlaced = n.getNumberValue(); },
3272
- "callsReceived": n => { customerCommunicationUsage.callsReceived = n.getNumberValue(); },
3273
- "failedOrBlockedSms": n => { customerCommunicationUsage.failedOrBlockedSms = n.getNumberValue(); },
3274
- "missedCalls": n => { customerCommunicationUsage.missedCalls = n.getNumberValue(); },
3275
- "smsReceived": n => { customerCommunicationUsage.smsReceived = n.getNumberValue(); },
3276
- "smsSent": n => { customerCommunicationUsage.smsSent = n.getNumberValue(); },
3278
+ "answeredCalls": n => { customerCommunicationUsage.answeredCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3279
+ "callMinutes": n => { customerCommunicationUsage.callMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3280
+ "callsPlaced": n => { customerCommunicationUsage.callsPlaced = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3281
+ "callsReceived": n => { customerCommunicationUsage.callsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3282
+ "failedOrBlockedSms": n => { customerCommunicationUsage.failedOrBlockedSms = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3283
+ "missedCalls": n => { customerCommunicationUsage.missedCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3284
+ "smsReceived": n => { customerCommunicationUsage.smsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3285
+ "smsSent": n => { customerCommunicationUsage.smsSent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3277
3286
  "trend": n => { customerCommunicationUsage.trend = n.getCollectionOfObjectValues(createCustomerCommunicationUsagePointFromDiscriminatorValue); },
3278
- "usageSpend": n => { customerCommunicationUsage.usageSpend = n.getNumberValue(); },
3287
+ "usageSpend": n => { customerCommunicationUsage.usageSpend = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3279
3288
  };
3280
3289
  }
3281
3290
  /**
@@ -3286,13 +3295,13 @@ export function deserializeIntoCustomerCommunicationUsage(customerCommunicationU
3286
3295
  // @ts-ignore
3287
3296
  export function deserializeIntoCustomerCommunicationUsagePoint(customerCommunicationUsagePoint = {}) {
3288
3297
  return {
3289
- "callMinutes": n => { customerCommunicationUsagePoint.callMinutes = n.getNumberValue(); },
3290
- "calls": n => { customerCommunicationUsagePoint.calls = n.getNumberValue(); },
3298
+ "callMinutes": n => { customerCommunicationUsagePoint.callMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3299
+ "calls": n => { customerCommunicationUsagePoint.calls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3291
3300
  "endAt": n => { customerCommunicationUsagePoint.endAt = n.getDateValue(); },
3292
3301
  "label": n => { customerCommunicationUsagePoint.label = n.getStringValue(); },
3293
- "smsReceived": n => { customerCommunicationUsagePoint.smsReceived = n.getNumberValue(); },
3294
- "smsSent": n => { customerCommunicationUsagePoint.smsSent = n.getNumberValue(); },
3295
- "spend": n => { customerCommunicationUsagePoint.spend = n.getNumberValue(); },
3302
+ "smsReceived": n => { customerCommunicationUsagePoint.smsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3303
+ "smsSent": n => { customerCommunicationUsagePoint.smsSent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3304
+ "spend": n => { customerCommunicationUsagePoint.spend = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3296
3305
  "startAt": n => { customerCommunicationUsagePoint.startAt = n.getDateValue(); },
3297
3306
  };
3298
3307
  }
@@ -3318,8 +3327,8 @@ export function deserializeIntoCustomerFailingAutomation(customerFailingAutomati
3318
3327
  // @ts-ignore
3319
3328
  export function deserializeIntoCustomerLeadSourceBreakdown(customerLeadSourceBreakdown = {}) {
3320
3329
  return {
3321
- "leads": n => { customerLeadSourceBreakdown.leads = n.getNumberValue(); },
3322
- "percent": n => { customerLeadSourceBreakdown.percent = n.getNumberValue(); },
3330
+ "leads": n => { customerLeadSourceBreakdown.leads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3331
+ "percent": n => { customerLeadSourceBreakdown.percent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3323
3332
  "source": n => { customerLeadSourceBreakdown.source = n.getStringValue(); },
3324
3333
  };
3325
3334
  }
@@ -3333,7 +3342,7 @@ export function deserializeIntoCustomerLeadTrend(customerLeadTrend = {}) {
3333
3342
  return {
3334
3343
  "comparison": n => { customerLeadTrend.comparison = n.getObjectValue(createAnalyticsComparisonFromDiscriminatorValue); },
3335
3344
  "points": n => { customerLeadTrend.points = n.getCollectionOfObjectValues(createAnalyticsTrendPointOfintFromDiscriminatorValue); },
3336
- "total": n => { customerLeadTrend.total = n.getNumberValue(); },
3345
+ "total": n => { customerLeadTrend.total = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3337
3346
  };
3338
3347
  }
3339
3348
  /**
@@ -3359,14 +3368,14 @@ export function deserializeIntoCustomerNeedsAttentionItem(customerNeedsAttention
3359
3368
  // @ts-ignore
3360
3369
  export function deserializeIntoCustomerResponseMetrics(customerResponseMetrics = {}) {
3361
3370
  return {
3362
- "averageMinutes": n => { customerResponseMetrics.averageMinutes = n.getNumberValue(); },
3371
+ "averageMinutes": n => { customerResponseMetrics.averageMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3363
3372
  "averageMinutesTrend": n => { customerResponseMetrics.averageMinutesTrend = n.getCollectionOfObjectValues(createAnalyticsTrendPointOfdecimalFromDiscriminatorValue); },
3364
- "medianMinutes": n => { customerResponseMetrics.medianMinutes = n.getNumberValue(); },
3365
- "missedCalls": n => { customerResponseMetrics.missedCalls = n.getNumberValue(); },
3366
- "respondedLeads": n => { customerResponseMetrics.respondedLeads = n.getNumberValue(); },
3367
- "respondedWithinFiveMinutesPercent": n => { customerResponseMetrics.respondedWithinFiveMinutesPercent = n.getNumberValue(); },
3368
- "unreadMessages": n => { customerResponseMetrics.unreadMessages = n.getNumberValue(); },
3369
- "unrespondedLeads": n => { customerResponseMetrics.unrespondedLeads = n.getNumberValue(); },
3373
+ "medianMinutes": n => { customerResponseMetrics.medianMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3374
+ "missedCalls": n => { customerResponseMetrics.missedCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3375
+ "respondedLeads": n => { customerResponseMetrics.respondedLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3376
+ "respondedWithinFiveMinutesPercent": n => { customerResponseMetrics.respondedWithinFiveMinutesPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3377
+ "unreadMessages": n => { customerResponseMetrics.unreadMessages = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3378
+ "unrespondedLeads": n => { customerResponseMetrics.unrespondedLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3370
3379
  };
3371
3380
  }
3372
3381
  /**
@@ -3456,7 +3465,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
3456
3465
  "actorDisplayName": n => { eventTableRow.actorDisplayName = n.getStringValue(); },
3457
3466
  "actorEmail": n => { eventTableRow.actorEmail = n.getStringValue(); },
3458
3467
  "actorUserId": n => { eventTableRow.actorUserId = n.getStringValue(); },
3459
- "billableAmount": n => { eventTableRow.billableAmount = n.getNumberValue(); },
3468
+ "billableAmount": n => { eventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3460
3469
  "billingStatus": n => { eventTableRow.billingStatus = n.getStringValue(); },
3461
3470
  "blockedAt": n => { eventTableRow.blockedAt = n.getDateValue(); },
3462
3471
  "campaignId": n => { eventTableRow.campaignId = n.getStringValue(); },
@@ -3484,7 +3493,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
3484
3493
  "receivedAt": n => { eventTableRow.receivedAt = n.getDateValue(); },
3485
3494
  "relatedEntityId": n => { eventTableRow.relatedEntityId = n.getStringValue(); },
3486
3495
  "relatedEntityType": n => { eventTableRow.relatedEntityType = n.getStringValue(); },
3487
- "retryCount": n => { eventTableRow.retryCount = n.getNumberValue(); },
3496
+ "retryCount": n => { eventTableRow.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3488
3497
  "scheduledFor": n => { eventTableRow.scheduledFor = n.getDateValue(); },
3489
3498
  "scheduledReason": n => { eventTableRow.scheduledReason = n.getStringValue(); },
3490
3499
  "selectionReason": n => { eventTableRow.selectionReason = n.getEnumValue(EventTableRow_selectionReasonObject); },
@@ -3681,7 +3690,7 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
3681
3690
  "birthDate": n => { leadIntakeRequest.birthDate = n.getDateOnlyValue(); },
3682
3691
  "city": n => { leadIntakeRequest.city = n.getStringValue(); },
3683
3692
  "dateOfBirth": n => { leadIntakeRequest.dateOfBirth = n.getDateOnlyValue(); },
3684
- "directPostPrice": n => { leadIntakeRequest.directPostPrice = n.getNumberValue(); },
3693
+ "directPostPrice": n => { leadIntakeRequest.directPostPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3685
3694
  "email": n => { leadIntakeRequest.email = n.getStringValue(); },
3686
3695
  "externalId": n => { leadIntakeRequest.externalId = n.getStringValue(); },
3687
3696
  "firstName": n => { leadIntakeRequest.firstName = n.getStringValue(); },
@@ -3691,7 +3700,7 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
3691
3700
  "phone": n => { leadIntakeRequest.phone = n.getStringValue(); },
3692
3701
  "phoneType": n => { leadIntakeRequest.phoneType = n.getStringValue(); },
3693
3702
  "postalCode": n => { leadIntakeRequest.postalCode = n.getStringValue(); },
3694
- "price": n => { leadIntakeRequest.price = n.getNumberValue(); },
3703
+ "price": n => { leadIntakeRequest.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3695
3704
  "product": n => { leadIntakeRequest.product = n.getStringValue(); },
3696
3705
  "referrer": n => { leadIntakeRequest.referrer = n.getStringValue(); },
3697
3706
  "sellerLeadId": n => { leadIntakeRequest.sellerLeadId = n.getStringValue(); },
@@ -3732,7 +3741,7 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
3732
3741
  "complianceBlockedReason": n => { leadMetadata.complianceBlockedReason = n.getStringValue(); },
3733
3742
  "complianceStatus": n => { leadMetadata.complianceStatus = n.getStringValue(); },
3734
3743
  "createdAt": n => { leadMetadata.createdAt = n.getDateValue(); },
3735
- "directPostPrice": n => { leadMetadata.directPostPrice = n.getNumberValue(); },
3744
+ "directPostPrice": n => { leadMetadata.directPostPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3736
3745
  "externalId": n => { leadMetadata.externalId = n.getStringValue(); },
3737
3746
  "importBatchId": n => { leadMetadata.importBatchId = n.getStringValue(); },
3738
3747
  "ipAddress": n => { leadMetadata.ipAddress = n.getStringValue(); },
@@ -3740,7 +3749,7 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
3740
3749
  "landingPage": n => { leadMetadata.landingPage = n.getStringValue(); },
3741
3750
  "organizationId": n => { leadMetadata.organizationId = n.getStringValue(); },
3742
3751
  "origin": n => { leadMetadata.origin = n.getStringValue(); },
3743
- "price": n => { leadMetadata.price = n.getNumberValue(); },
3752
+ "price": n => { leadMetadata.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3744
3753
  "product": n => { leadMetadata.product = n.getStringValue(); },
3745
3754
  "pubId": n => { leadMetadata.pubId = n.getStringValue(); },
3746
3755
  "referrer": n => { leadMetadata.referrer = n.getStringValue(); },
@@ -3783,18 +3792,18 @@ export function deserializeIntoLeadMetadata_sourceMetadata(leadMetadata_sourceMe
3783
3792
  export function deserializeIntoLeadProfile(leadProfile = {}) {
3784
3793
  return {
3785
3794
  "birthDate": n => { leadProfile.birthDate = n.getDateOnlyValue(); },
3786
- "creditScore": n => { leadProfile.creditScore = n.getNumberValue(); },
3795
+ "creditScore": n => { leadProfile.creditScore = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3787
3796
  "employmentType": n => { leadProfile.employmentType = n.getEnumValue(LeadProfile_employmentTypeObject); },
3788
3797
  "gender": n => { leadProfile.gender = n.getEnumValue(LeadProfile_genderObject); },
3789
3798
  "hasBankruptcy": n => { leadProfile.hasBankruptcy = n.getBooleanValue(); },
3790
3799
  "hasMedicalCondition": n => { leadProfile.hasMedicalCondition = n.getBooleanValue(); },
3791
- "height": n => { leadProfile.height = n.getNumberValue(); },
3792
- "income": n => { leadProfile.income = n.getNumberValue(); },
3800
+ "height": n => { leadProfile.height = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3801
+ "income": n => { leadProfile.income = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3793
3802
  "isHomeowner": n => { leadProfile.isHomeowner = n.getBooleanValue(); },
3794
3803
  "maritalStatus": n => { leadProfile.maritalStatus = n.getEnumValue(LeadProfile_maritalStatusObject); },
3795
- "monthsAtResidence": n => { leadProfile.monthsAtResidence = n.getNumberValue(); },
3796
- "numberOfDependents": n => { leadProfile.numberOfDependents = n.getNumberValue(); },
3797
- "weight": n => { leadProfile.weight = n.getNumberValue(); },
3804
+ "monthsAtResidence": n => { leadProfile.monthsAtResidence = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3805
+ "numberOfDependents": n => { leadProfile.numberOfDependents = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3806
+ "weight": n => { leadProfile.weight = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3798
3807
  };
3799
3808
  }
3800
3809
  /**
@@ -3989,7 +3998,7 @@ export function deserializeIntoLeadStatusRequest(leadStatusRequest = {}) {
3989
3998
  "category": n => { leadStatusRequest.category = n.getEnumValue(LeadStatusRequest_categoryObject); },
3990
3999
  "color": n => { leadStatusRequest.color = n.getStringValue(); },
3991
4000
  "name": n => { leadStatusRequest.name = n.getStringValue(); },
3992
- "sortOrder": n => { leadStatusRequest.sortOrder = n.getNumberValue(); },
4001
+ "sortOrder": n => { leadStatusRequest.sortOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3993
4002
  };
3994
4003
  }
3995
4004
  /**
@@ -4007,7 +4016,7 @@ export function deserializeIntoLeadStatusResponse(leadStatusResponse = {}) {
4007
4016
  "modifiedAt": n => { leadStatusResponse.modifiedAt = n.getDateValue(); },
4008
4017
  "name": n => { leadStatusResponse.name = n.getStringValue(); },
4009
4018
  "organizationId": n => { leadStatusResponse.organizationId = n.getStringValue(); },
4010
- "sortOrder": n => { leadStatusResponse.sortOrder = n.getNumberValue(); },
4019
+ "sortOrder": n => { leadStatusResponse.sortOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4011
4020
  };
4012
4021
  }
4013
4022
  /**
@@ -4031,7 +4040,7 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
4031
4040
  "lastName": n => { leadTableRow.lastName = n.getStringValue(); },
4032
4041
  "organization": n => { leadTableRow.organization = n.getObjectValue(createLeadTableRow_organizationFromDiscriminatorValue); },
4033
4042
  "phone": n => { leadTableRow.phone = n.getStringValue(); },
4034
- "price": n => { leadTableRow.price = n.getNumberValue(); },
4043
+ "price": n => { leadTableRow.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4035
4044
  "source": n => { leadTableRow.source = n.getObjectValue(createLeadTableRow_sourceFromDiscriminatorValue); },
4036
4045
  "status": n => { leadTableRow.status = n.getStringValue(); },
4037
4046
  "statusTone": n => { leadTableRow.statusTone = n.getStringValue(); },
@@ -4096,7 +4105,7 @@ export function deserializeIntoMessageMediaAttachment(messageMediaAttachment = {
4096
4105
  "contentType": n => { messageMediaAttachment.contentType = n.getStringValue(); },
4097
4106
  "fileName": n => { messageMediaAttachment.fileName = n.getStringValue(); },
4098
4107
  "sha256": n => { messageMediaAttachment.sha256 = n.getStringValue(); },
4099
- "size": n => { messageMediaAttachment.size = n.getNumberValue(); },
4108
+ "size": n => { messageMediaAttachment.size = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4100
4109
  "url": n => { messageMediaAttachment.url = n.getStringValue(); },
4101
4110
  };
4102
4111
  }
@@ -4184,7 +4193,7 @@ export function deserializeIntoOrderByOption(orderByOption = {}) {
4184
4193
  export function deserializeIntoOrganizationActivationState(organizationActivationState = {}) {
4185
4194
  return {
4186
4195
  "activatedAt": n => { organizationActivationState.activatedAt = n.getDateValue(); },
4187
- "availableDomainCount": n => { organizationActivationState.availableDomainCount = n.getNumberValue(); },
4196
+ "availableDomainCount": n => { organizationActivationState.availableDomainCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4188
4197
  "billingSubscriptionStatus": n => { organizationActivationState.billingSubscriptionStatus = n.getEnumValue(ActivationSubscriptionStatusObject); },
4189
4198
  "complianceNotes": n => { organizationActivationState.complianceNotes = n.getStringValue(); },
4190
4199
  "controlledLaunch": n => { organizationActivationState.controlledLaunch = n.getBooleanValue(); },
@@ -4193,7 +4202,7 @@ export function deserializeIntoOrganizationActivationState(organizationActivatio
4193
4202
  "domainApprovedAt": n => { organizationActivationState.domainApprovedAt = n.getDateValue(); },
4194
4203
  "domainOptions": n => { organizationActivationState.domainOptions = n.getCollectionOfObjectValues(createActivationDomainOptionFromDiscriminatorValue); },
4195
4204
  "domainPurchasedAt": n => { organizationActivationState.domainPurchasedAt = n.getDateValue(); },
4196
- "domainSearchAttempt": n => { organizationActivationState.domainSearchAttempt = n.getNumberValue(); },
4205
+ "domainSearchAttempt": n => { organizationActivationState.domainSearchAttempt = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4197
4206
  "domainSearchId": n => { organizationActivationState.domainSearchId = n.getStringValue(); },
4198
4207
  "domainSearchStage": n => { organizationActivationState.domainSearchStage = n.getEnumValue(OrganizationActivationState_domainSearchStageObject); },
4199
4208
  "domainSearchUpdatedAt": n => { organizationActivationState.domainSearchUpdatedAt = n.getDateValue(); },
@@ -4254,10 +4263,10 @@ export function deserializeIntoOrganizationBillingState(organizationBillingState
4254
4263
  "hasStripeCustomer": n => { organizationBillingState.hasStripeCustomer = n.getBooleanValue(); },
4255
4264
  "lastPaymentMethodEventAt": n => { organizationBillingState.lastPaymentMethodEventAt = n.getDateValue(); },
4256
4265
  "lastSubscriptionEventAt": n => { organizationBillingState.lastSubscriptionEventAt = n.getDateValue(); },
4257
- "organizationMemberAssignedQuantity": n => { organizationBillingState.organizationMemberAssignedQuantity = n.getNumberValue(); },
4258
- "organizationMemberQuantity": n => { organizationBillingState.organizationMemberQuantity = n.getNumberValue(); },
4266
+ "organizationMemberAssignedQuantity": n => { organizationBillingState.organizationMemberAssignedQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4267
+ "organizationMemberQuantity": n => { organizationBillingState.organizationMemberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4259
4268
  "pendingBillingPlan": n => { organizationBillingState.pendingBillingPlan = n.getEnumValue(OrganizationBillingState_pendingBillingPlanObject); },
4260
- "phoneNumberQuantity": n => { organizationBillingState.phoneNumberQuantity = n.getNumberValue(); },
4269
+ "phoneNumberQuantity": n => { organizationBillingState.phoneNumberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4261
4270
  "planPeriodStartAt": n => { organizationBillingState.planPeriodStartAt = n.getDateValue(); },
4262
4271
  "planRenewalAt": n => { organizationBillingState.planRenewalAt = n.getDateValue(); },
4263
4272
  };
@@ -4307,7 +4316,7 @@ export function deserializeIntoOrganizationDunningInfo(organizationDunningInfo =
4307
4316
  "outboundRestrictedAt": n => { organizationDunningInfo.outboundRestrictedAt = n.getDateValue(); },
4308
4317
  "outboundSuspendedAt": n => { organizationDunningInfo.outboundSuspendedAt = n.getDateValue(); },
4309
4318
  "paymentFailedAt": n => { organizationDunningInfo.paymentFailedAt = n.getDateValue(); },
4310
- "retryAttemptCount": n => { organizationDunningInfo.retryAttemptCount = n.getNumberValue(); },
4319
+ "retryAttemptCount": n => { organizationDunningInfo.retryAttemptCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4311
4320
  "stage": n => { organizationDunningInfo.stage = n.getStringValue(); },
4312
4321
  };
4313
4322
  }
@@ -4338,7 +4347,7 @@ export function deserializeIntoOrganizationInvitationResponse(organizationInvita
4338
4347
  "id": n => { organizationInvitationResponse.id = n.getStringValue(); },
4339
4348
  "licenseActivatedAt": n => { organizationInvitationResponse.licenseActivatedAt = n.getDateValue(); },
4340
4349
  "licenseBillingStatus": n => { organizationInvitationResponse.licenseBillingStatus = n.getStringValue(); },
4341
- "licenseQuantity": n => { organizationInvitationResponse.licenseQuantity = n.getNumberValue(); },
4350
+ "licenseQuantity": n => { organizationInvitationResponse.licenseQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4342
4351
  "licenseReleasedAt": n => { organizationInvitationResponse.licenseReleasedAt = n.getDateValue(); },
4343
4352
  "licenseRenewalDate": n => { organizationInvitationResponse.licenseRenewalDate = n.getDateValue(); },
4344
4353
  "organization": n => { organizationInvitationResponse.organization = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
@@ -4366,7 +4375,7 @@ export function deserializeIntoOrganizationInvitationTableRow(organizationInvita
4366
4375
  "id": n => { organizationInvitationTableRow.id = n.getStringValue(); },
4367
4376
  "licenseActivatedAt": n => { organizationInvitationTableRow.licenseActivatedAt = n.getDateValue(); },
4368
4377
  "licenseBillingStatus": n => { organizationInvitationTableRow.licenseBillingStatus = n.getStringValue(); },
4369
- "licenseQuantity": n => { organizationInvitationTableRow.licenseQuantity = n.getNumberValue(); },
4378
+ "licenseQuantity": n => { organizationInvitationTableRow.licenseQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4370
4379
  "licenseReleasedAt": n => { organizationInvitationTableRow.licenseReleasedAt = n.getDateValue(); },
4371
4380
  "licenseRenewalDate": n => { organizationInvitationTableRow.licenseRenewalDate = n.getDateValue(); },
4372
4381
  "organization": n => { organizationInvitationTableRow.organization = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
@@ -4404,7 +4413,7 @@ export function deserializeIntoOrganizationMemberResponse(organizationMemberResp
4404
4413
  "id": n => { organizationMemberResponse.id = n.getStringValue(); },
4405
4414
  "lastUsedAt": n => { organizationMemberResponse.lastUsedAt = n.getDateValue(); },
4406
4415
  "licenseBillingStatus": n => { organizationMemberResponse.licenseBillingStatus = n.getStringValue(); },
4407
- "licenseQuantity": n => { organizationMemberResponse.licenseQuantity = n.getNumberValue(); },
4416
+ "licenseQuantity": n => { organizationMemberResponse.licenseQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4408
4417
  "licenseRenewalDate": n => { organizationMemberResponse.licenseRenewalDate = n.getDateValue(); },
4409
4418
  "modifiedAt": n => { organizationMemberResponse.modifiedAt = n.getDateValue(); },
4410
4419
  "name": n => { organizationMemberResponse.name = n.getStringValue(); },
@@ -4442,9 +4451,9 @@ export function deserializeIntoOrganizationMemberTableRow(organizationMemberTabl
4442
4451
  export function deserializeIntoOrganizationRequest(organizationRequest = {}) {
4443
4452
  return {
4444
4453
  "address": n => { organizationRequest.address = n.getObjectValue(createOrganizationRequest_addressFromDiscriminatorValue); },
4445
- "autoRefillAmount": n => { organizationRequest.autoRefillAmount = n.getNumberValue(); },
4454
+ "autoRefillAmount": n => { organizationRequest.autoRefillAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4446
4455
  "autoRefillEnabled": n => { organizationRequest.autoRefillEnabled = n.getBooleanValue(); },
4447
- "autoRefillTrigger": n => { organizationRequest.autoRefillTrigger = n.getNumberValue(); },
4456
+ "autoRefillTrigger": n => { organizationRequest.autoRefillTrigger = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4448
4457
  "billingAddress": n => { organizationRequest.billingAddress = n.getObjectValue(createOrganizationRequest_billingAddressFromDiscriminatorValue); },
4449
4458
  "billingName": n => { organizationRequest.billingName = n.getStringValue(); },
4450
4459
  "billingTaxId": n => { organizationRequest.billingTaxId = n.getStringValue(); },
@@ -4516,12 +4525,12 @@ export function deserializeIntoOrganizationRequest_einDocument(organizationReque
4516
4525
  // @ts-ignore
4517
4526
  export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
4518
4527
  return {
4519
- "accountBalance": n => { organizationResponse.accountBalance = n.getNumberValue(); },
4528
+ "accountBalance": n => { organizationResponse.accountBalance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4520
4529
  "activation": n => { organizationResponse.activation = n.getObjectValue(createOrganizationResponse_activationFromDiscriminatorValue); },
4521
4530
  "address": n => { organizationResponse.address = n.getObjectValue(createOrganizationResponse_addressFromDiscriminatorValue); },
4522
- "autoRefillAmount": n => { organizationResponse.autoRefillAmount = n.getNumberValue(); },
4531
+ "autoRefillAmount": n => { organizationResponse.autoRefillAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4523
4532
  "autoRefillEnabled": n => { organizationResponse.autoRefillEnabled = n.getBooleanValue(); },
4524
- "autoRefillTrigger": n => { organizationResponse.autoRefillTrigger = n.getNumberValue(); },
4533
+ "autoRefillTrigger": n => { organizationResponse.autoRefillTrigger = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4525
4534
  "billingAddress": n => { organizationResponse.billingAddress = n.getObjectValue(createOrganizationResponse_billingAddressFromDiscriminatorValue); },
4526
4535
  "billingName": n => { organizationResponse.billingName = n.getStringValue(); },
4527
4536
  "billingPlan": n => { organizationResponse.billingPlan = n.getEnumValue(OrganizationResponse_billingPlanObject); },
@@ -4679,7 +4688,7 @@ export function deserializeIntoOrganizationSwitchRequest(organizationSwitchReque
4679
4688
  // @ts-ignore
4680
4689
  export function deserializeIntoOrganizationTableRow(organizationTableRow = {}) {
4681
4690
  return {
4682
- "accountBalance": n => { organizationTableRow.accountBalance = n.getNumberValue(); },
4691
+ "accountBalance": n => { organizationTableRow.accountBalance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4683
4692
  "activationStatus": n => { organizationTableRow.activationStatus = n.getEnumValue(OrganizationTableRow_activationStatusObject); },
4684
4693
  "apiKeyExpiresAt": n => { organizationTableRow.apiKeyExpiresAt = n.getDateValue(); },
4685
4694
  "apiKeyFirstUsedAt": n => { organizationTableRow.apiKeyFirstUsedAt = n.getDateValue(); },
@@ -4687,7 +4696,7 @@ export function deserializeIntoOrganizationTableRow(organizationTableRow = {}) {
4687
4696
  "apiKeyLastUsedAt": n => { organizationTableRow.apiKeyLastUsedAt = n.getDateValue(); },
4688
4697
  "apiKeyPermissions": n => { organizationTableRow.apiKeyPermissions = n.getCollectionOfPrimitiveValues("string"); },
4689
4698
  "apiKeyPreview": n => { organizationTableRow.apiKeyPreview = n.getStringValue(); },
4690
- "apiKeyTotalUses": n => { organizationTableRow.apiKeyTotalUses = n.getNumberValue(); },
4699
+ "apiKeyTotalUses": n => { organizationTableRow.apiKeyTotalUses = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4691
4700
  "billingPlan": n => { organizationTableRow.billingPlan = n.getEnumValue(OrganizationTableRow_billingPlanObject); },
4692
4701
  "enabled": n => { organizationTableRow.enabled = n.getBooleanValue(); },
4693
4702
  "id": n => { organizationTableRow.id = n.getStringValue(); },
@@ -4704,7 +4713,7 @@ export function deserializeIntoOrganizationTableRow(organizationTableRow = {}) {
4704
4713
  "subscriptionCancelAt": n => { organizationTableRow.subscriptionCancelAt = n.getDateValue(); },
4705
4714
  "subscriptionStatus": n => { organizationTableRow.subscriptionStatus = n.getEnumValue(OrganizationTableRow_subscriptionStatusObject); },
4706
4715
  "tenDlcStatus": n => { organizationTableRow.tenDlcStatus = n.getEnumValue(OrganizationTableRow_tenDlcStatusObject); },
4707
- "userCount": n => { organizationTableRow.userCount = n.getNumberValue(); },
4716
+ "userCount": n => { organizationTableRow.userCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4708
4717
  "website": n => { organizationTableRow.website = n.getStringValue(); },
4709
4718
  "websiteStatus": n => { organizationTableRow.websiteStatus = n.getEnumValue(OrganizationTableRow_websiteStatusObject); },
4710
4719
  };
@@ -4728,15 +4737,16 @@ export function deserializeIntoOrganizationTableRow_organization(organizationTab
4728
4737
  // @ts-ignore
4729
4738
  export function deserializeIntoOutboundCapacityOverview(outboundCapacityOverview = {}) {
4730
4739
  return {
4731
- "blockedCount": n => { outboundCapacityOverview.blockedCount = n.getNumberValue(); },
4732
- "coolingPhoneNumbers": n => { outboundCapacityOverview.coolingPhoneNumbers = n.getNumberValue(); },
4733
- "healthyPhoneNumbers": n => { outboundCapacityOverview.healthyPhoneNumbers = n.getNumberValue(); },
4734
- "limitedPhoneNumbers": n => { outboundCapacityOverview.limitedPhoneNumbers = n.getNumberValue(); },
4740
+ "blockedCount": n => { outboundCapacityOverview.blockedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4741
+ "coolingPhoneNumbers": n => { outboundCapacityOverview.coolingPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4742
+ "healthyPhoneNumbers": n => { outboundCapacityOverview.healthyPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4743
+ "limitedPhoneNumbers": n => { outboundCapacityOverview.limitedPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4735
4744
  "phoneNumbers": n => { outboundCapacityOverview.phoneNumbers = n.getCollectionOfObjectValues(createOutboundPhoneNumberCapacityFromDiscriminatorValue); },
4745
+ "rampingPhoneNumbers": n => { outboundCapacityOverview.rampingPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4736
4746
  "recentDecisions": n => { outboundCapacityOverview.recentDecisions = n.getCollectionOfObjectValues(createOutboundQueueItemFromDiscriminatorValue); },
4737
- "scheduledCount": n => { outboundCapacityOverview.scheduledCount = n.getNumberValue(); },
4738
- "smsCapacityRemainingToday": n => { outboundCapacityOverview.smsCapacityRemainingToday = n.getNumberValue(); },
4739
- "voiceCapacityRemainingToday": n => { outboundCapacityOverview.voiceCapacityRemainingToday = n.getNumberValue(); },
4747
+ "scheduledCount": n => { outboundCapacityOverview.scheduledCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4748
+ "smsCapacityRemainingToday": n => { outboundCapacityOverview.smsCapacityRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4749
+ "voiceCapacityRemainingToday": n => { outboundCapacityOverview.voiceCapacityRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4740
4750
  };
4741
4751
  }
4742
4752
  /**
@@ -4748,33 +4758,37 @@ export function deserializeIntoOutboundCapacityOverview(outboundCapacityOverview
4748
4758
  export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCapacity = {}) {
4749
4759
  return {
4750
4760
  "capacityAvailable": n => { outboundPhoneNumberCapacity.capacityAvailable = n.getBooleanValue(); },
4761
+ "healthReason": n => { outboundPhoneNumberCapacity.healthReason = n.getStringValue(); },
4751
4762
  "healthStatus": n => { outboundPhoneNumberCapacity.healthStatus = n.getEnumValue(PhoneNumberOutboundHealthStatusObject); },
4752
4763
  "phoneNumber": n => { outboundPhoneNumberCapacity.phoneNumber = n.getStringValue(); },
4753
4764
  "phoneNumberId": n => { outboundPhoneNumberCapacity.phoneNumberId = n.getStringValue(); },
4765
+ "smsApproved": n => { outboundPhoneNumberCapacity.smsApproved = n.getBooleanValue(); },
4754
4766
  "smsDailyResetsAt": n => { outboundPhoneNumberCapacity.smsDailyResetsAt = n.getDateValue(); },
4755
4767
  "smsHourlyResetsAt": n => { outboundPhoneNumberCapacity.smsHourlyResetsAt = n.getDateValue(); },
4756
- "smsLimitThisHour": n => { outboundPhoneNumberCapacity.smsLimitThisHour = n.getNumberValue(); },
4757
- "smsLimitThisMinute": n => { outboundPhoneNumberCapacity.smsLimitThisMinute = n.getNumberValue(); },
4758
- "smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getNumberValue(); },
4768
+ "smsLimitThisHour": n => { outboundPhoneNumberCapacity.smsLimitThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4769
+ "smsLimitThisMinute": n => { outboundPhoneNumberCapacity.smsLimitThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4770
+ "smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4759
4771
  "smsMinutelyResetsAt": n => { outboundPhoneNumberCapacity.smsMinutelyResetsAt = n.getDateValue(); },
4760
- "smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getNumberValue(); },
4761
- "smsRemainingThisMinute": n => { outboundPhoneNumberCapacity.smsRemainingThisMinute = n.getNumberValue(); },
4762
- "smsRemainingToday": n => { outboundPhoneNumberCapacity.smsRemainingToday = n.getNumberValue(); },
4763
- "smsUsedThisHour": n => { outboundPhoneNumberCapacity.smsUsedThisHour = n.getNumberValue(); },
4764
- "smsUsedThisMinute": n => { outboundPhoneNumberCapacity.smsUsedThisMinute = n.getNumberValue(); },
4765
- "smsUsedToday": n => { outboundPhoneNumberCapacity.smsUsedToday = n.getNumberValue(); },
4772
+ "smsRamping": n => { outboundPhoneNumberCapacity.smsRamping = n.getBooleanValue(); },
4773
+ "smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4774
+ "smsRemainingThisMinute": n => { outboundPhoneNumberCapacity.smsRemainingThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4775
+ "smsRemainingToday": n => { outboundPhoneNumberCapacity.smsRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4776
+ "smsUsedThisHour": n => { outboundPhoneNumberCapacity.smsUsedThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4777
+ "smsUsedThisMinute": n => { outboundPhoneNumberCapacity.smsUsedThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4778
+ "smsUsedToday": n => { outboundPhoneNumberCapacity.smsUsedToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4766
4779
  "voiceDailyResetsAt": n => { outboundPhoneNumberCapacity.voiceDailyResetsAt = n.getDateValue(); },
4767
4780
  "voiceHourlyResetsAt": n => { outboundPhoneNumberCapacity.voiceHourlyResetsAt = n.getDateValue(); },
4768
- "voiceLimitThisHour": n => { outboundPhoneNumberCapacity.voiceLimitThisHour = n.getNumberValue(); },
4769
- "voiceLimitThisMinute": n => { outboundPhoneNumberCapacity.voiceLimitThisMinute = n.getNumberValue(); },
4770
- "voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getNumberValue(); },
4781
+ "voiceLimitThisHour": n => { outboundPhoneNumberCapacity.voiceLimitThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4782
+ "voiceLimitThisMinute": n => { outboundPhoneNumberCapacity.voiceLimitThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4783
+ "voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4771
4784
  "voiceMinutelyResetsAt": n => { outboundPhoneNumberCapacity.voiceMinutelyResetsAt = n.getDateValue(); },
4772
- "voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getNumberValue(); },
4773
- "voiceRemainingThisMinute": n => { outboundPhoneNumberCapacity.voiceRemainingThisMinute = n.getNumberValue(); },
4774
- "voiceRemainingToday": n => { outboundPhoneNumberCapacity.voiceRemainingToday = n.getNumberValue(); },
4775
- "voiceUsedThisHour": n => { outboundPhoneNumberCapacity.voiceUsedThisHour = n.getNumberValue(); },
4776
- "voiceUsedThisMinute": n => { outboundPhoneNumberCapacity.voiceUsedThisMinute = n.getNumberValue(); },
4777
- "voiceUsedToday": n => { outboundPhoneNumberCapacity.voiceUsedToday = n.getNumberValue(); },
4785
+ "voiceRamping": n => { outboundPhoneNumberCapacity.voiceRamping = n.getBooleanValue(); },
4786
+ "voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4787
+ "voiceRemainingThisMinute": n => { outboundPhoneNumberCapacity.voiceRemainingThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4788
+ "voiceRemainingToday": n => { outboundPhoneNumberCapacity.voiceRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4789
+ "voiceUsedThisHour": n => { outboundPhoneNumberCapacity.voiceUsedThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4790
+ "voiceUsedThisMinute": n => { outboundPhoneNumberCapacity.voiceUsedThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4791
+ "voiceUsedToday": n => { outboundPhoneNumberCapacity.voiceUsedToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4778
4792
  };
4779
4793
  }
4780
4794
  /**
@@ -4858,8 +4872,8 @@ export function deserializeIntoPagedResultOfAutomationTableRow(pagedResultOfAuto
4858
4872
  return {
4859
4873
  "continuationToken": n => { pagedResultOfAutomationTableRow.continuationToken = n.getStringValue(); },
4860
4874
  "items": n => { pagedResultOfAutomationTableRow.items = n.getCollectionOfObjectValues(createAutomationTableRowFromDiscriminatorValue); },
4861
- "pageSize": n => { pagedResultOfAutomationTableRow.pageSize = n.getNumberValue(); },
4862
- "totalCount": n => { pagedResultOfAutomationTableRow.totalCount = n.getNumberValue(); },
4875
+ "pageSize": n => { pagedResultOfAutomationTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4876
+ "totalCount": n => { pagedResultOfAutomationTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4863
4877
  };
4864
4878
  }
4865
4879
  /**
@@ -4872,8 +4886,8 @@ export function deserializeIntoPagedResultOfCallEventTableRow(pagedResultOfCallE
4872
4886
  return {
4873
4887
  "continuationToken": n => { pagedResultOfCallEventTableRow.continuationToken = n.getStringValue(); },
4874
4888
  "items": n => { pagedResultOfCallEventTableRow.items = n.getCollectionOfObjectValues(createCallEventTableRowFromDiscriminatorValue); },
4875
- "pageSize": n => { pagedResultOfCallEventTableRow.pageSize = n.getNumberValue(); },
4876
- "totalCount": n => { pagedResultOfCallEventTableRow.totalCount = n.getNumberValue(); },
4889
+ "pageSize": n => { pagedResultOfCallEventTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4890
+ "totalCount": n => { pagedResultOfCallEventTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4877
4891
  };
4878
4892
  }
4879
4893
  /**
@@ -4886,8 +4900,8 @@ export function deserializeIntoPagedResultOfConversationResponse(pagedResultOfCo
4886
4900
  return {
4887
4901
  "continuationToken": n => { pagedResultOfConversationResponse.continuationToken = n.getStringValue(); },
4888
4902
  "items": n => { pagedResultOfConversationResponse.items = n.getCollectionOfObjectValues(createConversationResponseFromDiscriminatorValue); },
4889
- "pageSize": n => { pagedResultOfConversationResponse.pageSize = n.getNumberValue(); },
4890
- "totalCount": n => { pagedResultOfConversationResponse.totalCount = n.getNumberValue(); },
4903
+ "pageSize": n => { pagedResultOfConversationResponse.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4904
+ "totalCount": n => { pagedResultOfConversationResponse.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4891
4905
  };
4892
4906
  }
4893
4907
  /**
@@ -4900,8 +4914,8 @@ export function deserializeIntoPagedResultOfEventTableRow(pagedResultOfEventTabl
4900
4914
  return {
4901
4915
  "continuationToken": n => { pagedResultOfEventTableRow.continuationToken = n.getStringValue(); },
4902
4916
  "items": n => { pagedResultOfEventTableRow.items = n.getCollectionOfObjectValues(createEventTableRowFromDiscriminatorValue); },
4903
- "pageSize": n => { pagedResultOfEventTableRow.pageSize = n.getNumberValue(); },
4904
- "totalCount": n => { pagedResultOfEventTableRow.totalCount = n.getNumberValue(); },
4917
+ "pageSize": n => { pagedResultOfEventTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4918
+ "totalCount": n => { pagedResultOfEventTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4905
4919
  };
4906
4920
  }
4907
4921
  /**
@@ -4914,8 +4928,8 @@ export function deserializeIntoPagedResultOfLeadStatusChangeResponse(pagedResult
4914
4928
  return {
4915
4929
  "continuationToken": n => { pagedResultOfLeadStatusChangeResponse.continuationToken = n.getStringValue(); },
4916
4930
  "items": n => { pagedResultOfLeadStatusChangeResponse.items = n.getCollectionOfObjectValues(createLeadStatusChangeResponseFromDiscriminatorValue); },
4917
- "pageSize": n => { pagedResultOfLeadStatusChangeResponse.pageSize = n.getNumberValue(); },
4918
- "totalCount": n => { pagedResultOfLeadStatusChangeResponse.totalCount = n.getNumberValue(); },
4931
+ "pageSize": n => { pagedResultOfLeadStatusChangeResponse.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4932
+ "totalCount": n => { pagedResultOfLeadStatusChangeResponse.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4919
4933
  };
4920
4934
  }
4921
4935
  /**
@@ -4928,8 +4942,8 @@ export function deserializeIntoPagedResultOfLeadTableRow(pagedResultOfLeadTableR
4928
4942
  return {
4929
4943
  "continuationToken": n => { pagedResultOfLeadTableRow.continuationToken = n.getStringValue(); },
4930
4944
  "items": n => { pagedResultOfLeadTableRow.items = n.getCollectionOfObjectValues(createLeadTableRowFromDiscriminatorValue); },
4931
- "pageSize": n => { pagedResultOfLeadTableRow.pageSize = n.getNumberValue(); },
4932
- "totalCount": n => { pagedResultOfLeadTableRow.totalCount = n.getNumberValue(); },
4945
+ "pageSize": n => { pagedResultOfLeadTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4946
+ "totalCount": n => { pagedResultOfLeadTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4933
4947
  };
4934
4948
  }
4935
4949
  /**
@@ -4942,8 +4956,8 @@ export function deserializeIntoPagedResultOfNotificationTableRow(pagedResultOfNo
4942
4956
  return {
4943
4957
  "continuationToken": n => { pagedResultOfNotificationTableRow.continuationToken = n.getStringValue(); },
4944
4958
  "items": n => { pagedResultOfNotificationTableRow.items = n.getCollectionOfObjectValues(createNotificationTableRowFromDiscriminatorValue); },
4945
- "pageSize": n => { pagedResultOfNotificationTableRow.pageSize = n.getNumberValue(); },
4946
- "totalCount": n => { pagedResultOfNotificationTableRow.totalCount = n.getNumberValue(); },
4959
+ "pageSize": n => { pagedResultOfNotificationTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4960
+ "totalCount": n => { pagedResultOfNotificationTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4947
4961
  };
4948
4962
  }
4949
4963
  /**
@@ -4956,8 +4970,8 @@ export function deserializeIntoPagedResultOfOrganizationTableRow(pagedResultOfOr
4956
4970
  return {
4957
4971
  "continuationToken": n => { pagedResultOfOrganizationTableRow.continuationToken = n.getStringValue(); },
4958
4972
  "items": n => { pagedResultOfOrganizationTableRow.items = n.getCollectionOfObjectValues(createOrganizationTableRowFromDiscriminatorValue); },
4959
- "pageSize": n => { pagedResultOfOrganizationTableRow.pageSize = n.getNumberValue(); },
4960
- "totalCount": n => { pagedResultOfOrganizationTableRow.totalCount = n.getNumberValue(); },
4973
+ "pageSize": n => { pagedResultOfOrganizationTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4974
+ "totalCount": n => { pagedResultOfOrganizationTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4961
4975
  };
4962
4976
  }
4963
4977
  /**
@@ -4970,8 +4984,8 @@ export function deserializeIntoPagedResultOfPhoneNumberTableRow(pagedResultOfPho
4970
4984
  return {
4971
4985
  "continuationToken": n => { pagedResultOfPhoneNumberTableRow.continuationToken = n.getStringValue(); },
4972
4986
  "items": n => { pagedResultOfPhoneNumberTableRow.items = n.getCollectionOfObjectValues(createPhoneNumberTableRowFromDiscriminatorValue); },
4973
- "pageSize": n => { pagedResultOfPhoneNumberTableRow.pageSize = n.getNumberValue(); },
4974
- "totalCount": n => { pagedResultOfPhoneNumberTableRow.totalCount = n.getNumberValue(); },
4987
+ "pageSize": n => { pagedResultOfPhoneNumberTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4988
+ "totalCount": n => { pagedResultOfPhoneNumberTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4975
4989
  };
4976
4990
  }
4977
4991
  /**
@@ -4984,8 +4998,8 @@ export function deserializeIntoPagedResultOfSmsEventTableRow(pagedResultOfSmsEve
4984
4998
  return {
4985
4999
  "continuationToken": n => { pagedResultOfSmsEventTableRow.continuationToken = n.getStringValue(); },
4986
5000
  "items": n => { pagedResultOfSmsEventTableRow.items = n.getCollectionOfObjectValues(createSmsEventTableRowFromDiscriminatorValue); },
4987
- "pageSize": n => { pagedResultOfSmsEventTableRow.pageSize = n.getNumberValue(); },
4988
- "totalCount": n => { pagedResultOfSmsEventTableRow.totalCount = n.getNumberValue(); },
5001
+ "pageSize": n => { pagedResultOfSmsEventTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5002
+ "totalCount": n => { pagedResultOfSmsEventTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4989
5003
  };
4990
5004
  }
4991
5005
  /**
@@ -4998,8 +5012,8 @@ export function deserializeIntoPagedResultOfSourceTableRow(pagedResultOfSourceTa
4998
5012
  return {
4999
5013
  "continuationToken": n => { pagedResultOfSourceTableRow.continuationToken = n.getStringValue(); },
5000
5014
  "items": n => { pagedResultOfSourceTableRow.items = n.getCollectionOfObjectValues(createSourceTableRowFromDiscriminatorValue); },
5001
- "pageSize": n => { pagedResultOfSourceTableRow.pageSize = n.getNumberValue(); },
5002
- "totalCount": n => { pagedResultOfSourceTableRow.totalCount = n.getNumberValue(); },
5015
+ "pageSize": n => { pagedResultOfSourceTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5016
+ "totalCount": n => { pagedResultOfSourceTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5003
5017
  };
5004
5018
  }
5005
5019
  /**
@@ -5012,8 +5026,8 @@ export function deserializeIntoPagedResultOfSuppressionEntryResponse(pagedResult
5012
5026
  return {
5013
5027
  "continuationToken": n => { pagedResultOfSuppressionEntryResponse.continuationToken = n.getStringValue(); },
5014
5028
  "items": n => { pagedResultOfSuppressionEntryResponse.items = n.getCollectionOfObjectValues(createSuppressionEntryResponseFromDiscriminatorValue); },
5015
- "pageSize": n => { pagedResultOfSuppressionEntryResponse.pageSize = n.getNumberValue(); },
5016
- "totalCount": n => { pagedResultOfSuppressionEntryResponse.totalCount = n.getNumberValue(); },
5029
+ "pageSize": n => { pagedResultOfSuppressionEntryResponse.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5030
+ "totalCount": n => { pagedResultOfSuppressionEntryResponse.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5017
5031
  };
5018
5032
  }
5019
5033
  /**
@@ -5026,8 +5040,8 @@ export function deserializeIntoPagedResultOfTransactionTableRow(pagedResultOfTra
5026
5040
  return {
5027
5041
  "continuationToken": n => { pagedResultOfTransactionTableRow.continuationToken = n.getStringValue(); },
5028
5042
  "items": n => { pagedResultOfTransactionTableRow.items = n.getCollectionOfObjectValues(createTransactionTableRowFromDiscriminatorValue); },
5029
- "pageSize": n => { pagedResultOfTransactionTableRow.pageSize = n.getNumberValue(); },
5030
- "totalCount": n => { pagedResultOfTransactionTableRow.totalCount = n.getNumberValue(); },
5043
+ "pageSize": n => { pagedResultOfTransactionTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5044
+ "totalCount": n => { pagedResultOfTransactionTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5031
5045
  };
5032
5046
  }
5033
5047
  /**
@@ -5040,8 +5054,8 @@ export function deserializeIntoPagedResultOfUsageLedgerTableRow(pagedResultOfUsa
5040
5054
  return {
5041
5055
  "continuationToken": n => { pagedResultOfUsageLedgerTableRow.continuationToken = n.getStringValue(); },
5042
5056
  "items": n => { pagedResultOfUsageLedgerTableRow.items = n.getCollectionOfObjectValues(createUsageLedgerTableRowFromDiscriminatorValue); },
5043
- "pageSize": n => { pagedResultOfUsageLedgerTableRow.pageSize = n.getNumberValue(); },
5044
- "totalCount": n => { pagedResultOfUsageLedgerTableRow.totalCount = n.getNumberValue(); },
5057
+ "pageSize": n => { pagedResultOfUsageLedgerTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5058
+ "totalCount": n => { pagedResultOfUsageLedgerTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5045
5059
  };
5046
5060
  }
5047
5061
  /**
@@ -5066,14 +5080,14 @@ export function deserializeIntoPhone(phone = {}) {
5066
5080
  export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
5067
5081
  return {
5068
5082
  "answeredAt": n => { phoneCallResponse.answeredAt = n.getDateValue(); },
5069
- "billableAmount": n => { phoneCallResponse.billableAmount = n.getNumberValue(); },
5083
+ "billableAmount": n => { phoneCallResponse.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5070
5084
  "billingStatus": n => { phoneCallResponse.billingStatus = n.getStringValue(); },
5071
5085
  "callerId": n => { phoneCallResponse.callerId = n.getStringValue(); },
5072
5086
  "campaignId": n => { phoneCallResponse.campaignId = n.getStringValue(); },
5073
5087
  "conversationId": n => { phoneCallResponse.conversationId = n.getStringValue(); },
5074
5088
  "createdAt": n => { phoneCallResponse.createdAt = n.getDateValue(); },
5075
5089
  "direction": n => { phoneCallResponse.direction = n.getStringValue(); },
5076
- "durationSeconds": n => { phoneCallResponse.durationSeconds = n.getNumberValue(); },
5090
+ "durationSeconds": n => { phoneCallResponse.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5077
5091
  "endedAt": n => { phoneCallResponse.endedAt = n.getDateValue(); },
5078
5092
  "fromPhoneNumber": n => { phoneCallResponse.fromPhoneNumber = n.getStringValue(); },
5079
5093
  "fromPhoneNumberId": n => { phoneCallResponse.fromPhoneNumberId = n.getStringValue(); },
@@ -5092,6 +5106,21 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
5092
5106
  "wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
5093
5107
  };
5094
5108
  }
5109
+ /**
5110
+ * The deserialization information for the current model
5111
+ * @param PhoneIdentityLookupAction The instance to deserialize into.
5112
+ * @returns {Record<string, (node: ParseNode) => void>}
5113
+ */
5114
+ // @ts-ignore
5115
+ export function deserializeIntoPhoneIdentityLookupAction(phoneIdentityLookupAction = {}) {
5116
+ return {
5117
+ "id": n => { phoneIdentityLookupAction.id = n.getStringValue(); },
5118
+ "occurredAt": n => { phoneIdentityLookupAction.occurredAt = n.getDateValue(); },
5119
+ "provider": n => { phoneIdentityLookupAction.provider = n.getStringValue(); },
5120
+ "status": n => { phoneIdentityLookupAction.status = n.getEnumValue(PhoneIdentityLookupActionStatusObject); },
5121
+ "type": n => { phoneIdentityLookupAction.type = n.getEnumValue(PhoneIdentityLookupActionTypeObject); },
5122
+ };
5123
+ }
5095
5124
  /**
5096
5125
  * The deserialization information for the current model
5097
5126
  * @param PhoneIdentityResponse The instance to deserialize into.
@@ -5104,6 +5133,7 @@ export function deserializeIntoPhoneIdentityResponse(phoneIdentityResponse = {})
5104
5133
  "id": n => { phoneIdentityResponse.id = n.getStringValue(); },
5105
5134
  "lastEnrichedAt": n => { phoneIdentityResponse.lastEnrichedAt = n.getDateValue(); },
5106
5135
  "lookup": n => { phoneIdentityResponse.lookup = n.getObjectValue(createPhoneIdentityResponse_lookupFromDiscriminatorValue); },
5136
+ "lookupActions": n => { phoneIdentityResponse.lookupActions = n.getCollectionOfObjectValues(createPhoneIdentityLookupActionFromDiscriminatorValue); },
5107
5137
  "modifiedAt": n => { phoneIdentityResponse.modifiedAt = n.getDateValue(); },
5108
5138
  "name": n => { phoneIdentityResponse.name = n.getStringValue(); },
5109
5139
  "number": n => { phoneIdentityResponse.number = n.getStringValue(); },
@@ -5274,7 +5304,7 @@ export function deserializeIntoPhoneLookupProviderSnapshot(phoneLookupProviderSn
5274
5304
  "provider": n => { phoneLookupProviderSnapshot.provider = n.getStringValue(); },
5275
5305
  "rawRecordJson": n => { phoneLookupProviderSnapshot.rawRecordJson = n.getStringValue(); },
5276
5306
  "retrievedAt": n => { phoneLookupProviderSnapshot.retrievedAt = n.getDateValue(); },
5277
- "schemaVersion": n => { phoneLookupProviderSnapshot.schemaVersion = n.getNumberValue(); },
5307
+ "schemaVersion": n => { phoneLookupProviderSnapshot.schemaVersion = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5278
5308
  };
5279
5309
  }
5280
5310
  /**
@@ -5300,7 +5330,7 @@ export function deserializeIntoPhoneNumberAvailabilityResponse(phoneNumberAvaila
5300
5330
  "isAvailable": n => { phoneNumberAvailabilityResponse.isAvailable = n.getBooleanValue(); },
5301
5331
  "location": n => { phoneNumberAvailabilityResponse.location = n.getObjectValue(createPhoneNumberAvailabilityResponse_locationFromDiscriminatorValue); },
5302
5332
  "phoneNumber": n => { phoneNumberAvailabilityResponse.phoneNumber = n.getStringValue(); },
5303
- "price": n => { phoneNumberAvailabilityResponse.price = n.getNumberValue(); },
5333
+ "price": n => { phoneNumberAvailabilityResponse.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5304
5334
  };
5305
5335
  }
5306
5336
  /**
@@ -5393,10 +5423,10 @@ export function deserializeIntoPhoneNumberMessagingEventResponse(phoneNumberMess
5393
5423
  // @ts-ignore
5394
5424
  export function deserializeIntoPhoneNumberOptOutMetricsResponse(phoneNumberOptOutMetricsResponse = {}) {
5395
5425
  return {
5396
- "distinctContactedCount": n => { phoneNumberOptOutMetricsResponse.distinctContactedCount = n.getNumberValue(); },
5397
- "optOutCount": n => { phoneNumberOptOutMetricsResponse.optOutCount = n.getNumberValue(); },
5398
- "optOutRatePercent": n => { phoneNumberOptOutMetricsResponse.optOutRatePercent = n.getNumberValue(); },
5399
- "windowDays": n => { phoneNumberOptOutMetricsResponse.windowDays = n.getNumberValue(); },
5426
+ "distinctContactedCount": n => { phoneNumberOptOutMetricsResponse.distinctContactedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5427
+ "optOutCount": n => { phoneNumberOptOutMetricsResponse.optOutCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5428
+ "optOutRatePercent": n => { phoneNumberOptOutMetricsResponse.optOutRatePercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5429
+ "windowDays": n => { phoneNumberOptOutMetricsResponse.windowDays = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5400
5430
  "windowStartedAt": n => { phoneNumberOptOutMetricsResponse.windowStartedAt = n.getDateValue(); },
5401
5431
  };
5402
5432
  }
@@ -5410,9 +5440,9 @@ export function deserializeIntoPhoneNumberReadiness(phoneNumberReadiness = {}) {
5410
5440
  return {
5411
5441
  "callStage": n => { phoneNumberReadiness.callStage = n.getEnumValue(PhoneNumberReadiness_callStageObject); },
5412
5442
  "enabled": n => { phoneNumberReadiness.enabled = n.getBooleanValue(); },
5413
- "healthScore": n => { phoneNumberReadiness.healthScore = n.getNumberValue(); },
5443
+ "healthScore": n => { phoneNumberReadiness.healthScore = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5414
5444
  "healthStatus": n => { phoneNumberReadiness.healthStatus = n.getEnumValue(PhoneNumberReadiness_healthStatusObject); },
5415
- "progressPercent": n => { phoneNumberReadiness.progressPercent = n.getNumberValue(); },
5445
+ "progressPercent": n => { phoneNumberReadiness.progressPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5416
5446
  "state": n => { phoneNumberReadiness.state = n.getEnumValue(PhoneNumberReadiness_stateObject); },
5417
5447
  };
5418
5448
  }
@@ -5544,8 +5574,8 @@ export function deserializeIntoPhoneNumberSearchResult_location(phoneNumberSearc
5544
5574
  // @ts-ignore
5545
5575
  export function deserializeIntoPhoneNumberStatusResponse(phoneNumberStatusResponse = {}) {
5546
5576
  return {
5547
- "callsPossible": n => { phoneNumberStatusResponse.callsPossible = n.getNumberValue(); },
5548
- "messagesPossible": n => { phoneNumberStatusResponse.messagesPossible = n.getNumberValue(); },
5577
+ "callsPossible": n => { phoneNumberStatusResponse.callsPossible = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5578
+ "messagesPossible": n => { phoneNumberStatusResponse.messagesPossible = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5549
5579
  "number": n => { phoneNumberStatusResponse.number = n.getStringValue(); },
5550
5580
  "optOutMetrics": n => { phoneNumberStatusResponse.optOutMetrics = n.getObjectValue(createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue); },
5551
5581
  "outboundCapacity": n => { phoneNumberStatusResponse.outboundCapacity = n.getObjectValue(createPhoneNumberStatusResponse_outboundCapacityFromDiscriminatorValue); },
@@ -5607,17 +5637,17 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
5607
5637
  // @ts-ignore
5608
5638
  export function deserializeIntoPhoneNumberTrafficMetricsResponse(phoneNumberTrafficMetricsResponse = {}) {
5609
5639
  return {
5610
- "callConnectedCount": n => { phoneNumberTrafficMetricsResponse.callConnectedCount = n.getNumberValue(); },
5611
- "callFailedCount": n => { phoneNumberTrafficMetricsResponse.callFailedCount = n.getNumberValue(); },
5612
- "callInvalidNumberCount": n => { phoneNumberTrafficMetricsResponse.callInvalidNumberCount = n.getNumberValue(); },
5613
- "callPlacedCount": n => { phoneNumberTrafficMetricsResponse.callPlacedCount = n.getNumberValue(); },
5614
- "callShortCount": n => { phoneNumberTrafficMetricsResponse.callShortCount = n.getNumberValue(); },
5615
- "mmsFailedCount": n => { phoneNumberTrafficMetricsResponse.mmsFailedCount = n.getNumberValue(); },
5616
- "mmsSentCount": n => { phoneNumberTrafficMetricsResponse.mmsSentCount = n.getNumberValue(); },
5617
- "smsFailedCount": n => { phoneNumberTrafficMetricsResponse.smsFailedCount = n.getNumberValue(); },
5618
- "smsSentCount": n => { phoneNumberTrafficMetricsResponse.smsSentCount = n.getNumberValue(); },
5640
+ "callConnectedCount": n => { phoneNumberTrafficMetricsResponse.callConnectedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5641
+ "callFailedCount": n => { phoneNumberTrafficMetricsResponse.callFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5642
+ "callInvalidNumberCount": n => { phoneNumberTrafficMetricsResponse.callInvalidNumberCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5643
+ "callPlacedCount": n => { phoneNumberTrafficMetricsResponse.callPlacedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5644
+ "callShortCount": n => { phoneNumberTrafficMetricsResponse.callShortCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5645
+ "mmsFailedCount": n => { phoneNumberTrafficMetricsResponse.mmsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5646
+ "mmsSentCount": n => { phoneNumberTrafficMetricsResponse.mmsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5647
+ "smsFailedCount": n => { phoneNumberTrafficMetricsResponse.smsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5648
+ "smsSentCount": n => { phoneNumberTrafficMetricsResponse.smsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5619
5649
  "trend": n => { phoneNumberTrafficMetricsResponse.trend = n.getCollectionOfObjectValues(createPhoneNumberTrafficTrendPointFromDiscriminatorValue); },
5620
- "windowDays": n => { phoneNumberTrafficMetricsResponse.windowDays = n.getNumberValue(); },
5650
+ "windowDays": n => { phoneNumberTrafficMetricsResponse.windowDays = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5621
5651
  "windowStartedAt": n => { phoneNumberTrafficMetricsResponse.windowStartedAt = n.getDateValue(); },
5622
5652
  };
5623
5653
  }
@@ -5629,14 +5659,14 @@ export function deserializeIntoPhoneNumberTrafficMetricsResponse(phoneNumberTraf
5629
5659
  // @ts-ignore
5630
5660
  export function deserializeIntoPhoneNumberTrafficTrendPoint(phoneNumberTrafficTrendPoint = {}) {
5631
5661
  return {
5632
- "callFailedCount": n => { phoneNumberTrafficTrendPoint.callFailedCount = n.getNumberValue(); },
5633
- "callPlacedCount": n => { phoneNumberTrafficTrendPoint.callPlacedCount = n.getNumberValue(); },
5662
+ "callFailedCount": n => { phoneNumberTrafficTrendPoint.callFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5663
+ "callPlacedCount": n => { phoneNumberTrafficTrendPoint.callPlacedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5634
5664
  "endAt": n => { phoneNumberTrafficTrendPoint.endAt = n.getDateValue(); },
5635
5665
  "label": n => { phoneNumberTrafficTrendPoint.label = n.getStringValue(); },
5636
- "mmsFailedCount": n => { phoneNumberTrafficTrendPoint.mmsFailedCount = n.getNumberValue(); },
5637
- "mmsSentCount": n => { phoneNumberTrafficTrendPoint.mmsSentCount = n.getNumberValue(); },
5638
- "smsFailedCount": n => { phoneNumberTrafficTrendPoint.smsFailedCount = n.getNumberValue(); },
5639
- "smsSentCount": n => { phoneNumberTrafficTrendPoint.smsSentCount = n.getNumberValue(); },
5666
+ "mmsFailedCount": n => { phoneNumberTrafficTrendPoint.mmsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5667
+ "mmsSentCount": n => { phoneNumberTrafficTrendPoint.mmsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5668
+ "smsFailedCount": n => { phoneNumberTrafficTrendPoint.smsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5669
+ "smsSentCount": n => { phoneNumberTrafficTrendPoint.smsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5640
5670
  "startAt": n => { phoneNumberTrafficTrendPoint.startAt = n.getDateValue(); },
5641
5671
  };
5642
5672
  }
@@ -5650,7 +5680,7 @@ export function deserializeIntoProblemDetails(problemDetails = {}) {
5650
5680
  return {
5651
5681
  "detail": n => { problemDetails.detail = n.getStringValue(); },
5652
5682
  "instance": n => { problemDetails.instance = n.getStringValue(); },
5653
- "status": n => { problemDetails.status = n.getNumberValue(); },
5683
+ "status": n => { problemDetails.status = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5654
5684
  "title": n => { problemDetails.title = n.getStringValue(); },
5655
5685
  "type": n => { problemDetails.type = n.getStringValue(); },
5656
5686
  };
@@ -5712,7 +5742,7 @@ export function deserializeIntoRequestDataOptions(requestDataOptions = {}) {
5712
5742
  "filters": n => { requestDataOptions.filters = n.getCollectionOfObjectValues(createExactMatchFilterFromDiscriminatorValue); },
5713
5743
  "includeCount": n => { requestDataOptions.includeCount = n.getBooleanValue(); },
5714
5744
  "orderBy": n => { requestDataOptions.orderBy = n.getCollectionOfObjectValues(createOrderByOptionFromDiscriminatorValue); },
5715
- "pageSize": n => { requestDataOptions.pageSize = n.getNumberValue(); },
5745
+ "pageSize": n => { requestDataOptions.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5716
5746
  "rangeFilters": n => { requestDataOptions.rangeFilters = n.getCollectionOfObjectValues(createRangeFilterFromDiscriminatorValue); },
5717
5747
  "search": n => { requestDataOptions.search = n.getStringValue(); },
5718
5748
  "searchFields": n => { requestDataOptions.searchFields = n.getCollectionOfPrimitiveValues("string"); },
@@ -5748,7 +5778,7 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
5748
5778
  return {
5749
5779
  "actorDisplayName": n => { smsEventTableRow.actorDisplayName = n.getStringValue(); },
5750
5780
  "actorUserId": n => { smsEventTableRow.actorUserId = n.getStringValue(); },
5751
- "billableAmount": n => { smsEventTableRow.billableAmount = n.getNumberValue(); },
5781
+ "billableAmount": n => { smsEventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5752
5782
  "billingStatus": n => { smsEventTableRow.billingStatus = n.getStringValue(); },
5753
5783
  "blockedAt": n => { smsEventTableRow.blockedAt = n.getDateValue(); },
5754
5784
  "canceledAt": n => { smsEventTableRow.canceledAt = n.getDateValue(); },
@@ -5796,11 +5826,11 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
5796
5826
  // @ts-ignore
5797
5827
  export function deserializeIntoSmsReadinessStatusResponse(smsReadinessStatusResponse = {}) {
5798
5828
  return {
5799
- "healthScore": n => { smsReadinessStatusResponse.healthScore = n.getNumberValue(); },
5829
+ "healthScore": n => { smsReadinessStatusResponse.healthScore = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5800
5830
  "healthStatus": n => { smsReadinessStatusResponse.healthStatus = n.getEnumValue(SmsReadinessHealthStatusObject); },
5801
5831
  "phoneNumber": n => { smsReadinessStatusResponse.phoneNumber = n.getStringValue(); },
5802
5832
  "phoneNumberId": n => { smsReadinessStatusResponse.phoneNumberId = n.getStringValue(); },
5803
- "progressPercent": n => { smsReadinessStatusResponse.progressPercent = n.getNumberValue(); },
5833
+ "progressPercent": n => { smsReadinessStatusResponse.progressPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5804
5834
  "status": n => { smsReadinessStatusResponse.status = n.getEnumValue(SmsReadinessStateObject); },
5805
5835
  "uiState": n => { smsReadinessStatusResponse.uiState = n.getObjectValue(createSmsReadinessUiStateFromDiscriminatorValue); },
5806
5836
  "warmupEnabled": n => { smsReadinessStatusResponse.warmupEnabled = n.getBooleanValue(); },
@@ -5827,7 +5857,7 @@ export function deserializeIntoSmsReadinessUiState(smsReadinessUiState = {}) {
5827
5857
  // @ts-ignore
5828
5858
  export function deserializeIntoSmsResponse(smsResponse = {}) {
5829
5859
  return {
5830
- "billableAmount": n => { smsResponse.billableAmount = n.getNumberValue(); },
5860
+ "billableAmount": n => { smsResponse.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5831
5861
  "billingStatus": n => { smsResponse.billingStatus = n.getStringValue(); },
5832
5862
  "blockedAt": n => { smsResponse.blockedAt = n.getDateValue(); },
5833
5863
  "campaignId": n => { smsResponse.campaignId = n.getStringValue(); },
@@ -5850,7 +5880,7 @@ export function deserializeIntoSmsResponse(smsResponse = {}) {
5850
5880
  "outboundPhoneNumberId": n => { smsResponse.outboundPhoneNumberId = n.getStringValue(); },
5851
5881
  "queuedAt": n => { smsResponse.queuedAt = n.getDateValue(); },
5852
5882
  "receivedAt": n => { smsResponse.receivedAt = n.getDateValue(); },
5853
- "retryCount": n => { smsResponse.retryCount = n.getNumberValue(); },
5883
+ "retryCount": n => { smsResponse.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5854
5884
  "scheduledFor": n => { smsResponse.scheduledFor = n.getDateValue(); },
5855
5885
  "scheduledReason": n => { smsResponse.scheduledReason = n.getStringValue(); },
5856
5886
  "selectionReason": n => { smsResponse.selectionReason = n.getEnumValue(SmsResponse_selectionReasonObject); },
@@ -5876,7 +5906,7 @@ export function deserializeIntoSourceMetricsResponse(sourceMetricsResponse = {})
5876
5906
  "generatedAt": n => { sourceMetricsResponse.generatedAt = n.getDateValue(); },
5877
5907
  "points": n => { sourceMetricsResponse.points = n.getCollectionOfObjectValues(createAnalyticsTrendPointOfintFromDiscriminatorValue); },
5878
5908
  "range": n => { sourceMetricsResponse.range = n.getObjectValue(createAnalyticsDateRangeFromDiscriminatorValue); },
5879
- "totalLeads": n => { sourceMetricsResponse.totalLeads = n.getNumberValue(); },
5909
+ "totalLeads": n => { sourceMetricsResponse.totalLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5880
5910
  };
5881
5911
  }
5882
5912
  /**
@@ -5890,7 +5920,7 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
5890
5920
  "allowedProducts": n => { sourceRequest.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5891
5921
  "allowedStates": n => { sourceRequest.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5892
5922
  "apiKey": n => { sourceRequest.apiKey = n.getStringValue(); },
5893
- "costPerLead": n => { sourceRequest.costPerLead = n.getNumberValue(); },
5923
+ "costPerLead": n => { sourceRequest.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5894
5924
  "defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
5895
5925
  "defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
5896
5926
  "description": n => { sourceRequest.description = n.getStringValue(); },
@@ -5914,7 +5944,7 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
5914
5944
  "apiKey": n => { sourceResponse.apiKey = n.getStringValue(); },
5915
5945
  "apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
5916
5946
  "complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
5917
- "costPerLead": n => { sourceResponse.costPerLead = n.getNumberValue(); },
5947
+ "costPerLead": n => { sourceResponse.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5918
5948
  "createdAt": n => { sourceResponse.createdAt = n.getDateValue(); },
5919
5949
  "createdByUser": n => { sourceResponse.createdByUser = n.getObjectValue(createSourceResponse_createdByUserFromDiscriminatorValue); },
5920
5950
  "defaultTagIds": n => { sourceResponse.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
@@ -5989,9 +6019,9 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
5989
6019
  "apiKey": n => { sourceTableRow.apiKey = n.getStringValue(); },
5990
6020
  "apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
5991
6021
  "apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
5992
- "apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
6022
+ "apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5993
6023
  "complianceApproved": n => { sourceTableRow.complianceApproved = n.getBooleanValue(); },
5994
- "costPerLead": n => { sourceTableRow.costPerLead = n.getNumberValue(); },
6024
+ "costPerLead": n => { sourceTableRow.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5995
6025
  "createdAt": n => { sourceTableRow.createdAt = n.getDateValue(); },
5996
6026
  "createdByUser": n => { sourceTableRow.createdByUser = n.getObjectValue(createSourceTableRow_createdByUserFromDiscriminatorValue); },
5997
6027
  "defaultTagIds": n => { sourceTableRow.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
@@ -6081,7 +6111,7 @@ export function deserializeIntoStreetAddress(streetAddress = {}) {
6081
6111
  // @ts-ignore
6082
6112
  export function deserializeIntoStripeInvoiceResponse(stripeInvoiceResponse = {}) {
6083
6113
  return {
6084
- "amount": n => { stripeInvoiceResponse.amount = n.getNumberValue(); },
6114
+ "amount": n => { stripeInvoiceResponse.amount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6085
6115
  "createdAt": n => { stripeInvoiceResponse.createdAt = n.getDateValue(); },
6086
6116
  "hasPdf": n => { stripeInvoiceResponse.hasPdf = n.getBooleanValue(); },
6087
6117
  "id": n => { stripeInvoiceResponse.id = n.getStringValue(); },
@@ -6099,8 +6129,8 @@ export function deserializeIntoStripePaymentMethodResponse(stripePaymentMethodRe
6099
6129
  return {
6100
6130
  "brand": n => { stripePaymentMethodResponse.brand = n.getStringValue(); },
6101
6131
  "createdAt": n => { stripePaymentMethodResponse.createdAt = n.getDateValue(); },
6102
- "expMonth": n => { stripePaymentMethodResponse.expMonth = n.getNumberValue(); },
6103
- "expYear": n => { stripePaymentMethodResponse.expYear = n.getNumberValue(); },
6132
+ "expMonth": n => { stripePaymentMethodResponse.expMonth = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6133
+ "expYear": n => { stripePaymentMethodResponse.expYear = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6104
6134
  "id": n => { stripePaymentMethodResponse.id = n.getStringValue(); },
6105
6135
  "isDefault": n => { stripePaymentMethodResponse.isDefault = n.getBooleanValue(); },
6106
6136
  "last4": n => { stripePaymentMethodResponse.last4 = n.getStringValue(); },
@@ -6291,10 +6321,9 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
6291
6321
  "contactName": n => { tenDlcApplicationDraft.contactName = n.getStringValue(); },
6292
6322
  "contactPhone": n => { tenDlcApplicationDraft.contactPhone = n.getStringValue(); },
6293
6323
  "ein": n => { tenDlcApplicationDraft.ein = n.getStringValue(); },
6294
- "expectedMonthlyVolume": n => { tenDlcApplicationDraft.expectedMonthlyVolume = n.getNumberValue(); },
6324
+ "expectedMonthlyVolume": n => { tenDlcApplicationDraft.expectedMonthlyVolume = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6295
6325
  "industry": n => { tenDlcApplicationDraft.industry = n.getStringValue(); },
6296
6326
  "lastSubmittedAt": n => { tenDlcApplicationDraft.lastSubmittedAt = n.getDateValue(); },
6297
- "leadSource": n => { tenDlcApplicationDraft.leadSource = n.getStringValue(); },
6298
6327
  "messageExamples": n => { tenDlcApplicationDraft.messageExamples = n.getCollectionOfPrimitiveValues("string"); },
6299
6328
  "missingFields": n => { tenDlcApplicationDraft.missingFields = n.getCollectionOfPrimitiveValues("string"); },
6300
6329
  "optInLanguage": n => { tenDlcApplicationDraft.optInLanguage = n.getStringValue(); },
@@ -6305,7 +6334,7 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
6305
6334
  "updatedAt": n => { tenDlcApplicationDraft.updatedAt = n.getDateValue(); },
6306
6335
  "useCase": n => { tenDlcApplicationDraft.useCase = n.getStringValue(); },
6307
6336
  "useCaseDescription": n => { tenDlcApplicationDraft.useCaseDescription = n.getStringValue(); },
6308
- "version": n => { tenDlcApplicationDraft.version = n.getNumberValue(); },
6337
+ "version": n => { tenDlcApplicationDraft.version = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6309
6338
  "websiteUrl": n => { tenDlcApplicationDraft.websiteUrl = n.getStringValue(); },
6310
6339
  };
6311
6340
  }
@@ -6328,22 +6357,22 @@ export function deserializeIntoTenDlcNotesRequest(tenDlcNotesRequest = {}) {
6328
6357
  // @ts-ignore
6329
6358
  export function deserializeIntoTransactionResponse(transactionResponse = {}) {
6330
6359
  return {
6331
- "amount": n => { transactionResponse.amount = n.getNumberValue(); },
6360
+ "amount": n => { transactionResponse.amount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6332
6361
  "billableUnit": n => { transactionResponse.billableUnit = n.getEnumValue(TransactionResponse_billableUnitObject); },
6333
- "billedAmount": n => { transactionResponse.billedAmount = n.getNumberValue(); },
6362
+ "billedAmount": n => { transactionResponse.billedAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6334
6363
  "billingChannel": n => { transactionResponse.billingChannel = n.getEnumValue(TransactionResponse_billingChannelObject); },
6335
6364
  "createdAt": n => { transactionResponse.createdAt = n.getDateValue(); },
6336
6365
  "description": n => { transactionResponse.description = n.getStringValue(); },
6337
- "gatewayFeeAmount": n => { transactionResponse.gatewayFeeAmount = n.getNumberValue(); },
6366
+ "gatewayFeeAmount": n => { transactionResponse.gatewayFeeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6338
6367
  "gatewayStatus": n => { transactionResponse.gatewayStatus = n.getStringValue(); },
6339
6368
  "id": n => { transactionResponse.id = n.getStringValue(); },
6340
6369
  "lead": n => { transactionResponse.lead = n.getObjectValue(createTransactionResponse_leadFromDiscriminatorValue); },
6341
6370
  "modifiedAt": n => { transactionResponse.modifiedAt = n.getDateValue(); },
6342
- "netAmount": n => { transactionResponse.netAmount = n.getNumberValue(); },
6371
+ "netAmount": n => { transactionResponse.netAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6343
6372
  "notes": n => { transactionResponse.notes = n.getStringValue(); },
6344
6373
  "organization": n => { transactionResponse.organization = n.getObjectValue(createTransactionResponse_organizationFromDiscriminatorValue); },
6345
6374
  "paymentMethodDisplay": n => { transactionResponse.paymentMethodDisplay = n.getStringValue(); },
6346
- "platformFeeAmount": n => { transactionResponse.platformFeeAmount = n.getNumberValue(); },
6375
+ "platformFeeAmount": n => { transactionResponse.platformFeeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6347
6376
  "transactionStatus": n => { transactionResponse.transactionStatus = n.getEnumValue(TransactionStatusObject); },
6348
6377
  "transactionType": n => { transactionResponse.transactionType = n.getEnumValue(TransactionTypeObject); },
6349
6378
  };
@@ -6378,24 +6407,24 @@ export function deserializeIntoTransactionResponse_organization(transactionRespo
6378
6407
  // @ts-ignore
6379
6408
  export function deserializeIntoTransactionTableRow(transactionTableRow = {}) {
6380
6409
  return {
6381
- "amount": n => { transactionTableRow.amount = n.getNumberValue(); },
6410
+ "amount": n => { transactionTableRow.amount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6382
6411
  "billableUnit": n => { transactionTableRow.billableUnit = n.getEnumValue(TransactionTableRow_billableUnitObject); },
6383
- "billedAmount": n => { transactionTableRow.billedAmount = n.getNumberValue(); },
6412
+ "billedAmount": n => { transactionTableRow.billedAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6384
6413
  "billingChannel": n => { transactionTableRow.billingChannel = n.getEnumValue(TransactionTableRow_billingChannelObject); },
6385
6414
  "createdAt": n => { transactionTableRow.createdAt = n.getDateValue(); },
6386
6415
  "description": n => { transactionTableRow.description = n.getStringValue(); },
6387
6416
  "id": n => { transactionTableRow.id = n.getStringValue(); },
6388
6417
  "lead": n => { transactionTableRow.lead = n.getObjectValue(createTransactionTableRow_leadFromDiscriminatorValue); },
6389
- "netAmount": n => { transactionTableRow.netAmount = n.getNumberValue(); },
6418
+ "netAmount": n => { transactionTableRow.netAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6390
6419
  "organization": n => { transactionTableRow.organization = n.getObjectValue(createTransactionTableRow_organizationFromDiscriminatorValue); },
6391
6420
  "paymentMethodDisplay": n => { transactionTableRow.paymentMethodDisplay = n.getStringValue(); },
6392
6421
  "pricingVersion": n => { transactionTableRow.pricingVersion = n.getStringValue(); },
6393
- "quantity": n => { transactionTableRow.quantity = n.getNumberValue(); },
6422
+ "quantity": n => { transactionTableRow.quantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6394
6423
  "sourceEventId": n => { transactionTableRow.sourceEventId = n.getStringValue(); },
6395
6424
  "sourceEventType": n => { transactionTableRow.sourceEventType = n.getStringValue(); },
6396
6425
  "transactionStatus": n => { transactionTableRow.transactionStatus = n.getEnumValue(TransactionStatusObject); },
6397
6426
  "transactionType": n => { transactionTableRow.transactionType = n.getEnumValue(TransactionTypeObject); },
6398
- "unitPrice": n => { transactionTableRow.unitPrice = n.getNumberValue(); },
6427
+ "unitPrice": n => { transactionTableRow.unitPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6399
6428
  };
6400
6429
  }
6401
6430
  /**
@@ -6444,9 +6473,9 @@ export function deserializeIntoUsageCounterLine(usageCounterLine = {}) {
6444
6473
  return {
6445
6474
  "key": n => { usageCounterLine.key = n.getStringValue(); },
6446
6475
  "label": n => { usageCounterLine.label = n.getStringValue(); },
6447
- "sortOrder": n => { usageCounterLine.sortOrder = n.getNumberValue(); },
6476
+ "sortOrder": n => { usageCounterLine.sortOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6448
6477
  "unit": n => { usageCounterLine.unit = n.getStringValue(); },
6449
- "value": n => { usageCounterLine.value = n.getNumberValue(); },
6478
+ "value": n => { usageCounterLine.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6450
6479
  };
6451
6480
  }
6452
6481
  /**
@@ -6457,23 +6486,23 @@ export function deserializeIntoUsageCounterLine(usageCounterLine = {}) {
6457
6486
  // @ts-ignore
6458
6487
  export function deserializeIntoUsageLedgerTableRow(usageLedgerTableRow = {}) {
6459
6488
  return {
6460
- "billableSeconds": n => { usageLedgerTableRow.billableSeconds = n.getNumberValue(); },
6489
+ "billableSeconds": n => { usageLedgerTableRow.billableSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6461
6490
  "billableUnit": n => { usageLedgerTableRow.billableUnit = n.getEnumValue(BillableUnitObject); },
6462
6491
  "channel": n => { usageLedgerTableRow.channel = n.getEnumValue(UsageChannelObject); },
6463
6492
  "createdAt": n => { usageLedgerTableRow.createdAt = n.getDateValue(); },
6464
- "customerChargeAmount": n => { usageLedgerTableRow.customerChargeAmount = n.getNumberValue(); },
6493
+ "customerChargeAmount": n => { usageLedgerTableRow.customerChargeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6465
6494
  "description": n => { usageLedgerTableRow.description = n.getStringValue(); },
6466
- "durationSeconds": n => { usageLedgerTableRow.durationSeconds = n.getNumberValue(); },
6495
+ "durationSeconds": n => { usageLedgerTableRow.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6467
6496
  "id": n => { usageLedgerTableRow.id = n.getStringValue(); },
6468
6497
  "isBillable": n => { usageLedgerTableRow.isBillable = n.getBooleanValue(); },
6469
6498
  "lead": n => { usageLedgerTableRow.lead = n.getObjectValue(createUsageLedgerTableRow_leadFromDiscriminatorValue); },
6470
6499
  "organization": n => { usageLedgerTableRow.organization = n.getObjectValue(createUsageLedgerTableRow_organizationFromDiscriminatorValue); },
6471
6500
  "phoneNumber": n => { usageLedgerTableRow.phoneNumber = n.getStringValue(); },
6472
6501
  "phoneNumberId": n => { usageLedgerTableRow.phoneNumberId = n.getStringValue(); },
6473
- "quantity": n => { usageLedgerTableRow.quantity = n.getNumberValue(); },
6474
- "smsSegments": n => { usageLedgerTableRow.smsSegments = n.getNumberValue(); },
6502
+ "quantity": n => { usageLedgerTableRow.quantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6503
+ "smsSegments": n => { usageLedgerTableRow.smsSegments = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6475
6504
  "status": n => { usageLedgerTableRow.status = n.getEnumValue(UsageStatusObject); },
6476
- "unitPrice": n => { usageLedgerTableRow.unitPrice = n.getNumberValue(); },
6505
+ "unitPrice": n => { usageLedgerTableRow.unitPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6477
6506
  "user": n => { usageLedgerTableRow.user = n.getObjectValue(createUsageLedgerTableRow_userFromDiscriminatorValue); },
6478
6507
  };
6479
6508
  }
@@ -6520,9 +6549,9 @@ export function deserializeIntoUsageSummaryLine(usageSummaryLine = {}) {
6520
6549
  return {
6521
6550
  "billableUnit": n => { usageSummaryLine.billableUnit = n.getEnumValue(BillableUnitObject); },
6522
6551
  "channel": n => { usageSummaryLine.channel = n.getEnumValue(UsageChannelObject); },
6523
- "customerChargeAmount": n => { usageSummaryLine.customerChargeAmount = n.getNumberValue(); },
6524
- "quantity": n => { usageSummaryLine.quantity = n.getNumberValue(); },
6525
- "recordCount": n => { usageSummaryLine.recordCount = n.getNumberValue(); },
6552
+ "customerChargeAmount": n => { usageSummaryLine.customerChargeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6553
+ "quantity": n => { usageSummaryLine.quantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6554
+ "recordCount": n => { usageSummaryLine.recordCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6526
6555
  "status": n => { usageSummaryLine.status = n.getEnumValue(UsageStatusObject); },
6527
6556
  };
6528
6557
  }
@@ -6534,15 +6563,15 @@ export function deserializeIntoUsageSummaryLine(usageSummaryLine = {}) {
6534
6563
  // @ts-ignore
6535
6564
  export function deserializeIntoUsageSummaryResponse(usageSummaryResponse = {}) {
6536
6565
  return {
6537
- "billableQuantityTotal": n => { usageSummaryResponse.billableQuantityTotal = n.getNumberValue(); },
6566
+ "billableQuantityTotal": n => { usageSummaryResponse.billableQuantityTotal = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6538
6567
  "counters": n => { usageSummaryResponse.counters = n.getCollectionOfObjectValues(createUsageCounterLineFromDiscriminatorValue); },
6539
- "customerChargeTotal": n => { usageSummaryResponse.customerChargeTotal = n.getNumberValue(); },
6540
- "failedCount": n => { usageSummaryResponse.failedCount = n.getNumberValue(); },
6568
+ "customerChargeTotal": n => { usageSummaryResponse.customerChargeTotal = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6569
+ "failedCount": n => { usageSummaryResponse.failedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6541
6570
  "lines": n => { usageSummaryResponse.lines = n.getCollectionOfObjectValues(createUsageSummaryLineFromDiscriminatorValue); },
6542
- "pendingInvoiceCount": n => { usageSummaryResponse.pendingInvoiceCount = n.getNumberValue(); },
6571
+ "pendingInvoiceCount": n => { usageSummaryResponse.pendingInvoiceCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6543
6572
  "periodEnd": n => { usageSummaryResponse.periodEnd = n.getDateValue(); },
6544
6573
  "periodStart": n => { usageSummaryResponse.periodStart = n.getDateValue(); },
6545
- "transactionCount": n => { usageSummaryResponse.transactionCount = n.getNumberValue(); },
6574
+ "transactionCount": n => { usageSummaryResponse.transactionCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6546
6575
  };
6547
6576
  }
6548
6577
  /**
@@ -6572,7 +6601,7 @@ export function deserializeIntoUserDataExportFile(userDataExportFile = {}) {
6572
6601
  "category": n => { userDataExportFile.category = n.getStringValue(); },
6573
6602
  "contentType": n => { userDataExportFile.contentType = n.getStringValue(); },
6574
6603
  "fileName": n => { userDataExportFile.fileName = n.getStringValue(); },
6575
- "rowCount": n => { userDataExportFile.rowCount = n.getNumberValue(); },
6604
+ "rowCount": n => { userDataExportFile.rowCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6576
6605
  };
6577
6606
  }
6578
6607
  /**
@@ -6585,17 +6614,17 @@ export function deserializeIntoUserDataExportResponse(userDataExportResponse = {
6585
6614
  return {
6586
6615
  "completedAt": n => { userDataExportResponse.completedAt = n.getDateValue(); },
6587
6616
  "contentType": n => { userDataExportResponse.contentType = n.getStringValue(); },
6588
- "downloadCount": n => { userDataExportResponse.downloadCount = n.getNumberValue(); },
6617
+ "downloadCount": n => { userDataExportResponse.downloadCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6589
6618
  "downloadUrl": n => { userDataExportResponse.downloadUrl = n.getStringValue(); },
6590
6619
  "expiresAt": n => { userDataExportResponse.expiresAt = n.getDateValue(); },
6591
6620
  "failedAt": n => { userDataExportResponse.failedAt = n.getDateValue(); },
6592
6621
  "fileName": n => { userDataExportResponse.fileName = n.getStringValue(); },
6593
6622
  "files": n => { userDataExportResponse.files = n.getCollectionOfObjectValues(createUserDataExportFileFromDiscriminatorValue); },
6594
6623
  "id": n => { userDataExportResponse.id = n.getStringValue(); },
6595
- "maxDownloadCount": n => { userDataExportResponse.maxDownloadCount = n.getNumberValue(); },
6624
+ "maxDownloadCount": n => { userDataExportResponse.maxDownloadCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6596
6625
  "message": n => { userDataExportResponse.message = n.getStringValue(); },
6597
6626
  "requestedAt": n => { userDataExportResponse.requestedAt = n.getDateValue(); },
6598
- "sizeBytes": n => { userDataExportResponse.sizeBytes = n.getNumberValue(); },
6627
+ "sizeBytes": n => { userDataExportResponse.sizeBytes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6599
6628
  "startedAt": n => { userDataExportResponse.startedAt = n.getDateValue(); },
6600
6629
  "status": n => { userDataExportResponse.status = n.getEnumValue(UserDataExportStatusesObject); },
6601
6630
  };
@@ -6801,20 +6830,20 @@ export function deserializeIntoUserResponse_notificationPreferences(userResponse
6801
6830
  // @ts-ignore
6802
6831
  export function deserializeIntoWalletResponse(walletResponse = {}) {
6803
6832
  return {
6804
- "amountPurchased": n => { walletResponse.amountPurchased = n.getNumberValue(); },
6805
- "amountRemaining": n => { walletResponse.amountRemaining = n.getNumberValue(); },
6806
- "balance": n => { walletResponse.balance = n.getNumberValue(); },
6833
+ "amountPurchased": n => { walletResponse.amountPurchased = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6834
+ "amountRemaining": n => { walletResponse.amountRemaining = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6835
+ "balance": n => { walletResponse.balance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6807
6836
  "balanceCalculatedAt": n => { walletResponse.balanceCalculatedAt = n.getDateValue(); },
6808
6837
  "createdAt": n => { walletResponse.createdAt = n.getDateValue(); },
6809
6838
  "creditStatus": n => { walletResponse.creditStatus = n.getEnumValue(WalletResponse_creditStatusObject); },
6810
6839
  "currency": n => { walletResponse.currency = n.getStringValue(); },
6811
- "expiredCreditAmount": n => { walletResponse.expiredCreditAmount = n.getNumberValue(); },
6840
+ "expiredCreditAmount": n => { walletResponse.expiredCreditAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6812
6841
  "expiresAt": n => { walletResponse.expiresAt = n.getDateValue(); },
6813
6842
  "id": n => { walletResponse.id = n.getStringValue(); },
6814
6843
  "modifiedAt": n => { walletResponse.modifiedAt = n.getDateValue(); },
6815
6844
  "name": n => { walletResponse.name = n.getStringValue(); },
6816
6845
  "nextCreditExpirationAt": n => { walletResponse.nextCreditExpirationAt = n.getDateValue(); },
6817
- "nextExpiringCreditAmount": n => { walletResponse.nextExpiringCreditAmount = n.getNumberValue(); },
6846
+ "nextExpiringCreditAmount": n => { walletResponse.nextExpiringCreditAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6818
6847
  "organizationId": n => { walletResponse.organizationId = n.getStringValue(); },
6819
6848
  "originalTransactionId": n => { walletResponse.originalTransactionId = n.getStringValue(); },
6820
6849
  "purchasedAt": n => { walletResponse.purchasedAt = n.getDateValue(); },
@@ -6851,7 +6880,7 @@ export function serializeActivationDomainOption(writer, activationDomainOption =
6851
6880
  }
6852
6881
  writer.writeStringValue("availabilityStatus", activationDomainOption.availabilityStatus);
6853
6882
  writer.writeStringValue("domainName", activationDomainOption.domainName);
6854
- writer.writeNumberValue("estimatedAnnualCost", activationDomainOption.estimatedAnnualCost);
6883
+ writer.writeObjectValue("estimatedAnnualCost", activationDomainOption.estimatedAnnualCost);
6855
6884
  writer.writeStringValue("industryRelevance", activationDomainOption.industryRelevance);
6856
6885
  writer.writeBooleanValue("recommended", activationDomainOption.recommended);
6857
6886
  writer.writeStringValue("trustConcerns", activationDomainOption.trustConcerns);
@@ -6903,10 +6932,10 @@ export function serializeAnalyticsComparison(writer, analyticsComparison = {}, i
6903
6932
  if (!analyticsComparison || isSerializingDerivedType) {
6904
6933
  return;
6905
6934
  }
6906
- writer.writeNumberValue("changePercent", analyticsComparison.changePercent);
6907
- writer.writeNumberValue("current", analyticsComparison.current);
6935
+ writer.writeObjectValue("changePercent", analyticsComparison.changePercent);
6936
+ writer.writeObjectValue("current", analyticsComparison.current);
6908
6937
  writer.writeStringValue("direction", analyticsComparison.direction);
6909
- writer.writeNumberValue("previous", analyticsComparison.previous);
6938
+ writer.writeObjectValue("previous", analyticsComparison.previous);
6910
6939
  writer.writeAdditionalData(analyticsComparison.additionalData);
6911
6940
  }
6912
6941
  /**
@@ -6939,7 +6968,7 @@ export function serializeAnalyticsTrendPointOfdecimal(writer, analyticsTrendPoin
6939
6968
  writer.writeDateValue("endAt", analyticsTrendPointOfdecimal.endAt);
6940
6969
  writer.writeStringValue("label", analyticsTrendPointOfdecimal.label);
6941
6970
  writer.writeDateValue("startAt", analyticsTrendPointOfdecimal.startAt);
6942
- writer.writeNumberValue("value", analyticsTrendPointOfdecimal.value);
6971
+ writer.writeObjectValue("value", analyticsTrendPointOfdecimal.value);
6943
6972
  writer.writeAdditionalData(analyticsTrendPointOfdecimal.additionalData);
6944
6973
  }
6945
6974
  /**
@@ -6956,7 +6985,7 @@ export function serializeAnalyticsTrendPointOfint(writer, analyticsTrendPointOfi
6956
6985
  writer.writeDateValue("endAt", analyticsTrendPointOfint.endAt);
6957
6986
  writer.writeStringValue("label", analyticsTrendPointOfint.label);
6958
6987
  writer.writeDateValue("startAt", analyticsTrendPointOfint.startAt);
6959
- writer.writeNumberValue("value", analyticsTrendPointOfint.value);
6988
+ writer.writeObjectValue("value", analyticsTrendPointOfint.value);
6960
6989
  writer.writeAdditionalData(analyticsTrendPointOfint.additionalData);
6961
6990
  }
6962
6991
  /**
@@ -6972,7 +7001,7 @@ export function serializeAutomationAction(writer, automationAction = {}, isSeria
6972
7001
  }
6973
7002
  writer.writeStringValue("id", automationAction.id);
6974
7003
  writer.writeBooleanValue("isEnabled", automationAction.isEnabled);
6975
- writer.writeNumberValue("order", automationAction.order);
7004
+ writer.writeObjectValue("order", automationAction.order);
6976
7005
  writer.writeObjectValue("settings", automationAction.settings, serializeAutomationAction_settings);
6977
7006
  writer.writeStringValue("type", automationAction.type);
6978
7007
  writer.writeAdditionalData(automationAction.additionalData);
@@ -7009,8 +7038,8 @@ export function serializeAutomationActionRunRecord(writer, automationActionRunRe
7009
7038
  writer.writeStringValue("failureCode", automationActionRunRecord.failureCode);
7010
7039
  writer.writeStringValue("id", automationActionRunRecord.id);
7011
7040
  writer.writeDateValue("nextRetryAt", automationActionRunRecord.nextRetryAt);
7012
- writer.writeNumberValue("order", automationActionRunRecord.order);
7013
- writer.writeNumberValue("processingAttempts", automationActionRunRecord.processingAttempts);
7041
+ writer.writeObjectValue("order", automationActionRunRecord.order);
7042
+ writer.writeObjectValue("processingAttempts", automationActionRunRecord.processingAttempts);
7014
7043
  writer.writeDateValue("scheduledAt", automationActionRunRecord.scheduledAt);
7015
7044
  writer.writeDateValue("startedAt", automationActionRunRecord.startedAt);
7016
7045
  writer.writeStringValue("status", automationActionRunRecord.status);
@@ -7180,7 +7209,7 @@ export function serializeAutomationRequest(writer, automationRequest = {}, isSer
7180
7209
  writer.writeStringValue("name", automationRequest.name);
7181
7210
  writer.writeStringValue("scope", automationRequest.scope);
7182
7211
  writer.writeCollectionOfObjectValues("triggers", automationRequest.triggers, serializeAutomationTrigger);
7183
- writer.writeNumberValue("version", automationRequest.version);
7212
+ writer.writeObjectValue("version", automationRequest.version);
7184
7213
  writer.writeStringValue("visibility", automationRequest.visibility);
7185
7214
  writer.writeAdditionalData(automationRequest.additionalData);
7186
7215
  }
@@ -7242,7 +7271,7 @@ export function serializeAutomationResponse(writer, automationResponse = {}, isS
7242
7271
  writer.writeStringValue("scope", automationResponse.scope);
7243
7272
  writer.writeCollectionOfObjectValues("triggers", automationResponse.triggers, serializeAutomationTrigger);
7244
7273
  writer.writeObjectValue("user", automationResponse.user, serializeAutomationResponse_user);
7245
- writer.writeNumberValue("version", automationResponse.version);
7274
+ writer.writeObjectValue("version", automationResponse.version);
7246
7275
  writer.writeStringValue("visibility", automationResponse.visibility);
7247
7276
  writer.writeAdditionalData(automationResponse.additionalData);
7248
7277
  }
@@ -7292,7 +7321,7 @@ export function serializeAutomationRunRecord(writer, automationRunRecord = {}, i
7292
7321
  writer.writeDateValue("lastAttemptAt", automationRunRecord.lastAttemptAt);
7293
7322
  writer.writeStringValue("leadId", automationRunRecord.leadId);
7294
7323
  writer.writeStringValue("organizationId", automationRunRecord.organizationId);
7295
- writer.writeNumberValue("processingAttempts", automationRunRecord.processingAttempts);
7324
+ writer.writeObjectValue("processingAttempts", automationRunRecord.processingAttempts);
7296
7325
  writer.writeStringValue("skippedReason", automationRunRecord.skippedReason);
7297
7326
  writer.writeDateValue("startedAt", automationRunRecord.startedAt);
7298
7327
  writer.writeStringValue("status", automationRunRecord.status);
@@ -7423,7 +7452,7 @@ export function serializeAutomationWorkflowActionResponse(writer, automationWork
7423
7452
  writer.writeStringValue("failureCode", automationWorkflowActionResponse.failureCode);
7424
7453
  writer.writeStringValue("id", automationWorkflowActionResponse.id);
7425
7454
  writer.writeDateValue("nextRetryAt", automationWorkflowActionResponse.nextRetryAt);
7426
- writer.writeNumberValue("retryCount", automationWorkflowActionResponse.retryCount);
7455
+ writer.writeObjectValue("retryCount", automationWorkflowActionResponse.retryCount);
7427
7456
  writer.writeStringValue("safeReason", automationWorkflowActionResponse.safeReason);
7428
7457
  writer.writeDateValue("scheduledAt", automationWorkflowActionResponse.scheduledAt);
7429
7458
  writer.writeDateValue("skippedAt", automationWorkflowActionResponse.skippedAt);
@@ -7432,7 +7461,7 @@ export function serializeAutomationWorkflowActionResponse(writer, automationWork
7432
7461
  writer.writeStringValue("statusDisplay", automationWorkflowActionResponse.statusDisplay);
7433
7462
  writer.writeStringValue("stepDisplayName", automationWorkflowActionResponse.stepDisplayName);
7434
7463
  writer.writeStringValue("stepId", automationWorkflowActionResponse.stepId);
7435
- writer.writeNumberValue("stepOrder", automationWorkflowActionResponse.stepOrder);
7464
+ writer.writeObjectValue("stepOrder", automationWorkflowActionResponse.stepOrder);
7436
7465
  writer.writeStringValue("userSummary", automationWorkflowActionResponse.userSummary);
7437
7466
  writer.writeAdditionalData(automationWorkflowActionResponse.additionalData);
7438
7467
  }
@@ -7474,7 +7503,7 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
7474
7503
  writer.writeDateValue("cancelledAt", automationWorkflowRunResponse.cancelledAt);
7475
7504
  writer.writeDateValue("completedAt", automationWorkflowRunResponse.completedAt);
7476
7505
  writer.writeObjectValue("currentStep", automationWorkflowRunResponse.currentStep, serializeAutomationWorkflowRunResponse_currentStep);
7477
- writer.writeNumberValue("currentStepOrder", automationWorkflowRunResponse.currentStepOrder);
7506
+ writer.writeObjectValue("currentStepOrder", automationWorkflowRunResponse.currentStepOrder);
7478
7507
  writer.writeCollectionOfObjectValues("events", automationWorkflowRunResponse.events, serializeAutomationWorkflowEventResponse);
7479
7508
  writer.writeDateValue("failedAt", automationWorkflowRunResponse.failedAt);
7480
7509
  writer.writeStringValue("id", automationWorkflowRunResponse.id);
@@ -7483,11 +7512,11 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
7483
7512
  writer.writeStringValue("lastErrorMessage", automationWorkflowRunResponse.lastErrorMessage);
7484
7513
  writer.writeDateValue("lastExecutionAt", automationWorkflowRunResponse.lastExecutionAt);
7485
7514
  writer.writeStringValue("leadId", automationWorkflowRunResponse.leadId);
7486
- writer.writeNumberValue("maxRetryCount", automationWorkflowRunResponse.maxRetryCount);
7515
+ writer.writeObjectValue("maxRetryCount", automationWorkflowRunResponse.maxRetryCount);
7487
7516
  writer.writeDateValue("nextExecutionAt", automationWorkflowRunResponse.nextExecutionAt);
7488
7517
  writer.writeDateValue("nextRetryAt", automationWorkflowRunResponse.nextRetryAt);
7489
7518
  writer.writeStringValue("organizationId", automationWorkflowRunResponse.organizationId);
7490
- writer.writeNumberValue("retryCount", automationWorkflowRunResponse.retryCount);
7519
+ writer.writeObjectValue("retryCount", automationWorkflowRunResponse.retryCount);
7491
7520
  writer.writeStringValue("skipReasonCode", automationWorkflowRunResponse.skipReasonCode);
7492
7521
  writer.writeStringValue("skipReasonDisplay", automationWorkflowRunResponse.skipReasonDisplay);
7493
7522
  writer.writeDateValue("startedAt", automationWorkflowRunResponse.startedAt);
@@ -7551,14 +7580,14 @@ export function serializeCallEventTableRow(writer, callEventTableRow = {}, isSer
7551
7580
  return;
7552
7581
  }
7553
7582
  writer.writeDateValue("answeredAt", callEventTableRow.answeredAt);
7554
- writer.writeNumberValue("billableAmount", callEventTableRow.billableAmount);
7555
- writer.writeNumberValue("billableSeconds", callEventTableRow.billableSeconds);
7583
+ writer.writeObjectValue("billableAmount", callEventTableRow.billableAmount);
7584
+ writer.writeObjectValue("billableSeconds", callEventTableRow.billableSeconds);
7556
7585
  writer.writeStringValue("billingStatus", callEventTableRow.billingStatus);
7557
7586
  writer.writeStringValue("callerId", callEventTableRow.callerId);
7558
7587
  writer.writeStringValue("conversationId", callEventTableRow.conversationId);
7559
7588
  writer.writeDateValue("createdAt", callEventTableRow.createdAt);
7560
7589
  writer.writeStringValue("direction", callEventTableRow.direction);
7561
- writer.writeNumberValue("duration", callEventTableRow.duration);
7590
+ writer.writeObjectValue("duration", callEventTableRow.duration);
7562
7591
  writer.writeDateValue("endedAt", callEventTableRow.endedAt);
7563
7592
  writer.writeStringValue("fromPhoneNumber", callEventTableRow.fromPhoneNumber);
7564
7593
  writer.writeStringValue("fromPhoneNumberId", callEventTableRow.fromPhoneNumberId);
@@ -7721,8 +7750,8 @@ export function serializeCoordinate(writer, coordinate = {}, isSerializingDerive
7721
7750
  if (!coordinate || isSerializingDerivedType) {
7722
7751
  return;
7723
7752
  }
7724
- writer.writeNumberValue("latitude", coordinate.latitude);
7725
- writer.writeNumberValue("longitude", coordinate.longitude);
7753
+ writer.writeObjectValue("latitude", coordinate.latitude);
7754
+ writer.writeObjectValue("longitude", coordinate.longitude);
7726
7755
  writer.writeAdditionalData(coordinate.additionalData);
7727
7756
  }
7728
7757
  /**
@@ -7827,22 +7856,22 @@ export function serializeCustomerAnalyticsSummary(writer, customerAnalyticsSumma
7827
7856
  if (!customerAnalyticsSummary || isSerializingDerivedType) {
7828
7857
  return;
7829
7858
  }
7830
- writer.writeNumberValue("averageResponseMinutes", customerAnalyticsSummary.averageResponseMinutes);
7859
+ writer.writeObjectValue("averageResponseMinutes", customerAnalyticsSummary.averageResponseMinutes);
7831
7860
  writer.writeStringValue("billingStatus", customerAnalyticsSummary.billingStatus);
7832
- writer.writeNumberValue("callMinutes", customerAnalyticsSummary.callMinutes);
7833
- writer.writeNumberValue("callsPlaced", customerAnalyticsSummary.callsPlaced);
7834
- writer.writeNumberValue("callsReceived", customerAnalyticsSummary.callsReceived);
7835
- writer.writeNumberValue("leads", customerAnalyticsSummary.leads);
7861
+ writer.writeObjectValue("callMinutes", customerAnalyticsSummary.callMinutes);
7862
+ writer.writeObjectValue("callsPlaced", customerAnalyticsSummary.callsPlaced);
7863
+ writer.writeObjectValue("callsReceived", customerAnalyticsSummary.callsReceived);
7864
+ writer.writeObjectValue("leads", customerAnalyticsSummary.leads);
7836
7865
  writer.writeObjectValue("leadsComparison", customerAnalyticsSummary.leadsComparison, serializeAnalyticsComparison);
7837
- writer.writeNumberValue("medianResponseMinutes", customerAnalyticsSummary.medianResponseMinutes);
7838
- writer.writeNumberValue("missedCalls", customerAnalyticsSummary.missedCalls);
7839
- writer.writeNumberValue("missedLeads", customerAnalyticsSummary.missedLeads);
7840
- writer.writeNumberValue("respondedWithinFiveMinutesPercent", customerAnalyticsSummary.respondedWithinFiveMinutesPercent);
7841
- writer.writeNumberValue("smsReceived", customerAnalyticsSummary.smsReceived);
7842
- writer.writeNumberValue("smsSent", customerAnalyticsSummary.smsSent);
7843
- writer.writeNumberValue("unreadMessages", customerAnalyticsSummary.unreadMessages);
7844
- writer.writeNumberValue("usageSpend", customerAnalyticsSummary.usageSpend);
7845
- writer.writeNumberValue("walletBalance", customerAnalyticsSummary.walletBalance);
7866
+ writer.writeObjectValue("medianResponseMinutes", customerAnalyticsSummary.medianResponseMinutes);
7867
+ writer.writeObjectValue("missedCalls", customerAnalyticsSummary.missedCalls);
7868
+ writer.writeObjectValue("missedLeads", customerAnalyticsSummary.missedLeads);
7869
+ writer.writeObjectValue("respondedWithinFiveMinutesPercent", customerAnalyticsSummary.respondedWithinFiveMinutesPercent);
7870
+ writer.writeObjectValue("smsReceived", customerAnalyticsSummary.smsReceived);
7871
+ writer.writeObjectValue("smsSent", customerAnalyticsSummary.smsSent);
7872
+ writer.writeObjectValue("unreadMessages", customerAnalyticsSummary.unreadMessages);
7873
+ writer.writeObjectValue("usageSpend", customerAnalyticsSummary.usageSpend);
7874
+ writer.writeObjectValue("walletBalance", customerAnalyticsSummary.walletBalance);
7846
7875
  writer.writeStringValue("walletStatus", customerAnalyticsSummary.walletStatus);
7847
7876
  writer.writeAdditionalData(customerAnalyticsSummary.additionalData);
7848
7877
  }
@@ -7857,13 +7886,13 @@ export function serializeCustomerAutomationHealth(writer, customerAutomationHeal
7857
7886
  if (!customerAutomationHealth || isSerializingDerivedType) {
7858
7887
  return;
7859
7888
  }
7860
- writer.writeNumberValue("automationCount", customerAutomationHealth.automationCount);
7861
- writer.writeNumberValue("enabledCount", customerAutomationHealth.enabledCount);
7862
- writer.writeNumberValue("executions", customerAutomationHealth.executions);
7889
+ writer.writeObjectValue("automationCount", customerAutomationHealth.automationCount);
7890
+ writer.writeObjectValue("enabledCount", customerAutomationHealth.enabledCount);
7891
+ writer.writeObjectValue("executions", customerAutomationHealth.executions);
7863
7892
  writer.writeCollectionOfObjectValues("failingAutomations", customerAutomationHealth.failingAutomations, serializeCustomerFailingAutomation);
7864
- writer.writeNumberValue("failureCount", customerAutomationHealth.failureCount);
7893
+ writer.writeObjectValue("failureCount", customerAutomationHealth.failureCount);
7865
7894
  writer.writeObjectValue("lastFailure", customerAutomationHealth.lastFailure, serializeCustomerAutomationHealth_lastFailure);
7866
- writer.writeNumberValue("successCount", customerAutomationHealth.successCount);
7895
+ writer.writeObjectValue("successCount", customerAutomationHealth.successCount);
7867
7896
  writer.writeAdditionalData(customerAutomationHealth.additionalData);
7868
7897
  }
7869
7898
  /**
@@ -7890,16 +7919,16 @@ export function serializeCustomerCommunicationUsage(writer, customerCommunicatio
7890
7919
  if (!customerCommunicationUsage || isSerializingDerivedType) {
7891
7920
  return;
7892
7921
  }
7893
- writer.writeNumberValue("answeredCalls", customerCommunicationUsage.answeredCalls);
7894
- writer.writeNumberValue("callMinutes", customerCommunicationUsage.callMinutes);
7895
- writer.writeNumberValue("callsPlaced", customerCommunicationUsage.callsPlaced);
7896
- writer.writeNumberValue("callsReceived", customerCommunicationUsage.callsReceived);
7897
- writer.writeNumberValue("failedOrBlockedSms", customerCommunicationUsage.failedOrBlockedSms);
7898
- writer.writeNumberValue("missedCalls", customerCommunicationUsage.missedCalls);
7899
- writer.writeNumberValue("smsReceived", customerCommunicationUsage.smsReceived);
7900
- writer.writeNumberValue("smsSent", customerCommunicationUsage.smsSent);
7922
+ writer.writeObjectValue("answeredCalls", customerCommunicationUsage.answeredCalls);
7923
+ writer.writeObjectValue("callMinutes", customerCommunicationUsage.callMinutes);
7924
+ writer.writeObjectValue("callsPlaced", customerCommunicationUsage.callsPlaced);
7925
+ writer.writeObjectValue("callsReceived", customerCommunicationUsage.callsReceived);
7926
+ writer.writeObjectValue("failedOrBlockedSms", customerCommunicationUsage.failedOrBlockedSms);
7927
+ writer.writeObjectValue("missedCalls", customerCommunicationUsage.missedCalls);
7928
+ writer.writeObjectValue("smsReceived", customerCommunicationUsage.smsReceived);
7929
+ writer.writeObjectValue("smsSent", customerCommunicationUsage.smsSent);
7901
7930
  writer.writeCollectionOfObjectValues("trend", customerCommunicationUsage.trend, serializeCustomerCommunicationUsagePoint);
7902
- writer.writeNumberValue("usageSpend", customerCommunicationUsage.usageSpend);
7931
+ writer.writeObjectValue("usageSpend", customerCommunicationUsage.usageSpend);
7903
7932
  writer.writeAdditionalData(customerCommunicationUsage.additionalData);
7904
7933
  }
7905
7934
  /**
@@ -7913,13 +7942,13 @@ export function serializeCustomerCommunicationUsagePoint(writer, customerCommuni
7913
7942
  if (!customerCommunicationUsagePoint || isSerializingDerivedType) {
7914
7943
  return;
7915
7944
  }
7916
- writer.writeNumberValue("callMinutes", customerCommunicationUsagePoint.callMinutes);
7917
- writer.writeNumberValue("calls", customerCommunicationUsagePoint.calls);
7945
+ writer.writeObjectValue("callMinutes", customerCommunicationUsagePoint.callMinutes);
7946
+ writer.writeObjectValue("calls", customerCommunicationUsagePoint.calls);
7918
7947
  writer.writeDateValue("endAt", customerCommunicationUsagePoint.endAt);
7919
7948
  writer.writeStringValue("label", customerCommunicationUsagePoint.label);
7920
- writer.writeNumberValue("smsReceived", customerCommunicationUsagePoint.smsReceived);
7921
- writer.writeNumberValue("smsSent", customerCommunicationUsagePoint.smsSent);
7922
- writer.writeNumberValue("spend", customerCommunicationUsagePoint.spend);
7949
+ writer.writeObjectValue("smsReceived", customerCommunicationUsagePoint.smsReceived);
7950
+ writer.writeObjectValue("smsSent", customerCommunicationUsagePoint.smsSent);
7951
+ writer.writeObjectValue("spend", customerCommunicationUsagePoint.spend);
7923
7952
  writer.writeDateValue("startAt", customerCommunicationUsagePoint.startAt);
7924
7953
  writer.writeAdditionalData(customerCommunicationUsagePoint.additionalData);
7925
7954
  }
@@ -7951,8 +7980,8 @@ export function serializeCustomerLeadSourceBreakdown(writer, customerLeadSourceB
7951
7980
  if (!customerLeadSourceBreakdown || isSerializingDerivedType) {
7952
7981
  return;
7953
7982
  }
7954
- writer.writeNumberValue("leads", customerLeadSourceBreakdown.leads);
7955
- writer.writeNumberValue("percent", customerLeadSourceBreakdown.percent);
7983
+ writer.writeObjectValue("leads", customerLeadSourceBreakdown.leads);
7984
+ writer.writeObjectValue("percent", customerLeadSourceBreakdown.percent);
7956
7985
  writer.writeStringValue("source", customerLeadSourceBreakdown.source);
7957
7986
  writer.writeAdditionalData(customerLeadSourceBreakdown.additionalData);
7958
7987
  }
@@ -7969,7 +7998,7 @@ export function serializeCustomerLeadTrend(writer, customerLeadTrend = {}, isSer
7969
7998
  }
7970
7999
  writer.writeObjectValue("comparison", customerLeadTrend.comparison, serializeAnalyticsComparison);
7971
8000
  writer.writeCollectionOfObjectValues("points", customerLeadTrend.points, serializeAnalyticsTrendPointOfint);
7972
- writer.writeNumberValue("total", customerLeadTrend.total);
8001
+ writer.writeObjectValue("total", customerLeadTrend.total);
7973
8002
  writer.writeAdditionalData(customerLeadTrend.additionalData);
7974
8003
  }
7975
8004
  /**
@@ -8001,14 +8030,14 @@ export function serializeCustomerResponseMetrics(writer, customerResponseMetrics
8001
8030
  if (!customerResponseMetrics || isSerializingDerivedType) {
8002
8031
  return;
8003
8032
  }
8004
- writer.writeNumberValue("averageMinutes", customerResponseMetrics.averageMinutes);
8033
+ writer.writeObjectValue("averageMinutes", customerResponseMetrics.averageMinutes);
8005
8034
  writer.writeCollectionOfObjectValues("averageMinutesTrend", customerResponseMetrics.averageMinutesTrend, serializeAnalyticsTrendPointOfdecimal);
8006
- writer.writeNumberValue("medianMinutes", customerResponseMetrics.medianMinutes);
8007
- writer.writeNumberValue("missedCalls", customerResponseMetrics.missedCalls);
8008
- writer.writeNumberValue("respondedLeads", customerResponseMetrics.respondedLeads);
8009
- writer.writeNumberValue("respondedWithinFiveMinutesPercent", customerResponseMetrics.respondedWithinFiveMinutesPercent);
8010
- writer.writeNumberValue("unreadMessages", customerResponseMetrics.unreadMessages);
8011
- writer.writeNumberValue("unrespondedLeads", customerResponseMetrics.unrespondedLeads);
8035
+ writer.writeObjectValue("medianMinutes", customerResponseMetrics.medianMinutes);
8036
+ writer.writeObjectValue("missedCalls", customerResponseMetrics.missedCalls);
8037
+ writer.writeObjectValue("respondedLeads", customerResponseMetrics.respondedLeads);
8038
+ writer.writeObjectValue("respondedWithinFiveMinutesPercent", customerResponseMetrics.respondedWithinFiveMinutesPercent);
8039
+ writer.writeObjectValue("unreadMessages", customerResponseMetrics.unreadMessages);
8040
+ writer.writeObjectValue("unrespondedLeads", customerResponseMetrics.unrespondedLeads);
8012
8041
  writer.writeAdditionalData(customerResponseMetrics.additionalData);
8013
8042
  }
8014
8043
  /**
@@ -8109,7 +8138,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
8109
8138
  writer.writeStringValue("actorDisplayName", eventTableRow.actorDisplayName);
8110
8139
  writer.writeStringValue("actorEmail", eventTableRow.actorEmail);
8111
8140
  writer.writeStringValue("actorUserId", eventTableRow.actorUserId);
8112
- writer.writeNumberValue("billableAmount", eventTableRow.billableAmount);
8141
+ writer.writeObjectValue("billableAmount", eventTableRow.billableAmount);
8113
8142
  writer.writeStringValue("billingStatus", eventTableRow.billingStatus);
8114
8143
  writer.writeDateValue("blockedAt", eventTableRow.blockedAt);
8115
8144
  writer.writeStringValue("campaignId", eventTableRow.campaignId);
@@ -8137,7 +8166,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
8137
8166
  writer.writeDateValue("receivedAt", eventTableRow.receivedAt);
8138
8167
  writer.writeStringValue("relatedEntityId", eventTableRow.relatedEntityId);
8139
8168
  writer.writeStringValue("relatedEntityType", eventTableRow.relatedEntityType);
8140
- writer.writeNumberValue("retryCount", eventTableRow.retryCount);
8169
+ writer.writeObjectValue("retryCount", eventTableRow.retryCount);
8141
8170
  writer.writeDateValue("scheduledFor", eventTableRow.scheduledFor);
8142
8171
  writer.writeStringValue("scheduledReason", eventTableRow.scheduledReason);
8143
8172
  writer.writeEnumValue("selectionReason", eventTableRow.selectionReason);
@@ -8370,7 +8399,7 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
8370
8399
  writer.writeDateOnlyValue("birthDate", leadIntakeRequest.birthDate);
8371
8400
  writer.writeStringValue("city", leadIntakeRequest.city);
8372
8401
  writer.writeDateOnlyValue("dateOfBirth", leadIntakeRequest.dateOfBirth);
8373
- writer.writeNumberValue("directPostPrice", leadIntakeRequest.directPostPrice);
8402
+ writer.writeObjectValue("directPostPrice", leadIntakeRequest.directPostPrice);
8374
8403
  writer.writeStringValue("email", leadIntakeRequest.email);
8375
8404
  writer.writeStringValue("externalId", leadIntakeRequest.externalId);
8376
8405
  writer.writeStringValue("firstName", leadIntakeRequest.firstName);
@@ -8380,7 +8409,7 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
8380
8409
  writer.writeStringValue("phone", leadIntakeRequest.phone);
8381
8410
  writer.writeStringValue("phoneType", leadIntakeRequest.phoneType);
8382
8411
  writer.writeStringValue("postalCode", leadIntakeRequest.postalCode);
8383
- writer.writeNumberValue("price", leadIntakeRequest.price);
8412
+ writer.writeObjectValue("price", leadIntakeRequest.price);
8384
8413
  writer.writeStringValue("product", leadIntakeRequest.product);
8385
8414
  writer.writeStringValue("referrer", leadIntakeRequest.referrer);
8386
8415
  writer.writeStringValue("sellerLeadId", leadIntakeRequest.sellerLeadId);
@@ -8428,7 +8457,7 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
8428
8457
  writer.writeStringValue("complianceBlockedReason", leadMetadata.complianceBlockedReason);
8429
8458
  writer.writeStringValue("complianceStatus", leadMetadata.complianceStatus);
8430
8459
  writer.writeDateValue("createdAt", leadMetadata.createdAt);
8431
- writer.writeNumberValue("directPostPrice", leadMetadata.directPostPrice);
8460
+ writer.writeObjectValue("directPostPrice", leadMetadata.directPostPrice);
8432
8461
  writer.writeStringValue("externalId", leadMetadata.externalId);
8433
8462
  writer.writeStringValue("importBatchId", leadMetadata.importBatchId);
8434
8463
  writer.writeStringValue("ipAddress", leadMetadata.ipAddress);
@@ -8436,7 +8465,7 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
8436
8465
  writer.writeStringValue("landingPage", leadMetadata.landingPage);
8437
8466
  writer.writeStringValue("organizationId", leadMetadata.organizationId);
8438
8467
  writer.writeStringValue("origin", leadMetadata.origin);
8439
- writer.writeNumberValue("price", leadMetadata.price);
8468
+ writer.writeObjectValue("price", leadMetadata.price);
8440
8469
  writer.writeStringValue("product", leadMetadata.product);
8441
8470
  writer.writeStringValue("pubId", leadMetadata.pubId);
8442
8471
  writer.writeStringValue("referrer", leadMetadata.referrer);
@@ -8486,18 +8515,18 @@ export function serializeLeadProfile(writer, leadProfile = {}, isSerializingDeri
8486
8515
  return;
8487
8516
  }
8488
8517
  writer.writeDateOnlyValue("birthDate", leadProfile.birthDate);
8489
- writer.writeNumberValue("creditScore", leadProfile.creditScore);
8518
+ writer.writeObjectValue("creditScore", leadProfile.creditScore);
8490
8519
  writer.writeEnumValue("employmentType", leadProfile.employmentType);
8491
8520
  writer.writeEnumValue("gender", leadProfile.gender);
8492
8521
  writer.writeBooleanValue("hasBankruptcy", leadProfile.hasBankruptcy);
8493
8522
  writer.writeBooleanValue("hasMedicalCondition", leadProfile.hasMedicalCondition);
8494
- writer.writeNumberValue("height", leadProfile.height);
8495
- writer.writeNumberValue("income", leadProfile.income);
8523
+ writer.writeObjectValue("height", leadProfile.height);
8524
+ writer.writeObjectValue("income", leadProfile.income);
8496
8525
  writer.writeBooleanValue("isHomeowner", leadProfile.isHomeowner);
8497
8526
  writer.writeEnumValue("maritalStatus", leadProfile.maritalStatus);
8498
- writer.writeNumberValue("monthsAtResidence", leadProfile.monthsAtResidence);
8499
- writer.writeNumberValue("numberOfDependents", leadProfile.numberOfDependents);
8500
- writer.writeNumberValue("weight", leadProfile.weight);
8527
+ writer.writeObjectValue("monthsAtResidence", leadProfile.monthsAtResidence);
8528
+ writer.writeObjectValue("numberOfDependents", leadProfile.numberOfDependents);
8529
+ writer.writeObjectValue("weight", leadProfile.weight);
8501
8530
  writer.writeAdditionalData(leadProfile.additionalData);
8502
8531
  }
8503
8532
  /**
@@ -8717,7 +8746,7 @@ export function serializeLeadStatusRequest(writer, leadStatusRequest = {}, isSer
8717
8746
  writer.writeEnumValue("category", leadStatusRequest.category);
8718
8747
  writer.writeStringValue("color", leadStatusRequest.color);
8719
8748
  writer.writeStringValue("name", leadStatusRequest.name);
8720
- writer.writeNumberValue("sortOrder", leadStatusRequest.sortOrder);
8749
+ writer.writeObjectValue("sortOrder", leadStatusRequest.sortOrder);
8721
8750
  writer.writeAdditionalData(leadStatusRequest.additionalData);
8722
8751
  }
8723
8752
  /**
@@ -8738,7 +8767,7 @@ export function serializeLeadStatusResponse(writer, leadStatusResponse = {}, isS
8738
8767
  writer.writeDateValue("modifiedAt", leadStatusResponse.modifiedAt);
8739
8768
  writer.writeStringValue("name", leadStatusResponse.name);
8740
8769
  writer.writeStringValue("organizationId", leadStatusResponse.organizationId);
8741
- writer.writeNumberValue("sortOrder", leadStatusResponse.sortOrder);
8770
+ writer.writeObjectValue("sortOrder", leadStatusResponse.sortOrder);
8742
8771
  writer.writeAdditionalData(leadStatusResponse.additionalData);
8743
8772
  }
8744
8773
  /**
@@ -8765,7 +8794,7 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8765
8794
  writer.writeStringValue("lastName", leadTableRow.lastName);
8766
8795
  writer.writeObjectValue("organization", leadTableRow.organization, serializeLeadTableRow_organization);
8767
8796
  writer.writeStringValue("phone", leadTableRow.phone);
8768
- writer.writeNumberValue("price", leadTableRow.price);
8797
+ writer.writeObjectValue("price", leadTableRow.price);
8769
8798
  writer.writeObjectValue("source", leadTableRow.source, serializeLeadTableRow_source);
8770
8799
  writer.writeStringValue("status", leadTableRow.status);
8771
8800
  writer.writeStringValue("statusTone", leadTableRow.statusTone);
@@ -8842,7 +8871,7 @@ export function serializeMessageMediaAttachment(writer, messageMediaAttachment =
8842
8871
  writer.writeStringValue("contentType", messageMediaAttachment.contentType);
8843
8872
  writer.writeStringValue("fileName", messageMediaAttachment.fileName);
8844
8873
  writer.writeStringValue("sha256", messageMediaAttachment.sha256);
8845
- writer.writeNumberValue("size", messageMediaAttachment.size);
8874
+ writer.writeObjectValue("size", messageMediaAttachment.size);
8846
8875
  writer.writeStringValue("url", messageMediaAttachment.url);
8847
8876
  writer.writeAdditionalData(messageMediaAttachment.additionalData);
8848
8877
  }
@@ -8945,7 +8974,7 @@ export function serializeOrganizationActivationState(writer, organizationActivat
8945
8974
  return;
8946
8975
  }
8947
8976
  writer.writeDateValue("activatedAt", organizationActivationState.activatedAt);
8948
- writer.writeNumberValue("availableDomainCount", organizationActivationState.availableDomainCount);
8977
+ writer.writeObjectValue("availableDomainCount", organizationActivationState.availableDomainCount);
8949
8978
  writer.writeEnumValue("billingSubscriptionStatus", organizationActivationState.billingSubscriptionStatus);
8950
8979
  writer.writeStringValue("complianceNotes", organizationActivationState.complianceNotes);
8951
8980
  writer.writeBooleanValue("controlledLaunch", organizationActivationState.controlledLaunch);
@@ -8954,7 +8983,7 @@ export function serializeOrganizationActivationState(writer, organizationActivat
8954
8983
  writer.writeDateValue("domainApprovedAt", organizationActivationState.domainApprovedAt);
8955
8984
  writer.writeCollectionOfObjectValues("domainOptions", organizationActivationState.domainOptions, serializeActivationDomainOption);
8956
8985
  writer.writeDateValue("domainPurchasedAt", organizationActivationState.domainPurchasedAt);
8957
- writer.writeNumberValue("domainSearchAttempt", organizationActivationState.domainSearchAttempt);
8986
+ writer.writeObjectValue("domainSearchAttempt", organizationActivationState.domainSearchAttempt);
8958
8987
  writer.writeStringValue("domainSearchId", organizationActivationState.domainSearchId);
8959
8988
  writer.writeEnumValue("domainSearchStage", organizationActivationState.domainSearchStage);
8960
8989
  writer.writeDateValue("domainSearchUpdatedAt", organizationActivationState.domainSearchUpdatedAt);
@@ -9020,10 +9049,10 @@ export function serializeOrganizationBillingState(writer, organizationBillingSta
9020
9049
  writer.writeBooleanValue("hasStripeCustomer", organizationBillingState.hasStripeCustomer);
9021
9050
  writer.writeDateValue("lastPaymentMethodEventAt", organizationBillingState.lastPaymentMethodEventAt);
9022
9051
  writer.writeDateValue("lastSubscriptionEventAt", organizationBillingState.lastSubscriptionEventAt);
9023
- writer.writeNumberValue("organizationMemberAssignedQuantity", organizationBillingState.organizationMemberAssignedQuantity);
9024
- writer.writeNumberValue("organizationMemberQuantity", organizationBillingState.organizationMemberQuantity);
9052
+ writer.writeObjectValue("organizationMemberAssignedQuantity", organizationBillingState.organizationMemberAssignedQuantity);
9053
+ writer.writeObjectValue("organizationMemberQuantity", organizationBillingState.organizationMemberQuantity);
9025
9054
  writer.writeEnumValue("pendingBillingPlan", organizationBillingState.pendingBillingPlan);
9026
- writer.writeNumberValue("phoneNumberQuantity", organizationBillingState.phoneNumberQuantity);
9055
+ writer.writeObjectValue("phoneNumberQuantity", organizationBillingState.phoneNumberQuantity);
9027
9056
  writer.writeDateValue("planPeriodStartAt", organizationBillingState.planPeriodStartAt);
9028
9057
  writer.writeDateValue("planRenewalAt", organizationBillingState.planRenewalAt);
9029
9058
  writer.writeAdditionalData(organizationBillingState.additionalData);
@@ -9081,7 +9110,7 @@ export function serializeOrganizationDunningInfo(writer, organizationDunningInfo
9081
9110
  writer.writeDateValue("outboundRestrictedAt", organizationDunningInfo.outboundRestrictedAt);
9082
9111
  writer.writeDateValue("outboundSuspendedAt", organizationDunningInfo.outboundSuspendedAt);
9083
9112
  writer.writeDateValue("paymentFailedAt", organizationDunningInfo.paymentFailedAt);
9084
- writer.writeNumberValue("retryAttemptCount", organizationDunningInfo.retryAttemptCount);
9113
+ writer.writeObjectValue("retryAttemptCount", organizationDunningInfo.retryAttemptCount);
9085
9114
  writer.writeStringValue("stage", organizationDunningInfo.stage);
9086
9115
  writer.writeAdditionalData(organizationDunningInfo.additionalData);
9087
9116
  }
@@ -9118,7 +9147,7 @@ export function serializeOrganizationInvitationResponse(writer, organizationInvi
9118
9147
  writer.writeStringValue("id", organizationInvitationResponse.id);
9119
9148
  writer.writeDateValue("licenseActivatedAt", organizationInvitationResponse.licenseActivatedAt);
9120
9149
  writer.writeStringValue("licenseBillingStatus", organizationInvitationResponse.licenseBillingStatus);
9121
- writer.writeNumberValue("licenseQuantity", organizationInvitationResponse.licenseQuantity);
9150
+ writer.writeObjectValue("licenseQuantity", organizationInvitationResponse.licenseQuantity);
9122
9151
  writer.writeDateValue("licenseReleasedAt", organizationInvitationResponse.licenseReleasedAt);
9123
9152
  writer.writeDateValue("licenseRenewalDate", organizationInvitationResponse.licenseRenewalDate);
9124
9153
  writer.writeObjectValue("organization", organizationInvitationResponse.organization, serializeIdNamePair);
@@ -9149,7 +9178,7 @@ export function serializeOrganizationInvitationTableRow(writer, organizationInvi
9149
9178
  writer.writeStringValue("id", organizationInvitationTableRow.id);
9150
9179
  writer.writeDateValue("licenseActivatedAt", organizationInvitationTableRow.licenseActivatedAt);
9151
9180
  writer.writeStringValue("licenseBillingStatus", organizationInvitationTableRow.licenseBillingStatus);
9152
- writer.writeNumberValue("licenseQuantity", organizationInvitationTableRow.licenseQuantity);
9181
+ writer.writeObjectValue("licenseQuantity", organizationInvitationTableRow.licenseQuantity);
9153
9182
  writer.writeDateValue("licenseReleasedAt", organizationInvitationTableRow.licenseReleasedAt);
9154
9183
  writer.writeDateValue("licenseRenewalDate", organizationInvitationTableRow.licenseRenewalDate);
9155
9184
  writer.writeObjectValue("organization", organizationInvitationTableRow.organization, serializeIdNamePair);
@@ -9193,7 +9222,7 @@ export function serializeOrganizationMemberResponse(writer, organizationMemberRe
9193
9222
  writer.writeStringValue("id", organizationMemberResponse.id);
9194
9223
  writer.writeDateValue("lastUsedAt", organizationMemberResponse.lastUsedAt);
9195
9224
  writer.writeStringValue("licenseBillingStatus", organizationMemberResponse.licenseBillingStatus);
9196
- writer.writeNumberValue("licenseQuantity", organizationMemberResponse.licenseQuantity);
9225
+ writer.writeObjectValue("licenseQuantity", organizationMemberResponse.licenseQuantity);
9197
9226
  writer.writeDateValue("licenseRenewalDate", organizationMemberResponse.licenseRenewalDate);
9198
9227
  writer.writeDateValue("modifiedAt", organizationMemberResponse.modifiedAt);
9199
9228
  writer.writeStringValue("name", organizationMemberResponse.name);
@@ -9237,9 +9266,9 @@ export function serializeOrganizationRequest(writer, organizationRequest = {}, i
9237
9266
  return;
9238
9267
  }
9239
9268
  writer.writeObjectValue("address", organizationRequest.address, serializeOrganizationRequest_address);
9240
- writer.writeNumberValue("autoRefillAmount", organizationRequest.autoRefillAmount);
9269
+ writer.writeObjectValue("autoRefillAmount", organizationRequest.autoRefillAmount);
9241
9270
  writer.writeBooleanValue("autoRefillEnabled", organizationRequest.autoRefillEnabled);
9242
- writer.writeNumberValue("autoRefillTrigger", organizationRequest.autoRefillTrigger);
9271
+ writer.writeObjectValue("autoRefillTrigger", organizationRequest.autoRefillTrigger);
9243
9272
  writer.writeObjectValue("billingAddress", organizationRequest.billingAddress, serializeOrganizationRequest_billingAddress);
9244
9273
  writer.writeStringValue("billingName", organizationRequest.billingName);
9245
9274
  writer.writeStringValue("billingTaxId", organizationRequest.billingTaxId);
@@ -9322,12 +9351,12 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
9322
9351
  if (!organizationResponse || isSerializingDerivedType) {
9323
9352
  return;
9324
9353
  }
9325
- writer.writeNumberValue("accountBalance", organizationResponse.accountBalance);
9354
+ writer.writeObjectValue("accountBalance", organizationResponse.accountBalance);
9326
9355
  writer.writeObjectValue("activation", organizationResponse.activation, serializeOrganizationResponse_activation);
9327
9356
  writer.writeObjectValue("address", organizationResponse.address, serializeOrganizationResponse_address);
9328
- writer.writeNumberValue("autoRefillAmount", organizationResponse.autoRefillAmount);
9357
+ writer.writeObjectValue("autoRefillAmount", organizationResponse.autoRefillAmount);
9329
9358
  writer.writeBooleanValue("autoRefillEnabled", organizationResponse.autoRefillEnabled);
9330
- writer.writeNumberValue("autoRefillTrigger", organizationResponse.autoRefillTrigger);
9359
+ writer.writeObjectValue("autoRefillTrigger", organizationResponse.autoRefillTrigger);
9331
9360
  writer.writeObjectValue("billingAddress", organizationResponse.billingAddress, serializeOrganizationResponse_billingAddress);
9332
9361
  writer.writeStringValue("billingName", organizationResponse.billingName);
9333
9362
  writer.writeEnumValue("billingPlan", organizationResponse.billingPlan);
@@ -9510,7 +9539,7 @@ export function serializeOrganizationTableRow(writer, organizationTableRow = {},
9510
9539
  if (!organizationTableRow || isSerializingDerivedType) {
9511
9540
  return;
9512
9541
  }
9513
- writer.writeNumberValue("accountBalance", organizationTableRow.accountBalance);
9542
+ writer.writeObjectValue("accountBalance", organizationTableRow.accountBalance);
9514
9543
  writer.writeEnumValue("activationStatus", organizationTableRow.activationStatus);
9515
9544
  writer.writeDateValue("apiKeyExpiresAt", organizationTableRow.apiKeyExpiresAt);
9516
9545
  writer.writeDateValue("apiKeyFirstUsedAt", organizationTableRow.apiKeyFirstUsedAt);
@@ -9518,7 +9547,7 @@ export function serializeOrganizationTableRow(writer, organizationTableRow = {},
9518
9547
  writer.writeDateValue("apiKeyLastUsedAt", organizationTableRow.apiKeyLastUsedAt);
9519
9548
  writer.writeCollectionOfPrimitiveValues("apiKeyPermissions", organizationTableRow.apiKeyPermissions);
9520
9549
  writer.writeStringValue("apiKeyPreview", organizationTableRow.apiKeyPreview);
9521
- writer.writeNumberValue("apiKeyTotalUses", organizationTableRow.apiKeyTotalUses);
9550
+ writer.writeObjectValue("apiKeyTotalUses", organizationTableRow.apiKeyTotalUses);
9522
9551
  writer.writeEnumValue("billingPlan", organizationTableRow.billingPlan);
9523
9552
  writer.writeBooleanValue("enabled", organizationTableRow.enabled);
9524
9553
  writer.writeStringValue("id", organizationTableRow.id);
@@ -9535,7 +9564,7 @@ export function serializeOrganizationTableRow(writer, organizationTableRow = {},
9535
9564
  writer.writeDateValue("subscriptionCancelAt", organizationTableRow.subscriptionCancelAt);
9536
9565
  writer.writeEnumValue("subscriptionStatus", organizationTableRow.subscriptionStatus);
9537
9566
  writer.writeEnumValue("tenDlcStatus", organizationTableRow.tenDlcStatus);
9538
- writer.writeNumberValue("userCount", organizationTableRow.userCount);
9567
+ writer.writeObjectValue("userCount", organizationTableRow.userCount);
9539
9568
  writer.writeStringValue("website", organizationTableRow.website);
9540
9569
  writer.writeEnumValue("websiteStatus", organizationTableRow.websiteStatus);
9541
9570
  writer.writeAdditionalData(organizationTableRow.additionalData);
@@ -9564,15 +9593,16 @@ export function serializeOutboundCapacityOverview(writer, outboundCapacityOvervi
9564
9593
  if (!outboundCapacityOverview || isSerializingDerivedType) {
9565
9594
  return;
9566
9595
  }
9567
- writer.writeNumberValue("blockedCount", outboundCapacityOverview.blockedCount);
9568
- writer.writeNumberValue("coolingPhoneNumbers", outboundCapacityOverview.coolingPhoneNumbers);
9569
- writer.writeNumberValue("healthyPhoneNumbers", outboundCapacityOverview.healthyPhoneNumbers);
9570
- writer.writeNumberValue("limitedPhoneNumbers", outboundCapacityOverview.limitedPhoneNumbers);
9596
+ writer.writeObjectValue("blockedCount", outboundCapacityOverview.blockedCount);
9597
+ writer.writeObjectValue("coolingPhoneNumbers", outboundCapacityOverview.coolingPhoneNumbers);
9598
+ writer.writeObjectValue("healthyPhoneNumbers", outboundCapacityOverview.healthyPhoneNumbers);
9599
+ writer.writeObjectValue("limitedPhoneNumbers", outboundCapacityOverview.limitedPhoneNumbers);
9571
9600
  writer.writeCollectionOfObjectValues("phoneNumbers", outboundCapacityOverview.phoneNumbers, serializeOutboundPhoneNumberCapacity);
9601
+ writer.writeObjectValue("rampingPhoneNumbers", outboundCapacityOverview.rampingPhoneNumbers);
9572
9602
  writer.writeCollectionOfObjectValues("recentDecisions", outboundCapacityOverview.recentDecisions, serializeOutboundQueueItem);
9573
- writer.writeNumberValue("scheduledCount", outboundCapacityOverview.scheduledCount);
9574
- writer.writeNumberValue("smsCapacityRemainingToday", outboundCapacityOverview.smsCapacityRemainingToday);
9575
- writer.writeNumberValue("voiceCapacityRemainingToday", outboundCapacityOverview.voiceCapacityRemainingToday);
9603
+ writer.writeObjectValue("scheduledCount", outboundCapacityOverview.scheduledCount);
9604
+ writer.writeObjectValue("smsCapacityRemainingToday", outboundCapacityOverview.smsCapacityRemainingToday);
9605
+ writer.writeObjectValue("voiceCapacityRemainingToday", outboundCapacityOverview.voiceCapacityRemainingToday);
9576
9606
  writer.writeAdditionalData(outboundCapacityOverview.additionalData);
9577
9607
  }
9578
9608
  /**
@@ -9587,33 +9617,37 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
9587
9617
  return;
9588
9618
  }
9589
9619
  writer.writeBooleanValue("capacityAvailable", outboundPhoneNumberCapacity.capacityAvailable);
9620
+ writer.writeStringValue("healthReason", outboundPhoneNumberCapacity.healthReason);
9590
9621
  writer.writeEnumValue("healthStatus", outboundPhoneNumberCapacity.healthStatus);
9591
9622
  writer.writeStringValue("phoneNumber", outboundPhoneNumberCapacity.phoneNumber);
9592
9623
  writer.writeStringValue("phoneNumberId", outboundPhoneNumberCapacity.phoneNumberId);
9624
+ writer.writeBooleanValue("smsApproved", outboundPhoneNumberCapacity.smsApproved);
9593
9625
  writer.writeDateValue("smsDailyResetsAt", outboundPhoneNumberCapacity.smsDailyResetsAt);
9594
9626
  writer.writeDateValue("smsHourlyResetsAt", outboundPhoneNumberCapacity.smsHourlyResetsAt);
9595
- writer.writeNumberValue("smsLimitThisHour", outboundPhoneNumberCapacity.smsLimitThisHour);
9596
- writer.writeNumberValue("smsLimitThisMinute", outboundPhoneNumberCapacity.smsLimitThisMinute);
9597
- writer.writeNumberValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
9627
+ writer.writeObjectValue("smsLimitThisHour", outboundPhoneNumberCapacity.smsLimitThisHour);
9628
+ writer.writeObjectValue("smsLimitThisMinute", outboundPhoneNumberCapacity.smsLimitThisMinute);
9629
+ writer.writeObjectValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
9598
9630
  writer.writeDateValue("smsMinutelyResetsAt", outboundPhoneNumberCapacity.smsMinutelyResetsAt);
9599
- writer.writeNumberValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
9600
- writer.writeNumberValue("smsRemainingThisMinute", outboundPhoneNumberCapacity.smsRemainingThisMinute);
9601
- writer.writeNumberValue("smsRemainingToday", outboundPhoneNumberCapacity.smsRemainingToday);
9602
- writer.writeNumberValue("smsUsedThisHour", outboundPhoneNumberCapacity.smsUsedThisHour);
9603
- writer.writeNumberValue("smsUsedThisMinute", outboundPhoneNumberCapacity.smsUsedThisMinute);
9604
- writer.writeNumberValue("smsUsedToday", outboundPhoneNumberCapacity.smsUsedToday);
9631
+ writer.writeBooleanValue("smsRamping", outboundPhoneNumberCapacity.smsRamping);
9632
+ writer.writeObjectValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
9633
+ writer.writeObjectValue("smsRemainingThisMinute", outboundPhoneNumberCapacity.smsRemainingThisMinute);
9634
+ writer.writeObjectValue("smsRemainingToday", outboundPhoneNumberCapacity.smsRemainingToday);
9635
+ writer.writeObjectValue("smsUsedThisHour", outboundPhoneNumberCapacity.smsUsedThisHour);
9636
+ writer.writeObjectValue("smsUsedThisMinute", outboundPhoneNumberCapacity.smsUsedThisMinute);
9637
+ writer.writeObjectValue("smsUsedToday", outboundPhoneNumberCapacity.smsUsedToday);
9605
9638
  writer.writeDateValue("voiceDailyResetsAt", outboundPhoneNumberCapacity.voiceDailyResetsAt);
9606
9639
  writer.writeDateValue("voiceHourlyResetsAt", outboundPhoneNumberCapacity.voiceHourlyResetsAt);
9607
- writer.writeNumberValue("voiceLimitThisHour", outboundPhoneNumberCapacity.voiceLimitThisHour);
9608
- writer.writeNumberValue("voiceLimitThisMinute", outboundPhoneNumberCapacity.voiceLimitThisMinute);
9609
- writer.writeNumberValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
9640
+ writer.writeObjectValue("voiceLimitThisHour", outboundPhoneNumberCapacity.voiceLimitThisHour);
9641
+ writer.writeObjectValue("voiceLimitThisMinute", outboundPhoneNumberCapacity.voiceLimitThisMinute);
9642
+ writer.writeObjectValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
9610
9643
  writer.writeDateValue("voiceMinutelyResetsAt", outboundPhoneNumberCapacity.voiceMinutelyResetsAt);
9611
- writer.writeNumberValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
9612
- writer.writeNumberValue("voiceRemainingThisMinute", outboundPhoneNumberCapacity.voiceRemainingThisMinute);
9613
- writer.writeNumberValue("voiceRemainingToday", outboundPhoneNumberCapacity.voiceRemainingToday);
9614
- writer.writeNumberValue("voiceUsedThisHour", outboundPhoneNumberCapacity.voiceUsedThisHour);
9615
- writer.writeNumberValue("voiceUsedThisMinute", outboundPhoneNumberCapacity.voiceUsedThisMinute);
9616
- writer.writeNumberValue("voiceUsedToday", outboundPhoneNumberCapacity.voiceUsedToday);
9644
+ writer.writeBooleanValue("voiceRamping", outboundPhoneNumberCapacity.voiceRamping);
9645
+ writer.writeObjectValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
9646
+ writer.writeObjectValue("voiceRemainingThisMinute", outboundPhoneNumberCapacity.voiceRemainingThisMinute);
9647
+ writer.writeObjectValue("voiceRemainingToday", outboundPhoneNumberCapacity.voiceRemainingToday);
9648
+ writer.writeObjectValue("voiceUsedThisHour", outboundPhoneNumberCapacity.voiceUsedThisHour);
9649
+ writer.writeObjectValue("voiceUsedThisMinute", outboundPhoneNumberCapacity.voiceUsedThisMinute);
9650
+ writer.writeObjectValue("voiceUsedToday", outboundPhoneNumberCapacity.voiceUsedToday);
9617
9651
  writer.writeAdditionalData(outboundPhoneNumberCapacity.additionalData);
9618
9652
  }
9619
9653
  /**
@@ -9712,8 +9746,8 @@ export function serializePagedResultOfAutomationTableRow(writer, pagedResultOfAu
9712
9746
  }
9713
9747
  writer.writeStringValue("continuationToken", pagedResultOfAutomationTableRow.continuationToken);
9714
9748
  writer.writeCollectionOfObjectValues("items", pagedResultOfAutomationTableRow.items, serializeAutomationTableRow);
9715
- writer.writeNumberValue("pageSize", pagedResultOfAutomationTableRow.pageSize);
9716
- writer.writeNumberValue("totalCount", pagedResultOfAutomationTableRow.totalCount);
9749
+ writer.writeObjectValue("pageSize", pagedResultOfAutomationTableRow.pageSize);
9750
+ writer.writeObjectValue("totalCount", pagedResultOfAutomationTableRow.totalCount);
9717
9751
  writer.writeAdditionalData(pagedResultOfAutomationTableRow.additionalData);
9718
9752
  }
9719
9753
  /**
@@ -9729,8 +9763,8 @@ export function serializePagedResultOfCallEventTableRow(writer, pagedResultOfCal
9729
9763
  }
9730
9764
  writer.writeStringValue("continuationToken", pagedResultOfCallEventTableRow.continuationToken);
9731
9765
  writer.writeCollectionOfObjectValues("items", pagedResultOfCallEventTableRow.items, serializeCallEventTableRow);
9732
- writer.writeNumberValue("pageSize", pagedResultOfCallEventTableRow.pageSize);
9733
- writer.writeNumberValue("totalCount", pagedResultOfCallEventTableRow.totalCount);
9766
+ writer.writeObjectValue("pageSize", pagedResultOfCallEventTableRow.pageSize);
9767
+ writer.writeObjectValue("totalCount", pagedResultOfCallEventTableRow.totalCount);
9734
9768
  writer.writeAdditionalData(pagedResultOfCallEventTableRow.additionalData);
9735
9769
  }
9736
9770
  /**
@@ -9746,8 +9780,8 @@ export function serializePagedResultOfConversationResponse(writer, pagedResultOf
9746
9780
  }
9747
9781
  writer.writeStringValue("continuationToken", pagedResultOfConversationResponse.continuationToken);
9748
9782
  writer.writeCollectionOfObjectValues("items", pagedResultOfConversationResponse.items, serializeConversationResponse);
9749
- writer.writeNumberValue("pageSize", pagedResultOfConversationResponse.pageSize);
9750
- writer.writeNumberValue("totalCount", pagedResultOfConversationResponse.totalCount);
9783
+ writer.writeObjectValue("pageSize", pagedResultOfConversationResponse.pageSize);
9784
+ writer.writeObjectValue("totalCount", pagedResultOfConversationResponse.totalCount);
9751
9785
  writer.writeAdditionalData(pagedResultOfConversationResponse.additionalData);
9752
9786
  }
9753
9787
  /**
@@ -9763,8 +9797,8 @@ export function serializePagedResultOfEventTableRow(writer, pagedResultOfEventTa
9763
9797
  }
9764
9798
  writer.writeStringValue("continuationToken", pagedResultOfEventTableRow.continuationToken);
9765
9799
  writer.writeCollectionOfObjectValues("items", pagedResultOfEventTableRow.items, serializeEventTableRow);
9766
- writer.writeNumberValue("pageSize", pagedResultOfEventTableRow.pageSize);
9767
- writer.writeNumberValue("totalCount", pagedResultOfEventTableRow.totalCount);
9800
+ writer.writeObjectValue("pageSize", pagedResultOfEventTableRow.pageSize);
9801
+ writer.writeObjectValue("totalCount", pagedResultOfEventTableRow.totalCount);
9768
9802
  writer.writeAdditionalData(pagedResultOfEventTableRow.additionalData);
9769
9803
  }
9770
9804
  /**
@@ -9780,8 +9814,8 @@ export function serializePagedResultOfLeadStatusChangeResponse(writer, pagedResu
9780
9814
  }
9781
9815
  writer.writeStringValue("continuationToken", pagedResultOfLeadStatusChangeResponse.continuationToken);
9782
9816
  writer.writeCollectionOfObjectValues("items", pagedResultOfLeadStatusChangeResponse.items, serializeLeadStatusChangeResponse);
9783
- writer.writeNumberValue("pageSize", pagedResultOfLeadStatusChangeResponse.pageSize);
9784
- writer.writeNumberValue("totalCount", pagedResultOfLeadStatusChangeResponse.totalCount);
9817
+ writer.writeObjectValue("pageSize", pagedResultOfLeadStatusChangeResponse.pageSize);
9818
+ writer.writeObjectValue("totalCount", pagedResultOfLeadStatusChangeResponse.totalCount);
9785
9819
  writer.writeAdditionalData(pagedResultOfLeadStatusChangeResponse.additionalData);
9786
9820
  }
9787
9821
  /**
@@ -9797,8 +9831,8 @@ export function serializePagedResultOfLeadTableRow(writer, pagedResultOfLeadTabl
9797
9831
  }
9798
9832
  writer.writeStringValue("continuationToken", pagedResultOfLeadTableRow.continuationToken);
9799
9833
  writer.writeCollectionOfObjectValues("items", pagedResultOfLeadTableRow.items, serializeLeadTableRow);
9800
- writer.writeNumberValue("pageSize", pagedResultOfLeadTableRow.pageSize);
9801
- writer.writeNumberValue("totalCount", pagedResultOfLeadTableRow.totalCount);
9834
+ writer.writeObjectValue("pageSize", pagedResultOfLeadTableRow.pageSize);
9835
+ writer.writeObjectValue("totalCount", pagedResultOfLeadTableRow.totalCount);
9802
9836
  writer.writeAdditionalData(pagedResultOfLeadTableRow.additionalData);
9803
9837
  }
9804
9838
  /**
@@ -9814,8 +9848,8 @@ export function serializePagedResultOfNotificationTableRow(writer, pagedResultOf
9814
9848
  }
9815
9849
  writer.writeStringValue("continuationToken", pagedResultOfNotificationTableRow.continuationToken);
9816
9850
  writer.writeCollectionOfObjectValues("items", pagedResultOfNotificationTableRow.items, serializeNotificationTableRow);
9817
- writer.writeNumberValue("pageSize", pagedResultOfNotificationTableRow.pageSize);
9818
- writer.writeNumberValue("totalCount", pagedResultOfNotificationTableRow.totalCount);
9851
+ writer.writeObjectValue("pageSize", pagedResultOfNotificationTableRow.pageSize);
9852
+ writer.writeObjectValue("totalCount", pagedResultOfNotificationTableRow.totalCount);
9819
9853
  writer.writeAdditionalData(pagedResultOfNotificationTableRow.additionalData);
9820
9854
  }
9821
9855
  /**
@@ -9831,8 +9865,8 @@ export function serializePagedResultOfOrganizationTableRow(writer, pagedResultOf
9831
9865
  }
9832
9866
  writer.writeStringValue("continuationToken", pagedResultOfOrganizationTableRow.continuationToken);
9833
9867
  writer.writeCollectionOfObjectValues("items", pagedResultOfOrganizationTableRow.items, serializeOrganizationTableRow);
9834
- writer.writeNumberValue("pageSize", pagedResultOfOrganizationTableRow.pageSize);
9835
- writer.writeNumberValue("totalCount", pagedResultOfOrganizationTableRow.totalCount);
9868
+ writer.writeObjectValue("pageSize", pagedResultOfOrganizationTableRow.pageSize);
9869
+ writer.writeObjectValue("totalCount", pagedResultOfOrganizationTableRow.totalCount);
9836
9870
  writer.writeAdditionalData(pagedResultOfOrganizationTableRow.additionalData);
9837
9871
  }
9838
9872
  /**
@@ -9848,8 +9882,8 @@ export function serializePagedResultOfPhoneNumberTableRow(writer, pagedResultOfP
9848
9882
  }
9849
9883
  writer.writeStringValue("continuationToken", pagedResultOfPhoneNumberTableRow.continuationToken);
9850
9884
  writer.writeCollectionOfObjectValues("items", pagedResultOfPhoneNumberTableRow.items, serializePhoneNumberTableRow);
9851
- writer.writeNumberValue("pageSize", pagedResultOfPhoneNumberTableRow.pageSize);
9852
- writer.writeNumberValue("totalCount", pagedResultOfPhoneNumberTableRow.totalCount);
9885
+ writer.writeObjectValue("pageSize", pagedResultOfPhoneNumberTableRow.pageSize);
9886
+ writer.writeObjectValue("totalCount", pagedResultOfPhoneNumberTableRow.totalCount);
9853
9887
  writer.writeAdditionalData(pagedResultOfPhoneNumberTableRow.additionalData);
9854
9888
  }
9855
9889
  /**
@@ -9865,8 +9899,8 @@ export function serializePagedResultOfSmsEventTableRow(writer, pagedResultOfSmsE
9865
9899
  }
9866
9900
  writer.writeStringValue("continuationToken", pagedResultOfSmsEventTableRow.continuationToken);
9867
9901
  writer.writeCollectionOfObjectValues("items", pagedResultOfSmsEventTableRow.items, serializeSmsEventTableRow);
9868
- writer.writeNumberValue("pageSize", pagedResultOfSmsEventTableRow.pageSize);
9869
- writer.writeNumberValue("totalCount", pagedResultOfSmsEventTableRow.totalCount);
9902
+ writer.writeObjectValue("pageSize", pagedResultOfSmsEventTableRow.pageSize);
9903
+ writer.writeObjectValue("totalCount", pagedResultOfSmsEventTableRow.totalCount);
9870
9904
  writer.writeAdditionalData(pagedResultOfSmsEventTableRow.additionalData);
9871
9905
  }
9872
9906
  /**
@@ -9882,8 +9916,8 @@ export function serializePagedResultOfSourceTableRow(writer, pagedResultOfSource
9882
9916
  }
9883
9917
  writer.writeStringValue("continuationToken", pagedResultOfSourceTableRow.continuationToken);
9884
9918
  writer.writeCollectionOfObjectValues("items", pagedResultOfSourceTableRow.items, serializeSourceTableRow);
9885
- writer.writeNumberValue("pageSize", pagedResultOfSourceTableRow.pageSize);
9886
- writer.writeNumberValue("totalCount", pagedResultOfSourceTableRow.totalCount);
9919
+ writer.writeObjectValue("pageSize", pagedResultOfSourceTableRow.pageSize);
9920
+ writer.writeObjectValue("totalCount", pagedResultOfSourceTableRow.totalCount);
9887
9921
  writer.writeAdditionalData(pagedResultOfSourceTableRow.additionalData);
9888
9922
  }
9889
9923
  /**
@@ -9899,8 +9933,8 @@ export function serializePagedResultOfSuppressionEntryResponse(writer, pagedResu
9899
9933
  }
9900
9934
  writer.writeStringValue("continuationToken", pagedResultOfSuppressionEntryResponse.continuationToken);
9901
9935
  writer.writeCollectionOfObjectValues("items", pagedResultOfSuppressionEntryResponse.items, serializeSuppressionEntryResponse);
9902
- writer.writeNumberValue("pageSize", pagedResultOfSuppressionEntryResponse.pageSize);
9903
- writer.writeNumberValue("totalCount", pagedResultOfSuppressionEntryResponse.totalCount);
9936
+ writer.writeObjectValue("pageSize", pagedResultOfSuppressionEntryResponse.pageSize);
9937
+ writer.writeObjectValue("totalCount", pagedResultOfSuppressionEntryResponse.totalCount);
9904
9938
  writer.writeAdditionalData(pagedResultOfSuppressionEntryResponse.additionalData);
9905
9939
  }
9906
9940
  /**
@@ -9916,8 +9950,8 @@ export function serializePagedResultOfTransactionTableRow(writer, pagedResultOfT
9916
9950
  }
9917
9951
  writer.writeStringValue("continuationToken", pagedResultOfTransactionTableRow.continuationToken);
9918
9952
  writer.writeCollectionOfObjectValues("items", pagedResultOfTransactionTableRow.items, serializeTransactionTableRow);
9919
- writer.writeNumberValue("pageSize", pagedResultOfTransactionTableRow.pageSize);
9920
- writer.writeNumberValue("totalCount", pagedResultOfTransactionTableRow.totalCount);
9953
+ writer.writeObjectValue("pageSize", pagedResultOfTransactionTableRow.pageSize);
9954
+ writer.writeObjectValue("totalCount", pagedResultOfTransactionTableRow.totalCount);
9921
9955
  writer.writeAdditionalData(pagedResultOfTransactionTableRow.additionalData);
9922
9956
  }
9923
9957
  /**
@@ -9933,8 +9967,8 @@ export function serializePagedResultOfUsageLedgerTableRow(writer, pagedResultOfU
9933
9967
  }
9934
9968
  writer.writeStringValue("continuationToken", pagedResultOfUsageLedgerTableRow.continuationToken);
9935
9969
  writer.writeCollectionOfObjectValues("items", pagedResultOfUsageLedgerTableRow.items, serializeUsageLedgerTableRow);
9936
- writer.writeNumberValue("pageSize", pagedResultOfUsageLedgerTableRow.pageSize);
9937
- writer.writeNumberValue("totalCount", pagedResultOfUsageLedgerTableRow.totalCount);
9970
+ writer.writeObjectValue("pageSize", pagedResultOfUsageLedgerTableRow.pageSize);
9971
+ writer.writeObjectValue("totalCount", pagedResultOfUsageLedgerTableRow.totalCount);
9938
9972
  writer.writeAdditionalData(pagedResultOfUsageLedgerTableRow.additionalData);
9939
9973
  }
9940
9974
  /**
@@ -9965,14 +9999,14 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
9965
9999
  return;
9966
10000
  }
9967
10001
  writer.writeDateValue("answeredAt", phoneCallResponse.answeredAt);
9968
- writer.writeNumberValue("billableAmount", phoneCallResponse.billableAmount);
10002
+ writer.writeObjectValue("billableAmount", phoneCallResponse.billableAmount);
9969
10003
  writer.writeStringValue("billingStatus", phoneCallResponse.billingStatus);
9970
10004
  writer.writeStringValue("callerId", phoneCallResponse.callerId);
9971
10005
  writer.writeStringValue("campaignId", phoneCallResponse.campaignId);
9972
10006
  writer.writeStringValue("conversationId", phoneCallResponse.conversationId);
9973
10007
  writer.writeDateValue("createdAt", phoneCallResponse.createdAt);
9974
10008
  writer.writeStringValue("direction", phoneCallResponse.direction);
9975
- writer.writeNumberValue("durationSeconds", phoneCallResponse.durationSeconds);
10009
+ writer.writeObjectValue("durationSeconds", phoneCallResponse.durationSeconds);
9976
10010
  writer.writeDateValue("endedAt", phoneCallResponse.endedAt);
9977
10011
  writer.writeStringValue("fromPhoneNumber", phoneCallResponse.fromPhoneNumber);
9978
10012
  writer.writeStringValue("fromPhoneNumberId", phoneCallResponse.fromPhoneNumberId);
@@ -9991,6 +10025,24 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
9991
10025
  writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
9992
10026
  writer.writeAdditionalData(phoneCallResponse.additionalData);
9993
10027
  }
10028
+ /**
10029
+ * Serializes information the current object
10030
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10031
+ * @param PhoneIdentityLookupAction The instance to serialize from.
10032
+ * @param writer Serialization writer to use to serialize this model
10033
+ */
10034
+ // @ts-ignore
10035
+ export function serializePhoneIdentityLookupAction(writer, phoneIdentityLookupAction = {}, isSerializingDerivedType = false) {
10036
+ if (!phoneIdentityLookupAction || isSerializingDerivedType) {
10037
+ return;
10038
+ }
10039
+ writer.writeStringValue("id", phoneIdentityLookupAction.id);
10040
+ writer.writeDateValue("occurredAt", phoneIdentityLookupAction.occurredAt);
10041
+ writer.writeStringValue("provider", phoneIdentityLookupAction.provider);
10042
+ writer.writeEnumValue("status", phoneIdentityLookupAction.status);
10043
+ writer.writeEnumValue("type", phoneIdentityLookupAction.type);
10044
+ writer.writeAdditionalData(phoneIdentityLookupAction.additionalData);
10045
+ }
9994
10046
  /**
9995
10047
  * Serializes information the current object
9996
10048
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10006,6 +10058,7 @@ export function serializePhoneIdentityResponse(writer, phoneIdentityResponse = {
10006
10058
  writer.writeStringValue("id", phoneIdentityResponse.id);
10007
10059
  writer.writeDateValue("lastEnrichedAt", phoneIdentityResponse.lastEnrichedAt);
10008
10060
  writer.writeObjectValue("lookup", phoneIdentityResponse.lookup, serializePhoneIdentityResponse_lookup);
10061
+ writer.writeCollectionOfObjectValues("lookupActions", phoneIdentityResponse.lookupActions, serializePhoneIdentityLookupAction);
10009
10062
  writer.writeDateValue("modifiedAt", phoneIdentityResponse.modifiedAt);
10010
10063
  writer.writeStringValue("name", phoneIdentityResponse.name);
10011
10064
  writer.writeStringValue("number", phoneIdentityResponse.number);
@@ -10206,7 +10259,7 @@ export function serializePhoneLookupProviderSnapshot(writer, phoneLookupProvider
10206
10259
  writer.writeStringValue("provider", phoneLookupProviderSnapshot.provider);
10207
10260
  writer.writeStringValue("rawRecordJson", phoneLookupProviderSnapshot.rawRecordJson);
10208
10261
  writer.writeDateValue("retrievedAt", phoneLookupProviderSnapshot.retrievedAt);
10209
- writer.writeNumberValue("schemaVersion", phoneLookupProviderSnapshot.schemaVersion);
10262
+ writer.writeObjectValue("schemaVersion", phoneLookupProviderSnapshot.schemaVersion);
10210
10263
  writer.writeAdditionalData(phoneLookupProviderSnapshot.additionalData);
10211
10264
  }
10212
10265
  /**
@@ -10238,7 +10291,7 @@ export function serializePhoneNumberAvailabilityResponse(writer, phoneNumberAvai
10238
10291
  writer.writeBooleanValue("isAvailable", phoneNumberAvailabilityResponse.isAvailable);
10239
10292
  writer.writeObjectValue("location", phoneNumberAvailabilityResponse.location, serializePhoneNumberAvailabilityResponse_location);
10240
10293
  writer.writeStringValue("phoneNumber", phoneNumberAvailabilityResponse.phoneNumber);
10241
- writer.writeNumberValue("price", phoneNumberAvailabilityResponse.price);
10294
+ writer.writeObjectValue("price", phoneNumberAvailabilityResponse.price);
10242
10295
  writer.writeAdditionalData(phoneNumberAvailabilityResponse.additionalData);
10243
10296
  }
10244
10297
  /**
@@ -10348,10 +10401,10 @@ export function serializePhoneNumberOptOutMetricsResponse(writer, phoneNumberOpt
10348
10401
  if (!phoneNumberOptOutMetricsResponse || isSerializingDerivedType) {
10349
10402
  return;
10350
10403
  }
10351
- writer.writeNumberValue("distinctContactedCount", phoneNumberOptOutMetricsResponse.distinctContactedCount);
10352
- writer.writeNumberValue("optOutCount", phoneNumberOptOutMetricsResponse.optOutCount);
10353
- writer.writeNumberValue("optOutRatePercent", phoneNumberOptOutMetricsResponse.optOutRatePercent);
10354
- writer.writeNumberValue("windowDays", phoneNumberOptOutMetricsResponse.windowDays);
10404
+ writer.writeObjectValue("distinctContactedCount", phoneNumberOptOutMetricsResponse.distinctContactedCount);
10405
+ writer.writeObjectValue("optOutCount", phoneNumberOptOutMetricsResponse.optOutCount);
10406
+ writer.writeObjectValue("optOutRatePercent", phoneNumberOptOutMetricsResponse.optOutRatePercent);
10407
+ writer.writeObjectValue("windowDays", phoneNumberOptOutMetricsResponse.windowDays);
10355
10408
  writer.writeDateValue("windowStartedAt", phoneNumberOptOutMetricsResponse.windowStartedAt);
10356
10409
  writer.writeAdditionalData(phoneNumberOptOutMetricsResponse.additionalData);
10357
10410
  }
@@ -10368,9 +10421,9 @@ export function serializePhoneNumberReadiness(writer, phoneNumberReadiness = {},
10368
10421
  }
10369
10422
  writer.writeEnumValue("callStage", phoneNumberReadiness.callStage);
10370
10423
  writer.writeBooleanValue("enabled", phoneNumberReadiness.enabled);
10371
- writer.writeNumberValue("healthScore", phoneNumberReadiness.healthScore);
10424
+ writer.writeObjectValue("healthScore", phoneNumberReadiness.healthScore);
10372
10425
  writer.writeEnumValue("healthStatus", phoneNumberReadiness.healthStatus);
10373
- writer.writeNumberValue("progressPercent", phoneNumberReadiness.progressPercent);
10426
+ writer.writeObjectValue("progressPercent", phoneNumberReadiness.progressPercent);
10374
10427
  writer.writeEnumValue("state", phoneNumberReadiness.state);
10375
10428
  writer.writeAdditionalData(phoneNumberReadiness.additionalData);
10376
10429
  }
@@ -10529,8 +10582,8 @@ export function serializePhoneNumberStatusResponse(writer, phoneNumberStatusResp
10529
10582
  if (!phoneNumberStatusResponse || isSerializingDerivedType) {
10530
10583
  return;
10531
10584
  }
10532
- writer.writeNumberValue("callsPossible", phoneNumberStatusResponse.callsPossible);
10533
- writer.writeNumberValue("messagesPossible", phoneNumberStatusResponse.messagesPossible);
10585
+ writer.writeObjectValue("callsPossible", phoneNumberStatusResponse.callsPossible);
10586
+ writer.writeObjectValue("messagesPossible", phoneNumberStatusResponse.messagesPossible);
10534
10587
  writer.writeStringValue("number", phoneNumberStatusResponse.number);
10535
10588
  writer.writeObjectValue("optOutMetrics", phoneNumberStatusResponse.optOutMetrics, serializePhoneNumberOptOutMetricsResponse);
10536
10589
  writer.writeObjectValue("outboundCapacity", phoneNumberStatusResponse.outboundCapacity, serializePhoneNumberStatusResponse_outboundCapacity);
@@ -10602,17 +10655,17 @@ export function serializePhoneNumberTrafficMetricsResponse(writer, phoneNumberTr
10602
10655
  if (!phoneNumberTrafficMetricsResponse || isSerializingDerivedType) {
10603
10656
  return;
10604
10657
  }
10605
- writer.writeNumberValue("callConnectedCount", phoneNumberTrafficMetricsResponse.callConnectedCount);
10606
- writer.writeNumberValue("callFailedCount", phoneNumberTrafficMetricsResponse.callFailedCount);
10607
- writer.writeNumberValue("callInvalidNumberCount", phoneNumberTrafficMetricsResponse.callInvalidNumberCount);
10608
- writer.writeNumberValue("callPlacedCount", phoneNumberTrafficMetricsResponse.callPlacedCount);
10609
- writer.writeNumberValue("callShortCount", phoneNumberTrafficMetricsResponse.callShortCount);
10610
- writer.writeNumberValue("mmsFailedCount", phoneNumberTrafficMetricsResponse.mmsFailedCount);
10611
- writer.writeNumberValue("mmsSentCount", phoneNumberTrafficMetricsResponse.mmsSentCount);
10612
- writer.writeNumberValue("smsFailedCount", phoneNumberTrafficMetricsResponse.smsFailedCount);
10613
- writer.writeNumberValue("smsSentCount", phoneNumberTrafficMetricsResponse.smsSentCount);
10658
+ writer.writeObjectValue("callConnectedCount", phoneNumberTrafficMetricsResponse.callConnectedCount);
10659
+ writer.writeObjectValue("callFailedCount", phoneNumberTrafficMetricsResponse.callFailedCount);
10660
+ writer.writeObjectValue("callInvalidNumberCount", phoneNumberTrafficMetricsResponse.callInvalidNumberCount);
10661
+ writer.writeObjectValue("callPlacedCount", phoneNumberTrafficMetricsResponse.callPlacedCount);
10662
+ writer.writeObjectValue("callShortCount", phoneNumberTrafficMetricsResponse.callShortCount);
10663
+ writer.writeObjectValue("mmsFailedCount", phoneNumberTrafficMetricsResponse.mmsFailedCount);
10664
+ writer.writeObjectValue("mmsSentCount", phoneNumberTrafficMetricsResponse.mmsSentCount);
10665
+ writer.writeObjectValue("smsFailedCount", phoneNumberTrafficMetricsResponse.smsFailedCount);
10666
+ writer.writeObjectValue("smsSentCount", phoneNumberTrafficMetricsResponse.smsSentCount);
10614
10667
  writer.writeCollectionOfObjectValues("trend", phoneNumberTrafficMetricsResponse.trend, serializePhoneNumberTrafficTrendPoint);
10615
- writer.writeNumberValue("windowDays", phoneNumberTrafficMetricsResponse.windowDays);
10668
+ writer.writeObjectValue("windowDays", phoneNumberTrafficMetricsResponse.windowDays);
10616
10669
  writer.writeDateValue("windowStartedAt", phoneNumberTrafficMetricsResponse.windowStartedAt);
10617
10670
  writer.writeAdditionalData(phoneNumberTrafficMetricsResponse.additionalData);
10618
10671
  }
@@ -10627,14 +10680,14 @@ export function serializePhoneNumberTrafficTrendPoint(writer, phoneNumberTraffic
10627
10680
  if (!phoneNumberTrafficTrendPoint || isSerializingDerivedType) {
10628
10681
  return;
10629
10682
  }
10630
- writer.writeNumberValue("callFailedCount", phoneNumberTrafficTrendPoint.callFailedCount);
10631
- writer.writeNumberValue("callPlacedCount", phoneNumberTrafficTrendPoint.callPlacedCount);
10683
+ writer.writeObjectValue("callFailedCount", phoneNumberTrafficTrendPoint.callFailedCount);
10684
+ writer.writeObjectValue("callPlacedCount", phoneNumberTrafficTrendPoint.callPlacedCount);
10632
10685
  writer.writeDateValue("endAt", phoneNumberTrafficTrendPoint.endAt);
10633
10686
  writer.writeStringValue("label", phoneNumberTrafficTrendPoint.label);
10634
- writer.writeNumberValue("mmsFailedCount", phoneNumberTrafficTrendPoint.mmsFailedCount);
10635
- writer.writeNumberValue("mmsSentCount", phoneNumberTrafficTrendPoint.mmsSentCount);
10636
- writer.writeNumberValue("smsFailedCount", phoneNumberTrafficTrendPoint.smsFailedCount);
10637
- writer.writeNumberValue("smsSentCount", phoneNumberTrafficTrendPoint.smsSentCount);
10687
+ writer.writeObjectValue("mmsFailedCount", phoneNumberTrafficTrendPoint.mmsFailedCount);
10688
+ writer.writeObjectValue("mmsSentCount", phoneNumberTrafficTrendPoint.mmsSentCount);
10689
+ writer.writeObjectValue("smsFailedCount", phoneNumberTrafficTrendPoint.smsFailedCount);
10690
+ writer.writeObjectValue("smsSentCount", phoneNumberTrafficTrendPoint.smsSentCount);
10638
10691
  writer.writeDateValue("startAt", phoneNumberTrafficTrendPoint.startAt);
10639
10692
  writer.writeAdditionalData(phoneNumberTrafficTrendPoint.additionalData);
10640
10693
  }
@@ -10651,7 +10704,7 @@ export function serializeProblemDetails(writer, problemDetails = {}, isSerializi
10651
10704
  }
10652
10705
  writer.writeStringValue("detail", problemDetails.detail);
10653
10706
  writer.writeStringValue("instance", problemDetails.instance);
10654
- writer.writeNumberValue("status", problemDetails.status);
10707
+ writer.writeObjectValue("status", problemDetails.status);
10655
10708
  writer.writeStringValue("title", problemDetails.title);
10656
10709
  writer.writeStringValue("type", problemDetails.type);
10657
10710
  writer.writeAdditionalData(problemDetails.additionalData);
@@ -10726,7 +10779,7 @@ export function serializeRequestDataOptions(writer, requestDataOptions = {}, isS
10726
10779
  writer.writeCollectionOfObjectValues("filters", requestDataOptions.filters, serializeExactMatchFilter);
10727
10780
  writer.writeBooleanValue("includeCount", requestDataOptions.includeCount);
10728
10781
  writer.writeCollectionOfObjectValues("orderBy", requestDataOptions.orderBy, serializeOrderByOption);
10729
- writer.writeNumberValue("pageSize", requestDataOptions.pageSize);
10782
+ writer.writeObjectValue("pageSize", requestDataOptions.pageSize);
10730
10783
  writer.writeCollectionOfObjectValues("rangeFilters", requestDataOptions.rangeFilters, serializeRangeFilter);
10731
10784
  writer.writeStringValue("search", requestDataOptions.search);
10732
10785
  writer.writeCollectionOfPrimitiveValues("searchFields", requestDataOptions.searchFields);
@@ -10768,7 +10821,7 @@ export function serializeSmsEventTableRow(writer, smsEventTableRow = {}, isSeria
10768
10821
  }
10769
10822
  writer.writeStringValue("actorDisplayName", smsEventTableRow.actorDisplayName);
10770
10823
  writer.writeStringValue("actorUserId", smsEventTableRow.actorUserId);
10771
- writer.writeNumberValue("billableAmount", smsEventTableRow.billableAmount);
10824
+ writer.writeObjectValue("billableAmount", smsEventTableRow.billableAmount);
10772
10825
  writer.writeStringValue("billingStatus", smsEventTableRow.billingStatus);
10773
10826
  writer.writeDateValue("blockedAt", smsEventTableRow.blockedAt);
10774
10827
  writer.writeDateValue("canceledAt", smsEventTableRow.canceledAt);
@@ -10819,11 +10872,11 @@ export function serializeSmsReadinessStatusResponse(writer, smsReadinessStatusRe
10819
10872
  if (!smsReadinessStatusResponse || isSerializingDerivedType) {
10820
10873
  return;
10821
10874
  }
10822
- writer.writeNumberValue("healthScore", smsReadinessStatusResponse.healthScore);
10875
+ writer.writeObjectValue("healthScore", smsReadinessStatusResponse.healthScore);
10823
10876
  writer.writeEnumValue("healthStatus", smsReadinessStatusResponse.healthStatus);
10824
10877
  writer.writeStringValue("phoneNumber", smsReadinessStatusResponse.phoneNumber);
10825
10878
  writer.writeStringValue("phoneNumberId", smsReadinessStatusResponse.phoneNumberId);
10826
- writer.writeNumberValue("progressPercent", smsReadinessStatusResponse.progressPercent);
10879
+ writer.writeObjectValue("progressPercent", smsReadinessStatusResponse.progressPercent);
10827
10880
  writer.writeEnumValue("status", smsReadinessStatusResponse.status);
10828
10881
  writer.writeObjectValue("uiState", smsReadinessStatusResponse.uiState, serializeSmsReadinessUiState);
10829
10882
  writer.writeBooleanValue("warmupEnabled", smsReadinessStatusResponse.warmupEnabled);
@@ -10856,7 +10909,7 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
10856
10909
  if (!smsResponse || isSerializingDerivedType) {
10857
10910
  return;
10858
10911
  }
10859
- writer.writeNumberValue("billableAmount", smsResponse.billableAmount);
10912
+ writer.writeObjectValue("billableAmount", smsResponse.billableAmount);
10860
10913
  writer.writeStringValue("billingStatus", smsResponse.billingStatus);
10861
10914
  writer.writeDateValue("blockedAt", smsResponse.blockedAt);
10862
10915
  writer.writeStringValue("campaignId", smsResponse.campaignId);
@@ -10879,7 +10932,7 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
10879
10932
  writer.writeStringValue("outboundPhoneNumberId", smsResponse.outboundPhoneNumberId);
10880
10933
  writer.writeDateValue("queuedAt", smsResponse.queuedAt);
10881
10934
  writer.writeDateValue("receivedAt", smsResponse.receivedAt);
10882
- writer.writeNumberValue("retryCount", smsResponse.retryCount);
10935
+ writer.writeObjectValue("retryCount", smsResponse.retryCount);
10883
10936
  writer.writeDateValue("scheduledFor", smsResponse.scheduledFor);
10884
10937
  writer.writeStringValue("scheduledReason", smsResponse.scheduledReason);
10885
10938
  writer.writeEnumValue("selectionReason", smsResponse.selectionReason);
@@ -10908,7 +10961,7 @@ export function serializeSourceMetricsResponse(writer, sourceMetricsResponse = {
10908
10961
  writer.writeDateValue("generatedAt", sourceMetricsResponse.generatedAt);
10909
10962
  writer.writeCollectionOfObjectValues("points", sourceMetricsResponse.points, serializeAnalyticsTrendPointOfint);
10910
10963
  writer.writeObjectValue("range", sourceMetricsResponse.range, serializeAnalyticsDateRange);
10911
- writer.writeNumberValue("totalLeads", sourceMetricsResponse.totalLeads);
10964
+ writer.writeObjectValue("totalLeads", sourceMetricsResponse.totalLeads);
10912
10965
  writer.writeAdditionalData(sourceMetricsResponse.additionalData);
10913
10966
  }
10914
10967
  /**
@@ -10925,7 +10978,7 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
10925
10978
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceRequest.allowedProducts);
10926
10979
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceRequest.allowedStates);
10927
10980
  writer.writeStringValue("apiKey", sourceRequest.apiKey);
10928
- writer.writeNumberValue("costPerLead", sourceRequest.costPerLead);
10981
+ writer.writeObjectValue("costPerLead", sourceRequest.costPerLead);
10929
10982
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
10930
10983
  writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
10931
10984
  writer.writeStringValue("description", sourceRequest.description);
@@ -10952,7 +11005,7 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
10952
11005
  writer.writeStringValue("apiKey", sourceResponse.apiKey);
10953
11006
  writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
10954
11007
  writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
10955
- writer.writeNumberValue("costPerLead", sourceResponse.costPerLead);
11008
+ writer.writeObjectValue("costPerLead", sourceResponse.costPerLead);
10956
11009
  writer.writeDateValue("createdAt", sourceResponse.createdAt);
10957
11010
  writer.writeObjectValue("createdByUser", sourceResponse.createdByUser, serializeSourceResponse_createdByUser);
10958
11011
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceResponse.defaultTagIds);
@@ -11038,9 +11091,9 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
11038
11091
  writer.writeStringValue("apiKey", sourceTableRow.apiKey);
11039
11092
  writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
11040
11093
  writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
11041
- writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
11094
+ writer.writeObjectValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
11042
11095
  writer.writeBooleanValue("complianceApproved", sourceTableRow.complianceApproved);
11043
- writer.writeNumberValue("costPerLead", sourceTableRow.costPerLead);
11096
+ writer.writeObjectValue("costPerLead", sourceTableRow.costPerLead);
11044
11097
  writer.writeDateValue("createdAt", sourceTableRow.createdAt);
11045
11098
  writer.writeObjectValue("createdByUser", sourceTableRow.createdByUser, serializeSourceTableRow_createdByUser);
11046
11099
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceTableRow.defaultTagIds);
@@ -11144,7 +11197,7 @@ export function serializeStripeInvoiceResponse(writer, stripeInvoiceResponse = {
11144
11197
  if (!stripeInvoiceResponse || isSerializingDerivedType) {
11145
11198
  return;
11146
11199
  }
11147
- writer.writeNumberValue("amount", stripeInvoiceResponse.amount);
11200
+ writer.writeObjectValue("amount", stripeInvoiceResponse.amount);
11148
11201
  writer.writeDateValue("createdAt", stripeInvoiceResponse.createdAt);
11149
11202
  writer.writeBooleanValue("hasPdf", stripeInvoiceResponse.hasPdf);
11150
11203
  writer.writeStringValue("id", stripeInvoiceResponse.id);
@@ -11165,8 +11218,8 @@ export function serializeStripePaymentMethodResponse(writer, stripePaymentMethod
11165
11218
  }
11166
11219
  writer.writeStringValue("brand", stripePaymentMethodResponse.brand);
11167
11220
  writer.writeDateValue("createdAt", stripePaymentMethodResponse.createdAt);
11168
- writer.writeNumberValue("expMonth", stripePaymentMethodResponse.expMonth);
11169
- writer.writeNumberValue("expYear", stripePaymentMethodResponse.expYear);
11221
+ writer.writeObjectValue("expMonth", stripePaymentMethodResponse.expMonth);
11222
+ writer.writeObjectValue("expYear", stripePaymentMethodResponse.expYear);
11170
11223
  writer.writeStringValue("id", stripePaymentMethodResponse.id);
11171
11224
  writer.writeBooleanValue("isDefault", stripePaymentMethodResponse.isDefault);
11172
11225
  writer.writeStringValue("last4", stripePaymentMethodResponse.last4);
@@ -11393,10 +11446,9 @@ export function serializeTenDlcApplicationDraft(writer, tenDlcApplicationDraft =
11393
11446
  writer.writeStringValue("contactName", tenDlcApplicationDraft.contactName);
11394
11447
  writer.writeStringValue("contactPhone", tenDlcApplicationDraft.contactPhone);
11395
11448
  writer.writeStringValue("ein", tenDlcApplicationDraft.ein);
11396
- writer.writeNumberValue("expectedMonthlyVolume", tenDlcApplicationDraft.expectedMonthlyVolume);
11449
+ writer.writeObjectValue("expectedMonthlyVolume", tenDlcApplicationDraft.expectedMonthlyVolume);
11397
11450
  writer.writeStringValue("industry", tenDlcApplicationDraft.industry);
11398
11451
  writer.writeDateValue("lastSubmittedAt", tenDlcApplicationDraft.lastSubmittedAt);
11399
- writer.writeStringValue("leadSource", tenDlcApplicationDraft.leadSource);
11400
11452
  writer.writeCollectionOfPrimitiveValues("messageExamples", tenDlcApplicationDraft.messageExamples);
11401
11453
  writer.writeCollectionOfPrimitiveValues("missingFields", tenDlcApplicationDraft.missingFields);
11402
11454
  writer.writeStringValue("optInLanguage", tenDlcApplicationDraft.optInLanguage);
@@ -11407,7 +11459,7 @@ export function serializeTenDlcApplicationDraft(writer, tenDlcApplicationDraft =
11407
11459
  writer.writeDateValue("updatedAt", tenDlcApplicationDraft.updatedAt);
11408
11460
  writer.writeStringValue("useCase", tenDlcApplicationDraft.useCase);
11409
11461
  writer.writeStringValue("useCaseDescription", tenDlcApplicationDraft.useCaseDescription);
11410
- writer.writeNumberValue("version", tenDlcApplicationDraft.version);
11462
+ writer.writeObjectValue("version", tenDlcApplicationDraft.version);
11411
11463
  writer.writeStringValue("websiteUrl", tenDlcApplicationDraft.websiteUrl);
11412
11464
  writer.writeAdditionalData(tenDlcApplicationDraft.additionalData);
11413
11465
  }
@@ -11436,22 +11488,22 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
11436
11488
  if (!transactionResponse || isSerializingDerivedType) {
11437
11489
  return;
11438
11490
  }
11439
- writer.writeNumberValue("amount", transactionResponse.amount);
11491
+ writer.writeObjectValue("amount", transactionResponse.amount);
11440
11492
  writer.writeEnumValue("billableUnit", transactionResponse.billableUnit);
11441
- writer.writeNumberValue("billedAmount", transactionResponse.billedAmount);
11493
+ writer.writeObjectValue("billedAmount", transactionResponse.billedAmount);
11442
11494
  writer.writeEnumValue("billingChannel", transactionResponse.billingChannel);
11443
11495
  writer.writeDateValue("createdAt", transactionResponse.createdAt);
11444
11496
  writer.writeStringValue("description", transactionResponse.description);
11445
- writer.writeNumberValue("gatewayFeeAmount", transactionResponse.gatewayFeeAmount);
11497
+ writer.writeObjectValue("gatewayFeeAmount", transactionResponse.gatewayFeeAmount);
11446
11498
  writer.writeStringValue("gatewayStatus", transactionResponse.gatewayStatus);
11447
11499
  writer.writeStringValue("id", transactionResponse.id);
11448
11500
  writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
11449
11501
  writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
11450
- writer.writeNumberValue("netAmount", transactionResponse.netAmount);
11502
+ writer.writeObjectValue("netAmount", transactionResponse.netAmount);
11451
11503
  writer.writeStringValue("notes", transactionResponse.notes);
11452
11504
  writer.writeObjectValue("organization", transactionResponse.organization, serializeTransactionResponse_organization);
11453
11505
  writer.writeStringValue("paymentMethodDisplay", transactionResponse.paymentMethodDisplay);
11454
- writer.writeNumberValue("platformFeeAmount", transactionResponse.platformFeeAmount);
11506
+ writer.writeObjectValue("platformFeeAmount", transactionResponse.platformFeeAmount);
11455
11507
  writer.writeEnumValue("transactionStatus", transactionResponse.transactionStatus);
11456
11508
  writer.writeEnumValue("transactionType", transactionResponse.transactionType);
11457
11509
  writer.writeAdditionalData(transactionResponse.additionalData);
@@ -11493,24 +11545,24 @@ export function serializeTransactionTableRow(writer, transactionTableRow = {}, i
11493
11545
  if (!transactionTableRow || isSerializingDerivedType) {
11494
11546
  return;
11495
11547
  }
11496
- writer.writeNumberValue("amount", transactionTableRow.amount);
11548
+ writer.writeObjectValue("amount", transactionTableRow.amount);
11497
11549
  writer.writeEnumValue("billableUnit", transactionTableRow.billableUnit);
11498
- writer.writeNumberValue("billedAmount", transactionTableRow.billedAmount);
11550
+ writer.writeObjectValue("billedAmount", transactionTableRow.billedAmount);
11499
11551
  writer.writeEnumValue("billingChannel", transactionTableRow.billingChannel);
11500
11552
  writer.writeDateValue("createdAt", transactionTableRow.createdAt);
11501
11553
  writer.writeStringValue("description", transactionTableRow.description);
11502
11554
  writer.writeStringValue("id", transactionTableRow.id);
11503
11555
  writer.writeObjectValue("lead", transactionTableRow.lead, serializeTransactionTableRow_lead);
11504
- writer.writeNumberValue("netAmount", transactionTableRow.netAmount);
11556
+ writer.writeObjectValue("netAmount", transactionTableRow.netAmount);
11505
11557
  writer.writeObjectValue("organization", transactionTableRow.organization, serializeTransactionTableRow_organization);
11506
11558
  writer.writeStringValue("paymentMethodDisplay", transactionTableRow.paymentMethodDisplay);
11507
11559
  writer.writeStringValue("pricingVersion", transactionTableRow.pricingVersion);
11508
- writer.writeNumberValue("quantity", transactionTableRow.quantity);
11560
+ writer.writeObjectValue("quantity", transactionTableRow.quantity);
11509
11561
  writer.writeStringValue("sourceEventId", transactionTableRow.sourceEventId);
11510
11562
  writer.writeStringValue("sourceEventType", transactionTableRow.sourceEventType);
11511
11563
  writer.writeEnumValue("transactionStatus", transactionTableRow.transactionStatus);
11512
11564
  writer.writeEnumValue("transactionType", transactionTableRow.transactionType);
11513
- writer.writeNumberValue("unitPrice", transactionTableRow.unitPrice);
11565
+ writer.writeObjectValue("unitPrice", transactionTableRow.unitPrice);
11514
11566
  writer.writeAdditionalData(transactionTableRow.additionalData);
11515
11567
  }
11516
11568
  /**
@@ -11569,9 +11621,9 @@ export function serializeUsageCounterLine(writer, usageCounterLine = {}, isSeria
11569
11621
  }
11570
11622
  writer.writeStringValue("key", usageCounterLine.key);
11571
11623
  writer.writeStringValue("label", usageCounterLine.label);
11572
- writer.writeNumberValue("sortOrder", usageCounterLine.sortOrder);
11624
+ writer.writeObjectValue("sortOrder", usageCounterLine.sortOrder);
11573
11625
  writer.writeStringValue("unit", usageCounterLine.unit);
11574
- writer.writeNumberValue("value", usageCounterLine.value);
11626
+ writer.writeObjectValue("value", usageCounterLine.value);
11575
11627
  writer.writeAdditionalData(usageCounterLine.additionalData);
11576
11628
  }
11577
11629
  /**
@@ -11585,23 +11637,23 @@ export function serializeUsageLedgerTableRow(writer, usageLedgerTableRow = {}, i
11585
11637
  if (!usageLedgerTableRow || isSerializingDerivedType) {
11586
11638
  return;
11587
11639
  }
11588
- writer.writeNumberValue("billableSeconds", usageLedgerTableRow.billableSeconds);
11640
+ writer.writeObjectValue("billableSeconds", usageLedgerTableRow.billableSeconds);
11589
11641
  writer.writeEnumValue("billableUnit", usageLedgerTableRow.billableUnit);
11590
11642
  writer.writeEnumValue("channel", usageLedgerTableRow.channel);
11591
11643
  writer.writeDateValue("createdAt", usageLedgerTableRow.createdAt);
11592
- writer.writeNumberValue("customerChargeAmount", usageLedgerTableRow.customerChargeAmount);
11644
+ writer.writeObjectValue("customerChargeAmount", usageLedgerTableRow.customerChargeAmount);
11593
11645
  writer.writeStringValue("description", usageLedgerTableRow.description);
11594
- writer.writeNumberValue("durationSeconds", usageLedgerTableRow.durationSeconds);
11646
+ writer.writeObjectValue("durationSeconds", usageLedgerTableRow.durationSeconds);
11595
11647
  writer.writeStringValue("id", usageLedgerTableRow.id);
11596
11648
  writer.writeBooleanValue("isBillable", usageLedgerTableRow.isBillable);
11597
11649
  writer.writeObjectValue("lead", usageLedgerTableRow.lead, serializeUsageLedgerTableRow_lead);
11598
11650
  writer.writeObjectValue("organization", usageLedgerTableRow.organization, serializeUsageLedgerTableRow_organization);
11599
11651
  writer.writeStringValue("phoneNumber", usageLedgerTableRow.phoneNumber);
11600
11652
  writer.writeStringValue("phoneNumberId", usageLedgerTableRow.phoneNumberId);
11601
- writer.writeNumberValue("quantity", usageLedgerTableRow.quantity);
11602
- writer.writeNumberValue("smsSegments", usageLedgerTableRow.smsSegments);
11653
+ writer.writeObjectValue("quantity", usageLedgerTableRow.quantity);
11654
+ writer.writeObjectValue("smsSegments", usageLedgerTableRow.smsSegments);
11603
11655
  writer.writeEnumValue("status", usageLedgerTableRow.status);
11604
- writer.writeNumberValue("unitPrice", usageLedgerTableRow.unitPrice);
11656
+ writer.writeObjectValue("unitPrice", usageLedgerTableRow.unitPrice);
11605
11657
  writer.writeObjectValue("user", usageLedgerTableRow.user, serializeUsageLedgerTableRow_user);
11606
11658
  writer.writeAdditionalData(usageLedgerTableRow.additionalData);
11607
11659
  }
@@ -11657,9 +11709,9 @@ export function serializeUsageSummaryLine(writer, usageSummaryLine = {}, isSeria
11657
11709
  }
11658
11710
  writer.writeEnumValue("billableUnit", usageSummaryLine.billableUnit);
11659
11711
  writer.writeEnumValue("channel", usageSummaryLine.channel);
11660
- writer.writeNumberValue("customerChargeAmount", usageSummaryLine.customerChargeAmount);
11661
- writer.writeNumberValue("quantity", usageSummaryLine.quantity);
11662
- writer.writeNumberValue("recordCount", usageSummaryLine.recordCount);
11712
+ writer.writeObjectValue("customerChargeAmount", usageSummaryLine.customerChargeAmount);
11713
+ writer.writeObjectValue("quantity", usageSummaryLine.quantity);
11714
+ writer.writeObjectValue("recordCount", usageSummaryLine.recordCount);
11663
11715
  writer.writeEnumValue("status", usageSummaryLine.status);
11664
11716
  writer.writeAdditionalData(usageSummaryLine.additionalData);
11665
11717
  }
@@ -11674,15 +11726,15 @@ export function serializeUsageSummaryResponse(writer, usageSummaryResponse = {},
11674
11726
  if (!usageSummaryResponse || isSerializingDerivedType) {
11675
11727
  return;
11676
11728
  }
11677
- writer.writeNumberValue("billableQuantityTotal", usageSummaryResponse.billableQuantityTotal);
11729
+ writer.writeObjectValue("billableQuantityTotal", usageSummaryResponse.billableQuantityTotal);
11678
11730
  writer.writeCollectionOfObjectValues("counters", usageSummaryResponse.counters, serializeUsageCounterLine);
11679
- writer.writeNumberValue("customerChargeTotal", usageSummaryResponse.customerChargeTotal);
11680
- writer.writeNumberValue("failedCount", usageSummaryResponse.failedCount);
11731
+ writer.writeObjectValue("customerChargeTotal", usageSummaryResponse.customerChargeTotal);
11732
+ writer.writeObjectValue("failedCount", usageSummaryResponse.failedCount);
11681
11733
  writer.writeCollectionOfObjectValues("lines", usageSummaryResponse.lines, serializeUsageSummaryLine);
11682
- writer.writeNumberValue("pendingInvoiceCount", usageSummaryResponse.pendingInvoiceCount);
11734
+ writer.writeObjectValue("pendingInvoiceCount", usageSummaryResponse.pendingInvoiceCount);
11683
11735
  writer.writeDateValue("periodEnd", usageSummaryResponse.periodEnd);
11684
11736
  writer.writeDateValue("periodStart", usageSummaryResponse.periodStart);
11685
- writer.writeNumberValue("transactionCount", usageSummaryResponse.transactionCount);
11737
+ writer.writeObjectValue("transactionCount", usageSummaryResponse.transactionCount);
11686
11738
  writer.writeAdditionalData(usageSummaryResponse.additionalData);
11687
11739
  }
11688
11740
  /**
@@ -11718,7 +11770,7 @@ export function serializeUserDataExportFile(writer, userDataExportFile = {}, isS
11718
11770
  writer.writeStringValue("category", userDataExportFile.category);
11719
11771
  writer.writeStringValue("contentType", userDataExportFile.contentType);
11720
11772
  writer.writeStringValue("fileName", userDataExportFile.fileName);
11721
- writer.writeNumberValue("rowCount", userDataExportFile.rowCount);
11773
+ writer.writeObjectValue("rowCount", userDataExportFile.rowCount);
11722
11774
  writer.writeAdditionalData(userDataExportFile.additionalData);
11723
11775
  }
11724
11776
  /**
@@ -11734,17 +11786,17 @@ export function serializeUserDataExportResponse(writer, userDataExportResponse =
11734
11786
  }
11735
11787
  writer.writeDateValue("completedAt", userDataExportResponse.completedAt);
11736
11788
  writer.writeStringValue("contentType", userDataExportResponse.contentType);
11737
- writer.writeNumberValue("downloadCount", userDataExportResponse.downloadCount);
11789
+ writer.writeObjectValue("downloadCount", userDataExportResponse.downloadCount);
11738
11790
  writer.writeStringValue("downloadUrl", userDataExportResponse.downloadUrl);
11739
11791
  writer.writeDateValue("expiresAt", userDataExportResponse.expiresAt);
11740
11792
  writer.writeDateValue("failedAt", userDataExportResponse.failedAt);
11741
11793
  writer.writeStringValue("fileName", userDataExportResponse.fileName);
11742
11794
  writer.writeCollectionOfObjectValues("files", userDataExportResponse.files, serializeUserDataExportFile);
11743
11795
  writer.writeStringValue("id", userDataExportResponse.id);
11744
- writer.writeNumberValue("maxDownloadCount", userDataExportResponse.maxDownloadCount);
11796
+ writer.writeObjectValue("maxDownloadCount", userDataExportResponse.maxDownloadCount);
11745
11797
  writer.writeStringValue("message", userDataExportResponse.message);
11746
11798
  writer.writeDateValue("requestedAt", userDataExportResponse.requestedAt);
11747
- writer.writeNumberValue("sizeBytes", userDataExportResponse.sizeBytes);
11799
+ writer.writeObjectValue("sizeBytes", userDataExportResponse.sizeBytes);
11748
11800
  writer.writeDateValue("startedAt", userDataExportResponse.startedAt);
11749
11801
  writer.writeEnumValue("status", userDataExportResponse.status);
11750
11802
  writer.writeAdditionalData(userDataExportResponse.additionalData);
@@ -11981,20 +12033,20 @@ export function serializeWalletResponse(writer, walletResponse = {}, isSerializi
11981
12033
  if (!walletResponse || isSerializingDerivedType) {
11982
12034
  return;
11983
12035
  }
11984
- writer.writeNumberValue("amountPurchased", walletResponse.amountPurchased);
11985
- writer.writeNumberValue("amountRemaining", walletResponse.amountRemaining);
11986
- writer.writeNumberValue("balance", walletResponse.balance);
12036
+ writer.writeObjectValue("amountPurchased", walletResponse.amountPurchased);
12037
+ writer.writeObjectValue("amountRemaining", walletResponse.amountRemaining);
12038
+ writer.writeObjectValue("balance", walletResponse.balance);
11987
12039
  writer.writeDateValue("balanceCalculatedAt", walletResponse.balanceCalculatedAt);
11988
12040
  writer.writeDateValue("createdAt", walletResponse.createdAt);
11989
12041
  writer.writeEnumValue("creditStatus", walletResponse.creditStatus);
11990
12042
  writer.writeStringValue("currency", walletResponse.currency);
11991
- writer.writeNumberValue("expiredCreditAmount", walletResponse.expiredCreditAmount);
12043
+ writer.writeObjectValue("expiredCreditAmount", walletResponse.expiredCreditAmount);
11992
12044
  writer.writeDateValue("expiresAt", walletResponse.expiresAt);
11993
12045
  writer.writeStringValue("id", walletResponse.id);
11994
12046
  writer.writeDateValue("modifiedAt", walletResponse.modifiedAt);
11995
12047
  writer.writeStringValue("name", walletResponse.name);
11996
12048
  writer.writeDateValue("nextCreditExpirationAt", walletResponse.nextCreditExpirationAt);
11997
- writer.writeNumberValue("nextExpiringCreditAmount", walletResponse.nextExpiringCreditAmount);
12049
+ writer.writeObjectValue("nextExpiringCreditAmount", walletResponse.nextExpiringCreditAmount);
11998
12050
  writer.writeStringValue("organizationId", walletResponse.organizationId);
11999
12051
  writer.writeStringValue("originalTransactionId", walletResponse.originalTransactionId);
12000
12052
  writer.writeDateValue("purchasedAt", walletResponse.purchasedAt);
@@ -12832,6 +12884,21 @@ export const PhoneCallStatusObject = {
12832
12884
  Blocked_permission: "blocked_permission",
12833
12885
  Configuration_required: "configuration_required",
12834
12886
  };
12887
+ /**
12888
+ * Identifies the outcome of a phone identity lookup action.
12889
+ */
12890
+ export const PhoneIdentityLookupActionStatusObject = {
12891
+ Succeeded: "succeeded",
12892
+ Failed: "failed",
12893
+ };
12894
+ /**
12895
+ * Identifies the kind of lookup action performed for a phone identity.
12896
+ */
12897
+ export const PhoneIdentityLookupActionTypeObject = {
12898
+ Validation: "validation",
12899
+ Enrichment: "enrichment",
12900
+ UnwantedNumberCheck: "unwanted-number-check",
12901
+ };
12835
12902
  /**
12836
12903
  * An enumerator describing phone line types
12837
12904
  */