@wakata-dev/api-client 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -191,6 +191,54 @@ type TokenResponseDto = {
191
191
  */
192
192
  company: TokenCompanyDto;
193
193
  };
194
+ type EmbeddedAssetPropertyDto = {
195
+ /**
196
+ * Custom field-definition ID (config_items.id — which field, e.g. "Voyage"). Serialized as a string in public API responses (BigInt-safe).
197
+ */
198
+ property_id: string;
199
+ /**
200
+ * The asset_properties value-row ID. Pass this to PATCH/DELETE /asset-property/:id to update or remove the value. Serialized as a string in public API responses (BigInt-safe).
201
+ */
202
+ asset_property_id: string;
203
+ /**
204
+ * Property name from config_items
205
+ */
206
+ property_name: string;
207
+ /**
208
+ * Text value (if property type is text)
209
+ */
210
+ text_value: {
211
+ [key: string]: unknown;
212
+ } | null;
213
+ /**
214
+ * Numeric value (if property type is numeric)
215
+ */
216
+ numeric_value: {
217
+ [key: string]: unknown;
218
+ } | null;
219
+ /**
220
+ * Date value (if property type is date)
221
+ */
222
+ date_value: {
223
+ [key: string]: unknown;
224
+ } | null;
225
+ /**
226
+ * Timestamp the property value was last updated
227
+ */
228
+ updated_at: string;
229
+ /**
230
+ * Public ID (UUID) of the user who last updated this value
231
+ */
232
+ updated_by: {
233
+ [key: string]: unknown;
234
+ } | null;
235
+ /**
236
+ * Name of the user who last updated this value
237
+ */
238
+ updated_by_name: {
239
+ [key: string]: unknown;
240
+ } | null;
241
+ };
194
242
  type CreateAssetDto = {
195
243
  /**
196
244
  * Device ID for authentication (optional for API key auth)
@@ -241,7 +289,7 @@ type ApiErrorBody = {
241
289
  /**
242
290
  * Stable, machine-readable code identifying the failure class. Integrators should switch on this rather than parsing the message. Codes are append-only — they are never removed or renamed.
243
291
  */
244
- code: 'validation_error' | 'bad_request' | 'unauthorized' | 'forbidden' | 'ip_not_allowed' | 'not_found' | 'conflict' | 'idempotency_key_conflict' | 'rate_limited' | 'internal_error';
292
+ code: 'validation_error' | 'bad_request' | 'invalid_filter_value' | 'unauthorized' | 'forbidden' | 'ip_not_allowed' | 'not_found' | 'conflict' | 'idempotency_key_conflict' | 'rate_limited' | 'internal_error';
245
293
  /**
246
294
  * Human-readable description of the failure. Subject to wording tweaks — do not parse.
247
295
  */
@@ -2111,7 +2159,7 @@ type AssetControllerCreateAssetPublicData = {
2111
2159
  };
2112
2160
  path?: never;
2113
2161
  query?: never;
2114
- url: '/api/v1/public/asset';
2162
+ url: '/public/asset';
2115
2163
  };
2116
2164
  type AssetControllerCreateAssetPublicErrors = {
2117
2165
  /**
@@ -2165,6 +2213,14 @@ type AssetControllerCreateAssetPublicResponses = {
2165
2213
  updatedAt?: string;
2166
2214
  deletedAt?: string | null;
2167
2215
  deletedById?: string | null;
2216
+ /**
2217
+ * Project location the asset is currently assigned to, or null. String (BigInt-safe).
2218
+ */
2219
+ currentProjectLocationId?: string | null;
2220
+ /**
2221
+ * Custom asset property values. Each entry exposes property_id (the field definition) and asset_property_id (the value row, for round-tripping into PATCH/DELETE /asset-property/:id). Empty when the asset has no custom properties.
2222
+ */
2223
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
2168
2224
  };
2169
2225
  };
2170
2226
  type AssetControllerCreateAssetPublicResponse = AssetControllerCreateAssetPublicResponses[keyof AssetControllerCreateAssetPublicResponses];
@@ -2209,7 +2265,7 @@ type AssetControllerListAssetsData = {
2209
2265
  */
2210
2266
  site_name?: string;
2211
2267
  };
2212
- url: '/api/v1/asset/list';
2268
+ url: '/asset/list';
2213
2269
  };
