@seamapi/types 1.178.0 → 1.180.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.
Files changed (44) hide show
  1. package/dist/connect.cjs +36 -7
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +103 -20
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/acs/index.d.ts +1 -0
  8. package/lib/seam/connect/models/acs/index.js +1 -0
  9. package/lib/seam/connect/models/acs/index.js.map +1 -1
  10. package/lib/seam/connect/models/acs/seam-bridge.d.ts +112 -0
  11. package/lib/seam/connect/models/acs/seam-bridge.js +25 -0
  12. package/lib/seam/connect/models/acs/seam-bridge.js.map +1 -0
  13. package/lib/seam/connect/models/client-sessions/client-session.d.ts +32 -0
  14. package/lib/seam/connect/models/client-sessions/client-session.js +13 -0
  15. package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -0
  16. package/lib/seam/connect/models/client-sessions/index.d.ts +1 -0
  17. package/lib/seam/connect/models/client-sessions/index.js +2 -0
  18. package/lib/seam/connect/models/client-sessions/index.js.map +1 -0
  19. package/lib/seam/connect/models/events/client-sessions.d.ts +6 -6
  20. package/lib/seam/connect/models/events/seam-event.d.ts +3 -3
  21. package/lib/seam/connect/models/index.d.ts +1 -0
  22. package/lib/seam/connect/models/index.js +1 -0
  23. package/lib/seam/connect/models/index.js.map +1 -1
  24. package/lib/seam/connect/models/workspaces/workspace.d.ts +4 -1
  25. package/lib/seam/connect/models/workspaces/workspace.js +10 -1
  26. package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
  27. package/lib/seam/connect/openapi.d.ts +24 -0
  28. package/lib/seam/connect/openapi.js +15 -5
  29. package/lib/seam/connect/openapi.js.map +1 -1
  30. package/lib/seam/connect/route-types.d.ts +38 -15
  31. package/lib/seam/connect/schemas.d.ts +1 -1
  32. package/lib/seam/connect/schemas.js +1 -1
  33. package/lib/seam/connect/schemas.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/lib/seam/connect/internal/schemas.ts +0 -1
  36. package/src/lib/seam/connect/models/acs/index.ts +1 -0
  37. package/src/lib/seam/connect/models/acs/seam-bridge.ts +30 -0
  38. package/src/lib/seam/connect/models/client-sessions/client-session.ts +13 -0
  39. package/src/lib/seam/connect/models/client-sessions/index.ts +1 -0
  40. package/src/lib/seam/connect/models/index.ts +1 -0
  41. package/src/lib/seam/connect/models/workspaces/workspace.ts +12 -1
  42. package/src/lib/seam/connect/openapi.ts +17 -5
  43. package/src/lib/seam/connect/route-types.ts +38 -15
  44. package/src/lib/seam/connect/schemas.ts +1 -0
@@ -5144,14 +5144,14 @@ export interface Routes {
5144
5144
  jsonResponse: {
5145
5145
  client_session: {
5146
5146
  client_session_id: string;
5147
- user_identifier_key: string | null;
5147
+ workspace_id: string;
5148
5148
  created_at: string;
5149
5149
  token: string;
5150
+ user_identifier_key: string | null;
5150
5151
  device_count: number;
5151
5152
  connected_account_ids: string[];
5152
5153
  connect_webview_ids: string[];
5153
5154
  user_identity_ids: string[];
5154
- workspace_id: string;
5155
5155
  };
5156
5156
  };
5157
5157
  };
@@ -5179,14 +5179,14 @@ export interface Routes {
5179
5179
  jsonResponse: {
5180
5180
  client_session: {
5181
5181
  client_session_id: string;
5182
- user_identifier_key: string | null;
5182
+ workspace_id: string;
5183
5183
  created_at: string;
5184
5184
  token: string;
5185
+ user_identifier_key: string | null;
5185
5186
  device_count: number;
5186
5187
  connected_account_ids: string[];
5187
5188
  connect_webview_ids: string[];
5188
5189
  user_identity_ids: string[];
5189
- workspace_id: string;
5190
5190
  };
5191
5191
  };
5192
5192
  };
@@ -5206,14 +5206,14 @@ export interface Routes {
5206
5206
  jsonResponse: {
5207
5207
  client_session: {
5208
5208
  client_session_id: string;
5209
- user_identifier_key: string | null;
5209
+ workspace_id: string;
5210
5210
  created_at: string;
5211
5211
  token: string;
5212
+ user_identifier_key: string | null;
5212
5213
  device_count: number;
5213
5214
  connected_account_ids: string[];
5214
5215
  connect_webview_ids: string[];
5215
5216
  user_identity_ids: string[];
5216
- workspace_id: string;
5217
5217
  };
5218
5218
  };
5219
5219
  };
