@seamapi/types 1.178.0 → 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 +19 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +40 -6
- 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/workspaces/workspace.d.ts +4 -1
- package/lib/seam/connect/models/workspaces/workspace.js +10 -1
- package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +8 -0
- package/lib/seam/connect/openapi.js +11 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +28 -5
- package/package.json +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/workspaces/workspace.ts +12 -1
- package/src/lib/seam/connect/openapi.ts +13 -3
- package/src/lib/seam/connect/route-types.ts +28 -5
|
@@ -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;
|
|
18048
|
+
company_name: string;
|
|
18043
18049
|
is_sandbox: boolean;
|
|
18044
|
-
|
|
18050
|
+
/**
|
|
18051
|
+
---
|
|
18052
|
+
deprecated: use company_name
|
|
18053
|
+
---
|
|
18054
|
+
*/
|
|
18055
|
+
connect_partner_name: (string | null) | null;
|
|
18045
18056
|
};
|
|
18046
18057
|
};
|
|
18047
18058
|
};
|
|
@@ -18056,8 +18067,14 @@ export interface Routes {
|
|
|
18056
18067
|
workspace: {
|
|
18057
18068
|
workspace_id: string;
|
|
18058
18069
|
name: string;
|
|
18070
|
+
company_name: string;
|
|
18059
18071
|
is_sandbox: boolean;
|
|
18060
|
-
|
|
18072
|
+
/**
|
|
18073
|
+
---
|
|
18074
|
+
deprecated: use company_name
|
|
18075
|
+
---
|
|
18076
|
+
*/
|
|
18077
|
+
connect_partner_name: (string | null) | null;
|
|
18061
18078
|
};
|
|
18062
18079
|
};
|
|
18063
18080
|
};
|
|
@@ -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
|
};
|
package/package.json
CHANGED
|
@@ -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>
|
|
@@ -3,6 +3,17 @@ import { z } from 'zod'
|
|
|
3
3
|
export const workspace = z.object({
|
|
4
4
|
workspace_id: z.string().uuid(),
|
|
5
5
|
name: z.string(),
|
|
6
|
+
company_name: z.string(),
|
|
6
7
|
is_sandbox: z.boolean(),
|
|
7
|
-
connect_partner_name: z
|
|
8
|
+
connect_partner_name: z
|
|
9
|
+
.string()
|
|
10
|
+
.nullable()
|
|
11
|
+
.describe(
|
|
12
|
+
`
|
|
13
|
+
---
|
|
14
|
+
deprecated: use company_name
|
|
15
|
+
---
|
|
16
|
+
`,
|
|
17
|
+
)
|
|
18
|
+
.nullable(),
|
|
8
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
|
],
|
|
@@ -12707,8 +12714,11 @@ export default {
|
|
|
12707
12714
|
'application/json': {
|
|
12708
12715
|
schema: {
|
|
12709
12716
|
properties: {
|
|
12717
|
+
company_name: { type: 'string' },
|
|
12710
12718
|
connect_partner_name: {
|
|
12711
|
-
description:
|
|
12719
|
+
description:
|
|
12720
|
+
'\n ---\n deprecated: use company_name\n ---\n ',
|
|
12721
|
+
nullable: true,
|
|
12712
12722
|
type: 'string',
|
|
12713
12723
|
},
|
|
12714
12724
|
is_sandbox: { default: false, type: 'boolean' },
|
|
@@ -12719,7 +12729,7 @@ export default {
|
|
|
12719
12729
|
},
|
|
12720
12730
|
webview_primary_button_color: { type: 'string' },
|
|
12721
12731
|
},
|
|
12722
|
-
required: ['name'
|
|
12732
|
+
required: ['name'],
|
|
12723
12733
|
type: 'object',
|
|
12724
12734
|
},
|
|
12725
12735
|
},
|
|
@@ -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
|
|
22094
|
+
company_name: string
|
|
22089
22095
|
is_sandbox: boolean
|
|
22090
|
-
|
|
22096
|
+
/**
|
|
22097
|
+
---
|
|
22098
|
+
deprecated: use company_name
|
|
22099
|
+
---
|
|
22100
|
+
*/
|
|
22101
|
+
connect_partner_name: (string | null) | null
|
|
22091
22102
|
}
|
|
22092
22103
|
}
|
|
22093
22104
|
}
|
|
@@ -22102,8 +22113,14 @@ export interface Routes {
|
|
|
22102
22113
|
workspace: {
|
|
22103
22114
|
workspace_id: string
|
|
22104
22115
|
name: string
|
|
22116
|
+
company_name: string
|
|
22105
22117
|
is_sandbox: boolean
|
|
22106
|
-
|
|
22118
|
+
/**
|
|
22119
|
+
---
|
|
22120
|
+
deprecated: use company_name
|
|
22121
|
+
---
|
|
22122
|
+
*/
|
|
22123
|
+
connect_partner_name: (string | null) | null
|
|
22107
22124
|
}
|
|
22108
22125
|
}
|
|
22109
22126
|
}
|
|
@@ -22118,8 +22135,14 @@ export interface Routes {
|
|
|
22118
22135
|
workspaces: Array<{
|
|
22119
22136
|
workspace_id: string
|
|
22120
22137
|
name: string
|
|
22138
|
+
company_name: string
|
|
22121
22139
|
is_sandbox: boolean
|
|
22122
|
-
|
|
22140
|
+
/**
|
|
22141
|
+
---
|
|
22142
|
+
deprecated: use company_name
|
|
22143
|
+
---
|
|
22144
|
+
*/
|
|
22145
|
+
connect_partner_name: (string | null) | null
|
|
22123
22146
|
}>
|
|
22124
22147
|
}
|
|
22125
22148
|
}
|