@seamapi/http 1.55.0 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +0 -415
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3 -135
- package/dist/index.cjs +0 -419
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/index.d.ts +0 -2
- package/lib/seam/connect/routes/index.js +0 -2
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +2 -11
- package/lib/seam/connect/routes/seam-http-endpoints.js +0 -84
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +0 -4
- package/lib/seam/connect/routes/seam-http.js +0 -8
- package/lib/seam/connect/routes/seam-http.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +0 -12
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.js +0 -3
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/index.ts +0 -2
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -180
- package/src/lib/seam/connect/routes/seam-http.ts +0 -10
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +0 -20
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +0 -5
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/unstable-access-grants/index.d.ts +0 -1
- package/lib/seam/connect/routes/unstable-access-grants/index.js +0 -6
- package/lib/seam/connect/routes/unstable-access-grants/index.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.d.ts +0 -73
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js +0 -138
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/index.d.ts +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/index.js +0 -6
- package/lib/seam/connect/routes/unstable-access-methods/index.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.d.ts +0 -60
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js +0 -126
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js.map +0 -1
- package/src/lib/seam/connect/routes/unstable-access-grants/index.ts +0 -6
- package/src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts +0 -333
- package/src/lib/seam/connect/routes/unstable-access-methods/index.ts +0 -6
- package/src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts +0 -295
|
@@ -707,33 +707,6 @@ import {
|
|
|
707
707
|
type ThermostatsSimulateTemperatureReachedParameters,
|
|
708
708
|
type ThermostatsSimulateTemperatureReachedRequest,
|
|
709
709
|
} from './thermostats/simulate/index.js'
|
|
710
|
-
import {
|
|
711
|
-
SeamHttpUnstableAccessGrants,
|
|
712
|
-
type UnstableAccessGrantsCreateOptions,
|
|
713
|
-
type UnstableAccessGrantsCreateParameters,
|
|
714
|
-
type UnstableAccessGrantsCreateRequest,
|
|
715
|
-
type UnstableAccessGrantsDeleteOptions,
|
|
716
|
-
type UnstableAccessGrantsDeleteParameters,
|
|
717
|
-
type UnstableAccessGrantsDeleteRequest,
|
|
718
|
-
type UnstableAccessGrantsGetOptions,
|
|
719
|
-
type UnstableAccessGrantsGetParameters,
|
|
720
|
-
type UnstableAccessGrantsGetRequest,
|
|
721
|
-
type UnstableAccessGrantsListOptions,
|
|
722
|
-
type UnstableAccessGrantsListParameters,
|
|
723
|
-
type UnstableAccessGrantsListRequest,
|
|
724
|
-
} from './unstable-access-grants/index.js'
|
|
725
|
-
import {
|
|
726
|
-
SeamHttpUnstableAccessMethods,
|
|
727
|
-
type UnstableAccessMethodsDeleteOptions,
|
|
728
|
-
type UnstableAccessMethodsDeleteParameters,
|
|
729
|
-
type UnstableAccessMethodsDeleteRequest,
|
|
730
|
-
type UnstableAccessMethodsGetOptions,
|
|
731
|
-
type UnstableAccessMethodsGetParameters,
|
|
732
|
-
type UnstableAccessMethodsGetRequest,
|
|
733
|
-
type UnstableAccessMethodsListOptions,
|
|
734
|
-
type UnstableAccessMethodsListParameters,
|
|
735
|
-
type UnstableAccessMethodsListRequest,
|
|
736
|
-
} from './unstable-access-methods/index.js'
|
|
737
710
|
import {
|
|
738
711
|
SeamHttpUnstableLocations,
|
|
739
712
|
type UnstableLocationsAddAcsEntrancesOptions,
|
|
@@ -3347,11 +3320,6 @@ export class SeamHttpEndpoints {
|
|
|
3347
3320
|
options?: ThermostatsUpdateWeeklyProgramOptions,
|
|
3348
3321
|
) => ThermostatsUpdateWeeklyProgramRequest {
|
|
3349
3322
|
const { client, defaults } = this
|
|
3350
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3351
|
-
throw new Error(
|
|
3352
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3353
|
-
)
|
|
3354
|
-
}
|
|
3355
3323
|
return function thermostatsUpdateWeeklyProgram(
|
|
3356
3324
|
...args: Parameters<SeamHttpThermostats['updateWeeklyProgram']>
|
|
3357
3325
|
): ReturnType<SeamHttpThermostats['updateWeeklyProgram']> {
|
|
@@ -3365,11 +3333,6 @@ export class SeamHttpEndpoints {
|
|
|
3365
3333
|
options?: ThermostatsDailyProgramsCreateOptions,
|
|
3366
3334
|
) => ThermostatsDailyProgramsCreateRequest {
|
|
3367
3335
|
const { client, defaults } = this
|
|
3368
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3369
|
-
throw new Error(
|
|
3370
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3371
|
-
)
|
|
3372
|
-
}
|
|
3373
3336
|
return function thermostatsDailyProgramsCreate(
|
|
3374
3337
|
...args: Parameters<SeamHttpThermostatsDailyPrograms['create']>
|
|
3375
3338
|
): ReturnType<SeamHttpThermostatsDailyPrograms['create']> {
|
|
@@ -3383,11 +3346,6 @@ export class SeamHttpEndpoints {
|
|
|
3383
3346
|
options?: ThermostatsDailyProgramsDeleteOptions,
|
|
3384
3347
|
) => ThermostatsDailyProgramsDeleteRequest {
|
|
3385
3348
|
const { client, defaults } = this
|
|
3386
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3387
|
-
throw new Error(
|
|
3388
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3389
|
-
)
|
|
3390
|
-
}
|
|
3391
3349
|
return function thermostatsDailyProgramsDelete(
|
|
3392
3350
|
...args: Parameters<SeamHttpThermostatsDailyPrograms['delete']>
|
|
3393
3351
|
): ReturnType<SeamHttpThermostatsDailyPrograms['delete']> {
|
|
@@ -3401,11 +3359,6 @@ export class SeamHttpEndpoints {
|
|
|
3401
3359
|
options?: ThermostatsDailyProgramsUpdateOptions,
|
|
3402
3360
|
) => ThermostatsDailyProgramsUpdateRequest {
|
|
3403
3361
|
const { client, defaults } = this
|
|
3404
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3405
|
-
throw new Error(
|
|
3406
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3407
|
-
)
|
|
3408
|
-
}
|
|
3409
3362
|
return function thermostatsDailyProgramsUpdate(
|
|
3410
3363
|
...args: Parameters<SeamHttpThermostatsDailyPrograms['update']>
|
|
3411
3364
|
): ReturnType<SeamHttpThermostatsDailyPrograms['update']> {
|
|
@@ -3505,132 +3458,6 @@ export class SeamHttpEndpoints {
|
|
|
3505
3458
|
}
|
|
3506
3459
|
}
|
|
3507
3460
|
|
|
3508
|
-
get ['/unstable_access_grants/create'](): (
|
|
3509
|
-
parameters?: UnstableAccessGrantsCreateParameters,
|
|
3510
|
-
options?: UnstableAccessGrantsCreateOptions,
|
|
3511
|
-
) => UnstableAccessGrantsCreateRequest {
|
|
3512
|
-
const { client, defaults } = this
|
|
3513
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3514
|
-
throw new Error(
|
|
3515
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3516
|
-
)
|
|
3517
|
-
}
|
|
3518
|
-
return function unstableAccessGrantsCreate(
|
|
3519
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['create']>
|
|
3520
|
-
): ReturnType<SeamHttpUnstableAccessGrants['create']> {
|
|
3521
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3522
|
-
return seam.create(...args)
|
|
3523
|
-
}
|
|
3524
|
-
}
|
|
3525
|
-
|
|
3526
|
-
get ['/unstable_access_grants/delete'](): (
|
|
3527
|
-
parameters?: UnstableAccessGrantsDeleteParameters,
|
|
3528
|
-
options?: UnstableAccessGrantsDeleteOptions,
|
|
3529
|
-
) => UnstableAccessGrantsDeleteRequest {
|
|
3530
|
-
const { client, defaults } = this
|
|
3531
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3532
|
-
throw new Error(
|
|
3533
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3534
|
-
)
|
|
3535
|
-
}
|
|
3536
|
-
return function unstableAccessGrantsDelete(
|
|
3537
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['delete']>
|
|
3538
|
-
): ReturnType<SeamHttpUnstableAccessGrants['delete']> {
|
|
3539
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3540
|
-
return seam.delete(...args)
|
|
3541
|
-
}
|
|
3542
|
-
}
|
|
3543
|
-
|
|
3544
|
-
get ['/unstable_access_grants/get'](): (
|
|
3545
|
-
parameters?: UnstableAccessGrantsGetParameters,
|
|
3546
|
-
options?: UnstableAccessGrantsGetOptions,
|
|
3547
|
-
) => UnstableAccessGrantsGetRequest {
|
|
3548
|
-
const { client, defaults } = this
|
|
3549
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3550
|
-
throw new Error(
|
|
3551
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3552
|
-
)
|
|
3553
|
-
}
|
|
3554
|
-
return function unstableAccessGrantsGet(
|
|
3555
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['get']>
|
|
3556
|
-
): ReturnType<SeamHttpUnstableAccessGrants['get']> {
|
|
3557
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3558
|
-
return seam.get(...args)
|
|
3559
|
-
}
|
|
3560
|
-
}
|
|
3561
|
-
|
|
3562
|
-
get ['/unstable_access_grants/list'](): (
|
|
3563
|
-
parameters?: UnstableAccessGrantsListParameters,
|
|
3564
|
-
options?: UnstableAccessGrantsListOptions,
|
|
3565
|
-
) => UnstableAccessGrantsListRequest {
|
|
3566
|
-
const { client, defaults } = this
|
|
3567
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3568
|
-
throw new Error(
|
|
3569
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3570
|
-
)
|
|
3571
|
-
}
|
|
3572
|
-
return function unstableAccessGrantsList(
|
|
3573
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['list']>
|
|
3574
|
-
): ReturnType<SeamHttpUnstableAccessGrants['list']> {
|
|
3575
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3576
|
-
return seam.list(...args)
|
|
3577
|
-
}
|
|
3578
|
-
}
|
|
3579
|
-
|
|
3580
|
-
get ['/unstable_access_methods/delete'](): (
|
|
3581
|
-
parameters?: UnstableAccessMethodsDeleteParameters,
|
|
3582
|
-
options?: UnstableAccessMethodsDeleteOptions,
|
|
3583
|
-
) => UnstableAccessMethodsDeleteRequest {
|
|
3584
|
-
const { client, defaults } = this
|
|
3585
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3586
|
-
throw new Error(
|
|
3587
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3588
|
-
)
|
|
3589
|
-
}
|
|
3590
|
-
return function unstableAccessMethodsDelete(
|
|
3591
|
-
...args: Parameters<SeamHttpUnstableAccessMethods['delete']>
|
|
3592
|
-
): ReturnType<SeamHttpUnstableAccessMethods['delete']> {
|
|
3593
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults)
|
|
3594
|
-
return seam.delete(...args)
|
|
3595
|
-
}
|
|
3596
|
-
}
|
|
3597
|
-
|
|
3598
|
-
get ['/unstable_access_methods/get'](): (
|
|
3599
|
-
parameters?: UnstableAccessMethodsGetParameters,
|
|
3600
|
-
options?: UnstableAccessMethodsGetOptions,
|
|
3601
|
-
) => UnstableAccessMethodsGetRequest {
|
|
3602
|
-
const { client, defaults } = this
|
|
3603
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3604
|
-
throw new Error(
|
|
3605
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3606
|
-
)
|
|
3607
|
-
}
|
|
3608
|
-
return function unstableAccessMethodsGet(
|
|
3609
|
-
...args: Parameters<SeamHttpUnstableAccessMethods['get']>
|
|
3610
|
-
): ReturnType<SeamHttpUnstableAccessMethods['get']> {
|
|
3611
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults)
|
|
3612
|
-
return seam.get(...args)
|
|
3613
|
-
}
|
|
3614
|
-
}
|
|
3615
|
-
|
|
3616
|
-
get ['/unstable_access_methods/list'](): (
|
|
3617
|
-
parameters?: UnstableAccessMethodsListParameters,
|
|
3618
|
-
options?: UnstableAccessMethodsListOptions,
|
|
3619
|
-
) => UnstableAccessMethodsListRequest {
|
|
3620
|
-
const { client, defaults } = this
|
|
3621
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3622
|
-
throw new Error(
|
|
3623
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3624
|
-
)
|
|
3625
|
-
}
|
|
3626
|
-
return function unstableAccessMethodsList(
|
|
3627
|
-
...args: Parameters<SeamHttpUnstableAccessMethods['list']>
|
|
3628
|
-
): ReturnType<SeamHttpUnstableAccessMethods['list']> {
|
|
3629
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults)
|
|
3630
|
-
return seam.list(...args)
|
|
3631
|
-
}
|
|
3632
|
-
}
|
|
3633
|
-
|
|
3634
3461
|
get ['/unstable_locations/add_acs_entrances'](): (
|
|
3635
3462
|
parameters?: UnstableLocationsAddAcsEntrancesParameters,
|
|
3636
3463
|
options?: UnstableLocationsAddAcsEntrancesOptions,
|
|
@@ -4364,10 +4191,6 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4364
4191
|
| '/thermostats/list'
|
|
4365
4192
|
| '/thermostats/schedules/get'
|
|
4366
4193
|
| '/thermostats/schedules/list'
|
|
4367
|
-
| '/unstable_access_grants/get'
|
|
4368
|
-
| '/unstable_access_grants/list'
|
|
4369
|
-
| '/unstable_access_methods/get'
|
|
4370
|
-
| '/unstable_access_methods/list'
|
|
4371
4194
|
| '/unstable_locations/get'
|
|
4372
4195
|
| '/unstable_locations/list'
|
|
4373
4196
|
| '/unstable_partner/building_blocks/generate_magic_link'
|
|
@@ -4496,9 +4319,6 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4496
4319
|
| '/thermostats/schedules/update'
|
|
4497
4320
|
| '/thermostats/simulate/hvac_mode_adjusted'
|
|
4498
4321
|
| '/thermostats/simulate/temperature_reached'
|
|
4499
|
-
| '/unstable_access_grants/create'
|
|
4500
|
-
| '/unstable_access_grants/delete'
|
|
4501
|
-
| '/unstable_access_methods/delete'
|
|
4502
4322
|
| '/unstable_locations/add_acs_entrances'
|
|
4503
4323
|
| '/unstable_locations/add_devices'
|
|
4504
4324
|
| '/unstable_locations/create'
|
|
@@ -50,8 +50,6 @@ import { SeamHttpNoiseSensors } from './noise-sensors/index.js'
|
|
|
50
50
|
import { SeamHttpPhones } from './phones/index.js'
|
|
51
51
|
import { SeamHttpSpaces } from './spaces/index.js'
|
|
52
52
|
import { SeamHttpThermostats } from './thermostats/index.js'
|
|
53
|
-
import { SeamHttpUnstableAccessGrants } from './unstable-access-grants/index.js'
|
|
54
|
-
import { SeamHttpUnstableAccessMethods } from './unstable-access-methods/index.js'
|
|
55
53
|
import { SeamHttpUnstableLocations } from './unstable-locations/index.js'
|
|
56
54
|
import { SeamHttpUnstablePartner } from './unstable-partner/index.js'
|
|
57
55
|
import { SeamHttpUserIdentities } from './user-identities/index.js'
|
|
@@ -257,14 +255,6 @@ export class SeamHttp {
|
|
|
257
255
|
return SeamHttpThermostats.fromClient(this.client, this.defaults)
|
|
258
256
|
}
|
|
259
257
|
|
|
260
|
-
get unstableAccessGrants(): SeamHttpUnstableAccessGrants {
|
|
261
|
-
return SeamHttpUnstableAccessGrants.fromClient(this.client, this.defaults)
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
get unstableAccessMethods(): SeamHttpUnstableAccessMethods {
|
|
265
|
-
return SeamHttpUnstableAccessMethods.fromClient(this.client, this.defaults)
|
|
266
|
-
}
|
|
267
|
-
|
|
268
258
|
get unstableLocations(): SeamHttpUnstableLocations {
|
|
269
259
|
return SeamHttpUnstableLocations.fromClient(this.client, this.defaults)
|
|
270
260
|
}
|
|
@@ -44,11 +44,6 @@ export class SeamHttpThermostatsDailyPrograms {
|
|
|
44
44
|
|
|
45
45
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
46
46
|
const options = parseOptions(apiKeyOrOptions)
|
|
47
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
48
|
-
throw new Error(
|
|
49
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
47
|
this.client = 'client' in options ? options.client : createClient(options)
|
|
53
48
|
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
54
49
|
}
|
|
@@ -175,11 +170,6 @@ export class SeamHttpThermostatsDailyPrograms {
|
|
|
175
170
|
parameters?: ThermostatsDailyProgramsCreateParameters,
|
|
176
171
|
options: ThermostatsDailyProgramsCreateOptions = {},
|
|
177
172
|
): ThermostatsDailyProgramsCreateRequest {
|
|
178
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
179
|
-
throw new Error(
|
|
180
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
181
|
-
)
|
|
182
|
-
}
|
|
183
173
|
return new SeamHttpRequest(this, {
|
|
184
174
|
pathname: '/thermostats/daily_programs/create',
|
|
185
175
|
method: 'POST',
|
|
@@ -193,11 +183,6 @@ export class SeamHttpThermostatsDailyPrograms {
|
|
|
193
183
|
parameters?: ThermostatsDailyProgramsDeleteParameters,
|
|
194
184
|
options: ThermostatsDailyProgramsDeleteOptions = {},
|
|
195
185
|
): ThermostatsDailyProgramsDeleteRequest {
|
|
196
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
197
|
-
throw new Error(
|
|
198
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
199
|
-
)
|
|
200
|
-
}
|
|
201
186
|
return new SeamHttpRequest(this, {
|
|
202
187
|
pathname: '/thermostats/daily_programs/delete',
|
|
203
188
|
method: 'POST',
|
|
@@ -211,11 +196,6 @@ export class SeamHttpThermostatsDailyPrograms {
|
|
|
211
196
|
parameters?: ThermostatsDailyProgramsUpdateParameters,
|
|
212
197
|
options: ThermostatsDailyProgramsUpdateOptions = {},
|
|
213
198
|
): ThermostatsDailyProgramsUpdateRequest {
|
|
214
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
215
|
-
throw new Error(
|
|
216
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
217
|
-
)
|
|
218
|
-
}
|
|
219
199
|
return new SeamHttpRequest(this, {
|
|
220
200
|
pathname: '/thermostats/daily_programs/update',
|
|
221
201
|
method: 'PATCH',
|
|
@@ -373,11 +373,6 @@ export class SeamHttpThermostats {
|
|
|
373
373
|
parameters?: ThermostatsUpdateWeeklyProgramParameters,
|
|
374
374
|
options: ThermostatsUpdateWeeklyProgramOptions = {},
|
|
375
375
|
): ThermostatsUpdateWeeklyProgramRequest {
|
|
376
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
377
|
-
throw new Error(
|
|
378
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
379
|
-
)
|
|
380
|
-
}
|
|
381
376
|
return new SeamHttpRequest(this, {
|
|
382
377
|
pathname: '/thermostats/update_weekly_program',
|
|
383
378
|
method: 'POST',
|
package/src/lib/version.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './unstable-access-grants.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-access-grants/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,6BAA6B,CAAA"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
-
import { type Client } from '../../../../../lib/seam/connect/client.js';
|
|
3
|
-
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../lib/seam/connect/options.js';
|
|
4
|
-
import { SeamHttpRequest } from '../../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
-
import { SeamPaginator } from '../../../../../lib/seam/connect/seam-paginator.js';
|
|
6
|
-
import type { SetNonNullable } from '../../../../../lib/types.js';
|
|
7
|
-
export declare class SeamHttpUnstableAccessGrants {
|
|
8
|
-
client: Client;
|
|
9
|
-
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
10
|
-
readonly ltsVersion = "1.0.0";
|
|
11
|
-
static ltsVersion: string;
|
|
12
|
-
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
13
|
-
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpUnstableAccessGrants;
|
|
14
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpUnstableAccessGrants;
|
|
15
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpUnstableAccessGrants;
|
|
16
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpUnstableAccessGrants>;
|
|
17
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpUnstableAccessGrants;
|
|
18
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpUnstableAccessGrants;
|
|
19
|
-
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
|
-
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
-
create(parameters?: UnstableAccessGrantsCreateParameters, options?: UnstableAccessGrantsCreateOptions): UnstableAccessGrantsCreateRequest;
|
|
22
|
-
delete(parameters?: UnstableAccessGrantsDeleteParameters, options?: UnstableAccessGrantsDeleteOptions): UnstableAccessGrantsDeleteRequest;
|
|
23
|
-
get(parameters?: UnstableAccessGrantsGetParameters, options?: UnstableAccessGrantsGetOptions): UnstableAccessGrantsGetRequest;
|
|
24
|
-
list(parameters?: UnstableAccessGrantsListParameters, options?: UnstableAccessGrantsListOptions): UnstableAccessGrantsListRequest;
|
|
25
|
-
}
|
|
26
|
-
export type UnstableAccessGrantsCreateParameters = RouteRequestBody<'/unstable_access_grants/create'>;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use UnstableAccessGrantsCreateParameters instead.
|
|
29
|
-
*/
|
|
30
|
-
export type UnstableAccessGrantsCreateBody = UnstableAccessGrantsCreateParameters;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated Use UnstableAccessGrantsCreateRequest instead.
|
|
33
|
-
*/
|
|
34
|
-
export type UnstableAccessGrantsCreateResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/create'>>>;
|
|
35
|
-
export type UnstableAccessGrantsCreateRequest = SeamHttpRequest<UnstableAccessGrantsCreateResponse, 'access_grant'>;
|
|
36
|
-
export interface UnstableAccessGrantsCreateOptions {
|
|
37
|
-
}
|
|
38
|
-
export type UnstableAccessGrantsDeleteParameters = RouteRequestBody<'/unstable_access_grants/delete'>;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Use UnstableAccessGrantsDeleteParameters instead.
|
|
41
|
-
*/
|
|
42
|
-
export type UnstableAccessGrantsDeleteParams = UnstableAccessGrantsDeleteParameters;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use UnstableAccessGrantsDeleteRequest instead.
|
|
45
|
-
*/
|
|
46
|
-
export type UnstableAccessGrantsDeleteResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/delete'>>>;
|
|
47
|
-
export type UnstableAccessGrantsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
48
|
-
export interface UnstableAccessGrantsDeleteOptions {
|
|
49
|
-
}
|
|
50
|
-
export type UnstableAccessGrantsGetParameters = RouteRequestBody<'/unstable_access_grants/get'>;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Use UnstableAccessGrantsGetParameters instead.
|
|
53
|
-
*/
|
|
54
|
-
export type UnstableAccessGrantsGetParams = UnstableAccessGrantsGetParameters;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use UnstableAccessGrantsGetRequest instead.
|
|
57
|
-
*/
|
|
58
|
-
export type UnstableAccessGrantsGetResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/get'>>>;
|
|
59
|
-
export type UnstableAccessGrantsGetRequest = SeamHttpRequest<UnstableAccessGrantsGetResponse, 'access_grant'>;
|
|
60
|
-
export interface UnstableAccessGrantsGetOptions {
|
|
61
|
-
}
|
|
62
|
-
export type UnstableAccessGrantsListParameters = RouteRequestBody<'/unstable_access_grants/list'>;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated Use UnstableAccessGrantsListParameters instead.
|
|
65
|
-
*/
|
|
66
|
-
export type UnstableAccessGrantsListParams = UnstableAccessGrantsListParameters;
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use UnstableAccessGrantsListRequest instead.
|
|
69
|
-
*/
|
|
70
|
-
export type UnstableAccessGrantsListResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/list'>>>;
|
|
71
|
-
export type UnstableAccessGrantsListRequest = SeamHttpRequest<UnstableAccessGrantsListResponse, 'access_grants'>;
|
|
72
|
-
export interface UnstableAccessGrantsListOptions {
|
|
73
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Automatically generated by codegen/smith.ts.
|
|
3
|
-
* Do not edit this file or add other files to this directory.
|
|
4
|
-
*/
|
|
5
|
-
import { seamApiLtsVersion } from '../../../../../lib/lts-version.js';
|
|
6
|
-
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../../lib/seam/connect/auth.js';
|
|
7
|
-
import { createClient } from '../../../../../lib/seam/connect/client.js';
|
|
8
|
-
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../../lib/seam/connect/options.js';
|
|
9
|
-
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../../lib/seam/connect/parse-options.js';
|
|
10
|
-
import { SeamHttpClientSessions } from '../../../../../lib/seam/connect/routes/client-sessions/index.js';
|
|
11
|
-
import { SeamHttpRequest } from '../../../../../lib/seam/connect/seam-http-request.js';
|
|
12
|
-
import { SeamPaginator } from '../../../../../lib/seam/connect/seam-paginator.js';
|
|
13
|
-
export class SeamHttpUnstableAccessGrants {
|
|
14
|
-
constructor(apiKeyOrOptions = {}) {
|
|
15
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
16
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
17
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
18
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
19
|
-
}
|
|
20
|
-
this.client = 'client' in options ? options.client : createClient(options);
|
|
21
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
22
|
-
}
|
|
23
|
-
static fromClient(client, options = {}) {
|
|
24
|
-
const constructorOptions = { ...options, client };
|
|
25
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
26
|
-
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
27
|
-
}
|
|
28
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
29
|
-
}
|
|
30
|
-
static fromApiKey(apiKey, options = {}) {
|
|
31
|
-
const constructorOptions = { ...options, apiKey };
|
|
32
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
33
|
-
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
34
|
-
}
|
|
35
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
36
|
-
}
|
|
37
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
38
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
39
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
40
|
-
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
41
|
-
}
|
|
42
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
43
|
-
}
|
|
44
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
45
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
46
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
47
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
48
|
-
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpUnstableAccessGrants.fromPublishableKey');
|
|
49
|
-
}
|
|
50
|
-
const client = createClient(clientOptions);
|
|
51
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
52
|
-
const { token } = await clientSessions.getOrCreate({
|
|
53
|
-
user_identifier_key: userIdentifierKey,
|
|
54
|
-
});
|
|
55
|
-
return SeamHttpUnstableAccessGrants.fromClientSessionToken(token, options);
|
|
56
|
-
}
|
|
57
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
58
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
59
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
60
|
-
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
61
|
-
}
|
|
62
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
63
|
-
}
|
|
64
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
65
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
66
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
67
|
-
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
68
|
-
}
|
|
69
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
70
|
-
}
|
|
71
|
-
createPaginator(request) {
|
|
72
|
-
return new SeamPaginator(this, request);
|
|
73
|
-
}
|
|
74
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
75
|
-
const { headers } = this.client.defaults;
|
|
76
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
77
|
-
clientSessionToken,
|
|
78
|
-
});
|
|
79
|
-
for (const key of Object.keys(authHeaders)) {
|
|
80
|
-
if (headers[key] == null) {
|
|
81
|
-
throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
85
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
86
|
-
await clientSessions.get();
|
|
87
|
-
}
|
|
88
|
-
create(parameters, options = {}) {
|
|
89
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
90
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
91
|
-
}
|
|
92
|
-
return new SeamHttpRequest(this, {
|
|
93
|
-
pathname: '/unstable_access_grants/create',
|
|
94
|
-
method: 'POST',
|
|
95
|
-
body: parameters,
|
|
96
|
-
responseKey: 'access_grant',
|
|
97
|
-
options,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
delete(parameters, options = {}) {
|
|
101
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
102
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
103
|
-
}
|
|
104
|
-
return new SeamHttpRequest(this, {
|
|
105
|
-
pathname: '/unstable_access_grants/delete',
|
|
106
|
-
method: 'POST',
|
|
107
|
-
body: parameters,
|
|
108
|
-
responseKey: undefined,
|
|
109
|
-
options,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
get(parameters, options = {}) {
|
|
113
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
114
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
115
|
-
}
|
|
116
|
-
return new SeamHttpRequest(this, {
|
|
117
|
-
pathname: '/unstable_access_grants/get',
|
|
118
|
-
method: 'POST',
|
|
119
|
-
body: parameters,
|
|
120
|
-
responseKey: 'access_grant',
|
|
121
|
-
options,
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
list(parameters, options = {}) {
|
|
125
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
126
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
127
|
-
}
|
|
128
|
-
return new SeamHttpRequest(this, {
|
|
129
|
-
pathname: '/unstable_access_grants/list',
|
|
130
|
-
method: 'POST',
|
|
131
|
-
body: parameters,
|
|
132
|
-
responseKey: 'access_grants',
|
|
133
|
-
options,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
SeamHttpUnstableAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
138
|
-
//# sourceMappingURL=unstable-access-grants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unstable-access-grants.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OA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;YAChB,WAAW,EAAE,eAAe;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AAtMM,uCAAU,GAAG,iBAAiB,AAApB,CAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './unstable-access-methods.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-access-methods/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,8BAA8B,CAAA"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
-
import { type Client } from '../../../../../lib/seam/connect/client.js';
|
|
3
|
-
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../lib/seam/connect/options.js';
|
|
4
|
-
import { SeamHttpRequest } from '../../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
-
import { SeamPaginator } from '../../../../../lib/seam/connect/seam-paginator.js';
|
|
6
|
-
import type { SetNonNullable } from '../../../../../lib/types.js';
|
|
7
|
-
export declare class SeamHttpUnstableAccessMethods {
|
|
8
|
-
client: Client;
|
|
9
|
-
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
10
|
-
readonly ltsVersion = "1.0.0";
|
|
11
|
-
static ltsVersion: string;
|
|
12
|
-
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
13
|
-
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpUnstableAccessMethods;
|
|
14
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpUnstableAccessMethods;
|
|
15
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpUnstableAccessMethods;
|
|
16
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpUnstableAccessMethods>;
|
|
17
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpUnstableAccessMethods;
|
|
18
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpUnstableAccessMethods;
|
|
19
|
-
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
|
-
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
-
delete(parameters?: UnstableAccessMethodsDeleteParameters, options?: UnstableAccessMethodsDeleteOptions): UnstableAccessMethodsDeleteRequest;
|
|
22
|
-
get(parameters?: UnstableAccessMethodsGetParameters, options?: UnstableAccessMethodsGetOptions): UnstableAccessMethodsGetRequest;
|
|
23
|
-
list(parameters?: UnstableAccessMethodsListParameters, options?: UnstableAccessMethodsListOptions): UnstableAccessMethodsListRequest;
|
|
24
|
-
}
|
|
25
|
-
export type UnstableAccessMethodsDeleteParameters = RouteRequestBody<'/unstable_access_methods/delete'>;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use UnstableAccessMethodsDeleteParameters instead.
|
|
28
|
-
*/
|
|
29
|
-
export type UnstableAccessMethodsDeleteParams = UnstableAccessMethodsDeleteParameters;
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use UnstableAccessMethodsDeleteRequest instead.
|
|
32
|
-
*/
|
|
33
|
-
export type UnstableAccessMethodsDeleteResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_methods/delete'>>>;
|
|
34
|
-
export type UnstableAccessMethodsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
35
|
-
export interface UnstableAccessMethodsDeleteOptions {
|
|
36
|
-
}
|
|
37
|
-
export type UnstableAccessMethodsGetParameters = RouteRequestBody<'/unstable_access_methods/get'>;
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use UnstableAccessMethodsGetParameters instead.
|
|
40
|
-
*/
|
|
41
|
-
export type UnstableAccessMethodsGetParams = UnstableAccessMethodsGetParameters;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Use UnstableAccessMethodsGetRequest instead.
|
|
44
|
-
*/
|
|
45
|
-
export type UnstableAccessMethodsGetResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_methods/get'>>>;
|
|
46
|
-
export type UnstableAccessMethodsGetRequest = SeamHttpRequest<UnstableAccessMethodsGetResponse, 'access_method'>;
|
|
47
|
-
export interface UnstableAccessMethodsGetOptions {
|
|
48
|
-
}
|
|
49
|
-
export type UnstableAccessMethodsListParameters = RouteRequestBody<'/unstable_access_methods/list'>;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use UnstableAccessMethodsListParameters instead.
|
|
52
|
-
*/
|
|
53
|
-
export type UnstableAccessMethodsListParams = UnstableAccessMethodsListParameters;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use UnstableAccessMethodsListRequest instead.
|
|
56
|
-
*/
|
|
57
|
-
export type UnstableAccessMethodsListResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_methods/list'>>>;
|
|
58
|
-
export type UnstableAccessMethodsListRequest = SeamHttpRequest<UnstableAccessMethodsListResponse, 'access_methods'>;
|
|
59
|
-
export interface UnstableAccessMethodsListOptions {
|
|
60
|
-
}
|