@wakata-dev/api-client 0.1.3 → 0.3.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.ts CHANGED
@@ -1840,6 +1840,56 @@ type DeleteAssetPropertyResponseDto = {
1840
1840
  */
1841
1841
  id: string;
1842
1842
  };
1843
+ type EmbeddedAssetClassPropertyDto = {
1844
+ /**
1845
+ * Custom field-definition ID (config_items.id). String (BigInt-safe).
1846
+ */
1847
+ property_id: string;
1848
+ /**
1849
+ * The asset_class_properties value-row ID (for future round-trip into an asset-class-property update). String (BigInt-safe).
1850
+ */
1851
+ asset_class_property_id: string;
1852
+ /**
1853
+ * Property name from config_items
1854
+ */
1855
+ property_name: string;
1856
+ /**
1857
+ * Text value
1858
+ */
1859
+ text_value: {
1860
+ [key: string]: unknown;
1861
+ } | null;
1862
+ /**
1863
+ * Numeric value
1864
+ */
1865
+ numeric_value: {
1866
+ [key: string]: unknown;
1867
+ } | null;
1868
+ /**
1869
+ * Date value
1870
+ */
1871
+ date_value: {
1872
+ [key: string]: unknown;
1873
+ } | null;
1874
+ /**
1875
+ * Timestamp the value was last updated
1876
+ */
1877
+ updated_at: {
1878
+ [key: string]: unknown;
1879
+ } | null;
1880
+ /**
1881
+ * Public ID (UUID) of the user who last updated this value
1882
+ */
1883
+ updated_by: {
1884
+ [key: string]: unknown;
1885
+ } | null;
1886
+ /**
1887
+ * Name of the user who last updated this value
1888
+ */
1889
+ updated_by_name: {
1890
+ [key: string]: unknown;
1891
+ } | null;
1892
+ };
1843
1893
  type AssetClassResponseDto = {
1844
1894
  /**
1845
1895
  * Asset class public ID (UUID)
@@ -1909,6 +1959,10 @@ type AssetClassResponseDto = {
1909
1959
  updated_by_name?: {
1910
1960
  [key: string]: unknown;
1911
1961
  };
1962
+ /**
1963
+ * Embedded custom property values for this asset class. Uniform shape across entities (property_id = field definition, asset_class_property_id = value row). Empty when the class has no custom properties.
1964
+ */
1965
+ asset_class_properties: Array<EmbeddedAssetClassPropertyDto>;
1912
1966
  };
1913
1967
  type AssetClassListResponseDto = {
1914
1968
  /**
@@ -1984,6 +2038,190 @@ type UpdateAssetClassDto = {
1984
2038
  */
1985
2039
  on_the_fly_enabled?: boolean;
1986
2040
  };
