@wakata-dev/api-client 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -388,6 +388,91 @@ type CreateConfigItemDto = {
388
388
  */
389
389
  description?: string;
390
390
  };
391
+ type CreateCustomerDto = {
392
+ /**
393
+ * Customer name
394
+ */
395
+ name: string;
396
+ /**
397
+ * ABN
398
+ */
399
+ abn?: string;
400
+ /**
401
+ * Street address
402
+ */
403
+ address?: string;
404
+ city?: string;
405
+ state?: string;
406
+ postcode?: string;
407
+ country?: string;
408
+ phone?: string;
409
+ email?: string;
410
+ website?: string;
411
+ /**
412
+ * Default payment terms in days
413
+ */
414
+ default_payment_terms?: number;
415
+ /**
416
+ * Free-text notes
417
+ */
418
+ notes?: string;
419
+ /**
420
+ * Status
421
+ */
422
+ status?: string;
423
+ };
424
+ type CreateDocumentDto = {
425
+ /**
426
+ * Parent entity publicId (UUID) the document belongs to. Required for all types except company documents (which are scoped to your company).
427
+ */
428
+ parent_id?: string;
429
+ /**
430
+ * Document type id (config_items.id, numeric string)
431
+ */
432
+ document_type_id: string;
433
+ /**
434
+ * Document name
435
+ */
436
+ name: string;
437
+ /**
438
+ * External identifier / reference number
439
+ */
440
+ identifier?: string;
441
+ /**
442
+ * Issued-on date (ISO)
443
+ */
444
+ issued_on?: string;
445
+ /**
446
+ * Expiry date (ISO)
447
+ */
448
+ expires_on?: string;
449
+ /**
450
+ * S3 key of the uploaded file (from POST /document/upload-url). Omit for a metadata-only document.
451
+ */
452
+ attachment_file?: string;
453
+ };
454
+ type CreateGroupDto = {
455
+ /**
456
+ * Group name
457
+ */
458
+ name: string;
459
+ /**
460
+ * Site publicId (UUID) to scope the group to, or omit for company-wide
461
+ */
462
+ site_id?: string;
463
+ /**
464
+ * Auto-include all users
465
+ */
466
+ include_all_users?: boolean;
467
+ /**
468
+ * Auto-include all assets
469
+ */
470
+ include_all_assets?: boolean;
471
+ /**
472
+ * Auto-include all checklists
473
+ */
474
+ include_all_checklists?: boolean;
475
+ };
391
476
  type CreateSiteDto = {
392
477
  /**
393
478
  * Site name
@@ -418,6 +503,79 @@ type CreateSiteDto = {
418
503
  */
419
504
  public_id?: string;
420
505
  };
506
+ type CreateZoneDto = {
507
+ /**
508
+ * Zone name
509
+ */
510
+ name: string;
511
+ /**
512
+ * Site publicId (UUID) the zone belongs to
513
+ */
514
+ site_id: string;
515
+ /**
516
+ * Parent zone publicId (UUID) for nesting, or omit for a top-level zone
517
+ */
518
+ parent_zone_id?: string;
519
+ /**
520
+ * Description
521
+ */
522
+ description?: string;
523
+ /**
524
+ * Latitude
525
+ */
526
+ lat?: number;
527
+ /**
528
+ * Longitude
529
+ */
530
+ lng?: number;
531
+ /**
532
+ * GeoJSON polygon (object) describing the zone boundary
533
+ */
534
+ boundary?: {
535
+ [key: string]: unknown;
536
+ };
537
+ };
538
+ type CustomerResponseDto = {
539
+ public_id: string;
540
+ name: string;
541
+ abn: {
542
+ [key: string]: unknown;
543
+ } | null;
544
+ address: {
545
+ [key: string]: unknown;
546
+ } | null;
547
+ city: {
548
+ [key: string]: unknown;
549
+ } | null;
550
+ state: {
551
+ [key: string]: unknown;
552
+ } | null;
553
+ postcode: {
554
+ [key: string]: unknown;
555
+ } | null;
556
+ country: {
557
+ [key: string]: unknown;
558
+ } | null;
559
+ phone: {
560
+ [key: string]: unknown;
561
+ } | null;
562
+ email: {
563
+ [key: string]: unknown;
564
+ } | null;
565
+ website: {
566
+ [key: string]: unknown;
567
+ } | null;
568
+ default_payment_terms: {
569
+ [key: string]: unknown;
570
+ } | null;
571
+ notes: {
572
+ [key: string]: unknown;
573
+ } | null;
574
+ status: string;
575
+ created_at: string;
576
+ updated_at: string;
577
+ customer_properties: Array<EmbeddedCustomerPropertyDto>;
578
+ };
421
579
  type DeleteAssetClassPropertyResponseDto = {
422
580
  message: string;
423
581
  /**
@@ -435,6 +593,18 @@ type DeleteAssetPropertyResponseDto = {
435
593
  */
436
594
  id: string;
437
595
  };
596
+ type DeleteCustomerResponseDto = {
597
+ message: string;
598
+ public_id: string;
599
+ };
600
+ type DeleteDocumentResponseDto = {
601
+ message: string;
602
+ id: string;
603
+ };
604
+ type DeleteGroupResponseDto = {
605
+ message: string;
606
+ public_id: string;
607
+ };
438
608
  type DeleteSiteResponseDto = {
439
609
  /**
440
610
  * Success message
@@ -455,6 +625,134 @@ type DeleteUserPropertyResponseDto = {
455
625
  */
456
626
  id: string;
457
627
  };
628
+ type DeleteZoneResponseDto = {
629
+ message: string;
630
+ public_id: string;
631
+ };
632
+ type DeviceResponseDto = {
633
+ public_id: string;
634
+ name: string;
635
+ status: string;
636
+ last_sync_at: {
637
+ [key: string]: unknown;
638
+ } | null;
639
+ activated_at: {
640
+ [key: string]: unknown;
641
+ } | null;
642
+ app_version: {
643
+ [key: string]: unknown;
644
+ } | null;
645
+ os: {
646
+ [key: string]: unknown;
647
+ } | null;
648
+ os_version: {
649
+ [key: string]: unknown;
650
+ } | null;
651
+ device_model: {
652
+ [key: string]: unknown;
653
+ } | null;
654
+ /**
655
+ * Battery level (0-1 or 0-100)
656
+ */
657
+ battery_level: {
658
+ [key: string]: unknown;
659
+ } | null;
660
+ lat: {
661
+ [key: string]: unknown;
662
+ } | null;
663
+ lng: {
664
+ [key: string]: unknown;
665
+ } | null;
666
+ last_known_lat: {
667
+ [key: string]: unknown;
668
+ } | null;
669
+ last_known_lng: {
670
+ [key: string]: unknown;
671
+ } | null;
672
+ location_sharing_status: string;
673
+ created_at: string;
674
+ updated_at: string;
675
+ };
676
+ type DocumentResponseDto = {
677
+ /**
678
+ * Document ID
679
+ */
680
+ id: string;
681
+ /**
682
+ * Parent entity publicId (UUID)
683
+ */
684
+ parent_id: {
685
+ [key: string]: unknown;
686
+ };
687
+ /**
688
+ * Company ID
689
+ */
690
+ company_id: string;
691
+ /**
692
+ * Document type id
693
+ */
694
+ document_type_id: string;
695
+ /**
696
+ * Document type name
697
+ */
698
+ document_type_name: {
699
+ [key: string]: unknown;
700
+ } | null;
701
+ name: string;
702
+ identifier: {
703
+ [key: string]: unknown;
704
+ } | null;
705
+ issued_on: {
706
+ [key: string]: unknown;
707
+ } | null;
708
+ expires_on: {
709
+ [key: string]: unknown;
710
+ } | null;
711
+ /**
712
+ * S3 key of the attachment
713
+ */
714
+ attachment_file: {
715
+ [key: string]: unknown;
716
+ } | null;
717
+ /**
718
+ * Signed CloudFront URL for the attachment (~1h), or null
719
+ */
720
+ attachment_url: {
721
+ [key: string]: unknown;
722
+ } | null;
723
+ /**
724
+ * Current approval status (asset & user documents only), else null
725
+ */
726
+ approval_status: {
727
+ [key: string]: unknown;
728
+ } | null;
729
+ created_at: string;
730
+ updated_at: string;
731
+ };
732
+ type DocumentUploadUrlDto = {
733
+ /**
734
+ * Original file name
735
+ */
736
+ filename: string;
737
+ /**
738
+ * MIME type
739
+ */
740
+ content_type?: string;
741
+ };
742
+ type DocumentUploadUrlResponseDto = {
743
+ /**
744
+ * Presigned S3 PUT URL — upload the file here
745
+ */
746
+ upload_url: string;
747
+ /**
748
+ * Object key — pass as attachment_file when creating the document
749
+ */
750
+ key: string;
751
+ /**
752
+ * Seconds until the URL expires
753
+ */
754
+ expires_in: number;
755
+ };
458
756
  type EmbeddedAssetClassPropertyDto = {
459
757
  /**
460
758
  * Custom field-definition ID (config_items.id). String (BigInt-safe).
@@ -553,6 +851,35 @@ type EmbeddedAssetPropertyDto = {
553
851
  [key: string]: unknown;
554
852
  } | null;
555
853
  };
854
+ type EmbeddedCustomerPropertyDto = {
855
+ /**
856
+ * BigInt as string. Property definition id (config_items.id)
857
+ */
858
+ property_id: string;
859
+ /**
860
+ * BigInt as string. Property value row id — pass to PATCH/DELETE /customer-property/:id
861
+ */
862
+ customer_property_id: string;
863
+ property_name: string;
864
+ text_value: {
865
+ [key: string]: unknown;
866
+ } | null;
867
+ numeric_value: {
868
+ [key: string]: unknown;
869
+ } | null;
870
+ date_value: {
871
+ [key: string]: unknown;
872
+ } | null;
873
+ updated_at: {
874
+ [key: string]: unknown;
875
+ } | null;
876
+ updated_by: {
877
+ [key: string]: unknown;
878
+ } | null;
879
+ updated_by_name: {
880
+ [key: string]: unknown;
881
+ } | null;
882
+ };
556
883
  type EmbeddedUserPropertyDto = {
557
884
  /**
558
885
  * Property ID. Serialized as a string in public API responses (BigInt-safe).
@@ -581,6 +908,27 @@ type EmbeddedUserPropertyDto = {
581
908
  [key: string]: unknown;
582
909
  } | null;
583
910
  };
911
+ type GroupResponseDto = {
912
+ public_id: string;
913
+ /**
914
+ * Site publicId, or null for a company-wide group
915
+ */
916
+ site_id: {
917
+ [key: string]: unknown;
918
+ } | null;
919
+ /**
920
+ * Site name
921
+ */
922
+ site_name: {
923
+ [key: string]: unknown;
924
+ } | null;
925
+ name: string;
926
+ include_all_users: boolean;
927
+ include_all_assets: boolean;
928
+ include_all_checklists: boolean;
929
+ created_at: string;
930
+ updated_at: string;
931
+ };
584
932
  type InspectionResponseDto = {
585
933
  /**
586
934
  * Inspection public ID (UUID)
@@ -1085,6 +1433,34 @@ type ListConfigTablesResponseDto = {
1085
1433
  total: number;
1086
1434
  total_pages: number;
1087
1435
  };
1436
+ type ListCustomersResponseDto = {
1437
+ data: Array<CustomerResponseDto>;
1438
+ page: number;
1439
+ per_page: number;
1440
+ total: number;
1441
+ total_pages: number;
1442
+ };
1443
+ type ListDevicesResponseDto = {
1444
+ data: Array<DeviceResponseDto>;
1445
+ page: number;
1446
+ per_page: number;
1447
+ total: number;
1448
+ total_pages: number;
1449
+ };
1450
+ type ListDocumentsResponseDto = {
1451
+ data: Array<DocumentResponseDto>;
1452
+ page: number;
1453
+ per_page: number;
1454
+ total: number;
1455
+ total_pages: number;
1456
+ };
1457
+ type ListGroupsResponseDto = {
1458
+ data: Array<GroupResponseDto>;
1459
+ page: number;
1460
+ per_page: number;
1461
+ total: number;
1462
+ total_pages: number;
1463
+ };
1088
1464
  type ListInspectionsResponseDto = {
1089
1465
  /**
1090
1466
  * List of inspections
@@ -1151,6 +1527,20 @@ type ListSitesResponseDto = {
1151
1527
  */
1152
1528
  total_pages: number;
1153
1529
  };
1530
+ type ListTimesheetsResponseDto = {
1531
+ data: Array<TimesheetSummaryDto>;
1532
+ page: number;
1533
+ per_page: number;
1534
+ total: number;
1535
+ total_pages: number;
1536
+ };
1537
+ type ListZonesResponseDto = {
1538
+ data: Array<ZoneResponseDto>;
1539
+ page: number;
1540
+ per_page: number;
1541
+ total: number;
1542
+ total_pages: number;
1543
+ };
1154
1544
  type PublicCreateAssetDto = {
1155
1545
  /**
1156
1546
  * Asset number
@@ -1239,6 +1629,145 @@ type SiteResponseDto = {
1239
1629
  [key: string]: unknown;
1240
1630
  };
1241
1631
  };
1632
+ type TimesheetDetailDto = {
1633
+ public_id: string;
1634
+ /**
1635
+ * User publicId
1636
+ */
1637
+ user_id: string;
1638
+ /**
1639
+ * User full name
1640
+ */
1641
+ user_name: {
1642
+ [key: string]: unknown;
1643
+ } | null;
1644
+ /**
1645
+ * Period start (Monday)
1646
+ */
1647
+ period_start: string;
1648
+ /**
1649
+ * Period end (Sunday)
1650
+ */
1651
+ period_end: string;
1652
+ /**
1653
+ * draft, submitted, in_approval, approved, rejected, info_required
1654
+ */
1655
+ status: string;
1656
+ /**
1657
+ * Total seconds across all lines
1658
+ */
1659
+ duration: {
1660
+ [key: string]: unknown;
1661
+ } | null;
1662
+ submitted_at: {
1663
+ [key: string]: unknown;
1664
+ } | null;
1665
+ current_approval_level: {
1666
+ [key: string]: unknown;
1667
+ } | null;
1668
+ total_approval_levels: {
1669
+ [key: string]: unknown;
1670
+ } | null;
1671
+ created_at: string;
1672
+ updated_at: string;
1673
+ lines: Array<TimesheetLineDto>;
1674
+ };
1675
+ type TimesheetLineDto = {
1676
+ public_id: string;
1677
+ line_date: string;
1678
+ /**
1679
+ * Activity (time line) publicId
1680
+ */
1681
+ activity_id: {
1682
+ [key: string]: unknown;
1683
+ } | null;
1684
+ /**
1685
+ * Activity (time line) name
1686
+ */
1687
+ activity_name: {
1688
+ [key: string]: unknown;
1689
+ } | null;
1690
+ /**
1691
+ * Duration in seconds
1692
+ */
1693
+ duration: {
1694
+ [key: string]: unknown;
1695
+ } | null;
1696
+ start_time: {
1697
+ [key: string]: unknown;
1698
+ } | null;
1699
+ end_time: {
1700
+ [key: string]: unknown;
1701
+ } | null;
1702
+ /**
1703
+ * Site publicId
1704
+ */
1705
+ site_id: {
1706
+ [key: string]: unknown;
1707
+ } | null;
1708
+ /**
1709
+ * Asset publicId
1710
+ */
1711
+ asset_id: {
1712
+ [key: string]: unknown;
1713
+ } | null;
1714
+ /**
1715
+ * Project publicId
1716
+ */
1717
+ project_id: {
1718
+ [key: string]: unknown;
1719
+ } | null;
1720
+ /**
1721
+ * Customer publicId
1722
+ */
1723
+ customer_id: {
1724
+ [key: string]: unknown;
1725
+ } | null;
1726
+ created_at: string;
1727
+ updated_at: string;
1728
+ };
1729
+ type TimesheetSummaryDto = {
1730
+ public_id: string;
1731
+ /**
1732
+ * User publicId
1733
+ */
1734
+ user_id: string;
1735
+ /**
1736
+ * User full name
1737
+ */
1738
+ user_name: {
1739
+ [key: string]: unknown;
1740
+ } | null;
1741
+ /**
1742
+ * Period start (Monday)
1743
+ */
1744
+ period_start: string;
1745
+ /**
1746
+ * Period end (Sunday)
1747
+ */
1748
+ period_end: string;
1749
+ /**
1750
+ * draft, submitted, in_approval, approved, rejected, info_required
1751
+ */
1752
+ status: string;
1753
+ /**
1754
+ * Total seconds across all lines
1755
+ */
1756
+ duration: {
1757
+ [key: string]: unknown;
1758
+ } | null;
1759
+ submitted_at: {
1760
+ [key: string]: unknown;
1761
+ } | null;
1762
+ current_approval_level: {
1763
+ [key: string]: unknown;
1764
+ } | null;
1765
+ total_approval_levels: {
1766
+ [key: string]: unknown;
1767
+ } | null;
1768
+ created_at: string;
1769
+ updated_at: string;
1770
+ };
1242
1771
  type UpdateAssetClassDto = {
1243
1772
  /**
1244
1773
  * Asset class name (make)
@@ -1323,6 +1852,114 @@ type UpdateConfigItemDto = {
1323
1852
  [key: string]: unknown;
1324
1853
  } | null;
1325
1854
  };
1855
+ type UpdateCustomerDto = {
1856
+ /**
1857
+ * Customer name
1858
+ */
1859
+ name?: string;
1860
+ /**
1861
+ * ABN
1862
+ */
1863
+ abn?: {
1864
+ [key: string]: unknown;
1865
+ } | null;
1866
+ /**
1867
+ * Street address
1868
+ */
1869
+ address?: {
1870
+ [key: string]: unknown;
1871
+ } | null;
1872
+ city?: {
1873
+ [key: string]: unknown;
1874
+ } | null;
1875
+ state?: {
1876
+ [key: string]: unknown;
1877
+ } | null;
1878
+ postcode?: {
1879
+ [key: string]: unknown;
1880
+ } | null;
1881
+ country?: {
1882
+ [key: string]: unknown;
1883
+ } | null;
1884
+ phone?: {
1885
+ [key: string]: unknown;
1886
+ } | null;
1887
+ email?: {
1888
+ [key: string]: unknown;
1889
+ } | null;
1890
+ website?: {
1891
+ [key: string]: unknown;
1892
+ } | null;
1893
+ /**
1894
+ * Default payment terms in days
1895
+ */
1896
+ default_payment_terms?: {
1897
+ [key: string]: unknown;
1898
+ } | null;
1899
+ notes?: {
1900
+ [key: string]: unknown;
1901
+ } | null;
1902
+ /**
1903
+ * Status
1904
+ */
1905
+ status?: string;
1906
+ };
1907
+ type UpdateDocumentDto = {
1908
+ /**
1909
+ * Document name
1910
+ */
1911
+ name?: string;
1912
+ /**
1913
+ * Document type id (numeric string)
1914
+ */
1915
+ document_type_id?: string;
1916
+ /**
1917
+ * External identifier
1918
+ */
1919
+ identifier?: {
1920
+ [key: string]: unknown;
1921
+ } | null;
1922
+ /**
1923
+ * Issued-on date (ISO)
1924
+ */
1925
+ issued_on?: {
1926
+ [key: string]: unknown;
1927
+ } | null;
1928
+ /**
1929
+ * Expiry date (ISO)
1930
+ */
1931
+ expires_on?: {
1932
+ [key: string]: unknown;
1933
+ } | null;
1934
+ /**
1935
+ * Replacement S3 key (from /document/upload-url)
1936
+ */
1937
+ attachment_file?: string;
1938
+ };
1939
+ type UpdateGroupDto = {
1940
+ /**
1941
+ * Group name
1942
+ */
1943
+ name?: string;
1944
+ /**
1945
+ * Site publicId (UUID), or null to make the group company-wide
1946
+ */
1947
+ site_id?: {
1948
+ [key: string]: unknown;
1949
+ } | null;
1950
+ /**
1951
+ * Auto-include all users
1952
+ */
1953
+ include_all_users?: boolean;
1954
+ /**
1955
+ * Auto-include all assets
1956
+ */
1957
+ include_all_assets?: boolean;
1958
+ /**
1959
+ * Auto-include all checklists
1960
+ */
1961
+ include_all_checklists?: boolean;
1962
+ };
1326
1963
  type UpdateIssueDto = {
1327
1964
  /**
1328
1965
  * Issue title
@@ -1419,6 +2056,42 @@ type UpdateUserPropertyDto = {
1419
2056
  [key: string]: unknown;
1420
2057
  };
1421
2058
  };
2059
+ type UpdateZoneDto = {
2060
+ /**
2061
+ * Zone name
2062
+ */
2063
+ name?: string;
2064
+ /**
2065
+ * Parent zone publicId (UUID), or null to make it top-level
2066
+ */
2067
+ parent_zone_id?: {
2068
+ [key: string]: unknown;
2069
+ } | null;
2070
+ /**
2071
+ * Description
2072
+ */
2073
+ description?: {
2074
+ [key: string]: unknown;
2075
+ } | null;
2076
+ /**
2077
+ * Latitude
2078
+ */
2079
+ lat?: {
2080
+ [key: string]: unknown;
2081
+ } | null;
2082
+ /**
2083
+ * Longitude
2084
+ */
2085
+ lng?: {
2086
+ [key: string]: unknown;
2087
+ } | null;
2088
+ /**
2089
+ * GeoJSON polygon (object), or null to clear
2090
+ */
2091
+ boundary?: {
2092
+ [key: string]: unknown;
2093
+ } | null;
2094
+ };
1422
2095
  type UserPropertyResponseDto = {
1423
2096
  /**
1424
2097
  * User property ID. Serialized as a string in public API responses (BigInt-safe).
@@ -1561,6 +2234,43 @@ type UserResponseDto = {
1561
2234
  */
1562
2235
  user_properties: Array<EmbeddedUserPropertyDto>;
1563
2236
  };
