@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.
@@ -52892,6 +52892,37 @@ export type Routes = {
52892
52892
  };
52893
52893
  maxDuration: undefined;
52894
52894
  };
52895
+ '/seam/customer/v1/customers/open_portal': {
52896
+ route: '/seam/customer/v1/customers/open_portal';
52897
+ method: 'POST';
52898
+ queryParams: {};
52899
+ jsonBody: {};
52900
+ commonParams: {
52901
+ /** The customer key to open a portal for. */
52902
+ customer_key: string;
52903
+ };
52904
+ formData: {};
52905
+ jsonResponse: {
52906
+ /** 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.
52907
+
52908
+ 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.
52909
+
52910
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
52911
+ magic_link: {
52912
+ /** URL for the magic link. */
52913
+ url: string;
52914
+ /** Customer key for the magic link. */
52915
+ customer_key: string;
52916
+ /** Date and time at which the magic link expires. */
52917
+ expires_at: string;
52918
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the magic link. */
52919
+ workspace_id: string;
52920
+ /** Date and time at which the magic link was created. */
52921
+ created_at: string;
52922
+ };
52923
+ };
52924
+ maxDuration: undefined;
52925
+ };
52895
52926
  '/seam/customer/v1/events/list': {
52896
52927
  route: '/seam/customer/v1/events/list';
52897
52928
  method: 'GET' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.694.0",
3
+ "version": "1.695.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -54937,6 +54937,61 @@ export default {
54937
54937
  'x-undocumented': 'Internal endpoint for Console.',
54938
54938
  },
54939
54939
  },
54940
+ '/seam/customer/v1/customers/open_portal': {
54941
+ post: {
54942
+ description:
54943
+ '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.',
54944
+ operationId: 'seamCustomerV1CustomersOpenPortalPost',
54945
+ requestBody: {
54946
+ content: {
54947
+ 'application/json': {
54948
+ schema: {
54949
+ properties: {
54950
+ customer_key: {
54951
+ description: 'The customer key to open a portal for.',
54952
+ type: 'string',
54953
+ },
54954
+ },
54955
+ required: ['customer_key'],
54956
+ type: 'object',
54957
+ },
54958
+ },
54959
+ },
54960
+ },
54961
+ responses: {
54962
+ 200: {
54963
+ content: {
54964
+ 'application/json': {
54965
+ schema: {
54966
+ properties: {
54967
+ magic_link: { $ref: '#/components/schemas/magic_link' },
54968
+ ok: { type: 'boolean' },
54969
+ },
54970
+ required: ['magic_link', 'ok'],
54971
+ type: 'object',
54972
+ },
54973
+ },
54974
+ },
54975
+ description: 'OK',
54976
+ },
54977
+ 400: { description: 'Bad Request' },
54978
+ 401: { description: 'Unauthorized' },
54979
+ },
54980
+ security: [
54981
+ { pat_with_workspace: [] },
54982
+ { console_session_with_workspace: [] },
54983
+ { api_key: [] },
54984
+ ],
54985
+ summary: '/seam/customer/v1/customers/open_portal',
54986
+ tags: [],
54987
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'],
54988
+ 'x-fern-sdk-method-name': 'open_portal',
54989
+ 'x-fern-sdk-return-value': 'magic_link',
54990
+ 'x-response-key': 'magic_link',
54991
+ 'x-title': 'Open Customer Portal',
54992
+ 'x-undocumented': 'Internal endpoint for Console.',
54993
+ },
54994
+ },
54940
54995
  '/seam/customer/v1/events/list': {
54941
54996
  get: {
54942
54997
  description:
@@ -63238,6 +63238,37 @@ export type Routes = {
63238
63238
  }
63239
63239
  maxDuration: undefined
63240
63240
  }
63241
+ '/seam/customer/v1/customers/open_portal': {
63242
+ route: '/seam/customer/v1/customers/open_portal'
63243
+ method: 'POST'
63244
+ queryParams: {}
63245
+ jsonBody: {}
63246
+ commonParams: {
63247
+ /** The customer key to open a portal for. */
63248
+ customer_key: string
63249
+ }
63250
+ formData: {}
63251
+ jsonResponse: {
63252
+ /** 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.
63253
+
63254
+ 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.
63255
+
63256
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
63257
+ magic_link: {
63258
+ /** URL for the magic link. */
63259
+ url: string
63260
+ /** Customer key for the magic link. */
63261
+ customer_key: string
63262
+ /** Date and time at which the magic link expires. */
63263
+ expires_at: string
63264
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the magic link. */
63265
+ workspace_id: string
63266
+ /** Date and time at which the magic link was created. */
63267
+ created_at: string
63268
+ }
63269
+ }
63270
+ maxDuration: undefined
63271
+ }
63241
63272
  '/seam/customer/v1/events/list': {
63242
63273
  route: '/seam/customer/v1/events/list'
63243
63274
  method: 'GET' | 'POST'