@seamapi/http 1.40.1 → 1.41.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 (81) hide show
  1. package/dist/connect.cjs +312 -203
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +128 -84
  4. package/lib/seam/connect/routes/customers/customers.d.ts +47 -0
  5. package/lib/seam/connect/routes/customers/customers.js +105 -0
  6. package/lib/seam/connect/routes/customers/customers.js.map +1 -0
  7. package/lib/seam/connect/routes/customers/index.d.ts +1 -0
  8. package/lib/seam/connect/routes/{unstable-partner/resources → customers}/index.js +1 -1
  9. package/lib/seam/connect/routes/customers/index.js.map +1 -0
  10. package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +1 -1
  11. package/lib/seam/connect/routes/index.d.ts +1 -0
  12. package/lib/seam/connect/routes/index.js +1 -0
  13. package/lib/seam/connect/routes/index.js.map +1 -1
  14. package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +1 -1
  15. package/lib/seam/connect/routes/seam/customer/index.d.ts +1 -0
  16. package/lib/seam/connect/routes/seam/{partner/v1/resources → customer}/index.js +1 -1
  17. package/lib/seam/connect/routes/seam/customer/index.js.map +1 -0
  18. package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +3 -0
  19. package/lib/seam/connect/routes/seam/customer/v1/index.js +8 -0
  20. package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -0
  21. package/lib/seam/connect/routes/seam/customer/v1/portals/index.d.ts +1 -0
  22. package/lib/seam/connect/routes/seam/customer/v1/portals/index.js +6 -0
  23. package/lib/seam/connect/routes/seam/customer/v1/portals/index.js.map +1 -0
  24. package/lib/seam/connect/routes/{unstable-partner/resources/resources.d.ts → seam/customer/v1/portals/portals.d.ts} +20 -20
  25. package/lib/seam/connect/routes/{unstable-partner/resources/resources.js → seam/customer/v1/portals/portals.js} +21 -21
  26. package/lib/seam/connect/routes/{unstable-partner/resources/resources.js.map → seam/customer/v1/portals/portals.js.map} +1 -1
  27. package/lib/seam/connect/routes/seam/customer/v1/settings/index.d.ts +1 -0
  28. package/lib/seam/connect/routes/seam/customer/v1/settings/index.js +6 -0
  29. package/lib/seam/connect/routes/seam/customer/v1/settings/index.js.map +1 -0
  30. package/lib/seam/connect/routes/seam/{partner/v1/resources/resources.d.ts → customer/v1/settings/settings.d.ts} +15 -15
  31. package/lib/seam/connect/routes/seam/{partner/v1/resources/resources.js → customer/v1/settings/settings.js} +14 -14
  32. package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -0
  33. package/lib/seam/connect/routes/seam/{partner → customer}/v1/v1.d.ts +11 -11
  34. package/lib/seam/connect/routes/seam/{partner → customer}/v1/v1.js +15 -15
  35. package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -0
  36. package/lib/seam/connect/routes/seam/index.d.ts +1 -0
  37. package/lib/seam/connect/routes/seam/index.js +1 -0
  38. package/lib/seam/connect/routes/seam/index.js.map +1 -1
  39. package/lib/seam/connect/routes/seam/partner/v1/index.d.ts +0 -2
  40. package/lib/seam/connect/routes/seam/partner/v1/index.js +0 -2
  41. package/lib/seam/connect/routes/seam/partner/v1/index.js.map +1 -1
  42. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +9 -6
  43. package/lib/seam/connect/routes/seam-http-endpoints.js +35 -20
  44. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  45. package/lib/seam/connect/routes/seam-http.d.ts +2 -0
  46. package/lib/seam/connect/routes/seam-http.js +4 -0
  47. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  48. package/lib/seam/connect/routes/unstable-partner/index.d.ts +0 -1
  49. package/lib/seam/connect/routes/unstable-partner/index.js +0 -1
  50. package/lib/seam/connect/routes/unstable-partner/index.js.map +1 -1
  51. package/lib/seam/connect/routes/unstable-partner/unstable-partner.d.ts +0 -2
  52. package/lib/seam/connect/routes/unstable-partner/unstable-partner.js +0 -4
  53. package/lib/seam/connect/routes/unstable-partner/unstable-partner.js.map +1 -1
  54. package/lib/version.d.ts +1 -1
  55. package/lib/version.js +1 -1
  56. package/package.json +3 -3
  57. package/src/lib/seam/connect/routes/customers/customers.ts +234 -0
  58. package/src/lib/seam/connect/routes/{seam/partner/v1/resources → customers}/index.ts +1 -1
  59. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +1 -1
  60. package/src/lib/seam/connect/routes/index.ts +1 -0
  61. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +1 -1
  62. package/src/lib/seam/connect/routes/{unstable-partner/resources → seam/customer}/index.ts +1 -1
  63. package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +8 -0
  64. package/src/lib/seam/connect/routes/seam/customer/v1/portals/index.ts +6 -0
  65. package/src/lib/seam/connect/routes/seam/{partner/v1/resources/resources.ts → customer/v1/portals/portals.ts} +31 -32
  66. package/src/lib/seam/connect/routes/seam/customer/v1/settings/index.ts +6 -0
  67. package/src/lib/seam/connect/routes/{unstable-partner/resources/resources.ts → seam/customer/v1/settings/settings.ts} +30 -33
  68. package/src/lib/seam/connect/routes/seam/{partner → customer}/v1/v1.ts +20 -23
  69. package/src/lib/seam/connect/routes/seam/index.ts +1 -0
  70. package/src/lib/seam/connect/routes/seam/partner/v1/index.ts +0 -2
  71. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +88 -51
  72. package/src/lib/seam/connect/routes/seam-http.ts +5 -0
  73. package/src/lib/seam/connect/routes/unstable-partner/index.ts +0 -1
  74. package/src/lib/seam/connect/routes/unstable-partner/unstable-partner.ts +0 -8
  75. package/src/lib/version.ts +1 -1
  76. package/lib/seam/connect/routes/seam/partner/v1/resources/index.d.ts +0 -1
  77. package/lib/seam/connect/routes/seam/partner/v1/resources/index.js.map +0 -1
  78. package/lib/seam/connect/routes/seam/partner/v1/resources/resources.js.map +0 -1
  79. package/lib/seam/connect/routes/seam/partner/v1/v1.js.map +0 -1
  80. package/lib/seam/connect/routes/unstable-partner/resources/index.d.ts +0 -1
  81. package/lib/seam/connect/routes/unstable-partner/resources/index.js.map +0 -1
