@seamapi/http 1.49.0 → 1.50.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 (49) hide show
  1. package/dist/connect.cjs +237 -146
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +63 -47
  4. package/dist/index.cjs +241 -148
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/index.d.ts +0 -1
  8. package/lib/seam/connect/routes/index.js +0 -1
  9. package/lib/seam/connect/routes/index.js.map +1 -1
  10. package/lib/seam/connect/routes/seam/console/console.d.ts +21 -0
  11. package/lib/seam/connect/routes/seam/console/console.js +93 -0
  12. package/lib/seam/connect/routes/seam/console/console.js.map +1 -0
  13. package/lib/seam/connect/routes/seam/console/index.d.ts +2 -0
  14. package/lib/seam/connect/routes/seam/console/index.js +7 -0
  15. package/lib/seam/connect/routes/seam/console/index.js.map +1 -0
  16. package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
  17. package/lib/seam/connect/routes/{networks → seam/console/v1}/index.js +1 -1
  18. package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -0
  19. package/lib/seam/connect/routes/{networks/networks.d.ts → seam/console/v1/v1.d.ts} +21 -34
  20. package/lib/seam/connect/routes/{networks/networks.js → seam/console/v1/v1.js} +23 -35
  21. package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -0
  22. package/lib/seam/connect/routes/seam/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/seam/index.js +1 -0
  24. package/lib/seam/connect/routes/seam/index.js.map +1 -1
  25. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -5
  26. package/lib/seam/connect/routes/seam-http-endpoints.js +21 -21
  27. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  28. package/lib/seam/connect/routes/seam-http.d.ts +0 -2
  29. package/lib/seam/connect/routes/seam-http.js +0 -4
  30. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  31. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +13 -0
  32. package/lib/seam/connect/routes/workspaces/workspaces.js +12 -0
  33. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  34. package/lib/version.d.ts +1 -1
  35. package/lib/version.js +1 -1
  36. package/package.json +3 -3
  37. package/src/lib/seam/connect/routes/index.ts +0 -1
  38. package/src/lib/seam/connect/routes/seam/console/console.ts +173 -0
  39. package/src/lib/seam/connect/routes/seam/console/index.ts +7 -0
  40. package/src/lib/seam/connect/routes/{networks → seam/console/v1}/index.ts +1 -1
  41. package/src/lib/seam/connect/routes/{networks/networks.ts → seam/console/v1/v1.ts} +35 -70
  42. package/src/lib/seam/connect/routes/seam/index.ts +1 -0
  43. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +47 -47
  44. package/src/lib/seam/connect/routes/seam-http.ts +0 -5
  45. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +41 -0
  46. package/src/lib/version.ts +1 -1
  47. package/lib/seam/connect/routes/networks/index.d.ts +0 -1
  48. package/lib/seam/connect/routes/networks/index.js.map +0 -1
  49. package/lib/seam/connect/routes/networks/networks.js.map +0 -1
@@ -91,6 +91,18 @@ export class SeamHttpWorkspaces {
91
91
  options,
92
92
  });
93
93
  }
