@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.
@@ -84673,6 +84673,7 @@ declare const _default: {
84673
84673
  schema: {
84674
84674
  properties: {
84675
84675
  connected_account_id: {
84676
+ description: string;
84676
84677
  format: string;
84677
84678
  type: string;
84678
84679
  };
@@ -84711,14 +84712,22 @@ declare const _default: {
84711
84712
  api_key: never[];
84712
84713
  pat_with_workspace?: never;
84713
84714
  console_session_with_workspace?: never;
84715
+ client_session_with_customer?: never;
84714
84716
  } | {
84715
84717
  pat_with_workspace: never[];
84716
84718
  api_key?: never;
84717
84719
  console_session_with_workspace?: never;
84720
+ client_session_with_customer?: never;
84718
84721
  } | {
84719
84722
  console_session_with_workspace: never[];
84720
84723
  api_key?: never;
84721
84724
  pat_with_workspace?: never;
84725
+ client_session_with_customer?: never;
84726
+ } | {
84727
+ client_session_with_customer: never[];
84728
+ api_key?: never;
84729
+ pat_with_workspace?: never;
84730
+ console_session_with_workspace?: never;
84722
84731
  })[];
84723
84732
  summary: string;
84724
84733
  tags: string[];
@@ -99402,6 +99411,223 @@ declare const _default: {
99402
99411
  'x-undocumented': string;
99403
99412
  };
99404
99413
  };
99414
+ '/seam/customer/v1/spaces/list_reservations': {
99415
+ get: {
99416
+ description: string;
99417
+ operationId: string;
99418
+ parameters: ({
99419
+ in: string;
99420
+ name: string;
99421
+ required: boolean;
99422
+ schema: {
99423
+ default: string;
99424
+ description: string;
99425
+ enum: string[];
99426
+ type: string;
99427
+ };
99428
+ } | {
99429
+ in: string;
99430
+ name: string;
99431
+ required: boolean;
99432
+ schema: {
99433
+ description: string;
99434
+ type: string;
99435
+ default?: never;
99436
+ enum?: never;
99437
+ };
99438
+ })[];
99439
+ responses: {
99440
+ 200: {
99441
+ content: {
99442
+ 'application/json': {
99443
+ schema: {
99444
+ properties: {
99445
+ ok: {
99446
+ type: string;
99447
+ };
99448
+ reservations: {
99449
+ items: {
99450
+ properties: {
99451
+ access_methods: {
99452
+ items: {
99453
+ $ref: string;
99454
+ };
99455
+ type: string;
99456
+ };
99457
+ created_at: {
99458
+ format: string;
99459
+ type: string;
99460
+ };
99461
+ ends_at: {
99462
+ format: string;
99463
+ nullable: boolean;
99464
+ type: string;
99465
+ };
99466
+ guest_name: {
99467
+ nullable: boolean;
99468
+ type: string;
99469
+ };
99470
+ has_issued_access: {
99471
+ type: string;
99472
+ };
99473
+ name: {
99474
+ nullable: boolean;
99475
+ type: string;
99476
+ };
99477
+ reservation_id: {
99478
+ format: string;
99479
+ type: string;
99480
+ };
99481
+ reservation_key: {
99482
+ type: string;
99483
+ };
99484
+ starts_at: {
99485
+ format: string;
99486
+ nullable: boolean;
99487
+ type: string;
99488
+ };
99489
+ };
99490
+ required: string[];
99491
+ type: string;
99492
+ };
99493
+ type: string;
99494
+ };
99495
+ };
99496
+ required: string[];
99497
+ type: string;
99498
+ };
99499
+ };
99500
+ };
99501
+ description: string;
99502
+ };
99503
+ 400: {
99504
+ description: string;
99505
+ };
99506
+ 401: {
99507
+ description: string;
99508
+ };
99509
+ };
99510
+ security: {
99511
+ client_session_with_customer: never[];
99512
+ }[];
99513
+ summary: string;
99514
+ tags: never[];
99515
+ 'x-fern-sdk-group-name': string[];
99516
+ 'x-fern-sdk-method-name': string;
99517
+ 'x-fern-sdk-return-value': string;
99518
+ 'x-response-key': string;
99519
+ 'x-title': string;
99520
+ 'x-undocumented': string;
99521
+ };
99522
+ post: {
99523
+ description: string;
99524
+ operationId: string;
99525
+ requestBody: {
99526
+ content: {
99527
+ 'application/json': {
99528
+ schema: {
99529
+ properties: {
99530
+ issued_status: {
99531
+ default: string;
99532
+ description: string;
99533
+ enum: string[];
99534
+ type: string;
99535
+ };
99536
+ space_key: {
99537
+ description: string;
99538
+ type: string;
99539
+ };
99540
+ };
99541
+ required: string[];
99542
+ type: string;
99543
+ };
99544
+ };
99545
+ };
99546
+ };
99547
+ responses: {
99548
+ 200: {
99549
+ content: {
99550
+ 'application/json': {
99551
+ schema: {
99552
+ properties: {
99553
+ ok: {
99554
+ type: string;
99555
+ };
99556
+ reservations: {
99557
+ items: {
99558
+ properties: {
99559
+ access_methods: {
99560
+ items: {
99561
+ $ref: string;
99562
+ };
99563
+ type: string;
99564
+ };
99565
+ created_at: {
99566
+ format: string;
99567
+ type: string;
99568
+ };
99569
+ ends_at: {
99570
+ format: string;
99571
+ nullable: boolean;
99572
+ type: string;
99573
+ };
99574
+ guest_name: {
99575
+ nullable: boolean;
99576
+ type: string;
99577
+ };
99578
+ has_issued_access: {
99579
+ type: string;
99580
+ };
99581
+ name: {
99582
+ nullable: boolean;
99583
+ type: string;
99584
+ };
99585
+ reservation_id: {
99586
+ format: string;
99587
+ type: string;
99588
+ };
99589
+ reservation_key: {
99590
+ type: string;
99591
+ };
99592
+ starts_at: {
99593
+ format: string;
99594
+ nullable: boolean;
99595
+ type: string;
99596
+ };
99597
+ };
99598
+ required: string[];
99599
+ type: string;
99600
+ };
99601
+ type: string;
99602
+ };
99603
+ };
99604
+ required: string[];
99605
+ type: string;
99606
+ };
99607
+ };
99608
+ };
99609
+ description: string;
99610
+ };
99611
+ 400: {
99612
+ description: string;
99613
+ };
99614
+ 401: {
99615
+ description: string;
99616
+ };
99617
+ };
99618
+ security: {
99619
+ client_session_with_customer: never[];
99620
+ }[];
99621
+ summary: string;
99622
+ tags: never[];
99623
+ 'x-fern-sdk-group-name': string[];
99624
+ 'x-fern-sdk-method-name': string;
99625
+ 'x-fern-sdk-return-value': string;
99626
+ 'x-response-key': string;
99627
+ 'x-title': string;
99628
+ 'x-undocumented': string;
99629
+ };
99630
+ };
99405
99631
  '/seam/customer/v1/staff_members/get': {
99406
99632
  get: {
99407
99633
  description: string;
@@ -138741,6 +138967,7 @@ type Routes = {
138741
138967
  method: 'POST';
138742
138968
  queryParams: {};
138743
138969
  jsonBody: {
138970
+ /** ID of the connected account you want to simulate as disconnected. */
138744
138971
  connected_account_id: string;
138745
138972
  };
138746
138973
  commonParams: {};
@@ -167006,6 +167233,37 @@ type Routes = {
167006
167233
  };
167007
167234
  maxDuration: undefined;
167008
167235
  };
167236
+ '/seam/customer/v1/spaces/list_reservations': {
167237
+ route: '/seam/customer/v1/spaces/list_reservations';
167238
+ method: 'GET' | 'POST';
167239
+ queryParams: {};
167240
+ jsonBody: {};
167241
+ commonParams: {
167242
+ /** Filter reservations by issued status. */
167243
+ issued_status?: ('issued' | 'pending') | undefined;
167244
+ /** Filter reservations by space key. */
167245
+ space_key: string;
167246
+ };
167247
+ formData: {};
167248
+ jsonResponse: {
167249
+ reservations: {
167250
+ reservation_id: string;
167251
+ reservation_key: string;
167252
+ name: string | null;
167253
+ starts_at: string | null;
167254
+ ends_at: string | null;
167255
+ created_at: string;
167256
+ guest_name: string | null;
167257
+ has_issued_access: boolean;
167258
+ access_methods: {
167259
+ access_method_id: string;
167260
+ mode: string;
167261
+ is_issued: boolean;
167262
+ }[];
167263
+ }[];
167264
+ };
167265
+ maxDuration: undefined;
167266
+ };
167009
167267
  '/seam/customer/v1/staff_members/get': {
167010
167268
  route: '/seam/customer/v1/staff_members/get';
167011
167269
  method: 'GET' | 'POST';
package/dist/index.cjs CHANGED
@@ -43162,7 +43162,11 @@ var openapi_default = {
43162
43162
  "application/json": {
43163
43163
  schema: {
43164
43164
  properties: {
43165
- connected_account_id: { format: "uuid", type: "string" }
43165
+ connected_account_id: {
43166
+ description: "ID of the connected account you want to simulate as disconnected.",
43167
+ format: "uuid",
43168
+ type: "string"
43169
+ }
43166
43170
  },
43167
43171
  required: ["connected_account_id"],
43168
43172
  type: "object"
@@ -43189,7 +43193,8 @@ var openapi_default = {
43189
43193
  security: [
43190
43194
  { api_key: [] },
43191
43195
  { pat_with_workspace: [] },
43192
- { console_session_with_workspace: [] }
43196
+ { console_session_with_workspace: [] },
43197
+ { client_session_with_customer: [] }
43193
43198
  ],
43194
43199
  summary: "/connected_accounts/simulate/disconnect",
43195
43200
  tags: ["/connected_accounts"],
@@ -57160,6 +57165,196 @@ var openapi_default = {
57160
57165
  "x-undocumented": "Only used internally."
57161
57166
  }
57162
57167
  },
57168
+ "/seam/customer/v1/spaces/list_reservations": {
57169
+ get: {
57170
+ 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.',
57171
+ operationId: "seamCustomerV1SpacesListReservationsGet",
57172
+ parameters: [
57173
+ {
57174
+ in: "query",
57175
+ name: "issued_status",
57176
+ required: false,
57177
+ schema: {
57178
+ default: "pending",
57179
+ description: "Filter reservations by issued status.",
57180
+ enum: ["issued", "pending"],
57181
+ type: "string"
57182
+ }
57183
+ },
57184
+ {
57185
+ in: "query",
57186
+ name: "space_key",
57187
+ required: true,
57188
+ schema: {
57189
+ description: "Filter reservations by space key.",
57190
+ type: "string"
57191
+ }
57192
+ }
57193
+ ],
57194
+ responses: {
57195
+ 200: {
57196
+ content: {
57197
+ "application/json": {
57198
+ schema: {
57199
+ properties: {
57200
+ ok: { type: "boolean" },
57201
+ reservations: {
57202
+ items: {
57203
+ properties: {
57204
+ access_methods: {
57205
+ items: {
57206
+ $ref: "#/components/schemas/access_method"
57207
+ },
57208
+ type: "array"
57209
+ },
57210
+ created_at: { format: "date-time", type: "string" },
57211
+ ends_at: {
57212
+ format: "date-time",
57213
+ nullable: true,
57214
+ type: "string"
57215
+ },
57216
+ guest_name: { nullable: true, type: "string" },
57217
+ has_issued_access: { type: "boolean" },
57218
+ name: { nullable: true, type: "string" },
57219
+ reservation_id: { format: "uuid", type: "string" },
57220
+ reservation_key: { type: "string" },
57221
+ starts_at: {
57222
+ format: "date-time",
57223
+ nullable: true,
57224
+ type: "string"
57225
+ }
57226
+ },
57227
+ required: [
57228
+ "reservation_id",
57229
+ "reservation_key",
57230
+ "name",
57231
+ "starts_at",
57232
+ "ends_at",
57233
+ "created_at",
57234
+ "guest_name",
57235
+ "has_issued_access",
57236
+ "access_methods"
57237
+ ],
57238
+ type: "object"
57239
+ },
57240
+ type: "array"
57241
+ }
57242
+ },
57243
+ required: ["reservations", "ok"],
57244
+ type: "object"
57245
+ }
57246
+ }
57247
+ },
57248
+ description: "OK"
57249
+ },
57250
+ 400: { description: "Bad Request" },
57251
+ 401: { description: "Unauthorized" }
57252
+ },
57253
+ security: [{ client_session_with_customer: [] }],
57254
+ summary: "/seam/customer/v1/spaces/list_reservations",
57255
+ tags: [],
57256
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
57257
+ "x-fern-sdk-method-name": "list_reservations",
57258
+ "x-fern-sdk-return-value": "reservations",
57259
+ "x-response-key": "reservations",
57260
+ "x-title": "List Reservations for Space",
57261
+ "x-undocumented": "Internal endpoint for customer portals."
57262
+ },
57263
+ post: {
57264
+ 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.',
57265
+ operationId: "seamCustomerV1SpacesListReservationsPost",
57266
+ requestBody: {
57267
+ content: {
57268
+ "application/json": {
57269
+ schema: {
57270
+ properties: {
57271
+ issued_status: {
57272
+ default: "pending",
57273
+ description: "Filter reservations by issued status.",
57274
+ enum: ["issued", "pending"],
57275
+ type: "string"
57276
+ },
57277
+ space_key: {
57278
+ description: "Filter reservations by space key.",
57279
+ type: "string"
57280
+ }
57281
+ },
57282
+ required: ["space_key"],
57283
+ type: "object"
57284
+ }
57285
+ }
57286
+ }
57287
+ },
57288
+ responses: {
57289
+ 200: {
57290
+ content: {
57291
+ "application/json": {
57292
+ schema: {
57293
+ properties: {
57294
+ ok: { type: "boolean" },
57295
+ reservations: {
57296
+ items: {
57297
+ properties: {
57298
+ access_methods: {
57299
+ items: {
57300
+ $ref: "#/components/schemas/access_method"
57301
+ },
57302
+ type: "array"
57303
+ },
57304
+ created_at: { format: "date-time", type: "string" },
57305
+ ends_at: {
57306
+ format: "date-time",
57307
+ nullable: true,
57308
+ type: "string"
57309
+ },
57310
+ guest_name: { nullable: true, type: "string" },
57311
+ has_issued_access: { type: "boolean" },
57312
+ name: { nullable: true, type: "string" },
57313
+ reservation_id: { format: "uuid", type: "string" },
57314
+ reservation_key: { type: "string" },
57315
+ starts_at: {
57316
+ format: "date-time",
57317
+ nullable: true,
57318
+ type: "string"
57319
+ }
57320
+ },
57321
+ required: [
57322
+ "reservation_id",
57323
+ "reservation_key",
57324
+ "name",
57325
+ "starts_at",
57326
+ "ends_at",
57327
+ "created_at",
57328
+ "guest_name",
57329
+ "has_issued_access",
57330
+ "access_methods"
57331
+ ],
57332
+ type: "object"
57333
+ },
57334
+ type: "array"
57335
+ }
57336
+ },
57337
+ required: ["reservations", "ok"],
57338
+ type: "object"
57339
+ }
57340
+ }
57341
+ },
57342
+ description: "OK"
57343
+ },
57344
+ 400: { description: "Bad Request" },
57345
+ 401: { description: "Unauthorized" }
57346
+ },
57347
+ security: [{ client_session_with_customer: [] }],
57348
+ summary: "/seam/customer/v1/spaces/list_reservations",
57349
+ tags: [],
57350
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
57351
+ "x-fern-sdk-method-name": "list_reservations",
57352
+ "x-fern-sdk-return-value": "reservations",
57353
+ "x-response-key": "reservations",
57354
+ "x-title": "List Reservations for Space",
57355
+ "x-undocumented": "Internal endpoint for customer portals."
57356
+ }
57357
+ },
57163
57358
  "/seam/customer/v1/staff_members/get": {
57164
57359
  get: {
57165
57360
  description: "Returns a staff member for a specific customer.",