@seamapi/types 1.406.5 → 1.406.7

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 (30) hide show
  1. package/dist/connect.cjs +75 -175
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +140 -241
  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/client-sessions/client-session.d.ts +3 -0
  8. package/lib/seam/connect/models/client-sessions/client-session.js +4 -3
  9. package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
  10. package/lib/seam/connect/models/partner/index.d.ts +1 -0
  11. package/lib/seam/connect/models/partner/index.js +1 -0
  12. package/lib/seam/connect/models/partner/index.js.map +1 -1
  13. package/lib/seam/connect/models/partner/magic-link.d.ts +27 -0
  14. package/lib/seam/connect/models/partner/magic-link.js +16 -0
  15. package/lib/seam/connect/models/partner/magic-link.js.map +1 -0
  16. package/lib/seam/connect/models/partner/resources.d.ts +2 -2
  17. package/lib/seam/connect/models/partner/resources.js +6 -1
  18. package/lib/seam/connect/models/partner/resources.js.map +1 -1
  19. package/lib/seam/connect/openapi.d.ts +116 -198
  20. package/lib/seam/connect/openapi.js +68 -169
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +21 -43
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  25. package/src/lib/seam/connect/models/client-sessions/client-session.ts +4 -3
  26. package/src/lib/seam/connect/models/partner/index.ts +1 -0
  27. package/src/lib/seam/connect/models/partner/magic-link.ts +18 -0
  28. package/src/lib/seam/connect/models/partner/resources.ts +6 -1
  29. package/src/lib/seam/connect/openapi.ts +68 -179
  30. package/src/lib/seam/connect/route-types.ts +21 -46
@@ -6417,6 +6417,7 @@ export default {
6417
6417
  type: 'array',
6418
6418
  },
6419
6419
  created_at: { format: 'date-time', type: 'string' },
6420
+ customer_id: { format: 'uuid', type: 'string' },
6420
6421
  device_count: { format: 'float', type: 'number' },
6421
6422
  expires_at: { format: 'date-time', type: 'string' },
6422
6423
  token: { type: 'string' },
@@ -14518,6 +14519,32 @@ export default {
14518
14519
  'x-route-path': '/user_identities',
14519
14520
  'x-undocumented': 'Unreleased.',
14520
14521
  },
