@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
@@ -1038,6 +1038,38 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<{
1038
1038
  }>]>;
1039
1039
  type ActionAttempt = z.infer<typeof action_attempt>;
1040
1040
 
1041
+ declare const client_session: z.ZodObject<{
1042
+ client_session_id: z.ZodString;
1043
+ workspace_id: z.ZodString;
1044
+ created_at: z.ZodString;
1045
+ token: z.ZodString;
1046
+ user_identifier_key: z.ZodNullable<z.ZodString>;
1047
+ device_count: z.ZodNumber;
1048
+ connected_account_ids: z.ZodArray<z.ZodString, "many">;
1049
+ connect_webview_ids: z.ZodArray<z.ZodString, "many">;
1050
+ user_identity_ids: z.ZodArray<z.ZodString, "many">;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ created_at: string;
1053
+ workspace_id: string;
1054
+ connected_account_ids: string[];
1055
+ client_session_id: string;
1056
+ token: string;
1057
+ user_identifier_key: string | null;
1058
+ device_count: number;
1059
+ connect_webview_ids: string[];
1060
+ user_identity_ids: string[];
1061
+ }, {
1062
+ created_at: string;
1063
+ workspace_id: string;
1064
+ connected_account_ids: string[];
1065
+ client_session_id: string;
1066
+ token: string;
1067
+ user_identifier_key: string | null;
1068
+ device_count: number;
1069
+ connect_webview_ids: string[];
1070
+ user_identity_ids: string[];
1071
+ }>;
1072
+
1041
1073
  declare const connect_webview: z.ZodObject<{
1042
1074
  connect_webview_id: z.ZodString;
1043
1075
  workspace_id: z.ZodString;
@@ -1575,21 +1607,21 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
1575
1607
  }>, z.ZodObject<{
1576
1608
  created_at: z.ZodString;
1577
1609
  workspace_id: z.ZodString;
1578
- occurred_at: z.ZodString;
1579
1610
  client_session_id: z.ZodString;
1611
+ occurred_at: z.ZodString;
1580
1612
  event_type: z.ZodLiteral<"client_session.deleted">;
1581
1613
  }, "strip", z.ZodTypeAny, {
1582
1614
  created_at: string;
1583
1615
  workspace_id: string;
1616
+ client_session_id: string;
1584
1617
  occurred_at: string;
1585
1618
  event_type: "client_session.deleted";
1586
- client_session_id: string;
1587
1619
  }, {
1588
1620
  created_at: string;
1589
1621
  workspace_id: string;
1622
+ client_session_id: string;
1590
1623
  occurred_at: string;
1591
1624
  event_type: "client_session.deleted";
1592
- client_session_id: string;
1593
1625
  }>, z.ZodObject<{
1594
1626
  created_at: z.ZodString;
1595
1627
  workspace_id: z.ZodString;
@@ -2311,27 +2343,31 @@ type SeamEventType = SeamEvent['event_type'];
2311
2343
  declare const workspace: z.ZodObject<{
2312
2344
  workspace_id: z.ZodString;
2313
2345
  name: z.ZodString;
2346
+ company_name: z.ZodString;
2314
2347
  is_sandbox: z.ZodBoolean;
2315
- connect_partner_name: z.ZodNullable<z.ZodString>;
2348
+ connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
2316
2349
  }, "strip", z.ZodTypeAny, {
2317
2350
  name: string;
2318
2351
  workspace_id: string;
2352
+ company_name: string;
2319
2353
  is_sandbox: boolean;
2320
2354
  connect_partner_name: string | null;
2321
2355
  }, {
2322
2356
  name: string;
2323
2357
  workspace_id: string;
2358
+ company_name: string;
2324
2359
  is_sandbox: boolean;
2325
2360
  connect_partner_name: string | null;
2326
2361
  }>;
2327
2362
 
2328
2363
  declare const schemas_action_attempt: typeof action_attempt;
2364
+ declare const schemas_client_session: typeof client_session;
2329
2365
  declare const schemas_connect_webview: typeof connect_webview;
2330
2366
  declare const schemas_custom_metadata: typeof custom_metadata;
2331
2367
  declare const schemas_seam_event: typeof seam_event;
2332
2368
  declare const schemas_workspace: typeof workspace;
2333
2369
  declare namespace schemas {
2334
- export { schemas_action_attempt as action_attempt, schemas_connect_webview as connect_webview, schemas_custom_metadata as custom_metadata, schemas_seam_event as seam_event, schemas_workspace as workspace };
2370
+ export { schemas_action_attempt as action_attempt, schemas_client_session as client_session, schemas_connect_webview as connect_webview, schemas_custom_metadata as custom_metadata, schemas_seam_event as seam_event, schemas_workspace as workspace };
2335
2371
  }
2336
2372
 
2337
2373
  declare const _default: {
@@ -5618,7 +5654,11 @@ declare const _default: {
5618
5654
  };
5619
5655
  workspace: {
5620
5656
  properties: {
5657
+ company_name: {
5658
+ type: string;
5659
+ };
5621
5660
  connect_partner_name: {
5661
+ description: string;
5622
5662
  nullable: boolean;
5623
5663
  type: string;
5624
5664
  };
@@ -13120,15 +13160,23 @@ declare const _default: {
13120
13160
  };
13121
13161
  };
13122
13162
  security: ({
13163
+ client_session: never[];
13164
+ api_key?: never;
13165
+ pat_with_workspace?: never;
13166
+ console_session?: never;
13167
+ } | {
13123
13168
  api_key: never[];
13169
+ client_session?: never;
13124
13170
  pat_with_workspace?: never;
13125
13171
  console_session?: never;
13126
13172
  } | {
13127
13173
  pat_with_workspace: never[];
13174
+ client_session?: never;
13128
13175
  api_key?: never;
13129
13176
  console_session?: never;
13130
13177
  } | {
13131
13178
  console_session: never[];
13179
+ client_session?: never;
13132
13180
  api_key?: never;
13133
13181
  pat_with_workspace?: never;
13134
13182
  })[];
@@ -13938,15 +13986,23 @@ declare const _default: {
13938
13986
  };
13939
13987
  };
13940
13988
  security: ({
13989
+ client_session: never[];
13990
+ api_key?: never;
13991
+ pat_with_workspace?: never;
13992
+ console_session?: never;
13993
+ } | {
13941
13994
  api_key: never[];
13995
+ client_session?: never;
13942
13996
  pat_with_workspace?: never;
13943
13997
  console_session?: never;
13944
13998
  } | {
13945
13999
  pat_with_workspace: never[];
14000
+ client_session?: never;
13946
14001
  api_key?: never;
13947
14002
  console_session?: never;
13948
14003
  } | {
13949
14004
  console_session: never[];
14005
+ client_session?: never;
13950
14006
  api_key?: never;
13951
14007
  pat_with_workspace?: never;
13952
14008
  })[];
@@ -17944,8 +18000,12 @@ declare const _default: {
17944
18000
  'application/json': {
17945
18001
  schema: {
17946
18002
  properties: {
18003
+ company_name: {
18004
+ type: string;
18005
+ };
17947
18006
  connect_partner_name: {
17948
18007
  description: string;
18008
+ nullable: boolean;
17949
18009
  type: string;
17950
18010
  };
17951
18011
  is_sandbox: {
@@ -23486,14 +23546,14 @@ interface Routes {
23486
23546
  jsonResponse: {
23487
23547
  client_session: {
23488
23548
  client_session_id: string;
23489
- user_identifier_key: string | null;
23549
+ workspace_id: string;
23490
23550
  created_at: string;
23491
23551
  token: string;
23552
+ user_identifier_key: string | null;
23492
23553
  device_count: number;
23493
23554
  connected_account_ids: string[];
23494
23555
  connect_webview_ids: string[];
23495
23556
  user_identity_ids: string[];
23496
- workspace_id: string;
23497
23557
  };
23498
23558
  };
23499
23559
  };
@@ -23521,14 +23581,14 @@ interface Routes {
23521
23581
  jsonResponse: {
23522
23582
  client_session: {
23523
23583
  client_session_id: string;
23524
- user_identifier_key: string | null;
23584
+ workspace_id: string;
23525
23585
  created_at: string;
23526
23586
  token: string;
23587
+ user_identifier_key: string | null;
23527
23588
  device_count: number;
23528
23589
  connected_account_ids: string[];
23529
23590
  connect_webview_ids: string[];
23530
23591
  user_identity_ids: string[];
23531
- workspace_id: string;
23532
23592
  };
23533
23593
  };
23534
23594
  };
@@ -23548,14 +23608,14 @@ interface Routes {
23548
23608
  jsonResponse: {
23549
23609
  client_session: {
23550
23610
  client_session_id: string;
23551
- user_identifier_key: string | null;
23611
+ workspace_id: string;
23552
23612
  created_at: string;
23553
23613
  token: string;
23614
+ user_identifier_key: string | null;
23554
23615
  device_count: number;
23555
23616
  connected_account_ids: string[];
23556
23617
  connect_webview_ids: string[];
23557
23618
  user_identity_ids: string[];
23558
- workspace_id: string;
23559
23619
  };
23560
23620
  };
23561
23621
  };
@@ -23575,14 +23635,14 @@ interface Routes {
23575
23635
  jsonResponse: {
23576
23636
  client_session: {
23577
23637
  client_session_id: string;
23578
- user_identifier_key: string | null;
23638
+ workspace_id: string;
23579
23639
  created_at: string;
23580
23640
  token: string;
23641
+ user_identifier_key: string | null;
23581
23642
  device_count: number;
23582
23643
  connected_account_ids: string[];
23583
23644
  connect_webview_ids: string[];
23584
23645
  user_identity_ids: string[];
23585
- workspace_id: string;
23586
23646
  };
23587
23647
  };
23588
23648
  };
@@ -23602,14 +23662,14 @@ interface Routes {
23602
23662
  jsonResponse: {
23603
23663
  client_sessions: Array<{
23604
23664
  client_session_id: string;
23605
- user_identifier_key: string | null;
23665
+ workspace_id: string;
23606
23666
  created_at: string;
23607
23667
  token: string;
23668
+ user_identifier_key: string | null;
23608
23669
  device_count: number;
23609
23670
  connected_account_ids: string[];
23610
23671
  connect_webview_ids: string[];
23611
23672
  user_identity_ids: string[];
23612
- workspace_id: string;
23613
23673
  }>;
23614
23674
  };
23615
23675
  };
@@ -36370,8 +36430,13 @@ interface Routes {
36370
36430
  queryParams: {};
36371
36431
  jsonBody: {
36372
36432
  name: string;
36373
- /** The name shown inside the connect webview */
36374
- connect_partner_name: string;
36433
+ company_name?: string | undefined;
36434
+ /**
36435
+ ---
36436
+ deprecated: use company_name
36437
+ ---
36438
+ */
36439
+ connect_partner_name?: ((string | null) | null) | undefined;
36375
36440
  is_sandbox?: boolean;
36376
36441
  webview_primary_button_color?: string | undefined;
36377
36442
  webview_logo_shape?: ('circle' | 'square') | undefined;
@@ -36382,8 +36447,14 @@ interface Routes {
36382
36447
  workspace: {
36383
36448
  workspace_id: string;
36384
36449
  name: string;
36450
+ company_name: string;
36385
36451
  is_sandbox: boolean;
36386
- connect_partner_name: string | null;
36452
+ /**
36453
+ ---
36454
+ deprecated: use company_name
36455
+ ---
36456
+ */
36457
+ connect_partner_name: (string | null) | null;
36387
36458
  };
36388
36459
  };
36389
36460
  };
@@ -36398,8 +36469,14 @@ interface Routes {
36398
36469
  workspace: {
36399
36470
  workspace_id: string;
36400
36471
  name: string;
36472
+ company_name: string;
36401
36473
  is_sandbox: boolean;
36402
- connect_partner_name: string | null;
36474
+ /**
36475
+ ---
36476
+ deprecated: use company_name
36477
+ ---
36478
+ */
36479
+ connect_partner_name: (string | null) | null;
36403
36480
  };
36404
36481
  };
36405
36482
  };
@@ -36414,8 +36491,14 @@ interface Routes {
36414
36491
  workspaces: Array<{
36415
36492
  workspace_id: string;
36416
36493
  name: string;
36494
+ company_name: string;
36417
36495
  is_sandbox: boolean;
36418
- connect_partner_name: string | null;
36496
+ /**
36497
+ ---
36498
+ deprecated: use company_name
36499
+ ---
36500
+ */
36501
+ connect_partner_name: (string | null) | null;
36419
36502
  }>;
36420
36503
  };
36421
36504
  };
@@ -1,2 +1,2 @@
1
- export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, connect_webview_device_selection_mode, custom_metadata_input, device_capability_flags, device_metadata, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, workspace, } from '../models/index.js';
1
+ export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, connect_webview_device_selection_mode, custom_metadata_input, device_capability_flags, device_metadata, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, } from '../models/index.js';
2
2
  export * from '../schemas.js';
@@ -1,3 +1,3 @@
1
- export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, connect_webview_device_selection_mode, custom_metadata_input, device_capability_flags, device_metadata, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, workspace, } from '../models/index.js';
1
+ export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, connect_webview_device_selection_mode, custom_metadata_input, device_capability_flags, device_metadata, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, } from '../models/index.js';
2
2
  export * from '../schemas.js';
3
3
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,qCAAqC,EACrC,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,KAAK,EACL,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,SAAS,GACV,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,qCAAqC,EACrC,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,KAAK,EACL,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,GACd,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -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';
@@ -4,6 +4,7 @@ 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';
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,yCAAyC,CAAA;AACvD,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,yCAAyC,CAAA;AACvD,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,112 @@
1
+ import { z } from 'zod';
2
+ export declare const seam_bridge_error_map: z.ZodObject<{
3
+ bridge_tunnel_failed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4
+ message: z.ZodString;
5
+ created_at: z.ZodString;
6
+ error_code: z.ZodLiteral<"bridge_tunnel_failed">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ message: string;
9
+ created_at: string;
10
+ error_code: "bridge_tunnel_failed";
11
+ }, {
12
+ message: string;
13
+ created_at: string;
14
+ error_code: "bridge_tunnel_failed";
15
+ }>>>;
16
+ bridge_proxy_failure: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17
+ message: z.ZodString;
18
+ created_at: z.ZodString;
19
+ error_code: z.ZodLiteral<"bridge_proxy_failure">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ message: string;
22
+ created_at: string;
23
+ error_code: "bridge_proxy_failure";
24
+ }, {
25
+ message: string;
26
+ created_at: string;
27
+ error_code: "bridge_proxy_failure";
28
+ }>>>;
29
+ connection_failure: z.ZodNullable<z.ZodOptional<z.ZodObject<{
30
+ message: z.ZodString;
31
+ created_at: z.ZodString;
32
+ error_code: z.ZodLiteral<"connection_failure">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ message: string;
35
+ created_at: string;
36
+ error_code: "connection_failure";
37
+ }, {
38
+ message: string;
39
+ created_at: string;
40
+ error_code: "connection_failure";
41
+ }>>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ bridge_tunnel_failed?: {
44
+ message: string;
45
+ created_at: string;
46
+ error_code: "bridge_tunnel_failed";
47
+ } | null | undefined;
48
+ bridge_proxy_failure?: {
49
+ message: string;
50
+ created_at: string;
51
+ error_code: "bridge_proxy_failure";
52
+ } | null | undefined;
53
+ connection_failure?: {
54
+ message: string;
55
+ created_at: string;
56
+ error_code: "connection_failure";
57
+ } | null | undefined;
58
+ }, {
59
+ bridge_tunnel_failed?: {
60
+ message: string;
61
+ created_at: string;
62
+ error_code: "bridge_tunnel_failed";
63
+ } | null | undefined;
64
+ bridge_proxy_failure?: {
65
+ message: string;
66
+ created_at: string;
67
+ error_code: "bridge_proxy_failure";
68
+ } | null | undefined;
69
+ connection_failure?: {
70
+ message: string;
71
+ created_at: string;
72
+ error_code: "connection_failure";
73
+ } | null | undefined;
74
+ }>;
75
+ export declare const seam_bridge_error: z.ZodUnion<[z.ZodObject<{
76
+ message: z.ZodString;
77
+ created_at: z.ZodString;
78
+ error_code: z.ZodLiteral<"connection_failure">;
79
+ }, "strip", z.ZodTypeAny, {
80
+ message: string;
81
+ created_at: string;
82
+ error_code: "connection_failure";
83
+ }, {
84
+ message: string;
85
+ created_at: string;
86
+ error_code: "connection_failure";
87
+ }>, z.ZodObject<{
88
+ message: z.ZodString;
89
+ created_at: z.ZodString;
90
+ error_code: z.ZodLiteral<"bridge_proxy_failure">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ message: string;
93
+ created_at: string;
94
+ error_code: "bridge_proxy_failure";
95
+ }, {
96
+ message: string;
97
+ created_at: string;
98
+ error_code: "bridge_proxy_failure";
99
+ }>, z.ZodObject<{
100
+ message: z.ZodString;
101
+ created_at: z.ZodString;
102
+ error_code: z.ZodLiteral<"bridge_tunnel_failed">;
103
+ }, "strip", z.ZodTypeAny, {
104
+ message: string;
105
+ created_at: string;
106
+ error_code: "bridge_tunnel_failed";
107
+ }, {
108
+ message: string;
109
+ created_at: string;
110
+ error_code: "bridge_tunnel_failed";
111
+ }>]>;
112
+ export type SeamBridgeErrorMap = z.infer<typeof seam_bridge_error_map>;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ const common_seam_bridge_error = z.object({
3
+ created_at: z.string().datetime(),
4
+ message: z.string(),
5
+ });
6
+ const connection_failure = common_seam_bridge_error.extend({
7
+ error_code: z.literal('connection_failure'),
8
+ });
9
+ const bridge_tunnel_failed = common_seam_bridge_error.extend({
10
+ error_code: z.literal('bridge_tunnel_failed'),
11
+ });
12
+ const bridge_proxy_failure = common_seam_bridge_error.extend({
13
+ error_code: z.literal('bridge_proxy_failure'),
14
+ });
15
+ export const seam_bridge_error_map = z.object({
16
+ bridge_tunnel_failed: bridge_tunnel_failed.optional().nullable(),
17
+ bridge_proxy_failure: bridge_proxy_failure.optional().nullable(),
18
+ connection_failure: connection_failure.optional().nullable(),
19
+ });
20
+ export const seam_bridge_error = z.union([
21
+ connection_failure,
22
+ bridge_proxy_failure,
23
+ bridge_tunnel_failed,
24
+ ]);
25
+ //# sourceMappingURL=seam-bridge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seam-bridge.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/seam-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IACzD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;CAC5C,CAAC,CAAA;AACF,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAA;AACF,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,oBAAoB,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChE,oBAAoB,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChE,kBAAkB,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,kBAAkB;IAClB,oBAAoB;IACpB,oBAAoB;CACrB,CAAC,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare const client_session: z.ZodObject<{
3
+ client_session_id: z.ZodString;
4
+ workspace_id: z.ZodString;
5
+ created_at: z.ZodString;
6
+ token: z.ZodString;
7
+ user_identifier_key: z.ZodNullable<z.ZodString>;
8
+ device_count: z.ZodNumber;
9
+ connected_account_ids: z.ZodArray<z.ZodString, "many">;
10
+ connect_webview_ids: z.ZodArray<z.ZodString, "many">;
11
+ user_identity_ids: z.ZodArray<z.ZodString, "many">;
12
+ }, "strip", z.ZodTypeAny, {
13
+ created_at: string;
14
+ workspace_id: string;
15
+ connected_account_ids: string[];
16
+ client_session_id: string;
17
+ token: string;
18
+ user_identifier_key: string | null;
19
+ device_count: number;
20
+ connect_webview_ids: string[];
21
+ user_identity_ids: string[];
22
+ }, {
23
+ created_at: string;
24
+ workspace_id: string;
25
+ connected_account_ids: string[];
26
+ client_session_id: string;
27
+ token: string;
28
+ user_identifier_key: string | null;
29
+ device_count: number;
30
+ connect_webview_ids: string[];
31
+ user_identity_ids: string[];
32
+ }>;
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export const client_session = z.object({
3
+ client_session_id: z.string().uuid(),
4
+ workspace_id: z.string().uuid(),
5
+ created_at: z.string().datetime(),
6
+ token: z.string(),
7
+ user_identifier_key: z.string().nullable(),
8
+ device_count: z.number(),
9
+ connected_account_ids: z.array(z.string().uuid()),
10
+ connect_webview_ids: z.array(z.string().uuid()),
11
+ user_identity_ids: z.array(z.string().uuid()),
12
+ });
13
+ //# sourceMappingURL=client-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-session.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/client-sessions/client-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;IACjD,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;IAC/C,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;CAC9C,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './client-session.js';
@@ -0,0 +1,2 @@
1
+ export * from './client-session.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/client-sessions/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -2,39 +2,39 @@ import { z } from 'zod';
2
2
  export declare const client_session_deleted_event: z.ZodObject<{
3
3
  created_at: z.ZodString;
4
4
  workspace_id: z.ZodString;
5
- occurred_at: z.ZodString;
6
5
  client_session_id: z.ZodString;
6
+ occurred_at: z.ZodString;
7
7
  event_type: z.ZodLiteral<"client_session.deleted">;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  created_at: string;
10
10
  workspace_id: string;
11
+ client_session_id: string;
11
12
  occurred_at: string;
12
13
  event_type: "client_session.deleted";
13
- client_session_id: string;
14
14
  }, {
15
15
  created_at: string;
16
16
  workspace_id: string;
17
+ client_session_id: string;
17
18
  occurred_at: string;
18
19
  event_type: "client_session.deleted";
19
- client_session_id: string;
20
20
  }>;
