@surgeapi/node 0.26.0 → 0.27.0

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 (77) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/client.d.mts +16 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +16 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +2 -2
  8. package/client.mjs.map +1 -1
  9. package/internal/to-file.d.mts +1 -1
  10. package/internal/to-file.d.ts +1 -1
  11. package/internal/to-file.js +1 -1
  12. package/internal/to-file.mjs +1 -1
  13. package/package.json +1 -1
  14. package/resources/accounts.d.mts +292 -191
  15. package/resources/accounts.d.mts.map +1 -1
  16. package/resources/accounts.d.ts +292 -191
  17. package/resources/accounts.d.ts.map +1 -1
  18. package/resources/blasts.d.mts +11 -32
  19. package/resources/blasts.d.mts.map +1 -1
  20. package/resources/blasts.d.ts +11 -32
  21. package/resources/blasts.d.ts.map +1 -1
  22. package/resources/blasts.js.map +1 -1
  23. package/resources/blasts.mjs.map +1 -1
  24. package/resources/campaigns.d.mts +1 -103
  25. package/resources/campaigns.d.mts.map +1 -1
  26. package/resources/campaigns.d.ts +1 -103
  27. package/resources/campaigns.d.ts.map +1 -1
  28. package/resources/contacts.d.mts +1 -28
  29. package/resources/contacts.d.mts.map +1 -1
  30. package/resources/contacts.d.ts +1 -28
  31. package/resources/contacts.d.ts.map +1 -1
  32. package/resources/index.d.mts +8 -8
  33. package/resources/index.d.mts.map +1 -1
  34. package/resources/index.d.ts +8 -8
  35. package/resources/index.d.ts.map +1 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +2 -2
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/messages.d.mts +49 -81
  40. package/resources/messages.d.mts.map +1 -1
  41. package/resources/messages.d.ts +49 -81
  42. package/resources/messages.d.ts.map +1 -1
  43. package/resources/messages.js.map +1 -1
  44. package/resources/messages.mjs.map +1 -1
  45. package/resources/phone-numbers.d.mts +0 -30
  46. package/resources/phone-numbers.d.mts.map +1 -1
  47. package/resources/phone-numbers.d.ts +0 -30
  48. package/resources/phone-numbers.d.ts.map +1 -1
  49. package/resources/users.d.mts +1 -33
  50. package/resources/users.d.mts.map +1 -1
  51. package/resources/users.d.ts +1 -33
  52. package/resources/users.d.ts.map +1 -1
  53. package/resources/verifications.d.mts +1 -19
  54. package/resources/verifications.d.mts.map +1 -1
  55. package/resources/verifications.d.ts +1 -19
  56. package/resources/verifications.d.ts.map +1 -1
  57. package/resources/webhooks.d.mts +60 -41
  58. package/resources/webhooks.d.mts.map +1 -1
  59. package/resources/webhooks.d.ts +60 -41
  60. package/resources/webhooks.d.ts.map +1 -1
  61. package/src/client.ts +12 -43
  62. package/src/internal/to-file.ts +1 -1
  63. package/src/resources/accounts.ts +475 -284
  64. package/src/resources/blasts.ts +11 -42
  65. package/src/resources/campaigns.ts +1 -127
  66. package/src/resources/contacts.ts +0 -31
  67. package/src/resources/index.ts +8 -23
  68. package/src/resources/messages.ts +54 -99
  69. package/src/resources/phone-numbers.ts +0 -34
  70. package/src/resources/users.ts +0 -37
  71. package/src/resources/verifications.ts +1 -22
  72. package/src/resources/webhooks.ts +72 -39
  73. package/src/version.ts +1 -1
  74. package/version.d.mts +1 -1
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/version.mjs +1 -1
@@ -89,38 +89,6 @@ export interface Account {
89
89
  time_zone: string | null;
90
90
  }
91
91
 
