@seamapi/types 1.803.0 → 1.804.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.
@@ -62938,6 +62938,26 @@ declare const pagination: z.ZodObject<{
62938
62938
  }>;
62939
62939
  type Pagination = z.infer<typeof pagination>;
62940
62940
 
62941
+ declare const customer_portal: z.ZodObject<{
62942
+ url: z.ZodString;
62943
+ customer_key: z.ZodString;
62944
+ expires_at: z.ZodString;
62945
+ workspace_id: z.ZodString;
62946
+ created_at: z.ZodString;
62947
+ }, "strip", z.ZodTypeAny, {
62948
+ workspace_id: string;
62949
+ created_at: string;
62950
+ customer_key: string;
62951
+ expires_at: string;
62952
+ url: string;
62953
+ }, {
62954
+ workspace_id: string;
62955
+ created_at: string;
62956
+ customer_key: string;
62957
+ expires_at: string;
62958
+ url: string;
62959
+ }>;
62960
+
62941
62961
  declare const magic_link: z.ZodObject<{
62942
62962
  url: z.ZodString;
62943
62963
  customer_key: z.ZodString;
@@ -63402,6 +63422,7 @@ declare const schemas_common_succeeded_action_attempt: typeof common_succeeded_a
63402
63422
  declare const schemas_connect_webview: typeof connect_webview;
63403
63423
  declare const schemas_connected_account: typeof connected_account;
63404
63424
  declare const schemas_custom_metadata: typeof custom_metadata;
63425
+ declare const schemas_customer_portal: typeof customer_portal;
63405
63426
  declare const schemas_customization_profile: typeof customization_profile;
63406
63427
  declare const schemas_device: typeof device;
63407
63428
  declare const schemas_device_provider: typeof device_provider;
@@ -63423,7 +63444,7 @@ declare const schemas_user_identity: typeof user_identity;
63423
63444
  declare const schemas_webhook: typeof webhook;
63424
63445
  declare const schemas_workspace: typeof workspace;
63425
63446
  declare namespace schemas {
63426
- export { schemas_access_code as access_code, schemas_acs_access_group as acs_access_group, schemas_acs_credential as acs_credential, schemas_acs_encoder as acs_encoder, schemas_acs_entrance as acs_entrance, schemas_acs_system as acs_system, schemas_acs_user as acs_user, schemas_action_attempt as action_attempt, schemas_batch as batch, schemas_bridge as bridge, schemas_bridge_client_session as bridge_client_session, schemas_client_session as client_session, schemas_common_failed_action_attempt as common_failed_action_attempt, schemas_common_pending_action_attempt as common_pending_action_attempt, schemas_common_succeeded_action_attempt as common_succeeded_action_attempt, schemas_connect_webview as connect_webview, schemas_connected_account as connected_account, schemas_custom_metadata as custom_metadata, schemas_customization_profile as customization_profile, schemas_device as device, schemas_device_provider as device_provider, schemas_instant_key as instant_key, schemas_magic_link as magic_link, schemas_noise_threshold as noise_threshold, schemas_pagination as pagination, schemas_seam_event as seam_event, schemas_staff_member_resource as staff_member_resource, schemas_thermostat_daily_program as thermostat_daily_program, schemas_thermostat_schedule as thermostat_schedule, schemas_thermostat_weekly_program as thermostat_weekly_program, schemas_unmanaged_access_code as unmanaged_access_code, schemas_unmanaged_acs_access_group as unmanaged_acs_access_group, schemas_unmanaged_acs_credential as unmanaged_acs_credential, schemas_unmanaged_acs_user as unmanaged_acs_user, schemas_unmanaged_device as unmanaged_device, schemas_user_identity as user_identity, schemas_webhook as webhook, schemas_workspace as workspace };
63447
+ export { schemas_access_code as access_code, schemas_acs_access_group as acs_access_group, schemas_acs_credential as acs_credential, schemas_acs_encoder as acs_encoder, schemas_acs_entrance as acs_entrance, schemas_acs_system as acs_system, schemas_acs_user as acs_user, schemas_action_attempt as action_attempt, schemas_batch as batch, schemas_bridge as bridge, schemas_bridge_client_session as bridge_client_session, schemas_client_session as client_session, schemas_common_failed_action_attempt as common_failed_action_attempt, schemas_common_pending_action_attempt as common_pending_action_attempt, schemas_common_succeeded_action_attempt as common_succeeded_action_attempt, schemas_connect_webview as connect_webview, schemas_connected_account as connected_account, schemas_custom_metadata as custom_metadata, schemas_customer_portal as customer_portal, schemas_customization_profile as customization_profile, schemas_device as device, schemas_device_provider as device_provider, schemas_instant_key as instant_key, schemas_magic_link as magic_link, schemas_noise_threshold as noise_threshold, schemas_pagination as pagination, schemas_seam_event as seam_event, schemas_staff_member_resource as staff_member_resource, schemas_thermostat_daily_program as thermostat_daily_program, schemas_thermostat_schedule as thermostat_schedule, schemas_thermostat_weekly_program as thermostat_weekly_program, schemas_unmanaged_access_code as unmanaged_access_code, schemas_unmanaged_acs_access_group as unmanaged_acs_access_group, schemas_unmanaged_acs_credential as unmanaged_acs_credential, schemas_unmanaged_acs_user as unmanaged_acs_user, schemas_unmanaged_device as unmanaged_device, schemas_user_identity as user_identity, schemas_webhook as webhook, schemas_workspace as workspace };
63427
63448
  }
63428
63449
 
63429
63450
  declare const _default: {
@@ -104367,6 +104388,38 @@ declare const _default: {
104367
104388
  'application/json': {
104368
104389
  schema: {
104369
104390
  properties: {
104391
+ customer_portal: {
104392
+ description: string;
104393
+ properties: {
104394
+ created_at: {
104395
+ description: string;
104396
+ format: string;
104397
+ type: string;
104398
+ };
104399
+ customer_key: {
104400
+ description: string;
104401
+ type: string;
104402
+ };
104403
+ expires_at: {
104404
+ description: string;
104405
+ format: string;
104406
+ type: string;
104407
+ };
104408
+ url: {
104409
+ description: string;
104410
+ format: string;
104411
+ type: string;
104412
+ };
104413
+ workspace_id: {
104414
+ description: string;
104415
+ format: string;
104416
+ type: string;
104417
+ };
104418
+ };
104419
+ required: string[];
104420
+ type: string;
104421
+ 'x-route-path': string;
104422
+ };
104370
104423
  magic_link: {
104371
104424
  $ref: string;
104372
104425
  };
@@ -169443,6 +169496,23 @@ type Routes = {
169443
169496
 
169444
169497
  With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
169445
169498
 
169499
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
169500
+ customer_portal: {
169501
+ /** URL for the customer portal. */
169502
+ url: string;
169503
+ /** Customer key for the customer portal. */
169504
+ customer_key: string;
169505
+ /** Date and time at which the customer portal link expires. */
169506
+ expires_at: string;
169507
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer portal. */
169508
+ workspace_id: string;
169509
+ /** Date and time at which the customer portal link was created. */
169510
+ created_at: string;
169511
+ };
169512
+ /** Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.
169513
+
169514
+ With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
169515
+
169446
169516
  Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
169447
169517
  magic_link: {
169448
169518
  /** URL for the magic link. */
package/dist/index.cjs CHANGED
@@ -29,6 +29,7 @@ __export(schemas_exports, {
29
29
  connect_webview: () => connect_webview,
30
30
  connected_account: () => connected_account,
31
31
  custom_metadata: () => custom_metadata,
32
+ customer_portal: () => customer_portal,
32
33
  customization_profile: () => customization_profile,
33
34
  device: () => device,
34
35
  device_provider: () => device_provider,
@@ -6781,6 +6782,26 @@ var pagination = zod.z.object({
6781
6782
  ),
6782
6783
  next_page_url: zod.z.string().url().nullable().describe("URL to get the next page of results.")
6783
6784
  }).describe("Information about the current page of results.");
6785
+ var customer_portal = zod.z.object({
6786
+ url: zod.z.string().url().describe("URL for the customer portal."),
6787
+ customer_key: zod.z.string().describe("Customer key for the customer portal."),
6788
+ expires_at: zod.z.string().datetime().describe("Date and time at which the customer portal link expires."),
6789
+ workspace_id: zod.z.string().uuid().describe(
6790
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer portal."
6791
+ ),
6792
+ created_at: zod.z.string().datetime().describe("Date and time at which the customer portal link was created.")
6793
+ }).describe(
6794
+ `
6795
+ ---
6796
+ route_path: /customers
6797
+ ---
6798
+ Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product\u2014either by sharing a link with users or embedding a view in an iframe.
6799
+
6800
+ With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
6801
+
6802
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control.
6803
+ `
6804
+ );
6784
6805
  var magic_link = zod.z.object({
6785
6806
  url: zod.z.string().url().describe("URL for the magic link."),
6786
6807
  customer_key: zod.z.string().describe("Customer key for the magic link."),
@@ -53616,10 +53637,48 @@ var openapi_default = {
53616
53637
  "application/json": {
53617
53638
  schema: {
53618
53639
  properties: {
53640
+ customer_portal: {
53641
+ description: "Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product\u2014either by sharing a link with users or embedding a view in an iframe.\n\nWith Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.\n\nSeam hosts these flows, handling everything from account connection and device mapping to full-featured device control.",
53642
+ properties: {
53643
+ created_at: {
53644
+ description: "Date and time at which the customer portal link was created.",
53645
+ format: "date-time",
53646
+ type: "string"
53647
+ },
53648
+ customer_key: {
53649
+ description: "Customer key for the customer portal.",
53650
+ type: "string"
53651
+ },
53652
+ expires_at: {
53653
+ description: "Date and time at which the customer portal link expires.",
53654
+ format: "date-time",
53655
+ type: "string"
53656
+ },
53657
+ url: {
53658
+ description: "URL for the customer portal.",
53659
+ format: "uri",
53660
+ type: "string"
53661
+ },
53662
+ workspace_id: {
53663
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer portal.",
53664
+ format: "uuid",
53665
+ type: "string"
53666
+ }
53667
+ },
53668
+ required: [
53669
+ "url",
53670
+ "customer_key",
53671
+ "expires_at",
53672
+ "workspace_id",
53673
+ "created_at"
53674
+ ],
53675
+ type: "object",
53676
+ "x-route-path": "/customers"
53677
+ },
53619
53678
  magic_link: { $ref: "#/components/schemas/magic_link" },
53620
53679
  ok: { type: "boolean" }
53621
53680
  },
53622
- required: ["magic_link", "ok"],
53681
+ required: ["customer_portal", "magic_link", "ok"],
53623
53682
  type: "object"
53624
53683
  }
53625
53684
  }
@@ -53638,8 +53697,8 @@ var openapi_default = {
53638
53697
  tags: [],
53639
53698
  "x-fern-sdk-group-name": ["customers"],
53640
53699
  "x-fern-sdk-method-name": "create_portal",
53641
- "x-fern-sdk-return-value": "magic_link",
53642
- "x-response-key": "magic_link",
53700
+ "x-fern-sdk-return-value": "customer_portal",
53701
+ "x-response-key": "customer_portal",
53643
53702
  "x-title": "Create Customer Portal"
53644
53703
  }
53645
53704
  },