2237
+ type ZoneResponseDto = {
2238
+ public_id: string;
2239
+ /**
2240
+ * Site publicId
2241
+ */
2242
+ site_id: string;
2243
+ /**
2244
+ * Site name
2245
+ */
2246
+ site_name: {
2247
+ [key: string]: unknown;
2248
+ } | null;
2249
+ /**
2250
+ * Parent zone publicId, or null for a top-level zone
2251
+ */
2252
+ parent_zone_id: {
2253
+ [key: string]: unknown;
2254
+ } | null;
2255
+ name: string;
2256
+ description: {
2257
+ [key: string]: unknown;
2258
+ } | null;
2259
+ lat: {
2260
+ [key: string]: unknown;
2261
+ } | null;
2262
+ lng: {
2263
+ [key: string]: unknown;
2264
+ } | null;
2265
+ /**
2266
+ * GeoJSON polygon boundary
2267
+ */
2268
+ boundary: {
2269
+ [key: string]: unknown;
2270
+ } | null;
2271
+ created_at: string;
2272
+ updated_at: string;
2273
+ };
1564
2274
  type AssetControllerCreateAssetPublicData = {
1565
2275
  /**
1566
2276
  * Asset creation data with entity public IDs
@@ -3360,17 +4070,2905 @@ type PublicConfigControllerListConfigItemsData = {
3360
4070
  */
3361
4071
  name?: string;
3362
4072
  /**
3363
- * Filter by updated_at from (inclusive) — sync watermark
4073
+ * Filter by updated_at from (inclusive) — sync watermark
4074
+ */
4075
+ config_item_date_updated_from?: string;
4076
+ /**
4077
+ * Filter by updated_at to (inclusive)
4078
+ */
4079
+ config_item_date_updated_to?: string;
4080
+ };
4081
+ url: '/public/config-item/list';
4082
+ };
4083
+ type PublicConfigControllerListConfigItemsErrors = {
4084
+ /**
4085
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4086
+ */
4087
+ 400: ApiErrorResponse;
4088
+ /**
4089
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4090
+ */
4091
+ 401: ApiErrorResponse;
4092
+ /**
4093
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4094
+ */
4095
+ 403: ApiErrorResponse;
4096
+ /**
4097
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4098
+ */
4099
+ 429: ApiErrorResponse;
4100
+ /**
4101
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4102
+ */
4103
+ 500: ApiErrorResponse;
4104
+ };
4105
+ type PublicConfigControllerListConfigItemsError = PublicConfigControllerListConfigItemsErrors[keyof PublicConfigControllerListConfigItemsErrors];
4106
+ type PublicConfigControllerListConfigItemsResponses = {
4107
+ /**
4108
+ * Config items with pagination info
4109
+ */
4110
+ 200: ListConfigItemsResponseDto;
4111
+ };
4112
+ type PublicConfigControllerListConfigItemsResponse = PublicConfigControllerListConfigItemsResponses[keyof PublicConfigControllerListConfigItemsResponses];
4113
+ type PublicConfigControllerDeleteConfigItemData = {
4114
+ body?: never;
4115
+ path: {
4116
+ /**
4117
+ * Config item ID (numeric string)
4118
+ */
4119
+ id: string;
4120
+ };
4121
+ query?: never;
4122
+ url: '/public/config-item/{id}';
4123
+ };
4124
+ type PublicConfigControllerDeleteConfigItemErrors = {
4125
+ /**
4126
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4127
+ */
4128
+ 400: ApiErrorResponse;
4129
+ /**
4130
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4131
+ */
4132
+ 401: ApiErrorResponse;
4133
+ /**
4134
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4135
+ */
4136
+ 403: ApiErrorResponse;
4137
+ /**
4138
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4139
+ */
4140
+ 404: ApiErrorResponse;
4141
+ /**
4142
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4143
+ */
4144
+ 429: ApiErrorResponse;
4145
+ /**
4146
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4147
+ */
4148
+ 500: ApiErrorResponse;
4149
+ };
4150
+ type PublicConfigControllerDeleteConfigItemError = PublicConfigControllerDeleteConfigItemErrors[keyof PublicConfigControllerDeleteConfigItemErrors];
4151
+ type PublicConfigControllerDeleteConfigItemResponses = {
4152
+ /**
4153
+ * Config item deleted
4154
+ */
4155
+ 200: {
4156
+ success?: boolean;
4157
+ };
4158
+ };
4159
+ type PublicConfigControllerDeleteConfigItemResponse = PublicConfigControllerDeleteConfigItemResponses[keyof PublicConfigControllerDeleteConfigItemResponses];
4160
+ type PublicConfigControllerGetConfigItemData = {
4161
+ body?: never;
4162
+ path: {
4163
+ /**
4164
+ * Config item ID (numeric string)
4165
+ */
4166
+ id: string;
4167
+ };
4168
+ query?: never;
4169
+ url: '/public/config-item/{id}';
4170
+ };
4171
+ type PublicConfigControllerGetConfigItemErrors = {
4172
+ /**
4173
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4174
+ */
4175
+ 400: ApiErrorResponse;
4176
+ /**
4177
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4178
+ */
4179
+ 401: ApiErrorResponse;
4180
+ /**
4181
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4182
+ */
4183
+ 403: ApiErrorResponse;
4184
+ /**
4185
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4186
+ */
4187
+ 404: ApiErrorResponse;
4188
+ /**
4189
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4190
+ */
4191
+ 429: ApiErrorResponse;
4192
+ /**
4193
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4194
+ */
4195
+ 500: ApiErrorResponse;
4196
+ };
4197
+ type PublicConfigControllerGetConfigItemError = PublicConfigControllerGetConfigItemErrors[keyof PublicConfigControllerGetConfigItemErrors];
4198
+ type PublicConfigControllerGetConfigItemResponses = {
4199
+ /**
4200
+ * The config item
4201
+ */
4202
+ 200: ConfigItemDto;
4203
+ };
4204
+ type PublicConfigControllerGetConfigItemResponse = PublicConfigControllerGetConfigItemResponses[keyof PublicConfigControllerGetConfigItemResponses];
4205
+ type PublicConfigControllerUpdateConfigItemData = {
4206
+ body: UpdateConfigItemDto;
4207
+ headers?: {
4208
+ /**
4209
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
4210
+ */
4211
+ 'Idempotency-Key'?: string;
4212
+ };
4213
+ path: {
4214
+ /**
4215
+ * Config item ID (numeric string)
4216
+ */
4217
+ id: string;
4218
+ };
4219
+ query?: never;
4220
+ url: '/public/config-item/{id}';
4221
+ };
4222
+ type PublicConfigControllerUpdateConfigItemErrors = {
4223
+ /**
4224
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4225
+ */
4226
+ 400: ApiErrorResponse;
4227
+ /**
4228
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4229
+ */
4230
+ 401: ApiErrorResponse;
4231
+ /**
4232
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4233
+ */
4234
+ 403: ApiErrorResponse;
4235
+ /**
4236
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4237
+ */
4238
+ 404: ApiErrorResponse;
4239
+ /**
4240
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4241
+ */
4242
+ 429: ApiErrorResponse;
4243
+ /**
4244
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4245
+ */
4246
+ 500: ApiErrorResponse;
4247
+ };
4248
+ type PublicConfigControllerUpdateConfigItemError = PublicConfigControllerUpdateConfigItemErrors[keyof PublicConfigControllerUpdateConfigItemErrors];
4249
+ type PublicConfigControllerUpdateConfigItemResponses = {
4250
+ /**
4251
+ * Config item updated
4252
+ */
4253
+ 200: ConfigItemDto;
4254
+ };
4255
+ type PublicConfigControllerUpdateConfigItemResponse = PublicConfigControllerUpdateConfigItemResponses[keyof PublicConfigControllerUpdateConfigItemResponses];
4256
+ type PublicConfigControllerCreateConfigItemData = {
4257
+ body: CreateConfigItemDto;
4258
+ headers?: {
4259
+ /**
4260
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
4261
+ */
4262
+ 'Idempotency-Key'?: string;
4263
+ };
4264
+ path?: never;
4265
+ query?: never;
4266
+ url: '/public/config-item';
4267
+ };
4268
+ type PublicConfigControllerCreateConfigItemErrors = {
4269
+ /**
4270
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4271
+ */
4272
+ 400: ApiErrorResponse;
4273
+ /**
4274
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4275
+ */
4276
+ 401: ApiErrorResponse;
4277
+ /**
4278
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4279
+ */
4280
+ 403: ApiErrorResponse;
4281
+ /**
4282
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4283
+ */
4284
+ 404: ApiErrorResponse;
4285
+ /**
4286
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
4287
+ */
4288
+ 409: ApiErrorResponse;
4289
+ /**
4290
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4291
+ */
4292
+ 429: ApiErrorResponse;
4293
+ /**
4294
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4295
+ */
4296
+ 500: ApiErrorResponse;
4297
+ };
4298
+ type PublicConfigControllerCreateConfigItemError = PublicConfigControllerCreateConfigItemErrors[keyof PublicConfigControllerCreateConfigItemErrors];
4299
+ type PublicConfigControllerCreateConfigItemResponses = {
4300
+ /**
4301
+ * Config item created
4302
+ */
4303
+ 201: ConfigItemDto;
4304
+ };
4305
+ type PublicConfigControllerCreateConfigItemResponse = PublicConfigControllerCreateConfigItemResponses[keyof PublicConfigControllerCreateConfigItemResponses];
4306
+ type AssetClassPropertyControllerRemoveData = {
4307
+ body?: never;
4308
+ path: {
4309
+ /**
4310
+ * Asset class property value-row ID (numeric string)
4311
+ */
4312
+ id: string;
4313
+ };
4314
+ query?: never;
4315
+ url: '/asset-class-property/{id}';
4316
+ };
4317
+ type AssetClassPropertyControllerRemoveErrors = {
4318
+ /**
4319
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4320
+ */
4321
+ 401: ApiErrorResponse;
4322
+ /**
4323
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4324
+ */
4325
+ 403: ApiErrorResponse;
4326
+ /**
4327
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4328
+ */
4329
+ 404: ApiErrorResponse;
4330
+ /**
4331
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4332
+ */
4333
+ 429: ApiErrorResponse;
4334
+ /**
4335
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4336
+ */
4337
+ 500: ApiErrorResponse;
4338
+ };
4339
+ type AssetClassPropertyControllerRemoveError = AssetClassPropertyControllerRemoveErrors[keyof AssetClassPropertyControllerRemoveErrors];
4340
+ type AssetClassPropertyControllerRemoveResponses = {
4341
+ /**
4342
+ * Asset class property deleted
4343
+ */
4344
+ 200: DeleteAssetClassPropertyResponseDto;
4345
+ };
4346
+ type AssetClassPropertyControllerRemoveResponse = AssetClassPropertyControllerRemoveResponses[keyof AssetClassPropertyControllerRemoveResponses];
4347
+ type AssetClassPropertyControllerUpdateData = {
4348
+ body: UpdateAssetClassPropertyDto;
4349
+ headers?: {
4350
+ /**
4351
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
4352
+ */
4353
+ 'Idempotency-Key'?: string;
4354
+ };
4355
+ path: {
4356
+ /**
4357
+ * Asset class property value-row ID (numeric string)
4358
+ */
4359
+ id: string;
4360
+ };
4361
+ query?: never;
4362
+ url: '/asset-class-property/{id}';
4363
+ };
4364
+ type AssetClassPropertyControllerUpdateErrors = {
4365
+ /**
4366
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4367
+ */
4368
+ 400: ApiErrorResponse;
4369
+ /**
4370
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4371
+ */
4372
+ 401: ApiErrorResponse;
4373
+ /**
4374
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4375
+ */
4376
+ 403: ApiErrorResponse;
4377
+ /**
4378
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4379
+ */
4380
+ 404: ApiErrorResponse;
4381
+ /**
4382
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4383
+ */
4384
+ 429: ApiErrorResponse;
4385
+ /**
4386
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4387
+ */
4388
+ 500: ApiErrorResponse;
4389
+ };
4390
+ type AssetClassPropertyControllerUpdateError = AssetClassPropertyControllerUpdateErrors[keyof AssetClassPropertyControllerUpdateErrors];
4391
+ type AssetClassPropertyControllerUpdateResponses = {
4392
+ /**
4393
+ * Asset class property updated
4394
+ */
4395
+ 200: AssetClassPropertyResponseDto;
4396
+ };
4397
+ type AssetClassPropertyControllerUpdateResponse = AssetClassPropertyControllerUpdateResponses[keyof AssetClassPropertyControllerUpdateResponses];
4398
+ type DocumentUploadControllerUploadUrlData = {
4399
+ body: DocumentUploadUrlDto;
4400
+ path?: never;
4401
+ query?: never;
4402
+ url: '/document/upload-url';
4403
+ };
4404
+ type DocumentUploadControllerUploadUrlErrors = {
4405
+ /**
4406
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4407
+ */
4408
+ 400: ApiErrorResponse;
4409
+ /**
4410
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4411
+ */
4412
+ 401: ApiErrorResponse;
4413
+ /**
4414
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4415
+ */
4416
+ 403: ApiErrorResponse;
4417
+ /**
4418
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4419
+ */
4420
+ 429: ApiErrorResponse;
4421
+ /**
4422
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4423
+ */
4424
+ 500: ApiErrorResponse;
4425
+ };
4426
+ type DocumentUploadControllerUploadUrlError = DocumentUploadControllerUploadUrlErrors[keyof DocumentUploadControllerUploadUrlErrors];
4427
+ type DocumentUploadControllerUploadUrlResponses = {
4428
+ 200: DocumentUploadUrlResponseDto;
4429
+ };
4430
+ type DocumentUploadControllerUploadUrlResponse = DocumentUploadControllerUploadUrlResponses[keyof DocumentUploadControllerUploadUrlResponses];
4431
+ type AssetDocumentControllerListData = {
4432
+ body?: never;
4433
+ path?: never;
4434
+ query?: {
4435
+ /**
4436
+ * Results per page
4437
+ */
4438
+ per_page?: number;
4439
+ /**
4440
+ * Page number
4441
+ */
4442
+ page?: number;
4443
+ direction?: 'asc' | 'desc';
4444
+ /**
4445
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
4446
+ */
4447
+ sort?: string;
4448
+ /**
4449
+ * Filter to one parent by its publicId (UUID)
4450
+ */
4451
+ parent_id?: string;
4452
+ /**
4453
+ * Filter by document type id (numeric string)
4454
+ */
4455
+ document_type_id?: string;
4456
+ /**
4457
+ * Filter by name (case-insensitive partial)
4458
+ */
4459
+ name?: string;
4460
+ /**
4461
+ * Filter: expires_on >= (ISO date)
4462
+ */
4463
+ expires_on_from?: string;
4464
+ /**
4465
+ * Filter: expires_on <= (ISO date)
4466
+ */
4467
+ expires_on_to?: string;
4468
+ /**
4469
+ * Filter: updated_at >= (ISO) — incremental sync watermark
4470
+ */
4471
+ document_date_updated_from?: string;
4472
+ /**
4473
+ * Filter: updated_at <= (ISO)
4474
+ */
4475
+ document_date_updated_to?: string;
4476
+ };
4477
+ url: '/asset-document/list';
4478
+ };
4479
+ type AssetDocumentControllerListErrors = {
4480
+ /**
4481
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4482
+ */
4483
+ 400: ApiErrorResponse;
4484
+ /**
4485
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4486
+ */
4487
+ 401: ApiErrorResponse;
4488
+ /**
4489
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4490
+ */
4491
+ 403: ApiErrorResponse;
4492
+ /**
4493
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4494
+ */
4495
+ 429: ApiErrorResponse;
4496
+ /**
4497
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4498
+ */
4499
+ 500: ApiErrorResponse;
4500
+ };
4501
+ type AssetDocumentControllerListError = AssetDocumentControllerListErrors[keyof AssetDocumentControllerListErrors];
4502
+ type AssetDocumentControllerListResponses = {
4503
+ 200: ListDocumentsResponseDto;
4504
+ };
4505
+ type AssetDocumentControllerListResponse = AssetDocumentControllerListResponses[keyof AssetDocumentControllerListResponses];
4506
+ type AssetDocumentControllerRemoveData = {
4507
+ body?: never;
4508
+ path: {
4509
+ /**
4510
+ * Document ID (numeric string)
4511
+ */
4512
+ id: string;
4513
+ };
4514
+ query?: never;
4515
+ url: '/asset-document/{id}';
4516
+ };
4517
+ type AssetDocumentControllerRemoveErrors = {
4518
+ /**
4519
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4520
+ */
4521
+ 400: ApiErrorResponse;
4522
+ /**
4523
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4524
+ */
4525
+ 401: ApiErrorResponse;
4526
+ /**
4527
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4528
+ */
4529
+ 403: ApiErrorResponse;
4530
+ /**
4531
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4532
+ */
4533
+ 404: ApiErrorResponse;
4534
+ /**
4535
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4536
+ */
4537
+ 429: ApiErrorResponse;
4538
+ /**
4539
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4540
+ */
4541
+ 500: ApiErrorResponse;
4542
+ };
4543
+ type AssetDocumentControllerRemoveError = AssetDocumentControllerRemoveErrors[keyof AssetDocumentControllerRemoveErrors];
4544
+ type AssetDocumentControllerRemoveResponses = {
4545
+ 200: DeleteDocumentResponseDto;
4546
+ };
4547
+ type AssetDocumentControllerRemoveResponse = AssetDocumentControllerRemoveResponses[keyof AssetDocumentControllerRemoveResponses];
4548
+ type AssetDocumentControllerGetData = {
4549
+ body?: never;
4550
+ path: {
4551
+ /**
4552
+ * Document ID (numeric string)
4553
+ */
4554
+ id: string;
4555
+ };
4556
+ query?: never;
4557
+ url: '/asset-document/{id}';
4558
+ };
4559
+ type AssetDocumentControllerGetErrors = {
4560
+ /**
4561
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4562
+ */
4563
+ 400: ApiErrorResponse;
4564
+ /**
4565
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4566
+ */
4567
+ 401: ApiErrorResponse;
4568
+ /**
4569
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4570
+ */
4571
+ 403: ApiErrorResponse;
4572
+ /**
4573
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4574
+ */
4575
+ 404: ApiErrorResponse;
4576
+ /**
4577
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4578
+ */
4579
+ 429: ApiErrorResponse;
4580
+ /**
4581
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4582
+ */
4583
+ 500: ApiErrorResponse;
4584
+ };
4585
+ type AssetDocumentControllerGetError = AssetDocumentControllerGetErrors[keyof AssetDocumentControllerGetErrors];
4586
+ type AssetDocumentControllerGetResponses = {
4587
+ 200: DocumentResponseDto;
4588
+ };
4589
+ type AssetDocumentControllerGetResponse = AssetDocumentControllerGetResponses[keyof AssetDocumentControllerGetResponses];
4590
+ type AssetDocumentControllerUpdateData = {
4591
+ body: UpdateDocumentDto;
4592
+ headers?: {
4593
+ /**
4594
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
4595
+ */
4596
+ 'Idempotency-Key'?: string;
4597
+ };
4598
+ path: {
4599
+ /**
4600
+ * Document ID (numeric string)
4601
+ */
4602
+ id: string;
4603
+ };
4604
+ query?: never;
4605
+ url: '/asset-document/{id}';
4606
+ };
4607
+ type AssetDocumentControllerUpdateErrors = {
4608
+ /**
4609
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4610
+ */
4611
+ 400: ApiErrorResponse;
4612
+ /**
4613
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4614
+ */
4615
+ 401: ApiErrorResponse;
4616
+ /**
4617
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4618
+ */
4619
+ 403: ApiErrorResponse;
4620
+ /**
4621
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4622
+ */
4623
+ 404: ApiErrorResponse;
4624
+ /**
4625
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4626
+ */
4627
+ 429: ApiErrorResponse;
4628
+ /**
4629
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4630
+ */
4631
+ 500: ApiErrorResponse;
4632
+ };
4633
+ type AssetDocumentControllerUpdateError = AssetDocumentControllerUpdateErrors[keyof AssetDocumentControllerUpdateErrors];
4634
+ type AssetDocumentControllerUpdateResponses = {
4635
+ 200: DocumentResponseDto;
4636
+ };
4637
+ type AssetDocumentControllerUpdateResponse = AssetDocumentControllerUpdateResponses[keyof AssetDocumentControllerUpdateResponses];
4638
+ type AssetDocumentControllerCreateData = {
4639
+ body: CreateDocumentDto;
4640
+ headers?: {
4641
+ /**
4642
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
4643
+ */
4644
+ 'Idempotency-Key'?: string;
4645
+ };
4646
+ path?: never;
4647
+ query?: never;
4648
+ url: '/asset-document';
4649
+ };
4650
+ type AssetDocumentControllerCreateErrors = {
4651
+ /**
4652
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4653
+ */
4654
+ 400: ApiErrorResponse;
4655
+ /**
4656
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4657
+ */
4658
+ 401: ApiErrorResponse;
4659
+ /**
4660
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4661
+ */
4662
+ 403: ApiErrorResponse;
4663
+ /**
4664
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4665
+ */
4666
+ 404: ApiErrorResponse;
4667
+ /**
4668
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
4669
+ */
4670
+ 409: ApiErrorResponse;
4671
+ /**
4672
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4673
+ */
4674
+ 429: ApiErrorResponse;
4675
+ /**
4676
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4677
+ */
4678
+ 500: ApiErrorResponse;
4679
+ };
4680
+ type AssetDocumentControllerCreateError = AssetDocumentControllerCreateErrors[keyof AssetDocumentControllerCreateErrors];
4681
+ type AssetDocumentControllerCreateResponses = {
4682
+ 201: DocumentResponseDto;
4683
+ };
4684
+ type AssetDocumentControllerCreateResponse = AssetDocumentControllerCreateResponses[keyof AssetDocumentControllerCreateResponses];
4685
+ type AssetClassDocumentControllerListData = {
4686
+ body?: never;
4687
+ path?: never;
4688
+ query?: {
4689
+ /**
4690
+ * Results per page
4691
+ */
4692
+ per_page?: number;
4693
+ /**
4694
+ * Page number
4695
+ */
4696
+ page?: number;
4697
+ direction?: 'asc' | 'desc';
4698
+ /**
4699
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
4700
+ */
4701
+ sort?: string;
4702
+ /**
4703
+ * Filter to one parent by its publicId (UUID)
4704
+ */
4705
+ parent_id?: string;
4706
+ /**
4707
+ * Filter by document type id (numeric string)
4708
+ */
4709
+ document_type_id?: string;
4710
+ /**
4711
+ * Filter by name (case-insensitive partial)
4712
+ */
4713
+ name?: string;
4714
+ /**
4715
+ * Filter: expires_on >= (ISO date)
4716
+ */
4717
+ expires_on_from?: string;
4718
+ /**
4719
+ * Filter: expires_on <= (ISO date)
4720
+ */
4721
+ expires_on_to?: string;
4722
+ /**
4723
+ * Filter: updated_at >= (ISO) — incremental sync watermark
4724
+ */
4725
+ document_date_updated_from?: string;
4726
+ /**
4727
+ * Filter: updated_at <= (ISO)
4728
+ */
4729
+ document_date_updated_to?: string;
4730
+ };
4731
+ url: '/asset-class-document/list';
4732
+ };
4733
+ type AssetClassDocumentControllerListErrors = {
4734
+ /**
4735
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4736
+ */
4737
+ 400: ApiErrorResponse;
4738
+ /**
4739
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4740
+ */
4741
+ 401: ApiErrorResponse;
4742
+ /**
4743
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4744
+ */
4745
+ 403: ApiErrorResponse;
4746
+ /**
4747
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4748
+ */
4749
+ 429: ApiErrorResponse;
4750
+ /**
4751
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4752
+ */
4753
+ 500: ApiErrorResponse;
4754
+ };
4755
+ type AssetClassDocumentControllerListError = AssetClassDocumentControllerListErrors[keyof AssetClassDocumentControllerListErrors];
4756
+ type AssetClassDocumentControllerListResponses = {
4757
+ 200: ListDocumentsResponseDto;
4758
+ };
4759
+ type AssetClassDocumentControllerListResponse = AssetClassDocumentControllerListResponses[keyof AssetClassDocumentControllerListResponses];
4760
+ type AssetClassDocumentControllerRemoveData = {
4761
+ body?: never;
4762
+ path: {
4763
+ /**
4764
+ * Document ID (numeric string)
4765
+ */
4766
+ id: string;
4767
+ };
4768
+ query?: never;
4769
+ url: '/asset-class-document/{id}';
4770
+ };
4771
+ type AssetClassDocumentControllerRemoveErrors = {
4772
+ /**
4773
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4774
+ */
4775
+ 400: ApiErrorResponse;
4776
+ /**
4777
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4778
+ */
4779
+ 401: ApiErrorResponse;
4780
+ /**
4781
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4782
+ */
4783
+ 403: ApiErrorResponse;
4784
+ /**
4785
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4786
+ */
4787
+ 404: ApiErrorResponse;
4788
+ /**
4789
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4790
+ */
4791
+ 429: ApiErrorResponse;
4792
+ /**
4793
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4794
+ */
4795
+ 500: ApiErrorResponse;
4796
+ };
4797
+ type AssetClassDocumentControllerRemoveError = AssetClassDocumentControllerRemoveErrors[keyof AssetClassDocumentControllerRemoveErrors];
4798
+ type AssetClassDocumentControllerRemoveResponses = {
4799
+ 200: DeleteDocumentResponseDto;
4800
+ };
4801
+ type AssetClassDocumentControllerRemoveResponse = AssetClassDocumentControllerRemoveResponses[keyof AssetClassDocumentControllerRemoveResponses];
4802
+ type AssetClassDocumentControllerGetData = {
4803
+ body?: never;
4804
+ path: {
4805
+ /**
4806
+ * Document ID (numeric string)
4807
+ */
4808
+ id: string;
4809
+ };
4810
+ query?: never;
4811
+ url: '/asset-class-document/{id}';
4812
+ };
4813
+ type AssetClassDocumentControllerGetErrors = {
4814
+ /**
4815
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4816
+ */
4817
+ 400: ApiErrorResponse;
4818
+ /**
4819
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4820
+ */
4821
+ 401: ApiErrorResponse;
4822
+ /**
4823
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4824
+ */
4825
+ 403: ApiErrorResponse;
4826
+ /**
4827
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4828
+ */
4829
+ 404: ApiErrorResponse;
4830
+ /**
4831
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4832
+ */
4833
+ 429: ApiErrorResponse;
4834
+ /**
4835
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4836
+ */
4837
+ 500: ApiErrorResponse;
4838
+ };
4839
+ type AssetClassDocumentControllerGetError = AssetClassDocumentControllerGetErrors[keyof AssetClassDocumentControllerGetErrors];
4840
+ type AssetClassDocumentControllerGetResponses = {
4841
+ 200: DocumentResponseDto;
4842
+ };
4843
+ type AssetClassDocumentControllerGetResponse = AssetClassDocumentControllerGetResponses[keyof AssetClassDocumentControllerGetResponses];
4844
+ type AssetClassDocumentControllerUpdateData = {
4845
+ body: UpdateDocumentDto;
4846
+ headers?: {
4847
+ /**
4848
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
4849
+ */
4850
+ 'Idempotency-Key'?: string;
4851
+ };
4852
+ path: {
4853
+ /**
4854
+ * Document ID (numeric string)
4855
+ */
4856
+ id: string;
4857
+ };
4858
+ query?: never;
4859
+ url: '/asset-class-document/{id}';
4860
+ };
4861
+ type AssetClassDocumentControllerUpdateErrors = {
4862
+ /**
4863
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4864
+ */
4865
+ 400: ApiErrorResponse;
4866
+ /**
4867
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4868
+ */
4869
+ 401: ApiErrorResponse;
4870
+ /**
4871
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4872
+ */
4873
+ 403: ApiErrorResponse;
4874
+ /**
4875
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4876
+ */
4877
+ 404: ApiErrorResponse;
4878
+ /**
4879
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4880
+ */
4881
+ 429: ApiErrorResponse;
4882
+ /**
4883
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4884
+ */
4885
+ 500: ApiErrorResponse;
4886
+ };
4887
+ type AssetClassDocumentControllerUpdateError = AssetClassDocumentControllerUpdateErrors[keyof AssetClassDocumentControllerUpdateErrors];
4888
+ type AssetClassDocumentControllerUpdateResponses = {
4889
+ 200: DocumentResponseDto;
4890
+ };
4891
+ type AssetClassDocumentControllerUpdateResponse = AssetClassDocumentControllerUpdateResponses[keyof AssetClassDocumentControllerUpdateResponses];
4892
+ type AssetClassDocumentControllerCreateData = {
4893
+ body: CreateDocumentDto;
4894
+ headers?: {
4895
+ /**
4896
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
4897
+ */
4898
+ 'Idempotency-Key'?: string;
4899
+ };
4900
+ path?: never;
4901
+ query?: never;
4902
+ url: '/asset-class-document';
4903
+ };
4904
+ type AssetClassDocumentControllerCreateErrors = {
4905
+ /**
4906
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4907
+ */
4908
+ 400: ApiErrorResponse;
4909
+ /**
4910
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4911
+ */
4912
+ 401: ApiErrorResponse;
4913
+ /**
4914
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4915
+ */
4916
+ 403: ApiErrorResponse;
4917
+ /**
4918
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
4919
+ */
4920
+ 404: ApiErrorResponse;
4921
+ /**
4922
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
4923
+ */
4924
+ 409: ApiErrorResponse;
4925
+ /**
4926
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4927
+ */
4928
+ 429: ApiErrorResponse;
4929
+ /**
4930
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
4931
+ */
4932
+ 500: ApiErrorResponse;
4933
+ };
4934
+ type AssetClassDocumentControllerCreateError = AssetClassDocumentControllerCreateErrors[keyof AssetClassDocumentControllerCreateErrors];
4935
+ type AssetClassDocumentControllerCreateResponses = {
4936
+ 201: DocumentResponseDto;
4937
+ };
4938
+ type AssetClassDocumentControllerCreateResponse = AssetClassDocumentControllerCreateResponses[keyof AssetClassDocumentControllerCreateResponses];
4939
+ type UserDocumentControllerListData = {
4940
+ body?: never;
4941
+ path?: never;
4942
+ query?: {
4943
+ /**
4944
+ * Results per page
4945
+ */
4946
+ per_page?: number;
4947
+ /**
4948
+ * Page number
4949
+ */
4950
+ page?: number;
4951
+ direction?: 'asc' | 'desc';
4952
+ /**
4953
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
4954
+ */
4955
+ sort?: string;
4956
+ /**
4957
+ * Filter to one parent by its publicId (UUID)
4958
+ */
4959
+ parent_id?: string;
4960
+ /**
4961
+ * Filter by document type id (numeric string)
4962
+ */
4963
+ document_type_id?: string;
4964
+ /**
4965
+ * Filter by name (case-insensitive partial)
4966
+ */
4967
+ name?: string;
4968
+ /**
4969
+ * Filter: expires_on >= (ISO date)
4970
+ */
4971
+ expires_on_from?: string;
4972
+ /**
4973
+ * Filter: expires_on <= (ISO date)
4974
+ */
4975
+ expires_on_to?: string;
4976
+ /**
4977
+ * Filter: updated_at >= (ISO) — incremental sync watermark
4978
+ */
4979
+ document_date_updated_from?: string;
4980
+ /**
4981
+ * Filter: updated_at <= (ISO)
4982
+ */
4983
+ document_date_updated_to?: string;
4984
+ };
4985
+ url: '/user-document/list';
4986
+ };
4987
+ type UserDocumentControllerListErrors = {
4988
+ /**
4989
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
4990
+ */
4991
+ 400: ApiErrorResponse;
4992
+ /**
4993
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
4994
+ */
4995
+ 401: ApiErrorResponse;
4996
+ /**
4997
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
4998
+ */
4999
+ 403: ApiErrorResponse;
5000
+ /**
5001
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5002
+ */
5003
+ 429: ApiErrorResponse;
5004
+ /**
5005
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5006
+ */
5007
+ 500: ApiErrorResponse;
5008
+ };
5009
+ type UserDocumentControllerListError = UserDocumentControllerListErrors[keyof UserDocumentControllerListErrors];
5010
+ type UserDocumentControllerListResponses = {
5011
+ 200: ListDocumentsResponseDto;
5012
+ };
5013
+ type UserDocumentControllerListResponse = UserDocumentControllerListResponses[keyof UserDocumentControllerListResponses];
5014
+ type UserDocumentControllerRemoveData = {
5015
+ body?: never;
5016
+ path: {
5017
+ /**
5018
+ * Document ID (numeric string)
5019
+ */
5020
+ id: string;
5021
+ };
5022
+ query?: never;
5023
+ url: '/user-document/{id}';
5024
+ };
5025
+ type UserDocumentControllerRemoveErrors = {
5026
+ /**
5027
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5028
+ */
5029
+ 400: ApiErrorResponse;
5030
+ /**
5031
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5032
+ */
5033
+ 401: ApiErrorResponse;
5034
+ /**
5035
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5036
+ */
5037
+ 403: ApiErrorResponse;
5038
+ /**
5039
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5040
+ */
5041
+ 404: ApiErrorResponse;
5042
+ /**
5043
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5044
+ */
5045
+ 429: ApiErrorResponse;
5046
+ /**
5047
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5048
+ */
5049
+ 500: ApiErrorResponse;
5050
+ };
5051
+ type UserDocumentControllerRemoveError = UserDocumentControllerRemoveErrors[keyof UserDocumentControllerRemoveErrors];
5052
+ type UserDocumentControllerRemoveResponses = {
5053
+ 200: DeleteDocumentResponseDto;
5054
+ };
5055
+ type UserDocumentControllerRemoveResponse = UserDocumentControllerRemoveResponses[keyof UserDocumentControllerRemoveResponses];
5056
+ type UserDocumentControllerGetData = {
5057
+ body?: never;
5058
+ path: {
5059
+ /**
5060
+ * Document ID (numeric string)
5061
+ */
5062
+ id: string;
5063
+ };
5064
+ query?: never;
5065
+ url: '/user-document/{id}';
5066
+ };
5067
+ type UserDocumentControllerGetErrors = {
5068
+ /**
5069
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5070
+ */
5071
+ 400: ApiErrorResponse;
5072
+ /**
5073
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5074
+ */
5075
+ 401: ApiErrorResponse;
5076
+ /**
5077
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5078
+ */
5079
+ 403: ApiErrorResponse;
5080
+ /**
5081
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5082
+ */
5083
+ 404: ApiErrorResponse;
5084
+ /**
5085
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5086
+ */
5087
+ 429: ApiErrorResponse;
5088
+ /**
5089
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5090
+ */
5091
+ 500: ApiErrorResponse;
5092
+ };
5093
+ type UserDocumentControllerGetError = UserDocumentControllerGetErrors[keyof UserDocumentControllerGetErrors];
5094
+ type UserDocumentControllerGetResponses = {
5095
+ 200: DocumentResponseDto;
5096
+ };
5097
+ type UserDocumentControllerGetResponse = UserDocumentControllerGetResponses[keyof UserDocumentControllerGetResponses];
5098
+ type UserDocumentControllerUpdateData = {
5099
+ body: UpdateDocumentDto;
5100
+ headers?: {
5101
+ /**
5102
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5103
+ */
5104
+ 'Idempotency-Key'?: string;
5105
+ };
5106
+ path: {
5107
+ /**
5108
+ * Document ID (numeric string)
5109
+ */
5110
+ id: string;
5111
+ };
5112
+ query?: never;
5113
+ url: '/user-document/{id}';
5114
+ };
5115
+ type UserDocumentControllerUpdateErrors = {
5116
+ /**
5117
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5118
+ */
5119
+ 400: ApiErrorResponse;
5120
+ /**
5121
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5122
+ */
5123
+ 401: ApiErrorResponse;
5124
+ /**
5125
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5126
+ */
5127
+ 403: ApiErrorResponse;
5128
+ /**
5129
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5130
+ */
5131
+ 404: ApiErrorResponse;
5132
+ /**
5133
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5134
+ */
5135
+ 429: ApiErrorResponse;
5136
+ /**
5137
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5138
+ */
5139
+ 500: ApiErrorResponse;
5140
+ };
5141
+ type UserDocumentControllerUpdateError = UserDocumentControllerUpdateErrors[keyof UserDocumentControllerUpdateErrors];
5142
+ type UserDocumentControllerUpdateResponses = {
5143
+ 200: DocumentResponseDto;
5144
+ };
5145
+ type UserDocumentControllerUpdateResponse = UserDocumentControllerUpdateResponses[keyof UserDocumentControllerUpdateResponses];
5146
+ type UserDocumentControllerCreateData = {
5147
+ body: CreateDocumentDto;
5148
+ headers?: {
5149
+ /**
5150
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5151
+ */
5152
+ 'Idempotency-Key'?: string;
5153
+ };
5154
+ path?: never;
5155
+ query?: never;
5156
+ url: '/user-document';
5157
+ };
5158
+ type UserDocumentControllerCreateErrors = {
5159
+ /**
5160
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5161
+ */
5162
+ 400: ApiErrorResponse;
5163
+ /**
5164
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5165
+ */
5166
+ 401: ApiErrorResponse;
5167
+ /**
5168
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5169
+ */
5170
+ 403: ApiErrorResponse;
5171
+ /**
5172
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5173
+ */
5174
+ 404: ApiErrorResponse;
5175
+ /**
5176
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
5177
+ */
5178
+ 409: ApiErrorResponse;
5179
+ /**
5180
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5181
+ */
5182
+ 429: ApiErrorResponse;
5183
+ /**
5184
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5185
+ */
5186
+ 500: ApiErrorResponse;
5187
+ };
5188
+ type UserDocumentControllerCreateError = UserDocumentControllerCreateErrors[keyof UserDocumentControllerCreateErrors];
5189
+ type UserDocumentControllerCreateResponses = {
5190
+ 201: DocumentResponseDto;
5191
+ };
5192
+ type UserDocumentControllerCreateResponse = UserDocumentControllerCreateResponses[keyof UserDocumentControllerCreateResponses];
5193
+ type SiteDocumentControllerListData = {
5194
+ body?: never;
5195
+ path?: never;
5196
+ query?: {
5197
+ /**
5198
+ * Results per page
5199
+ */
5200
+ per_page?: number;
5201
+ /**
5202
+ * Page number
5203
+ */
5204
+ page?: number;
5205
+ direction?: 'asc' | 'desc';
5206
+ /**
5207
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
5208
+ */
5209
+ sort?: string;
5210
+ /**
5211
+ * Filter to one parent by its publicId (UUID)
5212
+ */
5213
+ parent_id?: string;
5214
+ /**
5215
+ * Filter by document type id (numeric string)
5216
+ */
5217
+ document_type_id?: string;
5218
+ /**
5219
+ * Filter by name (case-insensitive partial)
5220
+ */
5221
+ name?: string;
5222
+ /**
5223
+ * Filter: expires_on >= (ISO date)
5224
+ */
5225
+ expires_on_from?: string;
5226
+ /**
5227
+ * Filter: expires_on <= (ISO date)
5228
+ */
5229
+ expires_on_to?: string;
5230
+ /**
5231
+ * Filter: updated_at >= (ISO) — incremental sync watermark
5232
+ */
5233
+ document_date_updated_from?: string;
5234
+ /**
5235
+ * Filter: updated_at <= (ISO)
5236
+ */
5237
+ document_date_updated_to?: string;
5238
+ };
5239
+ url: '/site-document/list';
5240
+ };
5241
+ type SiteDocumentControllerListErrors = {
5242
+ /**
5243
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5244
+ */
5245
+ 400: ApiErrorResponse;
5246
+ /**
5247
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5248
+ */
5249
+ 401: ApiErrorResponse;
5250
+ /**
5251
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5252
+ */
5253
+ 403: ApiErrorResponse;
5254
+ /**
5255
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5256
+ */
5257
+ 429: ApiErrorResponse;
5258
+ /**
5259
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5260
+ */
5261
+ 500: ApiErrorResponse;
5262
+ };
5263
+ type SiteDocumentControllerListError = SiteDocumentControllerListErrors[keyof SiteDocumentControllerListErrors];
5264
+ type SiteDocumentControllerListResponses = {
5265
+ 200: ListDocumentsResponseDto;
5266
+ };
5267
+ type SiteDocumentControllerListResponse = SiteDocumentControllerListResponses[keyof SiteDocumentControllerListResponses];
5268
+ type SiteDocumentControllerRemoveData = {
5269
+ body?: never;
5270
+ path: {
5271
+ /**
5272
+ * Document ID (numeric string)
5273
+ */
5274
+ id: string;
5275
+ };
5276
+ query?: never;
5277
+ url: '/site-document/{id}';
5278
+ };
5279
+ type SiteDocumentControllerRemoveErrors = {
5280
+ /**
5281
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5282
+ */
5283
+ 400: ApiErrorResponse;
5284
+ /**
5285
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5286
+ */
5287
+ 401: ApiErrorResponse;
5288
+ /**
5289
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5290
+ */
5291
+ 403: ApiErrorResponse;
5292
+ /**
5293
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5294
+ */
5295
+ 404: ApiErrorResponse;
5296
+ /**
5297
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5298
+ */
5299
+ 429: ApiErrorResponse;
5300
+ /**
5301
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5302
+ */
5303
+ 500: ApiErrorResponse;
5304
+ };
5305
+ type SiteDocumentControllerRemoveError = SiteDocumentControllerRemoveErrors[keyof SiteDocumentControllerRemoveErrors];
5306
+ type SiteDocumentControllerRemoveResponses = {
5307
+ 200: DeleteDocumentResponseDto;
5308
+ };
5309
+ type SiteDocumentControllerRemoveResponse = SiteDocumentControllerRemoveResponses[keyof SiteDocumentControllerRemoveResponses];
5310
+ type SiteDocumentControllerGetData = {
5311
+ body?: never;
5312
+ path: {
5313
+ /**
5314
+ * Document ID (numeric string)
5315
+ */
5316
+ id: string;
5317
+ };
5318
+ query?: never;
5319
+ url: '/site-document/{id}';
5320
+ };
5321
+ type SiteDocumentControllerGetErrors = {
5322
+ /**
5323
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5324
+ */
5325
+ 400: ApiErrorResponse;
5326
+ /**
5327
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5328
+ */
5329
+ 401: ApiErrorResponse;
5330
+ /**
5331
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5332
+ */
5333
+ 403: ApiErrorResponse;
5334
+ /**
5335
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5336
+ */
5337
+ 404: ApiErrorResponse;
5338
+ /**
5339
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5340
+ */
5341
+ 429: ApiErrorResponse;
5342
+ /**
5343
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5344
+ */
5345
+ 500: ApiErrorResponse;
5346
+ };
5347
+ type SiteDocumentControllerGetError = SiteDocumentControllerGetErrors[keyof SiteDocumentControllerGetErrors];
5348
+ type SiteDocumentControllerGetResponses = {
5349
+ 200: DocumentResponseDto;
5350
+ };
5351
+ type SiteDocumentControllerGetResponse = SiteDocumentControllerGetResponses[keyof SiteDocumentControllerGetResponses];
5352
+ type SiteDocumentControllerUpdateData = {
5353
+ body: UpdateDocumentDto;
5354
+ headers?: {
5355
+ /**
5356
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5357
+ */
5358
+ 'Idempotency-Key'?: string;
5359
+ };
5360
+ path: {
5361
+ /**
5362
+ * Document ID (numeric string)
5363
+ */
5364
+ id: string;
5365
+ };
5366
+ query?: never;
5367
+ url: '/site-document/{id}';
5368
+ };
5369
+ type SiteDocumentControllerUpdateErrors = {
5370
+ /**
5371
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5372
+ */
5373
+ 400: ApiErrorResponse;
5374
+ /**
5375
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5376
+ */
5377
+ 401: ApiErrorResponse;
5378
+ /**
5379
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5380
+ */
5381
+ 403: ApiErrorResponse;
5382
+ /**
5383
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5384
+ */
5385
+ 404: ApiErrorResponse;
5386
+ /**
5387
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5388
+ */
5389
+ 429: ApiErrorResponse;
5390
+ /**
5391
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5392
+ */
5393
+ 500: ApiErrorResponse;
5394
+ };
5395
+ type SiteDocumentControllerUpdateError = SiteDocumentControllerUpdateErrors[keyof SiteDocumentControllerUpdateErrors];
5396
+ type SiteDocumentControllerUpdateResponses = {
5397
+ 200: DocumentResponseDto;
5398
+ };
5399
+ type SiteDocumentControllerUpdateResponse = SiteDocumentControllerUpdateResponses[keyof SiteDocumentControllerUpdateResponses];
5400
+ type SiteDocumentControllerCreateData = {
5401
+ body: CreateDocumentDto;
5402
+ headers?: {
5403
+ /**
5404
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5405
+ */
5406
+ 'Idempotency-Key'?: string;
5407
+ };
5408
+ path?: never;
5409
+ query?: never;
5410
+ url: '/site-document';
5411
+ };
5412
+ type SiteDocumentControllerCreateErrors = {
5413
+ /**
5414
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5415
+ */
5416
+ 400: ApiErrorResponse;
5417
+ /**
5418
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5419
+ */
5420
+ 401: ApiErrorResponse;
5421
+ /**
5422
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5423
+ */
5424
+ 403: ApiErrorResponse;
5425
+ /**
5426
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5427
+ */
5428
+ 404: ApiErrorResponse;
5429
+ /**
5430
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
5431
+ */
5432
+ 409: ApiErrorResponse;
5433
+ /**
5434
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5435
+ */
5436
+ 429: ApiErrorResponse;
5437
+ /**
5438
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5439
+ */
5440
+ 500: ApiErrorResponse;
5441
+ };
5442
+ type SiteDocumentControllerCreateError = SiteDocumentControllerCreateErrors[keyof SiteDocumentControllerCreateErrors];
5443
+ type SiteDocumentControllerCreateResponses = {
5444
+ 201: DocumentResponseDto;
5445
+ };
5446
+ type SiteDocumentControllerCreateResponse = SiteDocumentControllerCreateResponses[keyof SiteDocumentControllerCreateResponses];
5447
+ type CustomerDocumentControllerListData = {
5448
+ body?: never;
5449
+ path?: never;
5450
+ query?: {
5451
+ /**
5452
+ * Results per page
5453
+ */
5454
+ per_page?: number;
5455
+ /**
5456
+ * Page number
5457
+ */
5458
+ page?: number;
5459
+ direction?: 'asc' | 'desc';
5460
+ /**
5461
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
5462
+ */
5463
+ sort?: string;
5464
+ /**
5465
+ * Filter to one parent by its publicId (UUID)
5466
+ */
5467
+ parent_id?: string;
5468
+ /**
5469
+ * Filter by document type id (numeric string)
5470
+ */
5471
+ document_type_id?: string;
5472
+ /**
5473
+ * Filter by name (case-insensitive partial)
5474
+ */
5475
+ name?: string;
5476
+ /**
5477
+ * Filter: expires_on >= (ISO date)
5478
+ */
5479
+ expires_on_from?: string;
5480
+ /**
5481
+ * Filter: expires_on <= (ISO date)
5482
+ */
5483
+ expires_on_to?: string;
5484
+ /**
5485
+ * Filter: updated_at >= (ISO) — incremental sync watermark
5486
+ */
5487
+ document_date_updated_from?: string;
5488
+ /**
5489
+ * Filter: updated_at <= (ISO)
5490
+ */
5491
+ document_date_updated_to?: string;
5492
+ };
5493
+ url: '/customer-document/list';
5494
+ };
5495
+ type CustomerDocumentControllerListErrors = {
5496
+ /**
5497
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5498
+ */
5499
+ 400: ApiErrorResponse;
5500
+ /**
5501
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5502
+ */
5503
+ 401: ApiErrorResponse;
5504
+ /**
5505
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5506
+ */
5507
+ 403: ApiErrorResponse;
5508
+ /**
5509
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5510
+ */
5511
+ 429: ApiErrorResponse;
5512
+ /**
5513
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5514
+ */
5515
+ 500: ApiErrorResponse;
5516
+ };
5517
+ type CustomerDocumentControllerListError = CustomerDocumentControllerListErrors[keyof CustomerDocumentControllerListErrors];
5518
+ type CustomerDocumentControllerListResponses = {
5519
+ 200: ListDocumentsResponseDto;
5520
+ };
5521
+ type CustomerDocumentControllerListResponse = CustomerDocumentControllerListResponses[keyof CustomerDocumentControllerListResponses];
5522
+ type CustomerDocumentControllerRemoveData = {
5523
+ body?: never;
5524
+ path: {
5525
+ /**
5526
+ * Document ID (numeric string)
5527
+ */
5528
+ id: string;
5529
+ };
5530
+ query?: never;
5531
+ url: '/customer-document/{id}';
5532
+ };
5533
+ type CustomerDocumentControllerRemoveErrors = {
5534
+ /**
5535
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5536
+ */
5537
+ 400: ApiErrorResponse;
5538
+ /**
5539
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5540
+ */
5541
+ 401: ApiErrorResponse;
5542
+ /**
5543
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5544
+ */
5545
+ 403: ApiErrorResponse;
5546
+ /**
5547
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5548
+ */
5549
+ 404: ApiErrorResponse;
5550
+ /**
5551
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5552
+ */
5553
+ 429: ApiErrorResponse;
5554
+ /**
5555
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5556
+ */
5557
+ 500: ApiErrorResponse;
5558
+ };
5559
+ type CustomerDocumentControllerRemoveError = CustomerDocumentControllerRemoveErrors[keyof CustomerDocumentControllerRemoveErrors];
5560
+ type CustomerDocumentControllerRemoveResponses = {
5561
+ 200: DeleteDocumentResponseDto;
5562
+ };
5563
+ type CustomerDocumentControllerRemoveResponse = CustomerDocumentControllerRemoveResponses[keyof CustomerDocumentControllerRemoveResponses];
5564
+ type CustomerDocumentControllerGetData = {
5565
+ body?: never;
5566
+ path: {
5567
+ /**
5568
+ * Document ID (numeric string)
5569
+ */
5570
+ id: string;
5571
+ };
5572
+ query?: never;
5573
+ url: '/customer-document/{id}';
5574
+ };
5575
+ type CustomerDocumentControllerGetErrors = {
5576
+ /**
5577
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5578
+ */
5579
+ 400: ApiErrorResponse;
5580
+ /**
5581
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5582
+ */
5583
+ 401: ApiErrorResponse;
5584
+ /**
5585
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5586
+ */
5587
+ 403: ApiErrorResponse;
5588
+ /**
5589
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5590
+ */
5591
+ 404: ApiErrorResponse;
5592
+ /**
5593
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5594
+ */
5595
+ 429: ApiErrorResponse;
5596
+ /**
5597
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5598
+ */
5599
+ 500: ApiErrorResponse;
5600
+ };
5601
+ type CustomerDocumentControllerGetError = CustomerDocumentControllerGetErrors[keyof CustomerDocumentControllerGetErrors];
5602
+ type CustomerDocumentControllerGetResponses = {
5603
+ 200: DocumentResponseDto;
5604
+ };
5605
+ type CustomerDocumentControllerGetResponse = CustomerDocumentControllerGetResponses[keyof CustomerDocumentControllerGetResponses];
5606
+ type CustomerDocumentControllerUpdateData = {
5607
+ body: UpdateDocumentDto;
5608
+ headers?: {
5609
+ /**
5610
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5611
+ */
5612
+ 'Idempotency-Key'?: string;
5613
+ };
5614
+ path: {
5615
+ /**
5616
+ * Document ID (numeric string)
5617
+ */
5618
+ id: string;
5619
+ };
5620
+ query?: never;
5621
+ url: '/customer-document/{id}';
5622
+ };
5623
+ type CustomerDocumentControllerUpdateErrors = {
5624
+ /**
5625
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5626
+ */
5627
+ 400: ApiErrorResponse;
5628
+ /**
5629
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5630
+ */
5631
+ 401: ApiErrorResponse;
5632
+ /**
5633
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5634
+ */
5635
+ 403: ApiErrorResponse;
5636
+ /**
5637
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5638
+ */
5639
+ 404: ApiErrorResponse;
5640
+ /**
5641
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5642
+ */
5643
+ 429: ApiErrorResponse;
5644
+ /**
5645
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5646
+ */
5647
+ 500: ApiErrorResponse;
5648
+ };
5649
+ type CustomerDocumentControllerUpdateError = CustomerDocumentControllerUpdateErrors[keyof CustomerDocumentControllerUpdateErrors];
5650
+ type CustomerDocumentControllerUpdateResponses = {
5651
+ 200: DocumentResponseDto;
5652
+ };
5653
+ type CustomerDocumentControllerUpdateResponse = CustomerDocumentControllerUpdateResponses[keyof CustomerDocumentControllerUpdateResponses];
5654
+ type CustomerDocumentControllerCreateData = {
5655
+ body: CreateDocumentDto;
5656
+ headers?: {
5657
+ /**
5658
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5659
+ */
5660
+ 'Idempotency-Key'?: string;
5661
+ };
5662
+ path?: never;
5663
+ query?: never;
5664
+ url: '/customer-document';
5665
+ };
5666
+ type CustomerDocumentControllerCreateErrors = {
5667
+ /**
5668
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5669
+ */
5670
+ 400: ApiErrorResponse;
5671
+ /**
5672
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5673
+ */
5674
+ 401: ApiErrorResponse;
5675
+ /**
5676
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5677
+ */
5678
+ 403: ApiErrorResponse;
5679
+ /**
5680
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5681
+ */
5682
+ 404: ApiErrorResponse;
5683
+ /**
5684
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
5685
+ */
5686
+ 409: ApiErrorResponse;
5687
+ /**
5688
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5689
+ */
5690
+ 429: ApiErrorResponse;
5691
+ /**
5692
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5693
+ */
5694
+ 500: ApiErrorResponse;
5695
+ };
5696
+ type CustomerDocumentControllerCreateError = CustomerDocumentControllerCreateErrors[keyof CustomerDocumentControllerCreateErrors];
5697
+ type CustomerDocumentControllerCreateResponses = {
5698
+ 201: DocumentResponseDto;
5699
+ };
5700
+ type CustomerDocumentControllerCreateResponse = CustomerDocumentControllerCreateResponses[keyof CustomerDocumentControllerCreateResponses];
5701
+ type ProjectDocumentControllerListData = {
5702
+ body?: never;
5703
+ path?: never;
5704
+ query?: {
5705
+ /**
5706
+ * Results per page
5707
+ */
5708
+ per_page?: number;
5709
+ /**
5710
+ * Page number
5711
+ */
5712
+ page?: number;
5713
+ direction?: 'asc' | 'desc';
5714
+ /**
5715
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
5716
+ */
5717
+ sort?: string;
5718
+ /**
5719
+ * Filter to one parent by its publicId (UUID)
5720
+ */
5721
+ parent_id?: string;
5722
+ /**
5723
+ * Filter by document type id (numeric string)
5724
+ */
5725
+ document_type_id?: string;
5726
+ /**
5727
+ * Filter by name (case-insensitive partial)
5728
+ */
5729
+ name?: string;
5730
+ /**
5731
+ * Filter: expires_on >= (ISO date)
5732
+ */
5733
+ expires_on_from?: string;
5734
+ /**
5735
+ * Filter: expires_on <= (ISO date)
5736
+ */
5737
+ expires_on_to?: string;
5738
+ /**
5739
+ * Filter: updated_at >= (ISO) — incremental sync watermark
5740
+ */
5741
+ document_date_updated_from?: string;
5742
+ /**
5743
+ * Filter: updated_at <= (ISO)
5744
+ */
5745
+ document_date_updated_to?: string;
5746
+ };
5747
+ url: '/project-document/list';
5748
+ };
5749
+ type ProjectDocumentControllerListErrors = {
5750
+ /**
5751
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5752
+ */
5753
+ 400: ApiErrorResponse;
5754
+ /**
5755
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5756
+ */
5757
+ 401: ApiErrorResponse;
5758
+ /**
5759
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5760
+ */
5761
+ 403: ApiErrorResponse;
5762
+ /**
5763
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5764
+ */
5765
+ 429: ApiErrorResponse;
5766
+ /**
5767
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5768
+ */
5769
+ 500: ApiErrorResponse;
5770
+ };
5771
+ type ProjectDocumentControllerListError = ProjectDocumentControllerListErrors[keyof ProjectDocumentControllerListErrors];
5772
+ type ProjectDocumentControllerListResponses = {
5773
+ 200: ListDocumentsResponseDto;
5774
+ };
5775
+ type ProjectDocumentControllerListResponse = ProjectDocumentControllerListResponses[keyof ProjectDocumentControllerListResponses];
5776
+ type ProjectDocumentControllerRemoveData = {
5777
+ body?: never;
5778
+ path: {
5779
+ /**
5780
+ * Document ID (numeric string)
5781
+ */
5782
+ id: string;
5783
+ };
5784
+ query?: never;
5785
+ url: '/project-document/{id}';
5786
+ };
5787
+ type ProjectDocumentControllerRemoveErrors = {
5788
+ /**
5789
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5790
+ */
5791
+ 400: ApiErrorResponse;
5792
+ /**
5793
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5794
+ */
5795
+ 401: ApiErrorResponse;
5796
+ /**
5797
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5798
+ */
5799
+ 403: ApiErrorResponse;
5800
+ /**
5801
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5802
+ */
5803
+ 404: ApiErrorResponse;
5804
+ /**
5805
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5806
+ */
5807
+ 429: ApiErrorResponse;
5808
+ /**
5809
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5810
+ */
5811
+ 500: ApiErrorResponse;
5812
+ };
5813
+ type ProjectDocumentControllerRemoveError = ProjectDocumentControllerRemoveErrors[keyof ProjectDocumentControllerRemoveErrors];
5814
+ type ProjectDocumentControllerRemoveResponses = {
5815
+ 200: DeleteDocumentResponseDto;
5816
+ };
5817
+ type ProjectDocumentControllerRemoveResponse = ProjectDocumentControllerRemoveResponses[keyof ProjectDocumentControllerRemoveResponses];
5818
+ type ProjectDocumentControllerGetData = {
5819
+ body?: never;
5820
+ path: {
5821
+ /**
5822
+ * Document ID (numeric string)
5823
+ */
5824
+ id: string;
5825
+ };
5826
+ query?: never;
5827
+ url: '/project-document/{id}';
5828
+ };
5829
+ type ProjectDocumentControllerGetErrors = {
5830
+ /**
5831
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5832
+ */
5833
+ 400: ApiErrorResponse;
5834
+ /**
5835
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5836
+ */
5837
+ 401: ApiErrorResponse;
5838
+ /**
5839
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5840
+ */
5841
+ 403: ApiErrorResponse;
5842
+ /**
5843
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5844
+ */
5845
+ 404: ApiErrorResponse;
5846
+ /**
5847
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5848
+ */
5849
+ 429: ApiErrorResponse;
5850
+ /**
5851
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5852
+ */
5853
+ 500: ApiErrorResponse;
5854
+ };
5855
+ type ProjectDocumentControllerGetError = ProjectDocumentControllerGetErrors[keyof ProjectDocumentControllerGetErrors];
5856
+ type ProjectDocumentControllerGetResponses = {
5857
+ 200: DocumentResponseDto;
5858
+ };
5859
+ type ProjectDocumentControllerGetResponse = ProjectDocumentControllerGetResponses[keyof ProjectDocumentControllerGetResponses];
5860
+ type ProjectDocumentControllerUpdateData = {
5861
+ body: UpdateDocumentDto;
5862
+ headers?: {
5863
+ /**
5864
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5865
+ */
5866
+ 'Idempotency-Key'?: string;
5867
+ };
5868
+ path: {
5869
+ /**
5870
+ * Document ID (numeric string)
5871
+ */
5872
+ id: string;
5873
+ };
5874
+ query?: never;
5875
+ url: '/project-document/{id}';
5876
+ };
5877
+ type ProjectDocumentControllerUpdateErrors = {
5878
+ /**
5879
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5880
+ */
5881
+ 400: ApiErrorResponse;
5882
+ /**
5883
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5884
+ */
5885
+ 401: ApiErrorResponse;
5886
+ /**
5887
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5888
+ */
5889
+ 403: ApiErrorResponse;
5890
+ /**
5891
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5892
+ */
5893
+ 404: ApiErrorResponse;
5894
+ /**
5895
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5896
+ */
5897
+ 429: ApiErrorResponse;
5898
+ /**
5899
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5900
+ */
5901
+ 500: ApiErrorResponse;
5902
+ };
5903
+ type ProjectDocumentControllerUpdateError = ProjectDocumentControllerUpdateErrors[keyof ProjectDocumentControllerUpdateErrors];
5904
+ type ProjectDocumentControllerUpdateResponses = {
5905
+ 200: DocumentResponseDto;
5906
+ };
5907
+ type ProjectDocumentControllerUpdateResponse = ProjectDocumentControllerUpdateResponses[keyof ProjectDocumentControllerUpdateResponses];
5908
+ type ProjectDocumentControllerCreateData = {
5909
+ body: CreateDocumentDto;
5910
+ headers?: {
5911
+ /**
5912
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
5913
+ */
5914
+ 'Idempotency-Key'?: string;
5915
+ };
5916
+ path?: never;
5917
+ query?: never;
5918
+ url: '/project-document';
5919
+ };
5920
+ type ProjectDocumentControllerCreateErrors = {
5921
+ /**
5922
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
5923
+ */
5924
+ 400: ApiErrorResponse;
5925
+ /**
5926
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
5927
+ */
5928
+ 401: ApiErrorResponse;
5929
+ /**
5930
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
5931
+ */
5932
+ 403: ApiErrorResponse;
5933
+ /**
5934
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
5935
+ */
5936
+ 404: ApiErrorResponse;
5937
+ /**
5938
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
5939
+ */
5940
+ 409: ApiErrorResponse;
5941
+ /**
5942
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
5943
+ */
5944
+ 429: ApiErrorResponse;
5945
+ /**
5946
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
5947
+ */
5948
+ 500: ApiErrorResponse;
5949
+ };
5950
+ type ProjectDocumentControllerCreateError = ProjectDocumentControllerCreateErrors[keyof ProjectDocumentControllerCreateErrors];
5951
+ type ProjectDocumentControllerCreateResponses = {
5952
+ 201: DocumentResponseDto;
5953
+ };
5954
+ type ProjectDocumentControllerCreateResponse = ProjectDocumentControllerCreateResponses[keyof ProjectDocumentControllerCreateResponses];
5955
+ type JobDocumentControllerListData = {
5956
+ body?: never;
5957
+ path?: never;
5958
+ query?: {
5959
+ /**
5960
+ * Results per page
5961
+ */
5962
+ per_page?: number;
5963
+ /**
5964
+ * Page number
5965
+ */
5966
+ page?: number;
5967
+ direction?: 'asc' | 'desc';
5968
+ /**
5969
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
5970
+ */
5971
+ sort?: string;
5972
+ /**
5973
+ * Filter to one parent by its publicId (UUID)
5974
+ */
5975
+ parent_id?: string;
5976
+ /**
5977
+ * Filter by document type id (numeric string)
5978
+ */
5979
+ document_type_id?: string;
5980
+ /**
5981
+ * Filter by name (case-insensitive partial)
5982
+ */
5983
+ name?: string;
5984
+ /**
5985
+ * Filter: expires_on >= (ISO date)
5986
+ */
5987
+ expires_on_from?: string;
5988
+ /**
5989
+ * Filter: expires_on <= (ISO date)
5990
+ */
5991
+ expires_on_to?: string;
5992
+ /**
5993
+ * Filter: updated_at >= (ISO) — incremental sync watermark
5994
+ */
5995
+ document_date_updated_from?: string;
5996
+ /**
5997
+ * Filter: updated_at <= (ISO)
5998
+ */
5999
+ document_date_updated_to?: string;
6000
+ };
6001
+ url: '/job-document/list';
6002
+ };
6003
+ type JobDocumentControllerListErrors = {
6004
+ /**
6005
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6006
+ */
6007
+ 400: ApiErrorResponse;
6008
+ /**
6009
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6010
+ */
6011
+ 401: ApiErrorResponse;
6012
+ /**
6013
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6014
+ */
6015
+ 403: ApiErrorResponse;
6016
+ /**
6017
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6018
+ */
6019
+ 429: ApiErrorResponse;
6020
+ /**
6021
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6022
+ */
6023
+ 500: ApiErrorResponse;
6024
+ };
6025
+ type JobDocumentControllerListError = JobDocumentControllerListErrors[keyof JobDocumentControllerListErrors];
6026
+ type JobDocumentControllerListResponses = {
6027
+ 200: ListDocumentsResponseDto;
6028
+ };
6029
+ type JobDocumentControllerListResponse = JobDocumentControllerListResponses[keyof JobDocumentControllerListResponses];
6030
+ type JobDocumentControllerRemoveData = {
6031
+ body?: never;
6032
+ path: {
6033
+ /**
6034
+ * Document ID (numeric string)
6035
+ */
6036
+ id: string;
6037
+ };
6038
+ query?: never;
6039
+ url: '/job-document/{id}';
6040
+ };
6041
+ type JobDocumentControllerRemoveErrors = {
6042
+ /**
6043
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6044
+ */
6045
+ 400: ApiErrorResponse;
6046
+ /**
6047
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6048
+ */
6049
+ 401: ApiErrorResponse;
6050
+ /**
6051
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6052
+ */
6053
+ 403: ApiErrorResponse;
6054
+ /**
6055
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6056
+ */
6057
+ 404: ApiErrorResponse;
6058
+ /**
6059
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6060
+ */
6061
+ 429: ApiErrorResponse;
6062
+ /**
6063
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6064
+ */
6065
+ 500: ApiErrorResponse;
6066
+ };
6067
+ type JobDocumentControllerRemoveError = JobDocumentControllerRemoveErrors[keyof JobDocumentControllerRemoveErrors];
6068
+ type JobDocumentControllerRemoveResponses = {
6069
+ 200: DeleteDocumentResponseDto;
6070
+ };
6071
+ type JobDocumentControllerRemoveResponse = JobDocumentControllerRemoveResponses[keyof JobDocumentControllerRemoveResponses];
6072
+ type JobDocumentControllerGetData = {
6073
+ body?: never;
6074
+ path: {
6075
+ /**
6076
+ * Document ID (numeric string)
6077
+ */
6078
+ id: string;
6079
+ };
6080
+ query?: never;
6081
+ url: '/job-document/{id}';
6082
+ };
6083
+ type JobDocumentControllerGetErrors = {
6084
+ /**
6085
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6086
+ */
6087
+ 400: ApiErrorResponse;
6088
+ /**
6089
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6090
+ */
6091
+ 401: ApiErrorResponse;
6092
+ /**
6093
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6094
+ */
6095
+ 403: ApiErrorResponse;
6096
+ /**
6097
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6098
+ */
6099
+ 404: ApiErrorResponse;
6100
+ /**
6101
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6102
+ */
6103
+ 429: ApiErrorResponse;
6104
+ /**
6105
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6106
+ */
6107
+ 500: ApiErrorResponse;
6108
+ };
6109
+ type JobDocumentControllerGetError = JobDocumentControllerGetErrors[keyof JobDocumentControllerGetErrors];
6110
+ type JobDocumentControllerGetResponses = {
6111
+ 200: DocumentResponseDto;
6112
+ };
6113
+ type JobDocumentControllerGetResponse = JobDocumentControllerGetResponses[keyof JobDocumentControllerGetResponses];
6114
+ type JobDocumentControllerUpdateData = {
6115
+ body: UpdateDocumentDto;
6116
+ headers?: {
6117
+ /**
6118
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6119
+ */
6120
+ 'Idempotency-Key'?: string;
6121
+ };
6122
+ path: {
6123
+ /**
6124
+ * Document ID (numeric string)
6125
+ */
6126
+ id: string;
6127
+ };
6128
+ query?: never;
6129
+ url: '/job-document/{id}';
6130
+ };
6131
+ type JobDocumentControllerUpdateErrors = {
6132
+ /**
6133
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6134
+ */
6135
+ 400: ApiErrorResponse;
6136
+ /**
6137
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6138
+ */
6139
+ 401: ApiErrorResponse;
6140
+ /**
6141
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6142
+ */
6143
+ 403: ApiErrorResponse;
6144
+ /**
6145
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6146
+ */
6147
+ 404: ApiErrorResponse;
6148
+ /**
6149
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6150
+ */
6151
+ 429: ApiErrorResponse;
6152
+ /**
6153
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6154
+ */
6155
+ 500: ApiErrorResponse;
6156
+ };
6157
+ type JobDocumentControllerUpdateError = JobDocumentControllerUpdateErrors[keyof JobDocumentControllerUpdateErrors];
6158
+ type JobDocumentControllerUpdateResponses = {
6159
+ 200: DocumentResponseDto;
6160
+ };
6161
+ type JobDocumentControllerUpdateResponse = JobDocumentControllerUpdateResponses[keyof JobDocumentControllerUpdateResponses];
6162
+ type JobDocumentControllerCreateData = {
6163
+ body: CreateDocumentDto;
6164
+ headers?: {
6165
+ /**
6166
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6167
+ */
6168
+ 'Idempotency-Key'?: string;
6169
+ };
6170
+ path?: never;
6171
+ query?: never;
6172
+ url: '/job-document';
6173
+ };
6174
+ type JobDocumentControllerCreateErrors = {
6175
+ /**
6176
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6177
+ */
6178
+ 400: ApiErrorResponse;
6179
+ /**
6180
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6181
+ */
6182
+ 401: ApiErrorResponse;
6183
+ /**
6184
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6185
+ */
6186
+ 403: ApiErrorResponse;
6187
+ /**
6188
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6189
+ */
6190
+ 404: ApiErrorResponse;
6191
+ /**
6192
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
6193
+ */
6194
+ 409: ApiErrorResponse;
6195
+ /**
6196
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6197
+ */
6198
+ 429: ApiErrorResponse;
6199
+ /**
6200
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6201
+ */
6202
+ 500: ApiErrorResponse;
6203
+ };
6204
+ type JobDocumentControllerCreateError = JobDocumentControllerCreateErrors[keyof JobDocumentControllerCreateErrors];
6205
+ type JobDocumentControllerCreateResponses = {
6206
+ 201: DocumentResponseDto;
6207
+ };
6208
+ type JobDocumentControllerCreateResponse = JobDocumentControllerCreateResponses[keyof JobDocumentControllerCreateResponses];
6209
+ type CompanyDocumentControllerListData = {
6210
+ body?: never;
6211
+ path?: never;
6212
+ query?: {
6213
+ /**
6214
+ * Results per page
6215
+ */
6216
+ per_page?: number;
6217
+ /**
6218
+ * Page number
6219
+ */
6220
+ page?: number;
6221
+ direction?: 'asc' | 'desc';
6222
+ /**
6223
+ * Sort field: name, issued_on, expires_on, created_at, updated_at, id (default updated_at)
6224
+ */
6225
+ sort?: string;
6226
+ /**
6227
+ * Filter to one parent by its publicId (UUID)
6228
+ */
6229
+ parent_id?: string;
6230
+ /**
6231
+ * Filter by document type id (numeric string)
6232
+ */
6233
+ document_type_id?: string;
6234
+ /**
6235
+ * Filter by name (case-insensitive partial)
6236
+ */
6237
+ name?: string;
6238
+ /**
6239
+ * Filter: expires_on >= (ISO date)
6240
+ */
6241
+ expires_on_from?: string;
6242
+ /**
6243
+ * Filter: expires_on <= (ISO date)
6244
+ */
6245
+ expires_on_to?: string;
6246
+ /**
6247
+ * Filter: updated_at >= (ISO) — incremental sync watermark
6248
+ */
6249
+ document_date_updated_from?: string;
6250
+ /**
6251
+ * Filter: updated_at <= (ISO)
6252
+ */
6253
+ document_date_updated_to?: string;
6254
+ };
6255
+ url: '/company-document/list';
6256
+ };
6257
+ type CompanyDocumentControllerListErrors = {
6258
+ /**
6259
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6260
+ */
6261
+ 400: ApiErrorResponse;
6262
+ /**
6263
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6264
+ */
6265
+ 401: ApiErrorResponse;
6266
+ /**
6267
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6268
+ */
6269
+ 403: ApiErrorResponse;
6270
+ /**
6271
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6272
+ */
6273
+ 429: ApiErrorResponse;
6274
+ /**
6275
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6276
+ */
6277
+ 500: ApiErrorResponse;
6278
+ };
6279
+ type CompanyDocumentControllerListError = CompanyDocumentControllerListErrors[keyof CompanyDocumentControllerListErrors];
6280
+ type CompanyDocumentControllerListResponses = {
6281
+ 200: ListDocumentsResponseDto;
6282
+ };
6283
+ type CompanyDocumentControllerListResponse = CompanyDocumentControllerListResponses[keyof CompanyDocumentControllerListResponses];
6284
+ type CompanyDocumentControllerRemoveData = {
6285
+ body?: never;
6286
+ path: {
6287
+ /**
6288
+ * Document ID (numeric string)
6289
+ */
6290
+ id: string;
6291
+ };
6292
+ query?: never;
6293
+ url: '/company-document/{id}';
6294
+ };
6295
+ type CompanyDocumentControllerRemoveErrors = {
6296
+ /**
6297
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6298
+ */
6299
+ 400: ApiErrorResponse;
6300
+ /**
6301
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6302
+ */
6303
+ 401: ApiErrorResponse;
6304
+ /**
6305
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6306
+ */
6307
+ 403: ApiErrorResponse;
6308
+ /**
6309
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6310
+ */
6311
+ 404: ApiErrorResponse;
6312
+ /**
6313
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6314
+ */
6315
+ 429: ApiErrorResponse;
6316
+ /**
6317
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6318
+ */
6319
+ 500: ApiErrorResponse;
6320
+ };
6321
+ type CompanyDocumentControllerRemoveError = CompanyDocumentControllerRemoveErrors[keyof CompanyDocumentControllerRemoveErrors];
6322
+ type CompanyDocumentControllerRemoveResponses = {
6323
+ 200: DeleteDocumentResponseDto;
6324
+ };
6325
+ type CompanyDocumentControllerRemoveResponse = CompanyDocumentControllerRemoveResponses[keyof CompanyDocumentControllerRemoveResponses];
6326
+ type CompanyDocumentControllerGetData = {
6327
+ body?: never;
6328
+ path: {
6329
+ /**
6330
+ * Document ID (numeric string)
6331
+ */
6332
+ id: string;
6333
+ };
6334
+ query?: never;
6335
+ url: '/company-document/{id}';
6336
+ };
6337
+ type CompanyDocumentControllerGetErrors = {
6338
+ /**
6339
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6340
+ */
6341
+ 400: ApiErrorResponse;
6342
+ /**
6343
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6344
+ */
6345
+ 401: ApiErrorResponse;
6346
+ /**
6347
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6348
+ */
6349
+ 403: ApiErrorResponse;
6350
+ /**
6351
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6352
+ */
6353
+ 404: ApiErrorResponse;
6354
+ /**
6355
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6356
+ */
6357
+ 429: ApiErrorResponse;
6358
+ /**
6359
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6360
+ */
6361
+ 500: ApiErrorResponse;
6362
+ };
6363
+ type CompanyDocumentControllerGetError = CompanyDocumentControllerGetErrors[keyof CompanyDocumentControllerGetErrors];
6364
+ type CompanyDocumentControllerGetResponses = {
6365
+ 200: DocumentResponseDto;
6366
+ };
6367
+ type CompanyDocumentControllerGetResponse = CompanyDocumentControllerGetResponses[keyof CompanyDocumentControllerGetResponses];
6368
+ type CompanyDocumentControllerUpdateData = {
6369
+ body: UpdateDocumentDto;
6370
+ headers?: {
6371
+ /**
6372
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6373
+ */
6374
+ 'Idempotency-Key'?: string;
6375
+ };
6376
+ path: {
6377
+ /**
6378
+ * Document ID (numeric string)
6379
+ */
6380
+ id: string;
6381
+ };
6382
+ query?: never;
6383
+ url: '/company-document/{id}';
6384
+ };
6385
+ type CompanyDocumentControllerUpdateErrors = {
6386
+ /**
6387
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6388
+ */
6389
+ 400: ApiErrorResponse;
6390
+ /**
6391
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6392
+ */
6393
+ 401: ApiErrorResponse;
6394
+ /**
6395
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6396
+ */
6397
+ 403: ApiErrorResponse;
6398
+ /**
6399
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6400
+ */
6401
+ 404: ApiErrorResponse;
6402
+ /**
6403
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6404
+ */
6405
+ 429: ApiErrorResponse;
6406
+ /**
6407
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6408
+ */
6409
+ 500: ApiErrorResponse;
6410
+ };
6411
+ type CompanyDocumentControllerUpdateError = CompanyDocumentControllerUpdateErrors[keyof CompanyDocumentControllerUpdateErrors];
6412
+ type CompanyDocumentControllerUpdateResponses = {
6413
+ 200: DocumentResponseDto;
6414
+ };
6415
+ type CompanyDocumentControllerUpdateResponse = CompanyDocumentControllerUpdateResponses[keyof CompanyDocumentControllerUpdateResponses];
6416
+ type CompanyDocumentControllerCreateData = {
6417
+ body: CreateDocumentDto;
6418
+ headers?: {
6419
+ /**
6420
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6421
+ */
6422
+ 'Idempotency-Key'?: string;
6423
+ };
6424
+ path?: never;
6425
+ query?: never;
6426
+ url: '/company-document';
6427
+ };
6428
+ type CompanyDocumentControllerCreateErrors = {
6429
+ /**
6430
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6431
+ */
6432
+ 400: ApiErrorResponse;
6433
+ /**
6434
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6435
+ */
6436
+ 401: ApiErrorResponse;
6437
+ /**
6438
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6439
+ */
6440
+ 403: ApiErrorResponse;
6441
+ /**
6442
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6443
+ */
6444
+ 404: ApiErrorResponse;
6445
+ /**
6446
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
6447
+ */
6448
+ 409: ApiErrorResponse;
6449
+ /**
6450
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6451
+ */
6452
+ 429: ApiErrorResponse;
6453
+ /**
6454
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6455
+ */
6456
+ 500: ApiErrorResponse;
6457
+ };
6458
+ type CompanyDocumentControllerCreateError = CompanyDocumentControllerCreateErrors[keyof CompanyDocumentControllerCreateErrors];
6459
+ type CompanyDocumentControllerCreateResponses = {
6460
+ 201: DocumentResponseDto;
6461
+ };
6462
+ type CompanyDocumentControllerCreateResponse = CompanyDocumentControllerCreateResponses[keyof CompanyDocumentControllerCreateResponses];
6463
+ type CustomerControllerListData = {
6464
+ body?: never;
6465
+ path?: never;
6466
+ query?: {
6467
+ /**
6468
+ * Results per page
6469
+ */
6470
+ per_page?: number;
6471
+ /**
6472
+ * Page number
6473
+ */
6474
+ page?: number;
6475
+ direction?: 'asc' | 'desc';
6476
+ /**
6477
+ * Sort field: name, status, created_at, updated_at, id (default updated_at)
6478
+ */
6479
+ sort?: string;
6480
+ /**
6481
+ * Filter by name (case-insensitive partial)
6482
+ */
6483
+ name?: string;
6484
+ /**
6485
+ * Filter by status (e.g. active, inactive)
6486
+ */
6487
+ status?: string;
6488
+ /**
6489
+ * Filter: updated_at >= (ISO) — incremental sync watermark
6490
+ */
6491
+ customer_date_updated_from?: string;
6492
+ /**
6493
+ * Filter: updated_at <= (ISO)
6494
+ */
6495
+ customer_date_updated_to?: string;
6496
+ };
6497
+ url: '/customer/list';
6498
+ };
6499
+ type CustomerControllerListErrors = {
6500
+ /**
6501
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6502
+ */
6503
+ 400: ApiErrorResponse;
6504
+ /**
6505
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6506
+ */
6507
+ 401: ApiErrorResponse;
6508
+ /**
6509
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6510
+ */
6511
+ 403: ApiErrorResponse;
6512
+ /**
6513
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6514
+ */
6515
+ 429: ApiErrorResponse;
6516
+ /**
6517
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6518
+ */
6519
+ 500: ApiErrorResponse;
6520
+ };
6521
+ type CustomerControllerListError = CustomerControllerListErrors[keyof CustomerControllerListErrors];
6522
+ type CustomerControllerListResponses = {
6523
+ 200: ListCustomersResponseDto;
6524
+ };
6525
+ type CustomerControllerListResponse = CustomerControllerListResponses[keyof CustomerControllerListResponses];
6526
+ type CustomerControllerDeleteData = {
6527
+ body?: never;
6528
+ path: {
6529
+ /**
6530
+ * Customer public ID
6531
+ */
6532
+ id: string;
6533
+ };
6534
+ query?: never;
6535
+ url: '/customer/{id}';
6536
+ };
6537
+ type CustomerControllerDeleteErrors = {
6538
+ /**
6539
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6540
+ */
6541
+ 401: ApiErrorResponse;
6542
+ /**
6543
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6544
+ */
6545
+ 403: ApiErrorResponse;
6546
+ /**
6547
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6548
+ */
6549
+ 404: ApiErrorResponse;
6550
+ /**
6551
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6552
+ */
6553
+ 429: ApiErrorResponse;
6554
+ /**
6555
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6556
+ */
6557
+ 500: ApiErrorResponse;
6558
+ };
6559
+ type CustomerControllerDeleteError = CustomerControllerDeleteErrors[keyof CustomerControllerDeleteErrors];
6560
+ type CustomerControllerDeleteResponses = {
6561
+ 200: DeleteCustomerResponseDto;
6562
+ };
6563
+ type CustomerControllerDeleteResponse = CustomerControllerDeleteResponses[keyof CustomerControllerDeleteResponses];
6564
+ type CustomerControllerGetData = {
6565
+ body?: never;
6566
+ path: {
6567
+ /**
6568
+ * Customer public ID
6569
+ */
6570
+ id: string;
6571
+ };
6572
+ query?: never;
6573
+ url: '/customer/{id}';
6574
+ };
6575
+ type CustomerControllerGetErrors = {
6576
+ /**
6577
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6578
+ */
6579
+ 401: ApiErrorResponse;
6580
+ /**
6581
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6582
+ */
6583
+ 403: ApiErrorResponse;
6584
+ /**
6585
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6586
+ */
6587
+ 404: ApiErrorResponse;
6588
+ /**
6589
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6590
+ */
6591
+ 429: ApiErrorResponse;
6592
+ /**
6593
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6594
+ */
6595
+ 500: ApiErrorResponse;
6596
+ };
6597
+ type CustomerControllerGetError = CustomerControllerGetErrors[keyof CustomerControllerGetErrors];
6598
+ type CustomerControllerGetResponses = {
6599
+ 200: CustomerResponseDto;
6600
+ };
6601
+ type CustomerControllerGetResponse = CustomerControllerGetResponses[keyof CustomerControllerGetResponses];
6602
+ type CustomerControllerUpdateData = {
6603
+ body: UpdateCustomerDto;
6604
+ headers?: {
6605
+ /**
6606
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6607
+ */
6608
+ 'Idempotency-Key'?: string;
6609
+ };
6610
+ path: {
6611
+ /**
6612
+ * Customer public ID
6613
+ */
6614
+ id: string;
6615
+ };
6616
+ query?: never;
6617
+ url: '/customer/{id}';
6618
+ };
6619
+ type CustomerControllerUpdateErrors = {
6620
+ /**
6621
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6622
+ */
6623
+ 400: ApiErrorResponse;
6624
+ /**
6625
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6626
+ */
6627
+ 401: ApiErrorResponse;
6628
+ /**
6629
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6630
+ */
6631
+ 403: ApiErrorResponse;
6632
+ /**
6633
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6634
+ */
6635
+ 404: ApiErrorResponse;
6636
+ /**
6637
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
6638
+ */
6639
+ 409: ApiErrorResponse;
6640
+ /**
6641
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6642
+ */
6643
+ 429: ApiErrorResponse;
6644
+ /**
6645
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6646
+ */
6647
+ 500: ApiErrorResponse;
6648
+ };
6649
+ type CustomerControllerUpdateError = CustomerControllerUpdateErrors[keyof CustomerControllerUpdateErrors];
6650
+ type CustomerControllerUpdateResponses = {
6651
+ 200: CustomerResponseDto;
6652
+ };
6653
+ type CustomerControllerUpdateResponse = CustomerControllerUpdateResponses[keyof CustomerControllerUpdateResponses];
6654
+ type CustomerControllerCreateData = {
6655
+ body: CreateCustomerDto;
6656
+ headers?: {
6657
+ /**
6658
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6659
+ */
6660
+ 'Idempotency-Key'?: string;
6661
+ };
6662
+ path?: never;
6663
+ query?: never;
6664
+ url: '/customer';
6665
+ };
6666
+ type CustomerControllerCreateErrors = {
6667
+ /**
6668
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6669
+ */
6670
+ 400: ApiErrorResponse;
6671
+ /**
6672
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6673
+ */
6674
+ 401: ApiErrorResponse;
6675
+ /**
6676
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6677
+ */
6678
+ 403: ApiErrorResponse;
6679
+ /**
6680
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
6681
+ */
6682
+ 409: ApiErrorResponse;
6683
+ /**
6684
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6685
+ */
6686
+ 429: ApiErrorResponse;
6687
+ /**
6688
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6689
+ */
6690
+ 500: ApiErrorResponse;
6691
+ };
6692
+ type CustomerControllerCreateError = CustomerControllerCreateErrors[keyof CustomerControllerCreateErrors];
6693
+ type CustomerControllerCreateResponses = {
6694
+ 201: CustomerResponseDto;
6695
+ };
6696
+ type CustomerControllerCreateResponse = CustomerControllerCreateResponses[keyof CustomerControllerCreateResponses];
6697
+ type ZoneControllerListData = {
6698
+ body?: never;
6699
+ path?: never;
6700
+ query?: {
6701
+ /**
6702
+ * Results per page
6703
+ */
6704
+ per_page?: number;
6705
+ /**
6706
+ * Page number
6707
+ */
6708
+ page?: number;
6709
+ direction?: 'asc' | 'desc';
6710
+ /**
6711
+ * Sort field: name, created_at, updated_at, id (default updated_at)
6712
+ */
6713
+ sort?: string;
6714
+ /**
6715
+ * Filter to one site by its publicId (UUID)
6716
+ */
6717
+ site_id?: string;
6718
+ /**
6719
+ * Filter by name (case-insensitive partial)
6720
+ */
6721
+ name?: string;
6722
+ /**
6723
+ * Filter: updated_at >= (ISO) — incremental sync watermark
6724
+ */
6725
+ zone_date_updated_from?: string;
6726
+ /**
6727
+ * Filter: updated_at <= (ISO)
6728
+ */
6729
+ zone_date_updated_to?: string;
6730
+ };
6731
+ url: '/zone/list';
6732
+ };
6733
+ type ZoneControllerListErrors = {
6734
+ /**
6735
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6736
+ */
6737
+ 400: ApiErrorResponse;
6738
+ /**
6739
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6740
+ */
6741
+ 401: ApiErrorResponse;
6742
+ /**
6743
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6744
+ */
6745
+ 403: ApiErrorResponse;
6746
+ /**
6747
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6748
+ */
6749
+ 429: ApiErrorResponse;
6750
+ /**
6751
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6752
+ */
6753
+ 500: ApiErrorResponse;
6754
+ };
6755
+ type ZoneControllerListError = ZoneControllerListErrors[keyof ZoneControllerListErrors];
6756
+ type ZoneControllerListResponses = {
6757
+ 200: ListZonesResponseDto;
6758
+ };
6759
+ type ZoneControllerListResponse = ZoneControllerListResponses[keyof ZoneControllerListResponses];
6760
+ type ZoneControllerDeleteData = {
6761
+ body?: never;
6762
+ path: {
6763
+ /**
6764
+ * Zone public ID
6765
+ */
6766
+ id: string;
6767
+ };
6768
+ query?: never;
6769
+ url: '/zone/{id}';
6770
+ };
6771
+ type ZoneControllerDeleteErrors = {
6772
+ /**
6773
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6774
+ */
6775
+ 401: ApiErrorResponse;
6776
+ /**
6777
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6778
+ */
6779
+ 403: ApiErrorResponse;
6780
+ /**
6781
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6782
+ */
6783
+ 404: ApiErrorResponse;
6784
+ /**
6785
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6786
+ */
6787
+ 429: ApiErrorResponse;
6788
+ /**
6789
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6790
+ */
6791
+ 500: ApiErrorResponse;
6792
+ };
6793
+ type ZoneControllerDeleteError = ZoneControllerDeleteErrors[keyof ZoneControllerDeleteErrors];
6794
+ type ZoneControllerDeleteResponses = {
6795
+ 200: DeleteZoneResponseDto;
6796
+ };
6797
+ type ZoneControllerDeleteResponse = ZoneControllerDeleteResponses[keyof ZoneControllerDeleteResponses];
6798
+ type ZoneControllerGetData = {
6799
+ body?: never;
6800
+ path: {
6801
+ /**
6802
+ * Zone public ID
6803
+ */
6804
+ id: string;
6805
+ };
6806
+ query?: never;
6807
+ url: '/zone/{id}';
6808
+ };
6809
+ type ZoneControllerGetErrors = {
6810
+ /**
6811
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6812
+ */
6813
+ 401: ApiErrorResponse;
6814
+ /**
6815
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6816
+ */
6817
+ 403: ApiErrorResponse;
6818
+ /**
6819
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6820
+ */
6821
+ 404: ApiErrorResponse;
6822
+ /**
6823
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6824
+ */
6825
+ 429: ApiErrorResponse;
6826
+ /**
6827
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6828
+ */
6829
+ 500: ApiErrorResponse;
6830
+ };
6831
+ type ZoneControllerGetError = ZoneControllerGetErrors[keyof ZoneControllerGetErrors];
6832
+ type ZoneControllerGetResponses = {
6833
+ 200: ZoneResponseDto;
6834
+ };
6835
+ type ZoneControllerGetResponse = ZoneControllerGetResponses[keyof ZoneControllerGetResponses];
6836
+ type ZoneControllerUpdateData = {
6837
+ body: UpdateZoneDto;
6838
+ headers?: {
6839
+ /**
6840
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6841
+ */
6842
+ 'Idempotency-Key'?: string;
6843
+ };
6844
+ path: {
6845
+ /**
6846
+ * Zone public ID
6847
+ */
6848
+ id: string;
6849
+ };
6850
+ query?: never;
6851
+ url: '/zone/{id}';
6852
+ };
6853
+ type ZoneControllerUpdateErrors = {
6854
+ /**
6855
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6856
+ */
6857
+ 400: ApiErrorResponse;
6858
+ /**
6859
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6860
+ */
6861
+ 401: ApiErrorResponse;
6862
+ /**
6863
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6864
+ */
6865
+ 403: ApiErrorResponse;
6866
+ /**
6867
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6868
+ */
6869
+ 404: ApiErrorResponse;
6870
+ /**
6871
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
6872
+ */
6873
+ 409: ApiErrorResponse;
6874
+ /**
6875
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6876
+ */
6877
+ 429: ApiErrorResponse;
6878
+ /**
6879
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6880
+ */
6881
+ 500: ApiErrorResponse;
6882
+ };
6883
+ type ZoneControllerUpdateError = ZoneControllerUpdateErrors[keyof ZoneControllerUpdateErrors];
6884
+ type ZoneControllerUpdateResponses = {
6885
+ 200: ZoneResponseDto;
6886
+ };
6887
+ type ZoneControllerUpdateResponse = ZoneControllerUpdateResponses[keyof ZoneControllerUpdateResponses];
6888
+ type ZoneControllerCreateData = {
6889
+ body: CreateZoneDto;
6890
+ headers?: {
6891
+ /**
6892
+ * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
6893
+ */
6894
+ 'Idempotency-Key'?: string;
6895
+ };
6896
+ path?: never;
6897
+ query?: never;
6898
+ url: '/zone';
6899
+ };
6900
+ type ZoneControllerCreateErrors = {
6901
+ /**
6902
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
6903
+ */
6904
+ 400: ApiErrorResponse;
6905
+ /**
6906
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
6907
+ */
6908
+ 401: ApiErrorResponse;
6909
+ /**
6910
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
6911
+ */
6912
+ 403: ApiErrorResponse;
6913
+ /**
6914
+ * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
6915
+ */
6916
+ 404: ApiErrorResponse;
6917
+ /**
6918
+ * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
6919
+ */
6920
+ 409: ApiErrorResponse;
6921
+ /**
6922
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
6923
+ */
6924
+ 429: ApiErrorResponse;
6925
+ /**
6926
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
6927
+ */
6928
+ 500: ApiErrorResponse;
6929
+ };
6930
+ type ZoneControllerCreateError = ZoneControllerCreateErrors[keyof ZoneControllerCreateErrors];
6931
+ type ZoneControllerCreateResponses = {
6932
+ 201: ZoneResponseDto;
6933
+ };
6934
+ type ZoneControllerCreateResponse = ZoneControllerCreateResponses[keyof ZoneControllerCreateResponses];
6935
+ type GroupControllerListData = {
6936
+ body?: never;
6937
+ path?: never;
6938
+ query?: {
6939
+ /**
6940
+ * Results per page
6941
+ */
6942
+ per_page?: number;
6943
+ /**
6944
+ * Page number
6945
+ */
6946
+ page?: number;
6947
+ direction?: 'asc' | 'desc';
6948
+ /**
6949
+ * Sort field: name, created_at, updated_at, id (default updated_at)
6950
+ */
6951
+ sort?: string;
6952
+ /**
6953
+ * Filter to one site by its publicId (UUID)
6954
+ */
6955
+ site_id?: string;
6956
+ /**
6957
+ * Filter by name (case-insensitive partial)
6958
+ */
6959
+ name?: string;
6960
+ /**
6961
+ * Filter: updated_at >= (ISO) — incremental sync watermark
3364
6962
  */
3365
- config_item_date_updated_from?: string;
6963
+ group_date_updated_from?: string;
3366
6964
  /**
3367
- * Filter by updated_at to (inclusive)
6965
+ * Filter: updated_at <= (ISO)
3368
6966
  */
3369
- config_item_date_updated_to?: string;
6967
+ group_date_updated_to?: string;
3370
6968
  };
3371
- url: '/public/config-item/list';
6969
+ url: '/group/list';
3372
6970
  };