package/dist/connect.cjs CHANGED
@@ -3792,6 +3792,109 @@ var _SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
3792
3792
  _SeamHttpConnectedAccounts.ltsVersion = seamApiLtsVersion;
3793
3793
  var SeamHttpConnectedAccounts = _SeamHttpConnectedAccounts;
3794
3794
 
3795
+ // src/lib/seam/connect/routes/customers/customers.ts
3796
+ var _SeamHttpCustomers = class _SeamHttpCustomers {
3797
+ constructor(apiKeyOrOptions = {}) {
3798
+ this.ltsVersion = seamApiLtsVersion;
3799
+ const options = parseOptions(apiKeyOrOptions);
3800
+ this.client = "client" in options ? options.client : createClient(options);
3801
+ this.defaults = limitToSeamHttpRequestOptions(options);
3802
+ }
3803
+ static fromClient(client, options = {}) {
3804
+ const constructorOptions = { ...options, client };
3805
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
3806
+ throw new SeamHttpInvalidOptionsError("Missing client");
3807
+ }
3808
+ return new _SeamHttpCustomers(constructorOptions);
3809
+ }
3810
+ static fromApiKey(apiKey, options = {}) {
3811
+ const constructorOptions = { ...options, apiKey };
3812
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
3813
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
3814
+ }
3815
+ return new _SeamHttpCustomers(constructorOptions);
3816
+ }
3817
+ static fromClientSessionToken(clientSessionToken, options = {}) {
3818
+ const constructorOptions = { ...options, clientSessionToken };
3819
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
3820
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
3821
+ }
3822
+ return new _SeamHttpCustomers(constructorOptions);
3823
+ }
3824
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
3825
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
3826
+ const clientOptions = parseOptions({ ...options, publishableKey });
3827
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
3828
+ throw new SeamHttpInvalidOptionsError(
3829
+ "The client option cannot be used with SeamHttpCustomers.fromPublishableKey"
3830
+ );
3831
+ }
3832
+ const client = createClient(clientOptions);
3833
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
3834
+ const { token } = await clientSessions.getOrCreate({
3835
+ user_identifier_key: userIdentifierKey
3836
+ });
3837
+ return _SeamHttpCustomers.fromClientSessionToken(token, options);
3838
+ }
3839
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
3840
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
3841
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
3842
+ throw new SeamHttpInvalidOptionsError(
3843
+ "Missing consoleSessionToken or workspaceId"
3844
+ );
3845
+ }
3846
+ return new _SeamHttpCustomers(constructorOptions);
3847
+ }
3848
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
3849
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
3850
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
3851
+ throw new SeamHttpInvalidOptionsError(
3852
+ "Missing personalAccessToken or workspaceId"
3853
+ );
3854
+ }
3855
+ return new _SeamHttpCustomers(constructorOptions);
3856
+ }
3857
+ createPaginator(request) {
3858
+ return new SeamPaginator(this, request);
3859
+ }
3860
+ async updateClientSessionToken(clientSessionToken) {
3861
+ const { headers } = this.client.defaults;
3862
+ const authHeaders = getAuthHeadersForClientSessionToken({
3863
+ clientSessionToken
3864
+ });
3865
+ for (const key of Object.keys(authHeaders)) {
3866
+ if (headers[key] == null) {
3867
+ throw new Error(
3868
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
3869
+ );
3870
+ }
3871
+ }
3872
+ this.client.defaults.headers = { ...headers, ...authHeaders };
3873
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
3874
+ await clientSessions.get();
3875
+ }
3876
+ createPortal(parameters, options = {}) {
3877
+ return new SeamHttpRequest(this, {
3878
+ pathname: "/customers/create_portal",
3879
+ method: "POST",
3880
+ body: parameters,
3881
+ responseKey: "magic_link",
3882
+ options
3883
+ });
3884
+ }
3885
+ pushData(parameters, options = {}) {
3886
+ return new SeamHttpRequest(this, {
3887
+ pathname: "/customers/push_data",
3888
+ method: "POST",
3889
+ body: parameters,
3890
+ responseKey: void 0,
3891
+ options
3892
+ });
3893
+ }
3894
+ };
3895
+ _SeamHttpCustomers.ltsVersion = seamApiLtsVersion;
3896
+ var SeamHttpCustomers = _SeamHttpCustomers;
3897
+
3795
3898
  // src/lib/seam/connect/routes/devices/simulate/simulate.ts
3796
3899
  var _SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
3797
3900
  constructor(apiKeyOrOptions = {}) {
@@ -5159,8 +5262,8 @@ var _SeamHttpPhones = class _SeamHttpPhones {
5159
5262
  _SeamHttpPhones.ltsVersion = seamApiLtsVersion;
5160
5263
  var SeamHttpPhones = _SeamHttpPhones;
5161
5264
 
5162
- // src/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.ts
5163
- var _SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1BuildingBlocksSpaces {
5265
+ // src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts
5266
+ var _SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
5164
5267
  constructor(apiKeyOrOptions = {}) {
5165
5268
  this.ltsVersion = seamApiLtsVersion;
5166
5269
  const options = parseOptions(apiKeyOrOptions);
@@ -5177,28 +5280,28 @@ var _SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Bui
5177
5280
  if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5178
5281
  throw new SeamHttpInvalidOptionsError("Missing client");
5179
5282
  }
5180
- return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5283
+ return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
5181
5284
  }
5182
5285
  static fromApiKey(apiKey, options = {}) {
5183
5286
  const constructorOptions = { ...options, apiKey };
5184
5287
  if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5185
5288
  throw new SeamHttpInvalidOptionsError("Missing apiKey");
5186
5289
  }
5187
- return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5290
+ return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
5188
5291
  }
5189
5292
  static fromClientSessionToken(clientSessionToken, options = {}) {
5190
5293
  const constructorOptions = { ...options, clientSessionToken };
5191
5294
  if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5192
5295
  throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5193
5296
  }
5194
- return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5297
+ return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
5195
5298
  }
