@bikefinder/sdk 0.0.0-stage → 0.1.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.
Files changed (57) hide show
  1. package/README.md +139 -2
  2. package/dist/device-schema.d.ts +9462 -0
  3. package/dist/device-schema.js +9397 -0
  4. package/dist/generated/client/client.gen.d.ts +2 -0
  5. package/dist/generated/client/client.gen.js +217 -0
  6. package/dist/generated/client/index.d.ts +10 -0
  7. package/dist/generated/client/index.js +6 -0
  8. package/dist/generated/client/types.gen.d.ts +120 -0
  9. package/dist/generated/client/types.gen.js +2 -0
  10. package/dist/generated/client/utils.gen.d.ts +37 -0
  11. package/dist/generated/client/utils.gen.js +231 -0
  12. package/dist/generated/client.gen.d.ts +12 -0
  13. package/dist/generated/client.gen.js +3 -0
  14. package/dist/generated/core/auth.gen.d.ts +25 -0
  15. package/dist/generated/core/auth.gen.js +14 -0
  16. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  17. package/dist/generated/core/bodySerializer.gen.js +57 -0
  18. package/dist/generated/core/params.gen.d.ts +43 -0
  19. package/dist/generated/core/params.gen.js +112 -0
  20. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  21. package/dist/generated/core/pathSerializer.gen.js +114 -0
  22. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  23. package/dist/generated/core/queryKeySerializer.gen.js +99 -0
  24. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  25. package/dist/generated/core/serverSentEvents.gen.js +136 -0
  26. package/dist/generated/core/types.gen.d.ts +83 -0
  27. package/dist/generated/core/types.gen.js +2 -0
  28. package/dist/generated/core/utils.gen.d.ts +19 -0
  29. package/dist/generated/core/utils.gen.js +87 -0
  30. package/dist/generated/index.d.ts +2 -0
  31. package/dist/generated/index.js +2 -0
  32. package/dist/generated/sdk.gen.d.ts +133 -0
  33. package/dist/generated/sdk.gen.js +2132 -0
  34. package/dist/generated/types.gen.d.ts +11444 -0
  35. package/dist/generated/types.gen.js +2 -0
  36. package/dist/generated/zod.gen.d.ts +39797 -0
  37. package/dist/generated/zod.gen.js +13163 -0
  38. package/dist/index.d.ts +28 -0
  39. package/dist/index.js +69 -0
  40. package/dist/signalr/BikeFinder.Api.Aws.d.ts +1 -0
  41. package/dist/signalr/BikeFinder.Api.Aws.js +1 -0
  42. package/dist/signalr/BikeFinder.Api.Firestore.d.ts +1 -0
  43. package/dist/signalr/BikeFinder.Api.Firestore.js +1 -0
  44. package/dist/signalr/BikeFinder.Api.Trackers.d.ts +7 -0
  45. package/dist/signalr/BikeFinder.Api.Trackers.js +4 -0
  46. package/dist/signalr/BikeFinder.DeviceConfiguration.d.ts +1 -0
  47. package/dist/signalr/BikeFinder.DeviceConfiguration.js +1 -0
  48. package/dist/signalr/BikeFinder.Nucleus.Commands.d.ts +1 -0
  49. package/dist/signalr/BikeFinder.Nucleus.Commands.js +1 -0
  50. package/dist/signalr/TypedSignalR.Client/BikeFinder.Api.Trackers.d.ts +87 -0
  51. package/dist/signalr/TypedSignalR.Client/BikeFinder.Api.Trackers.js +1 -0
  52. package/dist/signalr/TypedSignalR.Client/index.d.ts +18 -0
  53. package/dist/signalr/TypedSignalR.Client/index.js +89 -0
  54. package/dist/workflow-schema.d.ts +198 -0
  55. package/dist/workflow-schema.js +297 -0
  56. package/openapi/api.json +47014 -0
  57. package/package.json +53 -4