14522
+ magic_link: {
14523
+ properties: {
14524
+ building_block_type: {
14525
+ enum: ['connect_account', 'manage_devices'],
14526
+ type: 'string',
14527
+ },
14528
+ created_at: { format: 'date-time', type: 'string' },
14529
+ customer_id: { format: 'uuid', type: 'string' },
14530
+ customer_key: { type: 'string' },
14531
+ expires_at: { format: 'date-time', type: 'string' },
14532
+ url: { format: 'uri', type: 'string' },
14533
+ workspace_id: { format: 'uuid', type: 'string' },
14534
+ },
14535
+ required: [
14536
+ 'url',
14537
+ 'building_block_type',
14538
+ 'customer_id',
14539
+ 'customer_key',
14540
+ 'expires_at',
14541
+ 'workspace_id',
14542
+ 'created_at',
14543
+ ],
14544
+ type: 'object',
14545
+ 'x-route-path': '/unstable_partner/building_blocks',
14546
+ 'x-undocumented': 'Unreleased.',
14547
+ },
14521
14548
  network: {
14522
14549
  properties: {
14523
14550
  created_at: { format: 'date-time', type: 'string' },
@@ -18686,18 +18713,18 @@ export default {
18686
18713
  name: 'client-session-token',
18687
18714
  type: 'apiKey',
18688
18715
  },
18689
- console_session_with_workspace: {
18690
- bearerFormat: 'Console Session Token',
18716
+ client_session_with_customer: {
18717
+ bearerFormat: 'Customer Client Session Token',
18691
18718
  scheme: 'bearer',
18692
18719
  type: 'http',
18693
18720
  },
18694
- console_session_without_workspace: {
18721
+ console_session_with_workspace: {
18695
18722
  bearerFormat: 'Console Session Token',
18696
18723
  scheme: 'bearer',
18697
18724
  type: 'http',
18698
18725
  },
18699
- customer_client_session: {
18700
- bearerFormat: 'Customer Client Session Token',
18726
+ console_session_without_workspace: {
18727
+ bearerFormat: 'Console Session Token',
18701
18728
  scheme: 'bearer',
18702
18729
  type: 'http',
18703
18730
  },
@@ -25383,7 +25410,7 @@ export default {
25383
25410
  },
25384
25411
  security: [
25385
25412
  { client_session: [] },
25386
- { customer_client_session: [] },
25413
+ { client_session_with_customer: [] },
25387
25414
  { pat_with_workspace: [] },
25388
25415
  { console_session_with_workspace: [] },
25389
25416
  { api_key: [] },
@@ -25491,7 +25518,7 @@ export default {
25491
25518
  },
25492
25519
  security: [
25493
25520
  { client_session: [] },
25494
- { customer_client_session: [] },
25521
+ { client_session_with_customer: [] },
25495
25522
  { pat_with_workspace: [] },
25496
25523
  { console_session_with_workspace: [] },
25497
25524
  { api_key: [] },
@@ -25521,7 +25548,7 @@ export default {
25521
25548
  description: 'Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs.',
25522
25549
  type: 'object',
25523
25550
  },
25524
- customer_id: { type: 'string' },
25551
+ customer_ids: { items: { type: 'string' }, type: 'array' },
25525
25552
  limit: {
25526
25553
  default: 500,
25527
25554
  description: 'Maximum number of records to return per page.',
@@ -25562,7 +25589,7 @@ export default {
25562
25589
  },
25563
25590
  security: [
25564
25591
  { client_session: [] },
25565
- { customer_client_session: [] },
25592
+ { client_session_with_customer: [] },
25566
25593
  { pat_with_workspace: [] },
25567
25594
  { console_session_with_workspace: [] },
25568
25595
  { api_key: [] },
@@ -25622,7 +25649,7 @@ export default {
25622
25649
  { api_key: [] },
25623
25650
  { pat_with_workspace: [] },
25624
25651
  { console_session_with_workspace: [] },
25625
- { customer_client_session: [] },
25652
+ { client_session_with_customer: [] },
25626
25653
  ],
25627
25654
  summary: '/connected_accounts/delete',
25628
25655
  tags: ['/connected_accounts'],
@@ -25773,7 +25800,7 @@ export default {
25773
25800
  { api_key: [] },
25774
25801
  { pat_with_workspace: [] },
25775
25802
  { console_session_with_workspace: [] },
25776
- { customer_client_session: [] },
25803
+ { client_session_with_customer: [] },
25777
25804
  ],
25778
25805
  summary: '/connected_accounts/list',
25779
25806
  tags: ['/connected_accounts'],
@@ -26001,7 +26028,7 @@ export default {
26001
26028
  },
26002
26029
  security: [
26003
26030
  { client_session: [] },
26004
- { customer_client_session: [] },
26031
+ { client_session_with_customer: [] },
26005
26032
  { pat_with_workspace: [] },
26006
26033
  { console_session_with_workspace: [] },
26007
26034
  { api_key: [] },
@@ -26320,7 +26347,7 @@ export default {
26320
26347
  401: { description: 'Unauthorized' },
26321
26348
  },
26322
26349
  security: [
26323
- { customer_client_session: [] },
26350
+ { client_session_with_customer: [] },
26324
26351
  { client_session: [] },
26325
26352
  { pat_with_workspace: [] },
26326
26353
  { console_session_with_workspace: [] },
@@ -27565,7 +27592,7 @@ export default {
27565
27592
  { api_key: [] },
27566
27593
  { pat_with_workspace: [] },
27567
27594
  { console_session_with_workspace: [] },
27568
- { customer_client_session: [] },
27595
+ { client_session_with_customer: [] },
27569
27596
  ],
27570
27597
  summary: '/events/list',
27571
27598
  tags: ['/events'],
@@ -30385,6 +30412,8 @@ export default {
30385
30412
  'customer_key',
30386
30413
  ],
30387
30414
  type: 'object',
30415
+ 'x-route-path': '/unstable_partner/resources',
30416
+ 'x-undocumented': 'Unreleased.',
30388
30417
  },
30389
30418
  type: 'array',
30390
30419
  },
@@ -30399,7 +30428,7 @@ export default {
30399
30428
  400: { description: 'Bad Request' },
30400
30429
  401: { description: 'Unauthorized' },
30401
30430
  },
30402
- security: [{ customer_client_session: [] }],
30431
+ security: [{ client_session_with_customer: [] }],
30403
30432
  summary: '/seam/partner/v1/resources/list',
30404
30433
  tags: [],
30405
30434
  'x-fern-sdk-group-name': ['seam', 'partner', 'v1', 'resources'],
@@ -33084,7 +33113,7 @@ export default {
33084
33113
  { pat_with_workspace: [] },
33085
33114
  { console_session_with_workspace: [] },
33086
33115
  { api_key: [] },
33087
- { customer_client_session: [] },
33116
+ { client_session_with_customer: [] },
33088
33117
  ],
33089
33118
  summary: '/unstable_access_grants/create',
33090
33119
  tags: [],
@@ -33137,7 +33166,7 @@ export default {
33137
33166
  { pat_with_workspace: [] },
33138
33167
  { console_session_with_workspace: [] },
33139
33168
  { api_key: [] },
33140
- { customer_client_session: [] },
33169
+ { client_session_with_customer: [] },
33141
33170
  ],
33142
33171
  summary: '/unstable_access_grants/delete',
33143
33172
  tags: [],
@@ -33276,7 +33305,7 @@ export default {
33276
33305
  { pat_with_workspace: [] },
33277
33306
  { console_session_with_workspace: [] },
33278
33307
  { api_key: [] },
33279
- { customer_client_session: [] },
33308
+ { client_session_with_customer: [] },
33280
33309
  ],
33281
33310
  summary: '/unstable_access_grants/get',
33282
33311
  tags: [],
@@ -33433,7 +33462,7 @@ export default {
33433
33462
  { pat_with_workspace: [] },
33434
33463
  { console_session_with_workspace: [] },
33435
33464
  { api_key: [] },
33436
- { customer_client_session: [] },
33465
+ { client_session_with_customer: [] },
33437
33466
  ],
33438
33467
  summary: '/unstable_access_grants/list',
33439
33468
  tags: [],
@@ -34651,24 +34680,22 @@ export default {
34651
34680
  'x-undocumented': 'Experimental locations.',
34652
34681
  },
34653
34682
  },
34654
- '/unstable_partner/building_blocks/generate_link': {
34683
+ '/unstable_partner/building_blocks/generate_magic_link': {
34655
34684
  post: {
34656
- description: 'Creates a new bridge client session.',
34657
- operationId: 'unstablePartnerBuildingBlocksGenerateLinkPost',
34685
+ description: 'Creates a new building block magic link.',
34686
+ operationId: 'unstablePartnerBuildingBlocksGenerateMagicLinkPost',
34658
34687
  requestBody: {
34659
34688
  content: {
34660
34689
  'application/json': {
34661
34690
  schema: {
34662
34691
  properties: {
34663
- bridge_client_machine_identifier_key: { type: 'string' },
34664
- bridge_client_name: { type: 'string' },
34665
- bridge_client_time_zone: { type: 'string' },
34692
+ building_block_type: {
34693
+ enum: ['connect_account', 'manage_devices'],
34694
+ type: 'string',
34695
+ },
34696
+ customer_key: { type: 'string' },
34666
34697
  },
34667
- required: [
34668
- 'bridge_client_name',
34669
- 'bridge_client_time_zone',
34670
- 'bridge_client_machine_identifier_key',
34671
- ],
34698
+ required: ['building_block_type', 'customer_key'],
34672
34699
  type: 'object',
34673
34700
  },
34674
34701
  },
@@ -34680,142 +34707,10 @@ export default {
34680
34707
  'application/json': {
34681
34708
  schema: {
34682
34709
  properties: {
34683
- bridge_client_session: {
34684
- properties: {
34685
- bridge_client_machine_identifier_key: {
34686
- type: 'string',
34687
- },
34688
- bridge_client_name: { type: 'string' },
34689
- bridge_client_session_id: {
34690
- format: 'uuid',
34691
- type: 'string',
34692
- },
34693
- bridge_client_session_token: { type: 'string' },
34694
- bridge_client_time_zone: { type: 'string' },
34695
- created_at: { format: 'date-time', type: 'string' },
34696
- errors: {
34697
- items: {
34698
- description: 'Error associated with the `bridge_client_session`.',
34699
- discriminator: { propertyName: 'error_code' },
34700
- oneOf: [
34701
- {
34702
- description: "Seam cannot reach the bridge's LAN",
34703
- properties: {
34704
- can_tailscale_proxy_reach_bridge: {
34705
- description: 'Tailscale proxy cannot reach the bridge',
34706
- nullable: true,
34707
- type: 'boolean',
34708
- },
34709
- can_tailscale_proxy_reach_tailscale_network: {
34710
- description: 'Tailscale proxy cannot reach the Tailscale network',
34711
- nullable: true,
34712
- type: 'boolean',
34713
- },
34714
- created_at: {
34715
- format: 'date-time',
34716
- type: 'string',
34717
- },
34718
- error_code: {
34719
- description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
34720
- enum: ['bridge_lan_unreachable'],
34721
- type: 'string',
34722
- },
34723
- is_bridge_socks_server_healthy: {
34724
- description: "Bridge's SOCKS server is unhealthy",
34725
- nullable: true,
34726
- type: 'boolean',
34727
- },
34728
- is_tailscale_proxy_reachable: {
34729
- description: 'Seam cannot reach the tailscale proxy',
34730
- nullable: true,
34731
- type: 'boolean',
34732
- },
34733
- is_tailscale_proxy_socks_server_healthy: {
34734
- description: "Tailscale proxy's SOCKS server is unhealthy",
34735
- nullable: true,
34736
- type: 'boolean',
34737
- },
34738
- message: { type: 'string' },
34739
- },
34740
- required: [
34741
- 'message',
34742
- 'created_at',
34743
- 'error_code',
34744
- 'is_tailscale_proxy_reachable',
34745
- 'is_tailscale_proxy_socks_server_healthy',
34746
- 'can_tailscale_proxy_reach_tailscale_network',
34747
- 'can_tailscale_proxy_reach_bridge',
34748
- 'is_bridge_socks_server_healthy',
34749
- ],
34750
- type: 'object',
34751
- },
34752
- {
34753
- description: 'Bridge has stopped communicating with Seam',
34754
- properties: {
34755
- created_at: {
34756
- format: 'date-time',
34757
- type: 'string',
34758
- },
34759
- error_code: {
34760
- description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
34761
- enum: ['no_communication_from_bridge'],
34762
- type: 'string',
34763
- },
34764
- message: { type: 'string' },
34765
- },
34766
- required: [
34767
- 'message',
34768
- 'created_at',
34769
- 'error_code',
34770
- ],
34771
- type: 'object',
34772
- },
34773
- ],
34774
- },
34775
- type: 'array',
34776
- },
34777
- pairing_code: {
34778
- maxLength: 6,
34779
- minLength: 6,
34780
- type: 'string',
34781
- },
34782
- pairing_code_expires_at: {
34783
- format: 'date-time',
34784
- type: 'string',
34785
- },
34786
- tailscale_auth_key: { nullable: true, type: 'string' },
34787
- tailscale_hostname: { type: 'string' },
34788
- telemetry_token: { nullable: true, type: 'string' },
34789
- telemetry_token_expires_at: {
34790
- format: 'date-time',
34791
- nullable: true,
34792
- type: 'string',
34793
- },
34794
- telemetry_url: { nullable: true, type: 'string' },
34795
- },
34796
- required: [
34797
- 'created_at',
34798
- 'bridge_client_session_id',
34799
- 'bridge_client_session_token',
34800
- 'pairing_code',
34801
- 'pairing_code_expires_at',
34802
- 'tailscale_hostname',
34803
- 'tailscale_auth_key',
34804
- 'bridge_client_name',
34805
- 'bridge_client_time_zone',
34806
- 'bridge_client_machine_identifier_key',
34807
- 'errors',
34808
- 'telemetry_token',
34809
- 'telemetry_token_expires_at',
34810
- 'telemetry_url',
34811
- ],
34812
- type: 'object',
34813
- 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
34814
- 'x-undocumented': 'Seam Bridge Client only.',
34815
- },
34710
+ magic_link: { $ref: '#/components/schemas/magic_link' },
34816
34711
  ok: { type: 'boolean' },
34817
34712
  },
34818
- required: ['bridge_client_session', 'ok'],
34713
+ required: ['magic_link', 'ok'],
34819
34714
  type: 'object',
34820
34715
  },
34821
34716
  },
@@ -34825,13 +34720,13 @@ export default {
34825
34720
  400: { description: 'Bad Request' },
34826
34721
  401: { description: 'Unauthorized' },
34827
34722
  },
34828
- security: [{ certified_client: [] }],
34829
- summary: '/unstable_partner/building_blocks/generate_link',
34723
+ security: [{ api_key: [] }],
34724
+ summary: '/unstable_partner/building_blocks/generate_magic_link',
34830
34725
  tags: [],
34831
34726
  'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
34832
- 'x-fern-sdk-method-name': 'generate_link',
34833
- 'x-fern-sdk-return-value': 'bridge_client_session',
34834
- 'x-response-key': 'bridge_client_session',
34727
+ 'x-fern-sdk-method-name': 'generate_magic_link',
34728
+ 'x-fern-sdk-return-value': 'magic_link',
34729
+ 'x-response-key': 'magic_link',
34835
34730
  'x-title': 'Generate a building block magic link',
34836
34731
  'x-undocumented': 'Experimental partner building blocks.',
34837
34732
  },
@@ -34868,6 +34763,8 @@ export default {
34868
34763
  user_identity_key: { type: 'string' },
34869
34764
  },
34870
34765
  type: 'object',
34766
+ 'x-route-path': '/unstable_partner/resources',
34767
+ 'x-undocumented': 'Unreleased.',
34871
34768
  },
34872
34769
  type: 'array',
34873
34770
  },
@@ -34893,6 +34790,8 @@ export default {
34893
34790
  user_identity_key: { type: 'string' },
34894
34791
  },
34895
34792
  type: 'object',
34793
+ 'x-route-path': '/unstable_partner/resources',
34794
+ 'x-undocumented': 'Unreleased.',
34896
34795
  },
34897
34796
  ],
34898
34797
  },