@seamapi/http 1.40.1 → 1.42.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 (106) hide show
  1. package/dist/connect.cjs +638 -213
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +256 -224
  4. package/lib/seam/connect/resolve-action-attempt.d.ts +32 -168
  5. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +12 -0
  6. package/lib/seam/connect/routes/access-methods/access-methods.js +9 -0
  7. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  8. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +0 -12
  9. package/lib/seam/connect/routes/acs/encoders/encoders.js +0 -9
  10. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
  11. package/lib/seam/connect/routes/customers/customers.d.ts +47 -0
  12. package/lib/seam/connect/routes/customers/customers.js +105 -0
  13. package/lib/seam/connect/routes/customers/customers.js.map +1 -0
  14. package/lib/seam/connect/routes/customers/index.d.ts +1 -0
  15. package/lib/seam/connect/routes/{unstable-partner/resources → customers}/index.js +1 -1
  16. package/lib/seam/connect/routes/customers/index.js.map +1 -0
  17. package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +1 -1
  18. package/lib/seam/connect/routes/index.d.ts +1 -0
  19. package/lib/seam/connect/routes/index.js +1 -0
  20. package/lib/seam/connect/routes/index.js.map +1 -1
  21. package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +1 -1
  22. package/lib/seam/connect/routes/seam/customer/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/seam/{partner/v1/resources → customer}/index.js +1 -1
  24. package/lib/seam/connect/routes/seam/customer/index.js.map +1 -0
  25. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.d.ts +34 -0
  26. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js +102 -0
  27. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js.map +1 -0
  28. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.d.ts +1 -0
  29. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js +6 -0
  30. package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js.map +1 -0
  31. package/lib/seam/connect/routes/seam/customer/v1/automations/automations.d.ts +60 -0
  32. package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js +126 -0
  33. package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js.map +1 -0
  34. package/lib/seam/connect/routes/seam/customer/v1/automations/index.d.ts +1 -0
  35. package/lib/seam/connect/routes/seam/customer/v1/automations/index.js +6 -0
  36. package/lib/seam/connect/routes/seam/customer/v1/automations/index.js.map +1 -0
  37. package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +5 -0
  38. package/lib/seam/connect/routes/seam/customer/v1/index.js +10 -0
  39. package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -0
  40. package/lib/seam/connect/routes/seam/customer/v1/portals/index.d.ts +1 -0
  41. package/lib/seam/connect/routes/seam/customer/v1/portals/index.js +6 -0
  42. package/lib/seam/connect/routes/seam/customer/v1/portals/index.js.map +1 -0
  43. package/lib/seam/connect/routes/{unstable-partner/resources/resources.d.ts → seam/customer/v1/portals/portals.d.ts} +20 -20
  44. package/lib/seam/connect/routes/{unstable-partner/resources/resources.js → seam/customer/v1/portals/portals.js} +21 -21
  45. package/lib/seam/connect/routes/{unstable-partner/resources/resources.js.map → seam/customer/v1/portals/portals.js.map} +1 -1
  46. package/lib/seam/connect/routes/seam/customer/v1/settings/index.d.ts +1 -0
  47. package/lib/seam/connect/routes/seam/customer/v1/settings/index.js +6 -0
  48. package/lib/seam/connect/routes/seam/customer/v1/settings/index.js.map +1 -0
  49. package/lib/seam/connect/routes/seam/{partner/v1/resources/resources.d.ts → customer/v1/settings/settings.d.ts} +15 -15
  50. package/lib/seam/connect/routes/seam/{partner/v1/resources/resources.js → customer/v1/settings/settings.js} +14 -14
  51. package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -0
  52. package/lib/seam/connect/routes/seam/{partner → customer}/v1/v1.d.ts +15 -11
  53. package/lib/seam/connect/routes/seam/{partner → customer}/v1/v1.js +23 -15
  54. package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -0
  55. package/lib/seam/connect/routes/seam/index.d.ts +1 -0
  56. package/lib/seam/connect/routes/seam/index.js +1 -0
  57. package/lib/seam/connect/routes/seam/index.js.map +1 -1
  58. package/lib/seam/connect/routes/seam/partner/v1/index.d.ts +0 -2
  59. package/lib/seam/connect/routes/seam/partner/v1/index.js +0 -2
  60. package/lib/seam/connect/routes/seam/partner/v1/index.js.map +1 -1
  61. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +19 -10
  62. package/lib/seam/connect/routes/seam-http-endpoints.js +84 -27
  63. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  64. package/lib/seam/connect/routes/seam-http.d.ts +2 -0
  65. package/lib/seam/connect/routes/seam-http.js +4 -0
  66. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  67. package/lib/seam/connect/routes/unstable-partner/index.d.ts +0 -1
  68. package/lib/seam/connect/routes/unstable-partner/index.js +0 -1
  69. package/lib/seam/connect/routes/unstable-partner/index.js.map +1 -1
  70. package/lib/seam/connect/routes/unstable-partner/unstable-partner.d.ts +0 -2
  71. package/lib/seam/connect/routes/unstable-partner/unstable-partner.js +0 -4
  72. package/lib/seam/connect/routes/unstable-partner/unstable-partner.js.map +1 -1
  73. package/lib/version.d.ts +1 -1
  74. package/lib/version.js +1 -1
  75. package/package.json +3 -3
  76. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +38 -0
  77. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -39
  78. package/src/lib/seam/connect/routes/customers/customers.ts +234 -0
  79. package/src/lib/seam/connect/routes/{seam/partner/v1/resources → customers}/index.ts +1 -1
  80. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +1 -1
  81. package/src/lib/seam/connect/routes/index.ts +1 -0
  82. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +1 -1
  83. package/src/lib/seam/connect/routes/{unstable-partner/resources → seam/customer}/index.ts +1 -1
  84. package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts +215 -0
  85. package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.ts +6 -0
  86. package/src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts +303 -0
  87. package/src/lib/seam/connect/routes/seam/customer/v1/automations/index.ts +6 -0
  88. package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +10 -0
  89. package/src/lib/seam/connect/routes/seam/customer/v1/portals/index.ts +6 -0
  90. package/src/lib/seam/connect/routes/seam/{partner/v1/resources/resources.ts → customer/v1/portals/portals.ts} +31 -32
  91. package/src/lib/seam/connect/routes/seam/customer/v1/settings/index.ts +6 -0
  92. package/src/lib/seam/connect/routes/{unstable-partner/resources/resources.ts → seam/customer/v1/settings/settings.ts} +30 -33
  93. package/src/lib/seam/connect/routes/seam/{partner → customer}/v1/v1.ts +33 -20
  94. package/src/lib/seam/connect/routes/seam/index.ts +1 -0
  95. package/src/lib/seam/connect/routes/seam/partner/v1/index.ts +0 -2
  96. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +216 -72
  97. package/src/lib/seam/connect/routes/seam-http.ts +5 -0
  98. package/src/lib/seam/connect/routes/unstable-partner/index.ts +0 -1
  99. package/src/lib/seam/connect/routes/unstable-partner/unstable-partner.ts +0 -8
  100. package/src/lib/version.ts +1 -1
  101. package/lib/seam/connect/routes/seam/partner/v1/resources/index.d.ts +0 -1
  102. package/lib/seam/connect/routes/seam/partner/v1/resources/index.js.map +0 -1
  103. package/lib/seam/connect/routes/seam/partner/v1/resources/resources.js.map +0 -1
  104. package/lib/seam/connect/routes/seam/partner/v1/v1.js.map +0 -1
  105. package/lib/seam/connect/routes/unstable-partner/resources/index.d.ts +0 -1
  106. package/lib/seam/connect/routes/unstable-partner/resources/index.js.map +0 -1
