@seamapi/types 1.694.0 → 1.695.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.
@@ -99158,6 +99158,76 @@ declare const _default: {
99158
99158
  'x-undocumented': string;
99159
99159
  };
99160
99160
  };
99161
+ '/seam/customer/v1/customers/open_portal': {
99162
+ post: {
99163
+ description: string;
99164
+ operationId: string;
99165
+ requestBody: {
99166
+ content: {
99167
+ 'application/json': {
99168
+ schema: {
99169
+ properties: {
99170
+ customer_key: {
99171
+ description: string;
99172
+ type: string;
99173
+ };
99174
+ };
99175
+ required: string[];
99176
+ type: string;
99177
+ };
99178
+ };
99179
+ };
99180
+ };
99181
+ responses: {
99182
+ 200: {
99183
+ content: {
99184
+ 'application/json': {
99185
+ schema: {
99186
+ properties: {
99187
+ magic_link: {
99188
+ $ref: string;
99189
+ };
99190
+ ok: {
99191
+ type: string;
99192
+ };
99193
+ };
99194
+ required: string[];
99195
+ type: string;
99196
+ };
99197
+ };
99198
+ };
99199
+ description: string;
99200
+ };
99201
+ 400: {
99202
+ description: string;
99203
+ };
99204
+ 401: {
99205
+ description: string;
99206
+ };
99207
+ };
99208
+ security: ({
99209
+ pat_with_workspace: never[];
99210
+ console_session_with_workspace?: never;
99211
+ api_key?: never;
99212
+ } | {
99213
+ console_session_with_workspace: never[];
99214
+ pat_with_workspace?: never;
99215
+ api_key?: never;
99216
+ } | {
99217
+ api_key: never[];
99218
+ pat_with_workspace?: never;
99219
+ console_session_with_workspace?: never;
99220
+ })[];
99221
+ summary: string;
99222
+ tags: never[];
99223
+ 'x-fern-sdk-group-name': string[];
99224
+ 'x-fern-sdk-method-name': string;
99225
+ 'x-fern-sdk-return-value': string;
99226
+ 'x-response-key': string;
99227
+ 'x-title': string;
99228
+ 'x-undocumented': string;
99229
+ };
99230
+ };
99161
99231
  '/seam/customer/v1/events/list': {
99162
99232
  get: {
99163
99233
  description: string;
@@ -167477,6 +167547,37 @@ type Routes = {
167477
167547
  };
167478
167548
  maxDuration: undefined;
167479
167549
  };
167550
+ '/seam/customer/v1/customers/open_portal': {
167551
+ route: '/seam/customer/v1/customers/open_portal';
167552
+ method: 'POST';
167553
+ queryParams: {};
167554
+ jsonBody: {};
167555
+ commonParams: {
167556
+ /** The customer key to open a portal for. */
167557
+ customer_key: string;
167558
+ };
167559
+ formData: {};
167560
+ jsonResponse: {
167561
+ /** 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.
167562
+
167563
+ 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.
167564
+
167565
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
167566
+ magic_link: {
167567
+ /** URL for the magic link. */
167568
+ url: string;
167569
+ /** Customer key for the magic link. */
167570
+ customer_key: string;
167571
+ /** Date and time at which the magic link expires. */
167572
+ expires_at: string;
167573
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the magic link. */
167574
+ workspace_id: string;
167575
+ /** Date and time at which the magic link was created. */
167576
+ created_at: string;
167577
+ };
167578
+ };
167579
+ maxDuration: undefined;
167580
+ };
167480
167581
  '/seam/customer/v1/events/list': {
167481
167582
  route: '/seam/customer/v1/events/list';
167482
167583
  method: 'GET' | 'POST';
package/dist/index.cjs CHANGED
@@ -56567,6 +56567,60 @@ var openapi_default = {
56567
56567
  "x-undocumented": "Internal endpoint for Console."
56568
56568
  }
56569
56569
  },
56570
+ "/seam/customer/v1/customers/open_portal": {
56571
+ post: {
56572
+ description: "Opens an existing customer portal or creates a new one if the previous portal has expired.\nReturns an error if no portal was ever created for this customer.",
56573
+ operationId: "seamCustomerV1CustomersOpenPortalPost",
56574
+ requestBody: {
56575
+ content: {
56576
+ "application/json": {
56577
+ schema: {
56578
+ properties: {
56579
+ customer_key: {
56580
+ description: "The customer key to open a portal for.",
56581
+ type: "string"
56582
+ }
56583
+ },
56584
+ required: ["customer_key"],
56585
+ type: "object"
56586
+ }
56587
+ }
56588
+ }
56589
+ },
56590
+ responses: {
56591
+ 200: {
56592
+ content: {
56593
+ "application/json": {
56594
+ schema: {
56595
+ properties: {
56596
+ magic_link: { $ref: "#/components/schemas/magic_link" },
56597
+ ok: { type: "boolean" }
56598
+ },
56599
+ required: ["magic_link", "ok"],
56600
+ type: "object"
56601
+ }
56602
+ }
56603
+ },
56604
+ description: "OK"
56605
+ },
56606
+ 400: { description: "Bad Request" },
56607
+ 401: { description: "Unauthorized" }
56608
+ },
56609
+ security: [
56610
+ { pat_with_workspace: [] },
56611
+ { console_session_with_workspace: [] },
56612
+ { api_key: [] }
56613
+ ],
56614
+ summary: "/seam/customer/v1/customers/open_portal",
56615
+ tags: [],
56616
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "customers"],
56617
+ "x-fern-sdk-method-name": "open_portal",
56618
+ "x-fern-sdk-return-value": "magic_link",
56619
+ "x-response-key": "magic_link",
56620
+ "x-title": "Open Customer Portal",
56621
+ "x-undocumented": "Internal endpoint for Console."
56622
+ }
56623
+ },
56570
56624
  "/seam/customer/v1/events/list": {
56571
56625
  get: {
56572
56626
  description: "Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.",