@seamapi/http 1.117.0 → 1.119.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 (62) hide show
  1. package/dist/connect.cjs +594 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +219 -3
  4. package/dist/index.cjs +600 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +24 -0
  8. package/lib/seam/connect/routes/access-methods/access-methods.js +18 -0
  9. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  10. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +12 -0
  11. package/lib/seam/connect/routes/acs/encoders/encoders.js +9 -0
  12. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
  13. package/lib/seam/connect/routes/seam/console/v1/index.d.ts +2 -0
  14. package/lib/seam/connect/routes/seam/console/v1/index.js +2 -0
  15. package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -1
  16. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.d.ts +1 -0
  17. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js +6 -0
  18. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js.map +1 -0
  19. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.d.ts +73 -0
  20. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js +140 -0
  21. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js.map +1 -0
  22. package/lib/seam/connect/routes/seam/console/v1/sites/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/seam/console/v1/sites/index.js +6 -0
  24. package/lib/seam/connect/routes/seam/console/v1/sites/index.js.map +1 -0
  25. package/lib/seam/connect/routes/seam/console/v1/sites/sites.d.ts +73 -0
  26. package/lib/seam/connect/routes/seam/console/v1/sites/sites.js +140 -0
  27. package/lib/seam/connect/routes/seam/console/v1/sites/sites.js.map +1 -0
  28. package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +4 -0
  29. package/lib/seam/connect/routes/seam/console/v1/v1.js +8 -0
  30. package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
  31. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.d.ts +2 -0
  32. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +4 -0
  33. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
  34. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.d.ts +34 -0
  35. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.js +104 -0
  36. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.js.map +1 -0
  37. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.d.ts +1 -0
  38. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.js +6 -0
  39. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.js.map +1 -0
  40. package/lib/seam/connect/routes/seam/customer/v1/connectors/index.d.ts +1 -0
  41. package/lib/seam/connect/routes/seam/customer/v1/connectors/index.js +1 -0
  42. package/lib/seam/connect/routes/seam/customer/v1/connectors/index.js.map +1 -1
  43. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +19 -4
  44. package/lib/seam/connect/routes/seam-http-endpoints.js +114 -0
  45. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  46. package/lib/version.d.ts +1 -1
  47. package/lib/version.js +1 -1
  48. package/package.json +3 -3
  49. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +76 -0
  50. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +39 -0
  51. package/src/lib/seam/connect/routes/seam/console/v1/index.ts +2 -0
  52. package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.ts +6 -0
  53. package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts +350 -0
  54. package/src/lib/seam/connect/routes/seam/console/v1/sites/index.ts +6 -0
  55. package/src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts +327 -0
  56. package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +13 -0
  57. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +8 -0
  58. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts +214 -0
  59. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.ts +6 -0
  60. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/index.ts +1 -0
  61. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +285 -0
  62. package/src/lib/version.ts +1 -1
@@ -36,6 +36,8 @@ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
36
36
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
37
37
  import type { SetNonNullable } from 'lib/types.js'
38
38
 
39
+ import { SeamHttpSeamConsoleV1LynxMigration } from './lynx-migration/index.js'
40
+ import { SeamHttpSeamConsoleV1Sites } from './sites/index.js'
39
41
  import { SeamHttpSeamConsoleV1Timelines } from './timelines/index.js'
40
42
 