@@ -5233,14 +5233,14 @@ export interface Routes {
5233
5233
  jsonResponse: {
5234
5234
  client_session: {
5235
5235
  client_session_id: string;
5236
- user_identifier_key: string | null;
5236
+ workspace_id: string;
5237
5237
  created_at: string;
5238
5238
  token: string;
5239
+ user_identifier_key: string | null;
5239
5240
  device_count: number;
5240
5241
  connected_account_ids: string[];
5241
5242
  connect_webview_ids: string[];
5242
5243
  user_identity_ids: string[];
5243
- workspace_id: string;
5244
5244
  };
5245
5245
  };
5246
5246
  };
@@ -5260,14 +5260,14 @@ export interface Routes {
5260
5260
  jsonResponse: {
5261
5261
  client_sessions: Array<{
5262
5262
  client_session_id: string;
5263
- user_identifier_key: string | null;
5263
+ workspace_id: string;
5264
5264
  created_at: string;
5265
5265
  token: string;
5266
+ user_identifier_key: string | null;
5266
5267
  device_count: number;
5267
5268
  connected_account_ids: string[];
5268
5269
  connect_webview_ids: string[];
5269
5270
  user_identity_ids: string[];
5270
- workspace_id: string;
5271
5271
  }>;
5272
5272
  };
5273
5273
  };
@@ -18028,8 +18028,13 @@ export interface Routes {
18028
18028
  queryParams: {};
18029
18029
  jsonBody: {
18030
18030
  name: string;
18031
- /** The name shown inside the connect webview */
18032
- connect_partner_name: string;
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
- connect_partner_name: string | null;
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
- connect_partner_name: string | null;
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
- connect_partner_name: string | null;
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, workspace, } from './models/index.js';
1
+ export { action_attempt, client_session, 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, workspace, } from './models/index.js';
1
+ export { action_attempt, client_session, 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,EACV,SAAS,GACV,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,UAAU,EACV,SAAS,GACV,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.178.0",
3
+ "version": "1.180.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -38,6 +38,5 @@ export {
38
38
  unmanaged_access_code,
39
39
  unmanaged_device,
40
40
  user_identity,
41
- workspace,
42
41
  } from '../models/index.js'
43
42
  export * from '../schemas.js'
@@ -4,5 +4,6 @@ export * from './credential.js'
4
4
  export * from './credential_pool.js'
5
5
  export * from './credential_provisioning_automation.js'
6
6
  export * from './entrance.js'
7
+ export * from './seam-bridge.js'
7
8
  export * from './system.js'
8
9
  export * from './user.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>
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod'
2
+
3
+ export const client_session = z.object({
4
+ client_session_id: z.string().uuid(),
5
+ workspace_id: z.string().uuid(),
6
+ created_at: z.string().datetime(),
7
+ token: z.string(),
8
+ user_identifier_key: z.string().nullable(),
9
+ device_count: z.number(),
10
+ connected_account_ids: z.array(z.string().uuid()),
11
+ connect_webview_ids: z.array(z.string().uuid()),
12
+ user_identity_ids: z.array(z.string().uuid()),
13
+ })
@@ -0,0 +1 @@
1
+ export * from './client-session.js'
@@ -2,6 +2,7 @@ export * from './access-codes/index.js'
2
2
  export * from './acs/index.js'
3
3
  export * from './action-attempts/index.js'
4
4
  export * from './capability-properties/index.js'
5
+ export * from './client-sessions/index.js'
5
6
  export * from './connect-webviews/index.js'
6
7
  export * from './custom-metadata.js'
7
8
  export * from './devices/index.js'
@@ -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.string().nullable(),
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
  })
@@ -1635,14 +1635,14 @@ export default {
1635
1635
  },
1636
1636
  required: [
1637
1637
  'client_session_id',
1638
- 'user_identifier_key',
1638
+ 'workspace_id',
1639
1639
  'created_at',
1640
1640
  'token',
1641
+ 'user_identifier_key',
1641
1642
  'device_count',
1642
1643
  'connected_account_ids',
1643
1644
  'connect_webview_ids',
1644
1645
  'user_identity_ids',
1645
- 'workspace_id',
1646
1646
  ],
1647
1647
  type: 'object',
1648
1648
  },
@@ -3729,7 +3729,13 @@ export default {
3729
3729
  },
