@seamapi/types 1.660.0 → 1.662.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.
@@ -31988,6 +31988,7 @@ declare const _default: {
31988
31988
  schema: {
31989
31989
  properties: {
31990
31990
  connected_account_id: {
31991
+ description: string;
31991
31992
  format: string;
31992
31993
  type: string;
31993
31994
  };
@@ -32026,14 +32027,22 @@ declare const _default: {
32026
32027
  api_key: never[];
32027
32028
  pat_with_workspace?: never;
32028
32029
  console_session_with_workspace?: never;
32030
+ client_session_with_customer?: never;
32029
32031
  } | {
32030
32032
  pat_with_workspace: never[];
32031
32033
  api_key?: never;
32032
32034
  console_session_with_workspace?: never;
32035
+ client_session_with_customer?: never;
32033
32036
  } | {
32034
32037
  console_session_with_workspace: never[];
32035
32038
  api_key?: never;
32036
32039
  pat_with_workspace?: never;
32040
+ client_session_with_customer?: never;
32041
+ } | {
32042
+ client_session_with_customer: never[];
32043
+ api_key?: never;
32044
+ pat_with_workspace?: never;
32045
+ console_session_with_workspace?: never;
32037
32046
  })[];
32038
32047
  summary: string;
32039
32048
  tags: string[];
@@ -46717,6 +46726,223 @@ declare const _default: {
46717
46726
  'x-undocumented': string;
46718
46727
  };
46719
46728
  };
46729
+ '/seam/customer/v1/spaces/list_reservations': {
46730
+ get: {
46731
+ description: string;
46732
+ operationId: string;
46733
+ parameters: ({
46734
+ in: string;
46735
+ name: string;
46736
+ required: boolean;
46737
+ schema: {
46738
+ default: string;
46739
+ description: string;
46740
+ enum: string[];
46741
+ type: string;
46742
+ };
46743
+ } | {
46744
+ in: string;
46745
+ name: string;
46746
+ required: boolean;
46747
+ schema: {
46748
+ description: string;
46749
+ type: string;
46750
+ default?: never;
46751
+ enum?: never;
46752
+ };
46753
+ })[];
46754
+ responses: {
46755
+ 200: {
46756
+ content: {
46757
+ 'application/json': {
46758
+ schema: {
46759
+ properties: {
46760
+ ok: {
46761
+ type: string;
46762
+ };
46763
+ reservations: {
46764
+ items: {
46765
+ properties: {
46766
+ access_methods: {
46767
+ items: {
46768
+ $ref: string;
46769
+ };
46770
+ type: string;
46771
+ };
46772
+ created_at: {
46773
+ format: string;
46774
+ type: string;
46775
+ };
46776
+ ends_at: {
46777
+ format: string;
46778
+ nullable: boolean;
46779
+ type: string;
46780
+ };
46781
+ guest_name: {
46782
+ nullable: boolean;
46783
+ type: string;
46784
+ };
46785
+ has_issued_access: {
46786
+ type: string;
46787
+ };
46788
+ name: {
46789
+ nullable: boolean;
46790
+ type: string;
46791
+ };
46792
+ reservation_id: {
46793
+ format: string;
46794
+ type: string;
46795
+ };
46796
+ reservation_key: {
46797
+ type: string;
46798
+ };
46799
+ starts_at: {
46800
+ format: string;
46801
+ nullable: boolean;
46802
+ type: string;
46803
+ };
46804
+ };
46805
+ required: string[];
46806
+ type: string;
46807
+ };
46808
+ type: string;
46809
+ };
46810
+ };
46811
+ required: string[];
46812
+ type: string;
46813
+ };
46814
+ };
46815
+ };
46816
+ description: string;
46817
+ };
46818
+ 400: {
46819
+ description: string;
46820
+ };
46821
+ 401: {
46822
+ description: string;
46823
+ };
46824
+ };
46825
+ security: {
46826
+ client_session_with_customer: never[];
46827
+ }[];
46828
+ summary: string;
46829
+ tags: never[];
46830
+ 'x-fern-sdk-group-name': string[];
46831
+ 'x-fern-sdk-method-name': string;
46832
+ 'x-fern-sdk-return-value': string;
46833
+ 'x-response-key': string;
46834
+ 'x-title': string;
46835
+ 'x-undocumented': string;
46836
+ };
46837
+ post: {
46838
+ description: string;
46839
+ operationId: string;
46840
+ requestBody: {
46841
+ content: {
46842
+ 'application/json': {
46843
+ schema: {
46844
+ properties: {
46845
+ issued_status: {
46846
+ default: string;
46847
+ description: string;
46848
+ enum: string[];
46849
+ type: string;
46850
+ };
46851
+ space_key: {
46852
+ description: string;
46853
+ type: string;
46854
+ };
46855
+ };
46856
+ required: string[];
46857
+ type: string;
46858
+ };
46859
+ };
46860
+ };
46861
+ };
46862
+ responses: {
46863
+ 200: {
46864
+ content: {
46865
+ 'application/json': {
46866
+ schema: {
46867
+ properties: {
46868
+ ok: {
46869
+ type: string;
46870
+ };
46871
+ reservations: {
46872
+ items: {
46873
+ properties: {
46874
+ access_methods: {
46875
+ items: {
46876
+ $ref: string;
46877
+ };
46878
+ type: string;
46879
+ };
46880
+ created_at: {
46881
+ format: string;
46882
+ type: string;
46883
+ };
46884
+ ends_at: {
46885
+ format: string;
46886
+ nullable: boolean;
46887
+ type: string;
46888
+ };
46889
+ guest_name: {
46890
+ nullable: boolean;
46891
+ type: string;
46892
+ };
46893
+ has_issued_access: {
46894
+ type: string;
46895
+ };
46896
+ name: {
46897
+ nullable: boolean;
46898
+ type: string;
46899
+ };
46900
+ reservation_id: {
46901
+ format: string;
46902
+ type: string;
46903
+ };
46904
+ reservation_key: {
46905
+ type: string;
46906
+ };
46907
+ starts_at: {
46908
+ format: string;
46909
+ nullable: boolean;
46910
+ type: string;
46911
+ };
46912
+ };
46913
+ required: string[];
46914
+ type: string;
46915
+ };
46916
+ type: string;
46917
+ };
46918
+ };
46919
+ required: string[];
46920
+ type: string;
46921
+ };
46922
+ };
46923
+ };
46924
+ description: string;
46925
+ };
46926
+ 400: {
46927
+ description: string;
46928
+ };
46929
+ 401: {
46930
+ description: string;
46931
+ };
46932
+ };
46933
+ security: {
46934
+ client_session_with_customer: never[];
46935
+ }[];
46936
+ summary: string;
46937
+ tags: never[];
46938
+ 'x-fern-sdk-group-name': string[];
46939
+ 'x-fern-sdk-method-name': string;
46940
+ 'x-fern-sdk-return-value': string;
46941
+ 'x-response-key': string;
46942
+ 'x-title': string;
46943
+ 'x-undocumented': string;
46944
+ };
46945
+ };
46720
46946
  '/seam/customer/v1/staff_members/get': {
46721
46947
  get: {
46722
46948
  description: string;
@@ -37314,7 +37314,11 @@ export default {
37314
37314
  'application/json': {
37315
37315
  schema: {
37316
37316
  properties: {
37317
- connected_account_id: { format: 'uuid', type: 'string' },
37317
+ connected_account_id: {
37318
+ description: 'ID of the connected account you want to simulate as disconnected.',
37319
+ format: 'uuid',
37320
+ type: 'string',
37321
+ },
37318
37322
  },
37319
37323
  required: ['connected_account_id'],
37320
37324
  type: 'object',
@@ -37342,6 +37346,7 @@ export default {
37342
37346
  { api_key: [] },
37343
37347
  { pat_with_workspace: [] },
37344
37348
  { console_session_with_workspace: [] },
37349
+ { client_session_with_customer: [] },
37345
37350
  ],
37346
37351
  summary: '/connected_accounts/simulate/disconnect',
37347
37352
  tags: ['/connected_accounts'],
@@ -51312,6 +51317,196 @@ export default {
51312
51317
  'x-undocumented': 'Only used internally.',
51313
51318
  },
51314
51319
  },
51320
+ '/seam/customer/v1/spaces/list_reservations': {
51321
+ get: {
51322
+ description: 'Returns a list of existing reservations for a specific space.\nIf issued_status is "issued", only reservations that have access methods issued will be returned.\nIf issued_status is "pending", only reservations that do not have access methods issued will be returned.\nIf issued_status is not provided, only reservations that do not have access methods issued will be returned.',
51323
+ operationId: 'seamCustomerV1SpacesListReservationsGet',
51324
+ parameters: [
51325
+ {
51326
+ in: 'query',
51327
+ name: 'issued_status',
51328
+ required: false,
51329
+ schema: {
51330
+ default: 'pending',
51331
+ description: 'Filter reservations by issued status.',
51332
+ enum: ['issued', 'pending'],
51333
+ type: 'string',
51334
+ },
51335
+ },
51336
+ {
51337
+ in: 'query',
51338
+ name: 'space_key',
51339
+ required: true,
51340
+ schema: {
51341
+ description: 'Filter reservations by space key.',
51342
+ type: 'string',
51343
+ },
51344
+ },
51345
+ ],
51346
+ responses: {
51347
+ 200: {
51348
+ content: {
51349
+ 'application/json': {
51350
+ schema: {
51351
+ properties: {
51352
+ ok: { type: 'boolean' },
51353
+ reservations: {
51354
+ items: {
51355
+ properties: {
51356
+ access_methods: {
51357
+ items: {
51358
+ $ref: '#/components/schemas/access_method',
51359
+ },
51360
+ type: 'array',
51361
+ },
51362
+ created_at: { format: 'date-time', type: 'string' },
51363
+ ends_at: {
51364
+ format: 'date-time',
51365
+ nullable: true,
51366
+ type: 'string',
51367
+ },
51368
+ guest_name: { nullable: true, type: 'string' },
51369
+ has_issued_access: { type: 'boolean' },
51370
+ name: { nullable: true, type: 'string' },
51371
+ reservation_id: { format: 'uuid', type: 'string' },
51372
+ reservation_key: { type: 'string' },
51373
+ starts_at: {
51374
+ format: 'date-time',
51375
+ nullable: true,
51376
+ type: 'string',
51377
+ },
51378
+ },
51379
+ required: [
51380
+ 'reservation_id',
51381
+ 'reservation_key',
51382
+ 'name',
51383
+ 'starts_at',
51384
+ 'ends_at',
51385
+ 'created_at',
51386
+ 'guest_name',
51387
+ 'has_issued_access',
51388
+ 'access_methods',
51389
+ ],
51390
+ type: 'object',
51391
+ },
51392
+ type: 'array',
51393
+ },
51394
+ },
51395
+ required: ['reservations', 'ok'],
51396
+ type: 'object',
51397
+ },
51398
+ },
51399
+ },
51400
+ description: 'OK',
51401
+ },
51402
+ 400: { description: 'Bad Request' },
51403
+ 401: { description: 'Unauthorized' },
51404
+ },
51405
+ security: [{ client_session_with_customer: [] }],
51406
+ summary: '/seam/customer/v1/spaces/list_reservations',
51407
+ tags: [],
51408
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
51409
+ 'x-fern-sdk-method-name': 'list_reservations',
51410
+ 'x-fern-sdk-return-value': 'reservations',
51411
+ 'x-response-key': 'reservations',
51412
+ 'x-title': 'List Reservations for Space',
51413
+ 'x-undocumented': 'Internal endpoint for customer portals.',
51414
+ },
51415
+ post: {
51416
+ description: 'Returns a list of existing reservations for a specific space.\nIf issued_status is "issued", only reservations that have access methods issued will be returned.\nIf issued_status is "pending", only reservations that do not have access methods issued will be returned.\nIf issued_status is not provided, only reservations that do not have access methods issued will be returned.',
51417
+ operationId: 'seamCustomerV1SpacesListReservationsPost',
51418
+ requestBody: {
51419
+ content: {
51420
+ 'application/json': {
51421
+ schema: {
51422
+ properties: {
51423
+ issued_status: {
51424
+ default: 'pending',
51425
+ description: 'Filter reservations by issued status.',
51426
+ enum: ['issued', 'pending'],
51427
+ type: 'string',
51428
+ },
51429
+ space_key: {
51430
+ description: 'Filter reservations by space key.',
51431
+ type: 'string',
51432
+ },
51433
+ },
51434
+ required: ['space_key'],
51435
+ type: 'object',
51436
+ },
51437
+ },
51438
+ },
51439
+ },
51440
+ responses: {
51441
+ 200: {
51442
+ content: {
51443
+ 'application/json': {
51444
+ schema: {
51445
+ properties: {
51446
+ ok: { type: 'boolean' },
51447
+ reservations: {
51448
+ items: {
51449
+ properties: {
51450
+ access_methods: {
51451
+ items: {
51452
+ $ref: '#/components/schemas/access_method',
51453
+ },
51454
+ type: 'array',
51455
+ },
51456
+ created_at: { format: 'date-time', type: 'string' },
51457
+ ends_at: {
51458
+ format: 'date-time',
51459
+ nullable: true,
51460
+ type: 'string',
51461
+ },
51462
+ guest_name: { nullable: true, type: 'string' },
51463
+ has_issued_access: { type: 'boolean' },
51464
+ name: { nullable: true, type: 'string' },
51465
+ reservation_id: { format: 'uuid', type: 'string' },
51466
+ reservation_key: { type: 'string' },
51467
+ starts_at: {
51468
+ format: 'date-time',
51469
+ nullable: true,
51470
+ type: 'string',
51471
+ },
51472
+ },
51473
+ required: [
51474
+ 'reservation_id',
51475
+ 'reservation_key',
51476
+ 'name',
51477
+ 'starts_at',
51478
+ 'ends_at',
51479
+ 'created_at',
51480
+ 'guest_name',
51481
+ 'has_issued_access',
51482
+ 'access_methods',
51483
+ ],
51484
+ type: 'object',
51485
+ },
51486
+ type: 'array',
51487
+ },
51488
+ },
51489
+ required: ['reservations', 'ok'],
51490
+ type: 'object',
51491
+ },
51492
+ },
51493
+ },
51494
+ description: 'OK',
51495
+ },
51496
+ 400: { description: 'Bad Request' },
51497
+ 401: { description: 'Unauthorized' },
51498
+ },
51499
+ security: [{ client_session_with_customer: [] }],
51500
+ summary: '/seam/customer/v1/spaces/list_reservations',
51501
+ tags: [],
51502
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
51503
+ 'x-fern-sdk-method-name': 'list_reservations',
51504
+ 'x-fern-sdk-return-value': 'reservations',
51505
+ 'x-response-key': 'reservations',
51506
+ 'x-title': 'List Reservations for Space',
51507
+ 'x-undocumented': 'Internal endpoint for customer portals.',
51508
+ },
51509
+ },
51315
51510
  '/seam/customer/v1/staff_members/get': {
51316
51511
  get: {
51317
51512
  description: 'Returns a staff member for a specific customer.',