41
43
  export class SeamHttpSeamConsoleV1 {
@@ -170,6 +172,17 @@ export class SeamHttpSeamConsoleV1 {
170
172
  await clientSessions.get()
171
173
  }
172
174
 
175
+ get lynxMigration(): SeamHttpSeamConsoleV1LynxMigration {
176
+ return SeamHttpSeamConsoleV1LynxMigration.fromClient(
177
+ this.client,
178
+ this.defaults,
179
+ )
180
+ }
181
+
182
+ get sites(): SeamHttpSeamConsoleV1Sites {
183
+ return SeamHttpSeamConsoleV1Sites.fromClient(this.client, this.defaults)
184
+ }
185
+
173
186
  get timelines(): SeamHttpSeamConsoleV1Timelines {
174
187
  return SeamHttpSeamConsoleV1Timelines.fromClient(this.client, this.defaults)
175
188
  }
@@ -40,6 +40,7 @@ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
40
40
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
41
41
  import type { SetNonNullable } from 'lib/types.js'
42
42
 
43
+ import { SeamHttpSeamCustomerV1ConnectorsExternalSites } from './external-sites/index.js'
43
44
  import { SeamHttpSeamCustomerV1ConnectorsIcal } from './ical/index.js'
44
45
 
45
46
  export class SeamHttpSeamCustomerV1Connectors {
@@ -177,6 +178,13 @@ export class SeamHttpSeamCustomerV1Connectors {
177
178
  await clientSessions.get()
178
179
  }
179
180
 
181
+ get externalSites(): SeamHttpSeamCustomerV1ConnectorsExternalSites {
182
+ return SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
183
+ this.client,
184
+ this.defaults,
185
+ )
186
+ }
187
+
180
188
  get ical(): SeamHttpSeamCustomerV1ConnectorsIcal {
181
189
  return SeamHttpSeamCustomerV1ConnectorsIcal.fromClient(
182
190
  this.client,
@@ -0,0 +1,214 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
+
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
9
+ import {
10
+ getAuthHeadersForClientSessionToken,
11
+ warnOnInsecureuserIdentifierKey,
12
+ } from 'lib/seam/connect/auth.js'
13
+ import { type Client, createClient } from 'lib/seam/connect/client.js'
14
+ import {
15
+ isSeamHttpOptionsWithApiKey,
16
+ isSeamHttpOptionsWithClient,
17
+ isSeamHttpOptionsWithClientSessionToken,
18
+ isSeamHttpOptionsWithConsoleSessionToken,
19
+ isSeamHttpOptionsWithPersonalAccessToken,
20
+ type SeamHttpFromPublishableKeyOptions,
21
+ SeamHttpInvalidOptionsError,
22
+ type SeamHttpOptions,
23
+ type SeamHttpOptionsWithApiKey,
24
+ type SeamHttpOptionsWithClient,
25
+ type SeamHttpOptionsWithClientSessionToken,
26
+ type SeamHttpOptionsWithConsoleSessionToken,
27
+ type SeamHttpOptionsWithPersonalAccessToken,
28
+ type SeamHttpRequestOptions,
29
+ } from 'lib/seam/connect/options.js'
30
+ import {
31
+ limitToSeamHttpRequestOptions,
32
+ parseOptions,
33
+ } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
35
+ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
36
+ import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
37
+ import type { SetNonNullable } from 'lib/types.js'
38
+
39
+ export class SeamHttpSeamCustomerV1ConnectorsExternalSites {
40
+ client: Client
41
+ readonly defaults: Required<SeamHttpRequestOptions>
42
+ readonly ltsVersion = seamApiLtsVersion
43
+ static ltsVersion = seamApiLtsVersion
44
+
45
+ constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
46
+ const options = parseOptions(apiKeyOrOptions)
47
+ if (!options.isUndocumentedApiEnabled) {
48
+ throw new Error(
49
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
50
+ )
51
+ }
52
+ this.client = 'client' in options ? options.client : createClient(options)
53
+ this.defaults = limitToSeamHttpRequestOptions(options)
54
+ }
55
+
56
+ static fromClient(
57
+ client: SeamHttpOptionsWithClient['client'],
58
+ options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
59
+ ): SeamHttpSeamCustomerV1ConnectorsExternalSites {
60
+ const constructorOptions = { ...options, client }
61
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
62
+ throw new SeamHttpInvalidOptionsError('Missing client')
63
+ }
64
+ return new SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions)
65
+ }
66
+
67
+ static fromApiKey(
68
+ apiKey: SeamHttpOptionsWithApiKey['apiKey'],
69
+ options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
70
+ ): SeamHttpSeamCustomerV1ConnectorsExternalSites {
71
+ const constructorOptions = { ...options, apiKey }
72
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
73
+ throw new SeamHttpInvalidOptionsError('Missing apiKey')
74
+ }
75
+ return new SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions)
76
+ }
77
+
78
+ static fromClientSessionToken(
79
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
80
+ options: Omit<
81
+ SeamHttpOptionsWithClientSessionToken,
82
+ 'clientSessionToken'
83
+ > = {},
84
+ ): SeamHttpSeamCustomerV1ConnectorsExternalSites {
85
+ const constructorOptions = { ...options, clientSessionToken }
86
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
87
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
88
+ }
89
+ return new SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions)
90
+ }
91
+
92
+ static async fromPublishableKey(
93
+ publishableKey: string,
94
+ userIdentifierKey: string,
95
+ options: SeamHttpFromPublishableKeyOptions = {},
96
+ ): Promise<SeamHttpSeamCustomerV1ConnectorsExternalSites> {
97
+ warnOnInsecureuserIdentifierKey(userIdentifierKey)
98
+ const clientOptions = parseOptions({ ...options, publishableKey })
99
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
100
+ throw new SeamHttpInvalidOptionsError(
101
+ 'The client option cannot be used with SeamHttpSeamCustomerV1ConnectorsExternalSites.fromPublishableKey',
102
+ )
103
+ }
104
+ const client = createClient(clientOptions)
105
+ const clientSessions = SeamHttpClientSessions.fromClient(client)
106
+ const { token } = await clientSessions.getOrCreate({
107
+ user_identifier_key: userIdentifierKey,
108
+ })
109
+ return SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClientSessionToken(
110
+ token,
111
+ options,
112
+ )
113
+ }
114
+
115
+ static fromConsoleSessionToken(
116
+ consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
117
+ workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
118
+ options: Omit<
119
+ SeamHttpOptionsWithConsoleSessionToken,
120
+ 'consoleSessionToken' | 'workspaceId'
121
+ > = {},
122
+ ): SeamHttpSeamCustomerV1ConnectorsExternalSites {
123
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId }
124
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
125
+ throw new SeamHttpInvalidOptionsError(
126
+ 'Missing consoleSessionToken or workspaceId',
127
+ )
128
+ }
129
+ return new SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions)
130
+ }
131
+
132
+ static fromPersonalAccessToken(
133
+ personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
134
+ workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
135
+ options: Omit<
136
+ SeamHttpOptionsWithPersonalAccessToken,
137
+ 'personalAccessToken' | 'workspaceId'
138
+ > = {},
139
+ ): SeamHttpSeamCustomerV1ConnectorsExternalSites {
140
+ const constructorOptions = { ...options, personalAccessToken, workspaceId }
141
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
142
+ throw new SeamHttpInvalidOptionsError(
143
+ 'Missing personalAccessToken or workspaceId',
144
+ )
145
+ }
146
+ return new SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions)
147
+ }
148
+
149
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
150
+ request: SeamHttpRequest<TResponse, TResponseKey>,
151
+ ): SeamPaginator<TResponse, TResponseKey> {
152
+ return new SeamPaginator<TResponse, TResponseKey>(this, request)
153
+ }
154
+
155
+ async updateClientSessionToken(
156
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
157
+ ): Promise<void> {
158
+ const { headers } = this.client.defaults
159
+ const authHeaders = getAuthHeadersForClientSessionToken({
160
+ clientSessionToken,
161
+ })
162
+ for (const key of Object.keys(authHeaders)) {
163
+ if (headers[key] == null) {
164
+ throw new Error(
165
+ 'Cannot update a clientSessionToken on a client created without a clientSessionToken',
166
+ )
167
+ }
168
+ }
169
+ this.client.defaults.headers = { ...headers, ...authHeaders }
170
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client)
171
+ await clientSessions.get()
172
+ }
173
+
174
+ list(
175
+ parameters?: SeamCustomerV1ConnectorsExternalSitesListParameters,
176
+ options: SeamCustomerV1ConnectorsExternalSitesListOptions = {},
177
+ ): SeamCustomerV1ConnectorsExternalSitesListRequest {
178
+ if (!this.defaults.isUndocumentedApiEnabled) {
179
+ throw new Error(
180
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
181
+ )
182
+ }
183
+ return new SeamHttpRequest(this, {
184
+ pathname: '/seam/customer/v1/connectors/external_sites/list',
185
+ method: 'POST',
186
+ body: parameters,
187
+ responseKey: 'external_sites',
188
+ options,
189
+ })
190
+ }
191
+ }
192
+
193
+ export type SeamCustomerV1ConnectorsExternalSitesListParameters =
194
+ RouteRequestBody<'/seam/customer/v1/connectors/external_sites/list'>
195
+
196
+ /**
197
+ * @deprecated Use SeamCustomerV1ConnectorsExternalSitesListParameters instead.
198
+ */
199
+ export type SeamCustomerV1ConnectorsExternalSitesListParams =
200
+ SeamCustomerV1ConnectorsExternalSitesListParameters
201
+
202
+ /**
203
+ * @deprecated Use SeamCustomerV1ConnectorsExternalSitesListRequest instead.
204
+ */
205
+ export type SeamCustomerV1ConnectorsExternalSitesListResponse = SetNonNullable<
206
+ Required<RouteResponse<'/seam/customer/v1/connectors/external_sites/list'>>
207
+ >
208
+
209
+ export type SeamCustomerV1ConnectorsExternalSitesListRequest = SeamHttpRequest<
210
+ SeamCustomerV1ConnectorsExternalSitesListResponse,
211
+ 'external_sites'
212
+ >
213
+
214
+ export interface SeamCustomerV1ConnectorsExternalSitesListOptions {}
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ export * from './external-sites.js'
@@ -4,4 +4,5 @@
4
4
  */