5196
5299
  static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5197
5300
  warnOnInsecureuserIdentifierKey(userIdentifierKey);
5198
5301
  const clientOptions = parseOptions({ ...options, publishableKey });
5199
5302
  if (isSeamHttpOptionsWithClient(clientOptions)) {
5200
5303
  throw new SeamHttpInvalidOptionsError(
5201
- "The client option cannot be used with SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromPublishableKey"
5304
+ "The client option cannot be used with SeamHttpSeamCustomerV1Portals.fromPublishableKey"
5202
5305
  );
5203
5306
  }
5204
5307
  const client = createClient(clientOptions);
@@ -5206,10 +5309,7 @@ var _SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Bui
5206
5309
  const { token } = await clientSessions.getOrCreate({
5207
5310
  user_identifier_key: userIdentifierKey
5208
5311
  });
5209
- return _SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClientSessionToken(
5210
- token,
5211
- options
5212
- );
5312
+ return _SeamHttpSeamCustomerV1Portals.fromClientSessionToken(token, options);
5213
5313
  }
5214
5314
  static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5215
5315
  const constructorOptions = { ...options, consoleSessionToken, workspaceId };
@@ -5218,7 +5318,7 @@ var _SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Bui
5218
5318
  "Missing consoleSessionToken or workspaceId"
5219
5319
  );
5220
5320
  }
5221
- return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5321
+ return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
5222
5322
  }
5223
5323
  static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5224
5324
  const constructorOptions = { ...options, personalAccessToken, workspaceId };
@@ -5227,7 +5327,7 @@ var _SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Bui
5227
5327
  "Missing personalAccessToken or workspaceId"
5228
5328
  );
5229
5329
  }
5230
- return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5330
+ return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
5231
5331
  }
5232
5332
  createPaginator(request) {
5233
5333
  return new SeamPaginator(this, request);
@@ -5248,26 +5348,26 @@ var _SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Bui
5248
5348
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5249
5349
  await clientSessions.get();
5250
5350
  }
5251
- autoMap(parameters, options = {}) {
5351
+ get(parameters, options = {}) {
5252
5352
  if (!this.defaults.isUndocumentedApiEnabled) {
5253
5353
  throw new Error(
5254
5354
  "Cannot use undocumented API without isUndocumentedApiEnabled"
5255
5355
  );
5256
5356
  }
5257
5357
  return new SeamHttpRequest(this, {
5258
- pathname: "/seam/partner/v1/building_blocks/spaces/auto_map",
5358
+ pathname: "/seam/customer/v1/portals/get",
5259
5359
  method: "POST",
5260
5360
  body: parameters,
5261
- responseKey: "spaces",
5361
+ responseKey: "customer_portal",
5262
5362
  options
5263
5363
  });
5264
5364
  }
5265
5365
  };
5266
- _SeamHttpSeamPartnerV1BuildingBlocksSpaces.ltsVersion = seamApiLtsVersion;
5267
- var SeamHttpSeamPartnerV1BuildingBlocksSpaces = _SeamHttpSeamPartnerV1BuildingBlocksSpaces;
5366
+ _SeamHttpSeamCustomerV1Portals.ltsVersion = seamApiLtsVersion;
5367
+ var SeamHttpSeamCustomerV1Portals = _SeamHttpSeamCustomerV1Portals;
5268
5368
 
5269
- // src/lib/seam/connect/routes/seam/partner/v1/building-blocks/building-blocks.ts
5270
- var _SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBlocks {
5369
+ // src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts
5370
+ var _SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
5271
5371
  constructor(apiKeyOrOptions = {}) {
5272
5372
  this.ltsVersion = seamApiLtsVersion;
5273
5373
  const options = parseOptions(apiKeyOrOptions);
@@ -5284,28 +5384,28 @@ var _SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingB
5284
5384
  if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5285
5385
  throw new SeamHttpInvalidOptionsError("Missing client");
5286
5386
  }
5287
- return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5387
+ return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
5288
5388
  }
5289
5389
  static fromApiKey(apiKey, options = {}) {
5290
5390
  const constructorOptions = { ...options, apiKey };
5291
5391
  if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5292
5392
  throw new SeamHttpInvalidOptionsError("Missing apiKey");
5293
5393
  }
5294
- return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5394
+ return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
5295
5395
  }
5296
5396
  static fromClientSessionToken(clientSessionToken, options = {}) {
5297
5397
  const constructorOptions = { ...options, clientSessionToken };
5298
5398
  if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5299
5399
  throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5300
5400
  }
5301
- return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5401
+ return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
5302
5402
  }
5303
5403
  static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5304
5404
  warnOnInsecureuserIdentifierKey(userIdentifierKey);
5305
5405
  const clientOptions = parseOptions({ ...options, publishableKey });
5306
5406
  if (isSeamHttpOptionsWithClient(clientOptions)) {
5307
5407
  throw new SeamHttpInvalidOptionsError(
5308
- "The client option cannot be used with SeamHttpSeamPartnerV1BuildingBlocks.fromPublishableKey"
5408
+ "The client option cannot be used with SeamHttpSeamCustomerV1Settings.fromPublishableKey"
5309
5409
  );
5310
5410
  }
5311
5411
  const client = createClient(clientOptions);
@@ -5313,10 +5413,111 @@ var _SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingB
5313
5413
  const { token } = await clientSessions.getOrCreate({
5314
5414
  user_identifier_key: userIdentifierKey
5315
5415
  });