94
+ findResources(parameters, options = {}) {
95
+ if (!this.defaults.isUndocumentedApiEnabled) {
96
+ throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
97
+ }
98
+ return new SeamHttpRequest(this, {
99
+ pathname: '/workspaces/find_resources',
100
+ method: 'GET',
101
+ params: parameters,
102
+ responseKey: 'batch',
103
+ options,
104
+ });
105
+ }
94
106
  get(parameters, options = {}) {
95
107
  return new SeamHttpRequest(this, {
96
108
  pathname: '/workspaces/get',
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/workspaces/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAA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;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AA1LM,6BAAU,GAAG,iBAAiB,AAApB,CAAoB"}
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/workspaces/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,MAAM,OAAO,kBAAkB;IAM7B,YAAY,kBAA4C,EAAE;QAHjD,eAAU,GAAG,iBAAiB,CAAA;QAIrC,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EA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,CAAC;IAED,IAAI,CACF,UAAqC,EACrC,UAAiC,EAAE;QAEnC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,kBAAkB;YAC5B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,YAAY;YACzB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,YAAY,CACV,UAA6C,EAC7C,UAAyC,EAAE;QAE3C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CACJ,UAAuC,EACvC,UAAmC,EAAE;QAErC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oBAAoB;YAC9B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AA5MM,6BAAU,GAAG,iBAAiB,AAApB,CAAoB"}
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const seamapiJavascriptHttpVersion = "1.49.0";
1
+ declare const seamapiJavascriptHttpVersion = "1.50.0";
2
2
  export default seamapiJavascriptHttpVersion;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.49.0';
1
+ const seamapiJavascriptHttpVersion = '1.50.0';
2
2
  export default seamapiJavascriptHttpVersion;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/http",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "description": "JavaScript HTTP client for the Seam API written in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -85,7 +85,7 @@
85
85
  "npm": ">=10.1.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@seamapi/types": "^1.457.0"
88
+ "@seamapi/types": "^1.459.0"
89
89
  },
90
90
  "peerDependenciesMeta": {
91
91
  "@seamapi/types": {
@@ -101,7 +101,7 @@
101
101
  "@seamapi/blueprint": "^0.51.1",
102
102
  "@seamapi/fake-seam-connect": "^1.77.0",
103
103
  "@seamapi/smith": "^0.4.4",
104
- "@seamapi/types": "1.457.0",
104
+ "@seamapi/types": "1.459.0",
105
105
  "@swc/core": "^1.11.29",
106
106
  "@types/eslint": "^8.44.2",
107
107
  "@types/jsonwebtoken": "^9.0.6",
@@ -16,7 +16,6 @@ export * from './customers/index.js'
16
16
  export * from './devices/index.js'
17
17
  export * from './events/index.js'
18
18
  export * from './locks/index.js'
19
- export * from './networks/index.js'
20
19
  export * from './noise-sensors/index.js'
21
20
  export * from './phones/index.js'
22
21
  export * from './seam/index.js'
@@ -0,0 +1,173 @@
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 { seamApiLtsVersion } from 'lib/lts-version.js'
7
+ import {
8
+ getAuthHeadersForClientSessionToken,
9
+ warnOnInsecureuserIdentifierKey,
10
+ } from 'lib/seam/connect/auth.js'
11
+ import { type Client, createClient } from 'lib/seam/connect/client.js'
12
+ import {
13
+ isSeamHttpOptionsWithApiKey,
14
+ isSeamHttpOptionsWithClient,
15
+ isSeamHttpOptionsWithClientSessionToken,
16
+ isSeamHttpOptionsWithConsoleSessionToken,
17
+ isSeamHttpOptionsWithPersonalAccessToken,
18
+ type SeamHttpFromPublishableKeyOptions,
19
+ SeamHttpInvalidOptionsError,
20
+ type SeamHttpOptions,
21
+ type SeamHttpOptionsWithApiKey,
22
+ type SeamHttpOptionsWithClient,
23
+ type SeamHttpOptionsWithClientSessionToken,
24
+ type SeamHttpOptionsWithConsoleSessionToken,
25
+ type SeamHttpOptionsWithPersonalAccessToken,
26
+ type SeamHttpRequestOptions,
27
+ } from 'lib/seam/connect/options.js'
28
+ import {
29
+ limitToSeamHttpRequestOptions,
30
+ parseOptions,
31
+ } from 'lib/seam/connect/parse-options.js'
32
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
33
+ import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
+
36
+ import { SeamHttpSeamConsoleV1 } from './v1/index.js'
37
+
38
+ export class SeamHttpSeamConsole {
39
+ client: Client
40
+ readonly defaults: Required<SeamHttpRequestOptions>
41
+ readonly ltsVersion = seamApiLtsVersion
42
+ static ltsVersion = seamApiLtsVersion
43
+
44
+ constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
45
+ const options = parseOptions(apiKeyOrOptions)
46
+ if (!options.isUndocumentedApiEnabled) {
47
+ throw new Error(
48
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
49
+ )
50
+ }
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
+ ): SeamHttpSeamConsole {
59
+ const constructorOptions = { ...options, client }
60
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
61
+ throw new SeamHttpInvalidOptionsError('Missing client')
62
+ }
63
+ return new SeamHttpSeamConsole(constructorOptions)
64
+ }
65
+
66
+ static fromApiKey(
67
+ apiKey: SeamHttpOptionsWithApiKey['apiKey'],
68
+ options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
69
+ ): SeamHttpSeamConsole {
70
+ const constructorOptions = { ...options, apiKey }
71
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
72
+ throw new SeamHttpInvalidOptionsError('Missing apiKey')
73
+ }
74
+ return new SeamHttpSeamConsole(constructorOptions)
75
+ }
76
+
77
+ static fromClientSessionToken(
78
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
79
+ options: Omit<
80
+ SeamHttpOptionsWithClientSessionToken,
81
+ 'clientSessionToken'
82
+ > = {},
83
+ ): SeamHttpSeamConsole {
84
+ const constructorOptions = { ...options, clientSessionToken }
85
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
86
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
87
+ }
88
+ return new SeamHttpSeamConsole(constructorOptions)
89
+ }
90
+
91
+ static async fromPublishableKey(
92
+ publishableKey: string,
93
+ userIdentifierKey: string,
94
+ options: SeamHttpFromPublishableKeyOptions = {},
95
+ ): Promise<SeamHttpSeamConsole> {
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 SeamHttpSeamConsole.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 SeamHttpSeamConsole.fromClientSessionToken(token, options)
109
+ }
110
+
111
+ static fromConsoleSessionToken(
112
+ consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
113
+ workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
114
+ options: Omit<
115
+ SeamHttpOptionsWithConsoleSessionToken,
116
+ 'consoleSessionToken' | 'workspaceId'
117
+ > = {},
118
+ ): SeamHttpSeamConsole {
119
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId }
120
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
121
+ throw new SeamHttpInvalidOptionsError(
122
+ 'Missing consoleSessionToken or workspaceId',
123
+ )
124
+ }
125
+ return new SeamHttpSeamConsole(constructorOptions)
126
+ }
127
+
128
+ static fromPersonalAccessToken(
129
+ personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
130
+ workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
131
+ options: Omit<
132
+ SeamHttpOptionsWithPersonalAccessToken,
133
+ 'personalAccessToken' | 'workspaceId'
134
+ > = {},
135
+ ): SeamHttpSeamConsole {
136
+ const constructorOptions = { ...options, personalAccessToken, workspaceId }
137
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
138
+ throw new SeamHttpInvalidOptionsError(
139
+ 'Missing personalAccessToken or workspaceId',
140
+ )
141
+ }
142
+ return new SeamHttpSeamConsole(constructorOptions)
143
+ }
144
+
145
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
146
+ request: SeamHttpRequest<TResponse, TResponseKey>,
147
+ ): SeamPaginator<TResponse, TResponseKey> {
148
+ return new SeamPaginator<TResponse, TResponseKey>(this, request)
149
+ }
150
+
151
+ async updateClientSessionToken(
152
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
153
+ ): Promise<void> {
154
+ const { headers } = this.client.defaults
155
+ const authHeaders = getAuthHeadersForClientSessionToken({
156
+ clientSessionToken,
157
+ })
158
+ for (const key of Object.keys(authHeaders)) {
159
+ if (headers[key] == null) {
160
+ throw new Error(
161
+ 'Cannot update a clientSessionToken on a client created without a clientSessionToken',
162
+ )
163
+ }
164
+ }
165
+ this.client.defaults.headers = { ...headers, ...authHeaders }
166
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client)
167
+ await clientSessions.get()
168
+ }
169
+
170
+ get v1(): SeamHttpSeamConsoleV1 {
171
+ return SeamHttpSeamConsoleV1.fromClient(this.client, this.defaults)
172
+ }
173
+ }
@@ -0,0 +1,7 @@
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 './console.js'
7
+ export * from './v1/index.js'
@@ -3,4 +3,4 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
- export * from './networks.js'
6
+ export * from './v1.js'
@@ -3,7 +3,7 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
- import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
6
+ import type { RouteRequestParams, RouteResponse } from '@seamapi/types/connect'
7
7
 