2041
+ type ChecklistSummaryDto = {
2042
+ /**
2043
+ * Checklist ID (numeric string)
2044
+ */
2045
+ id: string;
2046
+ /**
2047
+ * Company ID
2048
+ */
2049
+ company_id: string;
2050
+ /**
2051
+ * Checklist name
2052
+ */
2053
+ name: string;
2054
+ /**
2055
+ * Checklist type
2056
+ */
2057
+ type: string;
2058
+ /**
2059
+ * Root checklist ID grouping all versions (null for a v1 with no prior versions). Numeric string.
2060
+ */
2061
+ root_id: {
2062
+ [key: string]: unknown;
2063
+ } | null;
2064
+ /**
2065
+ * Version number
2066
+ */
2067
+ version: number;
2068
+ /**
2069
+ * Version notes
2070
+ */
2071
+ version_notes: {
2072
+ [key: string]: unknown;
2073
+ } | null;
2074
+ /**
2075
+ * Category ID
2076
+ */
2077
+ category_id: {
2078
+ [key: string]: unknown;
2079
+ } | null;
2080
+ /**
2081
+ * Category name
2082
+ */
2083
+ category_name: {
2084
+ [key: string]: unknown;
2085
+ } | null;
2086
+ /**
2087
+ * When this version was published
2088
+ */
2089
+ published_at: {
2090
+ [key: string]: unknown;
2091
+ } | null;
2092
+ created_at: string;
2093
+ updated_at: string;
2094
+ };
2095
+ type ListChecklistsResponseDto = {
2096
+ /**
2097
+ * List of checklists
2098
+ */
2099
+ data: Array<ChecklistSummaryDto>;
2100
+ /**
2101
+ * Current page number
2102
+ */
2103
+ page: number;
2104
+ /**
2105
+ * Number of results per page
2106
+ */
2107
+ per_page: number;
2108
+ /**
2109
+ * Total number of results
2110
+ */
2111
+ total: number;
2112
+ /**
2113
+ * Total number of pages
2114
+ */
2115
+ total_pages: number;
2116
+ };
2117
+ type ConfigTableDto = {
2118
+ /**
2119
+ * Config table ID (numeric string)
2120
+ */
2121
+ id: string;
2122
+ /**
2123
+ * Display name
2124
+ */
2125
+ name: string;
2126
+ /**
2127
+ * Stable class/key identifying the table purpose
2128
+ */
2129
+ class: string;
2130
+ /**
2131
+ * Whether items in this table are content-translated
2132
+ */
2133
+ translate_content: boolean;
2134
+ created_at: string;
2135
+ updated_at: string;
2136
+ };
2137
+ type ListConfigTablesResponseDto = {
2138
+ /**
2139
+ * Config tables
2140
+ */
2141
+ data: Array<ConfigTableDto>;
2142
+ page: number;
2143
+ per_page: number;
2144
+ total: number;
2145
+ total_pages: number;
2146
+ };
2147
+ type ConfigItemDto = {
2148
+ /**
2149
+ * Config item ID (numeric string)
2150
+ */
2151
+ id: string;
2152
+ /**
2153
+ * Parent config table ID
2154
+ */
2155
+ config_table_id: string;
2156
+ /**
2157
+ * Parent config table name
2158
+ */
2159
+ config_table_name: string;
2160
+ /**
2161
+ * Parent config table class
2162
+ */
2163
+ config_table_class: string;
2164
+ /**
2165
+ * Item value / name
2166
+ */
2167
+ item: string;
2168
+ /**
2169
+ * Description
2170
+ */
2171
+ description: {
2172
+ [key: string]: unknown;
2173
+ } | null;
2174
+ /**
2175
+ * Free-form options (JSON), e.g. property metadata
2176
+ */
2177
+ options: {
2178
+ [key: string]: unknown;
2179
+ } | null;
2180
+ /**
2181
+ * Image file key
2182
+ */
2183
+ image_file: {
2184
+ [key: string]: unknown;
2185
+ } | null;
2186
+ created_at: string;
2187
+ updated_at: string;
2188
+ };
2189
+ type ListConfigItemsResponseDto = {
2190
+ /**
2191
+ * Config items
2192
+ */
2193
+ data: Array<ConfigItemDto>;
2194
+ page: number;
2195
+ per_page: number;
2196
+ total: number;
2197
+ total_pages: number;
2198
+ };
2199
+ type CreateConfigItemDto = {
2200
+ /**
2201
+ * Parent config table ID (numeric string, from GET /public/config-table/list). Must belong to the authenticated company.
2202
+ */
2203
+ config_table_id: string;
2204
+ /**
2205
+ * Item value / name
2206
+ */
2207
+ item: string;
2208
+ /**
2209
+ * Description
2210
+ */
2211
+ description?: string;
2212
+ };
2213
+ type UpdateConfigItemDto = {
2214
+ /**
2215
+ * Item value / name
2216
+ */
2217
+ item?: string;
2218
+ /**
2219
+ * Description (pass null to clear)
2220
+ */
2221
+ description?: {
2222
+ [key: string]: unknown;
2223
+ } | null;
2224
+ };
1987
2225
  type SiteResponseDto = {
1988
2226
  /**
1989
2227
  * Site public ID (UUID)
@@ -2995,6 +3233,114 @@ type InspectionControllerListInspectionsResponses = {
2995
3233
  200: ListInspectionsResponseDto;
2996
3234
  };
2997
3235
  type InspectionControllerListInspectionsResponse = InspectionControllerListInspectionsResponses[keyof InspectionControllerListInspectionsResponses];
3236
+ type InspectionControllerGetPublicInspectionData = {
3237
+ body?: never;
3238
+ path: {
3239
+ /**
3240
+ * Inspection public UUID
3241
+ */
3242
+ public_id: string;
3243
+ };
3244
+ query?: never;
3245
+ url: '/public/inspection/{public_id}';
3246
+ };
3247
+ type InspectionControllerGetPublicInspectionErrors = {
3248
+ /**
3249
+ * 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`.
3250
+ */
3251
+ 400: ApiErrorResponse;
3252
+ /**
3253
+ * 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.
3254
+ */
3255
+ 401: ApiErrorResponse;
3256
+ /**
3257
+ * 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).
3258
+ */
3259
+ 403: ApiErrorResponse;
3260
+ /**
3261
+ * 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.
3262
+ */
3263
+ 404: ApiErrorResponse;
3264
+ /**
3265
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
3266
+ */
3267
+ 429: ApiErrorResponse;
3268
+ /**
3269
+ * 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.
3270
+ */
3271
+ 500: ApiErrorResponse;
3272
+ };
3273
+ type InspectionControllerGetPublicInspectionError = InspectionControllerGetPublicInspectionErrors[keyof InspectionControllerGetPublicInspectionErrors];
3274
+ type InspectionControllerGetPublicInspectionResponses = {
3275
+ /**
3276
+ * Inspection detail with all related data
3277
+ */
3278
+ 200: {
3279
+ /**
3280
+ * Inspection record
3281
+ */
3282
+ inspection?: {
3283
+ [key: string]: unknown;
3284
+ };
3285
+ /**
3286
+ * Inspection history records
3287
+ */
3288
+ inspection_history?: Array<{
3289
+ [key: string]: unknown;
3290
+ }>;
3291
+ /**
3292
+ * Response records
3293
+ */
3294
+ responses?: Array<{
3295
+ [key: string]: unknown;
3296
+ }>;
3297
+ /**
3298
+ * Response option records
3299
+ */
3300
+ response_options?: Array<{
3301
+ [key: string]: unknown;
3302
+ }>;
3303
+ /**
3304
+ * Response media records. The raw S3 key is not exposed; `media_url` is a signed CloudFront URL (≈1h lifetime), or null if CloudFront signing is not configured.
3305
+ */
3306
+ response_media?: Array<{
3307
+ id?: string;
3308
+ public_id?: string;
3309
+ response_id?: string | null;
3310
+ response_extra_info_id?: string | null;
3311
+ type?: string;
3312
+ media_info?: string | null;
3313
+ captured_at?: string | null;
3314
+ audio_duration?: number | null;
3315
+ audio_transcription?: string | null;
3316
+ /**
3317
+ * Signed CloudFront URL for the media object.
3318
+ */
3319
+ media_url?: string | null;
3320
+ }>;
3321
+ /**
3322
+ * Response extra info records
3323
+ */
3324
+ response_extra_infos?: Array<{
3325
+ [key: string]: unknown;
3326
+ }>;
3327
+ /**
3328
+ * Embedded custom property values. Uniform shape across entities (property_id = field definition, inspection_property_id = value row). String IDs are BigInt-safe.
3329
+ */
3330
+ inspection_properties?: Array<{
3331
+ property_id?: string;
3332
+ inspection_property_id?: string;
3333
+ property_name?: string;
3334
+ text_value?: string | null;
3335
+ numeric_value?: number | null;
3336
+ date_value?: string | null;
3337
+ updated_at?: string | null;
3338
+ updated_by?: string | null;
3339
+ updated_by_name?: string | null;
3340
+ }>;
3341
+ };
3342
+ };
3343
+ type InspectionControllerGetPublicInspectionResponse = InspectionControllerGetPublicInspectionResponses[keyof InspectionControllerGetPublicInspectionResponses];
2998
3344
  type InspectionControllerSubmitInspectionPublicData = {
2999
3345
  /**
3000
3346
  * Complete inspection data with nested structure
@@ -3660,7 +4006,7 @@ type AssetClassControllerUpdateAssetClassResponses = {
3660
4006
  200: AssetClassResponseDto;
3661
4007
  };
3662
4008
  type AssetClassControllerUpdateAssetClassResponse = AssetClassControllerUpdateAssetClassResponses[keyof AssetClassControllerUpdateAssetClassResponses];
3663
- type SiteControllerListSitesData = {
4009
+ type ChecklistControllerListChecklistsData = {
3664
4010
  body?: never;
3665
4011
  path?: never;
3666
4012
  query?: {
@@ -3677,33 +4023,29 @@ type SiteControllerListSitesData = {
3677
4023
  */
3678
4024
  direction?: 'asc' | 'desc';
3679
4025
  /**
3680
- * Field to sort by (name, created_at, updated_at, category)
3681
- */
3682
- sort?: string;
3683
- /**
3684
- * Filter by site name (partial match)
4026
+ * Sort field: name, created_at, updated_at, published_at, version, id (default: name)
3685
4027
  */
3686
- site_name?: string;
4028
+ sort?: 'name' | 'created_at' | 'updated_at' | 'published_at' | 'version' | 'id';
3687
4029
  /**
3688
- * Filter by site category name
4030
+ * Filter by name (case-insensitive partial match)
3689
4031
  */
3690
- site_category?: string;
4032
+ name?: string;
3691
4033
  /**
3692
- * BigInt as string. IDs are stringified at the serialization boundary.
4034
+ * Filter by checklist type (exact match)
3693
4035
  */
3694
- site_category_id?: string;
4036
+ type?: string;
3695
4037
  /**
3696
- * Return sites modified since the date provided
4038
+ * Filter by updated_at from (inclusive) sync watermark
3697
4039
  */
3698
- date_modified_from?: string;
4040
+ checklist_date_updated_from?: string;
3699
4041
  /**
3700
- * Return sites modified to the date provided
4042
+ * Filter by updated_at to (inclusive)
3701
4043
  */
3702
- date_modified_to?: string;
4044
+ checklist_date_updated_to?: string;
3703
4045
  };