5316
- return _SeamHttpSeamPartnerV1BuildingBlocks.fromClientSessionToken(
5317
- token,
5416
+ return _SeamHttpSeamCustomerV1Settings.fromClientSessionToken(token, options);
5417
+ }
5418
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5419
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
5420
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
5421
+ throw new SeamHttpInvalidOptionsError(
5422
+ "Missing consoleSessionToken or workspaceId"
5423
+ );
5424
+ }
5425
+ return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
5426
+ }
5427
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5428
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
5429
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
5430
+ throw new SeamHttpInvalidOptionsError(
5431
+ "Missing personalAccessToken or workspaceId"
5432
+ );
5433
+ }
5434
+ return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
5435
+ }
5436
+ createPaginator(request) {
5437
+ return new SeamPaginator(this, request);
5438
+ }
5439
+ async updateClientSessionToken(clientSessionToken) {
5440
+ const { headers } = this.client.defaults;
5441
+ const authHeaders = getAuthHeadersForClientSessionToken({
5442
+ clientSessionToken
5443
+ });
5444
+ for (const key of Object.keys(authHeaders)) {
5445
+ if (headers[key] == null) {
5446
+ throw new Error(
5447
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
5448
+ );
5449
+ }
5450
+ }
5451
+ this.client.defaults.headers = { ...headers, ...authHeaders };
5452
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5453
+ await clientSessions.get();
5454
+ }
5455
+ update(parameters, options = {}) {
5456
+ if (!this.defaults.isUndocumentedApiEnabled) {
5457
+ throw new Error(
5458
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5459
+ );
5460
+ }
5461
+ return new SeamHttpRequest(this, {
5462
+ pathname: "/seam/customer/v1/settings/update",
5463
+ method: "PATCH",
5464
+ body: parameters,
5465
+ responseKey: void 0,
5318
5466
  options
5319
- );
5467
+ });
5468
+ }
5469
+ };
5470
+ _SeamHttpSeamCustomerV1Settings.ltsVersion = seamApiLtsVersion;
5471
+ var SeamHttpSeamCustomerV1Settings = _SeamHttpSeamCustomerV1Settings;
5472
+
5473
+ // src/lib/seam/connect/routes/seam/customer/v1/v1.ts
5474
+ var _SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
5475
+ constructor(apiKeyOrOptions = {}) {
5476
+ this.ltsVersion = seamApiLtsVersion;
5477
+ const options = parseOptions(apiKeyOrOptions);
5478
+ if (!options.isUndocumentedApiEnabled) {
5479
+ throw new Error(
5480
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5481
+ );
5482
+ }
5483
+ this.client = "client" in options ? options.client : createClient(options);
5484
+ this.defaults = limitToSeamHttpRequestOptions(options);
5485
+ }
5486
+ static fromClient(client, options = {}) {
5487
+ const constructorOptions = { ...options, client };
5488
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5489
+ throw new SeamHttpInvalidOptionsError("Missing client");
5490
+ }
5491
+ return new _SeamHttpSeamCustomerV1(constructorOptions);
5492
+ }
5493
+ static fromApiKey(apiKey, options = {}) {
5494
+ const constructorOptions = { ...options, apiKey };
5495
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5496
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
5497
+ }
5498
+ return new _SeamHttpSeamCustomerV1(constructorOptions);
5499
+ }
5500
+ static fromClientSessionToken(clientSessionToken, options = {}) {
5501
+ const constructorOptions = { ...options, clientSessionToken };
5502
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5503
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5504
+ }
5505
+ return new _SeamHttpSeamCustomerV1(constructorOptions);
5506
+ }
5507
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5508
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
5509
+ const clientOptions = parseOptions({ ...options, publishableKey });
5510
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
5511
+ throw new SeamHttpInvalidOptionsError(
5512
+ "The client option cannot be used with SeamHttpSeamCustomerV1.fromPublishableKey"
5513
+ );
5514
+ }
5515
+ const client = createClient(clientOptions);
5516
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
5517
+ const { token } = await clientSessions.getOrCreate({
5518
+ user_identifier_key: userIdentifierKey
5519
+ });
5520
+ return _SeamHttpSeamCustomerV1.fromClientSessionToken(token, options);
5320
5521
  }
5321
5522
  static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5322
5523
  const constructorOptions = { ...options, consoleSessionToken, workspaceId };
@@ -5325,7 +5526,7 @@ var _SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingB
5325
5526
  "Missing consoleSessionToken or workspaceId"
5326
5527
  );
5327
5528
  }
5328
- return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5529
+ return new _SeamHttpSeamCustomerV1(constructorOptions);
5329
5530
  }
5330
5531
  static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5331
5532
  const constructorOptions = { ...options, personalAccessToken, workspaceId };
@@ -5334,7 +5535,7 @@ var _SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingB
5334
5535
  "Missing personalAccessToken or workspaceId"
5335
5536
  );
5336
5537
  }
5337
- return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5538
+ return new _SeamHttpSeamCustomerV1(constructorOptions);
5338
5539
  }
5339
5540
  createPaginator(request) {
5340
5541
  return new SeamPaginator(this, request);
@@ -5355,18 +5556,18 @@ var _SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingB
5355
5556
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5356
5557
  await clientSessions.get();
5357
5558
  }
5358
- get spaces() {
5359
- return SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClient(
5360
- this.client,
5361
- this.defaults
5362
- );
5559
+ get portals() {
5560
+ return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults);
5561
+ }
5562
+ get settings() {
5563
+ return SeamHttpSeamCustomerV1Settings.fromClient(this.client, this.defaults);
5363
5564
  }
5364
5565
  };
5365
- _SeamHttpSeamPartnerV1BuildingBlocks.ltsVersion = seamApiLtsVersion;
5366
- var SeamHttpSeamPartnerV1BuildingBlocks = _SeamHttpSeamPartnerV1BuildingBlocks;
5566
+ _SeamHttpSeamCustomerV1.ltsVersion = seamApiLtsVersion;
5567
+ var SeamHttpSeamCustomerV1 = _SeamHttpSeamCustomerV1;
5367
5568
 