8
8
  import { seamApiLtsVersion } from 'lib/lts-version.js'
9
9
  import {
@@ -36,7 +36,7 @@ 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
- export class SeamHttpNetworks {
39
+ export class SeamHttpSeamConsoleV1 {
40
40
  client: Client
41
41
  readonly defaults: Required<SeamHttpRequestOptions>
42
42
  readonly ltsVersion = seamApiLtsVersion
@@ -56,23 +56,23 @@ export class SeamHttpNetworks {
56
56
  static fromClient(
57
57
  client: SeamHttpOptionsWithClient['client'],
58
58
  options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
59
- ): SeamHttpNetworks {
59
+ ): SeamHttpSeamConsoleV1 {
60
60
  const constructorOptions = { ...options, client }
61
61
  if (!isSeamHttpOptionsWithClient(constructorOptions)) {
62
62
  throw new SeamHttpInvalidOptionsError('Missing client')
63
63
  }
64
- return new SeamHttpNetworks(constructorOptions)
64
+ return new SeamHttpSeamConsoleV1(constructorOptions)
65
65
  }
66
66
 
67
67
  static fromApiKey(
68
68
  apiKey: SeamHttpOptionsWithApiKey['apiKey'],
69
69
  options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
70
- ): SeamHttpNetworks {
70
+ ): SeamHttpSeamConsoleV1 {
71
71
  const constructorOptions = { ...options, apiKey }
72
72
  if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
73
73
  throw new SeamHttpInvalidOptionsError('Missing apiKey')
74
74
  }
75
- return new SeamHttpNetworks(constructorOptions)
75
+ return new SeamHttpSeamConsoleV1(constructorOptions)
76
76
  }
77
77
 
78
78
  static fromClientSessionToken(
@@ -81,24 +81,24 @@ export class SeamHttpNetworks {
81
81
  SeamHttpOptionsWithClientSessionToken,
82
82
  'clientSessionToken'
83
83
  > = {},
84
- ): SeamHttpNetworks {
84
+ ): SeamHttpSeamConsoleV1 {
85
85
  const constructorOptions = { ...options, clientSessionToken }
86
86
  if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
87
87
  throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
88
88
  }
89
- return new SeamHttpNetworks(constructorOptions)
89
+ return new SeamHttpSeamConsoleV1(constructorOptions)
90
90
  }
91
91
 
92
92
  static async fromPublishableKey(
93
93
  publishableKey: string,
94
94
  userIdentifierKey: string,
95
95
  options: SeamHttpFromPublishableKeyOptions = {},
96
- ): Promise<SeamHttpNetworks> {
96
+ ): Promise<SeamHttpSeamConsoleV1> {
97
97
  warnOnInsecureuserIdentifierKey(userIdentifierKey)
98
98
  const clientOptions = parseOptions({ ...options, publishableKey })
99
99
  if (isSeamHttpOptionsWithClient(clientOptions)) {
100
100
  throw new SeamHttpInvalidOptionsError(
101
- 'The client option cannot be used with SeamHttpNetworks.fromPublishableKey',
101
+ 'The client option cannot be used with SeamHttpSeamConsoleV1.fromPublishableKey',
102
102
  )
103
103
  }
104
104
  const client = createClient(clientOptions)
@@ -106,7 +106,7 @@ export class SeamHttpNetworks {
106
106
  const { token } = await clientSessions.getOrCreate({
107
107
  user_identifier_key: userIdentifierKey,
108
108
  })
109
- return SeamHttpNetworks.fromClientSessionToken(token, options)
109
+ return SeamHttpSeamConsoleV1.fromClientSessionToken(token, options)
110
110
  }
111
111
 
112
112
  static fromConsoleSessionToken(
@@ -116,14 +116,14 @@ export class SeamHttpNetworks {
116
116
  SeamHttpOptionsWithConsoleSessionToken,
117
117
  'consoleSessionToken' | 'workspaceId'
118
118
  > = {},
119
- ): SeamHttpNetworks {
119
+ ): SeamHttpSeamConsoleV1 {
120
120
  const constructorOptions = { ...options, consoleSessionToken, workspaceId }
121
121
  if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
122
122
  throw new SeamHttpInvalidOptionsError(
123
123
  'Missing consoleSessionToken or workspaceId',
124
124
  )
125
125
  }
126
- return new SeamHttpNetworks(constructorOptions)
126
+ return new SeamHttpSeamConsoleV1(constructorOptions)
127
127
  }
128
128
 
129
129
  static fromPersonalAccessToken(
@@ -133,14 +133,14 @@ export class SeamHttpNetworks {
133
133
  SeamHttpOptionsWithPersonalAccessToken,
134
134
  'personalAccessToken' | 'workspaceId'
135
135
  > = {},
136
- ): SeamHttpNetworks {
136
+ ): SeamHttpSeamConsoleV1 {
137
137
  const constructorOptions = { ...options, personalAccessToken, workspaceId }
138
138
  if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
139
139
  throw new SeamHttpInvalidOptionsError(
140
140
  'Missing personalAccessToken or workspaceId',
141
141
  )
142
142
  }
143
- return new SeamHttpNetworks(constructorOptions)
143
+ return new SeamHttpSeamConsoleV1(constructorOptions)
144
144
  }
145
145
 
146
146
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
@@ -168,80 +168,45 @@ export class SeamHttpNetworks {
168
168
  await clientSessions.get()
169
169
  }
170
170
 
171
- get(
172
- parameters?: NetworksGetParameters,
173
- options: NetworksGetOptions = {},
174
- ): NetworksGetRequest {
171
+ getResourceType(
172
+ parameters?: SeamConsoleV1GetResourceTypeParameters,
173
+ options: SeamConsoleV1GetResourceTypeOptions = {},
174
+ ): SeamConsoleV1GetResourceTypeRequest {
175
175
  if (!this.defaults.isUndocumentedApiEnabled) {
176
176
  throw new Error(
177
177
  'Cannot use undocumented API without isUndocumentedApiEnabled',
178
178
  )
179
179
  }
180
180
  return new SeamHttpRequest(this, {
181
- pathname: '/networks/get',
182
- method: 'POST',
183
- body: parameters,
184
- responseKey: 'network',
185
- options,
186
- })
187
- }
188
-
189
- list(
190
- parameters?: NetworksListParameters,
191
- options: NetworksListOptions = {},
192
- ): NetworksListRequest {
193
- if (!this.defaults.isUndocumentedApiEnabled) {
194
- throw new Error(
195
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
196
- )
197
- }
198
- return new SeamHttpRequest(this, {
199
- pathname: '/networks/list',
200
- method: 'POST',
201
- body: parameters,
202
- responseKey: 'networks',
181
+ pathname: '/seam/console/v1/get_resource_type',
182
+ method: 'GET',
183
+ params: parameters,
184
+ responseKey: 'resource_type',
203
185
  options,
204
186
  })
205
187
  }
206
188
  }
207
189
 
208
- export type NetworksGetParameters = RouteRequestBody<'/networks/get'>
209
-
210
- /**
211
- * @deprecated Use NetworksGetParameters instead.
212
- */
213
- export type NetworksGetParams = NetworksGetParameters
214
-
215
- /**
216
- * @deprecated Use NetworksGetRequest instead.
217
- */
218
- export type NetworksGetResponse = SetNonNullable<
219
- Required<RouteResponse<'/networks/get'>>
220
- >
221
-
222
- export type NetworksGetRequest = SeamHttpRequest<NetworksGetResponse, 'network'>
223
-
224
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
225
- export interface NetworksGetOptions {}
226
-
227
- export type NetworksListParameters = RouteRequestBody<'/networks/list'>
190
+ export type SeamConsoleV1GetResourceTypeParameters =
191
+ RouteRequestParams<'/seam/console/v1/get_resource_type'>
228
192
 
229
193
  /**
230
- * @deprecated Use NetworksListParameters instead.
194
+ * @deprecated Use SeamConsoleV1GetResourceTypeParameters instead.
231
195
  */
232
- export type NetworksListParams = NetworksListParameters
196
+ export type SeamConsoleV1GetResourceTypeParams =
197
+ SeamConsoleV1GetResourceTypeParameters
233
198
 
234
199
  /**
235
- * @deprecated Use NetworksListRequest instead.
200
+ * @deprecated Use SeamConsoleV1GetResourceTypeRequest instead.
236
201
  */
237
- export type NetworksListResponse = SetNonNullable<
238
- Required<RouteResponse<'/networks/list'>>
202
+ export type SeamConsoleV1GetResourceTypeResponse = SetNonNullable<
203
+ Required<RouteResponse<'/seam/console/v1/get_resource_type'>>
239
204
  >
240
205
 
241
- export type NetworksListRequest = SeamHttpRequest<
242
- NetworksListResponse,
243
- 'networks'
206
+ export type SeamConsoleV1GetResourceTypeRequest = SeamHttpRequest<
207
+ SeamConsoleV1GetResourceTypeResponse,
208
+ 'resource_type'
244
209
  >
245
210
 
246
211
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
247
- export interface NetworksListOptions {}
212
+ export interface SeamConsoleV1GetResourceTypeOptions {}
@@ -3,5 +3,6 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
+ export * from './console/index.js'
6
7
  export * from './customer/index.js'
7
8
  export * from './partner/index.js'
@@ -476,15 +476,6 @@ import {
476
476
  type LocksSimulateManualLockViaKeypadRequest,
477
477
  SeamHttpLocksSimulate,
478
478
  } from './locks/simulate/index.js'
479
- import {
480
- type NetworksGetOptions,
481
- type NetworksGetParameters,
482
- type NetworksGetRequest,
483
- type NetworksListOptions,
484
- type NetworksListParameters,
485
- type NetworksListRequest,
486
- SeamHttpNetworks,
487
- } from './networks/index.js'
488
479
  import {
489
480
  type NoiseSensorsListOptions,
490
481
  type NoiseSensorsListParameters,
@@ -533,6 +524,12 @@ import {
533
524
  type PhonesSimulateCreateSandboxPhoneRequest,
534
525
  SeamHttpPhonesSimulate,
535
526
  } from './phones/simulate/index.js'
527
+ import {
528
+ type SeamConsoleV1GetResourceTypeOptions,
529
+ type SeamConsoleV1GetResourceTypeParameters,
530
+ type SeamConsoleV1GetResourceTypeRequest,
531
+ SeamHttpSeamConsoleV1,
532
+ } from './seam/console/v1/index.js'
536
533
  import {
537
534
  type SeamCustomerV1AutomationRunsListOptions,
538
535
  type SeamCustomerV1AutomationRunsListParameters,
@@ -841,6 +838,9 @@ import {
841
838
  type WorkspacesCreateOptions,
842
839
  type WorkspacesCreateParameters,
843
840
  type WorkspacesCreateRequest,
841
+ type WorkspacesFindResourcesOptions,
842
+ type WorkspacesFindResourcesParameters,
843
+ type WorkspacesFindResourcesRequest,
844
844
  type WorkspacesGetOptions,
845
845
  type WorkspacesGetParameters,
846
846
  type WorkspacesGetRequest,
@@ -2612,42 +2612,6 @@ export class SeamHttpEndpoints {
2612
2612
  }
2613
2613
  }
2614
2614
 
2615
- get ['/networks/get'](): (
2616
- parameters?: NetworksGetParameters,
2617
- options?: NetworksGetOptions,
2618
- ) => NetworksGetRequest {
2619
- const { client, defaults } = this
2620
- if (!this.defaults.isUndocumentedApiEnabled) {
2621
- throw new Error(
2622
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
2623
- )
2624
- }
2625
- return function networksGet(
2626
- ...args: Parameters<SeamHttpNetworks['get']>
2627
- ): ReturnType<SeamHttpNetworks['get']> {
2628
- const seam = SeamHttpNetworks.fromClient(client, defaults)
2629
- return seam.get(...args)
2630
- }
2631
- }
2632
-
2633
- get ['/networks/list'](): (
2634
- parameters?: NetworksListParameters,
2635
- options?: NetworksListOptions,
2636
- ) => NetworksListRequest {
2637
- const { client, defaults } = this
2638
- if (!this.defaults.isUndocumentedApiEnabled) {
2639
- throw new Error(
2640
- 'Cannot use undocumented API without isUndocumentedApiEnabled',
2641
- )
2642
- }
2643
- return function networksList(
2644
- ...args: Parameters<SeamHttpNetworks['list']>
2645
- ): ReturnType<SeamHttpNetworks['list']> {
2646
- const seam = SeamHttpNetworks.fromClient(client, defaults)
2647
- return seam.list(...args)
2648
- }
2649
- }
2650
-
2651
2615
  get ['/noise_sensors/list'](): (
2652
2616
  parameters?: NoiseSensorsListParameters,
2653
2617
  options?: NoiseSensorsListOptions,
@@ -2806,6 +2770,24 @@ export class SeamHttpEndpoints {
2806
2770
  }
2807
2771
  }
2808
2772
 
2773
+ get ['/seam/console/v1/get_resource_type'](): (
2774
+ parameters?: SeamConsoleV1GetResourceTypeParameters,
2775
+ options?: SeamConsoleV1GetResourceTypeOptions,
2776
+ ) => SeamConsoleV1GetResourceTypeRequest {
2777
+ const { client, defaults } = this
2778
+ if (!this.defaults.isUndocumentedApiEnabled) {
2779
+ throw new Error(
2780
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2781
+ )
2782
+ }
2783
+ return function seamConsoleV1GetResourceType(
2784
+ ...args: Parameters<SeamHttpSeamConsoleV1['getResourceType']>
2785
+ ): ReturnType<SeamHttpSeamConsoleV1['getResourceType']> {
2786
+ const seam = SeamHttpSeamConsoleV1.fromClient(client, defaults)
2787
+ return seam.getResourceType(...args)
2788
+ }
2789
+ }
2790
+
2809
2791
  get ['/seam/customer/v1/automation_runs/list'](): (
2810
2792
  parameters?: SeamCustomerV1AutomationRunsListParameters,
2811
2793
  options?: SeamCustomerV1AutomationRunsListOptions,
@@ -4098,6 +4080,24 @@ export class SeamHttpEndpoints {
4098
4080
  }
4099
4081
  }
4100
4082
 
4083
+ get ['/workspaces/find_resources'](): (
4084
+ parameters?: WorkspacesFindResourcesParameters,
4085
+ options?: WorkspacesFindResourcesOptions,
4086
+ ) => WorkspacesFindResourcesRequest {
4087
+ const { client, defaults } = this
4088
+ if (!this.defaults.isUndocumentedApiEnabled) {
4089
+ throw new Error(
4090
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
4091
+ )
4092
+ }
4093
+ return function workspacesFindResources(
4094
+ ...args: Parameters<SeamHttpWorkspaces['findResources']>
4095
+ ): ReturnType<SeamHttpWorkspaces['findResources']> {
4096
+ const seam = SeamHttpWorkspaces.fromClient(client, defaults)
4097
+ return seam.findResources(...args)
4098
+ }
4099
+ }
4100
+
4101
4101
  get ['/workspaces/get'](): (
4102
4102
  parameters?: WorkspacesGetParameters,
4103
4103
  options?: WorkspacesGetOptions,
@@ -4207,13 +4207,12 @@ export type SeamHttpEndpointQueryPaths =
4207
4207
  | '/events/list'
4208
4208
  | '/locks/get'
4209
4209
  | '/locks/list'
4210
- | '/networks/get'
4211
- | '/networks/list'
4212
4210
  | '/noise_sensors/list'
4213
4211
  | '/noise_sensors/noise_thresholds/get'
4214
4212
  | '/noise_sensors/noise_thresholds/list'
4215
4213
  | '/phones/get'
4216
4214
  | '/phones/list'
4215
+ | '/seam/console/v1/get_resource_type'
4217
4216
  | '/seam/customer/v1/automation_runs/list'
4218
4217
  | '/seam/customer/v1/automations/get'
4219
4218
  | '/seam/customer/v1/portals/get'
@@ -4241,6 +4240,7 @@ export type SeamHttpEndpointQueryPaths =
4241
4240
  | '/user_identities/enrollment_automations/list'
4242
4241
  | '/webhooks/get'
4243
4242
  | '/webhooks/list'
4243
+ | '/workspaces/find_resources'
4244
4244
  | '/workspaces/get'
4245
4245
  | '/workspaces/list'
4246
4246
 
@@ -45,7 +45,6 @@ import { SeamHttpCustomers } from './customers/index.js'
45
45
  import { SeamHttpDevices } from './devices/index.js'
46
46
  import { SeamHttpEvents } from './events/index.js'
47
47
  import { SeamHttpLocks } from './locks/index.js'
48
- import { SeamHttpNetworks } from './networks/index.js'
49
48
  import { SeamHttpNoiseSensors } from './noise-sensors/index.js'
50
49
  import { SeamHttpPhones } from './phones/index.js'
51
50
  import { SeamHttpSpaces } from './spaces/index.js'
@@ -237,10 +236,6 @@ export class SeamHttp {
237
236
  return SeamHttpLocks.fromClient(this.client, this.defaults)
238
237
  }
239
238
 
240
- get networks(): SeamHttpNetworks {
241
- return SeamHttpNetworks.fromClient(this.client, this.defaults)
242
- }
243
-
244
239
  get noiseSensors(): SeamHttpNoiseSensors {
245
240
  return SeamHttpNoiseSensors.fromClient(this.client, this.defaults)
246
241
  }