@wakata-dev/api-client 0.1.2 → 0.2.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
@@ -1984,6 +1984,82 @@ type UpdateAssetClassDto = {
1984
1984
  */
1985
1985
  on_the_fly_enabled?: boolean;
1986
1986
  };
1987
+ type ChecklistSummaryDto = {
1988
+ /**
1989
+ * Checklist ID (numeric string)
1990
+ */
1991
+ id: string;
1992
+ /**
1993
+ * Company ID
1994
+ */
1995
+ company_id: string;
1996
+ /**
1997
+ * Checklist name
1998
+ */
1999
+ name: string;
2000
+ /**
2001
+ * Checklist type
2002
+ */
2003
+ type: string;
2004
+ /**
2005
+ * Root checklist ID grouping all versions (null for a v1 with no prior versions). Numeric string.
2006
+ */
2007
+ root_id: {
2008
+ [key: string]: unknown;
2009
+ } | null;
2010
+ /**
2011
+ * Version number
2012
+ */
2013
+ version: number;
2014
+ /**
2015
+ * Version notes
2016
+ */
2017
+ version_notes: {
2018
+ [key: string]: unknown;
2019
+ } | null;
2020
+ /**
2021
+ * Category ID
2022
+ */
2023
+ category_id: {
2024
+ [key: string]: unknown;
2025
+ } | null;
2026
+ /**
2027
+ * Category name
2028
+ */
2029
+ category_name: {
2030
+ [key: string]: unknown;
2031
+ } | null;
2032
+ /**
2033
+ * When this version was published
2034
+ */
2035
+ published_at: {
2036
+ [key: string]: unknown;
2037
+ } | null;
2038
+ created_at: string;
2039
+ updated_at: string;
2040
+ };
2041
+ type ListChecklistsResponseDto = {
2042
+ /**
2043
+ * List of checklists
2044
+ */
2045
+ data: Array<ChecklistSummaryDto>;
2046
+ /**
2047
+ * Current page number
2048
+ */
2049
+ page: number;
2050
+ /**
2051
+ * Number of results per page
2052
+ */
2053
+ per_page: number;
2054
+ /**
2055
+ * Total number of results
2056
+ */
2057
+ total: number;
2058
+ /**
2059
+ * Total number of pages
2060
+ */
2061
+ total_pages: number;
2062
+ };
1987
2063
  type SiteResponseDto = {
1988
2064
  /**
1989
2065
  * Site public ID (UUID)
@@ -2950,6 +3026,18 @@ type InspectionControllerListInspectionsData = {
2950
3026
  * Filter by date received to (inclusive)
2951
3027
  */
2952
3028
  inspection_date_received_to?: string;
3029
+ /**
3030
+ * Filter by inspection status (exact match), e.g. "completed" or "in_progress". Other values include "submitted", "suspended", "discarded".
3031
+ */
3032
+ inspection_status?: string;
3033
+ /**
3034
+ * Filter by last-updated date from (inclusive). Maps to the server-side `updated_at`, which is bumped on every change (including in_progress → completed). This is the recommended watermark for incremental sync — unlike submitted_at (device wall-clock) or created_at (set once at receipt).
3035
+ */
3036
+ inspection_date_updated_from?: string;
3037
+ /**
3038
+ * Filter by last-updated date to (inclusive). Maps to `updated_at`.
3039
+ */
3040
+ inspection_date_updated_to?: string;
2953
3041
  };
2954
3042
  url: '/public/inspection/list';
2955
3043
  };
@@ -2983,6 +3071,114 @@ type InspectionControllerListInspectionsResponses = {
2983
3071
  200: ListInspectionsResponseDto;
2984
3072
  };
2985
3073
  type InspectionControllerListInspectionsResponse = InspectionControllerListInspectionsResponses[keyof InspectionControllerListInspectionsResponses];