5368
- // src/lib/seam/connect/routes/seam/partner/v1/resources/resources.ts
5369
- var _SeamHttpSeamPartnerV1Resources = class _SeamHttpSeamPartnerV1Resources {
5569
+ // src/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.ts
5570
+ var _SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1BuildingBlocksSpaces {
5370
5571
  constructor(apiKeyOrOptions = {}) {
5371
5572
  this.ltsVersion = seamApiLtsVersion;
5372
5573
  const options = parseOptions(apiKeyOrOptions);
@@ -5383,28 +5584,28 @@ var _SeamHttpSeamPartnerV1Resources = class _SeamHttpSeamPartnerV1Resources {
5383
5584
  if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5384
5585
  throw new SeamHttpInvalidOptionsError("Missing client");
5385
5586
  }
5386
- return new _SeamHttpSeamPartnerV1Resources(constructorOptions);
5587
+ return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5387
5588
  }
5388
5589
  static fromApiKey(apiKey, options = {}) {
5389
5590
  const constructorOptions = { ...options, apiKey };
5390
5591
  if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5391
5592
  throw new SeamHttpInvalidOptionsError("Missing apiKey");
5392
5593
  }
5393
- return new _SeamHttpSeamPartnerV1Resources(constructorOptions);
5594
+ return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5394
5595
  }
5395
5596
  static fromClientSessionToken(clientSessionToken, options = {}) {
5396
5597
  const constructorOptions = { ...options, clientSessionToken };
5397
5598
  if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5398
5599
  throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5399
5600
  }
5400
- return new _SeamHttpSeamPartnerV1Resources(constructorOptions);
5601
+ return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5401
5602
  }
5402
5603
  static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5403
5604
  warnOnInsecureuserIdentifierKey(userIdentifierKey);
5404
5605
  const clientOptions = parseOptions({ ...options, publishableKey });
5405
5606
  if (isSeamHttpOptionsWithClient(clientOptions)) {
5406
5607
  throw new SeamHttpInvalidOptionsError(
5407
- "The client option cannot be used with SeamHttpSeamPartnerV1Resources.fromPublishableKey"
5608
+ "The client option cannot be used with SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromPublishableKey"
5408
5609
  );
5409
5610
  }
5410
5611
  const client = createClient(clientOptions);
@@ -5412,7 +5613,10 @@ var _SeamHttpSeamPartnerV1Resources = class _SeamHttpSeamPartnerV1Resources {
5412
5613
  const { token } = await clientSessions.getOrCreate({
5413
5614
  user_identifier_key: userIdentifierKey
5414
5615
  });
5415
- return _SeamHttpSeamPartnerV1Resources.fromClientSessionToken(token, options);
5616
+ return _SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClientSessionToken(
5617
+ token,
5618
+ options
5619
+ );
5416
5620
  }
5417
5621
  static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5418
5622
  const constructorOptions = { ...options, consoleSessionToken, workspaceId };
@@ -5421,7 +5625,7 @@ var _SeamHttpSeamPartnerV1Resources = class _SeamHttpSeamPartnerV1Resources {
5421
5625
  "Missing consoleSessionToken or workspaceId"
5422
5626
  );
5423
5627
  }
5424
- return new _SeamHttpSeamPartnerV1Resources(constructorOptions);
5628
+ return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5425
5629
  }
5426
5630
  static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5427
5631
  const constructorOptions = { ...options, personalAccessToken, workspaceId };
@@ -5430,7 +5634,7 @@ var _SeamHttpSeamPartnerV1Resources = class _SeamHttpSeamPartnerV1Resources {
5430
5634
  "Missing personalAccessToken or workspaceId"
5431
5635
  );
5432
5636
  }
5433
- return new _SeamHttpSeamPartnerV1Resources(constructorOptions);
5637
+ return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
5434
5638
  }