5
5
 
6
6
  export * from './connectors.js'
7
+ export * from './external-sites/index.js'
7
8
  export * from './ical/index.js'
@@ -129,6 +129,9 @@ import {
129
129
  SeamHttpAccessGrantsUnmanaged,
130
130
  } from './access-grants/unmanaged/index.js'
131
131
  import {
132
+ type AccessMethodsAssignCardOptions,
133
+ type AccessMethodsAssignCardParameters,
134
+ type AccessMethodsAssignCardRequest,
132
135
  type AccessMethodsDeleteOptions,
133
136
  type AccessMethodsDeleteParameters,
134
137
  type AccessMethodsDeleteRequest,
@@ -144,6 +147,9 @@ import {
144
147
  type AccessMethodsListOptions,
145
148
  type AccessMethodsListParameters,
146
149
  type AccessMethodsListRequest,
150
+ type AccessMethodsUnlockDoorOptions,
151
+ type AccessMethodsUnlockDoorParameters,
152
+ type AccessMethodsUnlockDoorRequest,
147
153
  SeamHttpAccessMethods,
148
154
  } from './access-methods/index.js'
149
155
  import {
@@ -252,6 +258,9 @@ import {
252
258
  type AcsEncodersScanCredentialOptions,
253
259
  type AcsEncodersScanCredentialParameters,
254
260
  type AcsEncodersScanCredentialRequest,
261
+ type AcsEncodersScanToAssignCredentialOptions,
262
+ type AcsEncodersScanToAssignCredentialParameters,
263
+ type AcsEncodersScanToAssignCredentialRequest,
255
264
  SeamHttpAcsEncoders,
256
265
  } from './acs/encoders/index.js'
257
266
  import {
@@ -602,6 +611,36 @@ import {
602
611
  type SeamConsoleV1GetResourceLocatorRequest,
603
612
  SeamHttpSeamConsoleV1,
604
613
  } from './seam/console/v1/index.js'
614
+ import {
615
+ type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusOptions,
616
+ type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters,
617
+ type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusRequest,
618
+ type SeamConsoleV1LynxMigrationGetReservationMigrationStatusOptions,
619
+ type SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters,
620
+ type SeamConsoleV1LynxMigrationGetReservationMigrationStatusRequest,
621
+ type SeamConsoleV1LynxMigrationListPropertyReservationsOptions,
622
+ type SeamConsoleV1LynxMigrationListPropertyReservationsParameters,
623
+ type SeamConsoleV1LynxMigrationListPropertyReservationsRequest,
624
+ type SeamConsoleV1LynxMigrationMigratePropertyOptions,
625
+ type SeamConsoleV1LynxMigrationMigratePropertyParameters,
626
+ type SeamConsoleV1LynxMigrationMigratePropertyRequest,
627
+ SeamHttpSeamConsoleV1LynxMigration,
628
+ } from './seam/console/v1/lynx-migration/index.js'
629
+ import {
630
+ type SeamConsoleV1SitesCreateOptions,
631
+ type SeamConsoleV1SitesCreateParameters,
632
+ type SeamConsoleV1SitesCreateRequest,
633
+ type SeamConsoleV1SitesDeleteOptions,
634
+ type SeamConsoleV1SitesDeleteParameters,
635
+ type SeamConsoleV1SitesDeleteRequest,
636
+ type SeamConsoleV1SitesListOptions,
637
+ type SeamConsoleV1SitesListParameters,
638
+ type SeamConsoleV1SitesListRequest,
639
+ type SeamConsoleV1SitesUpdateOptions,
640
+ type SeamConsoleV1SitesUpdateParameters,
641
+ type SeamConsoleV1SitesUpdateRequest,
642
+ SeamHttpSeamConsoleV1Sites,
643
+ } from './seam/console/v1/sites/index.js'
605
644
  import {
606
645
  type SeamConsoleV1TimelinesGetOptions,
607
646
  type SeamConsoleV1TimelinesGetParameters,
@@ -647,6 +686,12 @@ import {
647
686
  type SeamCustomerV1ConnectorCustomersListRequest,
648
687
  SeamHttpSeamCustomerV1ConnectorCustomers,
649
688
  } from './seam/customer/v1/connector-customers/index.js'
689
+ import {
690
+ type SeamCustomerV1ConnectorsExternalSitesListOptions,
691
+ type SeamCustomerV1ConnectorsExternalSitesListParameters,
692
+ type SeamCustomerV1ConnectorsExternalSitesListRequest,
693
+ SeamHttpSeamCustomerV1ConnectorsExternalSites,
694
+ } from './seam/customer/v1/connectors/external-sites/index.js'
650
695
  import {
651
696
  type SeamCustomerV1ConnectorsIcalValidateConfigOptions,
652
697
  type SeamCustomerV1ConnectorsIcalValidateConfigParameters,
@@ -1532,6 +1577,19 @@ export class SeamHttpEndpoints {
1532
1577
  }
1533
1578
  }
1534
1579
 
1580
+ get '/access_methods/assign_card'(): (
1581
+ parameters?: AccessMethodsAssignCardParameters,
1582
+ options?: AccessMethodsAssignCardOptions,
1583
+ ) => AccessMethodsAssignCardRequest {
1584
+ const { client, defaults } = this
1585
+ return function accessMethodsAssignCard(
1586
+ ...args: Parameters<SeamHttpAccessMethods['assignCard']>
1587
+ ): ReturnType<SeamHttpAccessMethods['assignCard']> {
1588
+ const seam = SeamHttpAccessMethods.fromClient(client, defaults)
1589
+ return seam.assignCard(...args)
1590
+ }
1591
+ }
1592
+
1535
1593
  get '/access_methods/delete'(): (
1536
1594
  parameters?: AccessMethodsDeleteParameters,
1537
1595
  options?: AccessMethodsDeleteOptions,
@@ -1597,6 +1655,19 @@ export class SeamHttpEndpoints {
1597
1655
  }
1598
1656
  }
1599
1657
 
1658
+ get '/access_methods/unlock_door'(): (
1659
+ parameters?: AccessMethodsUnlockDoorParameters,
1660
+ options?: AccessMethodsUnlockDoorOptions,
1661
+ ) => AccessMethodsUnlockDoorRequest {
1662
+ const { client, defaults } = this
1663
+ return function accessMethodsUnlockDoor(
1664
+ ...args: Parameters<SeamHttpAccessMethods['unlockDoor']>
1665
+ ): ReturnType<SeamHttpAccessMethods['unlockDoor']> {
1666
+ const seam = SeamHttpAccessMethods.fromClient(client, defaults)
1667
+ return seam.unlockDoor(...args)
1668
+ }
1669
+ }
1670
+
1600
1671
  get '/access_methods/unmanaged/get'(): (
1601
1672
  parameters?: AccessMethodsUnmanagedGetParameters,
1602
1673
  options?: AccessMethodsUnmanagedGetOptions,
@@ -2001,6 +2072,19 @@ export class SeamHttpEndpoints {
2001
2072
  }
2002
2073
  }
2003
2074
 
2075
+ get '/acs/encoders/scan_to_assign_credential'(): (
2076
+ parameters?: AcsEncodersScanToAssignCredentialParameters,
2077
+ options?: AcsEncodersScanToAssignCredentialOptions,
2078
+ ) => AcsEncodersScanToAssignCredentialRequest {
2079
+ const { client, defaults } = this
2080
+ return function acsEncodersScanToAssignCredential(
2081
+ ...args: Parameters<SeamHttpAcsEncoders['scanToAssignCredential']>
2082
+ ): ReturnType<SeamHttpAcsEncoders['scanToAssignCredential']> {
2083
+ const seam = SeamHttpAcsEncoders.fromClient(client, defaults)
2084
+ return seam.scanToAssignCredential(...args)
2085
+ }
2086
+ }
2087
+
2004
2088
  get '/acs/encoders/simulate/next_credential_encode_will_fail'(): (
2005
2089
  parameters?: AcsEncodersSimulateNextCredentialEncodeWillFailParameters,
2006
2090
  options?: AcsEncodersSimulateNextCredentialEncodeWillFailOptions,
@@ -3240,6 +3324,174 @@ export class SeamHttpEndpoints {
3240
3324
  }
3241
3325
  }
3242
3326
 
3327
+ get '/seam/console/v1/lynx_migration/get_property_migration_status'(): (
3328
+ parameters?: SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters,
3329
+ options?: SeamConsoleV1LynxMigrationGetPropertyMigrationStatusOptions,
3330
+ ) => SeamConsoleV1LynxMigrationGetPropertyMigrationStatusRequest {
3331
+ const { client, defaults } = this
3332
+ if (!this.defaults.isUndocumentedApiEnabled) {
3333
+ throw new Error(
3334
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3335
+ )
3336
+ }
3337
+ return function seamConsoleV1LynxMigrationGetPropertyMigrationStatus(
3338
+ ...args: Parameters<
3339
+ SeamHttpSeamConsoleV1LynxMigration['getPropertyMigrationStatus']
3340
+ >
3341
+ ): ReturnType<
3342
+ SeamHttpSeamConsoleV1LynxMigration['getPropertyMigrationStatus']
3343
+ > {
3344
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
3345
+ client,
3346
+ defaults,
3347
+ )
3348
+ return seam.getPropertyMigrationStatus(...args)
3349
+ }
3350
+ }
3351
+
3352
+ get '/seam/console/v1/lynx_migration/get_reservation_migration_status'(): (
3353
+ parameters?: SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters,
3354
+ options?: SeamConsoleV1LynxMigrationGetReservationMigrationStatusOptions,
3355
+ ) => SeamConsoleV1LynxMigrationGetReservationMigrationStatusRequest {
3356
+ const { client, defaults } = this
3357
+ if (!this.defaults.isUndocumentedApiEnabled) {
3358
+ throw new Error(
3359
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3360
+ )
3361
+ }
3362
+ return function seamConsoleV1LynxMigrationGetReservationMigrationStatus(
3363
+ ...args: Parameters<
3364
+ SeamHttpSeamConsoleV1LynxMigration['getReservationMigrationStatus']
3365
+ >
3366
+ ): ReturnType<
3367
+ SeamHttpSeamConsoleV1LynxMigration['getReservationMigrationStatus']
3368
+ > {
3369
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
3370
+ client,
3371
+ defaults,
3372
+ )
3373
+ return seam.getReservationMigrationStatus(...args)
3374
+ }
3375
+ }
3376
+
3377
+ get '/seam/console/v1/lynx_migration/list_property_reservations'(): (
3378
+ parameters?: SeamConsoleV1LynxMigrationListPropertyReservationsParameters,
3379
+ options?: SeamConsoleV1LynxMigrationListPropertyReservationsOptions,
3380
+ ) => SeamConsoleV1LynxMigrationListPropertyReservationsRequest {
3381
+ const { client, defaults } = this
3382
+ if (!this.defaults.isUndocumentedApiEnabled) {
3383
+ throw new Error(
3384
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3385
+ )
3386
+ }
3387
+ return function seamConsoleV1LynxMigrationListPropertyReservations(
3388
+ ...args: Parameters<
3389
+ SeamHttpSeamConsoleV1LynxMigration['listPropertyReservations']
3390
+ >
3391
+ ): ReturnType<
3392
+ SeamHttpSeamConsoleV1LynxMigration['listPropertyReservations']
3393
+ > {
3394
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
3395
+ client,
3396
+ defaults,
3397
+ )
3398
+ return seam.listPropertyReservations(...args)
3399
+ }
3400
+ }
3401
+
3402
+ get '/seam/console/v1/lynx_migration/migrate_property'(): (
3403
+ parameters?: SeamConsoleV1LynxMigrationMigratePropertyParameters,
3404
+ options?: SeamConsoleV1LynxMigrationMigratePropertyOptions,
3405
+ ) => SeamConsoleV1LynxMigrationMigratePropertyRequest {
3406
+ const { client, defaults } = this
3407
+ if (!this.defaults.isUndocumentedApiEnabled) {
3408
+ throw new Error(
3409
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3410
+ )
3411
+ }
3412
+ return function seamConsoleV1LynxMigrationMigrateProperty(
3413
+ ...args: Parameters<SeamHttpSeamConsoleV1LynxMigration['migrateProperty']>
3414
+ ): ReturnType<SeamHttpSeamConsoleV1LynxMigration['migrateProperty']> {
3415
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
3416
+ client,
3417
+ defaults,
3418
+ )
3419
+ return seam.migrateProperty(...args)
3420
+ }
3421
+ }
3422
+
3423
+ get '/seam/console/v1/sites/create'(): (
3424
+ parameters?: SeamConsoleV1SitesCreateParameters,
3425
+ options?: SeamConsoleV1SitesCreateOptions,
3426
+ ) => SeamConsoleV1SitesCreateRequest {
3427
+ const { client, defaults } = this
3428
+ if (!this.defaults.isUndocumentedApiEnabled) {
3429
+ throw new Error(
3430
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3431
+ )
3432
+ }
3433
+ return function seamConsoleV1SitesCreate(
3434
+ ...args: Parameters<SeamHttpSeamConsoleV1Sites['create']>
3435
+ ): ReturnType<SeamHttpSeamConsoleV1Sites['create']> {
3436
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults)
3437
+ return seam.create(...args)
3438
+ }
3439
+ }
3440
+
3441
+ get '/seam/console/v1/sites/delete'(): (
3442
+ parameters?: SeamConsoleV1SitesDeleteParameters,
3443
+ options?: SeamConsoleV1SitesDeleteOptions,
3444
+ ) => SeamConsoleV1SitesDeleteRequest {
3445
+ const { client, defaults } = this
3446
+ if (!this.defaults.isUndocumentedApiEnabled) {
3447
+ throw new Error(
3448
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3449
+ )
3450
+ }
3451
+ return function seamConsoleV1SitesDelete(
3452
+ ...args: Parameters<SeamHttpSeamConsoleV1Sites['delete']>
3453
+ ): ReturnType<SeamHttpSeamConsoleV1Sites['delete']> {
3454
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults)
3455
+ return seam.delete(...args)
3456
+ }
3457
+ }
3458
+
3459
+ get '/seam/console/v1/sites/list'(): (
3460
+ parameters?: SeamConsoleV1SitesListParameters,
3461
+ options?: SeamConsoleV1SitesListOptions,
3462
+ ) => SeamConsoleV1SitesListRequest {
3463
+ const { client, defaults } = this
3464
+ if (!this.defaults.isUndocumentedApiEnabled) {
3465
+ throw new Error(
3466
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3467
+ )
3468
+ }
3469
+ return function seamConsoleV1SitesList(
3470
+ ...args: Parameters<SeamHttpSeamConsoleV1Sites['list']>
3471
+ ): ReturnType<SeamHttpSeamConsoleV1Sites['list']> {
3472
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults)
3473
+ return seam.list(...args)
3474
+ }
3475
+ }
3476
+
3477
+ get '/seam/console/v1/sites/update'(): (
3478
+ parameters?: SeamConsoleV1SitesUpdateParameters,
3479
+ options?: SeamConsoleV1SitesUpdateOptions,
3480
+ ) => SeamConsoleV1SitesUpdateRequest {
3481
+ const { client, defaults } = this
3482
+ if (!this.defaults.isUndocumentedApiEnabled) {
3483
+ throw new Error(
3484
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3485
+ )
3486
+ }
3487
+ return function seamConsoleV1SitesUpdate(
3488
+ ...args: Parameters<SeamHttpSeamConsoleV1Sites['update']>
3489
+ ): ReturnType<SeamHttpSeamConsoleV1Sites['update']> {
3490
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults)
3491
+ return seam.update(...args)
3492
+ }
3493
+ }
3494
+
3243
3495
  get '/seam/console/v1/timelines/get'(): (
3244
3496
  parameters?: SeamConsoleV1TimelinesGetParameters,
3245
3497
  options?: SeamConsoleV1TimelinesGetOptions,
@@ -3552,6 +3804,27 @@ export class SeamHttpEndpoints {
3552
3804
  }
3553
3805
  }
3554
3806
 
3807
+ get '/seam/customer/v1/connectors/external_sites/list'(): (
3808
+ parameters?: SeamCustomerV1ConnectorsExternalSitesListParameters,
3809
+ options?: SeamCustomerV1ConnectorsExternalSitesListOptions,
3810
+ ) => SeamCustomerV1ConnectorsExternalSitesListRequest {
3811
+ const { client, defaults } = this
3812
+ if (!this.defaults.isUndocumentedApiEnabled) {
3813
+ throw new Error(
3814
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3815
+ )
3816
+ }
3817
+ return function seamCustomerV1ConnectorsExternalSitesList(
3818
+ ...args: Parameters<SeamHttpSeamCustomerV1ConnectorsExternalSites['list']>
3819
+ ): ReturnType<SeamHttpSeamCustomerV1ConnectorsExternalSites['list']> {
3820
+ const seam = SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
3821
+ client,
3822
+ defaults,
3823
+ )
3824
+ return seam.list(...args)
3825
+ }
3826
+ }
3827
+
3555
3828
  get '/seam/customer/v1/connectors/ical/validate-config'(): (
3556
3829
  parameters?: SeamCustomerV1ConnectorsIcalValidateConfigParameters,
3557
3830
  options?: SeamCustomerV1ConnectorsIcalValidateConfigOptions,
@@ -5213,6 +5486,10 @@ export type SeamHttpEndpointQueryPaths =
5213
5486
  | '/phones/get'
5214
5487
  | '/phones/list'
5215
5488
  | '/seam/console/v1/get_resource_locator'
5489
+ | '/seam/console/v1/lynx_migration/get_property_migration_status'
5490
+ | '/seam/console/v1/lynx_migration/get_reservation_migration_status'
5491
+ | '/seam/console/v1/lynx_migration/list_property_reservations'
5492
+ | '/seam/console/v1/sites/list'
5216
5493
  | '/seam/console/v1/timelines/get'
5217
5494
  | '/seam/customer/v1/access_grants/list'
5218
5495
  | '/seam/customer/v1/automation_runs/list'
@@ -5221,6 +5498,7 @@ export type SeamHttpEndpointQueryPaths =
5221
5498
  | '/seam/customer/v1/connectors/authorize'
5222
5499
  | '/seam/customer/v1/connectors/connector_types'
5223
5500
  | '/seam/customer/v1/connectors/list'
5501
+ | '/seam/customer/v1/connectors/external_sites/list'
5224
5502
  | '/seam/customer/v1/customers/automations/get'
5225
5503
  | '/seam/customer/v1/customers/list'
5226
5504
  | '/seam/customer/v1/customers/me'
@@ -5302,8 +5580,10 @@ export type SeamHttpEndpointMutationPaths =
5302
5580
  | '/access_grants/request_access_methods'
5303
5581
  | '/access_grants/update'
5304
5582
  | '/access_grants/unmanaged/update'
5583
+ | '/access_methods/assign_card'
5305
5584
  | '/access_methods/delete'
5306
5585
  | '/access_methods/encode'
5586
+ | '/access_methods/unlock_door'
5307
5587
  | '/acs/access_groups/add_user'
5308
5588
  | '/acs/access_groups/delete'
5309
5589
  | '/acs/access_groups/remove_user'
@@ -5316,6 +5596,7 @@ export type SeamHttpEndpointMutationPaths =
5316
5596
  | '/acs/credentials/update'
5317
5597
  | '/acs/encoders/encode_credential'
5318
5598
  | '/acs/encoders/scan_credential'
5599
+ | '/acs/encoders/scan_to_assign_credential'
5319
5600
  | '/acs/encoders/simulate/next_credential_encode_will_fail'
5320
5601
  | '/acs/encoders/simulate/next_credential_encode_will_succeed'
5321
5602
  | '/acs/encoders/simulate/next_credential_scan_will_fail'
@@ -5368,6 +5649,10 @@ export type SeamHttpEndpointMutationPaths =
5368
5649
  | '/noise_sensors/simulate/trigger_noise_threshold'
5369
5650
  | '/phones/deactivate'
5370
5651
  | '/phones/simulate/create_sandbox_phone'
5652
+ | '/seam/console/v1/lynx_migration/migrate_property'
5653
+ | '/seam/console/v1/sites/create'
5654
+ | '/seam/console/v1/sites/delete'
5655
+ | '/seam/console/v1/sites/update'
5371
5656
  | '/seam/customer/v1/access_grants/update'
5372
5657
  | '/seam/customer/v1/access_methods/encode'
5373
5658
  | '/seam/customer/v1/automations/delete'
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.117.0'
1
+ const seamapiJavascriptHttpVersion = '1.119.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion