@seamapi/types 1.661.0 → 1.663.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.
package/dist/connect.cjs CHANGED
@@ -2635,10 +2635,11 @@ var acs_entrance_salto_space_metadata = zod.z.object({
2635
2635
  room_description: zod.z.string().describe("Description of the room in the Salto Space access system.")
2636
2636
  }).partial().describe("Salto Space-specific metadata associated with the entrance.");
2637
2637
  var acs_user_salto_space_metadata = zod.z.object({
2638
- audit_openings: zod.z.boolean().optional().describe(
2638
+ user_id: zod.z.string().describe("User ID in the Salto Space access system."),
2639
+ audit_openings: zod.z.boolean().describe(
2639
2640
  "Indicates whether AuditOpenings is enabled for the user in the Salto Space access system."
2640
2641
  )
2641
- }).describe(
2642
+ }).partial().describe(
2642
2643
  "Salto Space-specific metadata associated with the access system user."
2643
2644
  );
2644
2645
  var acs_entrance_visionline_metadata = zod.z.object({
@@ -9493,6 +9494,10 @@ var openapi_default = {
9493
9494
  audit_openings: {
9494
9495
  description: "Indicates whether AuditOpenings is enabled for the user in the Salto Space access system.",
9495
9496
  type: "boolean"
9497
+ },
9498
+ user_id: {
9499
+ description: "User ID in the Salto Space access system.",
9500
+ type: "string"
9496
9501
  }
9497
9502
  },
9498
9503
  type: "object"
@@ -27656,6 +27661,10 @@ var openapi_default = {
27656
27661
  audit_openings: {
27657
27662
  description: "Indicates whether AuditOpenings is enabled for the user in the Salto Space access system.",
27658
27663
  type: "boolean"
27664
+ },
27665
+ user_id: {
27666
+ description: "User ID in the Salto Space access system.",
27667
+ type: "string"
27659
27668
  }
27660
27669
  },
27661
27670
  type: "object"
@@ -57165,6 +57174,196 @@ var openapi_default = {
57165
57174
  "x-undocumented": "Only used internally."
57166
57175
  }
57167
57176
  },
57177
+ "/seam/customer/v1/spaces/list_reservations": {
57178
+ get: {
57179
+ 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.',
57180
+ operationId: "seamCustomerV1SpacesListReservationsGet",
57181
+ parameters: [
57182
+ {
57183
+ in: "query",
57184
+ name: "issued_status",
57185
+ required: false,
57186
+ schema: {
57187
+ default: "pending",
57188
+ description: "Filter reservations by issued status.",
57189
+ enum: ["issued", "pending"],
57190
+ type: "string"
57191
+ }
57192
+ },
57193
+ {
57194
+ in: "query",
57195
+ name: "space_key",
57196
+ required: true,
57197
+ schema: {
57198
+ description: "Filter reservations by space key.",
57199
+ type: "string"
57200
+ }
57201
+ }
57202
+ ],
57203
+ responses: {
57204
+ 200: {
57205
+ content: {
57206
+ "application/json": {
57207
+ schema: {
57208
+ properties: {
57209
+ ok: { type: "boolean" },
57210
+ reservations: {
57211
+ items: {
57212
+ properties: {
57213
+ access_methods: {
57214
+ items: {
57215
+ $ref: "#/components/schemas/access_method"
57216
+ },
57217
+ type: "array"
57218
+ },
57219
+ created_at: { format: "date-time", type: "string" },
57220
+ ends_at: {
57221
+ format: "date-time",
57222
+ nullable: true,
57223
+ type: "string"
57224
+ },
57225
+ guest_name: { nullable: true, type: "string" },
57226
+ has_issued_access: { type: "boolean" },
57227
+ name: { nullable: true, type: "string" },
57228
+ reservation_id: { format: "uuid", type: "string" },
57229
+ reservation_key: { type: "string" },
57230
+ starts_at: {
57231
+ format: "date-time",
57232
+ nullable: true,
57233
+ type: "string"
57234
+ }
57235
+ },
57236
+ required: [
57237
+ "reservation_id",
57238
+ "reservation_key",
57239
+ "name",
57240
+ "starts_at",
57241
+ "ends_at",
57242
+ "created_at",
57243
+ "guest_name",
57244
+ "has_issued_access",
57245
+ "access_methods"
57246
+ ],
57247
+ type: "object"
57248
+ },
57249
+ type: "array"
57250
+ }
57251
+ },
57252
+ required: ["reservations", "ok"],
57253
+ type: "object"
57254
+ }
57255
+ }
57256
+ },
57257
+ description: "OK"
57258
+ },
57259
+ 400: { description: "Bad Request" },
57260
+ 401: { description: "Unauthorized" }
57261
+ },
57262
+ security: [{ client_session_with_customer: [] }],
57263
+ summary: "/seam/customer/v1/spaces/list_reservations",
57264
+ tags: [],
57265
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
57266
+ "x-fern-sdk-method-name": "list_reservations",
57267
+ "x-fern-sdk-return-value": "reservations",
57268
+ "x-response-key": "reservations",
57269
+ "x-title": "List Reservations for Space",
57270
+ "x-undocumented": "Internal endpoint for customer portals."
57271
+ },
57272
+ post: {
57273
+ 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.',
57274
+ operationId: "seamCustomerV1SpacesListReservationsPost",
57275
+ requestBody: {
57276
+ content: {
57277
+ "application/json": {
57278
+ schema: {
57279
+ properties: {
57280
+ issued_status: {
57281
+ default: "pending",
57282
+ description: "Filter reservations by issued status.",
57283
+ enum: ["issued", "pending"],
57284
+ type: "string"
57285
+ },
57286
+ space_key: {
57287
+ description: "Filter reservations by space key.",
57288
+ type: "string"
57289
+ }
57290
+ },
57291
+ required: ["space_key"],
57292
+ type: "object"
57293
+ }
57294
+ }
57295
+ }
57296
+ },
57297
+ responses: {
57298
+ 200: {
57299
+ content: {
57300
+ "application/json": {
57301
+ schema: {
57302
+ properties: {
57303
+ ok: { type: "boolean" },
57304
+ reservations: {
57305
+ items: {
57306
+ properties: {
57307
+ access_methods: {
57308
+ items: {
57309
+ $ref: "#/components/schemas/access_method"
57310
+ },
57311
+ type: "array"
57312
+ },
57313
+ created_at: { format: "date-time", type: "string" },
57314
+ ends_at: {
57315
+ format: "date-time",
57316
+ nullable: true,
57317
+ type: "string"
57318
+ },
57319
+ guest_name: { nullable: true, type: "string" },
57320
+ has_issued_access: { type: "boolean" },
57321
+ name: { nullable: true, type: "string" },
57322
+ reservation_id: { format: "uuid", type: "string" },
57323
+ reservation_key: { type: "string" },
57324
+ starts_at: {
57325
+ format: "date-time",
57326
+ nullable: true,
57327
+ type: "string"
57328
+ }
57329
+ },
57330
+ required: [
57331
+ "reservation_id",
57332
+ "reservation_key",
57333
+ "name",
57334
+ "starts_at",
57335
+ "ends_at",
57336
+ "created_at",
57337
+ "guest_name",
57338
+ "has_issued_access",
57339
+ "access_methods"
57340
+ ],
57341
+ type: "object"
57342
+ },
57343
+ type: "array"
57344
+ }
57345
+ },
57346
+ required: ["reservations", "ok"],
57347
+ type: "object"
57348
+ }
57349
+ }
57350
+ },
57351
+ description: "OK"
57352
+ },
57353
+ 400: { description: "Bad Request" },
57354
+ 401: { description: "Unauthorized" }
57355
+ },
57356
+ security: [{ client_session_with_customer: [] }],
57357
+ summary: "/seam/customer/v1/spaces/list_reservations",
57358
+ tags: [],
57359
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
57360
+ "x-fern-sdk-method-name": "list_reservations",
57361
+ "x-fern-sdk-return-value": "reservations",
57362
+ "x-response-key": "reservations",
57363
+ "x-title": "List Reservations for Space",
57364
+ "x-undocumented": "Internal endpoint for customer portals."
57365
+ }
57366
+ },
57168
57367
  "/seam/customer/v1/staff_members/get": {
57169
57368
  get: {
57170
57369
  description: "Returns a staff member for a specific customer.",