telnyx 6.29.1 → 6.29.2

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 (89) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/enterprises/enterprises.d.mts +119 -863
  10. package/resources/enterprises/enterprises.d.mts.map +1 -1
  11. package/resources/enterprises/enterprises.d.ts +119 -863
  12. package/resources/enterprises/enterprises.d.ts.map +1 -1
  13. package/resources/enterprises/enterprises.js +1 -1
  14. package/resources/enterprises/enterprises.js.map +1 -1
  15. package/resources/enterprises/enterprises.mjs +1 -1
  16. package/resources/enterprises/enterprises.mjs.map +1 -1
  17. package/resources/enterprises/index.d.mts +2 -2
  18. package/resources/enterprises/index.d.mts.map +1 -1
  19. package/resources/enterprises/index.d.ts +2 -2
  20. package/resources/enterprises/index.d.ts.map +1 -1
  21. package/resources/enterprises/index.js.map +1 -1
  22. package/resources/enterprises/index.mjs.map +1 -1
  23. package/resources/enterprises/reputation/index.d.mts +2 -2
  24. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  25. package/resources/enterprises/reputation/index.d.ts +2 -2
  26. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  27. package/resources/enterprises/reputation/index.js.map +1 -1
  28. package/resources/enterprises/reputation/index.mjs.map +1 -1
  29. package/resources/enterprises/reputation/numbers.d.mts +9 -149
  30. package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
  31. package/resources/enterprises/reputation/numbers.d.ts +9 -149
  32. package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
  33. package/resources/enterprises/reputation/numbers.js +1 -1
  34. package/resources/enterprises/reputation/numbers.js.map +1 -1
  35. package/resources/enterprises/reputation/numbers.mjs +1 -1
  36. package/resources/enterprises/reputation/numbers.mjs.map +1 -1
  37. package/resources/enterprises/reputation/reputation.d.mts +36 -102
  38. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  39. package/resources/enterprises/reputation/reputation.d.ts +36 -102
  40. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  41. package/resources/enterprises/reputation/reputation.js.map +1 -1
  42. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  43. package/resources/index.d.mts +1 -1
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +1 -1
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js.map +1 -1
  48. package/resources/index.mjs.map +1 -1
  49. package/resources/reputation/index.d.mts +1 -1
  50. package/resources/reputation/index.d.mts.map +1 -1
  51. package/resources/reputation/index.d.ts +1 -1
  52. package/resources/reputation/index.d.ts.map +1 -1
  53. package/resources/reputation/index.js.map +1 -1
  54. package/resources/reputation/index.mjs.map +1 -1
  55. package/resources/reputation/numbers.d.mts +7 -129
  56. package/resources/reputation/numbers.d.mts.map +1 -1
  57. package/resources/reputation/numbers.d.ts +7 -129
  58. package/resources/reputation/numbers.d.ts.map +1 -1
  59. package/resources/reputation/numbers.js +1 -4
  60. package/resources/reputation/numbers.js.map +1 -1
  61. package/resources/reputation/numbers.mjs +1 -4
  62. package/resources/reputation/numbers.mjs.map +1 -1
  63. package/resources/reputation/reputation.d.mts +2 -2
  64. package/resources/reputation/reputation.d.mts.map +1 -1
  65. package/resources/reputation/reputation.d.ts +2 -2
  66. package/resources/reputation/reputation.d.ts.map +1 -1
  67. package/resources/reputation/reputation.js.map +1 -1
  68. package/resources/reputation/reputation.mjs +1 -1
  69. package/resources/reputation/reputation.mjs.map +1 -1
  70. package/resources/shared.d.mts +80 -0
  71. package/resources/shared.d.mts.map +1 -1
  72. package/resources/shared.d.ts +80 -0
  73. package/resources/shared.d.ts.map +1 -1
  74. package/src/client.ts +15 -4
  75. package/src/resources/enterprises/enterprises.ts +136 -1069
  76. package/src/resources/enterprises/index.ts +7 -2
  77. package/src/resources/enterprises/reputation/index.ts +1 -2
  78. package/src/resources/enterprises/reputation/numbers.ts +12 -181
  79. package/src/resources/enterprises/reputation/reputation.ts +35 -118
  80. package/src/resources/index.ts +6 -2
  81. package/src/resources/reputation/index.ts +0 -2
  82. package/src/resources/reputation/numbers.ts +14 -160
  83. package/src/resources/reputation/reputation.ts +1 -10
  84. package/src/resources/shared.ts +97 -0
  85. package/src/version.ts +1 -1
  86. package/version.d.mts +1 -1
  87. package/version.d.ts +1 -1
  88. package/version.js +1 -1
  89. package/version.mjs +1 -1
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as ReputationAPI from "./reputation/reputation.mjs";
3
- import { Reputation, ReputationCreateParams, ReputationCreateResponse, ReputationListResponse, ReputationUpdateFrequencyParams, ReputationUpdateFrequencyResponse } from "./reputation/reputation.mjs";
3
+ import { EnterpriseReputationPublic, Reputation, ReputationCreateParams, ReputationCreateResponse, ReputationListResponse, ReputationUpdateFrequencyParams, ReputationUpdateFrequencyResponse } from "./reputation/reputation.mjs";
4
4
  import { APIPromise } from "../../core/api-promise.mjs";
