@seamapi/http 1.87.0 → 1.89.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 (34) hide show
  1. package/dist/connect.cjs +182 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +62 -3
  4. package/dist/index.cjs +184 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.d.ts +34 -0
  8. package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js +104 -0
  9. package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js.map +1 -0
  10. package/lib/seam/connect/routes/seam/customer/v1/access-grants/index.d.ts +1 -0
  11. package/lib/seam/connect/routes/seam/customer/v1/access-grants/index.js +6 -0
  12. package/lib/seam/connect/routes/seam/customer/v1/access-grants/index.js.map +1 -0
  13. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.d.ts +26 -0
  14. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +24 -0
  15. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
  16. package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +1 -0
  17. package/lib/seam/connect/routes/seam/customer/v1/index.js +1 -0
  18. package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
  19. package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +2 -0
  20. package/lib/seam/connect/routes/seam/customer/v1/v1.js +4 -0
  21. package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
  22. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +7 -3
  23. package/lib/seam/connect/routes/seam-http-endpoints.js +31 -0
  24. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  25. package/lib/version.d.ts +1 -1
  26. package/lib/version.js +1 -1
  27. package/package.json +3 -3
  28. package/src/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.ts +214 -0
  29. package/src/lib/seam/connect/routes/seam/customer/v1/access-grants/index.ts +6 -0
  30. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +82 -0
  31. package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +1 -0
  32. package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +8 -0
  33. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +72 -0
  34. package/src/lib/version.ts +1 -1
@@ -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 SeamHttpSeamCustomerV1AccessGrants {
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
+ ): SeamHttpSeamCustomerV1AccessGrants {
60
+ const constructorOptions = { ...options, client }
61
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
62
+ throw new SeamHttpInvalidOptionsError('Missing client')
63
+ }
64
+ return new SeamHttpSeamCustomerV1AccessGrants(constructorOptions)
65
+ }
66
+
67
+ static fromApiKey(
68
+ apiKey: SeamHttpOptionsWithApiKey['apiKey'],
69
+ options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
70
+ ): SeamHttpSeamCustomerV1AccessGrants {
71
+ const constructorOptions = { ...options, apiKey }
72
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
73
+ throw new SeamHttpInvalidOptionsError('Missing apiKey')
74
+ }
75
+ return new SeamHttpSeamCustomerV1AccessGrants(constructorOptions)
76
+ }
77
+
78
+ static fromClientSessionToken(
79
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
80
+ options: Omit<
81
+ SeamHttpOptionsWithClientSessionToken,
82
+ 'clientSessionToken'
83
+ > = {},
84
+ ): SeamHttpSeamCustomerV1AccessGrants {
85
+ const constructorOptions = { ...options, clientSessionToken }
86
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
87
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
88
+ }
89
+ return new SeamHttpSeamCustomerV1AccessGrants(constructorOptions)
90
+ }
91
+
92
+ static async fromPublishableKey(
93
+ publishableKey: string,
94
+ userIdentifierKey: string,
95
+ options: SeamHttpFromPublishableKeyOptions = {},
96
+ ): Promise<SeamHttpSeamCustomerV1AccessGrants> {
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 SeamHttpSeamCustomerV1AccessGrants.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 SeamHttpSeamCustomerV1AccessGrants.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
+ ): SeamHttpSeamCustomerV1AccessGrants {
123
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId }
124
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
125
+ throw new SeamHttpInvalidOptionsError(
126
+ 'Missing consoleSessionToken or workspaceId',
127
+ )
128
+ }
129
+ return new SeamHttpSeamCustomerV1AccessGrants(constructorOptions)
130
+ }
131
+
132
+ static fromPersonalAccessToken(
133
+ personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
134
+ workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
135
+ options: Omit<
136
+ SeamHttpOptionsWithPersonalAccessToken,
137
+ 'personalAccessToken' | 'workspaceId'
138
+ > = {},
139
+ ): SeamHttpSeamCustomerV1AccessGrants {
140
+ const constructorOptions = { ...options, personalAccessToken, workspaceId }
141
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
142
+ throw new SeamHttpInvalidOptionsError(
143
+ 'Missing personalAccessToken or workspaceId',
144
+ )
145
+ }
146
+ return new SeamHttpSeamCustomerV1AccessGrants(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?: SeamCustomerV1AccessGrantsListParameters,
176
+ options: SeamCustomerV1AccessGrantsListOptions = {},
177
+ ): SeamCustomerV1AccessGrantsListRequest {
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/access_grants/list',
185
+ method: 'POST',
186
+ body: parameters,
187
+ responseKey: 'access_grants',
188
+ options,
189
+ })
190
+ }
191
+ }
192
+
193
+ export type SeamCustomerV1AccessGrantsListParameters =
194
+ RouteRequestBody<'/seam/customer/v1/access_grants/list'>
195
+
196
+ /**
197
+ * @deprecated Use SeamCustomerV1AccessGrantsListParameters instead.
198
+ */
199
+ export type SeamCustomerV1AccessGrantsListParams =
200
+ SeamCustomerV1AccessGrantsListParameters
201
+
202
+ /**
203
+ * @deprecated Use SeamCustomerV1AccessGrantsListRequest instead.
204
+ */
205
+ export type SeamCustomerV1AccessGrantsListResponse = SetNonNullable<
206
+ Required<RouteResponse<'/seam/customer/v1/access_grants/list'>>
207
+ >
208
+
209
+ export type SeamCustomerV1AccessGrantsListRequest = SeamHttpRequest<
210
+ SeamCustomerV1AccessGrantsListResponse,
211
+ 'access_grants'
212
+ >
213
+
214
+ export interface SeamCustomerV1AccessGrantsListOptions {}
@@ -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 './access-grants.js'
@@ -193,6 +193,24 @@ export class SeamHttpSeamCustomerV1Connectors {
193
193
  })