3730
3730
  workspace: {
3731
3731
  properties: {
3732
- connect_partner_name: { nullable: true, type: 'string' },
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
  ],
@@ -9210,6 +9217,7 @@ export default {
9210
9217
  401: { description: 'Unauthorized' },
9211
9218
  },
9212
9219
  security: [
9220
+ { client_session: [] },
9213
9221
  { api_key: [] },
9214
9222
  { pat_with_workspace: [] },
9215
9223
  { console_session: [] },
@@ -9904,6 +9912,7 @@ export default {
9904
9912
  401: { description: 'Unauthorized' },
9905
9913
  },
9906
9914
  security: [
9915
+ { client_session: [] },
9907
9916
  { api_key: [] },
9908
9917
  { pat_with_workspace: [] },
9909
9918
  { console_session: [] },
@@ -12707,8 +12716,11 @@ export default {
12707
12716
  'application/json': {
12708
12717
  schema: {
12709
12718
  properties: {
12719
+ company_name: { type: 'string' },
12710
12720
  connect_partner_name: {
12711
- description: 'The name shown inside the connect webview',
12721
+ description:
12722
+ '\n ---\n deprecated: use company_name\n ---\n ',
12723
+ nullable: true,
12712
12724
  type: 'string',
12713
12725
  },
12714
12726
  is_sandbox: { default: false, type: 'boolean' },
@@ -12719,7 +12731,7 @@ export default {
12719
12731
  },
12720
12732
  webview_primary_button_color: { type: 'string' },
12721
12733
  },
12722
- required: ['name', 'connect_partner_name'],
12734
+ required: ['name'],
12723
12735
  type: 'object',
12724
12736
  },
12725
12737
  },
@@ -5641,14 +5641,14 @@ export interface Routes {
5641
5641
  jsonResponse: {
5642
5642
  client_session: {
5643
5643
  client_session_id: string
5644
- user_identifier_key: string | null
5644
+ workspace_id: string
5645
5645
  created_at: string
5646
5646
  token: string
5647
+ user_identifier_key: string | null
5647
5648
  device_count: number
5648
5649
  connected_account_ids: string[]
5649
5650
  connect_webview_ids: string[]
5650
5651
  user_identity_ids: string[]
5651
- workspace_id: string
5652
5652
  }
5653
5653
  }
5654
5654
  }
@@ -5676,14 +5676,14 @@ export interface Routes {
5676
5676
  jsonResponse: {
5677
5677
  client_session: {
5678
5678
  client_session_id: string
5679
- user_identifier_key: string | null
5679
+ workspace_id: string
5680
5680
  created_at: string
5681
5681
  token: string
5682
+ user_identifier_key: string | null
5682
5683
  device_count: number
5683
5684
  connected_account_ids: string[]
5684
5685
  connect_webview_ids: string[]
5685
5686
  user_identity_ids: string[]
5686
- workspace_id: string
5687
5687
  }
5688
5688
  }
5689
5689
  }
@@ -5703,14 +5703,14 @@ export interface Routes {
5703
5703
  jsonResponse: {
5704
5704
  client_session: {
5705
5705
  client_session_id: string
5706
- user_identifier_key: string | null
5706
+ workspace_id: string
5707
5707
  created_at: string
5708
5708
  token: string
5709
+ user_identifier_key: string | null
5709
5710
  device_count: number
5710
5711
  connected_account_ids: string[]
5711
5712
  connect_webview_ids: string[]
5712
5713
  user_identity_ids: string[]
5713
- workspace_id: string
5714
5714
  }
5715
5715
  }
5716
5716
  }
@@ -5730,14 +5730,14 @@ export interface Routes {
5730
5730
  jsonResponse: {
5731
5731
  client_session: {
5732
5732
  client_session_id: string
5733
- user_identifier_key: string | null
5733
+ workspace_id: string
5734
5734
  created_at: string
5735
5735
  token: string
5736
+ user_identifier_key: string | null
5736
5737
  device_count: number
5737
5738
  connected_account_ids: string[]
5738
5739
  connect_webview_ids: string[]
5739
5740
  user_identity_ids: string[]
5740
- workspace_id: string
5741
5741
  }
5742
5742
  }
5743
5743
  }
@@ -5757,14 +5757,14 @@ export interface Routes {
5757
5757
  jsonResponse: {
5758
5758
  client_sessions: Array<{
5759
5759
  client_session_id: string
5760
- user_identifier_key: string | null
5760
+ workspace_id: string
5761
5761
  created_at: string
5762
5762
  token: string
5763
+ user_identifier_key: string | null
5763
5764
  device_count: number
5764
5765
  connected_account_ids: string[]
5765
5766
  connect_webview_ids: string[]
5766
5767
  user_identity_ids: string[]
5767
- workspace_id: string
5768
5768
  }>
5769
5769
  }
5770
5770
  }
@@ -22074,8 +22074,13 @@ export interface Routes {
22074
22074
  queryParams: {}
22075
22075
  jsonBody: {
22076
22076
  name: string
22077
- /** The name shown inside the connect webview */
22078
- connect_partner_name: string
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
- connect_partner_name: string | null
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
- connect_partner_name: string | null
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
- connect_partner_name: string | null
22140
+ /**
22141
+ ---
22142
+ deprecated: use company_name
22143
+ ---
22144
+ */
22145
+ connect_partner_name: (string | null) | null
22123
22146
  }>
22124
22147
  }
22125
22148
  }
@@ -1,5 +1,6 @@
1
1
  export {
2
2
  action_attempt,
3
+ client_session,
3
4
  connect_webview,
4
5
  custom_metadata,
5
6
  seam_event,