3074
+ type InspectionControllerGetPublicInspectionData = {
3075
+ body?: never;
3076
+ path: {
3077
+ /**
3078
+ * Inspection public UUID
3079
+ */
3080
+ public_id: string;
3081
+ };
3082
+ query?: never;
3083
+ url: '/public/inspection/{public_id}';
3084
+ };
3085
+ type InspectionControllerGetPublicInspectionErrors = {
3086
+ /**
3087
+ * 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`.
3088
+ */
3089
+ 400: ApiErrorResponse;
3090
+ /**
3091
+ * 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.
3092
+ */
3093
+ 401: ApiErrorResponse;
3094
+ /**
3095
+ * 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).
3096
+ */
3097
+ 403: ApiErrorResponse;
3098
+ /**
3099
+ * 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.
3100
+ */
3101
+ 404: ApiErrorResponse;
3102
+ /**
3103
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
3104
+ */
3105
+ 429: ApiErrorResponse;
3106
+ /**
3107
+ * 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.
3108
+ */
3109
+ 500: ApiErrorResponse;
3110
+ };
3111
+ type InspectionControllerGetPublicInspectionError = InspectionControllerGetPublicInspectionErrors[keyof InspectionControllerGetPublicInspectionErrors];
3112
+ type InspectionControllerGetPublicInspectionResponses = {
3113
+ /**
3114
+ * Inspection detail with all related data
3115
+ */
3116
+ 200: {
3117
+ /**
3118
+ * Inspection record
3119
+ */
3120
+ inspection?: {
3121
+ [key: string]: unknown;
3122
+ };
3123
+ /**
3124
+ * Inspection history records
3125
+ */
3126
+ inspection_history?: Array<{
3127
+ [key: string]: unknown;
3128
+ }>;
3129
+ /**
3130
+ * Response records
3131
+ */
3132
+ responses?: Array<{
3133
+ [key: string]: unknown;
3134
+ }>;
3135
+ /**
3136
+ * Response option records
3137
+ */
3138
+ response_options?: Array<{
3139
+ [key: string]: unknown;
3140
+ }>;
3141
+ /**
3142
+ * 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.
3143
+ */
3144
+ response_media?: Array<{
3145
+ id?: string;
3146
+ public_id?: string;
3147
+ response_id?: string | null;
3148
+ response_extra_info_id?: string | null;
3149
+ type?: string;
3150
+ media_info?: string | null;
3151
+ captured_at?: string | null;
3152
+ audio_duration?: number | null;
3153
+ audio_transcription?: string | null;
3154
+ /**
3155
+ * Signed CloudFront URL for the media object.
3156
+ */
3157
+ media_url?: string | null;
3158
+ }>;
3159
+ /**
3160
+ * Response extra info records
3161
+ */
3162
+ response_extra_infos?: Array<{
3163
+ [key: string]: unknown;
3164
+ }>;
3165
+ /**
3166
+ * Embedded custom property values. Uniform shape across entities (property_id = field definition, inspection_property_id = value row). String IDs are BigInt-safe.
3167
+ */
3168
+ inspection_properties?: Array<{
3169
+ property_id?: string;
3170
+ inspection_property_id?: string;
3171
+ property_name?: string;
3172
+ text_value?: string | null;
3173
+ numeric_value?: number | null;
3174
+ date_value?: string | null;
3175
+ updated_at?: string | null;
3176
+ updated_by?: string | null;
3177
+ updated_by_name?: string | null;
3178
+ }>;
3179
+ };
3180
+ };
3181
+ type InspectionControllerGetPublicInspectionResponse = InspectionControllerGetPublicInspectionResponses[keyof InspectionControllerGetPublicInspectionResponses];
2986
3182
  type InspectionControllerSubmitInspectionPublicData = {
2987
3183
  /**
2988
3184
  * Complete inspection data with nested structure
@@ -3648,6 +3844,133 @@ type AssetClassControllerUpdateAssetClassResponses = {
3648
3844
  200: AssetClassResponseDto;
3649
3845
  };
3650
3846
  type AssetClassControllerUpdateAssetClassResponse = AssetClassControllerUpdateAssetClassResponses[keyof AssetClassControllerUpdateAssetClassResponses];
3847
+ type ChecklistControllerListChecklistsData = {
3848
+ body?: never;
3849
+ path?: never;
3850
+ query?: {
3851
+ /**
3852
+ * Number of results per page (default: 15)
3853
+ */
3854
+ per_page?: number;
3855
+ /**
3856
+ * Page number (default: 1)
3857
+ */
3858
+ page?: number;
3859
+ /**
3860
+ * Sort direction (default: asc)
3861
+ */
3862
+ direction?: 'asc' | 'desc';
3863
+ /**
3864
+ * Sort field: name, created_at, updated_at, published_at, version, id (default: name)
3865
+ */
3866
+ sort?: 'name' | 'created_at' | 'updated_at' | 'published_at' | 'version' | 'id';
3867
+ /**
3868
+ * Filter by name (case-insensitive partial match)
3869
+ */
3870
+ name?: string;
3871
+ /**
3872
+ * Filter by checklist type (exact match)
3873
+ */
3874
+ type?: string;
3875
+ /**
3876
+ * Filter by updated_at from (inclusive) — sync watermark
3877
+ */
3878
+ checklist_date_updated_from?: string;
3879
+ /**
3880
+ * Filter by updated_at to (inclusive)
3881
+ */
3882
+ checklist_date_updated_to?: string;
3883
+ };
3884
+ url: '/public/checklist/list';
3885
+ };
3886
+ type ChecklistControllerListChecklistsErrors = {
3887
+ /**
3888
+ * 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`.
3889
+ */
3890
+ 400: ApiErrorResponse;
3891
+ /**
3892
+ * 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.
3893
+ */
3894
+ 401: ApiErrorResponse;
3895
+ /**
3896
+ * 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).
3897
+ */
3898
+ 403: ApiErrorResponse;
3899
+ /**
3900
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
3901
+ */
3902
+ 429: ApiErrorResponse;
3903
+ /**
3904
+ * 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.
3905
+ */
3906
+ 500: ApiErrorResponse;
3907
+ };
3908
+ type ChecklistControllerListChecklistsError = ChecklistControllerListChecklistsErrors[keyof ChecklistControllerListChecklistsErrors];
3909
+ type ChecklistControllerListChecklistsResponses = {
3910
+ /**
3911
+ * List of checklists with pagination info
3912
+ */
3913
+ 200: ListChecklistsResponseDto;
3914
+ };
3915
+ type ChecklistControllerListChecklistsResponse = ChecklistControllerListChecklistsResponses[keyof ChecklistControllerListChecklistsResponses];
3916
+ type ChecklistControllerGetChecklistData = {
3917
+ body?: never;
3918
+ path: {
3919
+ /**
3920
+ * Checklist ID (numeric string, from the list endpoint)
3921
+ */
3922
+ id: string;
3923
+ };
3924
+ query?: never;
3925
+ url: '/public/checklist/{id}';
3926
+ };
3927
+ type ChecklistControllerGetChecklistErrors = {
3928
+ /**
3929
+ * 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`.
3930
+ */
3931
+ 400: ApiErrorResponse;
3932
+ /**
3933
+ * 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.
3934
+ */
3935
+ 401: ApiErrorResponse;
3936
+ /**
3937
+ * 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).
3938
+ */
3939
+ 403: ApiErrorResponse;
3940
+ /**
3941
+ * 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.
3942
+ */
3943
+ 404: ApiErrorResponse;
3944
+ /**
3945
+ * Rate limit exceeded for this API key. Inspect `X-RateLimit-Reset` and `Retry-After` to find out when the window resets.
3946
+ */
3947
+ 429: ApiErrorResponse;
3948
+ /**
3949
+ * 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.
3950
+ */
3951
+ 500: ApiErrorResponse;
3952
+ };
3953
+ type ChecklistControllerGetChecklistError = ChecklistControllerGetChecklistErrors[keyof ChecklistControllerGetChecklistErrors];
3954
+ type ChecklistControllerGetChecklistResponses = {
3955
+ /**
3956
+ * Checklist detail with items
3957
+ */
3958
+ 200: {
3959
+ /**
3960
+ * Checklist record
3961
+ */
3962
+ checklist?: {
3963
+ [key: string]: unknown;
3964
+ };
3965
+ /**
3966
+ * Checklist items (questions/folders) ordered by nested-set left.
3967
+ */
3968
+ items?: Array<{
3969
+ [key: string]: unknown;
3970
+ }>;
3971
+ };
3972
+ };
3973
+ type ChecklistControllerGetChecklistResponse = ChecklistControllerGetChecklistResponses[keyof ChecklistControllerGetChecklistResponses];
3651
3974
  type SiteControllerListSitesData = {
3652
3975
  body?: never;
3653
3976
  path?: never;
@@ -4091,8 +4414,9 @@ declare const userControllerCreateUser: <ThrowOnError extends boolean = false>(o
4091
4414
  */
4092
4415
  declare const inspectionControllerListInspections: <ThrowOnError extends boolean = false>(options?: Options<InspectionControllerListInspectionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListInspectionsResponseDto, ApiErrorResponse, ThrowOnError>;
4093
4416
  /**
4094
- * Submit inspection with nested data
4095
- * 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.
4417
+ * @deprecated
4418
+ * Submit inspection with nested data (deprecated)
4419
+ * 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.
4096
4420
  */
4097
4421
  declare const inspectionControllerSubmitInspectionPublic: <ThrowOnError extends boolean = false>(options: Options<InspectionControllerSubmitInspectionPublicData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
4098
4422
  success?: boolean;
@@ -4416,8 +4740,8 @@ declare function generateIdempotencyKey(): string;
4416
4740
  * See README.md for usage.
4417
4741
  */
4418
4742
  declare const PACKAGE_NAME = "@wakata-dev/api-client";
4419
- declare const PACKAGE_VERSION = "0.1.2";
4743
+ declare const PACKAGE_VERSION = "0.2.0";
4420
4744
  /** Default base URL for the Wakata Public API (production). */
4421
4745
  declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
4422
4746
 
4423
- 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 };
4747
+ 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 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 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 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 };
package/dist/index.js CHANGED
@@ -398,7 +398,7 @@ var siteControllerUpdateSite = (options) => {
398
398
 
399
399
  // src/client.ts
400
400
  var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
401
- var PACKAGE_VERSION = "0.1.2";
401
+ var PACKAGE_VERSION = "0.2.0";
402
402
  function unwrap(result) {
403
403
  if (result.data === void 0) {
404
404
  throw new WakataApiError({
@@ -527,7 +527,7 @@ var WakataClient = class {
527
527
 
528
528
  // src/index.ts
529
529
  var PACKAGE_NAME = "@wakata-dev/api-client";
530
- var PACKAGE_VERSION2 = "0.1.2";
530
+ var PACKAGE_VERSION2 = "0.2.0";
531
531
  var DEFAULT_BASE_URL2 = "https://api.wakata.ai/api/v1";
532
532
 
533
533
  export { DEFAULT_BASE_URL2 as DEFAULT_BASE_URL, PACKAGE_NAME, PACKAGE_VERSION2 as PACKAGE_VERSION, WakataApiError, WakataAuthError, WakataClient, WakataConflictError, WakataNotFoundError, WakataPermissionError, WakataRateLimitError, WakataServerError, WakataValidationError, generateIdempotencyKey, mapApiError };