194
194
  }
195
195
 
196
+ delete(
197
+ parameters?: SeamCustomerV1ConnectorsDeleteParameters,
198
+ options: SeamCustomerV1ConnectorsDeleteOptions = {},
199
+ ): SeamCustomerV1ConnectorsDeleteRequest {
200
+ if (!this.defaults.isUndocumentedApiEnabled) {
201
+ throw new Error(
202
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
203
+ )
204
+ }
205
+ return new SeamHttpRequest(this, {
206
+ pathname: '/seam/customer/v1/connectors/delete',
207
+ method: 'POST',
208
+ body: parameters,
209
+ responseKey: 'connector',
210
+ options,
211
+ })
212
+ }
213
+
196
214
  list(
197
215
  parameters?: SeamCustomerV1ConnectorsListParameters,
198
216
  options: SeamCustomerV1ConnectorsListOptions = {},
@@ -228,6 +246,24 @@ export class SeamHttpSeamCustomerV1Connectors {
228
246
  options,
229
247
  })
230
248
  }
249
+
250
+ update(
251
+ parameters?: SeamCustomerV1ConnectorsUpdateParameters,
252
+ options: SeamCustomerV1ConnectorsUpdateOptions = {},
253
+ ): SeamCustomerV1ConnectorsUpdateRequest {
254
+ if (!this.defaults.isUndocumentedApiEnabled) {
255
+ throw new Error(
256
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
257
+ )
258
+ }
259
+ return new SeamHttpRequest(this, {
260
+ pathname: '/seam/customer/v1/connectors/update',
261
+ method: 'POST',
262
+ body: parameters,
263
+ responseKey: 'connector',
264
+ options,
265
+ })
266
+ }
231
267
  }
232
268
 
233
269
  export type SeamCustomerV1ConnectorsCreateParameters =
@@ -253,6 +289,29 @@ export type SeamCustomerV1ConnectorsCreateRequest = SeamHttpRequest<
253
289
 
254
290
  export interface SeamCustomerV1ConnectorsCreateOptions {}
255
291
 
292
+ export type SeamCustomerV1ConnectorsDeleteParameters =
293
+ RouteRequestBody<'/seam/customer/v1/connectors/delete'>
294
+
295
+ /**
296
+ * @deprecated Use SeamCustomerV1ConnectorsDeleteParameters instead.
297
+ */
298
+ export type SeamCustomerV1ConnectorsDeleteBody =
299
+ SeamCustomerV1ConnectorsDeleteParameters
300
+
301
+ /**
302
+ * @deprecated Use SeamCustomerV1ConnectorsDeleteRequest instead.
303
+ */
304
+ export type SeamCustomerV1ConnectorsDeleteResponse = SetNonNullable<
305
+ Required<RouteResponse<'/seam/customer/v1/connectors/delete'>>
306
+ >
307
+
308
+ export type SeamCustomerV1ConnectorsDeleteRequest = SeamHttpRequest<
309
+ SeamCustomerV1ConnectorsDeleteResponse,
310
+ 'connector'
311
+ >
312
+
313
+ export interface SeamCustomerV1ConnectorsDeleteOptions {}
314
+
256
315
  export type SeamCustomerV1ConnectorsListParameters =
257
316
  RouteRequestParams<'/seam/customer/v1/connectors/list'>
258
317
 
@@ -298,3 +357,26 @@ export type SeamCustomerV1ConnectorsSyncRequest = SeamHttpRequest<
298
357
  >
299
358
 
300
359
  export interface SeamCustomerV1ConnectorsSyncOptions {}