21
21
  export type ClientSessionDeletedEvent = z.infer<typeof client_session_deleted_event>;
22
22
  export declare const client_session_events: readonly [z.ZodObject<{
23
23
  created_at: z.ZodString;
24
24
  workspace_id: z.ZodString;
25
- occurred_at: z.ZodString;
26
25
  client_session_id: z.ZodString;
26
+ occurred_at: z.ZodString;
27
27
  event_type: z.ZodLiteral<"client_session.deleted">;
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  created_at: string;
30
30
  workspace_id: string;
31
+ client_session_id: string;
31
32
  occurred_at: string;
32
33
  event_type: "client_session.deleted";
33
- client_session_id: string;
34
34
  }, {
35
35
  created_at: string;
36
36
  workspace_id: string;
37
+ client_session_id: string;
37
38
  occurred_at: string;
38
39
  event_type: "client_session.deleted";
39
- client_session_id: string;
40
40
  }>];
@@ -470,21 +470,21 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
470
470
  }>, z.ZodObject<{
471
471
  created_at: z.ZodString;
472
472
  workspace_id: z.ZodString;
473
- occurred_at: z.ZodString;
474
473
  client_session_id: z.ZodString;
474
+ occurred_at: z.ZodString;
475
475
  event_type: z.ZodLiteral<"client_session.deleted">;
476
476
  }, "strip", z.ZodTypeAny, {
477
477
  created_at: string;
478
478
  workspace_id: string;
479
+ client_session_id: string;
479
480
  occurred_at: string;
480
481
  event_type: "client_session.deleted";
481
- client_session_id: string;
482
482
  }, {
483
483
  created_at: string;
484
484
  workspace_id: string;
485
+ client_session_id: string;
485
486
  occurred_at: string;
486
487
  event_type: "client_session.deleted";
487
- client_session_id: string;
488
488
  }>, z.ZodObject<{
489
489
  created_at: z.ZodString;
490
490
  workspace_id: z.ZodString;
@@ -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';
@@ -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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kCAAkC,CAAA;AAChD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA"}