3373
- type PublicConfigControllerListConfigItemsErrors = {
6971
+ type GroupControllerListErrors = {
3374
6972
  /**
3375
6973
  * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
3376
6974
  */
@@ -3392,30 +6990,23 @@ type PublicConfigControllerListConfigItemsErrors = {
3392
6990
  */
3393
6991
  500: ApiErrorResponse;
3394
6992
  };
3395
- type PublicConfigControllerListConfigItemsError = PublicConfigControllerListConfigItemsErrors[keyof PublicConfigControllerListConfigItemsErrors];
3396
- type PublicConfigControllerListConfigItemsResponses = {
3397
- /**
3398
- * Config items with pagination info
3399
- */
3400
- 200: ListConfigItemsResponseDto;
6993
+ type GroupControllerListError = GroupControllerListErrors[keyof GroupControllerListErrors];
6994
+ type GroupControllerListResponses = {
6995
+ 200: ListGroupsResponseDto;
3401
6996
  };
3402
- type PublicConfigControllerListConfigItemsResponse = PublicConfigControllerListConfigItemsResponses[keyof PublicConfigControllerListConfigItemsResponses];
3403
- type PublicConfigControllerDeleteConfigItemData = {
6997
+ type GroupControllerListResponse = GroupControllerListResponses[keyof GroupControllerListResponses];
6998
+ type GroupControllerDeleteData = {
3404
6999
  body?: never;
3405
7000
  path: {
3406
7001
  /**
3407
- * Config item ID (numeric string)
7002
+ * Group public ID
3408
7003
  */
3409
7004
  id: string;
3410
7005
  };
3411
7006
  query?: never;
3412
- url: '/public/config-item/{id}';
7007
+ url: '/group/{id}';
3413
7008
  };
3414
- type PublicConfigControllerDeleteConfigItemErrors = {
3415
- /**
3416
- * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
3417
- */
3418
- 400: ApiErrorResponse;
7009
+ type GroupControllerDeleteErrors = {
3419
7010
  /**
3420
7011
  * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
3421
7012
  */
@@ -3437,32 +7028,23 @@ type PublicConfigControllerDeleteConfigItemErrors = {
3437
7028
  */
3438
7029
  500: ApiErrorResponse;
3439
7030
  };
3440
- type PublicConfigControllerDeleteConfigItemError = PublicConfigControllerDeleteConfigItemErrors[keyof PublicConfigControllerDeleteConfigItemErrors];
3441
- type PublicConfigControllerDeleteConfigItemResponses = {
3442
- /**
3443
- * Config item deleted
3444
- */
3445
- 200: {
3446
- success?: boolean;
3447
- };
7031
+ type GroupControllerDeleteError = GroupControllerDeleteErrors[keyof GroupControllerDeleteErrors];
7032
+ type GroupControllerDeleteResponses = {
7033
+ 200: DeleteGroupResponseDto;
3448
7034
  };
3449
- type PublicConfigControllerDeleteConfigItemResponse = PublicConfigControllerDeleteConfigItemResponses[keyof PublicConfigControllerDeleteConfigItemResponses];
3450
- type PublicConfigControllerGetConfigItemData = {
7035
+ type GroupControllerDeleteResponse = GroupControllerDeleteResponses[keyof GroupControllerDeleteResponses];
7036
+ type GroupControllerGetData = {
3451
7037
  body?: never;
3452
7038
  path: {
3453
7039
  /**
3454
- * Config item ID (numeric string)
7040
+ * Group public ID
3455
7041
  */
3456
7042
  id: string;
3457
7043
  };
3458
7044
  query?: never;
3459
- url: '/public/config-item/{id}';
7045
+ url: '/group/{id}';
3460
7046
  };
3461
- type PublicConfigControllerGetConfigItemErrors = {
3462
- /**
3463
- * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
3464
- */
3465
- 400: ApiErrorResponse;
7047
+ type GroupControllerGetErrors = {
3466
7048
  /**
3467
7049
  * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
3468
7050
  */
@@ -3484,16 +7066,13 @@ type PublicConfigControllerGetConfigItemErrors = {
3484
7066
  */
3485
7067
  500: ApiErrorResponse;
3486
7068
  };
3487
- type PublicConfigControllerGetConfigItemError = PublicConfigControllerGetConfigItemErrors[keyof PublicConfigControllerGetConfigItemErrors];
3488
- type PublicConfigControllerGetConfigItemResponses = {
3489
- /**
3490
- * The config item
3491
- */
3492
- 200: ConfigItemDto;
7069
+ type GroupControllerGetError = GroupControllerGetErrors[keyof GroupControllerGetErrors];
7070
+ type GroupControllerGetResponses = {
7071
+ 200: GroupResponseDto;
3493
7072
  };
3494
- type PublicConfigControllerGetConfigItemResponse = PublicConfigControllerGetConfigItemResponses[keyof PublicConfigControllerGetConfigItemResponses];
3495
- type PublicConfigControllerUpdateConfigItemData = {
3496
- body: UpdateConfigItemDto;
7073
+ type GroupControllerGetResponse = GroupControllerGetResponses[keyof GroupControllerGetResponses];
7074
+ type GroupControllerUpdateData = {
7075
+ body: UpdateGroupDto;
3497
7076
  headers?: {
3498
7077
  /**
3499
7078
  * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
@@ -3502,14 +7081,14 @@ type PublicConfigControllerUpdateConfigItemData = {
3502
7081
  };
3503
7082
  path: {
3504
7083
  /**
3505
- * Config item ID (numeric string)
7084
+ * Group public ID
3506
7085
  */
3507
7086
  id: string;
3508
7087
  };
3509
7088
  query?: never;
3510
- url: '/public/config-item/{id}';
7089
+ url: '/group/{id}';
3511
7090
  };
3512
- type PublicConfigControllerUpdateConfigItemErrors = {
7091
+ type GroupControllerUpdateErrors = {
3513
7092
  /**
3514
7093
  * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
3515
7094
  */
@@ -3535,16 +7114,13 @@ type PublicConfigControllerUpdateConfigItemErrors = {
3535
7114
  */
3536
7115
  500: ApiErrorResponse;
3537
7116
  };
3538
- type PublicConfigControllerUpdateConfigItemError = PublicConfigControllerUpdateConfigItemErrors[keyof PublicConfigControllerUpdateConfigItemErrors];
3539
- type PublicConfigControllerUpdateConfigItemResponses = {
3540
- /**
3541
- * Config item updated
3542
- */
3543
- 200: ConfigItemDto;
7117
+ type GroupControllerUpdateError = GroupControllerUpdateErrors[keyof GroupControllerUpdateErrors];
7118
+ type GroupControllerUpdateResponses = {
7119
+ 200: GroupResponseDto;
3544
7120
  };
3545
- type PublicConfigControllerUpdateConfigItemResponse = PublicConfigControllerUpdateConfigItemResponses[keyof PublicConfigControllerUpdateConfigItemResponses];
3546
- type PublicConfigControllerCreateConfigItemData = {
3547
- body: CreateConfigItemDto;
7121
+ type GroupControllerUpdateResponse = GroupControllerUpdateResponses[keyof GroupControllerUpdateResponses];
7122
+ type GroupControllerCreateData = {
7123
+ body: CreateGroupDto;
3548
7124
  headers?: {
3549
7125
  /**
3550
7126
  * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
@@ -3553,9 +7129,9 @@ type PublicConfigControllerCreateConfigItemData = {
3553
7129
  };
3554
7130
  path?: never;
3555
7131
  query?: never;
3556
- url: '/public/config-item';
7132
+ url: '/group';
3557
7133
  };
3558
- type PublicConfigControllerCreateConfigItemErrors = {
7134
+ type GroupControllerCreateErrors = {
3559
7135
  /**
3560
7136
  * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
3561
7137
  */
@@ -3572,10 +7148,6 @@ type PublicConfigControllerCreateConfigItemErrors = {
3572
7148
  * No resource was found at the requested location, or a referenced resource (`publicId` in the body) doesn't exist or is not visible to the calling company.
3573
7149
  */
3574
7150
  404: ApiErrorResponse;
3575
- /**
3576
- * The request conflicts with current state. Common cases: a unique business identifier already exists (`conflict`), or an `Idempotency-Key` was reused with a different request body (`idempotency_key_conflict`).
3577
- */
3578
- 409: ApiErrorResponse;
3579
7151
  /**
3580
7152
  * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
3581
7153
  */
@@ -3585,26 +7157,86 @@ type PublicConfigControllerCreateConfigItemErrors = {
3585
7157
  */
3586
7158
  500: ApiErrorResponse;
3587
7159
  };
3588
- type PublicConfigControllerCreateConfigItemError = PublicConfigControllerCreateConfigItemErrors[keyof PublicConfigControllerCreateConfigItemErrors];
3589
- type PublicConfigControllerCreateConfigItemResponses = {
7160
+ type GroupControllerCreateError = GroupControllerCreateErrors[keyof GroupControllerCreateErrors];
7161
+ type GroupControllerCreateResponses = {
7162
+ 201: GroupResponseDto;
7163
+ };
7164
+ type GroupControllerCreateResponse = GroupControllerCreateResponses[keyof GroupControllerCreateResponses];
7165
+ type DevicePublicControllerListData = {
7166
+ body?: never;
7167
+ path?: never;
7168
+ query?: {
7169
+ /**
7170
+ * Results per page
7171
+ */
7172
+ per_page?: number;
7173
+ /**
7174
+ * Page number
7175
+ */
7176
+ page?: number;
7177
+ direction?: 'asc' | 'desc';
7178
+ /**
7179
+ * Sort field: name, status, last_sync_at, created_at, updated_at, id (default updated_at)
7180
+ */
7181
+ sort?: string;
7182
+ /**
7183
+ * Filter by status (e.g. active, pending)
7184
+ */
7185
+ status?: string;
7186
+ /**
7187
+ * Filter by name (case-insensitive partial)
7188
+ */
7189
+ name?: string;
7190
+ /**
7191
+ * Filter: updated_at >= (ISO) — incremental sync watermark
7192
+ */
7193
+ device_date_updated_from?: string;
7194
+ /**
7195
+ * Filter: updated_at <= (ISO)
7196
+ */
7197
+ device_date_updated_to?: string;
7198
+ };
7199
+ url: '/device/list';
7200
+ };
7201
+ type DevicePublicControllerListErrors = {
3590
7202
  /**
3591
- * Config item created
7203
+ * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
3592
7204
  */
3593
- 201: ConfigItemDto;
7205
+ 400: ApiErrorResponse;
7206
+ /**
7207
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
7208
+ */
7209
+ 401: ApiErrorResponse;
7210
+ /**
7211
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
7212
+ */
7213
+ 403: ApiErrorResponse;
7214
+ /**
7215
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
7216
+ */
7217
+ 429: ApiErrorResponse;
7218
+ /**
7219
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
7220
+ */
7221
+ 500: ApiErrorResponse;
3594
7222
  };
3595
- type PublicConfigControllerCreateConfigItemResponse = PublicConfigControllerCreateConfigItemResponses[keyof PublicConfigControllerCreateConfigItemResponses];
3596
- type AssetClassPropertyControllerRemoveData = {
7223
+ type DevicePublicControllerListError = DevicePublicControllerListErrors[keyof DevicePublicControllerListErrors];
7224
+ type DevicePublicControllerListResponses = {
7225
+ 200: ListDevicesResponseDto;
7226
+ };
7227
+ type DevicePublicControllerListResponse = DevicePublicControllerListResponses[keyof DevicePublicControllerListResponses];
7228
+ type DevicePublicControllerGetData = {
3597
7229
  body?: never;
3598
7230
  path: {
3599
7231
  /**
3600
- * Asset class property value-row ID (numeric string)
7232
+ * Device public ID
3601
7233
  */
3602
7234
  id: string;
3603
7235
  };
3604
7236
  query?: never;
3605
- url: '/asset-class-property/{id}';
7237
+ url: '/device/{id}';
3606
7238
  };
3607
- type AssetClassPropertyControllerRemoveErrors = {
7239
+ type DevicePublicControllerGetErrors = {
3608
7240
  /**
3609
7241
  * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
3610
7242
  */
@@ -3626,36 +7258,94 @@ type AssetClassPropertyControllerRemoveErrors = {
3626
7258
  */
3627
7259
  500: ApiErrorResponse;
3628
7260
  };
3629
- type AssetClassPropertyControllerRemoveError = AssetClassPropertyControllerRemoveErrors[keyof AssetClassPropertyControllerRemoveErrors];
3630
- type AssetClassPropertyControllerRemoveResponses = {
3631
- /**
3632
- * Asset class property deleted
3633
- */
3634
- 200: DeleteAssetClassPropertyResponseDto;
7261
+ type DevicePublicControllerGetError = DevicePublicControllerGetErrors[keyof DevicePublicControllerGetErrors];
7262
+ type DevicePublicControllerGetResponses = {
7263
+ 200: DeviceResponseDto;
3635
7264
  };
3636
- type AssetClassPropertyControllerRemoveResponse = AssetClassPropertyControllerRemoveResponses[keyof AssetClassPropertyControllerRemoveResponses];
3637
- type AssetClassPropertyControllerUpdateData = {
3638
- body: UpdateAssetClassPropertyDto;
3639
- headers?: {
7265
+ type DevicePublicControllerGetResponse = DevicePublicControllerGetResponses[keyof DevicePublicControllerGetResponses];
7266
+ type TimesheetPublicControllerListData = {
7267
+ body?: never;
7268
+ path?: never;
7269
+ query?: {
3640
7270
  /**
3641
- * Opaque client-generated key (any string up to 255 chars, ULID or UUID recommended) that makes this POST/PATCH safe to retry. The server stores the first successful response under this key for 24 hours; retries with the same key replay the stored response and set `Idempotent-Replayed: true`. Reusing the key with a different body returns `409 idempotency_key_conflict`. Omit on read-only GETs — they are already idempotent.
7271
+ * Results per page
3642
7272
  */
3643
- 'Idempotency-Key'?: string;
3644
- };
3645
- path: {
7273
+ per_page?: number;
3646
7274
  /**
3647
- * Asset class property value-row ID (numeric string)
7275
+ * Page number
3648
7276
  */
3649
- id: string;
7277
+ page?: number;
7278
+ direction?: 'asc' | 'desc';
7279
+ /**
7280
+ * Sort field: period_start, status, submitted_at, created_at, updated_at, id (default period_start)
7281
+ */
7282
+ sort?: string;
7283
+ /**
7284
+ * Filter by status: draft, submitted, in_approval, approved, rejected, info_required
7285
+ */
7286
+ status?: string;
7287
+ /**
7288
+ * Filter to one user by their publicId (UUID)
7289
+ */
7290
+ user_id?: string;
7291
+ /**
7292
+ * Filter: period_start >= (ISO date)
7293
+ */
7294
+ period_start_from?: string;
7295
+ /**
7296
+ * Filter: period_start <= (ISO date)
7297
+ */
7298
+ period_start_to?: string;
7299
+ /**
7300
+ * Filter: updated_at >= (ISO) — incremental sync watermark
7301
+ */
7302
+ timesheet_date_updated_from?: string;
7303
+ /**
7304
+ * Filter: updated_at <= (ISO)
7305
+ */
7306
+ timesheet_date_updated_to?: string;
3650
7307
  };
3651
- query?: never;
3652
- url: '/asset-class-property/{id}';
7308
+ url: '/timesheet/list';
3653
7309
  };
3654
- type AssetClassPropertyControllerUpdateErrors = {
7310
+ type TimesheetPublicControllerListErrors = {
3655
7311
  /**
3656
7312
  * Validation failed or the request was malformed. The response body will use `code: validation_error` (with `details[]` populated when the failure can be pinpointed to specific fields) or the more generic `code: bad_request`.
3657
7313
  */
3658
7314
  400: ApiErrorResponse;
7315
+ /**
7316
+ * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
7317
+ */
7318
+ 401: ApiErrorResponse;
7319
+ /**
7320
+ * The Bearer token authenticated successfully but cannot perform this action. Two distinct codes share this status: `forbidden` (missing permission scope) and `ip_not_allowed` (source IP not in the API key's allowlist).
7321
+ */
7322
+ 403: ApiErrorResponse;
7323
+ /**
7324
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
7325
+ */
7326
+ 429: ApiErrorResponse;
7327
+ /**
7328
+ * Something went wrong on our side. The `request_id` field in the response body matches the entry in our logs — include it when reporting the issue.
7329
+ */
7330
+ 500: ApiErrorResponse;
7331
+ };
7332
+ type TimesheetPublicControllerListError = TimesheetPublicControllerListErrors[keyof TimesheetPublicControllerListErrors];
7333
+ type TimesheetPublicControllerListResponses = {
7334
+ 200: ListTimesheetsResponseDto;
7335
+ };
7336
+ type TimesheetPublicControllerListResponse = TimesheetPublicControllerListResponses[keyof TimesheetPublicControllerListResponses];
7337
+ type TimesheetPublicControllerGetData = {
7338
+ body?: never;
7339
+ path: {
7340
+ /**
7341
+ * Timesheet public ID
7342
+ */
7343
+ id: string;
7344
+ };
7345
+ query?: never;
7346
+ url: '/timesheet/{id}';
7347
+ };
7348
+ type TimesheetPublicControllerGetErrors = {
3659
7349
  /**
3660
7350
  * The Bearer token is missing, malformed, or no longer valid. Verify the `Authorization` header is set to `Bearer wk_…` and that the key has not been revoked or rotated out.
3661
7351
  */
@@ -3677,14 +7367,11 @@ type AssetClassPropertyControllerUpdateErrors = {
3677
7367
  */
3678
7368
  500: ApiErrorResponse;
3679
7369
  };
3680
- type AssetClassPropertyControllerUpdateError = AssetClassPropertyControllerUpdateErrors[keyof AssetClassPropertyControllerUpdateErrors];
3681
- type AssetClassPropertyControllerUpdateResponses = {
3682
- /**
3683
- * Asset class property updated
3684
- */
3685
- 200: AssetClassPropertyResponseDto;
7370
+ type TimesheetPublicControllerGetError = TimesheetPublicControllerGetErrors[keyof TimesheetPublicControllerGetErrors];
7371
+ type TimesheetPublicControllerGetResponses = {
7372
+ 200: TimesheetDetailDto;
3686
7373
  };
3687
- type AssetClassPropertyControllerUpdateResponse = AssetClassPropertyControllerUpdateResponses[keyof AssetClassPropertyControllerUpdateResponses];
7374
+ type TimesheetPublicControllerGetResponse = TimesheetPublicControllerGetResponses[keyof TimesheetPublicControllerGetResponses];
3688
7375
  type SiteControllerListSitesData = {
3689
7376
  body?: never;
3690
7377
  path?: never;
@@ -3903,7 +7590,7 @@ type SiteControllerUpdateSiteResponses = {
3903
7590
  };
3904
7591
  type SiteControllerUpdateSiteResponse = SiteControllerUpdateSiteResponses[keyof SiteControllerUpdateSiteResponses];
3905
7592
  type ClientOptions = {
3906
- baseUrl: 'https://api.wakata.ai' | (string & {});
7593
+ baseUrl: 'https://dev-api.wakata.ai' | (string & {});
3907
7594
  };
3908
7595
 
3909
7596
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -4267,6 +7954,126 @@ declare const assetClassPropertyControllerRemove: <ThrowOnError extends boolean
4267
7954
  * Updates the value of an asset class custom property. The value is stored in text_value, numeric_value, or date_value based on the property type in config_items, and a history record is written. Company-scoped. Requires asset-class:update. Supports `Idempotency-Key`.
4268
7955
  */
4269
7956
  declare const assetClassPropertyControllerUpdate: <ThrowOnError extends boolean = false>(options: Options<AssetClassPropertyControllerUpdateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AssetClassPropertyResponseDto, ApiErrorResponse, ThrowOnError>;
7957
+ /**
7958
+ * Get a presigned URL to upload a document file
7959
+ * Returns a short-lived presigned S3 PUT URL and the resulting key. Upload the file with PUT, then create/update a document referencing the key as `attachment_file`. Any valid API key may request one (the key is scoped to your company folder; creating the document still needs the per-type create permission).
7960
+ */
7961
+ declare const documentUploadControllerUploadUrl: <ThrowOnError extends boolean = false>(options: Options<DocumentUploadControllerUploadUrlData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DocumentUploadUrlResponseDto, ApiErrorResponse, ThrowOnError>;
7962
+ /**
7963
+ * List asset documents
7964
+ */
7965
+ declare const assetDocumentControllerList: <ThrowOnError extends boolean = false>(options?: Options<AssetDocumentControllerListData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListDocumentsResponseDto, ApiErrorResponse, ThrowOnError>;
7966
+ /**
7967
+ * Delete an asset document
7968
+ */
7969
+ declare const assetDocumentControllerRemove: <ThrowOnError extends boolean = false>(options: Options<AssetDocumentControllerRemoveData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteDocumentResponseDto, ApiErrorResponse, ThrowOnError>;
7970
+ /**
7971
+ * Get an asset document
7972
+ */
7973
+ declare const assetDocumentControllerGet: <ThrowOnError extends boolean = false>(options: Options<AssetDocumentControllerGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DocumentResponseDto, ApiErrorResponse, ThrowOnError>;
7974
+ /**
7975
+ * Update an asset document
7976
+ */
7977
+ declare const assetDocumentControllerUpdate: <ThrowOnError extends boolean = false>(options: Options<AssetDocumentControllerUpdateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DocumentResponseDto, ApiErrorResponse, ThrowOnError>;
7978
+ /**
7979
+ * Create an asset document
7980
+ */
7981
+ declare const assetDocumentControllerCreate: <ThrowOnError extends boolean = false>(options: Options<AssetDocumentControllerCreateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DocumentResponseDto, ApiErrorResponse, ThrowOnError>;
7982
+ /**
7983
+ * List customers
7984
+ * Returns a paginated list of customers for the authenticated company. Supports name/status filters and an incremental `updated_at` watermark. Requires customer:read.
7985
+ */
7986
+ declare const customerControllerList: <ThrowOnError extends boolean = false>(options?: Options<CustomerControllerListData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCustomersResponseDto, ApiErrorResponse, ThrowOnError>;
7987
+ /**
7988
+ * Delete a customer
7989
+ * Soft-deletes a customer by its public_id (UUID). Requires customer:delete.
7990
+ */
7991
+ declare const customerControllerDelete: <ThrowOnError extends boolean = false>(options: Options<CustomerControllerDeleteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteCustomerResponseDto, ApiErrorResponse, ThrowOnError>;
7992
+ /**
7993
+ * Get a customer by public ID
7994
+ * Returns one customer (with embedded customer_properties[]) by its public_id (UUID). Requires customer:read.
7995
+ */
7996
+ declare const customerControllerGet: <ThrowOnError extends boolean = false>(options: Options<CustomerControllerGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CustomerResponseDto, ApiErrorResponse, ThrowOnError>;
7997
+ /**
7998
+ * Update a customer
7999
+ * Updates a customer by its public_id (UUID). Only provided fields are changed. Requires customer:update. Supports `Idempotency-Key`.
8000
+ */
8001
+ declare const customerControllerUpdate: <ThrowOnError extends boolean = false>(options: Options<CustomerControllerUpdateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CustomerResponseDto, ApiErrorResponse, ThrowOnError>;
8002
+ /**
8003
+ * Create a customer
8004
+ * Creates a customer for the authenticated company. Requires customer:create. Customer names are unique per company (case-insensitive) — a duplicate returns 409. Supports `Idempotency-Key`.
8005
+ */
8006
+ declare const customerControllerCreate: <ThrowOnError extends boolean = false>(options: Options<CustomerControllerCreateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CustomerResponseDto, ApiErrorResponse, ThrowOnError>;
8007
+ /**
8008
+ * List zones
8009
+ * Returns a paginated list of zones for the authenticated company. Filter by site (publicId), name, and an incremental `updated_at` watermark. Requires zone:read.
8010
+ */
8011
+ declare const zoneControllerList: <ThrowOnError extends boolean = false>(options?: Options<ZoneControllerListData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListZonesResponseDto, ApiErrorResponse, ThrowOnError>;
8012
+ /**
8013
+ * Delete a zone
8014
+ * Soft-deletes a zone by its public_id (UUID). Requires zone:delete.
8015
+ */
8016
+ declare const zoneControllerDelete: <ThrowOnError extends boolean = false>(options: Options<ZoneControllerDeleteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteZoneResponseDto, ApiErrorResponse, ThrowOnError>;
8017
+ /**
8018
+ * Get a zone by public ID
8019
+ * Returns one zone by its public_id (UUID). Requires zone:read.
8020
+ */
8021
+ declare const zoneControllerGet: <ThrowOnError extends boolean = false>(options: Options<ZoneControllerGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ZoneResponseDto, ApiErrorResponse, ThrowOnError>;
8022
+ /**
8023
+ * Update a zone
8024
+ * Updates a zone by its public_id (UUID). Only provided fields are changed; set parent_zone_id to null to make a zone top-level. Requires zone:update. Supports `Idempotency-Key`.
8025
+ */
8026
+ declare const zoneControllerUpdate: <ThrowOnError extends boolean = false>(options: Options<ZoneControllerUpdateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ZoneResponseDto, ApiErrorResponse, ThrowOnError>;
8027
+ /**
8028
+ * Create a zone
8029
+ * Creates a zone under a site for the authenticated company. Reference the site (required) and optional parent zone by their publicId. Zone names are unique per site — a duplicate returns 409. Requires zone:create. Supports `Idempotency-Key`.
8030
+ */
8031
+ declare const zoneControllerCreate: <ThrowOnError extends boolean = false>(options: Options<ZoneControllerCreateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ZoneResponseDto, ApiErrorResponse, ThrowOnError>;
8032
+ /**
8033
+ * List groups
8034
+ * Returns a paginated list of groups (containers) for the authenticated company. Filter by site (publicId), name, and an incremental `updated_at` watermark. Membership is not included — see the group membership endpoints (coming soon). Requires group:read.
8035
+ */
8036
+ declare const groupControllerList: <ThrowOnError extends boolean = false>(options?: Options<GroupControllerListData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListGroupsResponseDto, ApiErrorResponse, ThrowOnError>;
8037
+ /**
8038
+ * Delete a group
8039
+ * Soft-deletes a group container by its public_id (UUID). Requires group:delete.
8040
+ */
8041
+ declare const groupControllerDelete: <ThrowOnError extends boolean = false>(options: Options<GroupControllerDeleteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteGroupResponseDto, ApiErrorResponse, ThrowOnError>;
8042
+ /**
8043
+ * Get a group by public ID
8044
+ * Returns one group container by its public_id (UUID). Membership is not included. Requires group:read.
8045
+ */
8046
+ declare const groupControllerGet: <ThrowOnError extends boolean = false>(options: Options<GroupControllerGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GroupResponseDto, ApiErrorResponse, ThrowOnError>;
8047
+ /**
8048
+ * Update a group
8049
+ * Updates a group container by its public_id (UUID). Only provided fields are changed; set site_id to null to make it company-wide. Requires group:update. Supports `Idempotency-Key`.
8050
+ */
8051
+ declare const groupControllerUpdate: <ThrowOnError extends boolean = false>(options: Options<GroupControllerUpdateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GroupResponseDto, ApiErrorResponse, ThrowOnError>;
8052
+ /**
8053
+ * Create a group
8054
+ * Creates a group container for the authenticated company. Optionally scope it to a site (by publicId). Requires group:create. Supports `Idempotency-Key`.
8055
+ */
8056
+ declare const groupControllerCreate: <ThrowOnError extends boolean = false>(options: Options<GroupControllerCreateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GroupResponseDto, ApiErrorResponse, ThrowOnError>;
8057
+ /**
8058
+ * List devices
8059
+ * Returns a paginated inventory of devices for the authenticated company (name, status, last sync, app/OS version, battery, location). Devices are created only via the in-app pairing flow — this endpoint is read-only. Requires device:read.
8060
+ */
8061
+ declare const devicePublicControllerList: <ThrowOnError extends boolean = false>(options?: Options<DevicePublicControllerListData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListDevicesResponseDto, ApiErrorResponse, ThrowOnError>;
8062
+ /**
8063
+ * Get a device by public ID
8064
+ * Returns one device by its public_id (UUID). Read-only. Requires device:read.
8065
+ */
8066
+ declare const devicePublicControllerGet: <ThrowOnError extends boolean = false>(options: Options<DevicePublicControllerGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeviceResponseDto, ApiErrorResponse, ThrowOnError>;
8067
+ /**
8068
+ * List timesheets
8069
+ * Returns a paginated list of timesheet summaries for the authenticated company. Filter by status, user (publicId), period range, and an incremental `updated_at` watermark. Read-only — timesheets are created in the Wakata app. Requires timesheet:read.
8070
+ */
8071
+ declare const timesheetPublicControllerList: <ThrowOnError extends boolean = false>(options?: Options<TimesheetPublicControllerListData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListTimesheetsResponseDto, ApiErrorResponse, ThrowOnError>;
8072
+ /**
8073
+ * Get a timesheet by public ID
8074
+ * Returns one timesheet (header + line-level rows: date, activity, duration, site/asset/project/customer allocation) by its public_id (UUID). Read-only. Requires timesheet:read.
8075
+ */
8076
+ declare const timesheetPublicControllerGet: <ThrowOnError extends boolean = false>(options: Options<TimesheetPublicControllerGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TimesheetDetailDto, ApiErrorResponse, ThrowOnError>;
4270
8077
  /**
4271
8078
  * List sites
4272
8079
  * Returns a paginated list of sites for the authenticated company. Supports filtering by name, category, and date modified. Requires Bearer token authentication with site:read permission.
@@ -4372,6 +8179,61 @@ interface AssetClassPropertiesResource {
4372
8179
  update: (options: WakataMethodOptions<Parameters<typeof assetClassPropertyControllerUpdate>[0]>) => Promise<Awaited<ReturnType<typeof assetClassPropertyControllerUpdate>>['data']>;
4373
8180
  delete: (options: WakataMethodOptions<Parameters<typeof assetClassPropertyControllerRemove>[0]>) => Promise<Awaited<ReturnType<typeof assetClassPropertyControllerRemove>>['data']>;
4374
8181
  }
8182
+ interface CustomersResource {
8183
+ list: (options?: WakataMethodOptions<Parameters<typeof customerControllerList>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof customerControllerList>>['data']>;
8184
+ get: (options: WakataMethodOptions<Parameters<typeof customerControllerGet>[0]>) => Promise<Awaited<ReturnType<typeof customerControllerGet>>['data']>;
8185
+ create: (options: WakataMethodOptions<Parameters<typeof customerControllerCreate>[0]>) => Promise<Awaited<ReturnType<typeof customerControllerCreate>>['data']>;
8186
+ update: (options: WakataMethodOptions<Parameters<typeof customerControllerUpdate>[0]>) => Promise<Awaited<ReturnType<typeof customerControllerUpdate>>['data']>;
8187
+ delete: (options: WakataMethodOptions<Parameters<typeof customerControllerDelete>[0]>) => Promise<Awaited<ReturnType<typeof customerControllerDelete>>['data']>;
8188
+ }
8189
+ interface ZonesResource {
8190
+ list: (options?: WakataMethodOptions<Parameters<typeof zoneControllerList>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof zoneControllerList>>['data']>;
8191
+ get: (options: WakataMethodOptions<Parameters<typeof zoneControllerGet>[0]>) => Promise<Awaited<ReturnType<typeof zoneControllerGet>>['data']>;
8192
+ create: (options: WakataMethodOptions<Parameters<typeof zoneControllerCreate>[0]>) => Promise<Awaited<ReturnType<typeof zoneControllerCreate>>['data']>;
8193
+ update: (options: WakataMethodOptions<Parameters<typeof zoneControllerUpdate>[0]>) => Promise<Awaited<ReturnType<typeof zoneControllerUpdate>>['data']>;
8194
+ delete: (options: WakataMethodOptions<Parameters<typeof zoneControllerDelete>[0]>) => Promise<Awaited<ReturnType<typeof zoneControllerDelete>>['data']>;
8195
+ }
8196
+ interface GroupsResource {
8197
+ list: (options?: WakataMethodOptions<Parameters<typeof groupControllerList>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof groupControllerList>>['data']>;
8198
+ get: (options: WakataMethodOptions<Parameters<typeof groupControllerGet>[0]>) => Promise<Awaited<ReturnType<typeof groupControllerGet>>['data']>;
8199
+ create: (options: WakataMethodOptions<Parameters<typeof groupControllerCreate>[0]>) => Promise<Awaited<ReturnType<typeof groupControllerCreate>>['data']>;
8200
+ update: (options: WakataMethodOptions<Parameters<typeof groupControllerUpdate>[0]>) => Promise<Awaited<ReturnType<typeof groupControllerUpdate>>['data']>;
8201
+ delete: (options: WakataMethodOptions<Parameters<typeof groupControllerDelete>[0]>) => Promise<Awaited<ReturnType<typeof groupControllerDelete>>['data']>;
8202
+ }
8203
+ /** Device inventory — read-only (devices are paired in-app). */
8204
+ interface DevicesResource {
8205
+ list: (options?: WakataMethodOptions<Parameters<typeof devicePublicControllerList>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof devicePublicControllerList>>['data']>;
8206
+ get: (options: WakataMethodOptions<Parameters<typeof devicePublicControllerGet>[0]>) => Promise<Awaited<ReturnType<typeof devicePublicControllerGet>>['data']>;
8207
+ }
8208
+ /** Timesheets — read-only (created in the Wakata app). */
8209
+ interface TimesheetsResource {
8210
+ list: (options?: WakataMethodOptions<Parameters<typeof timesheetPublicControllerList>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof timesheetPublicControllerList>>['data']>;
8211
+ get: (options: WakataMethodOptions<Parameters<typeof timesheetPublicControllerGet>[0]>) => Promise<Awaited<ReturnType<typeof timesheetPublicControllerGet>>['data']>;
8212
+ }
8213
+ /**
8214
+ * One entity-document type's CRUD. All document types share the same DTOs, so
8215
+ * the shape is typed against the asset-document operations (structurally
8216
+ * identical across types).
8217
+ */
8218
+ interface DocumentTypeResource {
8219
+ list: (options?: WakataMethodOptions<Parameters<typeof assetDocumentControllerList>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof assetDocumentControllerList>>['data']>;
8220
+ get: (options: WakataMethodOptions<Parameters<typeof assetDocumentControllerGet>[0]>) => Promise<Awaited<ReturnType<typeof assetDocumentControllerGet>>['data']>;
8221
+ create: (options: WakataMethodOptions<Parameters<typeof assetDocumentControllerCreate>[0]>) => Promise<Awaited<ReturnType<typeof assetDocumentControllerCreate>>['data']>;
8222
+ update: (options: WakataMethodOptions<Parameters<typeof assetDocumentControllerUpdate>[0]>) => Promise<Awaited<ReturnType<typeof assetDocumentControllerUpdate>>['data']>;
8223
+ delete: (options: WakataMethodOptions<Parameters<typeof assetDocumentControllerRemove>[0]>) => Promise<Awaited<ReturnType<typeof assetDocumentControllerRemove>>['data']>;
8224
+ }
8225
+ interface DocumentsResource {
8226
+ /** Presigned S3 PUT URL + key; upload then create a document with the key. */
8227
+ uploadUrl: (options: WakataMethodOptions<Parameters<typeof documentUploadControllerUploadUrl>[0]>) => Promise<Awaited<ReturnType<typeof documentUploadControllerUploadUrl>>['data']>;
8228
+ asset: DocumentTypeResource;
8229
+ assetClass: DocumentTypeResource;
8230
+ user: DocumentTypeResource;
8231
+ site: DocumentTypeResource;
8232
+ customer: DocumentTypeResource;
8233
+ project: DocumentTypeResource;
8234
+ job: DocumentTypeResource;
8235
+ company: DocumentTypeResource;
8236
+ }
4375
8237
  /**
4376
8238
  * The main entry point for the Wakata API client.
4377
8239
  *
@@ -4401,6 +8263,12 @@ declare class WakataClient {
4401
8263
  readonly checklists: ChecklistsResource;
4402
8264
  readonly config: ConfigResource;
4403
8265
  readonly assetClassProperties: AssetClassPropertiesResource;
8266
+ readonly documents: DocumentsResource;
8267
+ readonly customers: CustomersResource;
8268
+ readonly zones: ZonesResource;
8269
+ readonly groups: GroupsResource;
8270
+ readonly devices: DevicesResource;
8271
+ readonly timesheets: TimesheetsResource;
4404
8272
  constructor(options: WakataClientOptions);
4405
8273
  }
4406
8274
 
@@ -4570,8 +8438,8 @@ declare function generateIdempotencyKey(): string;
4570
8438
  * See README.md for usage.
4571
8439
  */
4572
8440
  declare const PACKAGE_NAME = "@wakata-dev/api-client";
4573
- declare const PACKAGE_VERSION = "0.3.2";
8441
+ declare const PACKAGE_VERSION = "0.3.3";
4574
8442
  /** Default base URL for the Wakata Public API (production). */
4575
8443
  declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
4576
8444
 
4577
- export { type ApiErrorBody, type ApiErrorDetail, type ApiErrorResponse, type AssetClassControllerCreateAssetClassData, type AssetClassControllerCreateAssetClassError, type AssetClassControllerCreateAssetClassErrors, type AssetClassControllerCreateAssetClassResponse, type AssetClassControllerCreateAssetClassResponses, type AssetClassControllerGetAssetClassListData, type AssetClassControllerGetAssetClassListError, type AssetClassControllerGetAssetClassListErrors, type AssetClassControllerGetAssetClassListResponse, type AssetClassControllerGetAssetClassListResponses, type AssetClassControllerUpdateAssetClassData, type AssetClassControllerUpdateAssetClassError, type AssetClassControllerUpdateAssetClassErrors, type AssetClassControllerUpdateAssetClassResponse, type AssetClassControllerUpdateAssetClassResponses, type AssetClassListResponseDto, type AssetClassPropertyControllerRemoveData, type AssetClassPropertyControllerRemoveError, type AssetClassPropertyControllerRemoveErrors, type AssetClassPropertyControllerRemoveResponse, type AssetClassPropertyControllerRemoveResponses, type AssetClassPropertyControllerUpdateData, type AssetClassPropertyControllerUpdateError, type AssetClassPropertyControllerUpdateErrors, type AssetClassPropertyControllerUpdateResponse, type AssetClassPropertyControllerUpdateResponses, type AssetClassPropertyResponseDto, type AssetClassResponseDto, type AssetControllerCreateAssetPublicData, type AssetControllerCreateAssetPublicError, type AssetControllerCreateAssetPublicErrors, type AssetControllerCreateAssetPublicResponse, type AssetControllerCreateAssetPublicResponses, type AssetControllerGetAssetData, type AssetControllerGetAssetError, type AssetControllerGetAssetErrors, type AssetControllerGetAssetResponse, type AssetControllerGetAssetResponses, type AssetControllerListAssetsData, type AssetControllerListAssetsError, type AssetControllerListAssetsErrors, type AssetControllerListAssetsResponse, type AssetControllerListAssetsResponses, type AssetControllerUpdateAssetData, type AssetControllerUpdateAssetError, type AssetControllerUpdateAssetErrors, type AssetControllerUpdateAssetResponse, type AssetControllerUpdateAssetResponses, type AssetPropertyControllerDeleteAssetPropertyData, type AssetPropertyControllerDeleteAssetPropertyError, type AssetPropertyControllerDeleteAssetPropertyErrors, type AssetPropertyControllerDeleteAssetPropertyResponse, type AssetPropertyControllerDeleteAssetPropertyResponses, type AssetPropertyControllerUpdateAssetPropertyData, type AssetPropertyControllerUpdateAssetPropertyError, type AssetPropertyControllerUpdateAssetPropertyErrors, type AssetPropertyControllerUpdateAssetPropertyResponse, type AssetPropertyControllerUpdateAssetPropertyResponses, type AssetPropertyResponseDto, type AssetsResource, type ChecklistControllerGetChecklistData, type ChecklistControllerGetChecklistError, type ChecklistControllerGetChecklistErrors, type ChecklistControllerGetChecklistResponse, type ChecklistControllerGetChecklistResponses, type ChecklistControllerListChecklistsData, type ChecklistControllerListChecklistsError, type ChecklistControllerListChecklistsErrors, type ChecklistControllerListChecklistsResponse, type ChecklistControllerListChecklistsResponses, type ChecklistSummaryDto, type ClientOptions, type ConfigItemDto, type ConfigTableDto, type CreateAssetClassDto, type CreateConfigItemDto, type CreateSiteDto, DEFAULT_BASE_URL, type DeleteAssetClassPropertyResponseDto, type DeleteAssetPropertyResponseDto, type DeleteSiteResponseDto, type DeleteUserPropertyResponseDto, type EmbeddedAssetClassPropertyDto, type EmbeddedAssetPropertyDto, type EmbeddedUserPropertyDto, type ErrorDetail, type InspectionControllerGetPublicInspectionData, type InspectionControllerGetPublicInspectionError, type InspectionControllerGetPublicInspectionErrors, type InspectionControllerGetPublicInspectionResponse, type InspectionControllerGetPublicInspectionResponses, type InspectionControllerListInspectionsData, type InspectionControllerListInspectionsError, type InspectionControllerListInspectionsErrors, type InspectionControllerListInspectionsResponse, type InspectionControllerListInspectionsResponses, type InspectionResponseDto, type InspectionsResource, type IssueControllerGetIssueHistoryPublicData, type IssueControllerGetIssueHistoryPublicError, type IssueControllerGetIssueHistoryPublicErrors, type IssueControllerGetIssueHistoryPublicResponse, type IssueControllerGetIssueHistoryPublicResponses, type IssueControllerGetIssuePublicData, type IssueControllerGetIssuePublicError, type IssueControllerGetIssuePublicErrors, type IssueControllerGetIssuePublicResponse, type IssueControllerGetIssuePublicResponses, type IssueControllerListIssuesData, type IssueControllerListIssuesError, type IssueControllerListIssuesErrors, type IssueControllerListIssuesResponse, type IssueControllerListIssuesResponses, type IssueControllerUpdateIssuePublicData, type IssueControllerUpdateIssuePublicError, type IssueControllerUpdateIssuePublicErrors, type IssueControllerUpdateIssuePublicResponse, type IssueControllerUpdateIssuePublicResponses, type IssueHistoryDto, type IssueHistoryResponseDto, type IssueResponseDto, type IssuesResource, type ListChecklistsResponseDto, type ListConfigItemsResponseDto, type ListConfigTablesResponseDto, type ListInspectionsResponseDto, type ListIssuesResponseDto, type ListSitesResponseDto, PACKAGE_NAME, PACKAGE_VERSION, type PublicConfigControllerCreateConfigItemData, type PublicConfigControllerCreateConfigItemError, type PublicConfigControllerCreateConfigItemErrors, type PublicConfigControllerCreateConfigItemResponse, type PublicConfigControllerCreateConfigItemResponses, type PublicConfigControllerDeleteConfigItemData, type PublicConfigControllerDeleteConfigItemError, type PublicConfigControllerDeleteConfigItemErrors, type PublicConfigControllerDeleteConfigItemResponse, type PublicConfigControllerDeleteConfigItemResponses, type PublicConfigControllerGetConfigItemData, type PublicConfigControllerGetConfigItemError, type PublicConfigControllerGetConfigItemErrors, type PublicConfigControllerGetConfigItemResponse, type PublicConfigControllerGetConfigItemResponses, type PublicConfigControllerListConfigItemsData, type PublicConfigControllerListConfigItemsError, type PublicConfigControllerListConfigItemsErrors, type PublicConfigControllerListConfigItemsResponse, type PublicConfigControllerListConfigItemsResponses, type PublicConfigControllerListConfigTablesData, type PublicConfigControllerListConfigTablesError, type PublicConfigControllerListConfigTablesErrors, type PublicConfigControllerListConfigTablesResponse, type PublicConfigControllerListConfigTablesResponses, type PublicConfigControllerUpdateConfigItemData, type PublicConfigControllerUpdateConfigItemError, type PublicConfigControllerUpdateConfigItemErrors, type PublicConfigControllerUpdateConfigItemResponse, type PublicConfigControllerUpdateConfigItemResponses, type PublicCreateAssetDto, type SiteControllerCreateSiteData, type SiteControllerCreateSiteError, type SiteControllerCreateSiteErrors, type SiteControllerCreateSiteResponse, type SiteControllerCreateSiteResponses, type SiteControllerDeleteSiteData, type SiteControllerDeleteSiteError, type SiteControllerDeleteSiteErrors, type SiteControllerDeleteSiteResponse, type SiteControllerDeleteSiteResponses, type SiteControllerListSitesData, type SiteControllerListSitesError, type SiteControllerListSitesErrors, type SiteControllerListSitesResponse, type SiteControllerListSitesResponses, type SiteControllerUpdateSiteData, type SiteControllerUpdateSiteError, type SiteControllerUpdateSiteErrors, type SiteControllerUpdateSiteResponse, type SiteControllerUpdateSiteResponses, type SiteResponseDto, type SitesResource, type UpdateAssetClassDto, type UpdateAssetClassPropertyDto, type UpdateAssetDto, type UpdateAssetPropertyDto, type UpdateConfigItemDto, type UpdateIssueDto, type UpdateSiteDto, type UpdateUserPropertyDto, type UserControllerCreateUserData, type UserControllerCreateUserError, type UserControllerCreateUserErrors, type UserControllerCreateUserResponse, type UserControllerCreateUserResponses, type UserControllerGetUserData, type UserControllerGetUserError, type UserControllerGetUserErrors, type UserControllerGetUserResponse, type UserControllerGetUserResponses, type UserControllerListUsersData, type UserControllerListUsersError, type UserControllerListUsersErrors, type UserControllerListUsersResponse, type UserControllerListUsersResponses, type UserControllerUpdateUserData, type UserControllerUpdateUserError, type UserControllerUpdateUserErrors, type UserControllerUpdateUserResponse, type UserControllerUpdateUserResponses, type UserPropertiesResource, type UserPropertyControllerDeleteUserPropertyData, type UserPropertyControllerDeleteUserPropertyError, type UserPropertyControllerDeleteUserPropertyErrors, type UserPropertyControllerDeleteUserPropertyResponse, type UserPropertyControllerDeleteUserPropertyResponses, type UserPropertyControllerUpdateUserPropertyData, type UserPropertyControllerUpdateUserPropertyError, type UserPropertyControllerUpdateUserPropertyErrors, type UserPropertyControllerUpdateUserPropertyResponse, type UserPropertyControllerUpdateUserPropertyResponses, type UserPropertyResponseDto, type UserResponseDto, type UsersResource, WakataApiError, WakataAuthError, WakataClient, type WakataClientOptions, WakataConflictError, type WakataErrorEnvelope, WakataNotFoundError, WakataPermissionError, WakataRateLimitError, WakataServerError, WakataValidationError, generateIdempotencyKey, mapApiError };
8445
+ export { type ApiErrorBody, type ApiErrorDetail, type ApiErrorResponse, type AssetClassControllerCreateAssetClassData, type AssetClassControllerCreateAssetClassError, type AssetClassControllerCreateAssetClassErrors, type AssetClassControllerCreateAssetClassResponse, type AssetClassControllerCreateAssetClassResponses, type AssetClassControllerGetAssetClassListData, type AssetClassControllerGetAssetClassListError, type AssetClassControllerGetAssetClassListErrors, type AssetClassControllerGetAssetClassListResponse, type AssetClassControllerGetAssetClassListResponses, type AssetClassControllerUpdateAssetClassData, type AssetClassControllerUpdateAssetClassError, type AssetClassControllerUpdateAssetClassErrors, type AssetClassControllerUpdateAssetClassResponse, type AssetClassControllerUpdateAssetClassResponses, type AssetClassDocumentControllerCreateData, type AssetClassDocumentControllerCreateError, type AssetClassDocumentControllerCreateErrors, type AssetClassDocumentControllerCreateResponse, type AssetClassDocumentControllerCreateResponses, type AssetClassDocumentControllerGetData, type AssetClassDocumentControllerGetError, type AssetClassDocumentControllerGetErrors, type AssetClassDocumentControllerGetResponse, type AssetClassDocumentControllerGetResponses, type AssetClassDocumentControllerListData, type AssetClassDocumentControllerListError, type AssetClassDocumentControllerListErrors, type AssetClassDocumentControllerListResponse, type AssetClassDocumentControllerListResponses, type AssetClassDocumentControllerRemoveData, type AssetClassDocumentControllerRemoveError, type AssetClassDocumentControllerRemoveErrors, type AssetClassDocumentControllerRemoveResponse, type AssetClassDocumentControllerRemoveResponses, type AssetClassDocumentControllerUpdateData, type AssetClassDocumentControllerUpdateError, type AssetClassDocumentControllerUpdateErrors, type AssetClassDocumentControllerUpdateResponse, type AssetClassDocumentControllerUpdateResponses, type AssetClassListResponseDto, type AssetClassPropertyControllerRemoveData, type AssetClassPropertyControllerRemoveError, type AssetClassPropertyControllerRemoveErrors, type AssetClassPropertyControllerRemoveResponse, type AssetClassPropertyControllerRemoveResponses, type AssetClassPropertyControllerUpdateData, type AssetClassPropertyControllerUpdateError, type AssetClassPropertyControllerUpdateErrors, type AssetClassPropertyControllerUpdateResponse, type AssetClassPropertyControllerUpdateResponses, type AssetClassPropertyResponseDto, type AssetClassResponseDto, type AssetControllerCreateAssetPublicData, type AssetControllerCreateAssetPublicError, type AssetControllerCreateAssetPublicErrors, type AssetControllerCreateAssetPublicResponse, type AssetControllerCreateAssetPublicResponses, type AssetControllerGetAssetData, type AssetControllerGetAssetError, type AssetControllerGetAssetErrors, type AssetControllerGetAssetResponse, type AssetControllerGetAssetResponses, type AssetControllerListAssetsData, type AssetControllerListAssetsError, type AssetControllerListAssetsErrors, type AssetControllerListAssetsResponse, type AssetControllerListAssetsResponses, type AssetControllerUpdateAssetData, type AssetControllerUpdateAssetError, type AssetControllerUpdateAssetErrors, type AssetControllerUpdateAssetResponse, type AssetControllerUpdateAssetResponses, type AssetDocumentControllerCreateData, type AssetDocumentControllerCreateError, type AssetDocumentControllerCreateErrors, type AssetDocumentControllerCreateResponse, type AssetDocumentControllerCreateResponses, type AssetDocumentControllerGetData, type AssetDocumentControllerGetError, type AssetDocumentControllerGetErrors, type AssetDocumentControllerGetResponse, type AssetDocumentControllerGetResponses, type AssetDocumentControllerListData, type AssetDocumentControllerListError, type AssetDocumentControllerListErrors, type AssetDocumentControllerListResponse, type AssetDocumentControllerListResponses, type AssetDocumentControllerRemoveData, type AssetDocumentControllerRemoveError, type AssetDocumentControllerRemoveErrors, type AssetDocumentControllerRemoveResponse, type AssetDocumentControllerRemoveResponses, type AssetDocumentControllerUpdateData, type AssetDocumentControllerUpdateError, type AssetDocumentControllerUpdateErrors, type AssetDocumentControllerUpdateResponse, type AssetDocumentControllerUpdateResponses, type AssetPropertyControllerDeleteAssetPropertyData, type AssetPropertyControllerDeleteAssetPropertyError, type AssetPropertyControllerDeleteAssetPropertyErrors, type AssetPropertyControllerDeleteAssetPropertyResponse, type AssetPropertyControllerDeleteAssetPropertyResponses, type AssetPropertyControllerUpdateAssetPropertyData, type AssetPropertyControllerUpdateAssetPropertyError, type AssetPropertyControllerUpdateAssetPropertyErrors, type AssetPropertyControllerUpdateAssetPropertyResponse, type AssetPropertyControllerUpdateAssetPropertyResponses, type AssetPropertyResponseDto, type AssetsResource, type ChecklistControllerGetChecklistData, type ChecklistControllerGetChecklistError, type ChecklistControllerGetChecklistErrors, type ChecklistControllerGetChecklistResponse, type ChecklistControllerGetChecklistResponses, type ChecklistControllerListChecklistsData, type ChecklistControllerListChecklistsError, type ChecklistControllerListChecklistsErrors, type ChecklistControllerListChecklistsResponse, type ChecklistControllerListChecklistsResponses, type ChecklistSummaryDto, type ClientOptions, type CompanyDocumentControllerCreateData, type CompanyDocumentControllerCreateError, type CompanyDocumentControllerCreateErrors, type CompanyDocumentControllerCreateResponse, type CompanyDocumentControllerCreateResponses, type CompanyDocumentControllerGetData, type CompanyDocumentControllerGetError, type CompanyDocumentControllerGetErrors, type CompanyDocumentControllerGetResponse, type CompanyDocumentControllerGetResponses, type CompanyDocumentControllerListData, type CompanyDocumentControllerListError, type CompanyDocumentControllerListErrors, type CompanyDocumentControllerListResponse, type CompanyDocumentControllerListResponses, type CompanyDocumentControllerRemoveData, type CompanyDocumentControllerRemoveError, type CompanyDocumentControllerRemoveErrors, type CompanyDocumentControllerRemoveResponse, type CompanyDocumentControllerRemoveResponses, type CompanyDocumentControllerUpdateData, type CompanyDocumentControllerUpdateError, type CompanyDocumentControllerUpdateErrors, type CompanyDocumentControllerUpdateResponse, type CompanyDocumentControllerUpdateResponses, type ConfigItemDto, type ConfigTableDto, type CreateAssetClassDto, type CreateConfigItemDto, type CreateCustomerDto, type CreateDocumentDto, type CreateGroupDto, type CreateSiteDto, type CreateZoneDto, type CustomerControllerCreateData, type CustomerControllerCreateError, type CustomerControllerCreateErrors, type CustomerControllerCreateResponse, type CustomerControllerCreateResponses, type CustomerControllerDeleteData, type CustomerControllerDeleteError, type CustomerControllerDeleteErrors, type CustomerControllerDeleteResponse, type CustomerControllerDeleteResponses, type CustomerControllerGetData, type CustomerControllerGetError, type CustomerControllerGetErrors, type CustomerControllerGetResponse, type CustomerControllerGetResponses, type CustomerControllerListData, type CustomerControllerListError, type CustomerControllerListErrors, type CustomerControllerListResponse, type CustomerControllerListResponses, type CustomerControllerUpdateData, type CustomerControllerUpdateError, type CustomerControllerUpdateErrors, type CustomerControllerUpdateResponse, type CustomerControllerUpdateResponses, type CustomerDocumentControllerCreateData, type CustomerDocumentControllerCreateError, type CustomerDocumentControllerCreateErrors, type CustomerDocumentControllerCreateResponse, type CustomerDocumentControllerCreateResponses, type CustomerDocumentControllerGetData, type CustomerDocumentControllerGetError, type CustomerDocumentControllerGetErrors, type CustomerDocumentControllerGetResponse, type CustomerDocumentControllerGetResponses, type CustomerDocumentControllerListData, type CustomerDocumentControllerListError, type CustomerDocumentControllerListErrors, type CustomerDocumentControllerListResponse, type CustomerDocumentControllerListResponses, type CustomerDocumentControllerRemoveData, type CustomerDocumentControllerRemoveError, type CustomerDocumentControllerRemoveErrors, type CustomerDocumentControllerRemoveResponse, type CustomerDocumentControllerRemoveResponses, type CustomerDocumentControllerUpdateData, type CustomerDocumentControllerUpdateError, type CustomerDocumentControllerUpdateErrors, type CustomerDocumentControllerUpdateResponse, type CustomerDocumentControllerUpdateResponses, type CustomerResponseDto, DEFAULT_BASE_URL, type DeleteAssetClassPropertyResponseDto, type DeleteAssetPropertyResponseDto, type DeleteCustomerResponseDto, type DeleteDocumentResponseDto, type DeleteGroupResponseDto, type DeleteSiteResponseDto, type DeleteUserPropertyResponseDto, type DeleteZoneResponseDto, type DevicePublicControllerGetData, type DevicePublicControllerGetError, type DevicePublicControllerGetErrors, type DevicePublicControllerGetResponse, type DevicePublicControllerGetResponses, type DevicePublicControllerListData, type DevicePublicControllerListError, type DevicePublicControllerListErrors, type DevicePublicControllerListResponse, type DevicePublicControllerListResponses, type DeviceResponseDto, type DocumentResponseDto, type DocumentUploadControllerUploadUrlData, type DocumentUploadControllerUploadUrlError, type DocumentUploadControllerUploadUrlErrors, type DocumentUploadControllerUploadUrlResponse, type DocumentUploadControllerUploadUrlResponses, type DocumentUploadUrlDto, type DocumentUploadUrlResponseDto, type EmbeddedAssetClassPropertyDto, type EmbeddedAssetPropertyDto, type EmbeddedCustomerPropertyDto, type EmbeddedUserPropertyDto, type ErrorDetail, type GroupControllerCreateData, type GroupControllerCreateError, type GroupControllerCreateErrors, type GroupControllerCreateResponse, type GroupControllerCreateResponses, type GroupControllerDeleteData, type GroupControllerDeleteError, type GroupControllerDeleteErrors, type GroupControllerDeleteResponse, type GroupControllerDeleteResponses, type GroupControllerGetData, type GroupControllerGetError, type GroupControllerGetErrors, type GroupControllerGetResponse, type GroupControllerGetResponses, type GroupControllerListData, type GroupControllerListError, type GroupControllerListErrors, type GroupControllerListResponse, type GroupControllerListResponses, type GroupControllerUpdateData, type GroupControllerUpdateError, type GroupControllerUpdateErrors, type GroupControllerUpdateResponse, type GroupControllerUpdateResponses, type GroupResponseDto, type InspectionControllerGetPublicInspectionData, type InspectionControllerGetPublicInspectionError, type InspectionControllerGetPublicInspectionErrors, type InspectionControllerGetPublicInspectionResponse, type InspectionControllerGetPublicInspectionResponses, type InspectionControllerListInspectionsData, type InspectionControllerListInspectionsError, type InspectionControllerListInspectionsErrors, type InspectionControllerListInspectionsResponse, type InspectionControllerListInspectionsResponses, type InspectionResponseDto, type InspectionsResource, type IssueControllerGetIssueHistoryPublicData, type IssueControllerGetIssueHistoryPublicError, type IssueControllerGetIssueHistoryPublicErrors, type IssueControllerGetIssueHistoryPublicResponse, type IssueControllerGetIssueHistoryPublicResponses, type IssueControllerGetIssuePublicData, type IssueControllerGetIssuePublicError, type IssueControllerGetIssuePublicErrors, type IssueControllerGetIssuePublicResponse, type IssueControllerGetIssuePublicResponses, type IssueControllerListIssuesData, type IssueControllerListIssuesError, type IssueControllerListIssuesErrors, type IssueControllerListIssuesResponse, type IssueControllerListIssuesResponses, type IssueControllerUpdateIssuePublicData, type IssueControllerUpdateIssuePublicError, type IssueControllerUpdateIssuePublicErrors, type IssueControllerUpdateIssuePublicResponse, type IssueControllerUpdateIssuePublicResponses, type IssueHistoryDto, type IssueHistoryResponseDto, type IssueResponseDto, type IssuesResource, type JobDocumentControllerCreateData, type JobDocumentControllerCreateError, type JobDocumentControllerCreateErrors, type JobDocumentControllerCreateResponse, type JobDocumentControllerCreateResponses, type JobDocumentControllerGetData, type JobDocumentControllerGetError, type JobDocumentControllerGetErrors, type JobDocumentControllerGetResponse, type JobDocumentControllerGetResponses, type JobDocumentControllerListData, type JobDocumentControllerListError, type JobDocumentControllerListErrors, type JobDocumentControllerListResponse, type JobDocumentControllerListResponses, type JobDocumentControllerRemoveData, type JobDocumentControllerRemoveError, type JobDocumentControllerRemoveErrors, type JobDocumentControllerRemoveResponse, type JobDocumentControllerRemoveResponses, type JobDocumentControllerUpdateData, type JobDocumentControllerUpdateError, type JobDocumentControllerUpdateErrors, type JobDocumentControllerUpdateResponse, type JobDocumentControllerUpdateResponses, type ListChecklistsResponseDto, type ListConfigItemsResponseDto, type ListConfigTablesResponseDto, type ListCustomersResponseDto, type ListDevicesResponseDto, type ListDocumentsResponseDto, type ListGroupsResponseDto, type ListInspectionsResponseDto, type ListIssuesResponseDto, type ListSitesResponseDto, type ListTimesheetsResponseDto, type ListZonesResponseDto, PACKAGE_NAME, PACKAGE_VERSION, type ProjectDocumentControllerCreateData, type ProjectDocumentControllerCreateError, type ProjectDocumentControllerCreateErrors, type ProjectDocumentControllerCreateResponse, type ProjectDocumentControllerCreateResponses, type ProjectDocumentControllerGetData, type ProjectDocumentControllerGetError, type ProjectDocumentControllerGetErrors, type ProjectDocumentControllerGetResponse, type ProjectDocumentControllerGetResponses, type ProjectDocumentControllerListData, type ProjectDocumentControllerListError, type ProjectDocumentControllerListErrors, type ProjectDocumentControllerListResponse, type ProjectDocumentControllerListResponses, type ProjectDocumentControllerRemoveData, type ProjectDocumentControllerRemoveError, type ProjectDocumentControllerRemoveErrors, type ProjectDocumentControllerRemoveResponse, type ProjectDocumentControllerRemoveResponses, type ProjectDocumentControllerUpdateData, type ProjectDocumentControllerUpdateError, type ProjectDocumentControllerUpdateErrors, type ProjectDocumentControllerUpdateResponse, type ProjectDocumentControllerUpdateResponses, type PublicConfigControllerCreateConfigItemData, type PublicConfigControllerCreateConfigItemError, type PublicConfigControllerCreateConfigItemErrors, type PublicConfigControllerCreateConfigItemResponse, type PublicConfigControllerCreateConfigItemResponses, type PublicConfigControllerDeleteConfigItemData, type PublicConfigControllerDeleteConfigItemError, type PublicConfigControllerDeleteConfigItemErrors, type PublicConfigControllerDeleteConfigItemResponse, type PublicConfigControllerDeleteConfigItemResponses, type PublicConfigControllerGetConfigItemData, type PublicConfigControllerGetConfigItemError, type PublicConfigControllerGetConfigItemErrors, type PublicConfigControllerGetConfigItemResponse, type PublicConfigControllerGetConfigItemResponses, type PublicConfigControllerListConfigItemsData, type PublicConfigControllerListConfigItemsError, type PublicConfigControllerListConfigItemsErrors, type PublicConfigControllerListConfigItemsResponse, type PublicConfigControllerListConfigItemsResponses, type PublicConfigControllerListConfigTablesData, type PublicConfigControllerListConfigTablesError, type PublicConfigControllerListConfigTablesErrors, type PublicConfigControllerListConfigTablesResponse, type PublicConfigControllerListConfigTablesResponses, type PublicConfigControllerUpdateConfigItemData, type PublicConfigControllerUpdateConfigItemError, type PublicConfigControllerUpdateConfigItemErrors, type PublicConfigControllerUpdateConfigItemResponse, type PublicConfigControllerUpdateConfigItemResponses, type PublicCreateAssetDto, type SiteControllerCreateSiteData, type SiteControllerCreateSiteError, type SiteControllerCreateSiteErrors, type SiteControllerCreateSiteResponse, type SiteControllerCreateSiteResponses, type SiteControllerDeleteSiteData, type SiteControllerDeleteSiteError, type SiteControllerDeleteSiteErrors, type SiteControllerDeleteSiteResponse, type SiteControllerDeleteSiteResponses, type SiteControllerListSitesData, type SiteControllerListSitesError, type SiteControllerListSitesErrors, type SiteControllerListSitesResponse, type SiteControllerListSitesResponses, type SiteControllerUpdateSiteData, type SiteControllerUpdateSiteError, type SiteControllerUpdateSiteErrors, type SiteControllerUpdateSiteResponse, type SiteControllerUpdateSiteResponses, type SiteDocumentControllerCreateData, type SiteDocumentControllerCreateError, type SiteDocumentControllerCreateErrors, type SiteDocumentControllerCreateResponse, type SiteDocumentControllerCreateResponses, type SiteDocumentControllerGetData, type SiteDocumentControllerGetError, type SiteDocumentControllerGetErrors, type SiteDocumentControllerGetResponse, type SiteDocumentControllerGetResponses, type SiteDocumentControllerListData, type SiteDocumentControllerListError, type SiteDocumentControllerListErrors, type SiteDocumentControllerListResponse, type SiteDocumentControllerListResponses, type SiteDocumentControllerRemoveData, type SiteDocumentControllerRemoveError, type SiteDocumentControllerRemoveErrors, type SiteDocumentControllerRemoveResponse, type SiteDocumentControllerRemoveResponses, type SiteDocumentControllerUpdateData, type SiteDocumentControllerUpdateError, type SiteDocumentControllerUpdateErrors, type SiteDocumentControllerUpdateResponse, type SiteDocumentControllerUpdateResponses, type SiteResponseDto, type SitesResource, type TimesheetDetailDto, type TimesheetLineDto, type TimesheetPublicControllerGetData, type TimesheetPublicControllerGetError, type TimesheetPublicControllerGetErrors, type TimesheetPublicControllerGetResponse, type TimesheetPublicControllerGetResponses, type TimesheetPublicControllerListData, type TimesheetPublicControllerListError, type TimesheetPublicControllerListErrors, type TimesheetPublicControllerListResponse, type TimesheetPublicControllerListResponses, type TimesheetSummaryDto, type UpdateAssetClassDto, type UpdateAssetClassPropertyDto, type UpdateAssetDto, type UpdateAssetPropertyDto, type UpdateConfigItemDto, type UpdateCustomerDto, type UpdateDocumentDto, type UpdateGroupDto, type UpdateIssueDto, type UpdateSiteDto, type UpdateUserPropertyDto, type UpdateZoneDto, type UserControllerCreateUserData, type UserControllerCreateUserError, type UserControllerCreateUserErrors, type UserControllerCreateUserResponse, type UserControllerCreateUserResponses, type UserControllerGetUserData, type UserControllerGetUserError, type UserControllerGetUserErrors, type UserControllerGetUserResponse, type UserControllerGetUserResponses, type UserControllerListUsersData, type UserControllerListUsersError, type UserControllerListUsersErrors, type UserControllerListUsersResponse, type UserControllerListUsersResponses, type UserControllerUpdateUserData, type UserControllerUpdateUserError, type UserControllerUpdateUserErrors, type UserControllerUpdateUserResponse, type UserControllerUpdateUserResponses, type UserDocumentControllerCreateData, type UserDocumentControllerCreateError, type UserDocumentControllerCreateErrors, type UserDocumentControllerCreateResponse, type UserDocumentControllerCreateResponses, type UserDocumentControllerGetData, type UserDocumentControllerGetError, type UserDocumentControllerGetErrors, type UserDocumentControllerGetResponse, type UserDocumentControllerGetResponses, type UserDocumentControllerListData, type UserDocumentControllerListError, type UserDocumentControllerListErrors, type UserDocumentControllerListResponse, type UserDocumentControllerListResponses, type UserDocumentControllerRemoveData, type UserDocumentControllerRemoveError, type UserDocumentControllerRemoveErrors, type UserDocumentControllerRemoveResponse, type UserDocumentControllerRemoveResponses, type UserDocumentControllerUpdateData, type UserDocumentControllerUpdateError, type UserDocumentControllerUpdateErrors, type UserDocumentControllerUpdateResponse, type UserDocumentControllerUpdateResponses, type UserPropertiesResource, type UserPropertyControllerDeleteUserPropertyData, type UserPropertyControllerDeleteUserPropertyError, type UserPropertyControllerDeleteUserPropertyErrors, type UserPropertyControllerDeleteUserPropertyResponse, type UserPropertyControllerDeleteUserPropertyResponses, type UserPropertyControllerUpdateUserPropertyData, type UserPropertyControllerUpdateUserPropertyError, type UserPropertyControllerUpdateUserPropertyErrors, type UserPropertyControllerUpdateUserPropertyResponse, type UserPropertyControllerUpdateUserPropertyResponses, type UserPropertyResponseDto, type UserResponseDto, type UsersResource, WakataApiError, WakataAuthError, WakataClient, type WakataClientOptions, WakataConflictError, type WakataErrorEnvelope, WakataNotFoundError, WakataPermissionError, WakataRateLimitError, WakataServerError, WakataValidationError, type ZoneControllerCreateData, type ZoneControllerCreateError, type ZoneControllerCreateErrors, type ZoneControllerCreateResponse, type ZoneControllerCreateResponses, type ZoneControllerDeleteData, type ZoneControllerDeleteError, type ZoneControllerDeleteErrors, type ZoneControllerDeleteResponse, type ZoneControllerDeleteResponses, type ZoneControllerGetData, type ZoneControllerGetError, type ZoneControllerGetErrors, type ZoneControllerGetResponse, type ZoneControllerGetResponses, type ZoneControllerListData, type ZoneControllerListError, type ZoneControllerListErrors, type ZoneControllerListResponse, type ZoneControllerListResponses, type ZoneControllerUpdateData, type ZoneControllerUpdateError, type ZoneControllerUpdateErrors, type ZoneControllerUpdateResponse, type ZoneControllerUpdateResponses, type ZoneResponseDto, generateIdempotencyKey, mapApiError };