5435
5639
  createPaginator(request) {
5436
5640
  return new SeamPaginator(this, request);
@@ -5451,26 +5655,26 @@ var _SeamHttpSeamPartnerV1Resources = class _SeamHttpSeamPartnerV1Resources {
5451
5655
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5452
5656
  await clientSessions.get();
5453
5657
  }
5454
- list(parameters, options = {}) {
5658
+ autoMap(parameters, options = {}) {
5455
5659
  if (!this.defaults.isUndocumentedApiEnabled) {
5456
5660
  throw new Error(
5457
5661
  "Cannot use undocumented API without isUndocumentedApiEnabled"
5458
5662
  );
5459
5663
  }
5460
5664
  return new SeamHttpRequest(this, {
5461
- pathname: "/seam/partner/v1/resources/list",
5665
+ pathname: "/seam/partner/v1/building_blocks/spaces/auto_map",
5462
5666
  method: "POST",
5463
5667
  body: parameters,
5464
- responseKey: "partner_resources",
5668
+ responseKey: "spaces",
5465
5669
  options
5466
5670
  });
5467
5671
  }
5468
5672
  };
5469
- _SeamHttpSeamPartnerV1Resources.ltsVersion = seamApiLtsVersion;
5470
- var SeamHttpSeamPartnerV1Resources = _SeamHttpSeamPartnerV1Resources;
5673
+ _SeamHttpSeamPartnerV1BuildingBlocksSpaces.ltsVersion = seamApiLtsVersion;
5674
+ var SeamHttpSeamPartnerV1BuildingBlocksSpaces = _SeamHttpSeamPartnerV1BuildingBlocksSpaces;
5471
5675
 
5472
- // src/lib/seam/connect/routes/seam/partner/v1/v1.ts
5473
- var _SeamHttpSeamPartnerV1 = class _SeamHttpSeamPartnerV1 {
5676
+ // src/lib/seam/connect/routes/seam/partner/v1/building-blocks/building-blocks.ts
5677
+ var _SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBlocks {
5474
5678
  constructor(apiKeyOrOptions = {}) {
5475
5679
  this.ltsVersion = seamApiLtsVersion;
5476
5680
  const options = parseOptions(apiKeyOrOptions);
@@ -5487,28 +5691,28 @@ var _SeamHttpSeamPartnerV1 = class _SeamHttpSeamPartnerV1 {
5487
5691
  if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5488
5692
  throw new SeamHttpInvalidOptionsError("Missing client");
5489
5693
  }
5490
- return new _SeamHttpSeamPartnerV1(constructorOptions);
5694
+ return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5491
5695
  }
5492
5696
  static fromApiKey(apiKey, options = {}) {
5493
5697
  const constructorOptions = { ...options, apiKey };
5494
5698
  if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5495
5699
  throw new SeamHttpInvalidOptionsError("Missing apiKey");
5496
5700
  }
5497
- return new _SeamHttpSeamPartnerV1(constructorOptions);
5701
+ return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5498
5702
  }
5499
5703
  static fromClientSessionToken(clientSessionToken, options = {}) {
5500
5704
  const constructorOptions = { ...options, clientSessionToken };
5501
5705
  if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5502
5706
  throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5503
5707
  }
5504
- return new _SeamHttpSeamPartnerV1(constructorOptions);
5708
+ return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5505
5709
  }
5506
5710
  static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5507
5711
  warnOnInsecureuserIdentifierKey(userIdentifierKey);
5508
5712
  const clientOptions = parseOptions({ ...options, publishableKey });
5509
5713
  if (isSeamHttpOptionsWithClient(clientOptions)) {
5510
5714
  throw new SeamHttpInvalidOptionsError(
5511
- "The client option cannot be used with SeamHttpSeamPartnerV1.fromPublishableKey"
5715
+ "The client option cannot be used with SeamHttpSeamPartnerV1BuildingBlocks.fromPublishableKey"
5512
5716
  );
5513
5717
  }
5514
5718
  const client = createClient(clientOptions);
@@ -5516,7 +5720,10 @@ var _SeamHttpSeamPartnerV1 = class _SeamHttpSeamPartnerV1 {
5516
5720
  const { token } = await clientSessions.getOrCreate({
5517
5721
  user_identifier_key: userIdentifierKey
5518
5722
  });
5519
- return _SeamHttpSeamPartnerV1.fromClientSessionToken(token, options);
5723
+ return _SeamHttpSeamPartnerV1BuildingBlocks.fromClientSessionToken(
5724
+ token,
5725
+ options
5726
+ );
5520
5727
  }
5521
5728
  static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5522
5729
  const constructorOptions = { ...options, consoleSessionToken, workspaceId };
@@ -5525,7 +5732,7 @@ var _SeamHttpSeamPartnerV1 = class _SeamHttpSeamPartnerV1 {
5525
5732
  "Missing consoleSessionToken or workspaceId"
5526
5733
  );
5527
5734
  }
5528
- return new _SeamHttpSeamPartnerV1(constructorOptions);
5735
+ return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5529
5736
  }
5530
5737
  static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5531
5738
  const constructorOptions = { ...options, personalAccessToken, workspaceId };
@@ -5534,7 +5741,7 @@ var _SeamHttpSeamPartnerV1 = class _SeamHttpSeamPartnerV1 {
5534
5741
  "Missing personalAccessToken or workspaceId"
5535
5742
  );
5536
5743
  }
5537
- return new _SeamHttpSeamPartnerV1(constructorOptions);
5744
+ return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
5538
5745
  }