@@ -0,0 +1,2132 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import * as z from "zod";
3
+ import { client } from "./client.gen.js";
4
+ import { zAcceptShopifySubscriptionBody, zAcceptShopifySubscriptionResponse, zAcceptWooPaidOrderBody, zAcceptWooPaidOrderResponse, zAcceptWooSubscriptionBody, zAcceptWooSubscriptionResponse, zAddStaffTrackerMemberBody, zAddStaffTrackerMemberPath, zAddStaffTrackerMemberResponse, zCancelAwsFirmwareBody, zCancelAwsFirmwarePath, zCancelAwsFirmwareResponse, zCancelLegacyLteUpgradeBody, zCancelLegacyLteUpgradePath, zCancelLegacyLteUpgradeResponse, zChangeBluetoothPinBody, zChangeBluetoothPinPath, zChangeBluetoothPinResponse, zClaimTrackerBody, zClaimTrackerPath, zClaimTrackerResponse, zCleanStaffTrackerBody, zCleanStaffTrackerPath, zCleanStaffTrackerResponse, zCreateInvitationPath, zCreateInvitationResponse, zCreateTrackerFirmwareUpdateBody, zCreateTrackerFirmwareUpdateHeaders, zCreateTrackerFirmwareUpdatePath, zCreateTrackerFirmwareUpdateResponse, zDeleteStaffFavoritePath, zDeleteStaffFavoriteResponse, zDeleteStaffTrackerPhotoPath, zDeleteStaffTrackerPhotoResponse, zDeleteTrackerPhotoPath, zDeleteTrackerPhotoResponse, zEditPreferencesBody, zEditPreferencesResponse, zEditStaffTrackerBikeBody, zEditStaffTrackerBikePath, zEditStaffTrackerBikeResponse, zEditTrackerBikeBody, zEditTrackerBikePath, zEditTrackerBikeResponse, zGetAccountResponse, zGetActiveAwsFirmwarePath, zGetActiveAwsFirmwareResponse, zGetAwsCommandCatalogResponse, zGetAwsCommandOperationPath, zGetAwsCommandOperationResponse, zGetAwsCommandPath, zGetAwsCommandResponse, zGetAwsDeviceCommandCapabilitiesPath, zGetAwsDeviceCommandCapabilitiesResponse, zGetAwsDeviceConnectivityPath, zGetAwsDeviceConnectivityResponse, zGetAwsDeviceIdentityPath, zGetAwsDeviceIdentityResponse, zGetAwsDeviceObservationPath, zGetAwsDeviceObservationResponse, zGetAwsFirmwareOperationPath, zGetAwsFirmwareOperationResponse, zGetAwsSchemaPath, zGetAwsSchemaResponse, zGetAwsSettingsPath, zGetAwsSettingsResponse, zGetBillingOperationPath, zGetBillingOperationResponse, zGetInsuranceContractPath, zGetInsuranceContractQuery, zGetInsuranceContractResponse, zGetLegacyLteUpgradeOptionsPath, zGetLegacyLteUpgradeOptionsResponse, zGetNativeInsuranceJournalPath, zGetNativeInsuranceJournalResponse, zGetStaffAccountPath, zGetStaffAccountResponse, zGetStaffSubscriptionPath, zGetStaffSubscriptionResponse, zGetStaffTrackerCom4SimStatusPath, zGetStaffTrackerCom4SimStatusResponse, zGetStaffTrackerModesPath, zGetStaffTrackerModesResponse, zGetStaffTrackerOperationPath, zGetStaffTrackerOperationResponse, zGetStaffTrackerPath, zGetStaffTrackerResponse, zGetSubscriptionPath, zGetSubscriptionResponse, zGetTrackerFirmwareUpdatePath, zGetTrackerFirmwareUpdateResponse, zGetTrackerModesPath, zGetTrackerModesResponse, zGetTrackerPath, zGetTrackerResponse, zInitializeAccountResponse, zListAwsCommandsPath, zListAwsCommandsQuery, zListAwsCommandsResponse, zListAwsDeviceObservationsPath, zListAwsDeviceObservationsQuery, zListAwsDeviceObservationsResponse, zListAwsFirmwareReleasesPath, zListAwsFirmwareReleasesResponse, zListInsuranceAttemptsPath, zListInsuranceAttemptsQuery, zListInsuranceAttemptsResponse, zListInsuranceContractsPath, zListInsuranceContractsQuery, zListInsuranceContractsResponse, zListNotificationsQuery, zListNotificationsResponse, zListStaffFavoritesQuery, zListStaffFavoritesResponse, zListStaffSubscriptionsQuery, zListStaffSubscriptionsResponse, zListStaffTrackerAuditPath, zListStaffTrackerAuditQuery, zListStaffTrackerAuditResponse, zListStaffTrackerHistoryPath, zListStaffTrackerHistoryQuery, zListStaffTrackerHistoryResponse, zListStaffTrackerPhotosPath, zListStaffTrackerPhotosQuery, zListStaffTrackerPhotosResponse, zListStaffTrackersQuery, zListStaffTrackersResponse, zListSubscriptionsQuery, zListSubscriptionsResponse, zListTrackerFirmwareReleasesPath, zListTrackerFirmwareReleasesQuery, zListTrackerFirmwareReleasesResponse, zListTrackerHistoryPath, zListTrackerHistoryQuery, zListTrackerHistoryResponse, zListTrackerPhotosPath, zListTrackerPhotosQuery, zListTrackerPhotosResponse, zListTrackersQuery, zListTrackersResponse, zLookupStaffAccountsQuery, zLookupStaffAccountsResponse, zLookupTrackerQuery, zLookupTrackerResponse, zReadAwsObservationsBody, zReadAwsObservationsPath, zReadAwsObservationsResponse, zReadStaffAccountsBody, zReadStaffAccountsResponse, zReconcileTrackerSubscriptionBody, zReconcileTrackerSubscriptionPath, zReconcileTrackerSubscriptionResponse, zRedeemInvitationBody, zRedeemInvitationPath, zRedeemInvitationResponse, zRefreshSubscriptionBody, zRefreshSubscriptionPath, zRefreshSubscriptionResponse, zRegisterPushBody, zRegisterPushResponse, zRemoveStaffTrackerMemberPath, zRemoveStaffTrackerMemberResponse, zRemoveTrackerMemberPath, zRemoveTrackerMemberResponse, zReportBatteryBody, zReportBatteryPath, zReportBatteryResponse, zReportFactoryResetBody, zReportFactoryResetPath, zReportFactoryResetResponse, zReportLocationBody, zReportLocationPath, zReportLocationResponse, zReportTheftBody, zReportTheftPath, zReportTheftResponse, zReportTrackerFirmwareAttemptBody, zReportTrackerFirmwareAttemptPath, zReportTrackerFirmwareAttemptResponse, zRequestAccountInsuranceBody, zRequestAccountInsurancePath, zRequestAccountInsuranceResponse, zRequestAwsFirmwareBody, zRequestAwsFirmwarePath, zRequestAwsFirmwareResponse, zRequestLegacyLteUpgradeBody, zRequestLegacyLteUpgradePath, zRequestLegacyLteUpgradeResponse, zRequestSubscriptionInsuranceBody, zRequestSubscriptionInsurancePath, zRequestSubscriptionInsuranceResponse, zRequestTrackerInsuranceBody, zRequestTrackerInsurancePath, zRequestTrackerInsuranceResponse, zResolveTrackerAwsDevicePath, zResolveTrackerAwsDeviceResponse, zRevokeInvitationsPath, zRevokeInvitationsResponse, zSaveStaffFavoriteBody, zSaveStaffFavoritePath, zSaveStaffFavoriteResponse, zSendAwsCommandBody, zSendAwsCommandPath, zSendAwsCommandResponse, zSetRequestedModeBody, zSetRequestedModePath, zSetRequestedModeResponse, zSetStaffTrackerDenylistBody, zSetStaffTrackerDenylistPath, zSetStaffTrackerDenylistResponse, zSetStaffTrackerSubscriptionBody, zSetStaffTrackerSubscriptionPath, zSetStaffTrackerSubscriptionResponse, zSetTrackerSubscriptionBody, zSetTrackerSubscriptionPath, zSetTrackerSubscriptionResponse, zUnregisterPushQuery, zUnregisterPushResponse, zUpdateAwsSettingsBody, zUpdateAwsSettingsPath, zUpdateAwsSettingsResponse, zUploadBatteryFirmwareBody, zUploadBatteryFirmwarePath, zUploadBatteryFirmwareQuery, zUploadBatteryFirmwareResponse, zUploadPhotoBody, zUploadPhotoPath, zUploadPhotoQuery, zUploadPhotoResponse, } from "./zod.gen.js";
5
+ class HeyApiClient {
6
+ client;
7
+ constructor(args) {
8
+ this.client = args?.client ?? client;
9
+ }
10
+ }
11
+ class HeyApiRegistry {
12
+ defaultKey = "default";
13
+ instances = new Map();
14
+ get(key) {
15
+ const instance = this.instances.get(key ?? this.defaultKey);
16
+ if (!instance) {
17
+ throw new Error(`No SDK client found. Create one with "new ApiRequests()" to fix this error.`);
18
+ }
19
+ return instance;
20
+ }
21
+ set(value, key) {
22
+ this.instances.set(key ?? this.defaultKey, value);
23
+ }
24
+ }
25
+ export class ApiRequests extends HeyApiClient {
26
+ static __registry = new HeyApiRegistry();
27
+ constructor(args) {
28
+ super(args);
29
+ ApiRequests.__registry.set(this, args?.key);
30
+ }
31
+ listTrackers(options) {
32
+ return (options?.client ?? this.client).get({
33
+ requestValidator: async (data) => await z
34
+ .object({
35
+ body: z.never().optional(),
36
+ path: z.never().optional(),
37
+ query: zListTrackersQuery.optional(),
38
+ })
39
+ .parseAsync(data),
40
+ responseTransformer: async (data) => await zListTrackersResponse.parseAsync(data),
41
+ security: [
42
+ {
43
+ key: "Bearer",
44
+ scheme: "bearer",
45
+ type: "http",
46
+ },
47
+ ],
48
+ url: "/v1/trackers",
49
+ ...options,
50
+ });
51
+ }
52
+ lookupTracker(options) {
53
+ return (options?.client ?? this.client).get({
54
+ requestValidator: async (data) => await z
55
+ .object({
56
+ body: z.never().optional(),
57
+ path: z.never().optional(),
58
+ query: zLookupTrackerQuery.optional(),
59
+ })
60
+ .parseAsync(data),
61
+ responseTransformer: async (data) => await zLookupTrackerResponse.parseAsync(data),
62
+ security: [
63
+ {
64
+ key: "Bearer",
65
+ scheme: "bearer",
66
+ type: "http",
67
+ },
68
+ ],
69
+ url: "/v1/trackers/lookup",
70
+ ...options,
71
+ });
72
+ }
73
+ getTrackerModes(options) {
74
+ return (options.client ?? this.client).get({
75
+ requestValidator: async (data) => await z
76
+ .object({
77
+ body: z.never().optional(),
78
+ path: zGetTrackerModesPath,
79
+ query: z.never().optional(),
80
+ })
81
+ .parseAsync(data),
82
+ responseTransformer: async (data) => await zGetTrackerModesResponse.parseAsync(data),
83
+ security: [
84
+ {
85
+ key: "Bearer",
86
+ scheme: "bearer",
87
+ type: "http",
88
+ },
89
+ ],
90
+ url: "/v1/trackers/{id}/modes",
91
+ ...options,
92
+ });
93
+ }
94
+ getTracker(options) {
95
+ return (options.client ?? this.client).get({
96
+ requestValidator: async (data) => await z
97
+ .object({
98
+ body: z.never().optional(),
99
+ path: zGetTrackerPath,
100
+ query: z.never().optional(),
101
+ })
102
+ .parseAsync(data),
103
+ responseTransformer: async (data) => await zGetTrackerResponse.parseAsync(data),
104
+ security: [
105
+ {
106
+ key: "Bearer",
107
+ scheme: "bearer",
108
+ type: "http",
109
+ },
110
+ ],
111
+ url: "/v1/trackers/{id}",
112
+ ...options,
113
+ });
114
+ }
115
+ listTrackerHistory(options) {
116
+ return (options.client ?? this.client).get({
117
+ requestValidator: async (data) => await z
118
+ .object({
119
+ body: z.never().optional(),
120
+ path: zListTrackerHistoryPath,
121
+ query: zListTrackerHistoryQuery,
122
+ })
123
+ .parseAsync(data),
124
+ responseTransformer: async (data) => await zListTrackerHistoryResponse.parseAsync(data),
125
+ security: [
126
+ {
127
+ key: "Bearer",
128
+ scheme: "bearer",
129
+ type: "http",
130
+ },
131
+ ],
132
+ url: "/v1/trackers/{id}/history",
133
+ ...options,
134
+ });
135
+ }
136
+ editTrackerBike(options) {
137
+ return (options.client ?? this.client).patch({
138
+ requestValidator: async (data) => await z
139
+ .object({
140
+ body: zEditTrackerBikeBody,
141
+ path: zEditTrackerBikePath,
142
+ query: z.never().optional(),
143
+ })
144
+ .parseAsync(data),
145
+ responseTransformer: async (data) => await zEditTrackerBikeResponse.parseAsync(data),
146
+ security: [
147
+ {
148
+ key: "Bearer",
149
+ scheme: "bearer",
150
+ type: "http",
151
+ },
152
+ ],
153
+ url: "/v1/trackers/{id}/bike",
154
+ ...options,
155
+ headers: {
156
+ "Content-Type": "application/json",
157
+ ...options.headers,
158
+ },
159
+ });
160
+ }
161
+ removeTrackerMember(options) {
162
+ return (options.client ?? this.client).delete({
163
+ requestValidator: async (data) => await z
164
+ .object({
165
+ body: z.never().optional(),
166
+ path: zRemoveTrackerMemberPath,
167
+ query: z.never().optional(),
168
+ })
169
+ .parseAsync(data),
170
+ responseTransformer: async (data) => await zRemoveTrackerMemberResponse.parseAsync(data),
171
+ security: [
172
+ {
173
+ key: "Bearer",
174
+ scheme: "bearer",
175
+ type: "http",
176
+ },
177
+ ],
178
+ url: "/v1/trackers/{id}/members/{memberId}",
179
+ ...options,
180
+ });
181
+ }
182
+ claimTracker(options) {
183
+ return (options.client ?? this.client).post({
184
+ requestValidator: async (data) => await z
185
+ .object({
186
+ body: zClaimTrackerBody,
187
+ path: zClaimTrackerPath,
188
+ query: z.never().optional(),
189
+ })
190
+ .parseAsync(data),
191
+ responseTransformer: async (data) => await zClaimTrackerResponse.parseAsync(data),
192
+ security: [
193
+ {
194
+ key: "Bearer",
195
+ scheme: "bearer",
196
+ type: "http",
197
+ },
198
+ ],
199
+ url: "/v1/trackers/{id}/claim",
200
+ ...options,
201
+ headers: {
202
+ "Content-Type": "application/json",
203
+ ...options.headers,
204
+ },
205
+ });
206
+ }
207
+ revokeInvitations(options) {
208
+ return (options.client ?? this.client).delete({
209
+ requestValidator: async (data) => await z
210
+ .object({
211
+ body: z.never().optional(),
212
+ path: zRevokeInvitationsPath,
213
+ query: z.never().optional(),
214
+ })
215
+ .parseAsync(data),
216
+ responseTransformer: async (data) => await zRevokeInvitationsResponse.parseAsync(data),
217
+ security: [
218
+ {
219
+ key: "Bearer",
220
+ scheme: "bearer",
221
+ type: "http",
222
+ },
223
+ ],
224
+ url: "/v1/trackers/{id}/invitations",
225
+ ...options,
226
+ });
227
+ }
228
+ createInvitation(options) {
229
+ return (options.client ?? this.client).post({
230
+ requestValidator: async (data) => await z
231
+ .object({
232
+ body: z.never().optional(),
233
+ path: zCreateInvitationPath,
234
+ query: z.never().optional(),
235
+ })
236
+ .parseAsync(data),
237
+ responseTransformer: async (data) => await zCreateInvitationResponse.parseAsync(data),
238
+ security: [
239
+ {
240
+ key: "Bearer",
241
+ scheme: "bearer",
242
+ type: "http",
243
+ },
244
+ ],
245
+ url: "/v1/trackers/{id}/invitations",
246
+ ...options,
247
+ });
248
+ }
249
+ redeemInvitation(options) {
250
+ return (options.client ?? this.client).post({
251
+ requestValidator: async (data) => await z
252
+ .object({
253
+ body: zRedeemInvitationBody,
254
+ path: zRedeemInvitationPath,
255
+ query: z.never().optional(),
256
+ })
257
+ .parseAsync(data),
258
+ responseTransformer: async (data) => await zRedeemInvitationResponse.parseAsync(data),
259
+ security: [
260
+ {
261
+ key: "Bearer",
262
+ scheme: "bearer",
263
+ type: "http",
264
+ },
265
+ ],
266
+ url: "/v1/trackers/{id}/redeem-invitation",
267
+ ...options,
268
+ headers: {
269
+ "Content-Type": "application/json",
270
+ ...options.headers,
271
+ },
272
+ });
273
+ }
274
+ setRequestedMode(options) {
275
+ return (options.client ?? this.client).put({
276
+ requestValidator: async (data) => await z
277
+ .object({
278
+ body: zSetRequestedModeBody,
279
+ path: zSetRequestedModePath,
280
+ query: z.never().optional(),
281
+ })
282
+ .parseAsync(data),
283
+ responseTransformer: async (data) => await zSetRequestedModeResponse.parseAsync(data),
284
+ security: [
285
+ {
286
+ key: "Bearer",
287
+ scheme: "bearer",
288
+ type: "http",
289
+ },
290
+ ],
291
+ url: "/v1/trackers/{id}/requested-mode",
292
+ ...options,
293
+ headers: {
294
+ "Content-Type": "application/json",
295
+ ...options.headers,
296
+ },
297
+ });
298
+ }
299
+ reportBattery(options) {
300
+ return (options.client ?? this.client).post({
301
+ requestValidator: async (data) => await z
302
+ .object({
303
+ body: zReportBatteryBody,
304
+ path: zReportBatteryPath,
305
+ query: z.never().optional(),
306
+ })
307
+ .parseAsync(data),
308
+ responseTransformer: async (data) => await zReportBatteryResponse.parseAsync(data),
309
+ security: [
310
+ {
311
+ key: "Bearer",
312
+ scheme: "bearer",
313
+ type: "http",
314
+ },
315
+ ],
316
+ url: "/v1/trackers/{id}/battery-observations",
317
+ ...options,
318
+ headers: {
319
+ "Content-Type": "application/json",
320
+ ...options.headers,
321
+ },
322
+ });
323
+ }
324
+ changeBluetoothPin(options) {
325
+ return (options.client ?? this.client).put({
326
+ requestValidator: async (data) => await z
327
+ .object({
328
+ body: zChangeBluetoothPinBody,
329
+ path: zChangeBluetoothPinPath,
330
+ query: z.never().optional(),
331
+ })
332
+ .parseAsync(data),
333
+ responseTransformer: async (data) => await zChangeBluetoothPinResponse.parseAsync(data),
334
+ security: [
335
+ {
336
+ key: "Bearer",
337
+ scheme: "bearer",
338
+ type: "http",
339
+ },
340
+ ],
341
+ url: "/v1/trackers/{id}/bluetooth-pin",
342
+ ...options,
343
+ headers: {
344
+ "Content-Type": "application/json",
345
+ ...options.headers,
346
+ },
347
+ });
348
+ }
349
+ reportFactoryReset(options) {
350
+ return (options.client ?? this.client).post({
351
+ requestValidator: async (data) => await z
352
+ .object({
353
+ body: zReportFactoryResetBody,
354
+ path: zReportFactoryResetPath,
355
+ query: z.never().optional(),
356
+ })
357
+ .parseAsync(data),
358
+ responseTransformer: async (data) => await zReportFactoryResetResponse.parseAsync(data),
359
+ security: [
360
+ {
361
+ key: "Bearer",
362
+ scheme: "bearer",
363
+ type: "http",
364
+ },
365
+ ],
366
+ url: "/v1/trackers/{id}/factory-reset-reports",
367
+ ...options,
368
+ headers: {
369
+ "Content-Type": "application/json",
370
+ ...options.headers,
371
+ },
372
+ });
373
+ }
374
+ reportLocation(options) {
375
+ return (options.client ?? this.client).post({
376
+ requestValidator: async (data) => await z
377
+ .object({
378
+ body: zReportLocationBody,
379
+ path: zReportLocationPath,
380
+ query: z.never().optional(),
381
+ })
382
+ .parseAsync(data),
383
+ responseTransformer: async (data) => await zReportLocationResponse.parseAsync(data),
384
+ security: [
385
+ {
386
+ key: "Bearer",
387
+ scheme: "bearer",
388
+ type: "http",
389
+ },
390
+ ],
391
+ url: "/v1/trackers/{id}/location-observations",
392
+ ...options,
393
+ headers: {
394
+ "Content-Type": "application/json",
395
+ ...options.headers,
396
+ },
397
+ });
398
+ }
399
+ reportTheft(options) {
400
+ return (options.client ?? this.client).post({
401
+ requestValidator: async (data) => await z
402
+ .object({
403
+ body: zReportTheftBody,
404
+ path: zReportTheftPath,
405
+ query: z.never().optional(),
406
+ })
407
+ .parseAsync(data),
408
+ responseTransformer: async (data) => await zReportTheftResponse.parseAsync(data),
409
+ security: [
410
+ {
411
+ key: "Bearer",
412
+ scheme: "bearer",
413
+ type: "http",
414
+ },
415
+ ],
416
+ url: "/v1/trackers/{id}/theft-reports",
417
+ ...options,
418
+ headers: {
419
+ "Content-Type": "application/json",
420
+ ...options.headers,
421
+ },
422
+ });
423
+ }
424
+ /**
425
+ * Query the tracker's current SIM status from Com4
426
+ *
427
+ * An on-demand provider read using the tracker's stored ICCID. Does not activate, suspend or otherwise modify the SIM. SIM provisioning status does not establish tracker connectivity.
428
+ */
429
+ getStaffTrackerCom4SimStatus(options) {
430
+ return (options.client ?? this.client).get({
431
+ requestValidator: async (data) => await z
432
+ .object({
433
+ body: z.never().optional(),
434
+ path: zGetStaffTrackerCom4SimStatusPath,
435
+ query: z.never().optional(),
436
+ })
437
+ .parseAsync(data),
438
+ responseTransformer: async (data) => await zGetStaffTrackerCom4SimStatusResponse.parseAsync(data),
439
+ security: [
440
+ {
441
+ key: "Bearer",
442
+ scheme: "bearer",
443
+ type: "http",
444
+ },
445
+ ],
446
+ url: "/v1/admin/trackers/{id}/sim-status/com4",
447
+ ...options,
448
+ });
449
+ }
450
+ editStaffTrackerBike(options) {
451
+ return (options.client ?? this.client).patch({
452
+ requestValidator: async (data) => await z
453
+ .object({
454
+ body: zEditStaffTrackerBikeBody,
455
+ path: zEditStaffTrackerBikePath,
456
+ query: z.never().optional(),
457
+ })
458
+ .parseAsync(data),
459
+ responseTransformer: async (data) => await zEditStaffTrackerBikeResponse.parseAsync(data),
460
+ security: [
461
+ {
462
+ key: "Bearer",
463
+ scheme: "bearer",
464
+ type: "http",
465
+ },
466
+ ],
467
+ url: "/v1/admin/trackers/{id}/bike",
468
+ ...options,
469
+ headers: {
470
+ "Content-Type": "application/json",
471
+ ...options.headers,
472
+ },
473
+ });
474
+ }
475
+ removeStaffTrackerMember(options) {
476
+ return (options.client ?? this.client).delete({
477
+ requestValidator: async (data) => await z
478
+ .object({
479
+ body: z.never().optional(),
480
+ path: zRemoveStaffTrackerMemberPath,
481
+ query: z.never().optional(),
482
+ })
483
+ .parseAsync(data),
484
+ responseTransformer: async (data) => await zRemoveStaffTrackerMemberResponse.parseAsync(data),
485
+ security: [
486
+ {
487
+ key: "Bearer",
488
+ scheme: "bearer",
489
+ type: "http",
490
+ },
491
+ ],
492
+ url: "/v1/admin/trackers/{id}/members/{memberId}",
493
+ ...options,
494
+ });
495
+ }
496
+ addStaffTrackerMember(options) {
497
+ return (options.client ?? this.client).put({
498
+ requestValidator: async (data) => await z
499
+ .object({
500
+ body: zAddStaffTrackerMemberBody,
501
+ path: zAddStaffTrackerMemberPath,
502
+ query: z.never().optional(),
503
+ })
504
+ .parseAsync(data),
505
+ responseTransformer: async (data) => await zAddStaffTrackerMemberResponse.parseAsync(data),
506
+ security: [
507
+ {
508
+ key: "Bearer",
509
+ scheme: "bearer",
510
+ type: "http",
511
+ },
512
+ ],
513
+ url: "/v1/admin/trackers/{id}/members/{memberId}",
514
+ ...options,
515
+ headers: {
516
+ "Content-Type": "application/json",
517
+ ...options.headers,
518
+ },
519
+ });
520
+ }
521
+ cleanStaffTracker(options) {
522
+ return (options.client ?? this.client).post({
523
+ requestValidator: async (data) => await z
524
+ .object({
525
+ body: zCleanStaffTrackerBody,
526
+ path: zCleanStaffTrackerPath,
527
+ query: z.never().optional(),
528
+ })
529
+ .parseAsync(data),
530
+ responseTransformer: async (data) => await zCleanStaffTrackerResponse.parseAsync(data),
531
+ security: [
532
+ {
533
+ key: "Bearer",
534
+ scheme: "bearer",
535
+ type: "http",
536
+ },
537
+ ],
538
+ url: "/v1/admin/trackers/{id}/clean",
539
+ ...options,
540
+ headers: {
541
+ "Content-Type": "application/json",
542
+ ...options.headers,
543
+ },
544
+ });
545
+ }
546
+ setStaffTrackerDenylist(options) {
547
+ return (options.client ?? this.client).put({
548
+ requestValidator: async (data) => await z
549
+ .object({
550
+ body: zSetStaffTrackerDenylistBody,
551
+ path: zSetStaffTrackerDenylistPath,
552
+ query: z.never().optional(),
553
+ })
554
+ .parseAsync(data),
555
+ responseTransformer: async (data) => await zSetStaffTrackerDenylistResponse.parseAsync(data),
556
+ security: [
557
+ {
558
+ key: "Bearer",
559
+ scheme: "bearer",
560
+ type: "http",
561
+ },
562
+ ],
563
+ url: "/v1/admin/trackers/{id}/denylist",
564
+ ...options,
565
+ headers: {
566
+ "Content-Type": "application/json",
567
+ ...options.headers,
568
+ },
569
+ });
570
+ }
571
+ getStaffTrackerOperation(options) {
572
+ return (options.client ?? this.client).get({
573
+ requestValidator: async (data) => await z
574
+ .object({
575
+ body: z.never().optional(),
576
+ path: zGetStaffTrackerOperationPath,
577
+ query: z.never().optional(),
578
+ })
579
+ .parseAsync(data),
580
+ responseTransformer: async (data) => await zGetStaffTrackerOperationResponse.parseAsync(data),
581
+ security: [
582
+ {
583
+ key: "Bearer",
584
+ scheme: "bearer",
585
+ type: "http",
586
+ },
587
+ ],
588
+ url: "/v1/admin/trackers/{id}/operations/{requestId}",
589
+ ...options,
590
+ });
591
+ }
592
+ listStaffTrackers(options) {
593
+ return (options?.client ?? this.client).get({
594
+ requestValidator: async (data) => await z
595
+ .object({
596
+ body: z.never().optional(),
597
+ path: z.never().optional(),
598
+ query: zListStaffTrackersQuery.optional(),
599
+ })
600
+ .parseAsync(data),
601
+ responseTransformer: async (data) => await zListStaffTrackersResponse.parseAsync(data),
602
+ security: [
603
+ {
604
+ key: "Bearer",
605
+ scheme: "bearer",
606
+ type: "http",
607
+ },
608
+ ],
609
+ url: "/v1/admin/trackers",
610
+ ...options,
611
+ });
612
+ }
613
+ getStaffTrackerModes(options) {
614
+ return (options.client ?? this.client).get({
615
+ requestValidator: async (data) => await z
616
+ .object({
617
+ body: z.never().optional(),
618
+ path: zGetStaffTrackerModesPath,
619
+ query: z.never().optional(),
620
+ })
621
+ .parseAsync(data),
622
+ responseTransformer: async (data) => await zGetStaffTrackerModesResponse.parseAsync(data),
623
+ security: [
624
+ {
625
+ key: "Bearer",
626
+ scheme: "bearer",
627
+ type: "http",
628
+ },
629
+ ],
630
+ url: "/v1/admin/trackers/{id}/modes",
631
+ ...options,
632
+ });
633
+ }
634
+ getStaffTracker(options) {
635
+ return (options.client ?? this.client).get({
636
+ requestValidator: async (data) => await z
637
+ .object({
638
+ body: z.never().optional(),
639
+ path: zGetStaffTrackerPath,
640
+ query: z.never().optional(),
641
+ })
642
+ .parseAsync(data),
643
+ responseTransformer: async (data) => await zGetStaffTrackerResponse.parseAsync(data),
644
+ security: [
645
+ {
646
+ key: "Bearer",
647
+ scheme: "bearer",
648
+ type: "http",
649
+ },
650
+ ],
651
+ url: "/v1/admin/trackers/{id}",
652
+ ...options,
653
+ });
654
+ }
655
+ listStaffTrackerHistory(options) {
656
+ return (options.client ?? this.client).get({
657
+ requestValidator: async (data) => await z
658
+ .object({
659
+ body: z.never().optional(),
660
+ path: zListStaffTrackerHistoryPath,
661
+ query: zListStaffTrackerHistoryQuery,
662
+ })
663
+ .parseAsync(data),
664
+ responseTransformer: async (data) => await zListStaffTrackerHistoryResponse.parseAsync(data),
665
+ security: [
666
+ {
667
+ key: "Bearer",
668
+ scheme: "bearer",
669
+ type: "http",
670
+ },
671
+ ],
672
+ url: "/v1/admin/trackers/{id}/history",
673
+ ...options,
674
+ });
675
+ }
676
+ listStaffTrackerAudit(options) {
677
+ return (options.client ?? this.client).get({
678
+ requestValidator: async (data) => await z
679
+ .object({
680
+ body: z.never().optional(),
681
+ path: zListStaffTrackerAuditPath,
682
+ query: zListStaffTrackerAuditQuery,
683
+ })
684
+ .parseAsync(data),
685
+ responseTransformer: async (data) => await zListStaffTrackerAuditResponse.parseAsync(data),
686
+ security: [
687
+ {
688
+ key: "Bearer",
689
+ scheme: "bearer",
690
+ type: "http",
691
+ },
692
+ ],
693
+ url: "/v1/admin/trackers/{id}/audit",
694
+ ...options,
695
+ });
696
+ }
697
+ listTrackerFirmwareReleases(options) {
698
+ return (options.client ?? this.client).get({
699
+ requestValidator: async (data) => await z
700
+ .object({
701
+ body: z.never().optional(),
702
+ path: zListTrackerFirmwareReleasesPath,
703
+ query: zListTrackerFirmwareReleasesQuery,
704
+ })
705
+ .parseAsync(data),
706
+ responseTransformer: async (data) => await zListTrackerFirmwareReleasesResponse.parseAsync(data),
707
+ security: [
708
+ {
709
+ key: "Bearer",
710
+ scheme: "bearer",
711
+ type: "http",
712
+ },
713
+ ],
714
+ url: "/v1/trackers/{id}/firmware/releases",
715
+ ...options,
716
+ });
717
+ }
718
+ createTrackerFirmwareUpdate(options) {
719
+ return (options.client ?? this.client).post({
720
+ requestValidator: async (data) => await z
721
+ .object({
722
+ body: zCreateTrackerFirmwareUpdateBody,
723
+ headers: zCreateTrackerFirmwareUpdateHeaders.optional(),
724
+ path: zCreateTrackerFirmwareUpdatePath,
725
+ query: z.never().optional(),
726
+ })
727
+ .parseAsync(data),
728
+ responseTransformer: async (data) => await zCreateTrackerFirmwareUpdateResponse.parseAsync(data),
729
+ security: [
730
+ {
731
+ key: "Bearer",
732
+ scheme: "bearer",
733
+ type: "http",
734
+ },
735
+ ],
736
+ url: "/v1/trackers/{id}/firmware/updates",
737
+ ...options,
738
+ headers: {
739
+ "Content-Type": "application/json",
740
+ ...options.headers,
741
+ },
742
+ });
743
+ }
744
+ getTrackerFirmwareUpdate(options) {
745
+ return (options.client ?? this.client).get({
746
+ requestValidator: async (data) => await z
747
+ .object({
748
+ body: z.never().optional(),
749
+ path: zGetTrackerFirmwareUpdatePath,
750
+ query: z.never().optional(),
751
+ })
752
+ .parseAsync(data),
753
+ responseTransformer: async (data) => await zGetTrackerFirmwareUpdateResponse.parseAsync(data),
754
+ security: [
755
+ {
756
+ key: "Bearer",
757
+ scheme: "bearer",
758
+ type: "http",
759
+ },
760
+ ],
761
+ url: "/v1/trackers/{id}/firmware/updates/{updateId}",
762
+ ...options,
763
+ });
764
+ }
765
+ reportTrackerFirmwareAttempt(options) {
766
+ return (options.client ?? this.client).post({
767
+ requestValidator: async (data) => await z
768
+ .object({
769
+ body: zReportTrackerFirmwareAttemptBody,
770
+ path: zReportTrackerFirmwareAttemptPath,
771
+ query: z.never().optional(),
772
+ })
773
+ .parseAsync(data),
774
+ responseTransformer: async (data) => await zReportTrackerFirmwareAttemptResponse.parseAsync(data),
775
+ security: [
776
+ {
777
+ key: "Bearer",
778
+ scheme: "bearer",
779
+ type: "http",
780
+ },
781
+ ],
782
+ url: "/v1/trackers/{id}/firmware/updates/{updateId}/reports",
783
+ ...options,
784
+ headers: {
785
+ "Content-Type": "application/json",
786
+ ...options.headers,
787
+ },
788
+ });
789
+ }
790
+ getLegacyLteUpgradeOptions(options) {
791
+ return (options.client ?? this.client).get({
792
+ requestValidator: async (data) => await z
793
+ .object({
794
+ body: z.never().optional(),
795
+ path: zGetLegacyLteUpgradeOptionsPath,
796
+ query: z.never().optional(),
797
+ })
798
+ .parseAsync(data),
799
+ responseTransformer: async (data) => await zGetLegacyLteUpgradeOptionsResponse.parseAsync(data),
800
+ security: [
801
+ {
802
+ key: "Bearer",
803
+ scheme: "bearer",
804
+ type: "http",
805
+ },
806
+ ],
807
+ url: "/v1/admin/trackers/{id}/firmware/lte-upgrade-options",
808
+ ...options,
809
+ });
810
+ }
811
+ requestLegacyLteUpgrade(options) {
812
+ return (options.client ?? this.client).post({
813
+ requestValidator: async (data) => await z
814
+ .object({
815
+ body: zRequestLegacyLteUpgradeBody,
816
+ path: zRequestLegacyLteUpgradePath,
817
+ query: z.never().optional(),
818
+ })
819
+ .parseAsync(data),
820
+ responseTransformer: async (data) => await zRequestLegacyLteUpgradeResponse.parseAsync(data),
821
+ security: [
822
+ {
823
+ key: "Bearer",
824
+ scheme: "bearer",
825
+ type: "http",
826
+ },
827
+ ],
828
+ url: "/v1/admin/trackers/{id}/firmware/lte-upgrade-requests",
829
+ ...options,
830
+ headers: {
831
+ "Content-Type": "application/json",
832
+ ...options.headers,
833
+ },
834
+ });
835
+ }
836
+ cancelLegacyLteUpgrade(options) {
837
+ return (options.client ?? this.client).post({
838
+ requestValidator: async (data) => await z
839
+ .object({
840
+ body: zCancelLegacyLteUpgradeBody,
841
+ path: zCancelLegacyLteUpgradePath,
842
+ query: z.never().optional(),
843
+ })
844
+ .parseAsync(data),
845
+ responseTransformer: async (data) => await zCancelLegacyLteUpgradeResponse.parseAsync(data),
846
+ security: [
847
+ {
848
+ key: "Bearer",
849
+ scheme: "bearer",
850
+ type: "http",
851
+ },
852
+ ],
853
+ url: "/v1/admin/trackers/{id}/firmware/lte-upgrade-cancellations",
854
+ ...options,
855
+ headers: {
856
+ "Content-Type": "application/json",
857
+ ...options.headers,
858
+ },
859
+ });
860
+ }
861
+ getAccount(options) {
862
+ return (options?.client ?? this.client).get({
863
+ requestValidator: async (data) => await z
864
+ .object({
865
+ body: z.never().optional(),
866
+ path: z.never().optional(),
867
+ query: z.never().optional(),
868
+ })
869
+ .parseAsync(data),
870
+ responseTransformer: async (data) => await zGetAccountResponse.parseAsync(data),
871
+ security: [
872
+ {
873
+ key: "Bearer",
874
+ scheme: "bearer",
875
+ type: "http",
876
+ },
877
+ ],
878
+ url: "/v1/account",
879
+ ...options,
880
+ });
881
+ }
882
+ initializeAccount(options) {
883
+ return (options?.client ?? this.client).put({
884
+ requestValidator: async (data) => await z
885
+ .object({
886
+ body: z.never().optional(),
887
+ path: z.never().optional(),
888
+ query: z.never().optional(),
889
+ })
890
+ .parseAsync(data),
891
+ responseTransformer: async (data) => await zInitializeAccountResponse.parseAsync(data),
892
+ security: [
893
+ {
894
+ key: "Bearer",
895
+ scheme: "bearer",
896
+ type: "http",
897
+ },
898
+ ],
899
+ url: "/v1/account",
900
+ ...options,
901
+ });
902
+ }
903
+ listNotifications(options) {
904
+ return (options?.client ?? this.client).get({
905
+ requestValidator: async (data) => await z
906
+ .object({
907
+ body: z.never().optional(),
908
+ path: z.never().optional(),
909
+ query: zListNotificationsQuery.optional(),
910
+ })
911
+ .parseAsync(data),
912
+ responseTransformer: async (data) => await zListNotificationsResponse.parseAsync(data),
913
+ security: [
914
+ {
915
+ key: "Bearer",
916
+ scheme: "bearer",
917
+ type: "http",
918
+ },
919
+ ],
920
+ url: "/v1/account/notifications",
921
+ ...options,
922
+ });
923
+ }
924
+ editPreferences(options) {
925
+ return (options.client ?? this.client).patch({
926
+ requestValidator: async (data) => await z
927
+ .object({
928
+ body: zEditPreferencesBody,
929
+ path: z.never().optional(),
930
+ query: z.never().optional(),
931
+ })
932
+ .parseAsync(data),
933
+ responseTransformer: async (data) => await zEditPreferencesResponse.parseAsync(data),
934
+ security: [
935
+ {
936
+ key: "Bearer",
937
+ scheme: "bearer",
938
+ type: "http",
939
+ },
940
+ ],
941
+ url: "/v1/account/preferences",
942
+ ...options,
943
+ headers: {
944
+ "Content-Type": "application/json",
945
+ ...options.headers,
946
+ },
947
+ });
948
+ }
949
+ unregisterPush(options) {
950
+ return (options.client ?? this.client).delete({
951
+ requestValidator: async (data) => await z
952
+ .object({
953
+ body: z.never().optional(),
954
+ path: z.never().optional(),
955
+ query: zUnregisterPushQuery,
956
+ })
957
+ .parseAsync(data),
958
+ responseTransformer: async (data) => await zUnregisterPushResponse.parseAsync(data),
959
+ security: [
960
+ {
961
+ key: "Bearer",
962
+ scheme: "bearer",
963
+ type: "http",
964
+ },
965
+ ],
966
+ url: "/v1/account/push-registration",
967
+ ...options,
968
+ });
969
+ }
970
+ registerPush(options) {
971
+ return (options.client ?? this.client).put({
972
+ requestValidator: async (data) => await z
973
+ .object({
974
+ body: zRegisterPushBody,
975
+ path: z.never().optional(),
976
+ query: z.never().optional(),
977
+ })
978
+ .parseAsync(data),
979
+ responseTransformer: async (data) => await zRegisterPushResponse.parseAsync(data),
980
+ security: [
981
+ {
982
+ key: "Bearer",
983
+ scheme: "bearer",
984
+ type: "http",
985
+ },
986
+ ],
987
+ url: "/v1/account/push-registration",
988
+ ...options,
989
+ headers: {
990
+ "Content-Type": "application/json",
991
+ ...options.headers,
992
+ },
993
+ });
994
+ }
995
+ lookupStaffAccounts(options) {
996
+ return (options.client ?? this.client).get({
997
+ requestValidator: async (data) => await z
998
+ .object({
999
+ body: z.never().optional(),
1000
+ path: z.never().optional(),
1001
+ query: zLookupStaffAccountsQuery,
1002
+ })
1003
+ .parseAsync(data),
1004
+ responseTransformer: async (data) => await zLookupStaffAccountsResponse.parseAsync(data),
1005
+ security: [
1006
+ {
1007
+ key: "Bearer",
1008
+ scheme: "bearer",
1009
+ type: "http",
1010
+ },
1011
+ ],
1012
+ url: "/v1/admin/accounts",
1013
+ ...options,
1014
+ });
1015
+ }
1016
+ getStaffAccount(options) {
1017
+ return (options.client ?? this.client).get({
1018
+ requestValidator: async (data) => await z
1019
+ .object({
1020
+ body: z.never().optional(),
1021
+ path: zGetStaffAccountPath,
1022
+ query: z.never().optional(),
1023
+ })
1024
+ .parseAsync(data),
1025
+ responseTransformer: async (data) => await zGetStaffAccountResponse.parseAsync(data),
1026
+ security: [
1027
+ {
1028
+ key: "Bearer",
1029
+ scheme: "bearer",
1030
+ type: "http",
1031
+ },
1032
+ ],
1033
+ url: "/v1/admin/accounts/{id}",
1034
+ ...options,
1035
+ });
1036
+ }
1037
+ readStaffAccounts(options) {
1038
+ return (options.client ?? this.client).post({
1039
+ requestValidator: async (data) => await z
1040
+ .object({
1041
+ body: zReadStaffAccountsBody,
1042
+ path: z.never().optional(),
1043
+ query: z.never().optional(),
1044
+ })
1045
+ .parseAsync(data),
1046
+ responseTransformer: async (data) => await zReadStaffAccountsResponse.parseAsync(data),
1047
+ security: [
1048
+ {
1049
+ key: "Bearer",
1050
+ scheme: "bearer",
1051
+ type: "http",
1052
+ },
1053
+ ],
1054
+ url: "/v1/admin/accounts/query",
1055
+ ...options,
1056
+ headers: {
1057
+ "Content-Type": "application/json",
1058
+ ...options.headers,
1059
+ },
1060
+ });
1061
+ }
1062
+ listStaffFavorites(options) {
1063
+ return (options?.client ?? this.client).get({
1064
+ requestValidator: async (data) => await z
1065
+ .object({
1066
+ body: z.never().optional(),
1067
+ path: z.never().optional(),
1068
+ query: zListStaffFavoritesQuery.optional(),
1069
+ })
1070
+ .parseAsync(data),
1071
+ responseTransformer: async (data) => await zListStaffFavoritesResponse.parseAsync(data),
1072
+ security: [
1073
+ {
1074
+ key: "Bearer",
1075
+ scheme: "bearer",
1076
+ type: "http",
1077
+ },
1078
+ ],
1079
+ url: "/v1/admin/favorites",
1080
+ ...options,
1081
+ });
1082
+ }
1083
+ deleteStaffFavorite(options) {
1084
+ return (options.client ?? this.client).delete({
1085
+ requestValidator: async (data) => await z
1086
+ .object({
1087
+ body: z.never().optional(),
1088
+ path: zDeleteStaffFavoritePath,
1089
+ query: z.never().optional(),
1090
+ })
1091
+ .parseAsync(data),
1092
+ responseTransformer: async (data) => await zDeleteStaffFavoriteResponse.parseAsync(data),
1093
+ security: [
1094
+ {
1095
+ key: "Bearer",
1096
+ scheme: "bearer",
1097
+ type: "http",
1098
+ },
1099
+ ],
1100
+ url: "/v1/admin/favorites/{id}",
1101
+ ...options,
1102
+ });
1103
+ }
1104
+ saveStaffFavorite(options) {
1105
+ return (options.client ?? this.client).put({
1106
+ requestValidator: async (data) => await z
1107
+ .object({
1108
+ body: zSaveStaffFavoriteBody,
1109
+ path: zSaveStaffFavoritePath,
1110
+ query: z.never().optional(),
1111
+ })
1112
+ .parseAsync(data),
1113
+ responseTransformer: async (data) => await zSaveStaffFavoriteResponse.parseAsync(data),
1114
+ security: [
1115
+ {
1116
+ key: "Bearer",
1117
+ scheme: "bearer",
1118
+ type: "http",
1119
+ },
1120
+ ],
1121
+ url: "/v1/admin/favorites/{id}",
1122
+ ...options,
1123
+ headers: {
1124
+ "Content-Type": "application/json",
1125
+ ...options.headers,
1126
+ },
1127
+ });
1128
+ }
1129
+ listTrackerPhotos(options) {
1130
+ return (options.client ?? this.client).get({
1131
+ requestValidator: async (data) => await z
1132
+ .object({
1133
+ body: z.never().optional(),
1134
+ path: zListTrackerPhotosPath,
1135
+ query: zListTrackerPhotosQuery.optional(),
1136
+ })
1137
+ .parseAsync(data),
1138
+ responseTransformer: async (data) => await zListTrackerPhotosResponse.parseAsync(data),
1139
+ security: [
1140
+ {
1141
+ key: "Bearer",
1142
+ scheme: "bearer",
1143
+ type: "http",
1144
+ },
1145
+ ],
1146
+ url: "/v1/trackers/{id}/photos",
1147
+ ...options,
1148
+ });
1149
+ }
1150
+ uploadPhoto(options) {
1151
+ return (options.client ?? this.client).post({
1152
+ bodySerializer: null,
1153
+ requestValidator: async (data) => await z
1154
+ .object({
1155
+ body: zUploadPhotoBody,
1156
+ path: zUploadPhotoPath,
1157
+ query: zUploadPhotoQuery,
1158
+ })
1159
+ .parseAsync(data),
1160
+ responseTransformer: async (data) => await zUploadPhotoResponse.parseAsync(data),
1161
+ security: [
1162
+ {
1163
+ key: "Bearer",
1164
+ scheme: "bearer",
1165
+ type: "http",
1166
+ },
1167
+ ],
1168
+ url: "/v1/trackers/{id}/photos",
1169
+ ...options,
1170
+ headers: {
1171
+ "Content-Type": "image/jpeg",
1172
+ ...options.headers,
1173
+ },
1174
+ });
1175
+ }
1176
+ deleteTrackerPhoto(options) {
1177
+ return (options.client ?? this.client).delete({
1178
+ requestValidator: async (data) => await z
1179
+ .object({
1180
+ body: z.never().optional(),
1181
+ path: zDeleteTrackerPhotoPath,
1182
+ query: z.never().optional(),
1183
+ })
1184
+ .parseAsync(data),
1185
+ responseTransformer: async (data) => await zDeleteTrackerPhotoResponse.parseAsync(data),
1186
+ security: [
1187
+ {
1188
+ key: "Bearer",
1189
+ scheme: "bearer",
1190
+ type: "http",
1191
+ },
1192
+ ],
1193
+ url: "/v1/trackers/{id}/photos/{photoId}",
1194
+ ...options,
1195
+ });
1196
+ }
1197
+ listStaffTrackerPhotos(options) {
1198
+ return (options.client ?? this.client).get({
1199
+ requestValidator: async (data) => await z
1200
+ .object({
1201
+ body: z.never().optional(),
1202
+ path: zListStaffTrackerPhotosPath,
1203
+ query: zListStaffTrackerPhotosQuery.optional(),
1204
+ })
1205
+ .parseAsync(data),
1206
+ responseTransformer: async (data) => await zListStaffTrackerPhotosResponse.parseAsync(data),
1207
+ security: [
1208
+ {
1209
+ key: "Bearer",
1210
+ scheme: "bearer",
1211
+ type: "http",
1212
+ },
1213
+ ],
1214
+ url: "/v1/admin/trackers/{id}/photos",
1215
+ ...options,
1216
+ });
1217
+ }
1218
+ deleteStaffTrackerPhoto(options) {
1219
+ return (options.client ?? this.client).delete({
1220
+ requestValidator: async (data) => await z
1221
+ .object({
1222
+ body: z.never().optional(),
1223
+ path: zDeleteStaffTrackerPhotoPath,
1224
+ query: z.never().optional(),
1225
+ })
1226
+ .parseAsync(data),
1227
+ responseTransformer: async (data) => await zDeleteStaffTrackerPhotoResponse.parseAsync(data),
1228
+ security: [
1229
+ {
1230
+ key: "Bearer",
1231
+ scheme: "bearer",
1232
+ type: "http",
1233
+ },
1234
+ ],
1235
+ url: "/v1/admin/trackers/{id}/photos/{photoId}",
1236
+ ...options,
1237
+ });
1238
+ }
1239
+ listSubscriptions(options) {
1240
+ return (options?.client ?? this.client).get({
1241
+ requestValidator: async (data) => await z
1242
+ .object({
1243
+ body: z.never().optional(),
1244
+ path: z.never().optional(),
1245
+ query: zListSubscriptionsQuery.optional(),
1246
+ })
1247
+ .parseAsync(data),
1248
+ responseTransformer: async (data) => await zListSubscriptionsResponse.parseAsync(data),
1249
+ security: [
1250
+ {
1251
+ key: "Bearer",
1252
+ scheme: "bearer",
1253
+ type: "http",
1254
+ },
1255
+ ],
1256
+ url: "/v1/subscriptions",
1257
+ ...options,
1258
+ });
1259
+ }
1260
+ getSubscription(options) {
1261
+ return (options.client ?? this.client).get({
1262
+ requestValidator: async (data) => await z
1263
+ .object({
1264
+ body: z.never().optional(),
1265
+ path: zGetSubscriptionPath,
1266
+ query: z.never().optional(),
1267
+ })
1268
+ .parseAsync(data),
1269
+ responseTransformer: async (data) => await zGetSubscriptionResponse.parseAsync(data),
1270
+ security: [
1271
+ {
1272
+ key: "Bearer",
1273
+ scheme: "bearer",
1274
+ type: "http",
1275
+ },
1276
+ ],
1277
+ url: "/v1/subscriptions/{id}",
1278
+ ...options,
1279
+ });
1280
+ }
1281
+ setTrackerSubscription(options) {
1282
+ return (options.client ?? this.client).put({
1283
+ requestValidator: async (data) => await z
1284
+ .object({
1285
+ body: zSetTrackerSubscriptionBody,
1286
+ path: zSetTrackerSubscriptionPath,
1287
+ query: z.never().optional(),
1288
+ })
1289
+ .parseAsync(data),
1290
+ responseTransformer: async (data) => await zSetTrackerSubscriptionResponse.parseAsync(data),
1291
+ security: [
1292
+ {
1293
+ key: "Bearer",
1294
+ scheme: "bearer",
1295
+ type: "http",
1296
+ },
1297
+ ],
1298
+ url: "/v1/trackers/{id}/subscription",
1299
+ ...options,
1300
+ headers: {
1301
+ "Content-Type": "application/json",
1302
+ ...options.headers,
1303
+ },
1304
+ });
1305
+ }
1306
+ setStaffTrackerSubscription(options) {
1307
+ return (options.client ?? this.client).put({
1308
+ requestValidator: async (data) => await z
1309
+ .object({
1310
+ body: zSetStaffTrackerSubscriptionBody,
1311
+ path: zSetStaffTrackerSubscriptionPath,
1312
+ query: z.never().optional(),
1313
+ })
1314
+ .parseAsync(data),
1315
+ responseTransformer: async (data) => await zSetStaffTrackerSubscriptionResponse.parseAsync(data),
1316
+ security: [
1317
+ {
1318
+ key: "Bearer",
1319
+ scheme: "bearer",
1320
+ type: "http",
1321
+ },
1322
+ ],
1323
+ url: "/v1/admin/trackers/{id}/subscription",
1324
+ ...options,
1325
+ headers: {
1326
+ "Content-Type": "application/json",
1327
+ ...options.headers,
1328
+ },
1329
+ });
1330
+ }
1331
+ resolveTrackerAwsDevice(options) {
1332
+ return (options.client ?? this.client).get({
1333
+ requestValidator: async (data) => await z
1334
+ .object({
1335
+ body: z.never().optional(),
1336
+ path: zResolveTrackerAwsDevicePath,
1337
+ query: z.never().optional(),
1338
+ })
1339
+ .parseAsync(data),
1340
+ responseTransformer: async (data) => await zResolveTrackerAwsDeviceResponse.parseAsync(data),
1341
+ security: [
1342
+ {
1343
+ key: "Bearer",
1344
+ scheme: "bearer",
1345
+ type: "http",
1346
+ },
1347
+ ],
1348
+ url: "/v1/admin/trackers/{id}/aws-device",
1349
+ ...options,
1350
+ });
1351
+ }
1352
+ uploadBatteryFirmware(options) {
1353
+ return (options.client ?? this.client).post({
1354
+ bodySerializer: null,
1355
+ requestValidator: async (data) => await z
1356
+ .object({
1357
+ body: zUploadBatteryFirmwareBody,
1358
+ path: zUploadBatteryFirmwarePath,
1359
+ query: zUploadBatteryFirmwareQuery,
1360
+ })
1361
+ .parseAsync(data),
1362
+ responseTransformer: async (data) => await zUploadBatteryFirmwareResponse.parseAsync(data),
1363
+ security: [
1364
+ {
1365
+ key: "Bearer",
1366
+ scheme: "bearer",
1367
+ type: "http",
1368
+ },
1369
+ ],
1370
+ url: "/v1/admin/aws/devices/{id}/battery-firmware",
1371
+ ...options,
1372
+ headers: {
1373
+ "Content-Type": "application/octet-stream",
1374
+ ...options.headers,
1375
+ },
1376
+ });
1377
+ }
1378
+ getAwsSchema(options) {
1379
+ return (options.client ?? this.client).get({
1380
+ requestValidator: async (data) => await z
1381
+ .object({
1382
+ body: z.never().optional(),
1383
+ path: zGetAwsSchemaPath,
1384
+ query: z.never().optional(),
1385
+ })
1386
+ .parseAsync(data),
1387
+ responseTransformer: async (data) => await zGetAwsSchemaResponse.parseAsync(data),
1388
+ security: [
1389
+ {
1390
+ key: "Bearer",
1391
+ scheme: "bearer",
1392
+ type: "http",
1393
+ },
1394
+ ],
1395
+ url: "/v1/admin/aws/schemas/{name}",
1396
+ ...options,
1397
+ });
1398
+ }
1399
+ getAwsCommandCatalog(options) {
1400
+ return (options?.client ?? this.client).get({
1401
+ requestValidator: async (data) => await z
1402
+ .object({
1403
+ body: z.never().optional(),
1404
+ path: z.never().optional(),
1405
+ query: z.never().optional(),
1406
+ })
1407
+ .parseAsync(data),
1408
+ responseTransformer: async (data) => await zGetAwsCommandCatalogResponse.parseAsync(data),
1409
+ security: [
1410
+ {
1411
+ key: "Bearer",
1412
+ scheme: "bearer",
1413
+ type: "http",
1414
+ },
1415
+ ],
1416
+ url: "/v1/admin/aws/command-catalog",
1417
+ ...options,
1418
+ });
1419
+ }
1420
+ getAwsDeviceIdentity(options) {
1421
+ return (options.client ?? this.client).get({
1422
+ requestValidator: async (data) => await z
1423
+ .object({
1424
+ body: z.never().optional(),
1425
+ path: zGetAwsDeviceIdentityPath,
1426
+ query: z.never().optional(),
1427
+ })
1428
+ .parseAsync(data),
1429
+ responseTransformer: async (data) => await zGetAwsDeviceIdentityResponse.parseAsync(data),
1430
+ security: [
1431
+ {
1432
+ key: "Bearer",
1433
+ scheme: "bearer",
1434
+ type: "http",
1435
+ },
1436
+ ],
1437
+ url: "/v1/admin/aws/device-identities/{identifier}",
1438
+ ...options,
1439
+ });
1440
+ }
1441
+ getAwsDeviceConnectivity(options) {
1442
+ return (options.client ?? this.client).get({
1443
+ requestValidator: async (data) => await z
1444
+ .object({
1445
+ body: z.never().optional(),
1446
+ path: zGetAwsDeviceConnectivityPath,
1447
+ query: z.never().optional(),
1448
+ })
1449
+ .parseAsync(data),
1450
+ responseTransformer: async (data) => await zGetAwsDeviceConnectivityResponse.parseAsync(data),
1451
+ security: [
1452
+ {
1453
+ key: "Bearer",
1454
+ scheme: "bearer",
1455
+ type: "http",
1456
+ },
1457
+ ],
1458
+ url: "/v1/admin/aws/devices/{id}/connectivity",
1459
+ ...options,
1460
+ });
1461
+ }
1462
+ getAwsDeviceCommandCapabilities(options) {
1463
+ return (options.client ?? this.client).get({
1464
+ requestValidator: async (data) => await z
1465
+ .object({
1466
+ body: z.never().optional(),
1467
+ path: zGetAwsDeviceCommandCapabilitiesPath,
1468
+ query: z.never().optional(),
1469
+ })
1470
+ .parseAsync(data),
1471
+ responseTransformer: async (data) => await zGetAwsDeviceCommandCapabilitiesResponse.parseAsync(data),
1472
+ security: [
1473
+ {
1474
+ key: "Bearer",
1475
+ scheme: "bearer",
1476
+ type: "http",
1477
+ },
1478
+ ],
1479
+ url: "/v1/admin/aws/devices/{id}/command-capabilities",
1480
+ ...options,
1481
+ });
1482
+ }
1483
+ listAwsDeviceObservations(options) {
1484
+ return (options.client ?? this.client).get({
1485
+ requestValidator: async (data) => await z
1486
+ .object({
1487
+ body: z.never().optional(),
1488
+ path: zListAwsDeviceObservationsPath,
1489
+ query: zListAwsDeviceObservationsQuery,
1490
+ })
1491
+ .parseAsync(data),
1492
+ responseTransformer: async (data) => await zListAwsDeviceObservationsResponse.parseAsync(data),
1493
+ security: [
1494
+ {
1495
+ key: "Bearer",
1496
+ scheme: "bearer",
1497
+ type: "http",
1498
+ },
1499
+ ],
1500
+ url: "/v1/admin/aws/devices/{id}/observations",
1501
+ ...options,
1502
+ });
1503
+ }
1504
+ getAwsDeviceObservation(options) {
1505
+ return (options.client ?? this.client).get({
1506
+ requestValidator: async (data) => await z
1507
+ .object({
1508
+ body: z.never().optional(),
1509
+ path: zGetAwsDeviceObservationPath,
1510
+ query: z.never().optional(),
1511
+ })
1512
+ .parseAsync(data),
1513
+ responseTransformer: async (data) => await zGetAwsDeviceObservationResponse.parseAsync(data),
1514
+ security: [
1515
+ {
1516
+ key: "Bearer",
1517
+ scheme: "bearer",
1518
+ type: "http",
1519
+ },
1520
+ ],
1521
+ url: "/v1/admin/aws/devices/{id}/observations/{observationId}",
1522
+ ...options,
1523
+ });
1524
+ }
1525
+ readAwsObservations(options) {
1526
+ return (options.client ?? this.client).post({
1527
+ requestValidator: async (data) => await z
1528
+ .object({
1529
+ body: zReadAwsObservationsBody,
1530
+ path: zReadAwsObservationsPath,
1531
+ query: z.never().optional(),
1532
+ })
1533
+ .parseAsync(data),
1534
+ responseTransformer: async (data) => await zReadAwsObservationsResponse.parseAsync(data),
1535
+ security: [
1536
+ {
1537
+ key: "Bearer",
1538
+ scheme: "bearer",
1539
+ type: "http",
1540
+ },
1541
+ ],
1542
+ url: "/v1/admin/aws/devices/{id}/observations/query",
1543
+ ...options,
1544
+ headers: {
1545
+ "Content-Type": "application/json",
1546
+ ...options.headers,
1547
+ },
1548
+ });
1549
+ }
1550
+ getAwsSettings(options) {
1551
+ return (options.client ?? this.client).get({
1552
+ requestValidator: async (data) => await z
1553
+ .object({
1554
+ body: z.never().optional(),
1555
+ path: zGetAwsSettingsPath,
1556
+ query: z.never().optional(),
1557
+ })
1558
+ .parseAsync(data),
1559
+ responseTransformer: async (data) => await zGetAwsSettingsResponse.parseAsync(data),
1560
+ security: [
1561
+ {
1562
+ key: "Bearer",
1563
+ scheme: "bearer",
1564
+ type: "http",
1565
+ },
1566
+ ],
1567
+ url: "/v1/admin/aws/devices/{id}/settings",
1568
+ ...options,
1569
+ });
1570
+ }
1571
+ updateAwsSettings(options) {
1572
+ return (options.client ?? this.client).patch({
1573
+ requestValidator: async (data) => await z
1574
+ .object({
1575
+ body: zUpdateAwsSettingsBody,
1576
+ path: zUpdateAwsSettingsPath,
1577
+ query: z.never().optional(),
1578
+ })
1579
+ .parseAsync(data),
1580
+ responseTransformer: async (data) => await zUpdateAwsSettingsResponse.parseAsync(data),
1581
+ security: [
1582
+ {
1583
+ key: "Bearer",
1584
+ scheme: "bearer",
1585
+ type: "http",
1586
+ },
1587
+ ],
1588
+ url: "/v1/admin/aws/devices/{id}/settings",
1589
+ ...options,
1590
+ headers: {
1591
+ "Content-Type": "application/json",
1592
+ ...options.headers,
1593
+ },
1594
+ });
1595
+ }
1596
+ listAwsCommands(options) {
1597
+ return (options.client ?? this.client).get({
1598
+ requestValidator: async (data) => await z
1599
+ .object({
1600
+ body: z.never().optional(),
1601
+ path: zListAwsCommandsPath,
1602
+ query: zListAwsCommandsQuery.optional(),
1603
+ })
1604
+ .parseAsync(data),
1605
+ responseTransformer: async (data) => await zListAwsCommandsResponse.parseAsync(data),
1606
+ security: [
1607
+ {
1608
+ key: "Bearer",
1609
+ scheme: "bearer",
1610
+ type: "http",
1611
+ },
1612
+ ],
1613
+ url: "/v1/admin/aws/devices/{id}/commands",
1614
+ ...options,
1615
+ });
1616
+ }
1617
+ sendAwsCommand(options) {
1618
+ return (options.client ?? this.client).post({
1619
+ requestValidator: async (data) => await z
1620
+ .object({
1621
+ body: zSendAwsCommandBody,
1622
+ path: zSendAwsCommandPath,
1623
+ query: z.never().optional(),
1624
+ })
1625
+ .parseAsync(data),
1626
+ responseTransformer: async (data) => await zSendAwsCommandResponse.parseAsync(data),
1627
+ security: [
1628
+ {
1629
+ key: "Bearer",
1630
+ scheme: "bearer",
1631
+ type: "http",
1632
+ },
1633
+ ],
1634
+ url: "/v1/admin/aws/devices/{id}/commands",
1635
+ ...options,
1636
+ headers: {
1637
+ "Content-Type": "application/json",
1638
+ ...options.headers,
1639
+ },
1640
+ });
1641
+ }
1642
+ getAwsCommand(options) {
1643
+ return (options.client ?? this.client).get({
1644
+ requestValidator: async (data) => await z
1645
+ .object({
1646
+ body: z.never().optional(),
1647
+ path: zGetAwsCommandPath,
1648
+ query: z.never().optional(),
1649
+ })
1650
+ .parseAsync(data),
1651
+ responseTransformer: async (data) => await zGetAwsCommandResponse.parseAsync(data),
1652
+ security: [
1653
+ {
1654
+ key: "Bearer",
1655
+ scheme: "bearer",
1656
+ type: "http",
1657
+ },
1658
+ ],
1659
+ url: "/v1/admin/aws/devices/{id}/commands/{requestId}",
1660
+ ...options,
1661
+ });
1662
+ }
1663
+ getAwsCommandOperation(options) {
1664
+ return (options.client ?? this.client).get({
1665
+ requestValidator: async (data) => await z
1666
+ .object({
1667
+ body: z.never().optional(),
1668
+ path: zGetAwsCommandOperationPath,
1669
+ query: z.never().optional(),
1670
+ })
1671
+ .parseAsync(data),
1672
+ responseTransformer: async (data) => await zGetAwsCommandOperationResponse.parseAsync(data),
1673
+ security: [
1674
+ {
1675
+ key: "Bearer",
1676
+ scheme: "bearer",
1677
+ type: "http",
1678
+ },
1679
+ ],
1680
+ url: "/v1/admin/aws/devices/{id}/commands/operations/{operationId}",
1681
+ ...options,
1682
+ });
1683
+ }
1684
+ listAwsFirmwareReleases(options) {
1685
+ return (options.client ?? this.client).get({
1686
+ requestValidator: async (data) => await z
1687
+ .object({
1688
+ body: z.never().optional(),
1689
+ path: zListAwsFirmwareReleasesPath,
1690
+ query: z.never().optional(),
1691
+ })
1692
+ .parseAsync(data),
1693
+ responseTransformer: async (data) => await zListAwsFirmwareReleasesResponse.parseAsync(data),
1694
+ security: [
1695
+ {
1696
+ key: "Bearer",
1697
+ scheme: "bearer",
1698
+ type: "http",
1699
+ },
1700
+ ],
1701
+ url: "/v1/admin/aws/devices/{id}/firmware/releases",
1702
+ ...options,
1703
+ });
1704
+ }
1705
+ getActiveAwsFirmware(options) {
1706
+ return (options.client ?? this.client).get({
1707
+ requestValidator: async (data) => await z
1708
+ .object({
1709
+ body: z.never().optional(),
1710
+ path: zGetActiveAwsFirmwarePath,
1711
+ query: z.never().optional(),
1712
+ })
1713
+ .parseAsync(data),
1714
+ responseTransformer: async (data) => await zGetActiveAwsFirmwareResponse.parseAsync(data),
1715
+ security: [
1716
+ {
1717
+ key: "Bearer",
1718
+ scheme: "bearer",
1719
+ type: "http",
1720
+ },
1721
+ ],
1722
+ url: "/v1/admin/aws/devices/{id}/firmware/updates/active",
1723
+ ...options,
1724
+ });
1725
+ }
1726
+ requestAwsFirmware(options) {
1727
+ return (options.client ?? this.client).post({
1728
+ requestValidator: async (data) => await z
1729
+ .object({
1730
+ body: zRequestAwsFirmwareBody,
1731
+ path: zRequestAwsFirmwarePath,
1732
+ query: z.never().optional(),
1733
+ })
1734
+ .parseAsync(data),
1735
+ responseTransformer: async (data) => await zRequestAwsFirmwareResponse.parseAsync(data),
1736
+ security: [
1737
+ {
1738
+ key: "Bearer",
1739
+ scheme: "bearer",
1740
+ type: "http",
1741
+ },
1742
+ ],
1743
+ url: "/v1/admin/aws/devices/{id}/firmware/updates",
1744
+ ...options,
1745
+ headers: {
1746
+ "Content-Type": "application/json",
1747
+ ...options.headers,
1748
+ },
1749
+ });
1750
+ }
1751
+ getAwsFirmwareOperation(options) {
1752
+ return (options.client ?? this.client).get({
1753
+ requestValidator: async (data) => await z
1754
+ .object({
1755
+ body: z.never().optional(),
1756
+ path: zGetAwsFirmwareOperationPath,
1757
+ query: z.never().optional(),
1758
+ })
1759
+ .parseAsync(data),
1760
+ responseTransformer: async (data) => await zGetAwsFirmwareOperationResponse.parseAsync(data),
1761
+ security: [
1762
+ {
1763
+ key: "Bearer",
1764
+ scheme: "bearer",
1765
+ type: "http",
1766
+ },
1767
+ ],
1768
+ url: "/v1/admin/aws/devices/{id}/firmware/updates/{updateId}",
1769
+ ...options,
1770
+ });
1771
+ }
1772
+ cancelAwsFirmware(options) {
1773
+ return (options.client ?? this.client).post({
1774
+ requestValidator: async (data) => await z
1775
+ .object({
1776
+ body: zCancelAwsFirmwareBody,
1777
+ path: zCancelAwsFirmwarePath,
1778
+ query: z.never().optional(),
1779
+ })
1780
+ .parseAsync(data),
1781
+ responseTransformer: async (data) => await zCancelAwsFirmwareResponse.parseAsync(data),
1782
+ security: [
1783
+ {
1784
+ key: "Bearer",
1785
+ scheme: "bearer",
1786
+ type: "http",
1787
+ },
1788
+ ],
1789
+ url: "/v1/admin/aws/devices/{id}/firmware/updates/{updateId}/cancellation",
1790
+ ...options,
1791
+ headers: {
1792
+ "Content-Type": "application/json",
1793
+ ...options.headers,
1794
+ },
1795
+ });
1796
+ }
1797
+ listStaffSubscriptions(options) {
1798
+ return (options?.client ?? this.client).get({
1799
+ requestValidator: async (data) => await z
1800
+ .object({
1801
+ body: z.never().optional(),
1802
+ path: z.never().optional(),
1803
+ query: zListStaffSubscriptionsQuery.optional(),
1804
+ })
1805
+ .parseAsync(data),
1806
+ responseTransformer: async (data) => await zListStaffSubscriptionsResponse.parseAsync(data),
1807
+ security: [
1808
+ {
1809
+ key: "Bearer",
1810
+ scheme: "bearer",
1811
+ type: "http",
1812
+ },
1813
+ ],
1814
+ url: "/v1/admin/subscriptions",
1815
+ ...options,
1816
+ });
1817
+ }
1818
+ getStaffSubscription(options) {
1819
+ return (options.client ?? this.client).get({
1820
+ requestValidator: async (data) => await z
1821
+ .object({
1822
+ body: z.never().optional(),
1823
+ path: zGetStaffSubscriptionPath,
1824
+ query: z.never().optional(),
1825
+ })
1826
+ .parseAsync(data),
1827
+ responseTransformer: async (data) => await zGetStaffSubscriptionResponse.parseAsync(data),
1828
+ security: [
1829
+ {
1830
+ key: "Bearer",
1831
+ scheme: "bearer",
1832
+ type: "http",
1833
+ },
1834
+ ],
1835
+ url: "/v1/admin/subscriptions/{id}",
1836
+ ...options,
1837
+ });
1838
+ }
1839
+ getNativeInsuranceJournal(options) {
1840
+ return (options.client ?? this.client).get({
1841
+ requestValidator: async (data) => await z
1842
+ .object({
1843
+ body: z.never().optional(),
1844
+ path: zGetNativeInsuranceJournalPath,
1845
+ query: z.never().optional(),
1846
+ })
1847
+ .parseAsync(data),
1848
+ responseTransformer: async (data) => await zGetNativeInsuranceJournalResponse.parseAsync(data),
1849
+ security: [
1850
+ {
1851
+ key: "Bearer",
1852
+ scheme: "bearer",
1853
+ type: "http",
1854
+ },
1855
+ ],
1856
+ url: "/v1/admin/subscriptions/{id}/insurance",
1857
+ ...options,
1858
+ });
1859
+ }
1860
+ listInsuranceContracts(options) {
1861
+ return (options.client ?? this.client).get({
1862
+ requestValidator: async (data) => await z
1863
+ .object({
1864
+ body: z.never().optional(),
1865
+ path: zListInsuranceContractsPath,
1866
+ query: zListInsuranceContractsQuery.optional(),
1867
+ })
1868
+ .parseAsync(data),
1869
+ responseTransformer: async (data) => await zListInsuranceContractsResponse.parseAsync(data),
1870
+ security: [
1871
+ {
1872
+ key: "Bearer",
1873
+ scheme: "bearer",
1874
+ type: "http",
1875
+ },
1876
+ ],
1877
+ url: "/v1/admin/subscriptions/{id}/insurance/contracts",
1878
+ ...options,
1879
+ });
1880
+ }
1881
+ getInsuranceContract(options) {
1882
+ return (options.client ?? this.client).get({
1883
+ requestValidator: async (data) => await z
1884
+ .object({
1885
+ body: z.never().optional(),
1886
+ path: zGetInsuranceContractPath,
1887
+ query: zGetInsuranceContractQuery.optional(),
1888
+ })
1889
+ .parseAsync(data),
1890
+ responseTransformer: async (data) => await zGetInsuranceContractResponse.parseAsync(data),
1891
+ security: [
1892
+ {
1893
+ key: "Bearer",
1894
+ scheme: "bearer",
1895
+ type: "http",
1896
+ },
1897
+ ],
1898
+ url: "/v1/admin/subscriptions/{id}/insurance/contracts/{contractId}",
1899
+ ...options,
1900
+ });
1901
+ }
1902
+ listInsuranceAttempts(options) {
1903
+ return (options.client ?? this.client).get({
1904
+ requestValidator: async (data) => await z
1905
+ .object({
1906
+ body: z.never().optional(),
1907
+ path: zListInsuranceAttemptsPath,
1908
+ query: zListInsuranceAttemptsQuery.optional(),
1909
+ })
1910
+ .parseAsync(data),
1911
+ responseTransformer: async (data) => await zListInsuranceAttemptsResponse.parseAsync(data),
1912
+ security: [
1913
+ {
1914
+ key: "Bearer",
1915
+ scheme: "bearer",
1916
+ type: "http",
1917
+ },
1918
+ ],
1919
+ url: "/v1/admin/subscriptions/{id}/insurance/attempts",
1920
+ ...options,
1921
+ });
1922
+ }
1923
+ requestSubscriptionInsurance(options) {
1924
+ return (options.client ?? this.client).post({
1925
+ requestValidator: async (data) => await z
1926
+ .object({
1927
+ body: zRequestSubscriptionInsuranceBody,
1928
+ path: zRequestSubscriptionInsurancePath,
1929
+ query: z.never().optional(),
1930
+ })
1931
+ .parseAsync(data),
1932
+ responseTransformer: async (data) => await zRequestSubscriptionInsuranceResponse.parseAsync(data),
1933
+ security: [
1934
+ {
1935
+ key: "Bearer",
1936
+ scheme: "bearer",
1937
+ type: "http",
1938
+ },
1939
+ ],
1940
+ url: "/v1/admin/subscriptions/{id}/insurance-requests",
1941
+ ...options,
1942
+ headers: {
1943
+ "Content-Type": "application/json",
1944
+ ...options.headers,
1945
+ },
1946
+ });
1947
+ }
1948
+ refreshSubscription(options) {
1949
+ return (options.client ?? this.client).post({
1950
+ requestValidator: async (data) => await z
1951
+ .object({
1952
+ body: zRefreshSubscriptionBody,
1953
+ path: zRefreshSubscriptionPath,
1954
+ query: z.never().optional(),
1955
+ })
1956
+ .parseAsync(data),
1957
+ responseTransformer: async (data) => await zRefreshSubscriptionResponse.parseAsync(data),
1958
+ security: [
1959
+ {
1960
+ key: "Bearer",
1961
+ scheme: "bearer",
1962
+ type: "http",
1963
+ },
1964
+ ],
1965
+ url: "/v1/admin/subscriptions/{id}/refresh-requests",
1966
+ ...options,
1967
+ headers: {
1968
+ "Content-Type": "application/json",
1969
+ ...options.headers,
1970
+ },
1971
+ });
1972
+ }
1973
+ requestAccountInsurance(options) {
1974
+ return (options.client ?? this.client).post({
1975
+ requestValidator: async (data) => await z
1976
+ .object({
1977
+ body: zRequestAccountInsuranceBody,
1978
+ path: zRequestAccountInsurancePath,
1979
+ query: z.never().optional(),
1980
+ })
1981
+ .parseAsync(data),
1982
+ responseTransformer: async (data) => await zRequestAccountInsuranceResponse.parseAsync(data),
1983
+ security: [
1984
+ {
1985
+ key: "Bearer",
1986
+ scheme: "bearer",
1987
+ type: "http",
1988
+ },
1989
+ ],
1990
+ url: "/v1/admin/accounts/{uid}/insurance-requests",
1991
+ ...options,
1992
+ headers: {
1993
+ "Content-Type": "application/json",
1994
+ ...options.headers,
1995
+ },
1996
+ });
1997
+ }
1998
+ requestTrackerInsurance(options) {
1999
+ return (options.client ?? this.client).post({
2000
+ requestValidator: async (data) => await z
2001
+ .object({
2002
+ body: zRequestTrackerInsuranceBody,
2003
+ path: zRequestTrackerInsurancePath,
2004
+ query: z.never().optional(),
2005
+ })
2006
+ .parseAsync(data),
2007
+ responseTransformer: async (data) => await zRequestTrackerInsuranceResponse.parseAsync(data),
2008
+ security: [
2009
+ {
2010
+ key: "Bearer",
2011
+ scheme: "bearer",
2012
+ type: "http",
2013
+ },
2014
+ ],
2015
+ url: "/v1/admin/trackers/{id}/insurance-requests",
2016
+ ...options,
2017
+ headers: {
2018
+ "Content-Type": "application/json",
2019
+ ...options.headers,
2020
+ },
2021
+ });
2022
+ }
2023
+ reconcileTrackerSubscription(options) {
2024
+ return (options.client ?? this.client).post({
2025
+ requestValidator: async (data) => await z
2026
+ .object({
2027
+ body: zReconcileTrackerSubscriptionBody,
2028
+ path: zReconcileTrackerSubscriptionPath,
2029
+ query: z.never().optional(),
2030
+ })
2031
+ .parseAsync(data),
2032
+ responseTransformer: async (data) => await zReconcileTrackerSubscriptionResponse.parseAsync(data),
2033
+ security: [
2034
+ {
2035
+ key: "Bearer",
2036
+ scheme: "bearer",
2037
+ type: "http",
2038
+ },
2039
+ ],
2040
+ url: "/v1/admin/trackers/{id}/subscription/reconciliation-requests",
2041
+ ...options,
2042
+ headers: {
2043
+ "Content-Type": "application/json",
2044
+ ...options.headers,
2045
+ },
2046
+ });
2047
+ }
2048
+ getBillingOperation(options) {
2049
+ return (options.client ?? this.client).get({
2050
+ requestValidator: async (data) => await z
2051
+ .object({
2052
+ body: z.never().optional(),
2053
+ path: zGetBillingOperationPath,
2054
+ query: z.never().optional(),
2055
+ })
2056
+ .parseAsync(data),
2057
+ responseTransformer: async (data) => await zGetBillingOperationResponse.parseAsync(data),
2058
+ security: [
2059
+ {
2060
+ key: "Bearer",
2061
+ scheme: "bearer",
2062
+ type: "http",
2063
+ },
2064
+ ],
2065
+ url: "/v1/admin/billing/operations/{operationId}",
2066
+ ...options,
2067
+ });
2068
+ }
2069
+ acceptShopifySubscription(options) {
2070
+ return (options.client ?? this.client).post({
2071
+ requestValidator: async (data) => await z
2072
+ .object({
2073
+ body: zAcceptShopifySubscriptionBody,
2074
+ path: z.never().optional(),
2075
+ query: z.never().optional(),
2076
+ })
2077
+ .parseAsync(data),
2078
+ responseTransformer: async (data) => await zAcceptShopifySubscriptionResponse.parseAsync(data),
2079
+ security: [
2080
+ {
2081
+ key: "ShopifyFlow",
2082
+ scheme: "bearer",
2083
+ type: "http",
2084
+ },
2085
+ ],
2086
+ url: "/v1/automation/shopify/subscriptions",
2087
+ ...options,
2088
+ headers: {
2089
+ "Content-Type": "application/json",
2090
+ ...options.headers,
2091
+ },
2092
+ });
2093
+ }
2094
+ acceptWooSubscription(options) {
2095
+ return (options.client ?? this.client).post({
2096
+ requestValidator: async (data) => await z
2097
+ .object({
2098
+ body: zAcceptWooSubscriptionBody,
2099
+ path: z.never().optional(),
2100
+ query: z.never().optional(),
2101
+ })
2102
+ .parseAsync(data),
2103
+ responseTransformer: async (data) => await zAcceptWooSubscriptionResponse.parseAsync(data),
2104
+ security: [{ name: "X-WC-Webhook-Signature", type: "apiKey" }],
2105
+ url: "/v1/automation/woocommerce/subscriptions",
2106
+ ...options,
2107
+ headers: {
2108
+ "Content-Type": "application/json",
2109
+ ...options.headers,
2110
+ },
2111
+ });
2112
+ }
2113
+ acceptWooPaidOrder(options) {
2114
+ return (options.client ?? this.client).post({
2115
+ requestValidator: async (data) => await z
2116
+ .object({
2117
+ body: zAcceptWooPaidOrderBody,
2118
+ path: z.never().optional(),
2119
+ query: z.never().optional(),
2120
+ })
2121
+ .parseAsync(data),
2122
+ responseTransformer: async (data) => await zAcceptWooPaidOrderResponse.parseAsync(data),
2123
+ security: [{ name: "X-WC-Webhook-Signature", type: "apiKey" }],
2124
+ url: "/v1/automation/woocommerce/paid-orders",
2125
+ ...options,
2126
+ headers: {
2127
+ "Content-Type": "application/json",
2128
+ ...options.headers,
2129
+ },
2130
+ });
2131
+ }
2132
+ }