92
- /**
93
- * Parameters for creating a new account.
94
- */
95
- export interface AccountParams {
96
- /**
97
- * The name of the account that will be visible for your internal organizational
98
- * purposes. This will also be the default public-facing brand name unless you also
99
- * set a `brand_name`, but otherwise the account name will never be displayed
100
- * anywhere outside of Surge HQ, and may include your ID for the account or
101
- * anything else that may help you.
102
- */
103
- name: string;
104
-
105
- /**
106
- * The name by which the people this account communicates with know it. If not
107
- * provided, this will match the name field.
108
- */
109
- brand_name?: string | null;
110
-
111
- /**
112
- * Parameters describing the legal entity on whose behalf the account will be
113
- * operated.
114
- */
115
- organization?: OrganizationParams;
116
-
117
- /**
118
- * This is the time zone in which the account is headquartered. This time zone may
119
- * be used for compliance with TCPA restrictions on when messages may be sent.
120
- */
121
- time_zone?: string;
122
- }
123
-
124
92
  /**
125
93
  * Response containing account status information
126
94
  */
@@ -175,37 +143,6 @@ export namespace AccountStatus {
175
143
  }
176
144
  }
177
145
 
178
- /**
179
- * Parameters for updating an existing account.
180
- */
181
- export interface AccountUpdateParams {
182
- /**
183
- * The name by which the people this account communicates with know it. If not
184
- * provided, this will match the name field.
185
- */
186
- brand_name?: string;
187
-
188
- /**
189
- * The name of the account that will be visible for your internal organizational
190
- * purposes. This will also be the default public-facing brand name unless you also
191
- * set a `brand_name`, but otherwise the account name will never be displayed
192
- * anywhere outside of Surge HQ, and may include your ID for the account or
193
- * anything else that may help you.
194
- */
195
- name?: string;
196
-
197
- /**
198
- * Parameters describing the legal entity on whose behalf the account will be
199
- * operated.
200
- */
201
- organization?: OrganizationParams;
202
-
203
- /**
204
- * The time zone for the account
205
- */
206
- time_zone?: string | null;
207
- }
208
-
209
146
  /**
210
147
  * The legal entity on whose behalf the account will be operated.
211
148
  */
@@ -454,282 +391,284 @@ export namespace Organization {
454
391
  }
455
392
  }
456
393
 