2214
2270
  type AssetControllerListAssetsErrors = {
2215
2271
  /**
@@ -2256,6 +2312,14 @@ type AssetControllerListAssetsResponses = {
2256
2312
  updatedAt?: string;
2257
2313
  deletedAt?: string | null;
2258
2314
  deletedById?: string | null;
2315
+ /**
2316
+ * Project location the asset is currently assigned to, or null. String (BigInt-safe).
2317
+ */
2318
+ currentProjectLocationId?: string | null;
2319
+ /**
2320
+ * Custom asset property values. Each entry exposes property_id (the field definition) and asset_property_id (the value row, for round-tripping into PATCH/DELETE /asset-property/:id). Empty when the asset has no custom properties.
2321
+ */
2322
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
2259
2323
  }>;
2260
2324
  pagination?: {
2261
2325
  page?: number;
@@ -2272,7 +2336,7 @@ type AssetControllerGetAssetData = {
2272
2336
  id: string;
2273
2337
  };
2274
2338
  query?: never;
2275
- url: '/api/v1/asset/{id}';
2339
+ url: '/asset/{id}';
2276
2340
  };
2277
2341
  type AssetControllerGetAssetErrors = {
2278
2342
  /**
@@ -2318,6 +2382,14 @@ type AssetControllerGetAssetResponses = {
2318
2382
  updatedAt?: string;
2319
2383
  deletedAt?: string | null;
2320
2384
  deletedById?: string | null;
2385
+ /**
2386
+ * Project location the asset is currently assigned to, or null. String (BigInt-safe).
2387
+ */
2388
+ currentProjectLocationId?: string | null;
2389
+ /**
2390
+ * Custom asset property values. Each entry exposes property_id (the field definition) and asset_property_id (the value row, for round-tripping into PATCH/DELETE /asset-property/:id). Empty when the asset has no custom properties.
2391
+ */
2392
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
2321
2393
  };
2322
2394
  };
2323
2395
  type AssetControllerGetAssetResponse = AssetControllerGetAssetResponses[keyof AssetControllerGetAssetResponses];
@@ -2336,7 +2408,7 @@ type AssetControllerUpdateAssetData = {
2336
2408
  id: string;
2337
2409
  };
2338
2410
  query?: never;
2339
- url: '/api/v1/asset/{id}';
2411
+ url: '/asset/{id}';
2340
2412
  };
2341
2413
  type AssetControllerUpdateAssetErrors = {
2342
2414
  /**
@@ -2390,6 +2462,14 @@ type AssetControllerUpdateAssetResponses = {
2390
2462
  updatedAt?: string;
2391
2463
  deletedAt?: string | null;
2392
2464
  deletedById?: string | null;
2465
+ /**
2466
+ * Project location the asset is currently assigned to, or null. String (BigInt-safe).
2467
+ */
2468
+ currentProjectLocationId?: string | null;
2469
+ /**
2470
+ * Custom asset property values. Each entry exposes property_id (the field definition) and asset_property_id (the value row, for round-tripping into PATCH/DELETE /asset-property/:id). Empty when the asset has no custom properties.
2471
+ */
2472
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
2393
2473
  };
2394
2474
  };
2395
2475
  type AssetControllerUpdateAssetResponse = AssetControllerUpdateAssetResponses[keyof AssetControllerUpdateAssetResponses];
@@ -2454,7 +2534,7 @@ type UserControllerListUsersData = {
2454
2534
  */
2455
2535
  created_by?: string;
2456
2536
  };
2457
- url: '/api/v1/user/list';
2537
+ url: '/user/list';
2458
2538
  };
2459
2539
  type UserControllerListUsersErrors = {
2460
2540
  /**
@@ -2501,7 +2581,7 @@ type UserControllerGetUserData = {
2501
2581
  id: string;
2502
2582
  };
2503
2583
  query?: never;
2504
- url: '/api/v1/user/{id}';
2584
+ url: '/user/{id}';
2505
2585
  };
2506
2586
  type UserControllerGetUserErrors = {
2507
2587
  /**
@@ -2577,7 +2657,7 @@ type UserControllerUpdateUserData = {
2577
2657
  id: string;
2578
2658
  };
2579
2659
  query?: never;
2580
- url: '/api/v1/user/{id}';
2660
+ url: '/user/{id}';
2581
2661
  };
2582
2662
  type UserControllerUpdateUserErrors = {
2583
2663
  /**
@@ -2678,7 +2758,7 @@ type UserControllerCreateUserData = {
2678
2758
  };
2679
2759
  path?: never;
2680
2760
  query?: never;
2681
- url: '/api/v1/user';
2761
+ url: '/user';
2682
2762
  };
2683
2763
  type UserControllerCreateUserErrors = {
2684
2764
  /**
@@ -2871,7 +2951,7 @@ type InspectionControllerListInspectionsData = {
2871
2951
  */
2872
2952
  inspection_date_received_to?: string;
2873
2953
  };