360
+
361
+ export type SeamCustomerV1ConnectorsUpdateParameters =
362
+ RouteRequestBody<'/seam/customer/v1/connectors/update'>
363
+
364
+ /**
365
+ * @deprecated Use SeamCustomerV1ConnectorsUpdateParameters instead.
366
+ */
367
+ export type SeamCustomerV1ConnectorsUpdateBody =
368
+ SeamCustomerV1ConnectorsUpdateParameters
369
+
370
+ /**
371
+ * @deprecated Use SeamCustomerV1ConnectorsUpdateRequest instead.
372
+ */
373
+ export type SeamCustomerV1ConnectorsUpdateResponse = SetNonNullable<
374
+ Required<RouteResponse<'/seam/customer/v1/connectors/update'>>
375
+ >
376
+
377
+ export type SeamCustomerV1ConnectorsUpdateRequest = SeamHttpRequest<
378
+ SeamCustomerV1ConnectorsUpdateResponse,
379
+ 'connector'
380
+ >
381
+
382
+ export interface SeamCustomerV1ConnectorsUpdateOptions {}
@@ -3,6 +3,7 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
+ export * from './access-grants/index.js'
6
7
  export * from './automation-runs/index.js'
7
8
  export * from './automations/index.js'
8
9
  export * from './connectors/index.js'
@@ -33,6 +33,7 @@ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/
33
33
  import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
34
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
35
 
36
+ import { SeamHttpSeamCustomerV1AccessGrants } from './access-grants/index.js'
36
37
  import { SeamHttpSeamCustomerV1AutomationRuns } from './automation-runs/index.js'
37
38
  import { SeamHttpSeamCustomerV1Automations } from './automations/index.js'
38
39
  import { SeamHttpSeamCustomerV1Connectors } from './connectors/index.js'
@@ -175,6 +176,13 @@ export class SeamHttpSeamCustomerV1 {
175
176
  await clientSessions.get()
176
177
  }
177
178
 