5
5
  import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.mjs";
6
6
  import { RequestOptions } from "../../internal/request-options.mjs";
@@ -93,12 +93,12 @@ export declare class Enterprises extends APIResource {
93
93
  * @example
94
94
  * ```ts
95
95
  * // Automatically fetches more pages as needed.
96
- * for await (const enterpriseListResponse of client.enterprises.list()) {
96
+ * for await (const enterprisePublic of client.enterprises.list()) {
97
97
  * // ...
98
98
  * }
99
99
  * ```
100
100
  */
101
- list(query?: EnterpriseListParams | null | undefined, options?: RequestOptions): PagePromise<EnterpriseListResponsesDefaultFlatPagination, EnterpriseListResponse>;
101
+ list(query?: EnterpriseListParams | null | undefined, options?: RequestOptions): PagePromise<EnterprisePublicsDefaultFlatPagination, EnterprisePublic>;
102
102
  /**
103
103
  * Delete an enterprise and all associated resources. This action is irreversible.
104
104
  *
@@ -111,569 +111,58 @@ export declare class Enterprises extends APIResource {
111
111
  */
112
112
  delete(enterpriseID: string, options?: RequestOptions): APIPromise<void>;
113
113
  }
114
- export type EnterpriseListResponsesDefaultFlatPagination = DefaultFlatPagination<EnterpriseListResponse>;
115
- export interface EnterpriseCreateResponse {
116
- data?: EnterpriseCreateResponse.Data;
117
- }
118
- export declare namespace EnterpriseCreateResponse {
119
- interface Data {
120
- /**
121
- * Unique identifier of the enterprise
122
- */
123
- id?: string;
124
- billing_address?: Data.BillingAddress;
125
- billing_contact?: Data.BillingContact;
126
- /**
127
- * Corporate registration number
128
- */
129
- corporate_registration_number?: string | null;
130
- /**
131
- * ISO 3166-1 alpha-2 country code
132
- */
133
- country_code?: string;
134
- /**
135
- * When the enterprise was created
136
- */
137
- created_at?: string;
138
- /**
139
- * Customer reference identifier
140
- */
141
- customer_reference?: string | null;
142
- /**
143
- * DBA name
144
- */
145
- doing_business_as?: string;
146
- /**
147
- * D-U-N-S Number
148
- */
149
- dun_bradstreet_number?: string | null;
150
- /**
151
- * Federal Employer Identification Number
152
- */
153
- fein?: string | null;
154
- /**
155
- * Industry classification
156
- */
157
- industry?: string | null;
158
- /**
159
- * Legal name of the enterprise
160
- */
161
- legal_name?: string;
162
- /**
163
- * Employee count range
164
- */
165
- number_of_employees?: '1-10' | '11-50' | '51-200' | '201-500' | '501-2000' | '2001-10000' | '10001+' | null;
166
- /**
167
- * Organization contact information. Note: the response returns this object with
168
- * the phone field as 'phone' (not 'phone_number').
169
- */
170
- organization_contact?: Data.OrganizationContact;
171
- /**
172
- * Legal structure type
173
- */
174
- organization_legal_type?: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other' | null;
175
- organization_physical_address?: Data.OrganizationPhysicalAddress;
176
- /**
177
- * Type of organization
178
- */
179
- organization_type?: 'commercial' | 'government' | 'non_profit';
180
- /**
181
- * SIC Code
182
- */
183
- primary_business_domain_sic_code?: string | null;
184
- /**
185
- * Professional license number
186
- */
187
- professional_license_number?: string | null;
188
- /**
189
- * Role type in Branded Calling / Number Reputation services
190
- */
191
- role_type?: 'enterprise' | 'bpo';
192
- /**
193
- * When the enterprise was last updated
194
- */
195
- updated_at?: string;
196
- /**
197
- * Company website URL
198
- */
199
- website?: string | null;
200
- }
201
- namespace Data {
202
- interface BillingAddress {
203
- /**
204
- * State or province
205
- */
206
- administrative_area: string;
207
- /**
208
- * City name
209
- */
210
- city: string;
211
- /**
212
- * Country name (e.g., United States)
213
- */
214
- country: string;
215
- /**
216
- * ZIP or postal code
217
- */
218
- postal_code: string;
219
- /**
220
- * Street address
221
- */
222
- street_address: string;
223
- /**
224
- * Additional address line (suite, apt, etc.)
225
- */
226
- extended_address?: string | null;
227
- }
228
- interface BillingContact {
229
- /**
230
- * Contact's email address
231
- */
232
- email: string;
233
- /**
234
- * Contact's first name
235
- */
236
- first_name: string;
237
- /**
238
- * Contact's last name
239
- */
240
- last_name: string;
241
- /**
242
- * Contact's phone number (10-15 digits)
243
- */
244
- phone_number: string;
245
- }
246
- /**
247
- * Organization contact information. Note: the response returns this object with
248
- * the phone field as 'phone' (not 'phone_number').
249
- */
250
- interface OrganizationContact {
251
- /**
252
- * Contact's email address
253
- */
254
- email: string;
255
- /**
256
- * Contact's first name
257
- */
258
- first_name: string;
259
- /**
260
- * Contact's job title (required)
261
- */
262
- job_title: string;
263
- /**
264
- * Contact's last name
265
- */
266
- last_name: string;
267
- /**
268
- * Contact's phone number in E.164 format
269
- */
270
- phone: string;
271
- }
272
- interface OrganizationPhysicalAddress {
273
- /**
274
- * State or province
275
- */
276
- administrative_area: string;
277
- /**
278
- * City name
279
- */
280
- city: string;
281
- /**
282
- * Country name (e.g., United States)
283
- */
284
- country: string;
285
- /**
286
- * ZIP or postal code
287
- */
288
- postal_code: string;
289
- /**
290
- * Street address
291
- */
292
- street_address: string;
293
- /**
294
- * Additional address line (suite, apt, etc.)
295
- */
296
- extended_address?: string | null;
297
- }
298
- }
299
- }
300
- export interface EnterpriseRetrieveResponse {
301
- data?: EnterpriseRetrieveResponse.Data;
302
- }
303
- export declare namespace EnterpriseRetrieveResponse {
304
- interface Data {
305
- /**
306
- * Unique identifier of the enterprise
307
- */
308
- id?: string;
309
- billing_address?: Data.BillingAddress;
310
- billing_contact?: Data.BillingContact;
311
- /**
312
- * Corporate registration number
313
- */
314
- corporate_registration_number?: string | null;
315
- /**
316
- * ISO 3166-1 alpha-2 country code
317
- */
318
- country_code?: string;
319
- /**
320
- * When the enterprise was created
321
- */
322
- created_at?: string;
323
- /**
324
- * Customer reference identifier
325
- */
326
- customer_reference?: string | null;
327
- /**
328
- * DBA name
329
- */
330
- doing_business_as?: string;
331
- /**
332
- * D-U-N-S Number
333
- */
334
- dun_bradstreet_number?: string | null;
335
- /**
336
- * Federal Employer Identification Number
337
- */
338
- fein?: string | null;
339
- /**
340
- * Industry classification
341
- */
342
- industry?: string | null;
343
- /**
344
- * Legal name of the enterprise
345
- */
346
- legal_name?: string;
347
- /**
348
- * Employee count range
349
- */
350
- number_of_employees?: '1-10' | '11-50' | '51-200' | '201-500' | '501-2000' | '2001-10000' | '10001+' | null;
351
- /**
352
- * Organization contact information. Note: the response returns this object with
353
- * the phone field as 'phone' (not 'phone_number').
354
- */
355
- organization_contact?: Data.OrganizationContact;
356
- /**
357
- * Legal structure type
358
- */
359
- organization_legal_type?: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other' | null;
360
- organization_physical_address?: Data.OrganizationPhysicalAddress;
361
- /**
362
- * Type of organization
363
- */
364
- organization_type?: 'commercial' | 'government' | 'non_profit';
365
- /**
366
- * SIC Code
367
- */
368
- primary_business_domain_sic_code?: string | null;
369
- /**
370
- * Professional license number
371
- */
372
- professional_license_number?: string | null;
373
- /**
374
- * Role type in Branded Calling / Number Reputation services
375
- */
376
- role_type?: 'enterprise' | 'bpo';
377
- /**
378
- * When the enterprise was last updated
379
- */
380
- updated_at?: string;
381
- /**
382
- * Company website URL
383
- */
384
- website?: string | null;
385
- }
386
- namespace Data {
387
- interface BillingAddress {
388
- /**
389
- * State or province
390
- */
391
- administrative_area: string;
392
- /**
393
- * City name
394
- */
395
- city: string;
396
- /**
397
- * Country name (e.g., United States)
398
- */
399
- country: string;
400
- /**
401
- * ZIP or postal code
402
- */
403
- postal_code: string;
404
- /**
405
- * Street address
406
- */
407
- street_address: string;
408
- /**
409
- * Additional address line (suite, apt, etc.)
410
- */
411
- extended_address?: string | null;
412
- }
413
- interface BillingContact {
414
- /**
415
- * Contact's email address
416
- */
417
- email: string;
418
- /**
419
- * Contact's first name
420
- */
421
- first_name: string;
422
- /**
423
- * Contact's last name
424
- */
425
- last_name: string;
426
- /**
427
- * Contact's phone number (10-15 digits)
428
- */
429
- phone_number: string;
430
- }
431
- /**
432
- * Organization contact information. Note: the response returns this object with
433
- * the phone field as 'phone' (not 'phone_number').
434
- */
435
- interface OrganizationContact {
436
- /**
437
- * Contact's email address
438
- */
439
- email: string;
440
- /**
441
- * Contact's first name
442
- */
443
- first_name: string;
444
- /**
445
- * Contact's job title (required)
446
- */
447
- job_title: string;
448
- /**
449
- * Contact's last name
450
- */
451
- last_name: string;
452
- /**
453
- * Contact's phone number in E.164 format
454
- */
455
- phone: string;
456
- }
457
- interface OrganizationPhysicalAddress {
458
- /**
459
- * State or province
460
- */
461
- administrative_area: string;
462
- /**
463
- * City name
464
- */
465
- city: string;
466
- /**
467
- * Country name (e.g., United States)
468
- */
469
- country: string;
470
- /**
471
- * ZIP or postal code
472
- */
473
- postal_code: string;
474
- /**
475
- * Street address
476
- */
477
- street_address: string;
478
- /**
479
- * Additional address line (suite, apt, etc.)
480
- */
481
- extended_address?: string | null;
482
- }
483
- }
484
- }
485
- export interface EnterpriseUpdateResponse {
486
- data?: EnterpriseUpdateResponse.Data;
114
+ export type EnterprisePublicsDefaultFlatPagination = DefaultFlatPagination<EnterprisePublic>;
115
+ export interface BillingAddress {
116
+ /**
117
+ * State or province
118
+ */
119
+ administrative_area: string;
120
+ /**
121
+ * City name
122
+ */
123
+ city: string;
124
+ /**
125
+ * Country name (e.g., United States)
126
+ */
127
+ country: string;
128
+ /**
129
+ * ZIP or postal code
130
+ */
131
+ postal_code: string;
132
+ /**
133
+ * Street address
134
+ */
135
+ street_address: string;
136
+ /**
137
+ * Additional address line (suite, apt, etc.)
138
+ */
139
+ extended_address?: string | null;
487
140
  }
488
- export declare namespace EnterpriseUpdateResponse {
489
- interface Data {
490
- /**
491
- * Unique identifier of the enterprise
492
- */
493
- id?: string;
494
- billing_address?: Data.BillingAddress;
495
- billing_contact?: Data.BillingContact;
496
- /**
497
- * Corporate registration number
498
- */
499
- corporate_registration_number?: string | null;
500
- /**
501
- * ISO 3166-1 alpha-2 country code
502
- */
503
- country_code?: string;
504
- /**
505
- * When the enterprise was created
506
- */
507
- created_at?: string;
508
- /**
509
- * Customer reference identifier
510
- */
511
- customer_reference?: string | null;
512
- /**
513
- * DBA name
514
- */
515
- doing_business_as?: string;
516
- /**
517
- * D-U-N-S Number
518
- */
519
- dun_bradstreet_number?: string | null;
520
- /**
521
- * Federal Employer Identification Number
522
- */
523
- fein?: string | null;
524
- /**
525
- * Industry classification
526
- */
527
- industry?: string | null;
528
- /**
529
- * Legal name of the enterprise
530
- */
531
- legal_name?: string;
532
- /**
533
- * Employee count range
534
- */
535
- number_of_employees?: '1-10' | '11-50' | '51-200' | '201-500' | '501-2000' | '2001-10000' | '10001+' | null;
536
- /**
537
- * Organization contact information. Note: the response returns this object with
538
- * the phone field as 'phone' (not 'phone_number').
539
- */
540
- organization_contact?: Data.OrganizationContact;
541
- /**
542
- * Legal structure type
543
- */
544
- organization_legal_type?: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other' | null;
545
- organization_physical_address?: Data.OrganizationPhysicalAddress;
546
- /**
547
- * Type of organization
548
- */
549
- organization_type?: 'commercial' | 'government' | 'non_profit';
550
- /**
551
- * SIC Code
552
- */
553
- primary_business_domain_sic_code?: string | null;
554
- /**
555
- * Professional license number
556
- */
557
- professional_license_number?: string | null;
558
- /**
559
- * Role type in Branded Calling / Number Reputation services
560
- */
561
- role_type?: 'enterprise' | 'bpo';
562
- /**
563
- * When the enterprise was last updated
564
- */
565
- updated_at?: string;
566
- /**
567
- * Company website URL
568
- */
569
- website?: string | null;
570
- }
571
- namespace Data {
572
- interface BillingAddress {
573
- /**
574
- * State or province
575
- */
576
- administrative_area: string;
577
- /**
578
- * City name
579
- */
580
- city: string;
581
- /**
582
- * Country name (e.g., United States)
583
- */
584
- country: string;
585
- /**
586
- * ZIP or postal code
587
- */
588
- postal_code: string;
589
- /**
590
- * Street address
591
- */
592
- street_address: string;
593
- /**
594
- * Additional address line (suite, apt, etc.)
595
- */
596
- extended_address?: string | null;
597
- }
598
- interface BillingContact {
599
- /**
600
- * Contact's email address
601
- */
602
- email: string;
603
- /**
604
- * Contact's first name
605
- */
606
- first_name: string;
607
- /**
608
- * Contact's last name
609
- */
610
- last_name: string;
611
- /**
612
- * Contact's phone number (10-15 digits)
613
- */
614
- phone_number: string;
615
- }
616
- /**
617
- * Organization contact information. Note: the response returns this object with
618
- * the phone field as 'phone' (not 'phone_number').
619
- */
620
- interface OrganizationContact {
621
- /**
622
- * Contact's email address
623
- */
624
- email: string;
625
- /**
626
- * Contact's first name
627
- */
628
- first_name: string;
629
- /**
630
- * Contact's job title (required)
631
- */
632
- job_title: string;
633
- /**
634
- * Contact's last name
635
- */
636
- last_name: string;
637
- /**
638
- * Contact's phone number in E.164 format
639
- */
640
- phone: string;
641
- }
642
- interface OrganizationPhysicalAddress {
643
- /**
644
- * State or province
645
- */
646
- administrative_area: string;
647
- /**
648
- * City name
649
- */
650
- city: string;
651
- /**
652
- * Country name (e.g., United States)
653
- */
654
- country: string;
655
- /**
656
- * ZIP or postal code
657
- */
658
- postal_code: string;
659
- /**
660
- * Street address
661
- */
662
- street_address: string;
663
- /**
664
- * Additional address line (suite, apt, etc.)
665
- */
666
- extended_address?: string | null;
667
- }
668
- }
141
+ export interface BillingContact {
142
+ /**
143
+ * Contact's email address
144
+ */
145
+ email: string;
146
+ /**
147
+ * Contact's first name
148
+ */
149
+ first_name: string;
150
+ /**
151
+ * Contact's last name
152
+ */
153
+ last_name: string;
154
+ /**
155
+ * Contact's phone number (10-15 digits)
156
+ */
157
+ phone_number: string;
669
158
  }
670
- export interface EnterpriseListResponse {
159
+ export interface EnterprisePublic {
671
160
  /**
672
161
  * Unique identifier of the enterprise
673
162
  */
674
163
  id?: string;
675
- billing_address?: EnterpriseListResponse.BillingAddress;
676
- billing_contact?: EnterpriseListResponse.BillingContact;
164
+ billing_address?: BillingAddress;
165
+ billing_contact?: BillingContact;
677
166
  /**
678
167
  * Corporate registration number
679
168
  */
@@ -718,12 +207,12 @@ export interface EnterpriseListResponse {
718
207
  * Organization contact information. Note: the response returns this object with
719
208
  * the phone field as 'phone' (not 'phone_number').
720
209
  */
721
- organization_contact?: EnterpriseListResponse.OrganizationContact;
210
+ organization_contact?: OrganizationContact;
722
211
  /**
723
212
  * Legal structure type
724
213
  */
725
214
  organization_legal_type?: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other' | null;
726
- organization_physical_address?: EnterpriseListResponse.OrganizationPhysicalAddress;
215
+ organization_physical_address?: PhysicalAddress;
727
216
  /**
728
217
  * Type of organization
729
218
  */
@@ -749,107 +238,70 @@ export interface EnterpriseListResponse {
749
238
  */
750
239
  website?: string | null;
751
240
  }
752
- export declare namespace EnterpriseListResponse {
753
- interface BillingAddress {
754
- /**
755
- * State or province
756
- */
757
- administrative_area: string;
758
- /**
759
- * City name
760
- */
761
- city: string;
762
- /**
763
- * Country name (e.g., United States)
764
- */
765
- country: string;
766
- /**
767
- * ZIP or postal code
768
- */
769
- postal_code: string;
770
- /**
771
- * Street address
772
- */
773
- street_address: string;
774
- /**
775
- * Additional address line (suite, apt, etc.)
776
- */
777
- extended_address?: string | null;
778
- }
779
- interface BillingContact {
780
- /**
781
- * Contact's email address
782
- */
783
- email: string;
784
- /**
785
- * Contact's first name
786
- */
787
- first_name: string;
788
- /**
789
- * Contact's last name
790
- */
791
- last_name: string;
792
- /**
793
- * Contact's phone number (10-15 digits)
794
- */
795
- phone_number: string;
796
- }
241
+ /**
242
+ * Organization contact information. Note: the response returns this object with
243
+ * the phone field as 'phone' (not 'phone_number').
244
+ */
245
+ export interface OrganizationContact {
797
246
  /**
798
- * Organization contact information. Note: the response returns this object with
799
- * the phone field as 'phone' (not 'phone_number').
247
+ * Contact's email address
248
+ */
249
+ email: string;
250
+ /**
251
+ * Contact's first name
252
+ */
253
+ first_name: string;
254
+ /**
255
+ * Contact's job title (required)
256
+ */
257
+ job_title: string;
258
+ /**
259
+ * Contact's last name
260
+ */
261
+ last_name: string;
262
+ /**
263
+ * Contact's phone number in E.164 format
264
+ */
265
+ phone: string;
266
+ }
267
+ export interface PhysicalAddress {
268
+ /**
269
+ * State or province
270
+ */
271
+ administrative_area: string;
272
+ /**
273
+ * City name
274
+ */
275
+ city: string;
276
+ /**
277
+ * Country name (e.g., United States)
278
+ */
279
+ country: string;
280
+ /**
281
+ * ZIP or postal code
282
+ */
283
+ postal_code: string;
284
+ /**
285
+ * Street address
286
+ */
287
+ street_address: string;
288
+ /**
289
+ * Additional address line (suite, apt, etc.)
800
290
  */
801
- interface OrganizationContact {
802
- /**
803
- * Contact's email address
804
- */
805
- email: string;
806
- /**
807
- * Contact's first name
808
- */
809
- first_name: string;
810
- /**
811
- * Contact's job title (required)
812
- */
813
- job_title: string;
814
- /**
815
- * Contact's last name
816
- */
817
- last_name: string;
818
- /**
819
- * Contact's phone number in E.164 format
820
- */
821
- phone: string;
822
- }
823
- interface OrganizationPhysicalAddress {
824
- /**
825
- * State or province
826
- */
827
- administrative_area: string;
828
- /**
829
- * City name
830
- */
831
- city: string;
832
- /**
833
- * Country name (e.g., United States)
834
- */
835
- country: string;
836
- /**
837
- * ZIP or postal code
838
- */
839
- postal_code: string;
840
- /**
841
- * Street address
842
- */
843
- street_address: string;
844
- /**
845
- * Additional address line (suite, apt, etc.)
846
- */
847
- extended_address?: string | null;
848
- }
291
+ extended_address?: string | null;
292
+ }
293
+ export interface EnterpriseCreateResponse {
294
+ data?: EnterprisePublic;
295
+ }
296
+ export interface EnterpriseRetrieveResponse {
297
+ data?: EnterprisePublic;
298
+ }
299
+ export interface EnterpriseUpdateResponse {
300
+ data?: EnterprisePublic;
849
301
  }
850
302
  export interface EnterpriseCreateParams {
851
- billing_address: EnterpriseCreateParams.BillingAddress;
852
- billing_contact: EnterpriseCreateParams.BillingContact;
303
+ billing_address: BillingAddress;
304
+ billing_contact: BillingContact;
853
305
  /**
854
306
  * Country code. Currently only 'US' is accepted.
855
307
  */
@@ -885,12 +337,12 @@ export interface EnterpriseCreateParams {
885
337
  * Organization contact information. Note: the response returns this object with
886
338
  * the phone field as 'phone' (not 'phone_number').
887
339
  */
888
- organization_contact: EnterpriseCreateParams.OrganizationContact;
340
+ organization_contact: OrganizationContact;
889
341
  /**
890
342
  * Legal structure type
891
343
  */
892
344
  organization_legal_type: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other';
893
- organization_physical_address: EnterpriseCreateParams.OrganizationPhysicalAddress;
345
+ organization_physical_address: PhysicalAddress;
894
346
  /**
895
347
  * Type of organization
896
348
  */
@@ -924,107 +376,9 @@ export interface EnterpriseCreateParams {
924
376
  */
925
377
  role_type?: 'enterprise' | 'bpo';
926
378
  }
927
- export declare namespace EnterpriseCreateParams {
928
- interface BillingAddress {
929
- /**
930
- * State or province
931
- */
932
- administrative_area: string;
933
- /**
934
- * City name
935
- */
936
- city: string;
937
- /**
938
- * Country name (e.g., United States)
939
- */
940
- country: string;
941
- /**
942
- * ZIP or postal code
943
- */
944
- postal_code: string;
945
- /**
946
- * Street address
947
- */
948
- street_address: string;
949
- /**
950
- * Additional address line (suite, apt, etc.)
951
- */
952
- extended_address?: string | null;
953
- }
954
- interface BillingContact {
955
- /**
956
- * Contact's email address
957
- */
958
- email: string;
959
- /**
960
- * Contact's first name
961
- */
962
- first_name: string;
963
- /**
964
- * Contact's last name
965
- */
966
- last_name: string;
967
- /**
968
- * Contact's phone number (10-15 digits)
969
- */
970
- phone_number: string;
971
- }
972
- /**
973
- * Organization contact information. Note: the response returns this object with
974
- * the phone field as 'phone' (not 'phone_number').
975
- */
976
- interface OrganizationContact {
977
- /**
978
- * Contact's email address
979
- */
980
- email: string;
981
- /**
982
- * Contact's first name
983
- */
984
- first_name: string;
985
- /**
986
- * Contact's job title (required)
987
- */
988
- job_title: string;
989
- /**
990
- * Contact's last name
991
- */
992
- last_name: string;
993
- /**
994
- * Contact's phone number in E.164 format
995
- */
996
- phone: string;
997
- }
998
- interface OrganizationPhysicalAddress {
999
- /**
1000
- * State or province
1001
- */
1002
- administrative_area: string;
1003
- /**
1004
- * City name
1005
- */
1006
- city: string;
1007
- /**
1008
- * Country name (e.g., United States)
1009
- */
1010
- country: string;
1011
- /**
1012
- * ZIP or postal code
1013
- */
1014
- postal_code: string;
1015
- /**
1016
- * Street address
1017
- */
1018
- street_address: string;
1019
- /**
1020
- * Additional address line (suite, apt, etc.)
1021
- */
1022
- extended_address?: string | null;
1023
- }
1024
- }
1025
379
  export interface EnterpriseUpdateParams {
1026
- billing_address?: EnterpriseUpdateParams.BillingAddress;
1027
- billing_contact?: EnterpriseUpdateParams.BillingContact;
380
+ billing_address?: BillingAddress;
381
+ billing_contact?: BillingContact;
1028
382
  /**
1029
383
  * Corporate registration number
1030
384
  */
@@ -1061,12 +415,12 @@ export interface EnterpriseUpdateParams {
1061
415
  * Organization contact information. Note: the response returns this object with
1062
416
  * the phone field as 'phone' (not 'phone_number').
1063
417
  */
1064
- organization_contact?: EnterpriseUpdateParams.OrganizationContact;
418
+ organization_contact?: OrganizationContact;
1065
419
  /**
1066
420
  * Legal structure type
1067
421
  */
1068
422
  organization_legal_type?: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other';
1069
- organization_physical_address?: EnterpriseUpdateParams.OrganizationPhysicalAddress;
423
+ organization_physical_address?: PhysicalAddress;
1070
424
  /**
1071
425
  * SIC Code
1072
426
  */
@@ -1080,104 +434,6 @@ export interface EnterpriseUpdateParams {
1080
434
  */
1081
435
  website?: string;
1082
436
  }
1083
- export declare namespace EnterpriseUpdateParams {
1084
- interface BillingAddress {
1085
- /**
1086
- * State or province
1087
- */
1088
- administrative_area: string;
1089
- /**
1090
- * City name
1091
- */
1092
- city: string;
1093
- /**
1094
- * Country name (e.g., United States)
1095
- */
1096
- country: string;
1097
- /**
1098
- * ZIP or postal code
1099
- */
1100
- postal_code: string;
1101
- /**
1102
- * Street address
1103
- */
1104
- street_address: string;
1105
- /**
1106
- * Additional address line (suite, apt, etc.)
1107
- */
1108
- extended_address?: string | null;
1109
- }
1110
- interface BillingContact {
1111
- /**
1112
- * Contact's email address
1113
- */
1114
- email: string;
1115
- /**
1116
- * Contact's first name
1117
- */
1118
- first_name: string;
1119
- /**
1120
- * Contact's last name
1121
- */
1122
- last_name: string;
1123
- /**
1124
- * Contact's phone number (10-15 digits)
1125
- */
1126
- phone_number: string;
1127
- }
1128
- /**
1129
- * Organization contact information. Note: the response returns this object with
1130
- * the phone field as 'phone' (not 'phone_number').
1131
- */
1132
- interface OrganizationContact {
1133
- /**
1134
- * Contact's email address
1135
- */
1136
- email: string;
1137
- /**
1138
- * Contact's first name
1139
- */
1140
- first_name: string;
1141
- /**
1142
- * Contact's job title (required)
1143
- */
1144
- job_title: string;
1145
- /**
1146
- * Contact's last name
1147
- */
1148
- last_name: string;
1149
- /**
1150
- * Contact's phone number in E.164 format
1151
- */
1152
- phone: string;
1153
- }
1154
- interface OrganizationPhysicalAddress {
1155
- /**
1156
- * State or province
1157
- */
1158
- administrative_area: string;
1159
- /**
1160
- * City name
1161
- */
1162
- city: string;
1163
- /**
1164
- * Country name (e.g., United States)
1165
- */
1166
- country: string;
1167
- /**
1168
- * ZIP or postal code
1169
- */
1170
- postal_code: string;
1171
- /**
1172
- * Street address
1173
- */
1174
- street_address: string;
1175
- /**
1176
- * Additional address line (suite, apt, etc.)
1177
- */
1178
- extended_address?: string | null;
1179
- }
1180
- }
1181
437
  export interface EnterpriseListParams extends DefaultFlatPaginationParams {
1182
438
  /**
1183
439
  * Filter by legal name (partial match)
@@ -1185,7 +441,7 @@ export interface EnterpriseListParams extends DefaultFlatPaginationParams {
1185
441
  legal_name?: string;
1186
442
  }
1187
443
  export declare namespace Enterprises {
1188
- export { type EnterpriseCreateResponse as EnterpriseCreateResponse, type EnterpriseRetrieveResponse as EnterpriseRetrieveResponse, type EnterpriseUpdateResponse as EnterpriseUpdateResponse, type EnterpriseListResponse as EnterpriseListResponse, type EnterpriseListResponsesDefaultFlatPagination as EnterpriseListResponsesDefaultFlatPagination, type EnterpriseCreateParams as EnterpriseCreateParams, type EnterpriseUpdateParams as EnterpriseUpdateParams, type EnterpriseListParams as EnterpriseListParams, };
1189
- export { Reputation as Reputation, type ReputationCreateResponse as ReputationCreateResponse, type ReputationListResponse as ReputationListResponse, type ReputationUpdateFrequencyResponse as ReputationUpdateFrequencyResponse, type ReputationCreateParams as ReputationCreateParams, type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams, };
444
+ export { type BillingAddress as BillingAddress, type BillingContact as BillingContact, type EnterprisePublic as EnterprisePublic, type OrganizationContact as OrganizationContact, type PhysicalAddress as PhysicalAddress, type EnterpriseCreateResponse as EnterpriseCreateResponse, type EnterpriseRetrieveResponse as EnterpriseRetrieveResponse, type EnterpriseUpdateResponse as EnterpriseUpdateResponse, type EnterprisePublicsDefaultFlatPagination as EnterprisePublicsDefaultFlatPagination, type EnterpriseCreateParams as EnterpriseCreateParams, type EnterpriseUpdateParams as EnterpriseUpdateParams, type EnterpriseListParams as EnterpriseListParams, };
445
+ export { Reputation as Reputation, type EnterpriseReputationPublic as EnterpriseReputationPublic, type ReputationCreateResponse as ReputationCreateResponse, type ReputationListResponse as ReputationListResponse, type ReputationUpdateFrequencyResponse as ReputationUpdateFrequencyResponse, type ReputationCreateParams as ReputationCreateParams, type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams, };
1190
446
  }
1191
447
  //# sourceMappingURL=enterprises.d.mts.map