legiscan-ts 3.0.0 → 3.0.1

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.
package/dist/index.d.ts CHANGED
@@ -135,7 +135,7 @@ export declare const BillType: {
135
135
  readonly Remonstration: 22;
136
136
  readonly CommitteeBill: 23;
137
137
  };
138
- export declare const Vote: {
138
+ export declare const VoteType: {
139
139
  readonly Yea: 1;
140
140
  readonly Nay: 2;
141
141
  readonly Abstain: 3;
@@ -196,1516 +196,628 @@ export declare const State: {
196
196
  readonly US: 52;
197
197
  };
198
198
  export declare const Mime: {
199
- HTML: number;
200
- PDF: number;
201
- WPD: number;
202
- DOC: number;
203
- RTF: number;
204
- DOCX: number;
199
+ readonly HTML: 1;
200
+ readonly PDF: 2;
201
+ readonly WPD: 3;
202
+ readonly DOC: 4;
203
+ readonly RTF: 5;
204
+ readonly DOCX: 6;
205
205
  };
206
206
  export type Needle = number | string;
207
207
  export declare function asName<T extends Record<string, number>>(haystack: T, needle: Needle): keyof T | undefined;
208
208
  export declare function asNumber<T extends Record<string, number>>(haystack: T, needle: Needle): number | undefined;
209
209
  export declare function zNames<T extends Record<string, number>>(haystack: T): z.ZodUnion<z.ZodLiteral<string>[]>;
210
210
  export declare function zNumbers<T extends Record<string, number>>(haystack: T): z.ZodUnion<z.ZodLiteral<number>[]>;
211
- /**
212
- * This file was automatically generated by scripts/typegen.ts. Do not edit this file directly.
213
- */
211
+ export type Session = {
212
+ /** Internal session id */
213
+ session_id: number;
214
+ /** State specific session name */
215
+ session_name: string;
216
+ /** Normalized session title with year(s) and Regular/Nth Special Session */
217
+ session_title: string;
218
+ session_tag: unknown;
219
+ /** Normalized state */
220
+ state: string;
221
+ /** Internal state id */
222
+ state_id: number;
223
+ /** Starting year of session */
224
+ year_start: number;
225
+ /** Ending year of session */
226
+ year_end: number;
227
+ /** Flag for being a special session */
228
+ special: boolean;
229
+ /** Flag for session being in prefile */
230
+ prefile: boolean;
231
+ /** Flag for session being archived */
232
+ prior: boolean;
233
+ /** Flag for session being adjourned sine die */
234
+ sine_die: boolean;
235
+ };
214
236
  export type SessionList = {
215
- /**
216
- * Internal session id
217
- */
218
237
  session_id: number;
219
- /**
220
- * State specific session name
221
- */
222
238
  session_name: string;
223
- /**
224
- * Normalized session title with year(s) and Regular/Nth Special Session
225
- */
226
239
  session_title: string;
227
240
  session_tag: unknown;
228
- /**
229
- * Normalized state
230
- */
231
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
232
- /**
233
- * Internal state id
234
- */
235
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
236
- /**
237
- * Starting year of session
238
- */
241
+ state: string;
242
+ state_id: number;
239
243
  year_start: number;
240
- /**
241
- * Ending year of session
242
- */
243
244
  year_end: number;
244
- /**
245
- * Flag for being a special session
246
- */
247
245
  special: boolean;
248
- /**
249
- * Flag for session being in prefile
250
- */
251
246
  prefile: boolean;
252
- /**
253
- * Flag for session being archived
254
- */
255
247
  prior: boolean;
256
- /**
257
- * Flag for session being adjourned sine die
258
- */
259
248
  sine_die: boolean;
260
- /**
261
- * Hash of session data, used for caching
262
- */
263
249
  session_hash: string | null;
264
- /**
265
- * Hash of entire dataset, used for caching
266
- */
267
250
  dataset_hash: string | null;
268
251
  }[];
269
- export interface Bill {
270
- /**
271
- * Internal bill id
272
- */
273
- bill_id: number;
274
- /**
275
- * Bill number, e.g. HB 1234
276
- */
277
- bill_number: string;
278
- /**
279
- * Official bill title
280
- */
281
- title: string;
282
- /**
283
- * Official bill description
284
- */
285
- description: string;
286
- /**
287
- * URL of bill on legiscan.com
288
- */
289
- url: string;
290
- /**
291
- * Latest bill progress, e.g. 'Introduced'
292
- */
293
- status: "Prefiled" | "Introduced" | "Engrossed" | "Enrolled" | "Passed" | "Vetoed" | "Failed" | "Override" | "Chaptered" | "Refer" | "ReportPass" | "ReportDnp" | "Draft";
294
- /**
295
- * Internal progress id
296
- */
297
- status_id: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | null;
298
- /**
299
- * Date of last progress update (if available)
300
- */
301
- status_date: string | null;
302
- /**
303
- * Hash of bill data, used for caching
304
- */
305
- change_hash: string;
306
- /**
307
- * Internal session id
308
- */
309
- session_id: number;
310
- /**
311
- * Session object
312
- */
313
- session: {
314
- /**
315
- * Internal session id
316
- */
317
- session_id: number;
318
- /**
319
- * State specific session name
320
- */
321
- session_name: string;
322
- /**
323
- * Normalized session title with year(s) and Regular/Nth Special Session
324
- */
325
- session_title: string;
326
- session_tag: unknown;
327
- /**
328
- * Normalized state
329
- */
330
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
331
- /**
332
- * Internal state id
333
- */
334
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
335
- /**
336
- * Starting year of session
337
- */
338
- year_start: number;
339
- /**
340
- * Ending year of session
341
- */
342
- year_end: number;
343
- /**
344
- * Flag for being a special session
345
- */
346
- special: boolean;
347
- /**
348
- * Flag for session being in prefile
349
- */
350
- prefile: boolean;
351
- /**
352
- * Flag for session being archived
353
- */
354
- prior: boolean;
355
- /**
356
- * Flag for session being adjourned sine die
357
- */
358
- sine_die: boolean;
359
- };
360
- /**
361
- * URL of bill on state website
362
- */
363
- state_link: string;
364
- /**
365
- * Flag for whether bill is completed
366
- */
367
- completed: boolean;
368
- /**
369
- * Major history of the bill (i.e. important items from history)
370
- */
371
- progress: {
372
- /**
373
- * Date of progress event
374
- */
375
- date: string;
376
- /**
377
- * Normalized progress event
378
- */
379
- event: "Prefiled" | "Introduced" | "Engrossed" | "Enrolled" | "Passed" | "Vetoed" | "Failed" | "Override" | "Chaptered" | "Refer" | "ReportPass" | "ReportDnp" | "Draft";
380
- /**
381
- * Internal progress event id
382
- */
383
- event_id: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
384
- }[];
385
- /**
386
- * Normalized state
387
- */
388
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
389
- /**
390
- * Internal state id
391
- */
392
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
393
- /**
394
- * Internal state name
395
- */
396
- state_raw: string;
397
- /**
398
- * Normalized bill type, e.g. 'JointResolution'
399
- */
400
- bill_type: "Bill" | "Resolution" | "ConcurrentResolution" | "JointResolution" | "JointResolutionConstitutionalAmendment" | "ExecutiveOrder" | "ConstitutionalAmendment" | "Memorial" | "Claim" | "Commendation" | "CommitteeStudyRequest" | "JointMemorial" | "Proclamation" | "StudyRequest" | "Address" | "ConcurrentMemorial" | "Initiative" | "Petition" | "StudyBill" | "InitiativePetition" | "RepealBill" | "Remonstration" | "CommitteeBill";
401
- /**
402
- * Internal bill type id
403
- */
404
- bill_type_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23;
405
- /**
406
- * Internal bill type name, e.g. 'JR'
407
- */
408
- bill_type_raw: string;
409
- /**
410
- * Internal body id (original)
411
- */
412
- body_id: number;
413
- /**
414
- * Internal body name (original)
415
- */
416
- body_raw: string;
417
- /**
418
- * Internal body id (current)
419
- */
420
- current_body_id: number | null;
421
- /**
422
- * Internal body name (current)
423
- */
424
- current_body_raw: string | null;
425
- /**
426
- * Internal committee id
427
- */
428
- pending_committee_id: number;
429
- /**
430
- * List of committees if pending
431
- */
432
- committee: {
433
- /**
434
- * Internal committee id
435
- */
436
- committee_id: number;
437
- /**
438
- * Internal chamber name, e.g. 'S' or 'H'
439
- */
440
- chamber_raw: string;
441
- /**
442
- * Internal chamber id
443
- */
444
- chamber_id: number;
445
- /**
446
- * Committee name
447
- */
448
- name: string;
449
- }[];
450
- /**
451
- * History of committee referrals
452
- */
453
- referrals: {
454
- /**
455
- * Internal committee id
456
- */
457
- committee_id: number;
458
- /**
459
- * Internal chamber name, e.g. 'S' or 'H'
460
- */
461
- chamber_raw: string;
462
- /**
463
- * Internal chamber id
464
- */
465
- chamber_id: number;
466
- /**
467
- * Committee name
468
- */
469
- name: string;
470
- /**
471
- * Date of referral
472
- */
473
- date: string;
474
- }[];
475
- /**
476
- * Full history of the bill
477
- */
478
- history: {
479
- /**
480
- * Date of action
481
- */
482
- date: string;
483
- /**
484
- * Description of action taken
485
- */
486
- action: string;
487
- /**
488
- * Internal chamber name
489
- */
490
- chamber_raw: string | null;
491
- /**
492
- * Internal chamber id
493
- */
494
- chamber_id: number | null;
495
- /**
496
- * Flag for major steps (i.e. those included in progress list)
497
- */
498
- importance: boolean;
499
- }[];
500
- /**
501
- * Sponsors of the bill
502
- */
503
- sponsors: {
504
- /**
505
- * Internal person id
506
- */
507
- people_id: number;
508
- /**
509
- * Hash of the person's details, used for caching
510
- */
511
- person_hash: string;
512
- /**
513
- * Normalized party, e.g. 'Democrat' or 'Republican'
514
- */
515
- party: "Democrat" | "Republican" | "Independent" | "GreenParty" | "Libertarian" | "Nonpartisan";
516
- /**
517
- * Internal party id
518
- */
519
- party_id: 1 | 2 | 3 | 4 | 5 | 6;
520
- /**
521
- * Internal party name
522
- */
523
- party_raw: string;
524
- /**
525
- * Normalized state
526
- */
527
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
528
- /**
529
- * Internal state id
530
- */
531
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
532
- /**
533
- * Normalized role, e.g. 'Senator' or 'Representative'
534
- */
535
- role: "Representative" | "Senator" | "JointConference";
536
- /**
537
- * Internal role id
538
- */
539
- role_id: 1 | 2 | 3;
540
- /**
541
- * Internal role name
542
- */
543
- role_raw: string;
544
- /**
545
- * Person's full name
546
- */
547
- name: string;
548
- /**
549
- * Person's first name
550
- */
551
- first_name: string;
552
- /**
553
- * Person's middle name
554
- */
555
- middle_name: string | null;
556
- /**
557
- * Person's last name
558
- */
559
- last_name: string;
560
- /**
561
- * Person's suffix
562
- */
563
- suffix: string | null;
564
- /**
565
- * Person's nickname
566
- */
567
- nickname: string | null;
568
- /**
569
- * Person's district
570
- */
571
- district: string;
572
- /**
573
- * FollowTheMoney ID of the person
574
- */
575
- ftm_eid: number | null;
576
- /**
577
- * Votesmart ID of the person
578
- */
579
- votesmart_id: number | null;
580
- /**
581
- * OpenSecrets ID of the person
582
- */
583
- opensecrets_id: number | null;
584
- /**
585
- * KnowWho PID of the person
586
- */
587
- knowwho_pid: number | null;
588
- /**
589
- * Ballotpedia ID of the person
590
- */
591
- ballotpedia: string | null;
592
- /**
593
- * Bioguide ID of the person
594
- */
595
- bioguide_id: string | null;
596
- /**
597
- * Flag for committee sponsorship
598
- */
599
- committee_sponsor: boolean;
600
- /**
601
- * Internal committee id
602
- */
603
- committee_id: number | null;
604
- state_federal: unknown;
605
- bio: unknown;
606
- /**
607
- * Normalized sponsor type
608
- */
609
- sponsor_type: "Sponsor" | "PrimarySponsor" | "CoSponsor" | "JointSponsor";
610
- /**
611
- * Internal sponsor type id
612
- */
613
- sponsor_type_id: 0 | 1 | 2 | 3;
614
- /**
615
- * Order of sponsorship
616
- */
617
- sponsor_order: number;
618
- }[];
619
- /**
620
- * SASTs of the bill
621
- */
622
- sasts: {
623
- /**
624
- * Normalized sast type
625
- */
626
- type: "SameAs" | "SimilarTo" | "ReplacedBy" | "Replaces" | "Crossfiled" | "EnablingFor" | "EnabledBy" | "Related" | "CarryOver";
627
- /**
628
- * Internal sast id
629
- */
630
- type_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
631
- /**
632
- * Internal sast type name
633
- */
634
- type_raw: string;
635
- /**
636
- * Bill number of the sast, e.g. HB 1234
637
- */
638
- sast_bill_number: string;
639
- /**
640
- * Internal bill id of the sast
641
- */
642
- sast_bill_id: number;
643
- }[];
644
- /**
645
- * Subjects of the bill
646
- */
647
- subjects: {
648
- /**
649
- * Internal subject id
650
- */
651
- subject_id: number;
652
- /**
653
- * Name of the subject
654
- */
655
- subject_name: string;
656
- }[];
657
- /**
658
- * Documents from the bill
659
- */
660
- texts: {
661
- /**
662
- * Internal document id
663
- */
664
- doc_id: number;
665
- /**
666
- * Internal bill id
667
- */
668
- bill_id?: number;
669
- /**
670
- * Type of draft text
671
- */
672
- type: "Introduced" | "CommitteeSubstitute" | "Amended" | "Engrossed" | "Enrolled" | "Chaptered" | "FiscalNote" | "Analysis" | "Draft" | "ConferenceSubstitute" | "Prefiled" | "VetoMessage" | "VetoResponse" | "Substitute";
673
- /**
674
- * Internal text type id
675
- */
676
- type_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
677
- /**
678
- * Internal text type name
679
- */
680
- type_raw: string;
681
- /**
682
- * Document date (if available)
683
- */
684
- date: string;
685
- /**
686
- * URL of document on legiscan.com
687
- */
688
- url: string;
689
- /**
690
- * URL of document on state website
691
- */
692
- state_link: string;
693
- /**
694
- * Normalized file type, e.g. 'PDF'
695
- */
696
- mime: "HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX";
697
- /**
698
- * Internal file type id
699
- */
700
- mime_id: 1 | 2 | 3 | 4 | 5 | 6;
701
- /**
702
- * Raw MIME type of the document, e.g. 'application/pdf'
703
- */
704
- mime_raw: string;
705
- /**
706
- * Size in bytes of the decoded BASE64 document (add 33% for base64)
707
- */
708
- text_size: number;
709
- /**
710
- * MD5 hash of the decoded BASE64 document
711
- */
712
- text_hash: string;
713
- /**
714
- * Internal alternate bill text id
715
- */
716
- alt_doc_id: number | null;
717
- /**
718
- * Normalized file type of alternate document, e.g. 'PDF'
719
- */
720
- alt_mime: ("HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX") | null;
721
- /**
722
- * Internal file type id of alternate document
723
- */
724
- alt_mime_id: (1 | 2 | 3 | 4 | 5 | 6) | null;
725
- /**
726
- * Raw MIME type of the alternate document, e.g. 'application/pdf'
727
- */
728
- alt_mime_raw: string | null;
729
- /**
730
- * URL of alternate document on state website
731
- */
732
- alt_state_link: string | null;
733
- /**
734
- * Size in bytes of the decoded BASE64 alternate document (add 33% for base64)
735
- */
736
- alt_text_size: number | null;
737
- /**
738
- * MD5 hash of the decoded BASE64 alternate document
739
- */
740
- alt_text_hash: string | null;
741
- }[];
742
- /**
743
- * Votes for the bill
744
- */
745
- votes: {
746
- /**
747
- * Internal roll call id
748
- */
749
- roll_call_id: number;
750
- /**
751
- * Date of the vote
752
- */
753
- date: string;
754
- /**
755
- * Description of the vote
756
- */
757
- description: string;
758
- /**
759
- * Number of votes for the bill
760
- */
761
- yea: number;
762
- /**
763
- * Number of votes against the bill
764
- */
765
- nay: number;
766
- /**
767
- * Number of votes that abstained
768
- */
769
- abstain: number;
770
- /**
771
- * Number of votes that were absent
772
- */
773
- absent: number;
774
- /**
775
- * Total number of votes
776
- */
777
- total: number;
778
- /**
779
- * Flag for whether the vote passed
780
- */
781
- passed: boolean;
782
- /**
783
- * Internal chamber id
784
- */
785
- chamber_id: number;
786
- /**
787
- * Internal chamber name, e.g. 'S' or 'H'
788
- */
789
- chamber_raw: string;
790
- /**
791
- * URL of the vote on legiscan.com
792
- */
793
- url: string;
794
- /**
795
- * URL of the vote on state website
796
- */
797
- state_link: string;
798
- }[];
799
- /**
800
- * Amendments to the bill
801
- */
802
- amendments: {
803
- /**
804
- * Internal amendment id
805
- */
806
- amendment_id: number;
807
- /**
808
- * Flag for whether the amendment was adopted
809
- */
810
- adopted: boolean;
811
- /**
812
- * Internal chamber id
813
- */
814
- chamber_id: number;
815
- /**
816
- * Internal chamber name, e.g. 'S' or 'H'
817
- */
818
- chamber_raw: string;
819
- /**
820
- * Date of the amendment
821
- */
822
- date: string | null;
823
- /**
824
- * Official amendment title
825
- */
826
- title: string;
827
- /**
828
- * Official amendment description
829
- */
830
- description: string;
831
- /**
832
- * Normalized file type, e.g. 'PDF'
833
- */
834
- mime: "HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX";
835
- /**
836
- * Internal file type id
837
- */
838
- mime_id: 1 | 2 | 3 | 4 | 5 | 6;
839
- /**
840
- * Raw MIME type of the document, e.g. 'application/pdf'
841
- */
842
- mime_raw: string;
843
- /**
844
- * URL of the amendment on legiscan.com
845
- */
846
- url: string;
847
- /**
848
- * URL of the amendment on state website
849
- */
850
- state_link: string;
851
- /**
852
- * Size in bytes of the decoded BASE64 document (add 33% for base64)
853
- */
854
- amendment_size: number;
855
- /**
856
- * MD5 hash of the decoded BASE64 document
857
- */
858
- amendment_hash: string;
859
- /**
860
- * Internal alternate amendment id
861
- */
862
- alt_amendment: number | null;
863
- /**
864
- * Normalized file type of alternate document, e.g. 'PDF'
865
- */
866
- alt_mime: ("HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX") | null;
867
- /**
868
- * Internal file type id of alternate document
869
- */
870
- alt_mime_id: (1 | 2 | 3 | 4 | 5 | 6) | null;
871
- /**
872
- * Raw MIME type of the alternate document, e.g. 'application/pdf'
873
- */
874
- alt_mime_raw: string | null;
875
- /**
876
- * URL of the alternate document on state website
877
- */
878
- alt_state_link: string | null;
879
- /**
880
- * Size in bytes of the decoded alternate BASE64 document (add 33% for base64)
881
- */
882
- alt_amendment_size: number | null;
883
- /**
884
- * MD5 hash of the decoded alternate BASE64 document
885
- */
886
- alt_amendment_hash: string | null;
887
- }[];
888
- /**
889
- * Supplements to the bill
890
- */
891
- supplements: {
892
- /**
893
- * Internal supplement id
894
- */
895
- supplement_id: number;
896
- /**
897
- * Date of the supplement
898
- */
899
- date: string | null;
900
- /**
901
- * Normalized supplement type
902
- */
903
- type: "FiscalNote" | "Analysis" | "FiscalNoteAnalysis" | "VoteImage" | "LocalMandate" | "CorrectionsImpact" | "Misc" | "VetoLetter";
904
- /**
905
- * Internal supplement type id
906
- */
907
- type_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
908
- /**
909
- * Internal supplement type name
910
- */
911
- type_raw: string;
912
- /**
913
- * Normalized file type, e.g. 'PDF'
914
- */
915
- mime: "HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX";
916
- /**
917
- * Internal file type id
918
- */
919
- mime_id: 1 | 2 | 3 | 4 | 5 | 6;
920
- /**
921
- * Raw mime type of the document, e.g. 'application/pdf'
922
- */
923
- mime_raw: string;
924
- /**
925
- * URL of the supplement on legiscan.com
926
- */
927
- url: string;
928
- /**
929
- * URL of the supplement on state website
930
- */
931
- state_link: string;
932
- /**
933
- * Size in bytes of the decoded BASE64 document (add 33% for base64)
934
- */
935
- supplement_size: number;
936
- /**
937
- * MD5 hash of the decoded BASE64 document
938
- */
939
- supplement_hash: string;
940
- /**
941
- * Internal alternate supplement id
942
- */
943
- alt_supplement: number | null;
944
- /**
945
- * Normalized file type of alternate document, e.g. 'PDF'
946
- */
947
- alt_mime: ("HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX") | null;
948
- /**
949
- * Internal file type id of alternate document
950
- */
951
- alt_mime_id: (1 | 2 | 3 | 4 | 5 | 6) | null;
952
- /**
953
- * Raw MIME type of the alternate document, e.g. 'application/pdf'
954
- */
955
- alt_mime_raw: string | null;
956
- /**
957
- * URL of the alternate document on state website
958
- */
959
- alt_state_link: string | null;
960
- /**
961
- * Size in bytes of the decoded alternate BASE64 document (add 33% for base64)
962
- */
963
- alt_supplement_size: number | null;
964
- /**
965
- * MD5 hash of the decoded alternate BASE64 document
966
- */
967
- alt_supplement_hash: string | null;
968
- }[];
969
- /**
970
- * Events related to the bill
971
- */
972
- calendar: {
973
- /**
974
- * Normalized event type
975
- */
976
- type: "Hearing" | "ExecutiveSession" | "MarkupSession";
977
- /**
978
- * Internal event type id
979
- */
980
- type_id: 1 | 2 | 3;
981
- /**
982
- * Internal event type name
983
- */
984
- type_raw: string;
985
- /**
986
- * Date of the event
987
- */
988
- date: string;
989
- /**
990
- * Time of the event (if available)
991
- */
992
- time: string | null;
993
- /**
994
- * Location of the event (if available)
995
- */
996
- location: string | null;
997
- /**
998
- * Description of the event
999
- */
1000
- description: string;
1001
- }[];
1002
- }
1003
- export type MasterList = {
1004
- /**
1005
- * Internal bill id
1006
- */
1007
- bill_id: number;
1008
- /**
1009
- * Bill number, e.g. HB 1234
1010
- */
1011
- bill_number: string;
1012
- /**
1013
- * Official bill title
1014
- */
1015
- title: string;
1016
- /**
1017
- * Official bill description
1018
- */
1019
- description: string;
1020
- /**
1021
- * URL of bill on legiscan.com
1022
- */
1023
- url: string;
1024
- /**
1025
- * Latest bill progress, e.g. 'Introduced'
1026
- */
1027
- status: "Prefiled" | "Introduced" | "Engrossed" | "Enrolled" | "Passed" | "Vetoed" | "Failed" | "Override" | "Chaptered" | "Refer" | "ReportPass" | "ReportDnp" | "Draft";
1028
- /**
1029
- * Internal progress id
1030
- */
1031
- status_id: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | null;
1032
- /**
1033
- * Date of last progress update (if available)
1034
- */
1035
- status_date: string | null;
1036
- /**
1037
- * Hash of bill data, used for caching
1038
- */
1039
- change_hash: string;
1040
- /**
1041
- * Description of the bill's last action (if available)
1042
- */
1043
- last_action: string | null;
1044
- /**
1045
- * Date of the bill's last action (if available)
1046
- */
1047
- last_action_date: string | null;
1048
- }[];
1049
- export interface BillText {
1050
- /**
1051
- * Internal document id
1052
- */
252
+ export type BillText = {
253
+ /** Internal document id */
1053
254
  doc_id: number;
1054
- /**
1055
- * Internal bill id
1056
- */
1057
- bill_id?: number;
1058
- /**
1059
- * Type of draft text
1060
- */
1061
- type: "Introduced" | "CommitteeSubstitute" | "Amended" | "Engrossed" | "Enrolled" | "Chaptered" | "FiscalNote" | "Analysis" | "Draft" | "ConferenceSubstitute" | "Prefiled" | "VetoMessage" | "VetoResponse" | "Substitute";
1062
- /**
1063
- * Internal text type id
1064
- */
1065
- type_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
1066
- /**
1067
- * Internal text type name
1068
- */
255
+ /** Internal bill id */
256
+ bill_id?: number | undefined;
257
+ /** Type of draft text */
258
+ type: string;
259
+ /** Internal text type id */
260
+ type_id: number;
261
+ /** Internal text type name */
1069
262
  type_raw: string;
1070
- /**
1071
- * Document date (if available)
1072
- */
263
+ /** Document date (if available) */
1073
264
  date: string;
1074
- /**
1075
- * URL of document on legiscan.com
1076
- */
265
+ /** URL of document on legiscan.com */
1077
266
  url: string;
1078
- /**
1079
- * URL of document on state website
1080
- */
267
+ /** URL of document on state website */
1081
268
  state_link: string;
1082
- /**
1083
- * Normalized file type, e.g. 'PDF'
1084
- */
1085
- mime: "HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX";
1086
- /**
1087
- * Internal file type id
1088
- */
1089
- mime_id: 1 | 2 | 3 | 4 | 5 | 6;
1090
- /**
1091
- * Raw MIME type of the document, e.g. 'application/pdf'
1092
- */
269
+ /** Normalized file type, e.g. 'PDF' */
270
+ mime: string;
271
+ /** Internal file type id */
272
+ mime_id: number;
273
+ /** Raw MIME type of the document, e.g. 'application/pdf' */
1093
274
  mime_raw: string;
1094
- /**
1095
- * Size in bytes of the decoded BASE64 document (add 33% for base64)
1096
- */
275
+ /** Size in bytes of the decoded BASE64 document (add 33% for base64) */
1097
276
  text_size: number;
1098
- /**
1099
- * MD5 hash of the decoded BASE64 document
1100
- */
277
+ /** MD5 hash of the decoded BASE64 document */
1101
278
  text_hash: string;
1102
- /**
1103
- * Internal alternate bill text id
1104
- */
279
+ /** Internal alternate bill text id */
1105
280
  alt_doc_id: number | null;
1106
- /**
1107
- * Normalized file type of alternate document, e.g. 'PDF'
1108
- */
1109
- alt_mime: ("HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX") | null;
1110
- /**
1111
- * Internal file type id of alternate document
1112
- */
1113
- alt_mime_id: (1 | 2 | 3 | 4 | 5 | 6) | null;
1114
- /**
1115
- * Raw MIME type of the alternate document, e.g. 'application/pdf'
1116
- */
281
+ /** Normalized file type of alternate document, e.g. 'PDF' */
282
+ alt_mime: string | null;
283
+ /** Internal file type id of alternate document */
284
+ alt_mime_id: number | null;
285
+ /** Raw MIME type of the alternate document, e.g. 'application/pdf' */
1117
286
  alt_mime_raw: string | null;
1118
- /**
1119
- * URL of alternate document on state website
1120
- */
287
+ /** URL of alternate document on state website */
1121
288
  alt_state_link: string | null;
1122
- /**
1123
- * Size in bytes of the decoded BASE64 alternate document (add 33% for base64)
1124
- */
289
+ /** Size in bytes of the decoded BASE64 alternate document (add 33% for base64) */
1125
290
  alt_text_size: number | null;
1126
- /**
1127
- * MD5 hash of the decoded BASE64 alternate document
1128
- */
291
+ /** MD5 hash of the decoded BASE64 alternate document */
1129
292
  alt_text_hash: string | null;
1130
- /**
1131
- * BASE64 encoded document
1132
- */
1133
- doc: string;
1134
- alt_doc: unknown;
1135
- }
1136
- export interface Person {
1137
- /**
1138
- * Internal person id
1139
- */
293
+ /** BASE64 encoded document */
294
+ doc?: string | null | undefined;
295
+ /** BASE64 encoded alternate document */
296
+ alt_doc?: string | null | undefined;
297
+ };
298
+ export type Committee = {
299
+ /** Internal committee id */
300
+ committee_id: number;
301
+ /** Internal chamber name, e.g. 'S' or 'H' */
302
+ chamber_raw: string;
303
+ /** Internal chamber id */
304
+ chamber_id: number;
305
+ /** Committee name */
306
+ name: string;
307
+ };
308
+ export type CommitteeReferral = {
309
+ committee_id: number;
310
+ chamber_raw: string;
311
+ chamber_id: number;
312
+ name: string;
313
+ date: string;
314
+ };
315
+ export type BillProgress = {
316
+ /** Date of progress event */
317
+ date: string;
318
+ /** Normalized progress event */
319
+ event: string;
320
+ /** Internal progress event id */
321
+ event_id: number;
322
+ };
323
+ export type BillHistory = {
324
+ /** Date of action */
325
+ date: string;
326
+ /** Description of action taken */
327
+ action: string;
328
+ /** Internal chamber name */
329
+ chamber_raw: string | null;
330
+ /** Internal chamber id */
331
+ chamber_id: number | null;
332
+ /** Flag for major steps (i.e. those included in progress list) */
333
+ importance: boolean;
334
+ };
335
+ export type Person = {
336
+ /** Internal person id */
1140
337
  people_id: number;
1141
- /**
1142
- * Hash of the person's details, used for caching
1143
- */
338
+ /** Hash of the person's details, used for caching */
1144
339
  person_hash: string;
1145
- /**
1146
- * Normalized party, e.g. 'Democrat' or 'Republican'
1147
- */
1148
- party: "Democrat" | "Republican" | "Independent" | "GreenParty" | "Libertarian" | "Nonpartisan";
1149
- /**
1150
- * Internal party id
1151
- */
1152
- party_id: 1 | 2 | 3 | 4 | 5 | 6;
1153
- /**
1154
- * Internal party name
1155
- */
340
+ /** Normalized party, e.g. 'Democrat' or 'Republican' */
341
+ party: string;
342
+ /** Internal party id */
343
+ party_id: number;
344
+ /** Internal party name */
1156
345
  party_raw: string;
1157
- /**
1158
- * Normalized state
1159
- */
1160
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
1161
- /**
1162
- * Internal state id
1163
- */
1164
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
1165
- /**
1166
- * Normalized role, e.g. 'Senator' or 'Representative'
1167
- */
1168
- role: "Representative" | "Senator" | "JointConference";
1169
- /**
1170
- * Internal role id
1171
- */
1172
- role_id: 1 | 2 | 3;
1173
- /**
1174
- * Internal role name
1175
- */
346
+ /** Normalized state */
347
+ state: string;
348
+ /** Internal state id */
349
+ state_id: number;
350
+ /** Normalized role, e.g. 'Senator' or 'Representative' */
351
+ role: string;
352
+ /** Internal role id */
353
+ role_id: number;
354
+ /** Internal role name */
1176
355
  role_raw: string;
1177
- /**
1178
- * Person's full name
1179
- */
356
+ /** Person's full name */
1180
357
  name: string;
1181
- /**
1182
- * Person's first name
1183
- */
358
+ /** Person's first name */
1184
359
  first_name: string;
1185
- /**
1186
- * Person's middle name
1187
- */
360
+ /** Person's middle name */
1188
361
  middle_name: string | null;
1189
- /**
1190
- * Person's last name
1191
- */
362
+ /** Person's last name */
1192
363
  last_name: string;
1193
- /**
1194
- * Person's suffix
1195
- */
364
+ /** Person's suffix */
1196
365
  suffix: string | null;
1197
- /**
1198
- * Person's nickname
1199
- */
366
+ /** Person's nickname */
1200
367
  nickname: string | null;
1201
- /**
1202
- * Person's district
1203
- */
368
+ /** Person's district */
1204
369
  district: string;
1205
- /**
1206
- * FollowTheMoney ID of the person
1207
- */
370
+ /** FollowTheMoney ID of the person */
1208
371
  ftm_eid: number | null;
1209
- /**
1210
- * Votesmart ID of the person
1211
- */
372
+ /** Votesmart ID of the person */
1212
373
  votesmart_id: number | null;
1213
- /**
1214
- * OpenSecrets ID of the person
1215
- */
374
+ /** OpenSecrets ID of the person */
1216
375
  opensecrets_id: number | null;
1217
- /**
1218
- * KnowWho PID of the person
1219
- */
376
+ /** KnowWho PID of the person */
1220
377
  knowwho_pid: number | null;
1221
- /**
1222
- * Ballotpedia ID of the person
1223
- */
378
+ /** Ballotpedia ID of the person */
1224
379
  ballotpedia: string | null;
1225
- /**
1226
- * Bioguide ID of the person
1227
- */
380
+ /** Bioguide ID of the person */
1228
381
  bioguide_id: string | null;
1229
- /**
1230
- * Flag for committee sponsorship
1231
- */
382
+ /** Flag for committee sponsorship */
1232
383
  committee_sponsor: boolean;
1233
- /**
1234
- * Internal committee id
1235
- */
384
+ /** Internal committee id */
1236
385
  committee_id: number | null;
1237
386
  state_federal: unknown;
1238
387
  bio: unknown;
1239
- }
1240
- export interface Amendment {
1241
- /**
1242
- * Internal amendment id
1243
- */
388
+ };
389
+ export type Sast = {
390
+ /** Normalized sast type */
391
+ type: string;
392
+ /** Internal sast id */
393
+ type_id: number;
394
+ /** Internal sast type name */
395
+ type_raw: string;
396
+ /** Bill number of the sast, e.g. HB 1234 */
397
+ sast_bill_number: string;
398
+ /** Internal bill id of the sast */
399
+ sast_bill_id: number;
400
+ };
401
+ export type Subject = {
402
+ /** Internal subject id */
403
+ subject_id: number;
404
+ /** Name of the subject */
405
+ subject_name: string;
406
+ };
407
+ export type Vote = {
408
+ /** Internal roll call id */
409
+ roll_call_id: number;
410
+ /** Date of the vote */
411
+ date: string;
412
+ /** Description of the vote */
413
+ description: string;
414
+ /** Number of votes for the bill */
415
+ yea: number;
416
+ /** Number of votes against the bill */
417
+ nay: number;
418
+ /** Number of votes that abstained */
419
+ abstain: number;
420
+ /** Number of votes that were absent */
421
+ absent: number;
422
+ /** Total number of votes */
423
+ total: number;
424
+ /** Flag for whether the vote passed */
425
+ passed: boolean;
426
+ /** Internal chamber id */
427
+ chamber_id: number;
428
+ /** Internal chamber name, e.g. 'S' or 'H' */
429
+ chamber_raw: string;
430
+ };
431
+ export type Amendment = {
432
+ /** Internal amendment id */
1244
433
  amendment_id: number;
1245
- /**
1246
- * Flag for whether the amendment was adopted
1247
- */
434
+ /** Flag for whether the amendment was adopted */
1248
435
  adopted: boolean;
1249
- /**
1250
- * Internal chamber id
1251
- */
436
+ /** Internal chamber id */
1252
437
  chamber_id: number;
1253
- /**
1254
- * Internal chamber name, e.g. 'S' or 'H'
1255
- */
438
+ /** Internal chamber name, e.g. 'S' or 'H' */
1256
439
  chamber_raw: string;
1257
- /**
1258
- * Date of the amendment
1259
- */
440
+ /** Date of the amendment */
1260
441
  date: string | null;
1261
- /**
1262
- * Official amendment title
1263
- */
442
+ /** Official amendment title */
1264
443
  title: string;
1265
- /**
1266
- * Official amendment description
1267
- */
444
+ /** Official amendment description */
1268
445
  description: string;
1269
- /**
1270
- * Normalized file type, e.g. 'PDF'
1271
- */
1272
- mime: "HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX";
1273
- /**
1274
- * Internal file type id
1275
- */
1276
- mime_id: 1 | 2 | 3 | 4 | 5 | 6;
1277
- /**
1278
- * Raw MIME type of the document, e.g. 'application/pdf'
1279
- */
446
+ /** Normalized file type, e.g. 'PDF' */
447
+ mime: string;
448
+ /** Internal file type id */
449
+ mime_id: number;
450
+ /** Raw MIME type of the document, e.g. 'application/pdf' */
1280
451
  mime_raw: string;
1281
- /**
1282
- * URL of the amendment on legiscan.com
1283
- */
452
+ /** URL of the amendment on legiscan.com */
1284
453
  url: string;
1285
- /**
1286
- * URL of the amendment on state website
1287
- */
454
+ /** URL of the amendment on state website */
1288
455
  state_link: string;
1289
- /**
1290
- * Size in bytes of the decoded BASE64 document (add 33% for base64)
1291
- */
456
+ /** Size in bytes of the decoded BASE64 document (add 33% for base64) */
1292
457
  amendment_size: number;
1293
- /**
1294
- * MD5 hash of the decoded BASE64 document
1295
- */
458
+ /** MD5 hash of the decoded BASE64 document */
1296
459
  amendment_hash: string;
1297
- /**
1298
- * Internal alternate amendment id
1299
- */
460
+ /** Internal alternate amendment id */
1300
461
  alt_amendment: number | null;
1301
- /**
1302
- * Normalized file type of alternate document, e.g. 'PDF'
1303
- */
1304
- alt_mime: ("HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX") | null;
1305
- /**
1306
- * Internal file type id of alternate document
1307
- */
1308
- alt_mime_id: (1 | 2 | 3 | 4 | 5 | 6) | null;
1309
- /**
1310
- * Raw MIME type of the alternate document, e.g. 'application/pdf'
1311
- */
462
+ /** Normalized file type of alternate document, e.g. 'PDF' */
463
+ alt_mime: string | null;
464
+ /** Internal file type id of alternate document */
465
+ alt_mime_id: number | null;
466
+ /** Raw MIME type of the alternate document, e.g. 'application/pdf' */
1312
467
  alt_mime_raw: string | null;
1313
- /**
1314
- * URL of the alternate document on state website
1315
- */
468
+ /** URL of the alternate document on state website */
1316
469
  alt_state_link: string | null;
1317
- /**
1318
- * Size in bytes of the decoded alternate BASE64 document (add 33% for base64)
1319
- */
1320
- alt_amendment_size: number | null;
1321
- /**
1322
- * MD5 hash of the decoded alternate BASE64 document
1323
- */
1324
- alt_amendment_hash: string | null;
1325
- /**
1326
- * Internal bill id the amendment belongs to
1327
- */
1328
- bill_id: number;
1329
- /**
1330
- * BASE64 encoded document
1331
- */
1332
- doc: string;
1333
- /**
1334
- * BASE64 encoded alternate document
1335
- */
1336
- alt_doc: string | null;
1337
- }
1338
- export interface Supplement {
1339
- /**
1340
- * Internal supplement id
1341
- */
470
+ /** Size in bytes of the decoded alternate BASE64 document (add 33% for base64) */
471
+ alt_amendment_size: number | null;
472
+ /** MD5 hash of the decoded alternate BASE64 document */
473
+ alt_amendment_hash: string | null;
474
+ /** Internal bill id the amendment belongs to */
475
+ bill_id?: number | null | undefined;
476
+ /** BASE64 encoded document */
477
+ doc?: string | null | undefined;
478
+ alt_doc?: string | null | undefined;
479
+ };
480
+ export type Supplement = {
481
+ /** Internal supplement id */
1342
482
  supplement_id: number;
1343
- /**
1344
- * Date of the supplement
1345
- */
483
+ /** Date of the supplement */
1346
484
  date: string | null;
1347
- /**
1348
- * Normalized supplement type
1349
- */
1350
- type: "FiscalNote" | "Analysis" | "FiscalNoteAnalysis" | "VoteImage" | "LocalMandate" | "CorrectionsImpact" | "Misc" | "VetoLetter";
1351
- /**
1352
- * Internal supplement type id
1353
- */
1354
- type_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1355
- /**
1356
- * Internal supplement type name
1357
- */
485
+ /** Normalized supplement type */
486
+ type: string;
487
+ /** Internal supplement type id */
488
+ type_id: number;
489
+ /** Internal supplement type name */
1358
490
  type_raw: string;
1359
- /**
1360
- * Normalized file type, e.g. 'PDF'
1361
- */
1362
- mime: "HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX";
1363
- /**
1364
- * Internal file type id
1365
- */
1366
- mime_id: 1 | 2 | 3 | 4 | 5 | 6;
1367
- /**
1368
- * Raw mime type of the document, e.g. 'application/pdf'
1369
- */
491
+ /** Normalized file type, e.g. 'PDF' */
492
+ mime: string;
493
+ /** Internal file type id */
494
+ mime_id: number;
495
+ /** Raw mime type of the document, e.g. 'application/pdf' */
1370
496
  mime_raw: string;
1371
- /**
1372
- * URL of the supplement on legiscan.com
1373
- */
497
+ /** URL of the supplement on legiscan.com */
1374
498
  url: string;
1375
- /**
1376
- * URL of the supplement on state website
1377
- */
499
+ /** URL of the supplement on state website */
1378
500
  state_link: string;
1379
- /**
1380
- * Size in bytes of the decoded BASE64 document (add 33% for base64)
1381
- */
501
+ /** Size in bytes of the decoded BASE64 document (add 33% for base64) */
1382
502
  supplement_size: number;
1383
- /**
1384
- * MD5 hash of the decoded BASE64 document
1385
- */
503
+ /** MD5 hash of the decoded BASE64 document */
1386
504
  supplement_hash: string;
1387
- /**
1388
- * Internal alternate supplement id
1389
- */
505
+ /** Internal alternate supplement id */
1390
506
  alt_supplement: number | null;
1391
- /**
1392
- * Normalized file type of alternate document, e.g. 'PDF'
1393
- */
1394
- alt_mime: ("HTML" | "PDF" | "WPD" | "DOC" | "RTF" | "DOCX") | null;
1395
- /**
1396
- * Internal file type id of alternate document
1397
- */
1398
- alt_mime_id: (1 | 2 | 3 | 4 | 5 | 6) | null;
1399
- /**
1400
- * Raw MIME type of the alternate document, e.g. 'application/pdf'
1401
- */
507
+ /** Normalized file type of alternate document, e.g. 'PDF' */
508
+ alt_mime: string | null;
509
+ /** Internal file type id of alternate document */
510
+ alt_mime_id: number | null;
511
+ /** Raw MIME type of the alternate document, e.g. 'application/pdf' */
1402
512
  alt_mime_raw: string | null;
1403
- /**
1404
- * URL of the alternate document on state website
1405
- */
513
+ /** URL of the alternate document on state website */
1406
514
  alt_state_link: string | null;
1407
- /**
1408
- * Size in bytes of the decoded alternate BASE64 document (add 33% for base64)
1409
- */
515
+ /** Size in bytes of the decoded alternate BASE64 document (add 33% for base64) */
1410
516
  alt_supplement_size: number | null;
1411
- /**
1412
- * MD5 hash of the decoded alternate BASE64 document
1413
- */
517
+ /** MD5 hash of the decoded alternate BASE64 document */
1414
518
  alt_supplement_hash: string | null;
1415
- /**
1416
- * Internal bill id the supplement belongs to
1417
- */
519
+ /** Internal bill id the supplement belongs to */
520
+ bill_id?: number | null | undefined;
521
+ /** BASE64 encoded document */
522
+ doc?: string | null | undefined;
523
+ alt_doc?: string | null | undefined;
524
+ };
525
+ export type Event = {
526
+ /** Normalized event type */
527
+ type: string;
528
+ /** Internal event type id */
529
+ type_id: number;
530
+ /** Internal event type name */
531
+ type_raw: string;
532
+ /** Date of the event */
533
+ date: string;
534
+ /** Time of the event (if available) */
535
+ time: string | null;
536
+ /** Location of the event (if available) */
537
+ location: string | null;
538
+ /** Description of the event */
539
+ description: string;
540
+ };
541
+ export type BillBase = {
542
+ /** Internal bill id */
1418
543
  bill_id: number;
1419
- /**
1420
- * BASE64 encoded document
1421
- */
1422
- doc: string;
1423
- /**
1424
- * BASE64 encoded alternate document
1425
- */
1426
- alt_doc: string | null;
1427
- }
1428
- export interface RollCall {
1429
- /**
1430
- * Internal roll call id
1431
- */
544
+ /** Bill number, e.g. HB 1234 */
545
+ bill_number: string;
546
+ /** Official bill title */
547
+ title: string;
548
+ /** Official bill description */
549
+ description: string;
550
+ /** URL of bill on legiscan.com */
551
+ url: string;
552
+ /** Latest bill progress, e.g. 'Introduced' */
553
+ status: string;
554
+ /** Internal progress id */
555
+ status_id: number | null;
556
+ /** Date of last progress update (if available) */
557
+ status_date: string | null;
558
+ /** Hash of bill data, used for caching */
559
+ change_hash: string;
560
+ };
561
+ export type MasterList = {
562
+ bill_id: number;
563
+ bill_number: string;
564
+ title: string;
565
+ description: string;
566
+ url: string;
567
+ status: string;
568
+ status_id: number | null;
569
+ status_date: string | null;
570
+ change_hash: string;
571
+ last_action: string | null;
572
+ last_action_date: string | null;
573
+ }[];
574
+ export type Search = {
575
+ bill_number: string;
576
+ title: string;
577
+ url: string;
578
+ change_hash: string;
579
+ relevance: number;
580
+ state: string;
581
+ state_id: number;
582
+ bill_id: number;
583
+ text_url: string;
584
+ research_url: string;
585
+ last_action: string | null;
586
+ last_action_date: string | null;
587
+ }[];
588
+ export type BillVote = {
589
+ /** Internal roll call id */
1432
590
  roll_call_id: number;
1433
- /**
1434
- * Date of the vote
1435
- */
591
+ /** Date of the vote */
1436
592
  date: string;
1437
- /**
1438
- * Description of the vote
1439
- */
593
+ /** Description of the vote */
1440
594
  description: string;
1441
- /**
1442
- * Number of votes for the bill
1443
- */
595
+ /** Number of votes for the bill */
1444
596
  yea: number;
1445
- /**
1446
- * Number of votes against the bill
1447
- */
597
+ /** Number of votes against the bill */
1448
598
  nay: number;
1449
- /**
1450
- * Number of votes that abstained
1451
- */
599
+ /** Number of votes that abstained */
1452
600
  abstain: number;
1453
- /**
1454
- * Number of votes that were absent
1455
- */
601
+ /** Number of votes that were absent */
1456
602
  absent: number;
1457
- /**
1458
- * Total number of votes
1459
- */
603
+ /** Total number of votes */
1460
604
  total: number;
1461
- /**
1462
- * Flag for whether the vote passed
1463
- */
605
+ /** Flag for whether the vote passed */
1464
606
  passed: boolean;
1465
- /**
1466
- * Internal chamber id
1467
- */
607
+ /** Internal chamber id */
1468
608
  chamber_id: number;
1469
- /**
1470
- * Internal chamber name, e.g. 'S' or 'H'
1471
- */
609
+ /** Internal chamber name, e.g. 'S' or 'H' */
1472
610
  chamber_raw: string;
1473
- /**
1474
- * Internal bill id the vote belongs to
1475
- */
611
+ /** URL of the vote on legiscan.com */
612
+ url: string;
613
+ /** URL of the vote on state website */
614
+ state_link: string;
615
+ };
616
+ export type Sponsor = {
617
+ /** Internal person id */
618
+ people_id: number;
619
+ /** Hash of the person's details, used for caching */
620
+ person_hash: string;
621
+ /** Normalized party, e.g. 'Democrat' or 'Republican' */
622
+ party: string;
623
+ /** Internal party id */
624
+ party_id: number;
625
+ /** Internal party name */
626
+ party_raw: string;
627
+ /** Normalized state */
628
+ state: string;
629
+ /** Internal state id */
630
+ state_id: number;
631
+ /** Normalized role, e.g. 'Senator' or 'Representative' */
632
+ role: string;
633
+ /** Internal role id */
634
+ role_id: number;
635
+ /** Internal role name */
636
+ role_raw: string;
637
+ /** Person's full name */
638
+ name: string;
639
+ /** Person's first name */
640
+ first_name: string;
641
+ /** Person's middle name */
642
+ middle_name: string | null;
643
+ /** Person's last name */
644
+ last_name: string;
645
+ /** Person's suffix */
646
+ suffix: string | null;
647
+ /** Person's nickname */
648
+ nickname: string | null;
649
+ /** Person's district */
650
+ district: string;
651
+ /** FollowTheMoney ID of the person */
652
+ ftm_eid: number | null;
653
+ /** Votesmart ID of the person */
654
+ votesmart_id: number | null;
655
+ /** OpenSecrets ID of the person */
656
+ opensecrets_id: number | null;
657
+ /** KnowWho PID of the person */
658
+ knowwho_pid: number | null;
659
+ /** Ballotpedia ID of the person */
660
+ ballotpedia: string | null;
661
+ /** Bioguide ID of the person */
662
+ bioguide_id: string | null;
663
+ /** Flag for committee sponsorship */
664
+ committee_sponsor: boolean;
665
+ /** Internal committee id */
666
+ committee_id: number | null;
667
+ state_federal: unknown;
668
+ bio: unknown;
669
+ /** Normalized sponsor type */
670
+ sponsor_type: string;
671
+ /** Internal sponsor type id */
672
+ sponsor_type_id: number;
673
+ /** Order of sponsorship */
674
+ sponsor_order: number;
675
+ };
676
+ export type Bill = {
677
+ /** Internal bill id */
1476
678
  bill_id: number;
1477
- /**
1478
- * Individual votes for the roll call
1479
- */
1480
- votes: {
1481
- /**
1482
- * Internal person id
1483
- */
1484
- people_id: number;
1485
- /**
1486
- * Vote of the person
1487
- */
1488
- vote: "Yea" | "Nay" | "Abstain" | "Absent";
1489
- /**
1490
- * Internal vote id
1491
- */
1492
- vote_id: 1 | 2 | 3 | 4;
1493
- /**
1494
- * Internal vote name
1495
- */
1496
- vote_raw: string;
1497
- }[];
1498
- }
679
+ /** Bill number, e.g. HB 1234 */
680
+ bill_number: string;
681
+ /** Official bill title */
682
+ title: string;
683
+ /** Official bill description */
684
+ description: string;
685
+ /** URL of bill on legiscan.com */
686
+ url: string;
687
+ /** Latest bill progress, e.g. 'Introduced' */
688
+ status: string;
689
+ /** Internal progress id */
690
+ status_id: number | null;
691
+ /** Date of last progress update (if available) */
692
+ status_date: string | null;
693
+ /** Hash of bill data, used for caching */
694
+ change_hash: string;
695
+ /** Internal session id */
696
+ session_id: number;
697
+ /** Session object */
698
+ session: Session;
699
+ /** URL of bill on state website */
700
+ state_link: string;
701
+ /** Flag for whether bill is completed */
702
+ completed: boolean;
703
+ /** Major history of the bill (i.e. important items from history) */
704
+ progress: BillProgress[];
705
+ /** Normalized state */
706
+ state: string;
707
+ /** Internal state id */
708
+ state_id: number;
709
+ /** Internal state name */
710
+ state_raw: string;
711
+ /** Normalized bill type, e.g. 'JointResolution' */
712
+ bill_type: string;
713
+ /** Internal bill type id */
714
+ bill_type_id: number;
715
+ /** Internal bill type name, e.g. 'JR' */
716
+ bill_type_raw: string;
717
+ /** Internal body id (original) */
718
+ body_id: number;
719
+ /** Internal body name (original) */
720
+ body_raw: string;
721
+ /** Internal body id (current) */
722
+ current_body_id: number | null;
723
+ /** Internal body name (current) */
724
+ current_body_raw: string | null;
725
+ /** Internal committee id */
726
+ pending_committee_id: number;
727
+ /** List of committees if pending */
728
+ committee: Committee[];
729
+ /** History of committee referrals */
730
+ referrals: CommitteeReferral[];
731
+ /** Full history of the bill */
732
+ history: BillHistory[];
733
+ /** Sponsors of the bill */
734
+ sponsors: Sponsor[];
735
+ /** SASTs of the bill */
736
+ sasts: Sast[];
737
+ /** Subjects of the bill */
738
+ subjects: Subject[];
739
+ /** Documents from the bill */
740
+ texts: BillText[];
741
+ /** Votes for the bill */
742
+ votes: BillVote[];
743
+ /** Amendments to the bill */
744
+ amendments: Amendment[];
745
+ /** Supplements to the bill */
746
+ supplements: Supplement[];
747
+ /** Events related to the bill */
748
+ calendar: Event[];
749
+ };
750
+ export type RollCallVote = {
751
+ /** Internal person id */
752
+ people_id: number;
753
+ /** Vote of the person */
754
+ vote: string;
755
+ /** Internal vote id */
756
+ vote_id: number;
757
+ /** Internal vote name */
758
+ vote_raw: string;
759
+ };
760
+ export type RollCall = {
761
+ /** Internal roll call id */
762
+ roll_call_id: number;
763
+ /** Date of the vote */
764
+ date: string;
765
+ /** Description of the vote */
766
+ description: string;
767
+ /** Number of votes for the bill */
768
+ yea: number;
769
+ /** Number of votes against the bill */
770
+ nay: number;
771
+ /** Number of votes that abstained */
772
+ abstain: number;
773
+ /** Number of votes that were absent */
774
+ absent: number;
775
+ /** Total number of votes */
776
+ total: number;
777
+ /** Flag for whether the vote passed */
778
+ passed: boolean;
779
+ /** Internal chamber id */
780
+ chamber_id: number;
781
+ /** Internal chamber name, e.g. 'S' or 'H' */
782
+ chamber_raw: string;
783
+ /** Internal bill id the vote belongs to */
784
+ bill_id: number;
785
+ /** Individual votes for the roll call */
786
+ votes: RollCallVote[];
787
+ };
1499
788
  export type SessionPeople = {
1500
- /**
1501
- * Internal person id
1502
- */
1503
789
  people_id: number;
1504
- /**
1505
- * Hash of the person's details, used for caching
1506
- */
1507
790
  person_hash: string;
1508
- /**
1509
- * Normalized party, e.g. 'Democrat' or 'Republican'
1510
- */
1511
- party: "Democrat" | "Republican" | "Independent" | "GreenParty" | "Libertarian" | "Nonpartisan";
1512
- /**
1513
- * Internal party id
1514
- */
1515
- party_id: 1 | 2 | 3 | 4 | 5 | 6;
1516
- /**
1517
- * Internal party name
1518
- */
791
+ party: string;
792
+ party_id: number;
1519
793
  party_raw: string;
1520
- /**
1521
- * Normalized state
1522
- */
1523
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
1524
- /**
1525
- * Internal state id
1526
- */
1527
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
1528
- /**
1529
- * Normalized role, e.g. 'Senator' or 'Representative'
1530
- */
1531
- role: "Representative" | "Senator" | "JointConference";
1532
- /**
1533
- * Internal role id
1534
- */
1535
- role_id: 1 | 2 | 3;
1536
- /**
1537
- * Internal role name
1538
- */
794
+ state: string;
795
+ state_id: number;
796
+ role: string;
797
+ role_id: number;
1539
798
  role_raw: string;
1540
- /**
1541
- * Person's full name
1542
- */
1543
799
  name: string;
1544
- /**
1545
- * Person's first name
1546
- */
1547
800
  first_name: string;
1548
- /**
1549
- * Person's middle name
1550
- */
1551
801
  middle_name: string | null;
1552
- /**
1553
- * Person's last name
1554
- */
1555
802
  last_name: string;
1556
- /**
1557
- * Person's suffix
1558
- */
1559
803
  suffix: string | null;
1560
- /**
1561
- * Person's nickname
1562
- */
1563
804
  nickname: string | null;
1564
- /**
1565
- * Person's district
1566
- */
1567
805
  district: string;
1568
- /**
1569
- * FollowTheMoney ID of the person
1570
- */
1571
806
  ftm_eid: number | null;
1572
- /**
1573
- * Votesmart ID of the person
1574
- */
1575
807
  votesmart_id: number | null;
1576
- /**
1577
- * OpenSecrets ID of the person
1578
- */
1579
808
  opensecrets_id: number | null;
1580
- /**
1581
- * KnowWho PID of the person
1582
- */
1583
809
  knowwho_pid: number | null;
1584
- /**
1585
- * Ballotpedia ID of the person
1586
- */
1587
810
  ballotpedia: string | null;
1588
- /**
1589
- * Bioguide ID of the person
1590
- */
1591
811
  bioguide_id: string | null;
1592
- /**
1593
- * Flag for committee sponsorship
1594
- */
1595
812
  committee_sponsor: boolean;
1596
- /**
1597
- * Internal committee id
1598
- */
1599
813
  committee_id: number | null;
1600
814
  state_federal: unknown;
1601
815
  bio: unknown;
1602
816
  }[];
1603
817
  export type SponsoredList = {
1604
- /**
1605
- * Internal bill id
1606
- */
1607
- bill_id: number;
1608
- /**
1609
- * Bill number, e.g. HB 1234
1610
- */
1611
- bill_number: string;
1612
- session: {
1613
- /**
1614
- * Internal session id
1615
- */
1616
- session_id: number;
1617
- /**
1618
- * State specific session name
1619
- */
1620
- session_name: string;
1621
- /**
1622
- * Normalized session title with year(s) and Regular/Nth Special Session
1623
- */
1624
- session_title: string;
1625
- session_tag: unknown;
1626
- /**
1627
- * Normalized state
1628
- */
1629
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
1630
- /**
1631
- * Internal state id
1632
- */
1633
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
1634
- /**
1635
- * Starting year of session
1636
- */
1637
- year_start: number;
1638
- /**
1639
- * Ending year of session
1640
- */
1641
- year_end: number;
1642
- /**
1643
- * Flag for being a special session
1644
- */
1645
- special: boolean;
1646
- /**
1647
- * Flag for session being in prefile
1648
- */
1649
- prefile: boolean;
1650
- /**
1651
- * Flag for session being archived
1652
- */
1653
- prior: boolean;
1654
- /**
1655
- * Flag for session being adjourned sine die
1656
- */
1657
- sine_die: boolean;
1658
- };
1659
- }[];
1660
- export type Search = {
1661
- /**
1662
- * Internal bill id
1663
- */
1664
818
  bill_id: number;
1665
- /**
1666
- * Bill number, e.g. HB 1234
1667
- */
1668
819
  bill_number: string;
1669
- /**
1670
- * Official bill title
1671
- */
1672
- title: string;
1673
- /**
1674
- * URL of bill on legiscan.com
1675
- */
1676
- url: string;
1677
- /**
1678
- * Hash of bill data, used for caching
1679
- */
1680
- change_hash: string;
1681
- /**
1682
- * Description of the bill's last action (if available)
1683
- */
1684
- last_action: string | null;
1685
- /**
1686
- * Date of the bill's last action (if available)
1687
- */
1688
- last_action_date: string | null;
1689
- /**
1690
- * Relevance score of the search result
1691
- */
1692
- relevance: number;
1693
- /**
1694
- * Normalized state
1695
- */
1696
- state: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "US";
1697
- /**
1698
- * Internal state id
1699
- */
1700
- state_id: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52;
1701
- /**
1702
- * URL of the bill text on legiscan.com
1703
- */
1704
- text_url: string;
1705
- /**
1706
- * URL of the bill research page on legiscan.com
1707
- */
1708
- research_url: string;
820
+ session: Session;
1709
821
  }[];
1710
822
  /**
1711
823
  * Converts a PHP object into a JS array using {@link numericalEntries}
@@ -1832,4 +944,560 @@ export declare class LegiscanClient {
1832
944
  state?: Needle;
1833
945
  year?: number;
1834
946
  }): AsyncGenerator<Search[number]>;
1835
- }
947
+ }
948
+ export declare const SessionSchema: z.ZodObject<{
949
+ session_id: z.ZodNumber;
950
+ session_name: z.ZodString;
951
+ session_title: z.ZodString;
952
+ session_tag: z.ZodUnknown;
953
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
954
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
955
+ year_start: z.ZodNumber;
956
+ year_end: z.ZodNumber;
957
+ special: z.ZodBoolean;
958
+ prefile: z.ZodBoolean;
959
+ prior: z.ZodBoolean;
960
+ sine_die: z.ZodBoolean;
961
+ }, z.core.$strip>;
962
+ export declare const SessionListSchema: z.ZodArray<z.ZodObject<{
963
+ session_id: z.ZodNumber;
964
+ session_name: z.ZodString;
965
+ session_title: z.ZodString;
966
+ session_tag: z.ZodUnknown;
967
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
968
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
969
+ year_start: z.ZodNumber;
970
+ year_end: z.ZodNumber;
971
+ special: z.ZodBoolean;
972
+ prefile: z.ZodBoolean;
973
+ prior: z.ZodBoolean;
974
+ sine_die: z.ZodBoolean;
975
+ session_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
976
+ dataset_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
977
+ }, z.core.$strip>>;
978
+ export declare const BillTextSchema: z.ZodObject<{
979
+ doc_id: z.ZodNumber;
980
+ bill_id: z.ZodOptional<z.ZodNumber>;
981
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
982
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
983
+ type_raw: z.ZodString;
984
+ date: z.ZodISODate;
985
+ url: z.ZodURL;
986
+ state_link: z.ZodURL;
987
+ mime: z.ZodUnion<z.ZodLiteral<string>[]>;
988
+ mime_id: z.ZodUnion<z.ZodLiteral<number>[]>;
989
+ mime_raw: z.ZodString;
990
+ text_size: z.ZodNumber;
991
+ text_hash: z.ZodCustomStringFormat<"md5_hex">;
992
+ alt_doc_id: z.ZodNullable<z.ZodNumber>;
993
+ alt_mime: z.ZodNullable<z.ZodUnion<z.ZodLiteral<string>[]>>;
994
+ alt_mime_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
995
+ alt_mime_raw: z.ZodNullable<z.ZodString>;
996
+ alt_state_link: z.ZodNullable<z.ZodURL>;
997
+ alt_text_size: z.ZodNullable<z.ZodNumber>;
998
+ alt_text_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
999
+ doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1000
+ alt_doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1001
+ }, z.core.$strip>;
1002
+ export declare const CommitteeSchema: z.ZodObject<{
1003
+ committee_id: z.ZodNumber;
1004
+ chamber_raw: z.ZodString;
1005
+ chamber_id: z.ZodNumber;
1006
+ name: z.ZodString;
1007
+ }, z.core.$strip>;
1008
+ export declare const CommitteeReferralSchema: z.ZodIntersection<z.ZodObject<{
1009
+ committee_id: z.ZodNumber;
1010
+ chamber_raw: z.ZodString;
1011
+ chamber_id: z.ZodNumber;
1012
+ name: z.ZodString;
1013
+ }, z.core.$strip>, z.ZodObject<{
1014
+ date: z.ZodISODate;
1015
+ }, z.core.$strip>>;
1016
+ export declare const BillProgressSchema: z.ZodObject<{
1017
+ date: z.ZodISODate;
1018
+ event: z.ZodUnion<z.ZodLiteral<string>[]>;
1019
+ event_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1020
+ }, z.core.$strip>;
1021
+ export declare const BillHistorySchema: z.ZodObject<{
1022
+ date: z.ZodISODate;
1023
+ action: z.ZodString;
1024
+ chamber_raw: z.ZodNullable<z.ZodString>;
1025
+ chamber_id: z.ZodNullable<z.ZodNumber>;
1026
+ importance: z.ZodBoolean;
1027
+ }, z.core.$strip>;
1028
+ export declare const PersonSchema: z.ZodObject<{
1029
+ people_id: z.ZodNumber;
1030
+ person_hash: z.ZodString;
1031
+ party: z.ZodUnion<z.ZodLiteral<string>[]>;
1032
+ party_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1033
+ party_raw: z.ZodString;
1034
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1035
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1036
+ role: z.ZodUnion<z.ZodLiteral<string>[]>;
1037
+ role_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1038
+ role_raw: z.ZodString;
1039
+ name: z.ZodString;
1040
+ first_name: z.ZodString;
1041
+ middle_name: z.ZodNullable<z.ZodString>;
1042
+ last_name: z.ZodString;
1043
+ suffix: z.ZodNullable<z.ZodString>;
1044
+ nickname: z.ZodNullable<z.ZodString>;
1045
+ district: z.ZodString;
1046
+ ftm_eid: z.ZodNullable<z.ZodNumber>;
1047
+ votesmart_id: z.ZodNullable<z.ZodNumber>;
1048
+ opensecrets_id: z.ZodNullable<z.ZodNumber>;
1049
+ knowwho_pid: z.ZodNullable<z.ZodNumber>;
1050
+ ballotpedia: z.ZodNullable<z.ZodString>;
1051
+ bioguide_id: z.ZodNullable<z.ZodString>;
1052
+ committee_sponsor: z.ZodBoolean;
1053
+ committee_id: z.ZodNullable<z.ZodNumber>;
1054
+ state_federal: z.ZodUnknown;
1055
+ bio: z.ZodUnknown;
1056
+ }, z.core.$strip>;
1057
+ export declare const SastSchema: z.ZodObject<{
1058
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
1059
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1060
+ type_raw: z.ZodString;
1061
+ sast_bill_number: z.ZodString;
1062
+ sast_bill_id: z.ZodNumber;
1063
+ }, z.core.$strip>;
1064
+ export declare const SubjectSchema: z.ZodObject<{
1065
+ subject_id: z.ZodNumber;
1066
+ subject_name: z.ZodString;
1067
+ }, z.core.$strip>;
1068
+ export declare const VoteSchema: z.ZodObject<{
1069
+ roll_call_id: z.ZodNumber;
1070
+ date: z.ZodISODate;
1071
+ description: z.ZodString;
1072
+ yea: z.ZodNumber;
1073
+ nay: z.ZodNumber;
1074
+ abstain: z.ZodNumber;
1075
+ absent: z.ZodNumber;
1076
+ total: z.ZodNumber;
1077
+ passed: z.ZodBoolean;
1078
+ chamber_id: z.ZodNumber;
1079
+ chamber_raw: z.ZodString;
1080
+ }, z.core.$strip>;
1081
+ export declare const AmendmentSchema: z.ZodObject<{
1082
+ amendment_id: z.ZodNumber;
1083
+ adopted: z.ZodBoolean;
1084
+ chamber_id: z.ZodNumber;
1085
+ chamber_raw: z.ZodString;
1086
+ date: z.ZodNullable<z.ZodISODate>;
1087
+ title: z.ZodString;
1088
+ description: z.ZodString;
1089
+ mime: z.ZodUnion<z.ZodLiteral<string>[]>;
1090
+ mime_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1091
+ mime_raw: z.ZodString;
1092
+ url: z.ZodURL;
1093
+ state_link: z.ZodURL;
1094
+ amendment_size: z.ZodNumber;
1095
+ amendment_hash: z.ZodCustomStringFormat<"md5_hex">;
1096
+ alt_amendment: z.ZodNullable<z.ZodNumber>;
1097
+ alt_mime: z.ZodNullable<z.ZodUnion<z.ZodLiteral<string>[]>>;
1098
+ alt_mime_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1099
+ alt_mime_raw: z.ZodNullable<z.ZodString>;
1100
+ alt_state_link: z.ZodNullable<z.ZodURL>;
1101
+ alt_amendment_size: z.ZodNullable<z.ZodNumber>;
1102
+ alt_amendment_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
1103
+ bill_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1104
+ doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1105
+ alt_doc: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodBase64>>>;
1106
+ }, z.core.$strip>;
1107
+ export declare const SupplementSchema: z.ZodObject<{
1108
+ supplement_id: z.ZodNumber;
1109
+ date: z.ZodNullable<z.ZodISODate>;
1110
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
1111
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1112
+ type_raw: z.ZodString;
1113
+ mime: z.ZodUnion<z.ZodLiteral<string>[]>;
1114
+ mime_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1115
+ mime_raw: z.ZodString;
1116
+ url: z.ZodURL;
1117
+ state_link: z.ZodURL;
1118
+ supplement_size: z.ZodNumber;
1119
+ supplement_hash: z.ZodCustomStringFormat<"md5_hex">;
1120
+ alt_supplement: z.ZodNullable<z.ZodNumber>;
1121
+ alt_mime: z.ZodNullable<z.ZodUnion<z.ZodLiteral<string>[]>>;
1122
+ alt_mime_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1123
+ alt_mime_raw: z.ZodNullable<z.ZodString>;
1124
+ alt_state_link: z.ZodNullable<z.ZodURL>;
1125
+ alt_supplement_size: z.ZodNullable<z.ZodNumber>;
1126
+ alt_supplement_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
1127
+ bill_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1128
+ doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1129
+ alt_doc: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodBase64>>>;
1130
+ }, z.core.$strip>;
1131
+ export declare const EventSchema: z.ZodObject<{
1132
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
1133
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1134
+ type_raw: z.ZodString;
1135
+ date: z.ZodISODate;
1136
+ time: z.ZodNullable<z.ZodISOTime>;
1137
+ location: z.ZodNullable<z.ZodString>;
1138
+ description: z.ZodString;
1139
+ }, z.core.$strip>;
1140
+ export declare const BillBaseSchema: z.ZodObject<{
1141
+ bill_id: z.ZodNumber;
1142
+ bill_number: z.ZodString;
1143
+ title: z.ZodString;
1144
+ description: z.ZodString;
1145
+ url: z.ZodURL;
1146
+ status: z.ZodUnion<z.ZodLiteral<string>[]>;
1147
+ status_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1148
+ status_date: z.ZodNullable<z.ZodISODate>;
1149
+ change_hash: z.ZodCustomStringFormat<"md5_hex">;
1150
+ }, z.core.$strip>;
1151
+ export declare const MasterListSchema: z.ZodArray<z.ZodObject<{
1152
+ bill_id: z.ZodNumber;
1153
+ bill_number: z.ZodString;
1154
+ title: z.ZodString;
1155
+ description: z.ZodString;
1156
+ url: z.ZodURL;
1157
+ status: z.ZodUnion<z.ZodLiteral<string>[]>;
1158
+ status_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1159
+ status_date: z.ZodNullable<z.ZodISODate>;
1160
+ change_hash: z.ZodCustomStringFormat<"md5_hex">;
1161
+ last_action: z.ZodNullable<z.ZodString>;
1162
+ last_action_date: z.ZodNullable<z.ZodISODate>;
1163
+ }, z.core.$strip>>;
1164
+ export declare const SearchSchema: z.ZodArray<z.ZodObject<{
1165
+ bill_number: z.ZodString;
1166
+ title: z.ZodString;
1167
+ url: z.ZodURL;
1168
+ change_hash: z.ZodCustomStringFormat<"md5_hex">;
1169
+ relevance: z.ZodNumber;
1170
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1171
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1172
+ bill_id: z.ZodNumber;
1173
+ text_url: z.ZodURL;
1174
+ research_url: z.ZodURL;
1175
+ last_action: z.ZodNullable<z.ZodString>;
1176
+ last_action_date: z.ZodNullable<z.ZodISODate>;
1177
+ }, z.core.$strip>>;
1178
+ export declare const BillVoteSchema: z.ZodObject<{
1179
+ roll_call_id: z.ZodNumber;
1180
+ date: z.ZodISODate;
1181
+ description: z.ZodString;
1182
+ yea: z.ZodNumber;
1183
+ nay: z.ZodNumber;
1184
+ abstain: z.ZodNumber;
1185
+ absent: z.ZodNumber;
1186
+ total: z.ZodNumber;
1187
+ passed: z.ZodBoolean;
1188
+ chamber_id: z.ZodNumber;
1189
+ chamber_raw: z.ZodString;
1190
+ url: z.ZodURL;
1191
+ state_link: z.ZodURL;
1192
+ }, z.core.$strip>;
1193
+ export declare const SponsorSchema: z.ZodObject<{
1194
+ people_id: z.ZodNumber;
1195
+ person_hash: z.ZodString;
1196
+ party: z.ZodUnion<z.ZodLiteral<string>[]>;
1197
+ party_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1198
+ party_raw: z.ZodString;
1199
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1200
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1201
+ role: z.ZodUnion<z.ZodLiteral<string>[]>;
1202
+ role_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1203
+ role_raw: z.ZodString;
1204
+ name: z.ZodString;
1205
+ first_name: z.ZodString;
1206
+ middle_name: z.ZodNullable<z.ZodString>;
1207
+ last_name: z.ZodString;
1208
+ suffix: z.ZodNullable<z.ZodString>;
1209
+ nickname: z.ZodNullable<z.ZodString>;
1210
+ district: z.ZodString;
1211
+ ftm_eid: z.ZodNullable<z.ZodNumber>;
1212
+ votesmart_id: z.ZodNullable<z.ZodNumber>;
1213
+ opensecrets_id: z.ZodNullable<z.ZodNumber>;
1214
+ knowwho_pid: z.ZodNullable<z.ZodNumber>;
1215
+ ballotpedia: z.ZodNullable<z.ZodString>;
1216
+ bioguide_id: z.ZodNullable<z.ZodString>;
1217
+ committee_sponsor: z.ZodBoolean;
1218
+ committee_id: z.ZodNullable<z.ZodNumber>;
1219
+ state_federal: z.ZodUnknown;
1220
+ bio: z.ZodUnknown;
1221
+ sponsor_type: z.ZodUnion<z.ZodLiteral<string>[]>;
1222
+ sponsor_type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1223
+ sponsor_order: z.ZodNumber;
1224
+ }, z.core.$strip>;
1225
+ export declare const BillSchema: z.ZodObject<{
1226
+ bill_id: z.ZodNumber;
1227
+ bill_number: z.ZodString;
1228
+ title: z.ZodString;
1229
+ description: z.ZodString;
1230
+ url: z.ZodURL;
1231
+ status: z.ZodUnion<z.ZodLiteral<string>[]>;
1232
+ status_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1233
+ status_date: z.ZodNullable<z.ZodISODate>;
1234
+ change_hash: z.ZodCustomStringFormat<"md5_hex">;
1235
+ session_id: z.ZodNumber;
1236
+ session: z.ZodObject<{
1237
+ session_id: z.ZodNumber;
1238
+ session_name: z.ZodString;
1239
+ session_title: z.ZodString;
1240
+ session_tag: z.ZodUnknown;
1241
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1242
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1243
+ year_start: z.ZodNumber;
1244
+ year_end: z.ZodNumber;
1245
+ special: z.ZodBoolean;
1246
+ prefile: z.ZodBoolean;
1247
+ prior: z.ZodBoolean;
1248
+ sine_die: z.ZodBoolean;
1249
+ }, z.core.$strip>;
1250
+ state_link: z.ZodURL;
1251
+ completed: z.ZodBoolean;
1252
+ progress: z.ZodArray<z.ZodObject<{
1253
+ date: z.ZodISODate;
1254
+ event: z.ZodUnion<z.ZodLiteral<string>[]>;
1255
+ event_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1256
+ }, z.core.$strip>>;
1257
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1258
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1259
+ state_raw: z.ZodString;
1260
+ bill_type: z.ZodUnion<z.ZodLiteral<string>[]>;
1261
+ bill_type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1262
+ bill_type_raw: z.ZodString;
1263
+ body_id: z.ZodNumber;
1264
+ body_raw: z.ZodString;
1265
+ current_body_id: z.ZodNullable<z.ZodNumber>;
1266
+ current_body_raw: z.ZodNullable<z.ZodString>;
1267
+ pending_committee_id: z.ZodNumber;
1268
+ committee: z.ZodArray<z.ZodObject<{
1269
+ committee_id: z.ZodNumber;
1270
+ chamber_raw: z.ZodString;
1271
+ chamber_id: z.ZodNumber;
1272
+ name: z.ZodString;
1273
+ }, z.core.$strip>>;
1274
+ referrals: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1275
+ committee_id: z.ZodNumber;
1276
+ chamber_raw: z.ZodString;
1277
+ chamber_id: z.ZodNumber;
1278
+ name: z.ZodString;
1279
+ }, z.core.$strip>, z.ZodObject<{
1280
+ date: z.ZodISODate;
1281
+ }, z.core.$strip>>>;
1282
+ history: z.ZodArray<z.ZodObject<{
1283
+ date: z.ZodISODate;
1284
+ action: z.ZodString;
1285
+ chamber_raw: z.ZodNullable<z.ZodString>;
1286
+ chamber_id: z.ZodNullable<z.ZodNumber>;
1287
+ importance: z.ZodBoolean;
1288
+ }, z.core.$strip>>;
1289
+ sponsors: z.ZodArray<z.ZodObject<{
1290
+ people_id: z.ZodNumber;
1291
+ person_hash: z.ZodString;
1292
+ party: z.ZodUnion<z.ZodLiteral<string>[]>;
1293
+ party_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1294
+ party_raw: z.ZodString;
1295
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1296
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1297
+ role: z.ZodUnion<z.ZodLiteral<string>[]>;
1298
+ role_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1299
+ role_raw: z.ZodString;
1300
+ name: z.ZodString;
1301
+ first_name: z.ZodString;
1302
+ middle_name: z.ZodNullable<z.ZodString>;
1303
+ last_name: z.ZodString;
1304
+ suffix: z.ZodNullable<z.ZodString>;
1305
+ nickname: z.ZodNullable<z.ZodString>;
1306
+ district: z.ZodString;
1307
+ ftm_eid: z.ZodNullable<z.ZodNumber>;
1308
+ votesmart_id: z.ZodNullable<z.ZodNumber>;
1309
+ opensecrets_id: z.ZodNullable<z.ZodNumber>;
1310
+ knowwho_pid: z.ZodNullable<z.ZodNumber>;
1311
+ ballotpedia: z.ZodNullable<z.ZodString>;
1312
+ bioguide_id: z.ZodNullable<z.ZodString>;
1313
+ committee_sponsor: z.ZodBoolean;
1314
+ committee_id: z.ZodNullable<z.ZodNumber>;
1315
+ state_federal: z.ZodUnknown;
1316
+ bio: z.ZodUnknown;
1317
+ sponsor_type: z.ZodUnion<z.ZodLiteral<string>[]>;
1318
+ sponsor_type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1319
+ sponsor_order: z.ZodNumber;
1320
+ }, z.core.$strip>>;
1321
+ sasts: z.ZodArray<z.ZodObject<{
1322
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
1323
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1324
+ type_raw: z.ZodString;
1325
+ sast_bill_number: z.ZodString;
1326
+ sast_bill_id: z.ZodNumber;
1327
+ }, z.core.$strip>>;
1328
+ subjects: z.ZodArray<z.ZodObject<{
1329
+ subject_id: z.ZodNumber;
1330
+ subject_name: z.ZodString;
1331
+ }, z.core.$strip>>;
1332
+ texts: z.ZodArray<z.ZodObject<{
1333
+ doc_id: z.ZodNumber;
1334
+ bill_id: z.ZodOptional<z.ZodNumber>;
1335
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
1336
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1337
+ type_raw: z.ZodString;
1338
+ date: z.ZodISODate;
1339
+ url: z.ZodURL;
1340
+ state_link: z.ZodURL;
1341
+ mime: z.ZodUnion<z.ZodLiteral<string>[]>;
1342
+ mime_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1343
+ mime_raw: z.ZodString;
1344
+ text_size: z.ZodNumber;
1345
+ text_hash: z.ZodCustomStringFormat<"md5_hex">;
1346
+ alt_doc_id: z.ZodNullable<z.ZodNumber>;
1347
+ alt_mime: z.ZodNullable<z.ZodUnion<z.ZodLiteral<string>[]>>;
1348
+ alt_mime_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1349
+ alt_mime_raw: z.ZodNullable<z.ZodString>;
1350
+ alt_state_link: z.ZodNullable<z.ZodURL>;
1351
+ alt_text_size: z.ZodNullable<z.ZodNumber>;
1352
+ alt_text_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
1353
+ doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1354
+ alt_doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1355
+ }, z.core.$strip>>;
1356
+ votes: z.ZodArray<z.ZodObject<{
1357
+ roll_call_id: z.ZodNumber;
1358
+ date: z.ZodISODate;
1359
+ description: z.ZodString;
1360
+ yea: z.ZodNumber;
1361
+ nay: z.ZodNumber;
1362
+ abstain: z.ZodNumber;
1363
+ absent: z.ZodNumber;
1364
+ total: z.ZodNumber;
1365
+ passed: z.ZodBoolean;
1366
+ chamber_id: z.ZodNumber;
1367
+ chamber_raw: z.ZodString;
1368
+ url: z.ZodURL;
1369
+ state_link: z.ZodURL;
1370
+ }, z.core.$strip>>;
1371
+ amendments: z.ZodArray<z.ZodObject<{
1372
+ amendment_id: z.ZodNumber;
1373
+ adopted: z.ZodBoolean;
1374
+ chamber_id: z.ZodNumber;
1375
+ chamber_raw: z.ZodString;
1376
+ date: z.ZodNullable<z.ZodISODate>;
1377
+ title: z.ZodString;
1378
+ description: z.ZodString;
1379
+ mime: z.ZodUnion<z.ZodLiteral<string>[]>;
1380
+ mime_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1381
+ mime_raw: z.ZodString;
1382
+ url: z.ZodURL;
1383
+ state_link: z.ZodURL;
1384
+ amendment_size: z.ZodNumber;
1385
+ amendment_hash: z.ZodCustomStringFormat<"md5_hex">;
1386
+ alt_amendment: z.ZodNullable<z.ZodNumber>;
1387
+ alt_mime: z.ZodNullable<z.ZodUnion<z.ZodLiteral<string>[]>>;
1388
+ alt_mime_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1389
+ alt_mime_raw: z.ZodNullable<z.ZodString>;
1390
+ alt_state_link: z.ZodNullable<z.ZodURL>;
1391
+ alt_amendment_size: z.ZodNullable<z.ZodNumber>;
1392
+ alt_amendment_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
1393
+ bill_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1394
+ doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1395
+ alt_doc: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodBase64>>>;
1396
+ }, z.core.$strip>>;
1397
+ supplements: z.ZodArray<z.ZodObject<{
1398
+ supplement_id: z.ZodNumber;
1399
+ date: z.ZodNullable<z.ZodISODate>;
1400
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
1401
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1402
+ type_raw: z.ZodString;
1403
+ mime: z.ZodUnion<z.ZodLiteral<string>[]>;
1404
+ mime_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1405
+ mime_raw: z.ZodString;
1406
+ url: z.ZodURL;
1407
+ state_link: z.ZodURL;
1408
+ supplement_size: z.ZodNumber;
1409
+ supplement_hash: z.ZodCustomStringFormat<"md5_hex">;
1410
+ alt_supplement: z.ZodNullable<z.ZodNumber>;
1411
+ alt_mime: z.ZodNullable<z.ZodUnion<z.ZodLiteral<string>[]>>;
1412
+ alt_mime_id: z.ZodNullable<z.ZodUnion<z.ZodLiteral<number>[]>>;
1413
+ alt_mime_raw: z.ZodNullable<z.ZodString>;
1414
+ alt_state_link: z.ZodNullable<z.ZodURL>;
1415
+ alt_supplement_size: z.ZodNullable<z.ZodNumber>;
1416
+ alt_supplement_hash: z.ZodNullable<z.ZodCustomStringFormat<"md5_hex">>;
1417
+ bill_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1418
+ doc: z.ZodOptional<z.ZodNullable<z.ZodBase64>>;
1419
+ alt_doc: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodBase64>>>;
1420
+ }, z.core.$strip>>;
1421
+ calendar: z.ZodArray<z.ZodObject<{
1422
+ type: z.ZodUnion<z.ZodLiteral<string>[]>;
1423
+ type_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1424
+ type_raw: z.ZodString;
1425
+ date: z.ZodISODate;
1426
+ time: z.ZodNullable<z.ZodISOTime>;
1427
+ location: z.ZodNullable<z.ZodString>;
1428
+ description: z.ZodString;
1429
+ }, z.core.$strip>>;
1430
+ }, z.core.$strip>;
1431
+ export declare const RollCallVoteSchema: z.ZodObject<{
1432
+ people_id: z.ZodNumber;
1433
+ vote: z.ZodUnion<z.ZodLiteral<string>[]>;
1434
+ vote_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1435
+ vote_raw: z.ZodString;
1436
+ }, z.core.$strip>;
1437
+ export declare const RollCallSchema: z.ZodObject<{
1438
+ roll_call_id: z.ZodNumber;
1439
+ date: z.ZodISODate;
1440
+ description: z.ZodString;
1441
+ yea: z.ZodNumber;
1442
+ nay: z.ZodNumber;
1443
+ abstain: z.ZodNumber;
1444
+ absent: z.ZodNumber;
1445
+ total: z.ZodNumber;
1446
+ passed: z.ZodBoolean;
1447
+ chamber_id: z.ZodNumber;
1448
+ chamber_raw: z.ZodString;
1449
+ bill_id: z.ZodNumber;
1450
+ votes: z.ZodArray<z.ZodObject<{
1451
+ people_id: z.ZodNumber;
1452
+ vote: z.ZodUnion<z.ZodLiteral<string>[]>;
1453
+ vote_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1454
+ vote_raw: z.ZodString;
1455
+ }, z.core.$strip>>;
1456
+ }, z.core.$strip>;
1457
+ export declare const SessionPeopleSchema: z.ZodArray<z.ZodObject<{
1458
+ people_id: z.ZodNumber;
1459
+ person_hash: z.ZodString;
1460
+ party: z.ZodUnion<z.ZodLiteral<string>[]>;
1461
+ party_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1462
+ party_raw: z.ZodString;
1463
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1464
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1465
+ role: z.ZodUnion<z.ZodLiteral<string>[]>;
1466
+ role_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1467
+ role_raw: z.ZodString;
1468
+ name: z.ZodString;
1469
+ first_name: z.ZodString;
1470
+ middle_name: z.ZodNullable<z.ZodString>;
1471
+ last_name: z.ZodString;
1472
+ suffix: z.ZodNullable<z.ZodString>;
1473
+ nickname: z.ZodNullable<z.ZodString>;
1474
+ district: z.ZodString;
1475
+ ftm_eid: z.ZodNullable<z.ZodNumber>;
1476
+ votesmart_id: z.ZodNullable<z.ZodNumber>;
1477
+ opensecrets_id: z.ZodNullable<z.ZodNumber>;
1478
+ knowwho_pid: z.ZodNullable<z.ZodNumber>;
1479
+ ballotpedia: z.ZodNullable<z.ZodString>;
1480
+ bioguide_id: z.ZodNullable<z.ZodString>;
1481
+ committee_sponsor: z.ZodBoolean;
1482
+ committee_id: z.ZodNullable<z.ZodNumber>;
1483
+ state_federal: z.ZodUnknown;
1484
+ bio: z.ZodUnknown;
1485
+ }, z.core.$strip>>;
1486
+ export declare const SponsoredListSchema: z.ZodArray<z.ZodObject<{
1487
+ bill_id: z.ZodNumber;
1488
+ bill_number: z.ZodString;
1489
+ session: z.ZodObject<{
1490
+ session_id: z.ZodNumber;
1491
+ session_name: z.ZodString;
1492
+ session_title: z.ZodString;
1493
+ session_tag: z.ZodUnknown;
1494
+ state: z.ZodUnion<z.ZodLiteral<string>[]>;
1495
+ state_id: z.ZodUnion<z.ZodLiteral<number>[]>;
1496
+ year_start: z.ZodNumber;
1497
+ year_end: z.ZodNumber;
1498
+ special: z.ZodBoolean;
1499
+ prefile: z.ZodBoolean;
1500
+ prior: z.ZodBoolean;
1501
+ sine_die: z.ZodBoolean;
1502
+ }, z.core.$strip>;
1503
+ }, z.core.$strip>>;