@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.
- package/dist/connect.cjs +62 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +71 -1
- package/dist/index.cjs +62 -3
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/partner/customer-portal.d.ts +21 -0
- package/lib/seam/connect/models/partner/customer-portal.js +29 -0
- package/lib/seam/connect/models/partner/customer-portal.js.map +1 -0
- package/lib/seam/connect/models/partner/index.d.ts +1 -0
- package/lib/seam/connect/models/partner/index.js +1 -0
- package/lib/seam/connect/models/partner/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +32 -0
- package/lib/seam/connect/openapi.js +41 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +17 -0
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/partner/customer-portal.ts +35 -0
- package/src/lib/seam/connect/models/partner/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +45 -3
- package/src/lib/seam/connect/route-types.ts +17 -0
- package/src/lib/seam/connect/schemas.ts +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const customer_portal: z.ZodObject<{
|
|
3
|
+
url: z.ZodString;
|
|
4
|
+
customer_key: z.ZodString;
|
|
5
|
+
expires_at: z.ZodString;
|
|
6
|
+
workspace_id: z.ZodString;
|
|
7
|
+
created_at: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
workspace_id: string;
|
|
10
|
+
created_at: string;
|
|
11
|
+
customer_key: string;
|
|
12
|
+
expires_at: string;
|
|
13
|
+
url: string;
|
|
14
|
+
}, {
|
|
15
|
+
workspace_id: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
customer_key: string;
|
|
18
|
+
expires_at: string;
|
|
19
|
+
url: string;
|
|
20
|
+
}>;
|
|
21
|
+
export type CustomerPortal = z.infer<typeof customer_portal>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const customer_portal = z
|
|
3
|
+
.object({
|
|
4
|
+
url: z.string().url().describe('URL for the customer portal.'),
|
|
5
|
+
customer_key: z.string().describe('Customer key for the customer portal.'),
|
|
6
|
+
expires_at: z
|
|
7
|
+
.string()
|
|
8
|
+
.datetime()
|
|
9
|
+
.describe('Date and time at which the customer portal link expires.'),
|
|
10
|
+
workspace_id: z
|
|
11
|
+
.string()
|
|
12
|
+
.uuid()
|
|
13
|
+
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer portal.'),
|
|
14
|
+
created_at: z
|
|
15
|
+
.string()
|
|
16
|
+
.datetime()
|
|
17
|
+
.describe('Date and time at which the customer portal link was created.'),
|
|
18
|
+
})
|
|
19
|
+
.describe(`
|
|
20
|
+
---
|
|
21
|
+
route_path: /customers
|
|
22
|
+
---
|
|
23
|
+
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.
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control.
|
|
28
|
+
`);
|
|
29
|
+
//# sourceMappingURL=customer-portal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-portal.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/partner/customer-portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC9D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC1E,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,kHAAkH,CACnH;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8DAA8D,CAAC;CAC5E,CAAC;KACD,QAAQ,CACP;;;;;;;;;GASD,CACA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/partner/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/partner/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA"}
|
|
@@ -40939,6 +40939,38 @@ declare const _default: {
|
|
|
40939
40939
|
'application/json': {
|
|
40940
40940
|
schema: {
|
|
40941
40941
|
properties: {
|
|
40942
|
+
customer_portal: {
|
|
40943
|
+
description: string;
|
|
40944
|
+
properties: {
|
|
40945
|
+
created_at: {
|
|
40946
|
+
description: string;
|
|
40947
|
+
format: string;
|
|
40948
|
+
type: string;
|
|
40949
|
+
};
|
|
40950
|
+
customer_key: {
|
|
40951
|
+
description: string;
|
|
40952
|
+
type: string;
|
|
40953
|
+
};
|
|
40954
|
+
expires_at: {
|
|
40955
|
+
description: string;
|
|
40956
|
+
format: string;
|
|
40957
|
+
type: string;
|
|
40958
|
+
};
|
|
40959
|
+
url: {
|
|
40960
|
+
description: string;
|
|
40961
|
+
format: string;
|
|
40962
|
+
type: string;
|
|
40963
|
+
};
|
|
40964
|
+
workspace_id: {
|
|
40965
|
+
description: string;
|
|
40966
|
+
format: string;
|
|
40967
|
+
type: string;
|
|
40968
|
+
};
|
|
40969
|
+
};
|
|
40970
|
+
required: string[];
|
|
40971
|
+
type: string;
|
|
40972
|
+
'x-route-path': string;
|
|
40973
|
+
};
|
|
40942
40974
|
magic_link: {
|
|
40943
40975
|
$ref: string;
|
|
40944
40976
|
};
|
|
@@ -46793,10 +46793,48 @@ export default {
|
|
|
46793
46793
|
'application/json': {
|
|
46794
46794
|
schema: {
|
|
46795
46795
|
properties: {
|
|
46796
|
+
customer_portal: {
|
|
46797
|
+
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—either 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.",
|
|
46798
|
+
properties: {
|
|
46799
|
+
created_at: {
|
|
46800
|
+
description: 'Date and time at which the customer portal link was created.',
|
|
46801
|
+
format: 'date-time',
|
|
46802
|
+
type: 'string',
|
|
46803
|
+
},
|
|
46804
|
+
customer_key: {
|
|
46805
|
+
description: 'Customer key for the customer portal.',
|
|
46806
|
+
type: 'string',
|
|
46807
|
+
},
|
|
46808
|
+
expires_at: {
|
|
46809
|
+
description: 'Date and time at which the customer portal link expires.',
|
|
46810
|
+
format: 'date-time',
|
|
46811
|
+
type: 'string',
|
|
46812
|
+
},
|
|
46813
|
+
url: {
|
|
46814
|
+
description: 'URL for the customer portal.',
|
|
46815
|
+
format: 'uri',
|
|
46816
|
+
type: 'string',
|
|
46817
|
+
},
|
|
46818
|
+
workspace_id: {
|
|
46819
|
+
description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer portal.',
|
|
46820
|
+
format: 'uuid',
|
|
46821
|
+
type: 'string',
|
|
46822
|
+
},
|
|
46823
|
+
},
|
|
46824
|
+
required: [
|
|
46825
|
+
'url',
|
|
46826
|
+
'customer_key',
|
|
46827
|
+
'expires_at',
|
|
46828
|
+
'workspace_id',
|
|
46829
|
+
'created_at',
|
|
46830
|
+
],
|
|
46831
|
+
type: 'object',
|
|
46832
|
+
'x-route-path': '/customers',
|
|
46833
|
+
},
|
|
46796
46834
|
magic_link: { $ref: '#/components/schemas/magic_link' },
|
|
46797
46835
|
ok: { type: 'boolean' },
|
|
46798
46836
|
},
|
|
46799
|
-
required: ['magic_link', 'ok'],
|
|
46837
|
+
required: ['customer_portal', 'magic_link', 'ok'],
|
|
46800
46838
|
type: 'object',
|
|
46801
46839
|
},
|
|
46802
46840
|
},
|
|
@@ -46815,8 +46853,8 @@ export default {
|
|
|
46815
46853
|
tags: [],
|
|
46816
46854
|
'x-fern-sdk-group-name': ['customers'],
|
|
46817
46855
|
'x-fern-sdk-method-name': 'create_portal',
|
|
46818
|
-
'x-fern-sdk-return-value': '
|
|
46819
|
-
'x-response-key': '
|
|
46856
|
+
'x-fern-sdk-return-value': 'customer_portal',
|
|
46857
|
+
'x-response-key': 'customer_portal',
|
|
46820
46858
|
'x-title': 'Create Customer Portal',
|
|
46821
46859
|
},
|
|
46822
46860
|
},
|