2874
- url: '/api/v1/public/inspection/list';
2954
+ url: '/public/inspection/list';
2875
2955
  };
2876
2956
  type InspectionControllerListInspectionsErrors = {
2877
2957
  /**
@@ -2916,7 +2996,7 @@ type InspectionControllerSubmitInspectionPublicData = {
2916
2996
  };
2917
2997
  path?: never;
2918
2998
  query?: never;
2919
- url: '/api/v1/public/inspection/submit';
2999
+ url: '/public/inspection/submit';
2920
3000
  };
2921
3001
  type InspectionControllerSubmitInspectionPublicErrors = {
2922
3002
  /**
@@ -3024,7 +3104,7 @@ type IssueControllerListIssuesData = {
3024
3104
  */
3025
3105
  issue_id?: string;
3026
3106
  };
3027
- url: '/api/v1/public/issue/list';
3107
+ url: '/public/issue/list';
3028
3108
  };
3029
3109
  type IssueControllerListIssuesErrors = {
3030
3110
  /**
@@ -3065,7 +3145,7 @@ type IssueControllerGetIssuePublicData = {
3065
3145
  public_id: string;
3066
3146
  };
3067
3147
  query?: never;
3068
- url: '/api/v1/public/issue/{public_id}';
3148
+ url: '/public/issue/{public_id}';
3069
3149
  };
3070
3150
  type IssueControllerGetIssuePublicErrors = {
3071
3151
  /**
@@ -3115,7 +3195,7 @@ type IssueControllerUpdateIssuePublicData = {
3115
3195
  public_id: string;
3116
3196
  };
3117
3197
  query?: never;
3118
- url: '/api/v1/public/issue/{public_id}';
3198
+ url: '/public/issue/{public_id}';
3119
3199
  };
3120
3200
  type IssueControllerUpdateIssuePublicErrors = {
3121
3201
  /**
@@ -3166,7 +3246,7 @@ type IssueControllerGetIssueHistoryPublicData = {
3166
3246
  public_id: string;
3167
3247
  };
3168
3248
  query?: never;
3169
- url: '/api/v1/public/issue/{public_id}/history';
3249
+ url: '/public/issue/{public_id}/history';
3170
3250
  };
3171
3251
  type IssueControllerGetIssueHistoryPublicErrors = {
3172
3252
  /**
@@ -3207,7 +3287,7 @@ type UserPropertyControllerDeleteUserPropertyData = {
3207
3287
  id: string;
3208
3288
  };
3209
3289
  query?: never;
3210
- url: '/api/v1/user-property/{id}';
3290
+ url: '/user-property/{id}';
3211
3291
  };
3212
3292
  type UserPropertyControllerDeleteUserPropertyErrors = {
3213
3293
  /**
@@ -3257,7 +3337,7 @@ type UserPropertyControllerUpdateUserPropertyData = {
3257
3337
  id: string;
3258
3338
  };
3259
3339
  query?: never;
3260
- url: '/api/v1/user-property/{id}';
3340
+ url: '/user-property/{id}';
3261
3341
  };
3262
3342
  type UserPropertyControllerUpdateUserPropertyErrors = {
3263
3343
  /**
@@ -3302,7 +3382,7 @@ type AssetPropertyControllerDeleteAssetPropertyData = {
3302
3382
  id: string;
3303
3383
  };
3304
3384
  query?: never;
3305
- url: '/api/v1/asset-property/{id}';
3385
+ url: '/asset-property/{id}';
3306
3386
  };
3307
3387
  type AssetPropertyControllerDeleteAssetPropertyErrors = {
3308
3388
  /**
@@ -3352,7 +3432,7 @@ type AssetPropertyControllerUpdateAssetPropertyData = {
3352
3432
  id: string;
3353
3433
  };
3354
3434
  query?: never;
3355
- url: '/api/v1/asset-property/{id}';
3435
+ url: '/asset-property/{id}';
3356
3436
  };
3357
3437
  type AssetPropertyControllerUpdateAssetPropertyErrors = {
3358
3438
  /**
@@ -3429,7 +3509,7 @@ type AssetClassControllerGetAssetClassListData = {
3429
3509
  */
3430
3510
  date_modified_to?: string;
3431
3511
  };