179
+ get accessGrants(): SeamHttpSeamCustomerV1AccessGrants {
180
+ return SeamHttpSeamCustomerV1AccessGrants.fromClient(
181
+ this.client,
182
+ this.defaults,
183
+ )
184
+ }
185
+
178
186
  get automationRuns(): SeamHttpSeamCustomerV1AutomationRuns {
179
187
  return SeamHttpSeamCustomerV1AutomationRuns.fromClient(
180
188
  this.client,
@@ -581,6 +581,12 @@ import {
581
581
  type SeamConsoleV1TimelinesGetRequest,
582
582
  SeamHttpSeamConsoleV1Timelines,
583
583
  } from './seam/console/v1/timelines/index.js'
584
+ import {
585
+ type SeamCustomerV1AccessGrantsListOptions,
586
+ type SeamCustomerV1AccessGrantsListParameters,
587
+ type SeamCustomerV1AccessGrantsListRequest,
588
+ SeamHttpSeamCustomerV1AccessGrants,
589
+ } from './seam/customer/v1/access-grants/index.js'
584
590
  import {
585
591
  type SeamCustomerV1AutomationRunsListOptions,
586
592
  type SeamCustomerV1AutomationRunsListParameters,
@@ -603,12 +609,18 @@ import {
603
609
  type SeamCustomerV1ConnectorsCreateOptions,
604
610
  type SeamCustomerV1ConnectorsCreateParameters,
605
611
  type SeamCustomerV1ConnectorsCreateRequest,
612
+ type SeamCustomerV1ConnectorsDeleteOptions,
613
+ type SeamCustomerV1ConnectorsDeleteParameters,
614
+ type SeamCustomerV1ConnectorsDeleteRequest,
606
615
  type SeamCustomerV1ConnectorsListOptions,
607
616
  type SeamCustomerV1ConnectorsListParameters,
608
617
  type SeamCustomerV1ConnectorsListRequest,
609
618
  type SeamCustomerV1ConnectorsSyncOptions,
610
619
  type SeamCustomerV1ConnectorsSyncParameters,
611
620
  type SeamCustomerV1ConnectorsSyncRequest,
621
+ type SeamCustomerV1ConnectorsUpdateOptions,
622
+ type SeamCustomerV1ConnectorsUpdateParameters,
623
+ type SeamCustomerV1ConnectorsUpdateRequest,
612
624
  SeamHttpSeamCustomerV1Connectors,
613
625
  } from './seam/customer/v1/connectors/index.js'
614
626
  import {
@@ -3034,6 +3046,27 @@ export class SeamHttpEndpoints {
3034
3046
  }
3035
3047
  }
3036
3048
 
3049
+ get '/seam/customer/v1/access_grants/list'(): (
3050
+ parameters?: SeamCustomerV1AccessGrantsListParameters,
3051
+ options?: SeamCustomerV1AccessGrantsListOptions,
3052
+ ) => SeamCustomerV1AccessGrantsListRequest {
3053
+ const { client, defaults } = this
3054
+ if (!this.defaults.isUndocumentedApiEnabled) {
3055
+ throw new Error(
3056
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3057
+ )
3058
+ }
3059
+ return function seamCustomerV1AccessGrantsList(
3060
+ ...args: Parameters<SeamHttpSeamCustomerV1AccessGrants['list']>
3061
+ ): ReturnType<SeamHttpSeamCustomerV1AccessGrants['list']> {
3062
+ const seam = SeamHttpSeamCustomerV1AccessGrants.fromClient(
3063
+ client,
3064
+ defaults,
3065
+ )
3066
+ return seam.list(...args)
3067
+ }
3068
+ }
3069
+
3037
3070
  get '/seam/customer/v1/automation_runs/list'(): (
3038
3071
  parameters?: SeamCustomerV1AutomationRunsListParameters,
3039
3072
  options?: SeamCustomerV1AutomationRunsListOptions,
@@ -3136,6 +3169,24 @@ export class SeamHttpEndpoints {
3136
3169
  }
3137
3170
  }
3138
3171
 
3172
+ get '/seam/customer/v1/connectors/delete'(): (
3173
+ parameters?: SeamCustomerV1ConnectorsDeleteParameters,
3174
+ options?: SeamCustomerV1ConnectorsDeleteOptions,
3175
+ ) => SeamCustomerV1ConnectorsDeleteRequest {
3176
+ const { client, defaults } = this
3177
+ if (!this.defaults.isUndocumentedApiEnabled) {
3178
+ throw new Error(
3179
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3180
+ )
3181
+ }
3182
+ return function seamCustomerV1ConnectorsDelete(
3183
+ ...args: Parameters<SeamHttpSeamCustomerV1Connectors['delete']>
3184
+ ): ReturnType<SeamHttpSeamCustomerV1Connectors['delete']> {
3185
+ const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults)
3186
+ return seam.delete(...args)
3187
+ }
3188
+ }
3189
+
3139
3190
  get '/seam/customer/v1/connectors/list'(): (
3140
3191
  parameters?: SeamCustomerV1ConnectorsListParameters,
3141
3192
  options?: SeamCustomerV1ConnectorsListOptions,
@@ -3172,6 +3223,24 @@ export class SeamHttpEndpoints {
3172
3223
  }
3173
3224
  }
3174
3225
 
3226
+ get '/seam/customer/v1/connectors/update'(): (
3227
+ parameters?: SeamCustomerV1ConnectorsUpdateParameters,
3228
+ options?: SeamCustomerV1ConnectorsUpdateOptions,
3229
+ ) => SeamCustomerV1ConnectorsUpdateRequest {
3230
+ const { client, defaults } = this
3231
+ if (!this.defaults.isUndocumentedApiEnabled) {
3232
+ throw new Error(
3233
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3234
+ )
3235
+ }
3236
+ return function seamCustomerV1ConnectorsUpdate(
3237
+ ...args: Parameters<SeamHttpSeamCustomerV1Connectors['update']>
3238
+ ): ReturnType<SeamHttpSeamCustomerV1Connectors['update']> {
3239
+ const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults)
3240
+ return seam.update(...args)
3241
+ }
3242
+ }
3243
+
3175
3244
  get '/seam/customer/v1/events/list'(): (
3176
3245
  parameters?: SeamCustomerV1EventsListParameters,
3177
3246
  options?: SeamCustomerV1EventsListOptions,
@@ -4554,6 +4623,7 @@ export type SeamHttpEndpointQueryPaths =
4554
4623
  | '/phones/list'
4555
4624
  | '/seam/console/v1/get_resource_locator'
4556
4625
  | '/seam/console/v1/timelines/get'
4626
+ | '/seam/customer/v1/access_grants/list'
4557
4627
  | '/seam/customer/v1/automation_runs/list'
4558
4628
  | '/seam/customer/v1/automations/get'
4559
4629
  | '/seam/customer/v1/connectors/list'
@@ -4689,7 +4759,9 @@ export type SeamHttpEndpointMutationPaths =
4689
4759
  | '/seam/customer/v1/automations/delete'
4690
4760
  | '/seam/customer/v1/automations/update'
4691
4761
  | '/seam/customer/v1/connectors/create'
4762
+ | '/seam/customer/v1/connectors/delete'
4692
4763
  | '/seam/customer/v1/connectors/sync'
4764
+ | '/seam/customer/v1/connectors/update'
4693
4765
  | '/seam/customer/v1/settings/update'
4694
4766
  | '/seam/customer/v1/spaces/create'
4695
4767
  | '/spaces/add_acs_entrances'
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.87.0'
1
+ const seamapiJavascriptHttpVersion = '1.89.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion