@seamapi/types 1.177.1 → 1.179.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 +29 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +68 -8
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/models/acs/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/index.js +1 -0
- package/lib/seam/connect/models/acs/index.js.map +1 -1
- package/lib/seam/connect/models/acs/seam-bridge.d.ts +112 -0
- package/lib/seam/connect/models/acs/seam-bridge.js +25 -0
- package/lib/seam/connect/models/acs/seam-bridge.js.map +1 -0
- package/lib/seam/connect/models/index.d.ts +2 -2
- package/lib/seam/connect/models/index.js +2 -2
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/user-identities/index.d.ts +1 -0
- package/lib/seam/connect/models/user-identities/index.js +2 -0
- package/lib/seam/connect/models/user-identities/index.js.map +1 -0
- package/lib/seam/connect/models/{user-identity.js → user-identities/user-identity.js} +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -0
- package/lib/seam/connect/models/workspaces/index.d.ts +1 -0
- package/lib/seam/connect/models/workspaces/index.js +2 -0
- package/lib/seam/connect/models/workspaces/index.js.map +1 -0
- package/lib/seam/connect/models/workspaces/workspace.d.ts +20 -0
- package/lib/seam/connect/models/workspaces/workspace.js +17 -0
- package/lib/seam/connect/models/workspaces/workspace.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +16 -0
- package/lib/seam/connect/openapi.js +14 -5
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +30 -7
- 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 -1
- package/src/lib/seam/connect/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/models/acs/seam-bridge.ts +30 -0
- package/src/lib/seam/connect/models/index.ts +2 -2
- package/src/lib/seam/connect/models/user-identities/index.ts +1 -0
- package/src/lib/seam/connect/models/{user-identity.ts → user-identities/user-identity.ts} +1 -1
- package/src/lib/seam/connect/models/workspaces/index.ts +1 -0
- package/src/lib/seam/connect/models/workspaces/workspace.ts +19 -0
- package/src/lib/seam/connect/openapi.ts +16 -5
- package/src/lib/seam/connect/route-types.ts +33 -12
- package/src/lib/seam/connect/schemas.ts +1 -0
- package/lib/seam/connect/models/network.d.ts +0 -18
- package/lib/seam/connect/models/network.js +0 -8
- package/lib/seam/connect/models/network.js.map +0 -1
- package/lib/seam/connect/models/user-identity.js.map +0 -1
- package/src/lib/seam/connect/models/network.ts +0 -10
- /package/lib/seam/connect/models/{user-identity.d.ts → user-identities/user-identity.d.ts} +0 -0
|
@@ -18028,8 +18028,13 @@ export interface Routes {
|
|
|
18028
18028
|
queryParams: {};
|
|
18029
18029
|
jsonBody: {
|
|
18030
18030
|
name: string;
|
|
18031
|
-
|
|
18032
|
-
|
|
18031
|
+
company_name?: string | undefined;
|
|
18032
|
+
/**
|
|
18033
|
+
---
|
|
18034
|
+
deprecated: use company_name
|
|
18035
|
+
---
|
|
18036
|
+
*/
|
|
18037
|
+
connect_partner_name?: ((string | null) | null) | undefined;
|
|
18033
18038
|
is_sandbox?: boolean;
|
|
18034
18039
|
webview_primary_button_color?: string | undefined;
|
|
18035
18040
|
webview_logo_shape?: ('circle' | 'square') | undefined;
|
|
@@ -18040,8 +18045,14 @@ export interface Routes {
|
|
|
18040
18045
|
workspace: {
|
|
18041
18046
|
workspace_id: string;
|
|
18042
18047
|
name: string;
|
|
18043
|
-
|
|
18048
|
+
company_name: string;
|
|
18044
18049
|
is_sandbox: boolean;
|
|
18050
|
+
/**
|
|
18051
|
+
---
|
|
18052
|
+
deprecated: use company_name
|
|
18053
|
+
---
|
|
18054
|
+
*/
|
|
18055
|
+
connect_partner_name: (string | null) | null;
|
|
18045
18056
|
};
|
|
18046
18057
|
};
|
|
18047
18058
|
};
|
|
@@ -18053,12 +18064,18 @@ export interface Routes {
|
|
|
18053
18064
|
commonParams: {};
|
|
18054
18065
|
formData: {};
|
|
18055
18066
|
jsonResponse: {
|
|
18056
|
-
workspace
|
|
18067
|
+
workspace: {
|
|
18057
18068
|
workspace_id: string;
|
|
18058
18069
|
name: string;
|
|
18070
|
+
company_name: string;
|
|
18059
18071
|
is_sandbox: boolean;
|
|
18060
|
-
|
|
18061
|
-
|
|
18072
|
+
/**
|
|
18073
|
+
---
|
|
18074
|
+
deprecated: use company_name
|
|
18075
|
+
---
|
|
18076
|
+
*/
|
|
18077
|
+
connect_partner_name: (string | null) | null;
|
|
18078
|
+
};
|
|
18062
18079
|
};
|
|
18063
18080
|
};
|
|
18064
18081
|
'/workspaces/list': {
|
|
@@ -18072,8 +18089,14 @@ export interface Routes {
|
|
|
18072
18089
|
workspaces: Array<{
|
|
18073
18090
|
workspace_id: string;
|
|
18074
18091
|
name: string;
|
|
18092
|
+
company_name: string;
|
|
18075
18093
|
is_sandbox: boolean;
|
|
18076
|
-
|
|
18094
|
+
/**
|
|
18095
|
+
---
|
|
18096
|
+
deprecated: use company_name
|
|
18097
|
+
---
|
|
18098
|
+
*/
|
|
18099
|
+
connect_partner_name: (string | null) | null;
|
|
18077
18100
|
}>;
|
|
18078
18101
|
};
|
|
18079
18102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { action_attempt, connect_webview, custom_metadata, seam_event, } from './models/index.js';
|
|
1
|
+
export { action_attempt, connect_webview, custom_metadata, seam_event, workspace, } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { action_attempt, connect_webview, custom_metadata, seam_event, } from './models/index.js';
|
|
1
|
+
export { action_attempt, connect_webview, custom_metadata, seam_event, workspace, } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,EACV,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -30,7 +30,6 @@ export {
|
|
|
30
30
|
lock_device_type,
|
|
31
31
|
managed_access_code,
|
|
32
32
|
managed_device,
|
|
33
|
-
network,
|
|
34
33
|
noise_sensor_device_type,
|
|
35
34
|
phone,
|
|
36
35
|
phone_number,
|
|
@@ -39,5 +38,6 @@ export {
|
|
|
39
38
|
unmanaged_access_code,
|
|
40
39
|
unmanaged_device,
|
|
41
40
|
user_identity,
|
|
41
|
+
workspace,
|
|
42
42
|
} from '../models/index.js'
|
|
43
43
|
export * from '../schemas.js'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
const common_seam_bridge_error = z.object({
|
|
4
|
+
created_at: z.string().datetime(),
|
|
5
|
+
message: z.string(),
|
|
6
|
+
})
|
|
7
|
+
|
|
8
|
+
const connection_failure = common_seam_bridge_error.extend({
|
|
9
|
+
error_code: z.literal('connection_failure'),
|
|
10
|
+
})
|
|
11
|
+
const bridge_tunnel_failed = common_seam_bridge_error.extend({
|
|
12
|
+
error_code: z.literal('bridge_tunnel_failed'),
|
|
13
|
+
})
|
|
14
|
+
const bridge_proxy_failure = common_seam_bridge_error.extend({
|
|
15
|
+
error_code: z.literal('bridge_proxy_failure'),
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export const seam_bridge_error_map = z.object({
|
|
19
|
+
bridge_tunnel_failed: bridge_tunnel_failed.optional().nullable(),
|
|
20
|
+
bridge_proxy_failure: bridge_proxy_failure.optional().nullable(),
|
|
21
|
+
connection_failure: connection_failure.optional().nullable(),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export const seam_bridge_error = z.union([
|
|
25
|
+
connection_failure,
|
|
26
|
+
bridge_proxy_failure,
|
|
27
|
+
bridge_tunnel_failed,
|
|
28
|
+
])
|
|
29
|
+
|
|
30
|
+
export type SeamBridgeErrorMap = z.infer<typeof seam_bridge_error_map>
|
|
@@ -6,6 +6,6 @@ export * from './connect-webviews/index.js'
|
|
|
6
6
|
export * from './custom-metadata.js'
|
|
7
7
|
export * from './devices/index.js'
|
|
8
8
|
export * from './events/index.js'
|
|
9
|
-
export * from './network.js'
|
|
10
9
|
export * from './phone-number.js'
|
|
11
|
-
export * from './user-
|
|
10
|
+
export * from './user-identities/index.js'
|
|
11
|
+
export * from './workspaces/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-identity.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './workspace.js'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const workspace = z.object({
|
|
4
|
+
workspace_id: z.string().uuid(),
|
|
5
|
+
name: z.string(),
|
|
6
|
+
company_name: z.string(),
|
|
7
|
+
is_sandbox: z.boolean(),
|
|
8
|
+
connect_partner_name: z
|
|
9
|
+
.string()
|
|
10
|
+
.nullable()
|
|
11
|
+
.describe(
|
|
12
|
+
`
|
|
13
|
+
---
|
|
14
|
+
deprecated: use company_name
|
|
15
|
+
---
|
|
16
|
+
`,
|
|
17
|
+
)
|
|
18
|
+
.nullable(),
|
|
19
|
+
})
|
|
@@ -3729,7 +3729,13 @@ export default {
|
|
|
3729
3729
|
},
|
|
3730
3730
|
workspace: {
|
|
3731
3731
|
properties: {
|
|
3732
|
-
|
|
3732
|
+
company_name: { type: 'string' },
|
|
3733
|
+
connect_partner_name: {
|
|
3734
|
+
description:
|
|
3735
|
+
'\n ---\n deprecated: use company_name\n ---\n ',
|
|
3736
|
+
nullable: true,
|
|
3737
|
+
type: 'string',
|
|
3738
|
+
},
|
|
3733
3739
|
is_sandbox: { type: 'boolean' },
|
|
3734
3740
|
name: { type: 'string' },
|
|
3735
3741
|
workspace_id: { format: 'uuid', type: 'string' },
|
|
@@ -3737,6 +3743,7 @@ export default {
|
|
|
3737
3743
|
required: [
|
|
3738
3744
|
'workspace_id',
|
|
3739
3745
|
'name',
|
|
3746
|
+
'company_name',
|
|
3740
3747
|
'is_sandbox',
|
|
3741
3748
|
'connect_partner_name',
|
|
3742
3749
|
],
|
|
@@ -7918,6 +7925,7 @@ export default {
|
|
|
7918
7925
|
401: { description: 'Unauthorized' },
|
|
7919
7926
|
},
|
|
7920
7927
|
security: [
|
|
7928
|
+
{ client_session: [] },
|
|
7921
7929
|
{ api_key: [] },
|
|
7922
7930
|
{ pat_with_workspace: [] },
|
|
7923
7931
|
{ console_session: [] },
|
|
@@ -12706,8 +12714,11 @@ export default {
|
|
|
12706
12714
|
'application/json': {
|
|
12707
12715
|
schema: {
|
|
12708
12716
|
properties: {
|
|
12717
|
+
company_name: { type: 'string' },
|
|
12709
12718
|
connect_partner_name: {
|
|
12710
|
-
description:
|
|
12719
|
+
description:
|
|
12720
|
+
'\n ---\n deprecated: use company_name\n ---\n ',
|
|
12721
|
+
nullable: true,
|
|
12711
12722
|
type: 'string',
|
|
12712
12723
|
},
|
|
12713
12724
|
is_sandbox: { default: false, type: 'boolean' },
|
|
@@ -12718,7 +12729,7 @@ export default {
|
|
|
12718
12729
|
},
|
|
12719
12730
|
webview_primary_button_color: { type: 'string' },
|
|
12720
12731
|
},
|
|
12721
|
-
required: ['name'
|
|
12732
|
+
required: ['name'],
|
|
12722
12733
|
type: 'object',
|
|
12723
12734
|
},
|
|
12724
12735
|
},
|
|
@@ -12763,7 +12774,7 @@ export default {
|
|
|
12763
12774
|
ok: { type: 'boolean' },
|
|
12764
12775
|
workspace: { $ref: '#/components/schemas/workspace' },
|
|
12765
12776
|
},
|
|
12766
|
-
required: ['ok'],
|
|
12777
|
+
required: ['workspace', 'ok'],
|
|
12767
12778
|
type: 'object',
|
|
12768
12779
|
},
|
|
12769
12780
|
},
|
|
@@ -12794,7 +12805,7 @@ export default {
|
|
|
12794
12805
|
ok: { type: 'boolean' },
|
|
12795
12806
|
workspace: { $ref: '#/components/schemas/workspace' },
|
|
12796
12807
|
},
|
|
12797
|
-
required: ['ok'],
|
|
12808
|
+
required: ['workspace', 'ok'],
|
|
12798
12809
|
type: 'object',
|
|
12799
12810
|
},
|
|
12800
12811
|
},
|
|
@@ -22074,8 +22074,13 @@ export interface Routes {
|
|
|
22074
22074
|
queryParams: {}
|
|
22075
22075
|
jsonBody: {
|
|
22076
22076
|
name: string
|
|
22077
|
-
|
|
22078
|
-
|
|
22077
|
+
company_name?: string | undefined
|
|
22078
|
+
/**
|
|
22079
|
+
---
|
|
22080
|
+
deprecated: use company_name
|
|
22081
|
+
---
|
|
22082
|
+
*/
|
|
22083
|
+
connect_partner_name?: ((string | null) | null) | undefined
|
|
22079
22084
|
is_sandbox?: boolean
|
|
22080
22085
|
webview_primary_button_color?: string | undefined
|
|
22081
22086
|
webview_logo_shape?: ('circle' | 'square') | undefined
|
|
@@ -22086,8 +22091,14 @@ export interface Routes {
|
|
|
22086
22091
|
workspace: {
|
|
22087
22092
|
workspace_id: string
|
|
22088
22093
|
name: string
|
|
22089
|
-
|
|
22094
|
+
company_name: string
|
|
22090
22095
|
is_sandbox: boolean
|
|
22096
|
+
/**
|
|
22097
|
+
---
|
|
22098
|
+
deprecated: use company_name
|
|
22099
|
+
---
|
|
22100
|
+
*/
|
|
22101
|
+
connect_partner_name: (string | null) | null
|
|
22091
22102
|
}
|
|
22092
22103
|
}
|
|
22093
22104
|
}
|
|
@@ -22099,14 +22110,18 @@ export interface Routes {
|
|
|
22099
22110
|
commonParams: {}
|
|
22100
22111
|
formData: {}
|
|
22101
22112
|
jsonResponse: {
|
|
22102
|
-
workspace
|
|
22103
|
-
|
|
22104
|
-
|
|
22105
|
-
|
|
22106
|
-
|
|
22107
|
-
|
|
22108
|
-
|
|
22109
|
-
|
|
22113
|
+
workspace: {
|
|
22114
|
+
workspace_id: string
|
|
22115
|
+
name: string
|
|
22116
|
+
company_name: string
|
|
22117
|
+
is_sandbox: boolean
|
|
22118
|
+
/**
|
|
22119
|
+
---
|
|
22120
|
+
deprecated: use company_name
|
|
22121
|
+
---
|
|
22122
|
+
*/
|
|
22123
|
+
connect_partner_name: (string | null) | null
|
|
22124
|
+
}
|
|
22110
22125
|
}
|
|
22111
22126
|
}
|
|
22112
22127
|
'/workspaces/list': {
|
|
@@ -22120,8 +22135,14 @@ export interface Routes {
|
|
|
22120
22135
|
workspaces: Array<{
|
|
22121
22136
|
workspace_id: string
|
|
22122
22137
|
name: string
|
|
22138
|
+
company_name: string
|
|
22123
22139
|
is_sandbox: boolean
|
|
22124
|
-
|
|
22140
|
+
/**
|
|
22141
|
+
---
|
|
22142
|
+
deprecated: use company_name
|
|
22143
|
+
---
|
|
22144
|
+
*/
|
|
22145
|
+
connect_partner_name: (string | null) | null
|
|
22125
22146
|
}>
|
|
22126
22147
|
}
|
|
22127
22148
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const network: z.ZodObject<{
|
|
3
|
-
network_id: z.ZodString;
|
|
4
|
-
workspace_id: z.ZodString;
|
|
5
|
-
display_name: z.ZodString;
|
|
6
|
-
created_at: z.ZodString;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
created_at: string;
|
|
9
|
-
workspace_id: string;
|
|
10
|
-
display_name: string;
|
|
11
|
-
network_id: string;
|
|
12
|
-
}, {
|
|
13
|
-
created_at: string;
|
|
14
|
-
workspace_id: string;
|
|
15
|
-
display_name: string;
|
|
16
|
-
network_id: string;
|
|
17
|
-
}>;
|
|
18
|
-
export type Network = z.infer<typeof network>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC7B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACnC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC/C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;IACrC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
|
|
File without changes
|