5539
5746
  createPaginator(request) {
5540
5747
  return new SeamPaginator(this, request);
@@ -5555,18 +5762,15 @@ var _SeamHttpSeamPartnerV1 = class _SeamHttpSeamPartnerV1 {
5555
5762
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5556
5763
  await clientSessions.get();
5557
5764
  }
5558
- get buildingBlocks() {
5559
- return SeamHttpSeamPartnerV1BuildingBlocks.fromClient(
5765
+ get spaces() {
5766
+ return SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClient(
5560
5767
  this.client,
5561
5768
  this.defaults
5562
5769
  );
5563
5770
  }
5564
- get resources() {
5565
- return SeamHttpSeamPartnerV1Resources.fromClient(this.client, this.defaults);
5566
- }
5567
5771
  };
5568
- _SeamHttpSeamPartnerV1.ltsVersion = seamApiLtsVersion;
5569
- var SeamHttpSeamPartnerV1 = _SeamHttpSeamPartnerV1;
5772
+ _SeamHttpSeamPartnerV1BuildingBlocks.ltsVersion = seamApiLtsVersion;
5773
+ var SeamHttpSeamPartnerV1BuildingBlocks = _SeamHttpSeamPartnerV1BuildingBlocks;
5570
5774
 
5571
5775
  // src/lib/seam/connect/routes/spaces/spaces.ts
5572
5776
  var _SeamHttpSpaces = class _SeamHttpSpaces {
@@ -6962,113 +7166,6 @@ var _SeamHttpUnstablePartnerBuildingBlocks = class _SeamHttpUnstablePartnerBuild
6962
7166
  _SeamHttpUnstablePartnerBuildingBlocks.ltsVersion = seamApiLtsVersion;
6963
7167
  var SeamHttpUnstablePartnerBuildingBlocks = _SeamHttpUnstablePartnerBuildingBlocks;
6964
7168
 
6965
- // src/lib/seam/connect/routes/unstable-partner/resources/resources.ts
6966
- var _SeamHttpUnstablePartnerResources = class _SeamHttpUnstablePartnerResources {
6967
- constructor(apiKeyOrOptions = {}) {
6968
- this.ltsVersion = seamApiLtsVersion;
6969
- const options = parseOptions(apiKeyOrOptions);
6970
- if (!options.isUndocumentedApiEnabled) {
6971
- throw new Error(
6972
- "Cannot use undocumented API without isUndocumentedApiEnabled"
6973
- );
6974
- }
6975
- this.client = "client" in options ? options.client : createClient(options);
6976
- this.defaults = limitToSeamHttpRequestOptions(options);
6977
- }
6978
- static fromClient(client, options = {}) {
6979
- const constructorOptions = { ...options, client };
6980
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
6981
- throw new SeamHttpInvalidOptionsError("Missing client");
6982
- }
6983
- return new _SeamHttpUnstablePartnerResources(constructorOptions);
6984
- }
6985
- static fromApiKey(apiKey, options = {}) {
6986
- const constructorOptions = { ...options, apiKey };
6987
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
6988
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
6989
- }
6990
- return new _SeamHttpUnstablePartnerResources(constructorOptions);
6991
- }
6992
- static fromClientSessionToken(clientSessionToken, options = {}) {
6993
- const constructorOptions = { ...options, clientSessionToken };
6994
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
6995
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
6996
- }
6997
- return new _SeamHttpUnstablePartnerResources(constructorOptions);
6998
- }
6999
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
7000
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
7001
- const clientOptions = parseOptions({ ...options, publishableKey });
7002
- if (isSeamHttpOptionsWithClient(clientOptions)) {
7003
- throw new SeamHttpInvalidOptionsError(
7004
- "The client option cannot be used with SeamHttpUnstablePartnerResources.fromPublishableKey"
7005
- );
7006
- }
7007
- const client = createClient(clientOptions);
7008
- const clientSessions = SeamHttpClientSessions.fromClient(client);
7009
- const { token } = await clientSessions.getOrCreate({
7010
- user_identifier_key: userIdentifierKey
7011
- });
7012
- return _SeamHttpUnstablePartnerResources.fromClientSessionToken(
7013
- token,
7014
- options
7015
- );
7016
- }
7017
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
7018
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
7019
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
7020
- throw new SeamHttpInvalidOptionsError(
7021
- "Missing consoleSessionToken or workspaceId"
7022
- );
7023
- }
7024
- return new _SeamHttpUnstablePartnerResources(constructorOptions);
7025
- }
7026
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
7027
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
7028
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
7029
- throw new SeamHttpInvalidOptionsError(
7030
- "Missing personalAccessToken or workspaceId"
7031
- );
7032
- }
7033
- return new _SeamHttpUnstablePartnerResources(constructorOptions);
7034
- }
7035
- createPaginator(request) {
7036
- return new SeamPaginator(this, request);
7037
- }
7038
- async updateClientSessionToken(clientSessionToken) {
7039
- const { headers } = this.client.defaults;
7040
- const authHeaders = getAuthHeadersForClientSessionToken({
7041
- clientSessionToken
7042
- });
7043
- for (const key of Object.keys(authHeaders)) {
7044
- if (headers[key] == null) {
7045
- throw new Error(
7046
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
7047
- );
7048
- }
7049
- }
7050
- this.client.defaults.headers = { ...headers, ...authHeaders };
7051
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7052
- await clientSessions.get();
7053
- }
7054
- push(parameters, options = {}) {
7055
- if (!this.defaults.isUndocumentedApiEnabled) {
7056
- throw new Error(
7057
- "Cannot use undocumented API without isUndocumentedApiEnabled"
7058
- );
7059
- }
7060
- return new SeamHttpRequest(this, {
7061
- pathname: "/unstable_partner/resources/push",
7062
- method: "POST",
7063
- body: parameters,
7064
- responseKey: void 0,
7065
- options
7066
- });
7067
- }
7068
- };
7069
- _SeamHttpUnstablePartnerResources.ltsVersion = seamApiLtsVersion;
7070
- var SeamHttpUnstablePartnerResources = _SeamHttpUnstablePartnerResources;
7071
-
7072
7169
  // src/lib/seam/connect/routes/unstable-partner/unstable-partner.ts
7073
7170
  var _SeamHttpUnstablePartner = class _SeamHttpUnstablePartner {
7074
7171
  constructor(apiKeyOrOptions = {}) {
@@ -7161,12 +7258,6 @@ var _SeamHttpUnstablePartner = class _SeamHttpUnstablePartner {
7161
7258
  this.defaults
7162
7259
  );
7163
7260
  }
7164
- get resources() {
7165
- return SeamHttpUnstablePartnerResources.fromClient(
7166
- this.client,
7167
- this.defaults
7168
- );
7169
- }
7170
7261
  };
7171
7262
  _SeamHttpUnstablePartner.ltsVersion = seamApiLtsVersion;
7172
7263
  var SeamHttpUnstablePartner = _SeamHttpUnstablePartner;
@@ -7871,6 +7962,9 @@ var _SeamHttp = class _SeamHttp {
7871
7962
  get connectedAccounts() {
7872
7963
  return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults);
7873
7964
  }
7965
+ get customers() {
7966
+ return SeamHttpCustomers.fromClient(this.client, this.defaults);
7967
+ }
7874
7968
  get devices() {
7875
7969
  return SeamHttpDevices.fromClient(this.client, this.defaults);
7876
7970
  }
@@ -8717,6 +8811,20 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
8717
8811
  return seam.update(...args);
8718
8812
  };
8719
8813
  }
8814
+ get ["/customers/create_portal"]() {
8815
+ const { client, defaults } = this;
8816
+ return function customersCreatePortal(...args) {
8817
+ const seam = SeamHttpCustomers.fromClient(client, defaults);
8818
+ return seam.createPortal(...args);
8819
+ };
8820
+ }
8821
+ get ["/customers/push_data"]() {
8822
+ const { client, defaults } = this;
8823
+ return function customersPushData(...args) {
8824
+ const seam = SeamHttpCustomers.fromClient(client, defaults);
8825
+ return seam.pushData(...args);
8826
+ };
8827
+ }
8720
8828
  get ["/devices/delete"]() {
8721
8829
  const { client, defaults } = this;
8722
8830
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -8981,31 +9089,43 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
8981
9089
  return seam.createSandboxPhone(...args);
8982
9090
  };