3432
- url: '/api/v1/asset-class/list';
3512
+ url: '/asset-class/list';
3433
3513
  };
3434
3514
  type AssetClassControllerGetAssetClassListErrors = {
3435
3515
  /**
@@ -3474,7 +3554,7 @@ type AssetClassControllerCreateAssetClassData = {
3474
3554
  };
3475
3555
  path?: never;
3476
3556
  query?: never;
3477
- url: '/api/v1/asset-class';
3557
+ url: '/asset-class';
3478
3558
  };
3479
3559
  type AssetClassControllerCreateAssetClassErrors = {
3480
3560
  /**
@@ -3532,7 +3612,7 @@ type AssetClassControllerUpdateAssetClassData = {
3532
3612
  id: string;
3533
3613
  };
3534
3614
  query?: never;
3535
- url: '/api/v1/asset-class/{id}';
3615
+ url: '/asset-class/{id}';
3536
3616
  };
3537
3617
  type AssetClassControllerUpdateAssetClassErrors = {
3538
3618
  /**
@@ -3609,7 +3689,7 @@ type SiteControllerListSitesData = {
3609
3689
  */
3610
3690
  date_modified_to?: string;
3611
3691
  };
3612
- url: '/api/v1/site/list';
3692
+ url: '/site/list';
3613
3693
  };
3614
3694
  type SiteControllerListSitesErrors = {
3615
3695
  /**
@@ -3654,7 +3734,7 @@ type SiteControllerCreateSiteData = {
3654
3734
  };
3655
3735
  path?: never;
3656
3736
  query?: never;
3657
- url: '/api/v1/site';
3737
+ url: '/site';
3658
3738
  };
3659
3739
  type SiteControllerCreateSiteErrors = {
3660
3740
  /**
@@ -3699,7 +3779,7 @@ type SiteControllerDeleteSiteData = {
3699
3779
  id: string;
3700
3780
  };
3701
3781
  query?: never;
3702
- url: '/api/v1/site/{id}';
3782
+ url: '/site/{id}';
3703
3783
  };
3704
3784
  type SiteControllerDeleteSiteErrors = {
3705
3785
  /**
@@ -3749,7 +3829,7 @@ type SiteControllerUpdateSiteData = {
3749
3829
  id: string;
3750
3830
  };
3751
3831
  query?: never;
3752
- url: '/api/v1/site/{id}';
3832
+ url: '/site/{id}';
3753
3833
  };
3754
3834
  type SiteControllerUpdateSiteErrors = {
3755
3835
  /**
@@ -3823,6 +3903,8 @@ declare const assetControllerCreateAssetPublic: <ThrowOnError extends boolean =
3823
3903
  updatedAt?: string;
3824
3904
  deletedAt?: string | null;
3825
3905
  deletedById?: string | null;
3906
+ currentProjectLocationId?: string | null;
3907
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
3826
3908
  }, ApiErrorResponse, ThrowOnError>;
3827
3909
  /**
3828
3910
  * List assets with filters
@@ -3846,6 +3928,8 @@ declare const assetControllerListAssets: <ThrowOnError extends boolean = false>(
3846
3928
  updatedAt?: string;
3847
3929
  deletedAt?: string | null;
3848
3930
  deletedById?: string | null;
3931
+ currentProjectLocationId?: string | null;
3932
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
3849
3933
  }>;
3850
3934
  pagination?: {
3851
3935
  page?: number;
@@ -3875,6 +3959,8 @@ declare const assetControllerGetAsset: <ThrowOnError extends boolean = false>(op
3875
3959
  updatedAt?: string;
3876
3960
  deletedAt?: string | null;
3877
3961
  deletedById?: string | null;
3962
+ currentProjectLocationId?: string | null;
3963
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
3878
3964
  }, ApiErrorResponse, ThrowOnError>;
3879
3965
  /**
3880
3966
  * Update asset by public ID
@@ -3897,6 +3983,8 @@ declare const assetControllerUpdateAsset: <ThrowOnError extends boolean = false>
3897
3983
  updatedAt?: string;
3898
3984
  deletedAt?: string | null;
3899
3985
  deletedById?: string | null;
3986
+ currentProjectLocationId?: string | null;
3987
+ asset_properties?: Array<EmbeddedAssetPropertyDto>;
3900
3988
  }, ApiErrorResponse, ThrowOnError>;
3901
3989
  /**
3902
3990
  * List users
@@ -4166,7 +4254,8 @@ declare class WakataClient {
4166
4254
  * Typed error hierarchy for the Wakata API client.
4167
4255
  *
4168
4256
  * The Wakata Public API always returns a standardized error envelope on
4169
- * non-2xx responses (see `apps/api/docs/QUICKSTART.md`):
4257
+ * non-2xx responses (see the portal's API Quickstart page,
4258
+ * Settings → API Keys → Quickstart § 5 "Handling errors"):
4170
4259
  *
4171
4260
  * ```json
4172
4261
  * {
@@ -4311,7 +4400,8 @@ declare function mapApiError(statusCode: number, envelope: WakataErrorEnvelope |
4311
4400
  * (i.e. the same logical operation across multiple retry attempts) should
4312
4401
  * generate their own key once and pass it via `headers: { 'Idempotency-Key': ... }`.
4313
4402
  *
4314
- * See `apps/api/docs/QUICKSTART.md` § 9.
4403
+ * See the Wakata portal's API Quickstart page (Settings → API Keys →
4404
+ * Quickstart) § 7 "Safe retries with Idempotency-Key" for the full contract.
4315
4405
  */
4316
4406
  /**
4317
4407
  * Generate an idempotency key prefixed with `wak_idem_`. Uses Web Crypto's
@@ -4326,8 +4416,8 @@ declare function generateIdempotencyKey(): string;
4326
4416
  * See README.md for usage.
4327
4417
  */
4328
4418
  declare const PACKAGE_NAME = "@wakata-dev/api-client";
4329
- declare const PACKAGE_VERSION = "0.1.0";
4419
+ declare const PACKAGE_VERSION = "0.1.2";
4330
4420
  /** Default base URL for the Wakata Public API (production). */
4331
4421
  declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
4332
4422
 
4333
- 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 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 };
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 };
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ var assetControllerCreateAssetPublic = (options) => {
125
125
  type: "http"
126
126
  }