3704
- url: '/site/list';
4046
+ url: '/public/checklist/list';
3705
4047
  };
3706
- type SiteControllerListSitesErrors = {
4048
+ type ChecklistControllerListChecklistsErrors = {
3707
4049
  /**
3708
4050
  * 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`.
3709
4051
  */
@@ -3725,18 +4067,476 @@ type SiteControllerListSitesErrors = {
3725
4067
  */
3726
4068
  500: ApiErrorResponse;
3727
4069
  };
3728
- type SiteControllerListSitesError = SiteControllerListSitesErrors[keyof SiteControllerListSitesErrors];
3729
- type SiteControllerListSitesResponses = {
4070
+ type ChecklistControllerListChecklistsError = ChecklistControllerListChecklistsErrors[keyof ChecklistControllerListChecklistsErrors];
4071
+ type ChecklistControllerListChecklistsResponses = {
3730
4072
  /**
3731
- * List of sites with pagination info
4073
+ * List of checklists with pagination info
3732
4074
  */
3733
- 200: ListSitesResponseDto;
4075
+ 200: ListChecklistsResponseDto;
3734
4076
  };
3735
- type SiteControllerListSitesResponse = SiteControllerListSitesResponses[keyof SiteControllerListSitesResponses];
3736
- type SiteControllerCreateSiteData = {
3737
- /**
3738
- * Site creation data
3739
- */
4077
+ type ChecklistControllerListChecklistsResponse = ChecklistControllerListChecklistsResponses[keyof ChecklistControllerListChecklistsResponses];
4078
+ type ChecklistControllerGetChecklistData = {
4079
+ body?: never;
4080
+ path: {
4081
+ /**
4082
+ * Checklist ID (numeric string, from the list endpoint)
4083
+ */
4084
+ id: string;
4085
+ };
4086
+ query?: never;
4087
+ url: '/public/checklist/{id}';
4088
+ };
4089
+ type ChecklistControllerGetChecklistErrors = {
4090
+ /**
4091
+ * 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`.
4092
+ */
4093
+ 400: ApiErrorResponse;
4094
+ /**
4095
+ * 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.
4096
+ */
4097
+ 401: ApiErrorResponse;
4098
+ /**
4099
+ * 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).
4100
+ */
4101
+ 403: ApiErrorResponse;
4102
+ /**
4103
+ * 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.
4104
+ */
4105
+ 404: ApiErrorResponse;
4106
+ /**
4107
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4108
+ */
4109
+ 429: ApiErrorResponse;
4110
+ /**
4111
+ * 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.
4112
+ */
4113
+ 500: ApiErrorResponse;
4114
+ };
4115
+ type ChecklistControllerGetChecklistError = ChecklistControllerGetChecklistErrors[keyof ChecklistControllerGetChecklistErrors];
4116
+ type ChecklistControllerGetChecklistResponses = {
4117
+ /**
4118
+ * Checklist detail with items
4119
+ */
4120
+ 200: {
4121
+ /**
4122
+ * Checklist record
4123
+ */
4124
+ checklist?: {
4125
+ [key: string]: unknown;
4126
+ };
4127
+ /**
4128
+ * Checklist items (questions/folders) ordered by nested-set left.
4129
+ */
4130
+ items?: Array<{
4131
+ [key: string]: unknown;
4132
+ }>;
4133
+ };
4134
+ };
4135
+ type ChecklistControllerGetChecklistResponse = ChecklistControllerGetChecklistResponses[keyof ChecklistControllerGetChecklistResponses];
4136
+ type PublicConfigControllerListConfigTablesData = {
4137
+ body?: never;
4138
+ path?: never;
4139
+ query?: {
4140
+ /**
4141
+ * Results per page
4142
+ */
4143
+ per_page?: number;
4144
+ /**
4145
+ * Page number
4146
+ */
4147
+ page?: number;
4148
+ /**
4149
+ * Sort direction
4150
+ */
4151
+ direction?: 'asc' | 'desc';
4152
+ /**
4153
+ * Sort field: name, class, created_at, updated_at, id (default name)
4154
+ */
4155
+ sort?: string;
4156
+ /**
4157
+ * Filter by class (exact)
4158
+ */
4159
+ class?: string;
4160
+ /**
4161
+ * Filter by name (case-insensitive partial)
4162
+ */
4163
+ name?: string;
4164
+ };
4165
+ url: '/public/config-table/list';
4166
+ };
4167
+ type PublicConfigControllerListConfigTablesErrors = {
4168
+ /**
4169
+ * 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`.
4170
+ */
4171
+ 400: ApiErrorResponse;
4172
+ /**
4173
+ * 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.
4174
+ */
4175
+ 401: ApiErrorResponse;
4176
+ /**
4177
+ * 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).
4178
+ */
4179
+ 403: ApiErrorResponse;
4180
+ /**
4181
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4182
+ */
4183
+ 429: ApiErrorResponse;
4184
+ /**
4185
+ * 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.
4186
+ */
4187
+ 500: ApiErrorResponse;
4188
+ };
4189
+ type PublicConfigControllerListConfigTablesError = PublicConfigControllerListConfigTablesErrors[keyof PublicConfigControllerListConfigTablesErrors];
4190
+ type PublicConfigControllerListConfigTablesResponses = {
4191
+ /**
4192
+ * Config tables with pagination info
4193
+ */
4194
+ 200: ListConfigTablesResponseDto;
4195
+ };
4196
+ type PublicConfigControllerListConfigTablesResponse = PublicConfigControllerListConfigTablesResponses[keyof PublicConfigControllerListConfigTablesResponses];
4197
+ type PublicConfigControllerListConfigItemsData = {
4198
+ body?: never;
4199
+ path?: never;
4200
+ query?: {
4201
+ /**
4202
+ * Results per page
4203
+ */
4204
+ per_page?: number;
4205
+ /**
4206
+ * Page number
4207
+ */
4208
+ page?: number;
4209
+ /**
4210
+ * Sort direction
4211
+ */
4212
+ direction?: 'asc' | 'desc';
4213
+ /**
4214
+ * Sort field: item, created_at, updated_at, id (default item)
4215
+ */
4216
+ sort?: string;
4217
+ /**
4218
+ * Filter to a single config table (numeric id, from the config-table list). Recommended — otherwise all of the company’s config items are returned.
4219
+ */
4220
+ config_table_id?: string;
4221
+ /**
4222
+ * Filter by config table class (exact), e.g. asset_category
4223
+ */
4224
+ config_table_class?: string;
4225
+ /**
4226
+ * Filter by item name (case-insensitive partial)
4227
+ */
4228
+ name?: string;
4229
+ /**
4230
+ * Filter by updated_at from (inclusive) — sync watermark
4231
+ */
4232
+ config_item_date_updated_from?: string;
4233
+ /**
4234
+ * Filter by updated_at to (inclusive)
4235
+ */
4236
+ config_item_date_updated_to?: string;
4237
+ };
4238
+ url: '/public/config-item/list';
4239
+ };
4240
+ type PublicConfigControllerListConfigItemsErrors = {
4241
+ /**
4242
+ * 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`.
4243
+ */
4244
+ 400: ApiErrorResponse;
4245
+ /**
4246
+ * 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.
4247
+ */
4248
+ 401: ApiErrorResponse;
4249
+ /**
4250
+ * 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).
4251
+ */
4252
+ 403: ApiErrorResponse;
4253
+ /**
4254
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4255
+ */
4256
+ 429: ApiErrorResponse;
4257
+ /**
4258
+ * 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.
4259
+ */
4260
+ 500: ApiErrorResponse;
4261
+ };
4262
+ type PublicConfigControllerListConfigItemsError = PublicConfigControllerListConfigItemsErrors[keyof PublicConfigControllerListConfigItemsErrors];
4263
+ type PublicConfigControllerListConfigItemsResponses = {
4264
+ /**
4265
+ * Config items with pagination info
4266
+ */
4267
+ 200: ListConfigItemsResponseDto;
4268
+ };
4269
+ type PublicConfigControllerListConfigItemsResponse = PublicConfigControllerListConfigItemsResponses[keyof PublicConfigControllerListConfigItemsResponses];
4270
+ type PublicConfigControllerDeleteConfigItemData = {
4271
+ body?: never;
4272
+ path: {
4273
+ /**
4274
+ * Config item ID (numeric string)
4275
+ */
4276
+ id: string;
4277
+ };
4278
+ query?: never;
4279
+ url: '/public/config-item/{id}';
4280
+ };
4281
+ type PublicConfigControllerDeleteConfigItemErrors = {
4282
+ /**
4283
+ * 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`.
4284
+ */
4285
+ 400: ApiErrorResponse;
4286
+ /**
4287
+ * 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.
4288
+ */
4289
+ 401: ApiErrorResponse;
4290
+ /**
4291
+ * 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).
4292
+ */
4293
+ 403: ApiErrorResponse;
4294
+ /**
4295
+ * 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.
4296
+ */
4297
+ 404: ApiErrorResponse;
4298
+ /**
4299
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4300
+ */
4301
+ 429: ApiErrorResponse;
4302
+ /**
4303
+ * 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.
4304
+ */
4305
+ 500: ApiErrorResponse;
4306
+ };
4307
+ type PublicConfigControllerDeleteConfigItemError = PublicConfigControllerDeleteConfigItemErrors[keyof PublicConfigControllerDeleteConfigItemErrors];
4308
+ type PublicConfigControllerDeleteConfigItemResponses = {
4309
+ /**
4310
+ * Config item deleted
4311
+ */
4312
+ 200: {
4313
+ success?: boolean;
4314
+ };
4315
+ };
4316
+ type PublicConfigControllerDeleteConfigItemResponse = PublicConfigControllerDeleteConfigItemResponses[keyof PublicConfigControllerDeleteConfigItemResponses];
4317
+ type PublicConfigControllerGetConfigItemData = {
4318
+ body?: never;
4319
+ path: {
4320
+ /**
4321
+ * Config item ID (numeric string)
4322
+ */
4323
+ id: string;
4324
+ };
4325
+ query?: never;
4326
+ url: '/public/config-item/{id}';
4327
+ };
4328
+ type PublicConfigControllerGetConfigItemErrors = {
4329
+ /**
4330
+ * 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`.
4331
+ */
4332
+ 400: ApiErrorResponse;
4333
+ /**
4334
+ * 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.
4335
+ */
4336
+ 401: ApiErrorResponse;
4337
+ /**
4338
+ * 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).
4339
+ */
4340
+ 403: ApiErrorResponse;
4341
+ /**
4342
+ * 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.
4343
+ */
4344
+ 404: ApiErrorResponse;
4345
+ /**
4346
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4347
+ */
4348
+ 429: ApiErrorResponse;
4349
+ /**
4350
+ * 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.
4351
+ */
4352
+ 500: ApiErrorResponse;
4353
+ };
4354
+ type PublicConfigControllerGetConfigItemError = PublicConfigControllerGetConfigItemErrors[keyof PublicConfigControllerGetConfigItemErrors];
4355
+ type PublicConfigControllerGetConfigItemResponses = {
4356
+ /**
4357
+ * The config item
4358
+ */
4359
+ 200: ConfigItemDto;
4360
+ };
4361
+ type PublicConfigControllerGetConfigItemResponse = PublicConfigControllerGetConfigItemResponses[keyof PublicConfigControllerGetConfigItemResponses];
4362
+ type PublicConfigControllerUpdateConfigItemData = {
4363
+ body: UpdateConfigItemDto;
4364
+ headers?: {
4365
+ /**
4366
+ * 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.
4367
+ */
4368
+ 'Idempotency-Key'?: string;
4369
+ };
4370
+ path: {
4371
+ /**
4372
+ * Config item ID (numeric string)
4373
+ */
4374
+ id: string;
4375
+ };
4376
+ query?: never;
4377
+ url: '/public/config-item/{id}';
4378
+ };
4379
+ type PublicConfigControllerUpdateConfigItemErrors = {
4380
+ /**
4381
+ * 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`.
4382
+ */
4383
+ 400: ApiErrorResponse;
4384
+ /**
4385
+ * 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.
4386
+ */
4387
+ 401: ApiErrorResponse;
4388
+ /**
4389
+ * 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).
4390
+ */
4391
+ 403: ApiErrorResponse;
4392
+ /**
4393
+ * 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.
4394
+ */
4395
+ 404: ApiErrorResponse;
4396
+ /**
4397
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4398
+ */
4399
+ 429: ApiErrorResponse;
4400
+ /**
4401
+ * 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.
4402
+ */
4403
+ 500: ApiErrorResponse;
4404
+ };
4405
+ type PublicConfigControllerUpdateConfigItemError = PublicConfigControllerUpdateConfigItemErrors[keyof PublicConfigControllerUpdateConfigItemErrors];
4406
+ type PublicConfigControllerUpdateConfigItemResponses = {
4407
+ /**
4408
+ * Config item updated
4409
+ */
4410
+ 200: ConfigItemDto;
4411
+ };
4412
+ type PublicConfigControllerUpdateConfigItemResponse = PublicConfigControllerUpdateConfigItemResponses[keyof PublicConfigControllerUpdateConfigItemResponses];
4413
+ type PublicConfigControllerCreateConfigItemData = {
4414
+ body: CreateConfigItemDto;
4415
+ headers?: {
4416
+ /**
4417
+ * 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.
4418
+ */
4419
+ 'Idempotency-Key'?: string;
4420
+ };
4421
+ path?: never;
4422
+ query?: never;
4423
+ url: '/public/config-item';
4424
+ };
4425
+ type PublicConfigControllerCreateConfigItemErrors = {
4426
+ /**
4427
+ * 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`.
4428
+ */
4429
+ 400: ApiErrorResponse;
4430
+ /**
4431
+ * 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.
4432
+ */
4433
+ 401: ApiErrorResponse;
4434
+ /**
4435
+ * 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).
4436
+ */
4437
+ 403: ApiErrorResponse;
4438
+ /**
4439
+ * 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.
4440
+ */
4441
+ 404: ApiErrorResponse;
4442
+ /**
4443
+ * 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`).
4444
+ */
4445
+ 409: ApiErrorResponse;
4446
+ /**
4447
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4448
+ */
4449
+ 429: ApiErrorResponse;
4450
+ /**
4451
+ * 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.
4452
+ */
4453
+ 500: ApiErrorResponse;
4454
+ };
4455
+ type PublicConfigControllerCreateConfigItemError = PublicConfigControllerCreateConfigItemErrors[keyof PublicConfigControllerCreateConfigItemErrors];
4456
+ type PublicConfigControllerCreateConfigItemResponses = {
4457
+ /**
4458
+ * Config item created
4459
+ */
4460
+ 201: ConfigItemDto;
4461
+ };
4462
+ type PublicConfigControllerCreateConfigItemResponse = PublicConfigControllerCreateConfigItemResponses[keyof PublicConfigControllerCreateConfigItemResponses];
4463
+ type SiteControllerListSitesData = {
4464
+ body?: never;
4465
+ path?: never;
4466
+ query?: {
4467
+ /**
4468
+ * Number of results per page (default: 15)
4469
+ */
4470
+ per_page?: number;
4471
+ /**
4472
+ * Page number (default: 1)
4473
+ */
4474
+ page?: number;
4475
+ /**
4476
+ * Sort direction (default: asc)
4477
+ */
4478
+ direction?: 'asc' | 'desc';
4479
+ /**
4480
+ * Field to sort by (name, created_at, updated_at, category)
4481
+ */
4482
+ sort?: string;
4483
+ /**
4484
+ * Filter by site name (partial match)
4485
+ */
4486
+ site_name?: string;
4487
+ /**
4488
+ * Filter by site category name
4489
+ */
4490
+ site_category?: string;
4491
+ /**
4492
+ * BigInt as string. IDs are stringified at the serialization boundary.
4493
+ */
4494
+ site_category_id?: string;
4495
+ /**
4496
+ * Return sites modified since the date provided
4497
+ */
4498
+ date_modified_from?: string;
4499
+ /**
4500
+ * Return sites modified to the date provided
4501
+ */
4502
+ date_modified_to?: string;
4503
+ };
4504
+ url: '/site/list';
4505
+ };
4506
+ type SiteControllerListSitesErrors = {
4507
+ /**
4508
+ * 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`.
4509
+ */
4510
+ 400: ApiErrorResponse;
4511
+ /**
4512
+ * 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.
4513
+ */
4514
+ 401: ApiErrorResponse;
4515
+ /**
4516
+ * 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).
4517
+ */
4518
+ 403: ApiErrorResponse;
4519
+ /**
4520
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
4521
+ */
4522
+ 429: ApiErrorResponse;
4523
+ /**
4524
+ * 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.
4525
+ */
4526
+ 500: ApiErrorResponse;
4527
+ };
4528
+ type SiteControllerListSitesError = SiteControllerListSitesErrors[keyof SiteControllerListSitesErrors];
4529
+ type SiteControllerListSitesResponses = {
4530
+ /**
4531
+ * List of sites with pagination info
4532
+ */
4533
+ 200: ListSitesResponseDto;
4534
+ };
4535
+ type SiteControllerListSitesResponse = SiteControllerListSitesResponses[keyof SiteControllerListSitesResponses];
4536
+ type SiteControllerCreateSiteData = {
4537
+ /**
4538
+ * Site creation data
4539
+ */
3740
4540
  body: CreateSiteDto;
3741
4541
  headers?: {
3742
4542
  /**
@@ -3878,7 +4678,7 @@ type SiteControllerUpdateSiteResponses = {
3878
4678
  };
3879
4679
  type SiteControllerUpdateSiteResponse = SiteControllerUpdateSiteResponses[keyof SiteControllerUpdateSiteResponses];
3880
4680
  type ClientOptions = {
3881
- baseUrl: 'https://lrfq4vihdi.execute-api.ap-southeast-2.amazonaws.com' | (string & {});
4681
+ baseUrl: 'https://dev-api.wakata.ai' | (string & {});
3882
4682
  };
3883
4683
 
3884
4684
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -4103,8 +4903,53 @@ declare const userControllerCreateUser: <ThrowOnError extends boolean = false>(o
4103
4903
  */
4104
4904
  declare const inspectionControllerListInspections: <ThrowOnError extends boolean = false>(options?: Options<InspectionControllerListInspectionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInspectionsResponseDto, ApiErrorResponse, ThrowOnError>;
4105
4905
  /**
4106
- * Submit inspection with nested data
4107
- * Submits a complete inspection with nested responses, response options, extra infos, and media. Uses PostgreSQL transactions to ensure atomicity. Checks if inspection already exists by public_id to avoid duplicates. Handles nested response tree structure with left/right values. Timestamps in input are Unix epoch (milliseconds for inspection times, seconds for others). Requires Bearer token authentication. Internal tokens bypass permission check, public tokens require inspection:create permission. Supports `Idempotency-Key` for safe retries.
4906
+ * Get inspection detail with responses
4907
+ * Returns a single inspection for the authenticated company, including its responses, response options, response media (exposed as signed CloudFront URLs in `media_url`), response extra info, history, and embedded custom properties (`inspection_properties[]`). Read-only inspections are created only by the Wakata app. Requires Bearer token authentication with inspection:read permission.
4908
+ */
4909
+ declare const inspectionControllerGetPublicInspection: <ThrowOnError extends boolean = false>(options: Options<InspectionControllerGetPublicInspectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
4910
+ inspection?: {
4911
+ [key: string]: unknown;
4912
+ };
4913
+ inspection_history?: Array<{
4914
+ [key: string]: unknown;
4915
+ }>;
4916
+ responses?: Array<{
4917
+ [key: string]: unknown;
4918
+ }>;
4919
+ response_options?: Array<{
4920
+ [key: string]: unknown;
4921
+ }>;
4922
+ response_media?: Array<{
4923
+ id?: string;
4924
+ public_id?: string;
4925
+ response_id?: string | null;
4926
+ response_extra_info_id?: string | null;
4927
+ type?: string;
4928
+ media_info?: string | null;
4929
+ captured_at?: string | null;
4930
+ audio_duration?: number | null;
4931
+ audio_transcription?: string | null;
4932
+ media_url?: string | null;
4933
+ }>;
4934
+ response_extra_infos?: Array<{
4935
+ [key: string]: unknown;
4936
+ }>;
4937
+ inspection_properties?: Array<{
4938
+ property_id?: string;
4939
+ inspection_property_id?: string;
4940
+ property_name?: string;
4941
+ text_value?: string | null;
4942
+ numeric_value?: number | null;
4943
+ date_value?: string | null;
4944
+ updated_at?: string | null;
4945
+ updated_by?: string | null;
4946
+ updated_by_name?: string | null;
4947
+ }>;
4948
+ }, ApiErrorResponse, ThrowOnError>;
4949
+ /**
4950
+ * @deprecated
4951
+ * Submit inspection with nested data (deprecated)
4952
+ * DEPRECATED — inspections are created only by the Wakata app; this public create path is being retired (WAK-00560). Do not build new integrations against it. Submits a complete inspection with nested responses, response options, extra infos, and media. Uses PostgreSQL transactions to ensure atomicity. Checks if inspection already exists by public_id to avoid duplicates. Handles nested response tree structure with left/right values. Timestamps in input are Unix epoch (milliseconds for inspection times, seconds for others). Requires Bearer token authentication. Internal tokens bypass permission check, public tokens require inspection:create permission. Supports `Idempotency-Key` for safe retries.
4108
4953
  */
4109
4954
  declare const inspectionControllerSubmitInspectionPublic: <ThrowOnError extends boolean = false>(options: Options<InspectionControllerSubmitInspectionPublicData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
4110
4955
  success?: boolean;
@@ -4144,6 +4989,55 @@ declare const userPropertyControllerDeleteUserProperty: <ThrowOnError extends bo
4144
4989
  * Partially updates the value of a user property by its ID. The value is stored in the appropriate column (text_value, numeric_value, or date_value) based on the property type defined in config_items. Also creates a history record of the change. Requires Bearer token authentication with user:update permission. Supports `Idempotency-Key` for safe retries.
4145
4990
  */
4146
4991
  declare const userPropertyControllerUpdateUserProperty: <ThrowOnError extends boolean = false>(options: Options<UserPropertyControllerUpdateUserPropertyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UserPropertyResponseDto, ApiErrorResponse, ThrowOnError>;
4992
+ /**
4993
+ * List checklists (inspection templates)
4994
+ * Returns a paginated list of the latest published version of each checklist for the authenticated company. Read-only — checklists are created in-system only. Supports incremental sync via `checklist_date_updated_from`/`_to` (the `updated_at` watermark). Requires Bearer token authentication with checklist:read permission.
4995
+ */
4996
+ declare const checklistControllerListChecklists: <ThrowOnError extends boolean = false>(options?: Options<ChecklistControllerListChecklistsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListChecklistsResponseDto, ApiErrorResponse, ThrowOnError>;
4997
+ /**
4998
+ * Get checklist detail with items
4999
+ * Returns a single published checklist for the authenticated company, including its items (the question/folder tree, with left/right nested-set bounds). Read-only — checklists are created in-system only. Checklists have no public_id; use the numeric `id` from the list. Requires Bearer token authentication with checklist:read permission.
5000
+ */
5001
+ declare const checklistControllerGetChecklist: <ThrowOnError extends boolean = false>(options: Options<ChecklistControllerGetChecklistData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
5002
+ checklist?: {
5003
+ [key: string]: unknown;
5004
+ };
5005
+ items?: Array<{
5006
+ [key: string]: unknown;
5007
+ }>;
5008
+ }, ApiErrorResponse, ThrowOnError>;
5009
+ /**
5010
+ * List config tables (lookup groupings)
5011
+ * Read-only list of the company’s config tables (e.g. "Asset Category"). Use the returned id/class to list or create items in a table. Requires company:settings:tables.
5012
+ */
5013
+ declare const publicConfigControllerListConfigTables: <ThrowOnError extends boolean = false>(options?: Options<PublicConfigControllerListConfigTablesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListConfigTablesResponseDto, ApiErrorResponse, ThrowOnError>;
5014
+ /**
5015
+ * List config items (lookup values)
5016
+ * Lists the company’s config items (e.g. asset categories). Filter by config_table_id or config_table_class to scope to one table. Supports incremental sync via config_item_date_updated_from/_to. Requires company:settings:tables.
5017
+ */
5018
+ declare const publicConfigControllerListConfigItems: <ThrowOnError extends boolean = false>(options?: Options<PublicConfigControllerListConfigItemsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListConfigItemsResponseDto, ApiErrorResponse, ThrowOnError>;
5019
+ /**
5020
+ * Delete a config item
5021
+ * Soft-deletes a config item. Company-scoped. Requires company:settings:tables.
5022
+ */
5023
+ declare const publicConfigControllerDeleteConfigItem: <ThrowOnError extends boolean = false>(options: Options<PublicConfigControllerDeleteConfigItemData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
5024
+ success?: boolean;
5025
+ }, ApiErrorResponse, ThrowOnError>;
5026
+ /**
5027
+ * Get a config item
5028
+ * Returns a single config item for the authenticated company. Config items have no public_id; use the numeric id. Requires company:settings:tables.
5029
+ */
5030
+ declare const publicConfigControllerGetConfigItem: <ThrowOnError extends boolean = false>(options: Options<PublicConfigControllerGetConfigItemData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ConfigItemDto, ApiErrorResponse, ThrowOnError>;
5031
+ /**
5032
+ * Update a config item
5033
+ * Updates a config item’s name/description. Company-scoped. Requires company:settings:tables. Supports `Idempotency-Key`.
5034
+ */
5035
+ declare const publicConfigControllerUpdateConfigItem: <ThrowOnError extends boolean = false>(options: Options<PublicConfigControllerUpdateConfigItemData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ConfigItemDto, ApiErrorResponse, ThrowOnError>;
5036
+ /**
5037
+ * Create a config item
5038
+ * Creates a config item (e.g. a new asset category) under the given config_table_id, which must belong to the authenticated company. Requires company:settings:tables. Supports `Idempotency-Key`.
5039
+ */
5040
+ declare const publicConfigControllerCreateConfigItem: <ThrowOnError extends boolean = false>(options: Options<PublicConfigControllerCreateConfigItemData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ConfigItemDto, ApiErrorResponse, ThrowOnError>;
4147
5041
  /**
4148
5042
  * List sites
4149
5043
  * 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.
@@ -4221,8 +5115,21 @@ interface SitesResource {
4221
5115
  }
4222
5116
  interface InspectionsResource {
4223
5117
  list: (options?: WakataMethodOptions<Parameters<typeof inspectionControllerListInspections>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof inspectionControllerListInspections>>['data']>;
5118
+ getDetail: (options: WakataMethodOptions<Parameters<typeof inspectionControllerGetPublicInspection>[0]>) => Promise<Awaited<ReturnType<typeof inspectionControllerGetPublicInspection>>['data']>;
4224
5119
  submit: (options: WakataMethodOptions<Parameters<typeof inspectionControllerSubmitInspectionPublic>[0]>) => Promise<Awaited<ReturnType<typeof inspectionControllerSubmitInspectionPublic>>['data']>;
4225
5120
  }
5121
+ interface ChecklistsResource {
5122
+ list: (options?: WakataMethodOptions<Parameters<typeof checklistControllerListChecklists>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof checklistControllerListChecklists>>['data']>;
5123
+ get: (options: WakataMethodOptions<Parameters<typeof checklistControllerGetChecklist>[0]>) => Promise<Awaited<ReturnType<typeof checklistControllerGetChecklist>>['data']>;
5124
+ }
5125
+ interface ConfigResource {
5126
+ listTables: (options?: WakataMethodOptions<Parameters<typeof publicConfigControllerListConfigTables>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof publicConfigControllerListConfigTables>>['data']>;
5127
+ listItems: (options?: WakataMethodOptions<Parameters<typeof publicConfigControllerListConfigItems>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof publicConfigControllerListConfigItems>>['data']>;
5128
+ getItem: (options: WakataMethodOptions<Parameters<typeof publicConfigControllerGetConfigItem>[0]>) => Promise<Awaited<ReturnType<typeof publicConfigControllerGetConfigItem>>['data']>;
5129
+ createItem: (options: WakataMethodOptions<Parameters<typeof publicConfigControllerCreateConfigItem>[0]>) => Promise<Awaited<ReturnType<typeof publicConfigControllerCreateConfigItem>>['data']>;
5130
+ updateItem: (options: WakataMethodOptions<Parameters<typeof publicConfigControllerUpdateConfigItem>[0]>) => Promise<Awaited<ReturnType<typeof publicConfigControllerUpdateConfigItem>>['data']>;
5131
+ deleteItem: (options: WakataMethodOptions<Parameters<typeof publicConfigControllerDeleteConfigItem>[0]>) => Promise<Awaited<ReturnType<typeof publicConfigControllerDeleteConfigItem>>['data']>;
5132
+ }
4226
5133
  interface IssuesResource {
4227
5134
  list: (options?: WakataMethodOptions<Parameters<typeof issueControllerListIssues>[0] extends infer O ? O : never>) => Promise<Awaited<ReturnType<typeof issueControllerListIssues>>['data']>;
4228
5135
  get: (options: WakataMethodOptions<Parameters<typeof issueControllerGetIssuePublic>[0]>) => Promise<Awaited<ReturnType<typeof issueControllerGetIssuePublic>>['data']>;
@@ -4259,6 +5166,8 @@ declare class WakataClient {
4259
5166
  readonly inspections: InspectionsResource;
4260
5167
  readonly issues: IssuesResource;
4261
5168
  readonly userProperties: UserPropertiesResource;
5169
+ readonly checklists: ChecklistsResource;
5170
+ readonly config: ConfigResource;
4262
5171
  constructor(options: WakataClientOptions);
4263
5172
  }
4264
5173
 
@@ -4428,8 +5337,8 @@ declare function generateIdempotencyKey(): string;
4428
5337
  * See README.md for usage.
4429
5338
  */
4430
5339
  declare const PACKAGE_NAME = "@wakata-dev/api-client";
4431
- declare const PACKAGE_VERSION = "0.1.3";
5340
+ declare const PACKAGE_VERSION = "0.3.0";
4432
5341
  /** Default base URL for the Wakata Public API (production). */
4433
5342
  declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
4434
5343
 
4435
- 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 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 ChangePinDto, type ClientOptions, type CreateAssetClassDto, type CreateAssetDto, type CreateInspectionDto, type CreateIssueMediaDto, type CreateSiteDto, type CreateTokenDto, DEFAULT_BASE_URL, type DeleteAssetPropertyResponseDto, type DeleteInspectionDto, type DeleteSiteResponseDto, type DeleteUserPropertyResponseDto, type DownloadResponseDto, type EmbeddedAssetPropertyDto, type EmbeddedUserPropertyDto, type ErrorDetail, type ExtraInfoDto, type InspectionControllerListInspectionsData, type InspectionControllerListInspectionsError, type InspectionControllerListInspectionsErrors, type InspectionControllerListInspectionsResponse, type InspectionControllerListInspectionsResponses, type InspectionControllerSubmitInspectionPublicData, type InspectionControllerSubmitInspectionPublicError, type InspectionControllerSubmitInspectionPublicErrors, type InspectionControllerSubmitInspectionPublicResponse, type InspectionControllerSubmitInspectionPublicResponses, 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 IssueMediaResponseDto, type IssueResponseDto, type IssuesResource, type ListInspectionsResponseDto, type ListIssuesResponseDto, type ListSitesResponseDto, type MediaDto, PACKAGE_NAME, PACKAGE_VERSION, type PublicCreateAssetDto, type RegisterDeviceDto, type RegisterDeviceResponseDto, type RepeatInspectionDto, type RequestDownloadDto, type RequestLogUploadDto, type RequestUploadDto, type ResponseDto, type ResponseOptionDto, type ResumeInspectionDto, type SendCredentialsDto, 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 SubmitInspectionDto, type TokenCompanyDto, type TokenResponseDto, type TokenUserDto, type UpdateAssetClassDto, type UpdateAssetDto, type UpdateAssetPropertyDto, type UpdateInspectionDto, type UpdateIssueDto, type UpdateSiteDto, type UpdateUserPropertyDto, type UploadCredentialsResponseDto, 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 };
5344
+ 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 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 ChangePinDto, 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 CreateAssetDto, type CreateConfigItemDto, type CreateInspectionDto, type CreateIssueMediaDto, type CreateSiteDto, type CreateTokenDto, DEFAULT_BASE_URL, type DeleteAssetPropertyResponseDto, type DeleteInspectionDto, type DeleteSiteResponseDto, type DeleteUserPropertyResponseDto, type DownloadResponseDto, type EmbeddedAssetClassPropertyDto, type EmbeddedAssetPropertyDto, type EmbeddedUserPropertyDto, type ErrorDetail, type ExtraInfoDto, type InspectionControllerGetPublicInspectionData, type InspectionControllerGetPublicInspectionError, type InspectionControllerGetPublicInspectionErrors, type InspectionControllerGetPublicInspectionResponse, type InspectionControllerGetPublicInspectionResponses, type InspectionControllerListInspectionsData, type InspectionControllerListInspectionsError, type InspectionControllerListInspectionsErrors, type InspectionControllerListInspectionsResponse, type InspectionControllerListInspectionsResponses, type InspectionControllerSubmitInspectionPublicData, type InspectionControllerSubmitInspectionPublicError, type InspectionControllerSubmitInspectionPublicErrors, type InspectionControllerSubmitInspectionPublicResponse, type InspectionControllerSubmitInspectionPublicResponses, 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 IssueMediaResponseDto, type IssueResponseDto, type IssuesResource, type ListChecklistsResponseDto, type ListConfigItemsResponseDto, type ListConfigTablesResponseDto, type ListInspectionsResponseDto, type ListIssuesResponseDto, type ListSitesResponseDto, type MediaDto, 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 RegisterDeviceDto, type RegisterDeviceResponseDto, type RepeatInspectionDto, type RequestDownloadDto, type RequestLogUploadDto, type RequestUploadDto, type ResponseDto, type ResponseOptionDto, type ResumeInspectionDto, type SendCredentialsDto, 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 SubmitInspectionDto, type TokenCompanyDto, type TokenResponseDto, type TokenUserDto, type UpdateAssetClassDto, type UpdateAssetDto, type UpdateAssetPropertyDto, type UpdateConfigItemDto, type UpdateInspectionDto, type UpdateIssueDto, type UpdateSiteDto, type UpdateUserPropertyDto, type UploadCredentialsResponseDto, 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 };