8983
9091
  }
8984
- get ["/seam/partner/v1/building_blocks/spaces/auto_map"]() {
9092
+ get ["/seam/customer/v1/portals/get"]() {
8985
9093
  const { client, defaults } = this;
8986
9094
  if (!this.defaults.isUndocumentedApiEnabled) {
8987
9095
  throw new Error(
8988
9096
  "Cannot use undocumented API without isUndocumentedApiEnabled"
8989
9097
  );
8990
9098
  }
8991
- return function seamPartnerV1BuildingBlocksSpacesAutoMap(...args) {
8992
- const seam = SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClient(
8993
- client,
8994
- defaults
9099
+ return function seamCustomerV1PortalsGet(...args) {
9100
+ const seam = SeamHttpSeamCustomerV1Portals.fromClient(client, defaults);
9101
+ return seam.get(...args);
9102
+ };
9103
+ }
9104
+ get ["/seam/customer/v1/settings/update"]() {
9105
+ const { client, defaults } = this;
9106
+ if (!this.defaults.isUndocumentedApiEnabled) {
9107
+ throw new Error(
9108
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8995
9109
  );
8996
- return seam.autoMap(...args);
9110
+ }
9111
+ return function seamCustomerV1SettingsUpdate(...args) {
9112
+ const seam = SeamHttpSeamCustomerV1Settings.fromClient(client, defaults);
9113
+ return seam.update(...args);
8997
9114
  };
8998
9115
  }
8999
- get ["/seam/partner/v1/resources/list"]() {
9116
+ get ["/seam/partner/v1/building_blocks/spaces/auto_map"]() {
9000
9117
  const { client, defaults } = this;
9001
9118
  if (!this.defaults.isUndocumentedApiEnabled) {
9002
9119
  throw new Error(
9003
9120
  "Cannot use undocumented API without isUndocumentedApiEnabled"
9004
9121
  );
9005
9122
  }
9006
- return function seamPartnerV1ResourcesList(...args) {
9007
- const seam = SeamHttpSeamPartnerV1Resources.fromClient(client, defaults);
9008
- return seam.list(...args);
9123
+ return function seamPartnerV1BuildingBlocksSpacesAutoMap(...args) {
9124
+ const seam = SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClient(
9125
+ client,
9126
+ defaults
9127
+ );
9128
+ return seam.autoMap(...args);
9009
9129
  };
9010
9130
  }
9011
9131
  get ["/spaces/add_acs_entrances"]() {
@@ -9503,18 +9623,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
9503
9623
  return seam.organizeSpaces(...args);
9504
9624
  };
9505
9625
  }
9506
- get ["/unstable_partner/resources/push"]() {
9507
- const { client, defaults } = this;
9508
- if (!this.defaults.isUndocumentedApiEnabled) {
9509
- throw new Error(
9510
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9511
- );
9512
- }
9513
- return function unstablePartnerResourcesPush(...args) {
9514
- const seam = SeamHttpUnstablePartnerResources.fromClient(client, defaults);
9515
- return seam.push(...args);
9516
- };
9517
- }
9518
9626
  get ["/user_identities/add_acs_user"]() {
9519
9627
  const { client, defaults } = this;
9520
9628
  return function userIdentitiesAddAcsUser(...args) {
@@ -9848,6 +9956,7 @@ exports.SeamHttpBridges = SeamHttpBridges;
9848
9956
  exports.SeamHttpClientSessions = SeamHttpClientSessions;
9849
9957
  exports.SeamHttpConnectWebviews = SeamHttpConnectWebviews;
9850
9958
  exports.SeamHttpConnectedAccounts = SeamHttpConnectedAccounts;
9959
+ exports.SeamHttpCustomers = SeamHttpCustomers;
9851
9960
  exports.SeamHttpDevices = SeamHttpDevices;
9852
9961
  exports.SeamHttpDevicesSimulate = SeamHttpDevicesSimulate;
9853
9962
  exports.SeamHttpDevicesUnmanaged = SeamHttpDevicesUnmanaged;
@@ -9867,10 +9976,11 @@ exports.SeamHttpNoiseSensorsSimulate = SeamHttpNoiseSensorsSimulate;
9867
9976
  exports.SeamHttpPhones = SeamHttpPhones;
9868
9977
  exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
9869
9978
  exports.SeamHttpRequest = SeamHttpRequest;
9870
- exports.SeamHttpSeamPartnerV1 = SeamHttpSeamPartnerV1;
9979
+ exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
9980
+ exports.SeamHttpSeamCustomerV1Portals = SeamHttpSeamCustomerV1Portals;
9981
+ exports.SeamHttpSeamCustomerV1Settings = SeamHttpSeamCustomerV1Settings;
9871
9982
  exports.SeamHttpSeamPartnerV1BuildingBlocks = SeamHttpSeamPartnerV1BuildingBlocks;
9872
9983
  exports.SeamHttpSeamPartnerV1BuildingBlocksSpaces = SeamHttpSeamPartnerV1BuildingBlocksSpaces;
9873
- exports.SeamHttpSeamPartnerV1Resources = SeamHttpSeamPartnerV1Resources;
9874
9984
  exports.SeamHttpSpaces = SeamHttpSpaces;
9875
9985
  exports.SeamHttpThermostats = SeamHttpThermostats;
9876
9986
  exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
@@ -9882,7 +9992,6 @@ exports.SeamHttpUnstableAccessMethods = SeamHttpUnstableAccessMethods;
9882
9992
  exports.SeamHttpUnstableLocations = SeamHttpUnstableLocations;
9883
9993
  exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
9884
9994
  exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
9885
- exports.SeamHttpUnstablePartnerResources = SeamHttpUnstablePartnerResources;
9886
9995
  exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
9887
9996
  exports.SeamHttpUserIdentitiesEnrollmentAutomations = SeamHttpUserIdentitiesEnrollmentAutomations;
9888
9997
  exports.SeamHttpWebhooks = SeamHttpWebhooks;