@@ -33,10 +33,12 @@ 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 { SeamHttpSeamPartnerV1BuildingBlocks } from './building-blocks/index.js'
37
- import { SeamHttpSeamPartnerV1Resources } from './resources/index.js'
36
+ import { SeamHttpSeamCustomerV1AutomationRuns } from './automation-runs/index.js'
37
+ import { SeamHttpSeamCustomerV1Automations } from './automations/index.js'
38
+ import { SeamHttpSeamCustomerV1Portals } from './portals/index.js'
39
+ import { SeamHttpSeamCustomerV1Settings } from './settings/index.js'
38
40
 
39
- export class SeamHttpSeamPartnerV1 {
41
+ export class SeamHttpSeamCustomerV1 {
40
42
  client: Client
41
43
  readonly defaults: Required<SeamHttpRequestOptions>
42
44
  readonly ltsVersion = seamApiLtsVersion
@@ -56,23 +58,23 @@ export class SeamHttpSeamPartnerV1 {
56
58
  static fromClient(
57
59
  client: SeamHttpOptionsWithClient['client'],
58
60
  options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
59
- ): SeamHttpSeamPartnerV1 {
61
+ ): SeamHttpSeamCustomerV1 {
60
62
  const constructorOptions = { ...options, client }
61
63
  if (!isSeamHttpOptionsWithClient(constructorOptions)) {
62
64
  throw new SeamHttpInvalidOptionsError('Missing client')
63
65
  }
64
- return new SeamHttpSeamPartnerV1(constructorOptions)
66
+ return new SeamHttpSeamCustomerV1(constructorOptions)
65
67
  }
66
68
 
67
69
  static fromApiKey(
68
70
  apiKey: SeamHttpOptionsWithApiKey['apiKey'],
69
71
  options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
70
- ): SeamHttpSeamPartnerV1 {
72
+ ): SeamHttpSeamCustomerV1 {
71
73
  const constructorOptions = { ...options, apiKey }
72
74
  if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
73
75
  throw new SeamHttpInvalidOptionsError('Missing apiKey')
74
76
  }
75
- return new SeamHttpSeamPartnerV1(constructorOptions)
77
+ return new SeamHttpSeamCustomerV1(constructorOptions)
76
78
  }
77
79
 
78
80
  static fromClientSessionToken(
@@ -81,24 +83,24 @@ export class SeamHttpSeamPartnerV1 {
81
83
  SeamHttpOptionsWithClientSessionToken,
82
84
  'clientSessionToken'
83
85
  > = {},
84
- ): SeamHttpSeamPartnerV1 {
86
+ ): SeamHttpSeamCustomerV1 {
85
87
  const constructorOptions = { ...options, clientSessionToken }
86
88
  if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
87
89
  throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
88
90
  }
89
- return new SeamHttpSeamPartnerV1(constructorOptions)
91
+ return new SeamHttpSeamCustomerV1(constructorOptions)
90
92
  }
91
93
 
92
94
  static async fromPublishableKey(
93
95
  publishableKey: string,
94
96
  userIdentifierKey: string,
95
97
  options: SeamHttpFromPublishableKeyOptions = {},
96
- ): Promise<SeamHttpSeamPartnerV1> {
98
+ ): Promise<SeamHttpSeamCustomerV1> {
97
99
  warnOnInsecureuserIdentifierKey(userIdentifierKey)
98
100
  const clientOptions = parseOptions({ ...options, publishableKey })
99
101
  if (isSeamHttpOptionsWithClient(clientOptions)) {
100
102
  throw new SeamHttpInvalidOptionsError(
101
- 'The client option cannot be used with SeamHttpSeamPartnerV1.fromPublishableKey',
103
+ 'The client option cannot be used with SeamHttpSeamCustomerV1.fromPublishableKey',
102
104
  )
103
105
  }
104
106
  const client = createClient(clientOptions)
@@ -106,7 +108,7 @@ export class SeamHttpSeamPartnerV1 {
106
108
  const { token } = await clientSessions.getOrCreate({
107
109
  user_identifier_key: userIdentifierKey,
108
110
  })
109
- return SeamHttpSeamPartnerV1.fromClientSessionToken(token, options)
111
+ return SeamHttpSeamCustomerV1.fromClientSessionToken(token, options)
110
112
  }
111
113
 
112
114
  static fromConsoleSessionToken(
@@ -116,14 +118,14 @@ export class SeamHttpSeamPartnerV1 {
116
118
  SeamHttpOptionsWithConsoleSessionToken,
117
119
  'consoleSessionToken' | 'workspaceId'
118
120
  > = {},
119
- ): SeamHttpSeamPartnerV1 {
121
+ ): SeamHttpSeamCustomerV1 {
120
122
  const constructorOptions = { ...options, consoleSessionToken, workspaceId }
121
123
  if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
122
124
  throw new SeamHttpInvalidOptionsError(
123
125
  'Missing consoleSessionToken or workspaceId',
124
126
  )
125
127
  }
126
- return new SeamHttpSeamPartnerV1(constructorOptions)
128
+ return new SeamHttpSeamCustomerV1(constructorOptions)
127
129
  }
128
130
 
129
131
  static fromPersonalAccessToken(
@@ -133,14 +135,14 @@ export class SeamHttpSeamPartnerV1 {
133
135
  SeamHttpOptionsWithPersonalAccessToken,
134
136
  'personalAccessToken' | 'workspaceId'
135
137
  > = {},
136
- ): SeamHttpSeamPartnerV1 {
138
+ ): SeamHttpSeamCustomerV1 {
137
139
  const constructorOptions = { ...options, personalAccessToken, workspaceId }
138
140
  if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
139
141
  throw new SeamHttpInvalidOptionsError(
140
142
  'Missing personalAccessToken or workspaceId',
141
143
  )
142
144
  }
143
- return new SeamHttpSeamPartnerV1(constructorOptions)
145
+ return new SeamHttpSeamCustomerV1(constructorOptions)
144
146
  }
145
147
 
146
148
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
@@ -168,14 +170,25 @@ export class SeamHttpSeamPartnerV1 {
168
170
  await clientSessions.get()
169
171
  }
170
172
 
171
- get buildingBlocks(): SeamHttpSeamPartnerV1BuildingBlocks {
172
- return SeamHttpSeamPartnerV1BuildingBlocks.fromClient(
173
+ get automationRuns(): SeamHttpSeamCustomerV1AutomationRuns {
174
+ return SeamHttpSeamCustomerV1AutomationRuns.fromClient(
173
175
  this.client,
174
176
  this.defaults,
175
177
  )
176
178
  }
177
179
 
178
- get resources(): SeamHttpSeamPartnerV1Resources {
179
- return SeamHttpSeamPartnerV1Resources.fromClient(this.client, this.defaults)
180
+ get automations(): SeamHttpSeamCustomerV1Automations {
181
+ return SeamHttpSeamCustomerV1Automations.fromClient(
182
+ this.client,
183
+ this.defaults,
184
+ )
185
+ }
186
+
187
+ get portals(): SeamHttpSeamCustomerV1Portals {
188
+ return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults)
189
+ }
190
+
191
+ get settings(): SeamHttpSeamCustomerV1Settings {
192
+ return SeamHttpSeamCustomerV1Settings.fromClient(this.client, this.defaults)
180
193
  }
181
194
  }
@@ -3,4 +3,5 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
+ export * from './customer/index.js'
6
7
  export * from './partner/index.js'
@@ -4,5 +4,3 @@
4
4
  */
5
5
 
6
6
  export * from './building-blocks/index.js'
7
- export * from './resources/index.js'
8
- export * from './v1.js'
@@ -111,6 +111,9 @@ import {
111
111
  type AccessMethodsDeleteOptions,
112
112
  type AccessMethodsDeleteParameters,
113
113
  type AccessMethodsDeleteRequest,
114
+ type AccessMethodsEncodeOptions,
115
+ type AccessMethodsEncodeParameters,
116
+ type AccessMethodsEncodeRequest,
114
117
  type AccessMethodsGetOptions,
115
118
  type AccessMethodsGetParameters,
116
119
  type AccessMethodsGetRequest,
@@ -201,9 +204,6 @@ import {
201
204
  SeamHttpAcsCredentialsUnmanaged,
202
205
  } from './acs/credentials/unmanaged/index.js'
203
206
  import {
204
- type AcsEncodersEncodeAccessMethodOptions,
205
- type AcsEncodersEncodeAccessMethodParameters,
206
- type AcsEncodersEncodeAccessMethodRequest,
207
207
  type AcsEncodersEncodeCredentialOptions,
208
208
  type AcsEncodersEncodeCredentialParameters,
209
209
  type AcsEncodersEncodeCredentialRequest,
@@ -380,6 +380,15 @@ import {
380
380
  type ConnectedAccountsUpdateRequest,
381
381
  SeamHttpConnectedAccounts,
382
382
  } from './connected-accounts/index.js'
383
+ import {
384
+ type CustomersCreatePortalOptions,
385
+ type CustomersCreatePortalParameters,
386
+ type CustomersCreatePortalRequest,
387
+ type CustomersPushDataOptions,
388
+ type CustomersPushDataParameters,
389
+ type CustomersPushDataRequest,
390
+ SeamHttpCustomers,
391
+ } from './customers/index.js'
383
392
  import {
384
393
  type DevicesDeleteOptions,
385
394
  type DevicesDeleteParameters,
@@ -512,18 +521,42 @@ import {
512
521
  type PhonesSimulateCreateSandboxPhoneRequest,
513
522
  SeamHttpPhonesSimulate,
514
523
  } from './phones/simulate/index.js'
524
+ import {
525
+ type SeamCustomerV1AutomationRunsListOptions,
526
+ type SeamCustomerV1AutomationRunsListParameters,
527
+ type SeamCustomerV1AutomationRunsListRequest,
528
+ SeamHttpSeamCustomerV1AutomationRuns,
529
+ } from './seam/customer/v1/automation-runs/index.js'
530
+ import {
531
+ type SeamCustomerV1AutomationsDeleteOptions,
532
+ type SeamCustomerV1AutomationsDeleteParameters,
533
+ type SeamCustomerV1AutomationsDeleteRequest,
534
+ type SeamCustomerV1AutomationsGetOptions,
535
+ type SeamCustomerV1AutomationsGetParameters,
536
+ type SeamCustomerV1AutomationsGetRequest,
537
+ type SeamCustomerV1AutomationsUpdateOptions,
538
+ type SeamCustomerV1AutomationsUpdateParameters,
539
+ type SeamCustomerV1AutomationsUpdateRequest,
540
+ SeamHttpSeamCustomerV1Automations,
541
+ } from './seam/customer/v1/automations/index.js'
542
+ import {
543
+ type SeamCustomerV1PortalsGetOptions,
544
+ type SeamCustomerV1PortalsGetParameters,
545
+ type SeamCustomerV1PortalsGetRequest,
546
+ SeamHttpSeamCustomerV1Portals,
547
+ } from './seam/customer/v1/portals/index.js'
548
+ import {
549
+ type SeamCustomerV1SettingsUpdateOptions,
550
+ type SeamCustomerV1SettingsUpdateParameters,
551
+ type SeamCustomerV1SettingsUpdateRequest,
552
+ SeamHttpSeamCustomerV1Settings,
553
+ } from './seam/customer/v1/settings/index.js'
515
554
  import {
516
555
  SeamHttpSeamPartnerV1BuildingBlocksSpaces,
517
556
  type SeamPartnerV1BuildingBlocksSpacesAutoMapOptions,
518
557
  type SeamPartnerV1BuildingBlocksSpacesAutoMapParameters,
519
558
  type SeamPartnerV1BuildingBlocksSpacesAutoMapRequest,
520
559
  } from './seam/partner/v1/building-blocks/spaces/index.js'
521
- import {
522
- SeamHttpSeamPartnerV1Resources,
523
- type SeamPartnerV1ResourcesListOptions,
524
- type SeamPartnerV1ResourcesListParameters,
525
- type SeamPartnerV1ResourcesListRequest,
526
- } from './seam/partner/v1/resources/index.js'
527
560
  import {
528
561
  SeamHttpSpaces,
529
562
  type SpacesAddAcsEntrancesOptions,
@@ -713,12 +746,6 @@ import {
713
746
  type UnstablePartnerBuildingBlocksOrganizeSpacesParameters,
714
747
  type UnstablePartnerBuildingBlocksOrganizeSpacesRequest,
715
748
  } from './unstable-partner/building-blocks/index.js'
716
- import {
717
- SeamHttpUnstablePartnerResources,
718
- type UnstablePartnerResourcesPushOptions,
719
- type UnstablePartnerResourcesPushParameters,
720
- type UnstablePartnerResourcesPushRequest,
721
- } from './unstable-partner/resources/index.js'
722
749
  import {
723
750
  SeamHttpUserIdentitiesEnrollmentAutomations,
724
751
  type UserIdentitiesEnrollmentAutomationsDeleteOptions,
@@ -1228,6 +1255,19 @@ export class SeamHttpEndpoints {
1228
1255
  }
1229
1256
  }
1230
1257
 
1258
+ get ['/access_methods/encode'](): (
1259
+ parameters?: AccessMethodsEncodeParameters,
1260
+ options?: AccessMethodsEncodeOptions,
1261
+ ) => AccessMethodsEncodeRequest {
1262
+ const { client, defaults } = this
1263
+ return function accessMethodsEncode(
1264
+ ...args: Parameters<SeamHttpAccessMethods['encode']>
1265
+ ): ReturnType<SeamHttpAccessMethods['encode']> {
1266
+ const seam = SeamHttpAccessMethods.fromClient(client, defaults)
1267
+ return seam.encode(...args)
1268
+ }
1269
+ }
1270
+
1231
1271
  get ['/access_methods/get'](): (
1232
1272
  parameters?: AccessMethodsGetParameters,
1233
1273
  options?: AccessMethodsGetOptions,
@@ -1567,19 +1607,6 @@ export class SeamHttpEndpoints {
1567
1607
  }
1568
1608
  }
1569
1609
 
1570
- get ['/acs/encoders/encode_access_method'](): (
1571
- parameters?: AcsEncodersEncodeAccessMethodParameters,
1572
- options?: AcsEncodersEncodeAccessMethodOptions,
1573
- ) => AcsEncodersEncodeAccessMethodRequest {
1574
- const { client, defaults } = this
1575
- return function acsEncodersEncodeAccessMethod(
1576
- ...args: Parameters<SeamHttpAcsEncoders['encodeAccessMethod']>
1577
- ): ReturnType<SeamHttpAcsEncoders['encodeAccessMethod']> {
1578
- const seam = SeamHttpAcsEncoders.fromClient(client, defaults)
1579
- return seam.encodeAccessMethod(...args)
1580
- }
1581
- }
1582
-
1583
1610
  get ['/acs/encoders/encode_credential'](): (
1584
1611
  parameters?: AcsEncodersEncodeCredentialParameters,
1585
1612
  options?: AcsEncodersEncodeCredentialOptions,
@@ -2240,6 +2267,32 @@ export class SeamHttpEndpoints {
2240
2267
  }
2241
2268
  }
2242
2269
 
2270
+ get ['/customers/create_portal'](): (
2271
+ parameters?: CustomersCreatePortalParameters,
2272
+ options?: CustomersCreatePortalOptions,
2273
+ ) => CustomersCreatePortalRequest {
2274
+ const { client, defaults } = this
2275
+ return function customersCreatePortal(
2276
+ ...args: Parameters<SeamHttpCustomers['createPortal']>
2277
+ ): ReturnType<SeamHttpCustomers['createPortal']> {
2278
+ const seam = SeamHttpCustomers.fromClient(client, defaults)
2279
+ return seam.createPortal(...args)
2280
+ }
2281
+ }
2282
+
2283
+ get ['/customers/push_data'](): (
2284
+ parameters?: CustomersPushDataParameters,
2285
+ options?: CustomersPushDataOptions,
2286
+ ) => CustomersPushDataRequest {
2287
+ const { client, defaults } = this
2288
+ return function customersPushData(
2289
+ ...args: Parameters<SeamHttpCustomers['pushData']>
2290
+ ): ReturnType<SeamHttpCustomers['pushData']> {
2291
+ const seam = SeamHttpCustomers.fromClient(client, defaults)
2292
+ return seam.pushData(...args)
2293
+ }
2294
+ }
2295
+
2243
2296
  get ['/devices/delete'](): (
2244
2297
  parameters?: DevicesDeleteParameters,
2245
2298
  options?: DevicesDeleteOptions,
@@ -2696,42 +2749,144 @@ export class SeamHttpEndpoints {
2696
2749
  }
2697
2750
  }
2698
2751
 
2699
- get ['/seam/partner/v1/building_blocks/spaces/auto_map'](): (
2700
- parameters?: SeamPartnerV1BuildingBlocksSpacesAutoMapParameters,
2701
- options?: SeamPartnerV1BuildingBlocksSpacesAutoMapOptions,
2702
- ) => SeamPartnerV1BuildingBlocksSpacesAutoMapRequest {
2752
+ get ['/seam/customer/v1/automation_runs/list'](): (
2753
+ parameters?: SeamCustomerV1AutomationRunsListParameters,
2754
+ options?: SeamCustomerV1AutomationRunsListOptions,
2755
+ ) => SeamCustomerV1AutomationRunsListRequest {
2703
2756
  const { client, defaults } = this
2704
2757
  if (!this.defaults.isUndocumentedApiEnabled) {
2705
2758
  throw new Error(
2706
2759
  'Cannot use undocumented API without isUndocumentedApiEnabled',
2707
2760
  )
2708
2761
  }
2709
- return function seamPartnerV1BuildingBlocksSpacesAutoMap(
2710
- ...args: Parameters<SeamHttpSeamPartnerV1BuildingBlocksSpaces['autoMap']>
2711
- ): ReturnType<SeamHttpSeamPartnerV1BuildingBlocksSpaces['autoMap']> {
2712
- const seam = SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClient(
2762
+ return function seamCustomerV1AutomationRunsList(
2763
+ ...args: Parameters<SeamHttpSeamCustomerV1AutomationRuns['list']>
2764
+ ): ReturnType<SeamHttpSeamCustomerV1AutomationRuns['list']> {
2765
+ const seam = SeamHttpSeamCustomerV1AutomationRuns.fromClient(
2713
2766
  client,
2714
2767
  defaults,
2715
2768
  )
2716
- return seam.autoMap(...args)
2769
+ return seam.list(...args)
2717
2770
  }
2718
2771
  }
2719
2772
 
2720
- get ['/seam/partner/v1/resources/list'](): (
2721
- parameters?: SeamPartnerV1ResourcesListParameters,
2722
- options?: SeamPartnerV1ResourcesListOptions,
2723
- ) => SeamPartnerV1ResourcesListRequest {
2773
+ get ['/seam/customer/v1/automations/delete'](): (
2774
+ parameters?: SeamCustomerV1AutomationsDeleteParameters,
2775
+ options?: SeamCustomerV1AutomationsDeleteOptions,
2776
+ ) => SeamCustomerV1AutomationsDeleteRequest {
2724
2777
  const { client, defaults } = this
2725
2778
  if (!this.defaults.isUndocumentedApiEnabled) {
2726
2779
  throw new Error(
2727
2780
  'Cannot use undocumented API without isUndocumentedApiEnabled',
2728
2781
  )
2729
2782
  }
2730
- return function seamPartnerV1ResourcesList(
2731
- ...args: Parameters<SeamHttpSeamPartnerV1Resources['list']>
2732
- ): ReturnType<SeamHttpSeamPartnerV1Resources['list']> {
2733
- const seam = SeamHttpSeamPartnerV1Resources.fromClient(client, defaults)
2734
- return seam.list(...args)
2783
+ return function seamCustomerV1AutomationsDelete(
2784
+ ...args: Parameters<SeamHttpSeamCustomerV1Automations['delete']>
2785
+ ): ReturnType<SeamHttpSeamCustomerV1Automations['delete']> {
2786
+ const seam = SeamHttpSeamCustomerV1Automations.fromClient(
2787
+ client,
2788
+ defaults,
2789
+ )
2790
+ return seam.delete(...args)
2791
+ }
2792
+ }
2793
+
2794
+ get ['/seam/customer/v1/automations/get'](): (
2795
+ parameters?: SeamCustomerV1AutomationsGetParameters,
2796
+ options?: SeamCustomerV1AutomationsGetOptions,
2797
+ ) => SeamCustomerV1AutomationsGetRequest {
2798
+ const { client, defaults } = this
2799
+ if (!this.defaults.isUndocumentedApiEnabled) {
2800
+ throw new Error(
2801
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2802
+ )
2803
+ }
2804
+ return function seamCustomerV1AutomationsGet(
2805
+ ...args: Parameters<SeamHttpSeamCustomerV1Automations['get']>
2806
+ ): ReturnType<SeamHttpSeamCustomerV1Automations['get']> {
2807
+ const seam = SeamHttpSeamCustomerV1Automations.fromClient(
2808
+ client,
2809
+ defaults,
2810
+ )
2811
+ return seam.get(...args)
2812
+ }
2813
+ }
2814
+
2815
+ get ['/seam/customer/v1/automations/update'](): (
2816
+ parameters?: SeamCustomerV1AutomationsUpdateParameters,
2817
+ options?: SeamCustomerV1AutomationsUpdateOptions,
2818
+ ) => SeamCustomerV1AutomationsUpdateRequest {
2819
+ const { client, defaults } = this
2820
+ if (!this.defaults.isUndocumentedApiEnabled) {
2821
+ throw new Error(
2822
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2823
+ )
2824
+ }
2825
+ return function seamCustomerV1AutomationsUpdate(
2826
+ ...args: Parameters<SeamHttpSeamCustomerV1Automations['update']>
2827
+ ): ReturnType<SeamHttpSeamCustomerV1Automations['update']> {
2828
+ const seam = SeamHttpSeamCustomerV1Automations.fromClient(
2829
+ client,
2830
+ defaults,
2831
+ )
2832
+ return seam.update(...args)
2833
+ }
2834
+ }
2835
+
2836
+ get ['/seam/customer/v1/portals/get'](): (
2837
+ parameters?: SeamCustomerV1PortalsGetParameters,
2838
+ options?: SeamCustomerV1PortalsGetOptions,
2839
+ ) => SeamCustomerV1PortalsGetRequest {
2840
+ const { client, defaults } = this
2841
+ if (!this.defaults.isUndocumentedApiEnabled) {
2842
+ throw new Error(
2843
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2844
+ )
2845
+ }
2846
+ return function seamCustomerV1PortalsGet(
2847
+ ...args: Parameters<SeamHttpSeamCustomerV1Portals['get']>
2848
+ ): ReturnType<SeamHttpSeamCustomerV1Portals['get']> {
2849
+ const seam = SeamHttpSeamCustomerV1Portals.fromClient(client, defaults)
2850
+ return seam.get(...args)
2851
+ }
2852
+ }
2853
+
2854
+ get ['/seam/customer/v1/settings/update'](): (
2855
+ parameters?: SeamCustomerV1SettingsUpdateParameters,
2856
+ options?: SeamCustomerV1SettingsUpdateOptions,
2857
+ ) => SeamCustomerV1SettingsUpdateRequest {
2858
+ const { client, defaults } = this
2859
+ if (!this.defaults.isUndocumentedApiEnabled) {
2860
+ throw new Error(
2861
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2862
+ )
2863
+ }
2864
+ return function seamCustomerV1SettingsUpdate(
2865
+ ...args: Parameters<SeamHttpSeamCustomerV1Settings['update']>
2866
+ ): ReturnType<SeamHttpSeamCustomerV1Settings['update']> {
2867
+ const seam = SeamHttpSeamCustomerV1Settings.fromClient(client, defaults)
2868
+ return seam.update(...args)
2869
+ }
2870
+ }
2871
+
2872
+ get ['/seam/partner/v1/building_blocks/spaces/auto_map'](): (
2873
+ parameters?: SeamPartnerV1BuildingBlocksSpacesAutoMapParameters,
2874
+ options?: SeamPartnerV1BuildingBlocksSpacesAutoMapOptions,
2875
+ ) => SeamPartnerV1BuildingBlocksSpacesAutoMapRequest {
2876
+ const { client, defaults } = this
2877
+ if (!this.defaults.isUndocumentedApiEnabled) {
2878
+ throw new Error(
2879
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2880
+ )
2881
+ }
2882
+ return function seamPartnerV1BuildingBlocksSpacesAutoMap(
2883
+ ...args: Parameters<SeamHttpSeamPartnerV1BuildingBlocksSpaces['autoMap']>
2884
+ ): ReturnType<SeamHttpSeamPartnerV1BuildingBlocksSpaces['autoMap']> {
2885
+ const seam = SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClient(
2886
+ client,
2887
+ defaults,
2888
+ )
2889
+ return seam.autoMap(...args)
2735
2890
  }
2736
2891
  }
2737
2892
 
@@ -3562,24 +3717,6 @@ export class SeamHttpEndpoints {
3562
3717
  }
3563
3718
  }
3564
3719
 
3565
- get ['/unstable_partner/resources/push'](): (
3566
- parameters?: UnstablePartnerResourcesPushParameters,
3567
- options?: UnstablePartnerResourcesPushOptions,
3568
- ) => UnstablePartnerResourcesPushRequest {
3569
- const { client, defaults } = this
3570
- if (!this.defaults.isUndocumentedApiEnabled) {
3571
- throw new Error(
3572
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
3573
- )
3574
- }
3575
- return function unstablePartnerResourcesPush(
3576
- ...args: Parameters<SeamHttpUnstablePartnerResources['push']>
3577
- ): ReturnType<SeamHttpUnstablePartnerResources['push']> {
3578
- const seam = SeamHttpUnstablePartnerResources.fromClient(client, defaults)
3579
- return seam.push(...args)
3580
- }
3581
- }
3582
-
3583
3720
  get ['/user_identities/add_acs_user'](): (
3584
3721
  parameters?: UserIdentitiesAddAcsUserParameters,
3585
3722
  options?: UserIdentitiesAddAcsUserOptions,
@@ -3950,10 +4087,8 @@ export type SeamHttpEndpointQueryPaths =
3950
4087
  | '/access_codes/list'
3951
4088
  | '/access_codes/unmanaged/get'
3952
4089
  | '/access_codes/unmanaged/list'
3953
- | '/access_grants/delete'
3954
4090
  | '/access_grants/get'
3955
4091
  | '/access_grants/list'
3956
- | '/access_methods/delete'
3957
4092
  | '/access_methods/get'
3958
4093
  | '/access_methods/list'
3959
4094
  | '/acs/access_groups/get'
@@ -4007,19 +4142,18 @@ export type SeamHttpEndpointQueryPaths =
4007
4142
  | '/noise_sensors/noise_thresholds/list'
4008
4143
  | '/phones/get'
4009
4144
  | '/phones/list'
4010
- | '/phones/simulate/create_sandbox_phone'
4145
+ | '/seam/customer/v1/automation_runs/list'
4146
+ | '/seam/customer/v1/automations/get'
4147
+ | '/seam/customer/v1/portals/get'
4011
4148
  | '/seam/partner/v1/building_blocks/spaces/auto_map'
4012
- | '/seam/partner/v1/resources/list'
4013
4149
  | '/spaces/get'
4014
4150
  | '/spaces/list'
4015
4151
  | '/thermostats/get'
4016
4152
  | '/thermostats/list'
4017
4153
  | '/thermostats/schedules/get'
4018
4154
  | '/thermostats/schedules/list'
4019
- | '/unstable_access_grants/delete'
4020
4155
  | '/unstable_access_grants/get'
4021
4156
  | '/unstable_access_grants/list'
4022
- | '/unstable_access_methods/delete'
4023
4157
  | '/unstable_access_methods/get'
4024
4158
  | '/unstable_access_methods/list'
4025
4159
  | '/unstable_locations/get'
@@ -4043,6 +4177,7 @@ export type SeamHttpEndpointPaginatedQueryPaths =
4043
4177
  | '/connect_webviews/list'
4044
4178
  | '/connected_accounts/list'
4045
4179
  | '/devices/list'
4180
+ | '/seam/customer/v1/automation_runs/list'
4046
4181
 
4047
4182
  export type SeamHttpEndpointMutationPaths =
4048
4183
  | '/access_codes/create'
@@ -4057,7 +4192,10 @@ export type SeamHttpEndpointMutationPaths =
4057
4192
  | '/access_codes/unmanaged/delete'
4058
4193
  | '/access_codes/unmanaged/update'
4059
4194
  | '/access_grants/create'
4195
+ | '/access_grants/delete'
4060
4196
  | '/access_grants/update'
4197
+ | '/access_methods/delete'
4198
+ | '/access_methods/encode'
4061
4199
  | '/acs/access_groups/add_user'
4062
4200
  | '/acs/access_groups/remove_user'
4063
4201
  | '/acs/credential_provisioning_automations/launch'
@@ -4067,7 +4205,6 @@ export type SeamHttpEndpointMutationPaths =
4067
4205
  | '/acs/credentials/delete'
4068
4206
  | '/acs/credentials/unassign'
4069
4207
  | '/acs/credentials/update'
4070
- | '/acs/encoders/encode_access_method'
4071
4208
  | '/acs/encoders/encode_credential'
4072
4209
  | '/acs/encoders/scan_credential'
4073
4210
  | '/acs/encoders/simulate/next_credential_encode_will_fail'
@@ -4093,6 +4230,8 @@ export type SeamHttpEndpointMutationPaths =
4093
4230
  | '/connected_accounts/delete'
4094
4231
  | '/connected_accounts/sync'
4095
4232
  | '/connected_accounts/update'
4233
+ | '/customers/create_portal'
4234
+ | '/customers/push_data'
4096
4235
  | '/devices/delete'
4097
4236
  | '/devices/update'
4098
4237
  | '/devices/simulate/connect'
@@ -4108,6 +4247,10 @@ export type SeamHttpEndpointMutationPaths =
4108
4247
  | '/noise_sensors/noise_thresholds/update'
4109
4248
  | '/noise_sensors/simulate/trigger_noise_threshold'
4110
4249
  | '/phones/deactivate'
4250
+ | '/phones/simulate/create_sandbox_phone'
4251
+ | '/seam/customer/v1/automations/delete'
4252
+ | '/seam/customer/v1/automations/update'
4253
+ | '/seam/customer/v1/settings/update'
4111
4254
  | '/spaces/add_acs_entrances'
4112
4255
  | '/spaces/add_devices'
4113
4256
  | '/spaces/create'
@@ -4137,6 +4280,8 @@ export type SeamHttpEndpointMutationPaths =
4137
4280
  | '/thermostats/simulate/hvac_mode_adjusted'
4138
4281
  | '/thermostats/simulate/temperature_reached'
4139
4282
  | '/unstable_access_grants/create'
4283
+ | '/unstable_access_grants/delete'
4284
+ | '/unstable_access_methods/delete'
4140
4285
  | '/unstable_locations/add_acs_entrances'
4141
4286
  | '/unstable_locations/add_devices'
4142
4287
  | '/unstable_locations/create'
@@ -4147,7 +4292,6 @@ export type SeamHttpEndpointMutationPaths =
4147
4292
  | '/unstable_partner/building_blocks/connect_accounts'
4148
4293
  | '/unstable_partner/building_blocks/manage_devices'
4149
4294
  | '/unstable_partner/building_blocks/organize_spaces'
4150
- | '/unstable_partner/resources/push'
4151
4295
  | '/user_identities/add_acs_user'
4152
4296
  | '/user_identities/create'
4153
4297
  | '/user_identities/delete'
@@ -41,6 +41,7 @@ import { SeamHttpBridges } from './bridges/index.js'
41
41
  import { SeamHttpClientSessions } from './client-sessions/index.js'
42
42
  import { SeamHttpConnectWebviews } from './connect-webviews/index.js'
43
43
  import { SeamHttpConnectedAccounts } from './connected-accounts/index.js'
44
+ import { SeamHttpCustomers } from './customers/index.js'
44
45
  import { SeamHttpDevices } from './devices/index.js'
45
46
  import { SeamHttpEvents } from './events/index.js'
46
47
  import { SeamHttpLocks } from './locks/index.js'
@@ -220,6 +221,10 @@ export class SeamHttp {
220
221
  return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults)
221
222
  }
222
223
 
224
+ get customers(): SeamHttpCustomers {
225
+ return SeamHttpCustomers.fromClient(this.client, this.defaults)
226
+ }
227
+
223
228
  get devices(): SeamHttpDevices {
224
229
  return SeamHttpDevices.fromClient(this.client, this.defaults)
225
230
  }
@@ -4,5 +4,4 @@
4
4
  */
5
5
 
6
6
  export * from './building-blocks/index.js'
7
- export * from './resources/index.js'
8
7
  export * from './unstable-partner.js'
@@ -34,7 +34,6 @@ 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
36
  import { SeamHttpUnstablePartnerBuildingBlocks } from './building-blocks/index.js'
37
- import { SeamHttpUnstablePartnerResources } from './resources/index.js'
38
37
 
39
38
  export class SeamHttpUnstablePartner {
40
39
  client: Client
@@ -174,11 +173,4 @@ export class SeamHttpUnstablePartner {
174
173
  this.defaults,
175
174
  )
176
175
  }
177
-
178
- get resources(): SeamHttpUnstablePartnerResources {
179
- return SeamHttpUnstablePartnerResources.fromClient(
180
- this.client,
181
- this.defaults,
182
- )
183
- }
184
176
  }
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.40.1'
1
+ const seamapiJavascriptHttpVersion = '1.42.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion
@@ -1 +0,0 @@
1
- export * from './resources.js';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/partner/v1/resources/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAA"}