@seamapi/http 1.105.2 → 1.107.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 +152 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +62 -4
- package/dist/index.cjs +154 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +12 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js +9 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.d.ts +2 -2
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js +2 -2
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.d.ts +47 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.js +107 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +7 -3
- package/lib/seam/connect/routes/seam-http-endpoints.js +22 -0
- package/lib/seam/connect/routes/seam-http-endpoints.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/acs/entrances/entrances.ts +38 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts +4 -8
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.ts +244 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/automations/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts +9 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +60 -0
- package/src/lib/version.ts +1 -1
|
@@ -214,6 +214,19 @@ export class SeamHttpAcsEntrances {
|
|
|
214
214
|
options,
|
|
215
215
|
})
|
|
216
216
|
}
|
|
217
|
+
|
|
218
|
+
unlock(
|
|
219
|
+
parameters?: AcsEntrancesUnlockParameters,
|
|
220
|
+
options: AcsEntrancesUnlockOptions = {},
|
|
221
|
+
): AcsEntrancesUnlockRequest {
|
|
222
|
+
return new SeamHttpRequest(this, {
|
|
223
|
+
pathname: '/acs/entrances/unlock',
|
|
224
|
+
method: 'POST',
|
|
225
|
+
body: parameters,
|
|
226
|
+
responseKey: 'action_attempt',
|
|
227
|
+
options,
|
|
228
|
+
})
|
|
229
|
+
}
|
|
217
230
|
}
|
|
218
231
|
|
|
219
232
|
export type AcsEntrancesGetParameters = RouteRequestBody<'/acs/entrances/get'>
|
|
@@ -299,3 +312,28 @@ export type AcsEntrancesListCredentialsWithAccessRequest = SeamHttpRequest<
|
|
|
299
312
|
>
|
|
300
313
|
|
|
301
314
|
export interface AcsEntrancesListCredentialsWithAccessOptions {}
|
|
315
|
+
|
|
316
|
+
export type AcsEntrancesUnlockParameters =
|
|
317
|
+
RouteRequestBody<'/acs/entrances/unlock'>
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Use AcsEntrancesUnlockParameters instead.
|
|
321
|
+
*/
|
|
322
|
+
export type AcsEntrancesUnlockBody = AcsEntrancesUnlockParameters
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @deprecated Use AcsEntrancesUnlockRequest instead.
|
|
326
|
+
*/
|
|
327
|
+
export type AcsEntrancesUnlockResponse = SetNonNullable<
|
|
328
|
+
Required<RouteResponse<'/acs/entrances/unlock'>>
|
|
329
|
+
>
|
|
330
|
+
|
|
331
|
+
export type AcsEntrancesUnlockRequest = SeamHttpRequest<
|
|
332
|
+
AcsEntrancesUnlockResponse,
|
|
333
|
+
'action_attempt'
|
|
334
|
+
>
|
|
335
|
+
|
|
336
|
+
export type AcsEntrancesUnlockOptions = Pick<
|
|
337
|
+
SeamHttpRequestOptions,
|
|
338
|
+
'waitForActionAttempt'
|
|
339
|
+
>
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type {
|
|
7
|
-
RouteRequestBody,
|
|
8
|
-
RouteRequestParams,
|
|
9
|
-
RouteResponse,
|
|
10
|
-
} from '@seamapi/types/connect'
|
|
6
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
|
|
11
7
|
|
|
12
8
|
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
13
9
|
import {
|
|
@@ -204,8 +200,8 @@ export class SeamHttpSeamCustomerV1Automations {
|
|
|
204
200
|
}
|
|
205
201
|
return new SeamHttpRequest(this, {
|
|
206
202
|
pathname: '/seam/customer/v1/automations/get',
|
|
207
|
-
method: '
|
|
208
|
-
|
|
203
|
+
method: 'POST',
|
|
204
|
+
body: parameters,
|
|
209
205
|
responseKey: undefined,
|
|
210
206
|
options,
|
|
211
207
|
})
|
|
@@ -254,7 +250,7 @@ export type SeamCustomerV1AutomationsDeleteRequest = SeamHttpRequest<
|
|
|
254
250
|
export interface SeamCustomerV1AutomationsDeleteOptions {}
|
|
255
251
|
|
|
256
252
|
export type SeamCustomerV1AutomationsGetParameters =
|
|
257
|
-
|
|
253
|
+
RouteRequestBody<'/seam/customer/v1/automations/get'>
|
|
258
254
|
|
|
259
255
|
/**
|
|
260
256
|
* @deprecated Use SeamCustomerV1AutomationsGetParameters instead.
|
|
@@ -0,0 +1,244 @@
|
|
|
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 {
|
|
7
|
+
RouteRequestBody,
|
|
8
|
+
RouteRequestParams,
|
|
9
|
+
RouteResponse,
|
|
10
|
+
} from '@seamapi/types/connect'
|
|
11
|
+
|
|
12
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
13
|
+
import {
|
|
14
|
+
getAuthHeadersForClientSessionToken,
|
|
15
|
+
warnOnInsecureuserIdentifierKey,
|
|
16
|
+
} from 'lib/seam/connect/auth.js'
|
|
17
|
+
import { type Client, createClient } from 'lib/seam/connect/client.js'
|
|
18
|
+
import {
|
|
19
|
+
isSeamHttpOptionsWithApiKey,
|
|
20
|
+
isSeamHttpOptionsWithClient,
|
|
21
|
+
isSeamHttpOptionsWithClientSessionToken,
|
|
22
|
+
isSeamHttpOptionsWithConsoleSessionToken,
|
|
23
|
+
isSeamHttpOptionsWithPersonalAccessToken,
|
|
24
|
+
type SeamHttpFromPublishableKeyOptions,
|
|
25
|
+
SeamHttpInvalidOptionsError,
|
|
26
|
+
type SeamHttpOptions,
|
|
27
|
+
type SeamHttpOptionsWithApiKey,
|
|
28
|
+
type SeamHttpOptionsWithClient,
|
|
29
|
+
type SeamHttpOptionsWithClientSessionToken,
|
|
30
|
+
type SeamHttpOptionsWithConsoleSessionToken,
|
|
31
|
+
type SeamHttpOptionsWithPersonalAccessToken,
|
|
32
|
+
type SeamHttpRequestOptions,
|
|
33
|
+
} from 'lib/seam/connect/options.js'
|
|
34
|
+
import {
|
|
35
|
+
limitToSeamHttpRequestOptions,
|
|
36
|
+
parseOptions,
|
|
37
|
+
} from 'lib/seam/connect/parse-options.js'
|
|
38
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
39
|
+
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
40
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
41
|
+
import type { SetNonNullable } from 'lib/types.js'
|
|
42
|
+
|
|
43
|
+
export class SeamHttpSeamCustomerV1CustomersAutomations {
|
|
44
|
+
client: Client
|
|
45
|
+
readonly defaults: Required<SeamHttpRequestOptions>
|
|
46
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
47
|
+
static ltsVersion = seamApiLtsVersion
|
|
48
|
+
|
|
49
|
+
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
50
|
+
const options = parseOptions(apiKeyOrOptions)
|
|
51
|
+
this.client = 'client' in options ? options.client : createClient(options)
|
|
52
|
+
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static fromClient(
|
|
56
|
+
client: SeamHttpOptionsWithClient['client'],
|
|
57
|
+
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
58
|
+
): SeamHttpSeamCustomerV1CustomersAutomations {
|
|
59
|
+
const constructorOptions = { ...options, client }
|
|
60
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
61
|
+
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
62
|
+
}
|
|
63
|
+
return new SeamHttpSeamCustomerV1CustomersAutomations(constructorOptions)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static fromApiKey(
|
|
67
|
+
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
68
|
+
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
69
|
+
): SeamHttpSeamCustomerV1CustomersAutomations {
|
|
70
|
+
const constructorOptions = { ...options, apiKey }
|
|
71
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
72
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
73
|
+
}
|
|
74
|
+
return new SeamHttpSeamCustomerV1CustomersAutomations(constructorOptions)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static fromClientSessionToken(
|
|
78
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
79
|
+
options: Omit<
|
|
80
|
+
SeamHttpOptionsWithClientSessionToken,
|
|
81
|
+
'clientSessionToken'
|
|
82
|
+
> = {},
|
|
83
|
+
): SeamHttpSeamCustomerV1CustomersAutomations {
|
|
84
|
+
const constructorOptions = { ...options, clientSessionToken }
|
|
85
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
86
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
87
|
+
}
|
|
88
|
+
return new SeamHttpSeamCustomerV1CustomersAutomations(constructorOptions)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static async fromPublishableKey(
|
|
92
|
+
publishableKey: string,
|
|
93
|
+
userIdentifierKey: string,
|
|
94
|
+
options: SeamHttpFromPublishableKeyOptions = {},
|
|
95
|
+
): Promise<SeamHttpSeamCustomerV1CustomersAutomations> {
|
|
96
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
97
|
+
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
98
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
99
|
+
throw new SeamHttpInvalidOptionsError(
|
|
100
|
+
'The client option cannot be used with SeamHttpSeamCustomerV1CustomersAutomations.fromPublishableKey',
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
const client = createClient(clientOptions)
|
|
104
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client)
|
|
105
|
+
const { token } = await clientSessions.getOrCreate({
|
|
106
|
+
user_identifier_key: userIdentifierKey,
|
|
107
|
+
})
|
|
108
|
+
return SeamHttpSeamCustomerV1CustomersAutomations.fromClientSessionToken(
|
|
109
|
+
token,
|
|
110
|
+
options,
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static fromConsoleSessionToken(
|
|
115
|
+
consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
|
|
116
|
+
workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
|
|
117
|
+
options: Omit<
|
|
118
|
+
SeamHttpOptionsWithConsoleSessionToken,
|
|
119
|
+
'consoleSessionToken' | 'workspaceId'
|
|
120
|
+
> = {},
|
|
121
|
+
): SeamHttpSeamCustomerV1CustomersAutomations {
|
|
122
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
123
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
124
|
+
throw new SeamHttpInvalidOptionsError(
|
|
125
|
+
'Missing consoleSessionToken or workspaceId',
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
return new SeamHttpSeamCustomerV1CustomersAutomations(constructorOptions)
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
static fromPersonalAccessToken(
|
|
132
|
+
personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
|
|
133
|
+
workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
|
|
134
|
+
options: Omit<
|
|
135
|
+
SeamHttpOptionsWithPersonalAccessToken,
|
|
136
|
+
'personalAccessToken' | 'workspaceId'
|
|
137
|
+
> = {},
|
|
138
|
+
): SeamHttpSeamCustomerV1CustomersAutomations {
|
|
139
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
140
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
141
|
+
throw new SeamHttpInvalidOptionsError(
|
|
142
|
+
'Missing personalAccessToken or workspaceId',
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
return new SeamHttpSeamCustomerV1CustomersAutomations(constructorOptions)
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
149
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
150
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
151
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
async updateClientSessionToken(
|
|
155
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
156
|
+
): Promise<void> {
|
|
157
|
+
const { headers } = this.client.defaults
|
|
158
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
159
|
+
clientSessionToken,
|
|
160
|
+
})
|
|
161
|
+
for (const key of Object.keys(authHeaders)) {
|
|
162
|
+
if (headers[key] == null) {
|
|
163
|
+
throw new Error(
|
|
164
|
+
'Cannot update a clientSessionToken on a client created without a clientSessionToken',
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
this.client.defaults.headers = { ...headers, ...authHeaders }
|
|
169
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client)
|
|
170
|
+
await clientSessions.get()
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
get(
|
|
174
|
+
parameters?: SeamCustomerV1CustomersAutomationsGetParameters,
|
|
175
|
+
options: SeamCustomerV1CustomersAutomationsGetOptions = {},
|
|
176
|
+
): SeamCustomerV1CustomersAutomationsGetRequest {
|
|
177
|
+
return new SeamHttpRequest(this, {
|
|
178
|
+
pathname: '/seam/customer/v1/customers/automations/get',
|
|
179
|
+
method: 'GET',
|
|
180
|
+
params: parameters,
|
|
181
|
+
responseKey: 'automation',
|
|
182
|
+
options,
|
|
183
|
+
})
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
update(
|
|
187
|
+
parameters?: SeamCustomerV1CustomersAutomationsUpdateParameters,
|
|
188
|
+
options: SeamCustomerV1CustomersAutomationsUpdateOptions = {},
|
|
189
|
+
): SeamCustomerV1CustomersAutomationsUpdateRequest {
|
|
190
|
+
return new SeamHttpRequest(this, {
|
|
191
|
+
pathname: '/seam/customer/v1/customers/automations/update',
|
|
192
|
+
method: 'PATCH',
|
|
193
|
+
body: parameters,
|
|
194
|
+
responseKey: undefined,
|
|
195
|
+
options,
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type SeamCustomerV1CustomersAutomationsGetParameters =
|
|
201
|
+
RouteRequestParams<'/seam/customer/v1/customers/automations/get'>
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @deprecated Use SeamCustomerV1CustomersAutomationsGetParameters instead.
|
|
205
|
+
*/
|
|
206
|
+
export type SeamCustomerV1CustomersAutomationsGetParams =
|
|
207
|
+
SeamCustomerV1CustomersAutomationsGetParameters
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @deprecated Use SeamCustomerV1CustomersAutomationsGetRequest instead.
|
|
211
|
+
*/
|
|
212
|
+
export type SeamCustomerV1CustomersAutomationsGetResponse = SetNonNullable<
|
|
213
|
+
Required<RouteResponse<'/seam/customer/v1/customers/automations/get'>>
|
|
214
|
+
>
|
|
215
|
+
|
|
216
|
+
export type SeamCustomerV1CustomersAutomationsGetRequest = SeamHttpRequest<
|
|
217
|
+
SeamCustomerV1CustomersAutomationsGetResponse,
|
|
218
|
+
'automation'
|
|
219
|
+
>
|
|
220
|
+
|
|
221
|
+
export interface SeamCustomerV1CustomersAutomationsGetOptions {}
|
|
222
|
+
|
|
223
|
+
export type SeamCustomerV1CustomersAutomationsUpdateParameters =
|
|
224
|
+
RouteRequestBody<'/seam/customer/v1/customers/automations/update'>
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @deprecated Use SeamCustomerV1CustomersAutomationsUpdateParameters instead.
|
|
228
|
+
*/
|
|
229
|
+
export type SeamCustomerV1CustomersAutomationsUpdateBody =
|
|
230
|
+
SeamCustomerV1CustomersAutomationsUpdateParameters
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Use SeamCustomerV1CustomersAutomationsUpdateRequest instead.
|
|
234
|
+
*/
|
|
235
|
+
export type SeamCustomerV1CustomersAutomationsUpdateResponse = SetNonNullable<
|
|
236
|
+
Required<RouteResponse<'/seam/customer/v1/customers/automations/update'>>
|
|
237
|
+
>
|
|
238
|
+
|
|
239
|
+
export type SeamCustomerV1CustomersAutomationsUpdateRequest = SeamHttpRequest<
|
|
240
|
+
void,
|
|
241
|
+
undefined
|
|
242
|
+
>
|
|
243
|
+
|
|
244
|
+
export interface SeamCustomerV1CustomersAutomationsUpdateOptions {}
|
|
@@ -40,6 +40,8 @@ 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 { SeamHttpSeamCustomerV1CustomersAutomations } from './automations/index.js'
|
|
44
|
+
|
|
43
45
|
export class SeamHttpSeamCustomerV1Customers {
|
|
44
46
|
client: Client
|
|
45
47
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
@@ -170,6 +172,13 @@ export class SeamHttpSeamCustomerV1Customers {
|
|
|
170
172
|
await clientSessions.get()
|
|
171
173
|
}
|
|
172
174
|
|
|
175
|
+
get automations(): SeamHttpSeamCustomerV1CustomersAutomations {
|
|
176
|
+
return SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
177
|
+
this.client,
|
|
178
|
+
this.defaults,
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
|
|
173
182
|
list(
|
|
174
183
|
parameters?: SeamCustomerV1CustomersListParameters,
|
|
175
184
|
options: SeamCustomerV1CustomersListOptions = {},
|
|
@@ -282,6 +282,9 @@ import {
|
|
|
282
282
|
type AcsEntrancesListOptions,
|
|
283
283
|
type AcsEntrancesListParameters,
|
|
284
284
|
type AcsEntrancesListRequest,
|
|
285
|
+
type AcsEntrancesUnlockOptions,
|
|
286
|
+
type AcsEntrancesUnlockParameters,
|
|
287
|
+
type AcsEntrancesUnlockRequest,
|
|
285
288
|
SeamHttpAcsEntrances,
|
|
286
289
|
} from './acs/entrances/index.js'
|
|
287
290
|
import {
|
|
@@ -665,6 +668,15 @@ import {
|
|
|
665
668
|
type SeamCustomerV1ConnectorsUpdateRequest,
|
|
666
669
|
SeamHttpSeamCustomerV1Connectors,
|
|
667
670
|
} from './seam/customer/v1/connectors/index.js'
|
|
671
|
+
import {
|
|
672
|
+
type SeamCustomerV1CustomersAutomationsGetOptions,
|
|
673
|
+
type SeamCustomerV1CustomersAutomationsGetParameters,
|
|
674
|
+
type SeamCustomerV1CustomersAutomationsGetRequest,
|
|
675
|
+
type SeamCustomerV1CustomersAutomationsUpdateOptions,
|
|
676
|
+
type SeamCustomerV1CustomersAutomationsUpdateParameters,
|
|
677
|
+
type SeamCustomerV1CustomersAutomationsUpdateRequest,
|
|
678
|
+
SeamHttpSeamCustomerV1CustomersAutomations,
|
|
679
|
+
} from './seam/customer/v1/customers/automations/index.js'
|
|
668
680
|
import {
|
|
669
681
|
type SeamCustomerV1CustomersListOptions,
|
|
670
682
|
type SeamCustomerV1CustomersListParameters,
|
|
@@ -2076,6 +2088,19 @@ export class SeamHttpEndpoints {
|
|
|
2076
2088
|
}
|
|
2077
2089
|
}
|
|
2078
2090
|
|
|
2091
|
+
get '/acs/entrances/unlock'(): (
|
|
2092
|
+
parameters?: AcsEntrancesUnlockParameters,
|
|
2093
|
+
options?: AcsEntrancesUnlockOptions,
|
|
2094
|
+
) => AcsEntrancesUnlockRequest {
|
|
2095
|
+
const { client, defaults } = this
|
|
2096
|
+
return function acsEntrancesUnlock(
|
|
2097
|
+
...args: Parameters<SeamHttpAcsEntrances['unlock']>
|
|
2098
|
+
): ReturnType<SeamHttpAcsEntrances['unlock']> {
|
|
2099
|
+
const seam = SeamHttpAcsEntrances.fromClient(client, defaults)
|
|
2100
|
+
return seam.unlock(...args)
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2079
2104
|
get '/acs/systems/get'(): (
|
|
2080
2105
|
parameters?: AcsSystemsGetParameters,
|
|
2081
2106
|
options?: AcsSystemsGetOptions,
|
|
@@ -3480,6 +3505,38 @@ export class SeamHttpEndpoints {
|
|
|
3480
3505
|
}
|
|
3481
3506
|
}
|
|
3482
3507
|
|
|
3508
|
+
get '/seam/customer/v1/customers/automations/get'(): (
|
|
3509
|
+
parameters?: SeamCustomerV1CustomersAutomationsGetParameters,
|
|
3510
|
+
options?: SeamCustomerV1CustomersAutomationsGetOptions,
|
|
3511
|
+
) => SeamCustomerV1CustomersAutomationsGetRequest {
|
|
3512
|
+
const { client, defaults } = this
|
|
3513
|
+
return function seamCustomerV1CustomersAutomationsGet(
|
|
3514
|
+
...args: Parameters<SeamHttpSeamCustomerV1CustomersAutomations['get']>
|
|
3515
|
+
): ReturnType<SeamHttpSeamCustomerV1CustomersAutomations['get']> {
|
|
3516
|
+
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
3517
|
+
client,
|
|
3518
|
+
defaults,
|
|
3519
|
+
)
|
|
3520
|
+
return seam.get(...args)
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3524
|
+
get '/seam/customer/v1/customers/automations/update'(): (
|
|
3525
|
+
parameters?: SeamCustomerV1CustomersAutomationsUpdateParameters,
|
|
3526
|
+
options?: SeamCustomerV1CustomersAutomationsUpdateOptions,
|
|
3527
|
+
) => SeamCustomerV1CustomersAutomationsUpdateRequest {
|
|
3528
|
+
const { client, defaults } = this
|
|
3529
|
+
return function seamCustomerV1CustomersAutomationsUpdate(
|
|
3530
|
+
...args: Parameters<SeamHttpSeamCustomerV1CustomersAutomations['update']>
|
|
3531
|
+
): ReturnType<SeamHttpSeamCustomerV1CustomersAutomations['update']> {
|
|
3532
|
+
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
3533
|
+
client,
|
|
3534
|
+
defaults,
|
|
3535
|
+
)
|
|
3536
|
+
return seam.update(...args)
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3483
3540
|
get '/seam/customer/v1/customers/list'(): (
|
|
3484
3541
|
parameters?: SeamCustomerV1CustomersListParameters,
|
|
3485
3542
|
options?: SeamCustomerV1CustomersListOptions,
|
|
@@ -4994,6 +5051,7 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4994
5051
|
| '/seam/customer/v1/connectors/authorize'
|
|
4995
5052
|
| '/seam/customer/v1/connectors/connector_types'
|
|
4996
5053
|
| '/seam/customer/v1/connectors/list'
|
|
5054
|
+
| '/seam/customer/v1/customers/automations/get'
|
|
4997
5055
|
| '/seam/customer/v1/customers/list'
|
|
4998
5056
|
| '/seam/customer/v1/customers/me'
|
|
4999
5057
|
| '/seam/customer/v1/encoders/list'
|
|
@@ -5089,6 +5147,7 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
5089
5147
|
| '/acs/encoders/simulate/next_credential_scan_will_fail'
|
|
5090
5148
|
| '/acs/encoders/simulate/next_credential_scan_will_succeed'
|
|
5091
5149
|
| '/acs/entrances/grant_access'
|
|
5150
|
+
| '/acs/entrances/unlock'
|
|
5092
5151
|
| '/acs/systems/report_devices'
|
|
5093
5152
|
| '/acs/users/add_to_access_group'
|
|
5094
5153
|
| '/acs/users/create'
|
|
@@ -5142,6 +5201,7 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
5142
5201
|
| '/seam/customer/v1/connectors/delete'
|
|
5143
5202
|
| '/seam/customer/v1/connectors/sync'
|
|
5144
5203
|
| '/seam/customer/v1/connectors/update'
|
|
5204
|
+
| '/seam/customer/v1/customers/automations/update'
|
|
5145
5205
|
| '/seam/customer/v1/customers/open_portal'
|
|
5146
5206
|
| '/seam/customer/v1/settings/update'
|
|
5147
5207
|
| '/seam/customer/v1/spaces/create'
|
package/src/lib/version.ts
CHANGED