127
127
  ],
128
- url: "/api/v1/public/asset",
128
+ url: "/public/asset",
129
129
  ...options,
130
130
  headers: {
131
131
  "Content-Type": "application/json",
@@ -141,7 +141,7 @@ var assetControllerListAssets = (options) => {
141
141
  type: "http"
142
142
  }
143
143
  ],
144
- url: "/api/v1/asset/list",
144
+ url: "/asset/list",
145
145
  ...options
146
146
  });
147
147
  };
@@ -153,7 +153,7 @@ var assetControllerGetAsset = (options) => {
153
153
  type: "http"
154
154
  }
155
155
  ],
156
- url: "/api/v1/asset/{id}",
156
+ url: "/asset/{id}",
157
157
  ...options
158
158
  });
159
159
  };
@@ -165,7 +165,7 @@ var assetControllerUpdateAsset = (options) => {
165
165
  type: "http"
166
166
  }
167
167
  ],
168
- url: "/api/v1/asset/{id}",
168
+ url: "/asset/{id}",
169
169
  ...options,
170
170
  headers: {
171
171
  "Content-Type": "application/json",
@@ -181,7 +181,7 @@ var userControllerListUsers = (options) => {
181
181
  type: "http"
182
182
  }
183
183
  ],
184
- url: "/api/v1/user/list",
184
+ url: "/user/list",
185
185
  ...options
186
186
  });
187
187
  };
@@ -193,7 +193,7 @@ var userControllerGetUser = (options) => {
193
193
  type: "http"
194
194
  }
195
195
  ],
196
- url: "/api/v1/user/{id}",
196
+ url: "/user/{id}",
197
197
  ...options
198
198
  });
199
199
  };
@@ -206,7 +206,7 @@ var userControllerUpdateUser = (options) => {
206
206
  type: "http"
207
207
  }
208
208
  ],
209
- url: "/api/v1/user/{id}",
209
+ url: "/user/{id}",
210
210
  ...options,
211
211
  headers: {
212
212
  "Content-Type": null,
@@ -223,7 +223,7 @@ var userControllerCreateUser = (options) => {
223
223
  type: "http"
224
224
  }
225
225
  ],
226
- url: "/api/v1/user",
226
+ url: "/user",
227
227
  ...options,
228
228
  headers: {
229
229
  "Content-Type": null,
@@ -239,7 +239,7 @@ var inspectionControllerListInspections = (options) => {
239
239
  type: "http"
240
240
  }
241
241
  ],
242
- url: "/api/v1/public/inspection/list",
242
+ url: "/public/inspection/list",
243
243
  ...options
244
244
  });
245
245
  };
@@ -251,7 +251,7 @@ var inspectionControllerSubmitInspectionPublic = (options) => {
251
251
  type: "http"
252
252
  }
253
253
  ],
254
- url: "/api/v1/public/inspection/submit",
254
+ url: "/public/inspection/submit",
255
255
  ...options,
256
256
  headers: {
257
257
  "Content-Type": "application/json",
@@ -267,7 +267,7 @@ var issueControllerListIssues = (options) => {
267
267
  type: "http"
268
268
  }
269
269
  ],
270
- url: "/api/v1/public/issue/list",
270
+ url: "/public/issue/list",
271
271
  ...options
272
272
  });
273
273
  };
@@ -279,7 +279,7 @@ var issueControllerGetIssuePublic = (options) => {
279
279
  type: "http"
280
280
  }
281
281
  ],
282
- url: "/api/v1/public/issue/{public_id}",
282
+ url: "/public/issue/{public_id}",
283
283
  ...options
284
284
  });
285
285
  };
@@ -291,7 +291,7 @@ var issueControllerUpdateIssuePublic = (options) => {
291
291
  type: "http"
292
292
  }
293
293
  ],
294
- url: "/api/v1/public/issue/{public_id}",
294
+ url: "/public/issue/{public_id}",
295
295
  ...options,
296
296
  headers: {
297
297
  "Content-Type": "application/json",
@@ -307,7 +307,7 @@ var issueControllerGetIssueHistoryPublic = (options) => {
307
307
  type: "http"
308
308
  }
309
309
  ],
310
- url: "/api/v1/public/issue/{public_id}/history",
310
+ url: "/public/issue/{public_id}/history",
311
311
  ...options
312
312
  });
313
313
  };
@@ -319,7 +319,7 @@ var userPropertyControllerDeleteUserProperty = (options) => {
319
319
  type: "http"
320
320
  }
321
321
  ],
322
- url: "/api/v1/user-property/{id}",
322
+ url: "/user-property/{id}",
323
323
  ...options
324
324
  });
325
325
  };
@@ -331,7 +331,7 @@ var userPropertyControllerUpdateUserProperty = (options) => {
331
331
  type: "http"
332
332
  }
333
333
  ],
334
- url: "/api/v1/user-property/{id}",
334
+ url: "/user-property/{id}",
335
335
  ...options,
336
336
  headers: {
337
337
  "Content-Type": "application/json",
@@ -347,7 +347,7 @@ var siteControllerListSites = (options) => {
347
347
  type: "http"
348
348
  }
349
349
  ],
350
- url: "/api/v1/site/list",
350
+ url: "/site/list",
351
351
  ...options
352
352
  });
353
353
  };
@@ -359,7 +359,7 @@ var siteControllerCreateSite = (options) => {
359
359
  type: "http"
360
360
  }
361
361
  ],
362
- url: "/api/v1/site",
362
+ url: "/site",
363
363
  ...options,
364
364
  headers: {
365
365
  "Content-Type": "application/json",
@@ -375,7 +375,7 @@ var siteControllerDeleteSite = (options) => {
375
375
  type: "http"
376
376
  }
377
377
  ],
378
- url: "/api/v1/site/{id}",
378
+ url: "/site/{id}",
379
379
  ...options
380
380
  });
381
381
  };
@@ -387,7 +387,7 @@ var siteControllerUpdateSite = (options) => {
387
387
  type: "http"
388
388
  }
389
389
  ],
390
- url: "/api/v1/site/{id}",
390
+ url: "/site/{id}",
391
391
  ...options,
392
392
  headers: {
393
393
  "Content-Type": "application/json",
@@ -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.0";
401
+ var PACKAGE_VERSION = "0.1.2";
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.0";
530
+ var PACKAGE_VERSION2 = "0.1.2";
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 };