@seamapi/types 1.803.0 → 1.805.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 +65 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +74 -1
- package/dist/index.cjs +65 -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 +35 -0
- package/lib/seam/connect/openapi.js +44 -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 +48 -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"}
|
|
@@ -5842,6 +5842,38 @@ declare const _default: {
|
|
|
5842
5842
|
'x-route-path': string;
|
|
5843
5843
|
'x-undocumented': string;
|
|
5844
5844
|
};
|
|
5845
|
+
customer_portal: {
|
|
5846
|
+
description: string;
|
|
5847
|
+
properties: {
|
|
5848
|
+
created_at: {
|
|
5849
|
+
description: string;
|
|
5850
|
+
format: string;
|
|
5851
|
+
type: string;
|
|
5852
|
+
};
|
|
5853
|
+
customer_key: {
|
|
5854
|
+
description: string;
|
|
5855
|
+
type: string;
|
|
5856
|
+
};
|
|
5857
|
+
expires_at: {
|
|
5858
|
+
description: string;
|
|
5859
|
+
format: string;
|
|
5860
|
+
type: string;
|
|
5861
|
+
};
|
|
5862
|
+
url: {
|
|
5863
|
+
description: string;
|
|
5864
|
+
format: string;
|
|
5865
|
+
type: string;
|
|
5866
|
+
};
|
|
5867
|
+
workspace_id: {
|
|
5868
|
+
description: string;
|
|
5869
|
+
format: string;
|
|
5870
|
+
type: string;
|
|
5871
|
+
};
|
|
5872
|
+
};
|
|
5873
|
+
required: string[];
|
|
5874
|
+
type: string;
|
|
5875
|
+
'x-route-path': string;
|
|
5876
|
+
};
|
|
5845
5877
|
customization_profile: {
|
|
5846
5878
|
description: string;
|
|
5847
5879
|
properties: {
|
|
@@ -40939,6 +40971,9 @@ declare const _default: {
|
|
|
40939
40971
|
'application/json': {
|
|
40940
40972
|
schema: {
|
|
40941
40973
|
properties: {
|
|
40974
|
+
customer_portal: {
|
|
40975
|
+
$ref: string;
|
|
40976
|
+
};
|
|
40942
40977
|
magic_link: {
|
|
40943
40978
|
$ref: string;
|
|
40944
40979
|
};
|
|
@@ -10024,6 +10024,44 @@ export default {
|
|
|
10024
10024
|
'x-route-path': '/customers',
|
|
10025
10025
|
'x-undocumented': 'Internal resource.',
|
|
10026
10026
|
},
|
|
10027
|
+
customer_portal: {
|
|
10028
|
+
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.",
|
|
10029
|
+
properties: {
|
|
10030
|
+
created_at: {
|
|
10031
|
+
description: 'Date and time at which the customer portal link was created.',
|
|
10032
|
+
format: 'date-time',
|
|
10033
|
+
type: 'string',
|
|
10034
|
+
},
|
|
10035
|
+
customer_key: {
|
|
10036
|
+
description: 'Customer key for the customer portal.',
|
|
10037
|
+
type: 'string',
|
|
10038
|
+
},
|
|
10039
|
+
expires_at: {
|
|
10040
|
+
description: 'Date and time at which the customer portal link expires.',
|
|
10041
|
+
format: 'date-time',
|
|
10042
|
+
type: 'string',
|
|
10043
|
+
},
|
|
10044
|
+
url: {
|
|
10045
|
+
description: 'URL for the customer portal.',
|
|
10046
|
+
format: 'uri',
|
|
10047
|
+
type: 'string',
|
|
10048
|
+
},
|
|
10049
|
+
workspace_id: {
|
|
10050
|
+
description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer portal.',
|
|
10051
|
+
format: 'uuid',
|
|
10052
|
+
type: 'string',
|
|
10053
|
+
},
|
|
10054
|
+
},
|
|
10055
|
+
required: [
|
|
10056
|
+
'url',
|
|
10057
|
+
'customer_key',
|
|
10058
|
+
'expires_at',
|
|
10059
|
+
'workspace_id',
|
|
10060
|
+
'created_at',
|
|
10061
|
+
],
|
|
10062
|
+
type: 'object',
|
|
10063
|
+
'x-route-path': '/customers',
|
|
10064
|
+
},
|
|
10027
10065
|
customization_profile: {
|
|
10028
10066
|
description: 'A customization profile.',
|
|
10029
10067
|
properties: {
|
|
@@ -46793,10 +46831,13 @@ export default {
|
|
|
46793
46831
|
'application/json': {
|
|
46794
46832
|
schema: {
|
|
46795
46833
|
properties: {
|
|
46834
|
+
customer_portal: {
|
|
46835
|
+
$ref: '#/components/schemas/customer_portal',
|
|
46836
|
+
},
|
|
46796
46837
|
magic_link: { $ref: '#/components/schemas/magic_link' },
|
|
46797
46838
|
ok: { type: 'boolean' },
|
|
46798
46839
|
},
|
|
46799
|
-
required: ['magic_link', 'ok'],
|
|
46840
|
+
required: ['customer_portal', 'magic_link', 'ok'],
|
|
46800
46841
|
type: 'object',
|
|
46801
46842
|
},
|
|
46802
46843
|
},
|
|
@@ -46815,8 +46856,8 @@ export default {
|
|
|
46815
46856
|
tags: [],
|
|
46816
46857
|
'x-fern-sdk-group-name': ['customers'],
|
|
46817
46858
|
'x-fern-sdk-method-name': 'create_portal',
|
|
46818
|
-
'x-fern-sdk-return-value': '
|
|
46819
|
-
'x-response-key': '
|
|
46859
|
+
'x-fern-sdk-return-value': 'customer_portal',
|
|
46860
|
+
'x-response-key': 'customer_portal',
|
|
46820
46861
|
'x-title': 'Create Customer Portal',
|
|
46821
46862
|
},
|
|
46822
46863
|
},
|