457
- /**
458
- * Parameters describing the legal entity on whose behalf the account will be
459
- * operated.
460
- */
461
- export interface OrganizationParams {
462
- /**
463
- * The address of the organization's headquarters.
464
- */
465
- address?: OrganizationParams.Address;
466
-
467
- /**
468
- * An object representing an individual who can be contacted if the carriers have
469
- * any questions about the business.
470
- */
471
- contact?: OrganizationParams.Contact | null;
472
-
473
- /**
474
- * The two character ISO 3166 country code for the country in which the
475
- * organization is headquartered.
476
- */
477
- country?: string | null;
478
-
479
- /**
480
- * For publicly traded companies, an email for a representative of the company to
481
- * whom a verification email will be sent. This must be an email on the same domain
482
- * as the company's website (e.g. with a website domain of
483
- * `https://dtprecisionauto.com`, the email must use the same
484
- * `@dtprecisionauto.com`)
485
- */
486
- email?: string | null;
487
-
488
- /**
489
- * The value of the identifier whose type is specified in the identifier_type
490
- * field. Typically this will be an EIN, and can be formatted with or without the
491
- * hyphen.
492
- */
493
- identifier?: string | null;
494
-
495
- /**
496
- * The type of identifier being provided for the organization. Support for more
497
- * values will be added in the future.
498
- */
499
- identifier_type?: 'ein' | null;
500
-
501
- /**
502
- * The industry in which the organization operates.
503
- */
504
- industry?:
505
- | 'agriculture'
506
- | 'automotive'
507
- | 'banking'
508
- | 'construction'
509
- | 'consumer'
510
- | 'education'
511
- | 'electronics'
512
- | 'energy'
513
- | 'engineering'
514
- | 'fast_moving_consumer_goods'
515
- | 'financial'
516
- | 'fintech'
517
- | 'food_and_beverage'
518
- | 'government'
519
- | 'healthcare'
520
- | 'hospitality'
521
- | 'insurance'
522
- | 'jewelry'
523
- | 'legal'
524
- | 'manufacturing'
525
- | 'media'
526
- | 'not_for_profit'
527
- | 'oil_and_gas'
528
- | 'online'
529
- | 'professional_services'
530
- | 'raw_materials'
531
- | 'real_estate'
532
- | 'religion'
533
- | 'retail'
534
- | 'technology'
535
- | 'telecommunications'
536
- | 'transportation'
537
- | 'travel'
538
- | null;
539
-
540
- /**
541
- * For sole proprietors, this must be a valid US mobile phone number to which a
542
- * verification text message will be sent. (E.164 format)
543
- */
544
- mobile_number?: string | null;
545
-
394
+ export interface AccountCreateParams {
546
395
  /**
547
- * An array of regions in which the organization operates.
396
+ * The name of the account that will be visible for your internal organizational
397
+ * purposes. This will also be the default public-facing brand name unless you also
398
+ * set a `brand_name`, but otherwise the account name will never be displayed
399
+ * anywhere outside of Surge HQ, and may include your ID for the account or
400
+ * anything else that may help you.
548
401
  */
549
- regions_of_operation?: Array<
550
- 'africa' | 'asia' | 'australia' | 'europe' | 'latin_america' | 'usa_and_canada'
551
- > | null;
402
+ name: string;
552
403
 
553
404
  /**
554
- * The legal name of the organization as registered with the IRS or other relevant
555
- * authorities. For some applications, this will be matched against government
556
- * records and should include all punctuation and everything else as well.
405
+ * The name by which the people this account communicates with know it. If not
406
+ * provided, this will match the name field.
557
407
  */
558
- registered_name?: string | null;
408
+ brand_name?: string | null;
559
409
 
560
410
  /**
561
- * For publicly traded companies, this is the exchange on which the company's stock
562
- * is traded.
411
+ * Parameters describing the legal entity on whose behalf the account will be
412
+ * operated.
563
413
  */
564
- stock_exchange?:
565
- | 'amex'
566
- | 'amx'
567
- | 'asx'
568
- | 'b3'
569
- | 'bme'
570
- | 'bse'
571
- | 'fra'
572
- | 'icex'
573
- | 'jpx'
574
- | 'jse'
575
- | 'krx'
576
- | 'lon'
577
- | 'nasdaq'
578
- | 'none'
579
- | 'nyse'
580
- | 'nse'
581
- | 'omx'
582
- | 'other'
583
- | 'sehk'
584
- | 'sgx'
585
- | 'sse'
586
- | 'sto'
587
- | 'swx'
588
- | 'szse'
589
- | 'tsx'
590
- | 'twse'
591
- | 'vse'
592
- | null;
414
+ organization?: AccountCreateParams.Organization;
593
415
 
594
416
  /**
595
- * For publicly traded companies, the ticker symbol for the company's stock
417
+ * This is the time zone in which the account is headquartered. This time zone may
418
+ * be used for compliance with TCPA restrictions on when messages may be sent.
596
419
  */
597
- stock_symbol?: string | null;
420
+ time_zone?: string;
421
+ }
598
422
 
423
+ export namespace AccountCreateParams {
599
424
  /**
600
- * The type of organization
425
+ * Parameters describing the legal entity on whose behalf the account will be
426
+ * operated.
601
427
  */
602
- type?:
603
- | 'co_op'
604
- | 'government'
605
- | 'llc'
606
- | 'non_profit'
607
- | 'partnership'
608
- | 'private_corporation'
609
- | 'public_corporation'
610
- | 'sole_proprietor'
611
- | null;
428
+ export interface Organization {
429
+ /**
430
+ * The address of the organization's headquarters.
431
+ */
432
+ address?: Organization.Address;
612
433
 
613
- /**
614
- * The URL of the website for this organization. The website should be publicly
615
- * available, clearly reflect the organization's purpose, and the URL should start
616
- * with `https://`
617
- */
618
- website?: string | null;
619
- }
434
+ /**
435
+ * An object representing an individual who can be contacted if the carriers have
436
+ * any questions about the business.
437
+ */
438
+ contact?: Organization.Contact | null;
620
439
 
621
- export namespace OrganizationParams {
622
- /**
623
- * The address of the organization's headquarters.
624
- */
625
- export interface Address {
626
440
  /**
627
- * The two character ISO 3166 country code. If none is provided, the organization's
628
- * country code will be used.
441
+ * The two character ISO 3166 country code for the country in which the
442
+ * organization is headquartered.
629
443
  */
630
444
  country?: string | null;
631
445
 
632
446
  /**
633
- * The first line of the address, typically the number and street name
447
+ * For publicly traded companies, an email for a representative of the company to
448
+ * whom a verification email will be sent. This must be an email on the same domain
449
+ * as the company's website (e.g. with a website domain of
450
+ * `https://dtprecisionauto.com`, the email must use the same
451
+ * `@dtprecisionauto.com`)
634
452
  */
635
- line1?: string | null;
453
+ email?: string | null;
636
454
 
637
455
  /**
638
- * The second line of the address if needed, typically an apartment or suite number
456
+ * The value of the identifier whose type is specified in the identifier_type
457
+ * field. Typically this will be an EIN, and can be formatted with or without the
458
+ * hyphen.
639
459
  */
640
- line2?: string | null;
460
+ identifier?: string | null;
641
461
 
642
462
  /**
643
- * The city or locality
463
+ * The type of identifier being provided for the organization. Support for more
464
+ * values will be added in the future.
644
465
  */
645
- locality?: string | null;
466
+ identifier_type?: 'ein' | null;
646
467
 
647
468
  /**
648
- * The name to which any mail should be addressed. If none is provided, this will
649
- * default to the organization's registered_name
469
+ * The industry in which the organization operates.
650
470
  */
651
- name?: string | null;
471
+ industry?:
472
+ | 'agriculture'
473
+ | 'automotive'
474
+ | 'banking'
475
+ | 'construction'
476
+ | 'consumer'
477
+ | 'education'
478
+ | 'electronics'
479
+ | 'energy'
480
+ | 'engineering'
481
+ | 'fast_moving_consumer_goods'
482
+ | 'financial'
483
+ | 'fintech'
484
+ | 'food_and_beverage'
485
+ | 'government'
486
+ | 'healthcare'
487
+ | 'hospitality'
488
+ | 'insurance'
489
+ | 'jewelry'
490
+ | 'legal'
491
+ | 'manufacturing'
492
+ | 'media'
493
+ | 'not_for_profit'
494
+ | 'oil_and_gas'
495
+ | 'online'
496
+ | 'professional_services'
497
+ | 'raw_materials'
498
+ | 'real_estate'
499
+ | 'religion'
500
+ | 'retail'
501
+ | 'technology'
502
+ | 'telecommunications'
503
+ | 'transportation'
504
+ | 'travel'
505
+ | null;
652
506
 
653
507
  /**
654
- * The postal code
508
+ * For sole proprietors, this must be a valid US mobile phone number to which a
509
+ * verification text message will be sent. (E.164 format)
655
510
  */
656
- postal_code?: string | null;
511
+ mobile_number?: string | null;
657
512
 
658
513
  /**
659
- * The state or region
514
+ * An array of regions in which the organization operates.
660
515
  */
661
- region?: string | null;
662
- }
516
+ regions_of_operation?: Array<
517
+ 'africa' | 'asia' | 'australia' | 'europe' | 'latin_america' | 'usa_and_canada'
518
+ > | null;
663
519
 
664
- /**
665
- * An object representing an individual who can be contacted if the carriers have
666
- * any questions about the business.
667
- */
668
- export interface Contact {
669
520
  /**
670
- * An email address at which the individual can be reached. Typically an email
671
- * using the same domain name as the website URL will be preferred (e.g. with a
672
- * website domain of `https://dtprecisionauto.com`, an email like
673
- * `dom@dtprecisionauto.com` will be preferred over one like
674
- * `dom@anothergarage.com` or `dom.toretto@gmail.com`)
521
+ * The legal name of the organization as registered with the IRS or other relevant
522
+ * authorities. For some applications, this will be matched against government
523
+ * records and should include all punctuation and everything else as well.
675
524
  */
676
- email?: string | null;
525
+ registered_name?: string | null;
677
526
 
678
527
  /**
679
- * The first name (or given name) of the individual
528
+ * For publicly traded companies, this is the exchange on which the company's stock
529
+ * is traded.
680
530
  */
681
- first_name?: string | null;
531
+ stock_exchange?:
532
+ | 'amex'
533
+ | 'amx'
534
+ | 'asx'
535
+ | 'b3'
536
+ | 'bme'
537
+ | 'bse'
538
+ | 'fra'
539
+ | 'icex'
540
+ | 'jpx'
541
+ | 'jse'
542
+ | 'krx'
543
+ | 'lon'
544
+ | 'nasdaq'
545
+ | 'none'
546
+ | 'nyse'
547
+ | 'nse'
548
+ | 'omx'
549
+ | 'other'
550
+ | 'sehk'
551
+ | 'sgx'
552
+ | 'sse'
553
+ | 'sto'
554
+ | 'swx'
555
+ | 'szse'
556
+ | 'tsx'
557
+ | 'twse'
558
+ | 'vse'
559
+ | null;
682
560
 
683
561
  /**
684
- * The last name (or family name) of the individual
562
+ * For publicly traded companies, the ticker symbol for the company's stock
685
563
  */
686
- last_name?: string | null;
564
+ stock_symbol?: string | null;
687
565
 
688
566
  /**
689
- * A phone number at which the individual can be reached (E.164 format)
567
+ * The type of organization
690
568
  */
691
- phone_number?: string | null;
569
+ type?:
570
+ | 'co_op'
571
+ | 'government'
572
+ | 'llc'
573
+ | 'non_profit'
574
+ | 'partnership'
575
+ | 'private_corporation'
576
+ | 'public_corporation'
577
+ | 'sole_proprietor'
578
+ | null;
692
579
 
693
580
  /**
694
- * The job title of the individual.
581
+ * The URL of the website for this organization. The website should be publicly
582
+ * available, clearly reflect the organization's purpose, and the URL should start
583
+ * with `https://`
695
584
  */
696
- title?: 'ceo' | 'cfo' | 'director' | 'gm' | 'vp' | 'general_counsel' | 'other' | null;
585
+ website?: string | null;
586
+ }
697
587
 
588
+ export namespace Organization {
698
589
  /**
699
- * If `other` is provided for the `title` field, this field should be used to
700
- * provide the title of the individual
590
+ * The address of the organization's headquarters.
701
591
  */
702
- title_other?: string | null;
703
- }
704
- }
592
+ export interface Address {
593
+ /**
594
+ * The two character ISO 3166 country code. If none is provided, the organization's
595
+ * country code will be used.
596
+ */
597
+ country?: string | null;
705
598
 
706
- export interface AccountCreateParams {
707
- /**
708
- * The name of the account that will be visible for your internal organizational
709
- * purposes. This will also be the default public-facing brand name unless you also
710
- * set a `brand_name`, but otherwise the account name will never be displayed
711
- * anywhere outside of Surge HQ, and may include your ID for the account or
712
- * anything else that may help you.
713
- */
714
- name: string;
599
+ /**
600
+ * The first line of the address, typically the number and street name
601
+ */
602
+ line1?: string | null;
715
603
 
716
- /**
717
- * The name by which the people this account communicates with know it. If not
718
- * provided, this will match the name field.
719
- */
720
- brand_name?: string | null;
604
+ /**
605
+ * The second line of the address if needed, typically an apartment or suite number
606
+ */
607
+ line2?: string | null;
721
608
 
722
- /**
723
- * Parameters describing the legal entity on whose behalf the account will be
724
- * operated.
725
- */
726
- organization?: OrganizationParams;
609
+ /**
610
+ * The city or locality
611
+ */
612
+ locality?: string | null;
727
613
 
728
- /**
729
- * This is the time zone in which the account is headquartered. This time zone may
730
- * be used for compliance with TCPA restrictions on when messages may be sent.
731
- */
732
- time_zone?: string;
614
+ /**
615
+ * The name to which any mail should be addressed. If none is provided, this will
616
+ * default to the organization's registered_name
617
+ */
618
+ name?: string | null;
619
+
620
+ /**
621
+ * The postal code
622
+ */
623
+ postal_code?: string | null;
624
+
625
+ /**
626
+ * The state or region
627
+ */
628
+ region?: string | null;
629
+ }
630
+
631
+ /**
632
+ * An object representing an individual who can be contacted if the carriers have
633
+ * any questions about the business.
634
+ */
635
+ export interface Contact {
636
+ /**
637
+ * An email address at which the individual can be reached. Typically an email
638
+ * using the same domain name as the website URL will be preferred (e.g. with a
639
+ * website domain of `https://dtprecisionauto.com`, an email like
640
+ * `dom@dtprecisionauto.com` will be preferred over one like
641
+ * `dom@anothergarage.com` or `dom.toretto@gmail.com`)
642
+ */
643
+ email?: string | null;
644
+
645
+ /**
646
+ * The first name (or given name) of the individual
647
+ */
648
+ first_name?: string | null;
649
+
650
+ /**
651
+ * The last name (or family name) of the individual
652
+ */
653
+ last_name?: string | null;
654
+
655
+ /**
656
+ * A phone number at which the individual can be reached (E.164 format)
657
+ */
658
+ phone_number?: string | null;
659
+
660
+ /**
661
+ * The job title of the individual.
662
+ */
663
+ title?: 'ceo' | 'cfo' | 'director' | 'gm' | 'vp' | 'general_counsel' | 'other' | null;
664
+
665
+ /**
666
+ * If `other` is provided for the `title` field, this field should be used to
667
+ * provide the title of the individual
668
+ */
669
+ title_other?: string | null;
670
+ }
671
+ }
733
672
  }
734
673
 
735
674
  export interface AccountUpdateParams {
@@ -752,7 +691,7 @@ export interface AccountUpdateParams {
752
691
  * Parameters describing the legal entity on whose behalf the account will be
753
692
  * operated.
754
693
  */
755
- organization?: OrganizationParams;
694
+ organization?: AccountUpdateParams.Organization;
756
695
 
757
696
  /**
758
697
  * The time zone for the account
@@ -760,19 +699,271 @@ export interface AccountUpdateParams {
760
699
  time_zone?: string | null;
761
700
  }
762
701
 
702
+ export namespace AccountUpdateParams {
703
+ /**
704
+ * Parameters describing the legal entity on whose behalf the account will be
705
+ * operated.
706
+ */
707
+ export interface Organization {
708
+ /**
709
+ * The address of the organization's headquarters.
710
+ */
711
+ address?: Organization.Address;
712
+
713
+ /**
714
+ * An object representing an individual who can be contacted if the carriers have
715
+ * any questions about the business.
716
+ */
717
+ contact?: Organization.Contact | null;
718
+
719
+ /**
720
+ * The two character ISO 3166 country code for the country in which the
721
+ * organization is headquartered.
722
+ */
723
+ country?: string | null;
724
+
725
+ /**
726
+ * For publicly traded companies, an email for a representative of the company to
727
+ * whom a verification email will be sent. This must be an email on the same domain
728
+ * as the company's website (e.g. with a website domain of
729
+ * `https://dtprecisionauto.com`, the email must use the same
730
+ * `@dtprecisionauto.com`)
731
+ */
732
+ email?: string | null;
733
+
734
+ /**
735
+ * The value of the identifier whose type is specified in the identifier_type
736
+ * field. Typically this will be an EIN, and can be formatted with or without the
737
+ * hyphen.
738
+ */
739
+ identifier?: string | null;
740
+
741
+ /**
742
+ * The type of identifier being provided for the organization. Support for more
743
+ * values will be added in the future.
744
+ */
745
+ identifier_type?: 'ein' | null;
746
+
747
+ /**
748
+ * The industry in which the organization operates.
749
+ */
750
+ industry?:
751
+ | 'agriculture'
752
+ | 'automotive'
753
+ | 'banking'
754
+ | 'construction'
755
+ | 'consumer'
756
+ | 'education'
757
+ | 'electronics'
758
+ | 'energy'
759
+ | 'engineering'
760
+ | 'fast_moving_consumer_goods'
761
+ | 'financial'
762
+ | 'fintech'
763
+ | 'food_and_beverage'
764
+ | 'government'
765
+ | 'healthcare'
766
+ | 'hospitality'
767
+ | 'insurance'
768
+ | 'jewelry'
769
+ | 'legal'
770
+ | 'manufacturing'
771
+ | 'media'
772
+ | 'not_for_profit'
773
+ | 'oil_and_gas'
774
+ | 'online'
775
+ | 'professional_services'
776
+ | 'raw_materials'
777
+ | 'real_estate'
778
+ | 'religion'
779
+ | 'retail'
780
+ | 'technology'
781
+ | 'telecommunications'
782
+ | 'transportation'
783
+ | 'travel'
784
+ | null;
785
+
786
+ /**
787
+ * For sole proprietors, this must be a valid US mobile phone number to which a
788
+ * verification text message will be sent. (E.164 format)
789
+ */
790
+ mobile_number?: string | null;
791
+
792
+ /**
793
+ * An array of regions in which the organization operates.
794
+ */
795
+ regions_of_operation?: Array<
796
+ 'africa' | 'asia' | 'australia' | 'europe' | 'latin_america' | 'usa_and_canada'
797
+ > | null;
798
+
799
+ /**
800
+ * The legal name of the organization as registered with the IRS or other relevant
801
+ * authorities. For some applications, this will be matched against government
802
+ * records and should include all punctuation and everything else as well.
803
+ */
804
+ registered_name?: string | null;
805
+
806
+ /**
807
+ * For publicly traded companies, this is the exchange on which the company's stock
808
+ * is traded.
809
+ */
810
+ stock_exchange?:
811
+ | 'amex'
812
+ | 'amx'
813
+ | 'asx'
814
+ | 'b3'
815
+ | 'bme'
816
+ | 'bse'
817
+ | 'fra'
818
+ | 'icex'
819
+ | 'jpx'
820
+ | 'jse'
821
+ | 'krx'
822
+ | 'lon'
823
+ | 'nasdaq'
824
+ | 'none'
825
+ | 'nyse'
826
+ | 'nse'
827
+ | 'omx'
828
+ | 'other'
829
+ | 'sehk'
830
+ | 'sgx'
831
+ | 'sse'
832
+ | 'sto'
833
+ | 'swx'
834
+ | 'szse'
835
+ | 'tsx'
836
+ | 'twse'
837
+ | 'vse'
838
+ | null;
839
+
840
+ /**
841
+ * For publicly traded companies, the ticker symbol for the company's stock
842
+ */
843
+ stock_symbol?: string | null;
844
+
845
+ /**
846
+ * The type of organization
847
+ */
848
+ type?:
849
+ | 'co_op'
850
+ | 'government'
851
+ | 'llc'
852
+ | 'non_profit'
853
+ | 'partnership'
854
+ | 'private_corporation'
855
+ | 'public_corporation'
856
+ | 'sole_proprietor'
857
+ | null;
858
+
859
+ /**
860
+ * The URL of the website for this organization. The website should be publicly
861
+ * available, clearly reflect the organization's purpose, and the URL should start
862
+ * with `https://`
863
+ */
864
+ website?: string | null;
865
+ }
866
+
867
+ export namespace Organization {
868
+ /**
869
+ * The address of the organization's headquarters.
870
+ */
871
+ export interface Address {
872
+ /**
873
+ * The two character ISO 3166 country code. If none is provided, the organization's
874
+ * country code will be used.
875
+ */
876
+ country?: string | null;
877
+
878
+ /**
879
+ * The first line of the address, typically the number and street name
880
+ */
881
+ line1?: string | null;
882
+
883
+ /**
884
+ * The second line of the address if needed, typically an apartment or suite number
885
+ */
886
+ line2?: string | null;
887
+
888
+ /**
889
+ * The city or locality
890
+ */
891
+ locality?: string | null;
892
+
893
+ /**
894
+ * The name to which any mail should be addressed. If none is provided, this will
895
+ * default to the organization's registered_name
896
+ */
897
+ name?: string | null;
898
+
899
+ /**
900
+ * The postal code
901
+ */
902
+ postal_code?: string | null;
903
+
904
+ /**
905
+ * The state or region
906
+ */
907
+ region?: string | null;
908
+ }
909
+
910
+ /**
911
+ * An object representing an individual who can be contacted if the carriers have
912
+ * any questions about the business.
913
+ */
914
+ export interface Contact {
915
+ /**
916
+ * An email address at which the individual can be reached. Typically an email
917
+ * using the same domain name as the website URL will be preferred (e.g. with a
918
+ * website domain of `https://dtprecisionauto.com`, an email like
919
+ * `dom@dtprecisionauto.com` will be preferred over one like
920
+ * `dom@anothergarage.com` or `dom.toretto@gmail.com`)
921
+ */
922
+ email?: string | null;
923
+
924
+ /**
925
+ * The first name (or given name) of the individual
926
+ */
927
+ first_name?: string | null;
928
+
929
+ /**
930
+ * The last name (or family name) of the individual
931
+ */
932
+ last_name?: string | null;
933
+
934
+ /**
935
+ * A phone number at which the individual can be reached (E.164 format)
936
+ */
937
+ phone_number?: string | null;
938
+
939
+ /**
940
+ * The job title of the individual.
941
+ */
942
+ title?: 'ceo' | 'cfo' | 'director' | 'gm' | 'vp' | 'general_counsel' | 'other' | null;
943
+
944
+ /**
945
+ * If `other` is provided for the `title` field, this field should be used to
946
+ * provide the title of the individual
947
+ */
948
+ title_other?: string | null;
949
+ }
950
+ }
951
+ }
952
+
763
953
  export interface AccountRetrieveStatusParams {
954
+ /**
955
+ * capabilities about which to check the status
956
+ */
764
957
  capabilities?: Array<'local_messaging'>;
765
958
  }
766
959
 
767
960
  export declare namespace Accounts {
768
961
  export {
769
962
  type Account as Account,
770
- type AccountParams as AccountParams,
771
963
  type AccountStatus as AccountStatus,
772
- type AccountUpdateParams as AccountUpdateParams,
773
964
  type Organization as Organization,
774
- type OrganizationParams as OrganizationParams,
775
965
  type AccountCreateParams as AccountCreateParams,
966
+ type AccountUpdateParams as AccountUpdateParams,
776
967
  type AccountRetrieveStatusParams as AccountRetrieveStatusParams,
777
968
  };
778
969
  }