@izak0s/spacebring-api 9.6.0 → 9.8.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/index.d.cts CHANGED
@@ -9095,7 +9095,7 @@ interface components {
9095
9095
  unitAmount: number;
9096
9096
  }[];
9097
9097
  };
9098
- /** @description Whether day passes are enabled. */
9098
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes. */
9099
9099
  dayPassesEnabled?: boolean;
9100
9100
  /** @description Description of the resource. */
9101
9101
  description: string;
@@ -9178,6 +9178,13 @@ interface components {
9178
9178
  * @description ID of the network.
9179
9179
  */
9180
9180
  networkRef: string;
9181
+ /** @description Outlook Calendar integration settings. */
9182
+ outlookCalendar?: {
9183
+ /** @description Outlook calendar id. */
9184
+ id: string;
9185
+ /** @description Whether two-way sync is enabled. */
9186
+ twoWaySyncEnabled: boolean;
9187
+ };
9181
9188
  /**
9182
9189
  * Format: uuid
9183
9190
  * @description Parent resource id when this is a child resource.
@@ -9719,7 +9726,7 @@ interface components {
9719
9726
  unitAmount: number;
9720
9727
  }[];
9721
9728
  };
9722
- /** @description Whether day passes are enabled. */
9729
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes. */
9723
9730
  dayPassesEnabled?: boolean;
9724
9731
  /** @description Description of the resource. */
9725
9732
  description: string;
@@ -9802,6 +9809,13 @@ interface components {
9802
9809
  * @description ID of the network.
9803
9810
  */
9804
9811
  networkRef: string;
9812
+ /** @description Outlook Calendar integration settings. */
9813
+ outlookCalendar?: {
9814
+ /** @description Outlook calendar id. */
9815
+ id: string;
9816
+ /** @description Whether two-way sync is enabled. */
9817
+ twoWaySyncEnabled: boolean;
9818
+ };
9805
9819
  /**
9806
9820
  * Format: uuid
9807
9821
  * @description Parent resource id when this is a child resource.
@@ -11392,11 +11406,20 @@ interface components {
11392
11406
  };
11393
11407
  /** @description Set when `type` is `member`. */
11394
11408
  member?: Record<string, never>;
11409
+ /** @description Set when `type` is `outlookCalendar`. */
11410
+ outlookCalendar?: {
11411
+ /** @description ID of the Outlook calendar the event was imported from. */
11412
+ calendarId?: string;
11413
+ /** @description ID of the Outlook event the booking mirrors. */
11414
+ eventId?: string;
11415
+ /** @description Link to the Outlook event. */
11416
+ eventLink?: string;
11417
+ };
11395
11418
  /**
11396
- * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar import, or a direct API integration. The matching property below carries the details.
11419
+ * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar or Outlook Calendar import, or a direct API integration. The matching property below carries the details.
11397
11420
  * @enum {string}
11398
11421
  */
11399
- type: "api" | "app" | "googleCalendar" | "mcp" | "member";
11422
+ type: "api" | "app" | "googleCalendar" | "mcp" | "member" | "outlookCalendar";
11400
11423
  };
11401
11424
  /**
11402
11425
  * Format: date-time
@@ -12445,11 +12468,20 @@ interface components {
12445
12468
  };
12446
12469
  /** @description Set when `type` is `member`. */
12447
12470
  member?: Record<string, never>;
12471
+ /** @description Set when `type` is `outlookCalendar`. */
12472
+ outlookCalendar?: {
12473
+ /** @description ID of the Outlook calendar the event was imported from. */
12474
+ calendarId?: string;
12475
+ /** @description ID of the Outlook event the booking mirrors. */
12476
+ eventId?: string;
12477
+ /** @description Link to the Outlook event. */
12478
+ eventLink?: string;
12479
+ };
12448
12480
  /**
12449
- * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar import, or a direct API integration. The matching property below carries the details.
12481
+ * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar or Outlook Calendar import, or a direct API integration. The matching property below carries the details.
12450
12482
  * @enum {string}
12451
12483
  */
12452
- type: "api" | "app" | "googleCalendar" | "mcp" | "member";
12484
+ type: "api" | "app" | "googleCalendar" | "mcp" | "member" | "outlookCalendar";
12453
12485
  };
12454
12486
  /**
12455
12487
  * Format: date-time
@@ -13398,10 +13430,10 @@ interface components {
13398
13430
  type?: string;
13399
13431
  };
13400
13432
  /**
13401
- * @description Current order status.
13433
+ * @description Current order status. An order is pending while its payment is still processing.
13402
13434
  * @enum {string}
13403
13435
  */
13404
- status: "new" | "inProgress" | "completed" | "canceled";
13436
+ status: "canceled" | "completed" | "inProgress" | "new" | "pending";
13405
13437
  /** @description User who placed the order. */
13406
13438
  user: {
13407
13439
  /** @description Short bio of the user. */
@@ -13866,10 +13898,10 @@ interface components {
13866
13898
  type?: string;
13867
13899
  };
13868
13900
  /**
13869
- * @description Current order status.
13901
+ * @description Current order status. An order is pending while its payment is still processing.
13870
13902
  * @enum {string}
13871
13903
  */
13872
- status: "new" | "inProgress" | "completed" | "canceled";
13904
+ status: "canceled" | "completed" | "inProgress" | "new" | "pending";
13873
13905
  /** @description User who placed the order. */
13874
13906
  user: {
13875
13907
  /** @description Short bio of the user. */
@@ -15785,6 +15817,8 @@ interface components {
15785
15817
  * @description ID of the assignee user.
15786
15818
  */
15787
15819
  userRefAssignee?: string;
15820
+ /** @description IDs of the users Lem AI suggests as assignees, best match first. Only returned to admins with support permission. */
15821
+ userRefsAssigneeSuggested?: string[];
15788
15822
  /** @description Requester user details. */
15789
15823
  userRequester?: {
15790
15824
  /** @description Whether the user is blocked. */
@@ -22914,7 +22948,7 @@ interface components {
22914
22948
  unitAmount: number;
22915
22949
  }[];
22916
22950
  };
22917
- /** @description Whether day passes are enabled. */
22951
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes; enabling it for any other type is rejected. */
22918
22952
  dayPassesEnabled?: boolean;
22919
22953
  /** @description Description of the resource. */
22920
22954
  description?: string;
@@ -22983,6 +23017,13 @@ interface components {
22983
23017
  unitAmount: number;
22984
23018
  }[];
22985
23019
  };
23020
+ /** @description Outlook Calendar integration settings. Pass null to disconnect the calendar from the resource. */
23021
+ outlookCalendar?: {
23022
+ /** @description Outlook calendar id. */
23023
+ id: string;
23024
+ /** @description Whether two-way sync is enabled. */
23025
+ twoWaySyncEnabled: boolean;
23026
+ } | null;
22986
23027
  /**
22987
23028
  * Format: uuid
22988
23029
  * @description Parent resource id when creating a child resource.
@@ -23328,7 +23369,7 @@ interface components {
23328
23369
  unitAmount: number;
23329
23370
  }[];
23330
23371
  };
23331
- /** @description Whether day passes are enabled. */
23372
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes; enabling it for any other type is rejected. */
23332
23373
  dayPassesEnabled?: boolean;
23333
23374
  /** @description Description of the resource. */
23334
23375
  description?: string;
@@ -23387,6 +23428,13 @@ interface components {
23387
23428
  unitAmount: number;
23388
23429
  }[];
23389
23430
  };
23431
+ /** @description Outlook Calendar integration settings. Pass null to disconnect the calendar from the resource. */
23432
+ outlookCalendar?: {
23433
+ /** @description Outlook calendar id. */
23434
+ id: string;
23435
+ /** @description Whether two-way sync is enabled. */
23436
+ twoWaySyncEnabled: boolean;
23437
+ } | null;
23390
23438
  /**
23391
23439
  * Format: uuid
23392
23440
  * @description Parent resource id when creating a child resource.
@@ -24814,10 +24862,10 @@ interface components {
24814
24862
  /** @description Description text of the ticket. */
24815
24863
  text: string;
24816
24864
  /**
24817
- * @description Category type of the ticket.
24865
+ * @description Category type of the ticket. When omitted, the type is detected from the text and administrators can change it later.
24818
24866
  * @enum {string}
24819
24867
  */
24820
- type: "access" | "accountAndBilling" | "bookings" | "cleaning" | "discriminationAndHarassment" | "internet" | "mailAndPackages" | "noiseAndAcoustics" | "offensiveOrObjectionableContent" | "other" | "printing" | "repairAndMaintenance" | "temperatureAndVentilation" | "websiteAndApp";
24868
+ type?: "access" | "accountAndBilling" | "bookings" | "cleaning" | "discriminationAndHarassment" | "internet" | "mailAndPackages" | "noiseAndAcoustics" | "offensiveOrObjectionableContent" | "other" | "printing" | "repairAndMaintenance" | "temperatureAndVentilation" | "websiteAndApp";
24821
24869
  /**
24822
24870
  * Format: uuid
24823
24871
  * @description ID of the user requesting the ticket. Defaults to the authenticated user when omitted.
@@ -30383,7 +30431,7 @@ interface operations {
30383
30431
  membershipRefOwner?: string;
30384
30432
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
30385
30433
  nextPageToken?: string;
30386
- /** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or createDate and direction is asc or desc. */
30434
+ /** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or createDate and direction is asc or desc. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
30387
30435
  order?: string;
30388
30436
  /** @description UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
30389
30437
  resourceRef?: string;
@@ -33187,7 +33235,7 @@ interface GetBookingsQuery {
33187
33235
  membershipRefOwner?: string;
33188
33236
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
33189
33237
  nextPageToken?: string;
33190
- /** Sort order as `:`, where field is startDate, endDate or createDate and direction is asc or desc. */
33238
+ /** Sort order as `:`, where field is startDate, endDate or createDate and direction is asc or desc. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
33191
33239
  order?: string;
33192
33240
  /** UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
33193
33241
  resourceRef?: string;
package/dist/index.d.ts CHANGED
@@ -9095,7 +9095,7 @@ interface components {
9095
9095
  unitAmount: number;
9096
9096
  }[];
9097
9097
  };
9098
- /** @description Whether day passes are enabled. */
9098
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes. */
9099
9099
  dayPassesEnabled?: boolean;
9100
9100
  /** @description Description of the resource. */
9101
9101
  description: string;
@@ -9178,6 +9178,13 @@ interface components {
9178
9178
  * @description ID of the network.
9179
9179
  */
9180
9180
  networkRef: string;
9181
+ /** @description Outlook Calendar integration settings. */
9182
+ outlookCalendar?: {
9183
+ /** @description Outlook calendar id. */
9184
+ id: string;
9185
+ /** @description Whether two-way sync is enabled. */
9186
+ twoWaySyncEnabled: boolean;
9187
+ };
9181
9188
  /**
9182
9189
  * Format: uuid
9183
9190
  * @description Parent resource id when this is a child resource.
@@ -9719,7 +9726,7 @@ interface components {
9719
9726
  unitAmount: number;
9720
9727
  }[];
9721
9728
  };
9722
- /** @description Whether day passes are enabled. */
9729
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes. */
9723
9730
  dayPassesEnabled?: boolean;
9724
9731
  /** @description Description of the resource. */
9725
9732
  description: string;
@@ -9802,6 +9809,13 @@ interface components {
9802
9809
  * @description ID of the network.
9803
9810
  */
9804
9811
  networkRef: string;
9812
+ /** @description Outlook Calendar integration settings. */
9813
+ outlookCalendar?: {
9814
+ /** @description Outlook calendar id. */
9815
+ id: string;
9816
+ /** @description Whether two-way sync is enabled. */
9817
+ twoWaySyncEnabled: boolean;
9818
+ };
9805
9819
  /**
9806
9820
  * Format: uuid
9807
9821
  * @description Parent resource id when this is a child resource.
@@ -11392,11 +11406,20 @@ interface components {
11392
11406
  };
11393
11407
  /** @description Set when `type` is `member`. */
11394
11408
  member?: Record<string, never>;
11409
+ /** @description Set when `type` is `outlookCalendar`. */
11410
+ outlookCalendar?: {
11411
+ /** @description ID of the Outlook calendar the event was imported from. */
11412
+ calendarId?: string;
11413
+ /** @description ID of the Outlook event the booking mirrors. */
11414
+ eventId?: string;
11415
+ /** @description Link to the Outlook event. */
11416
+ eventLink?: string;
11417
+ };
11395
11418
  /**
11396
- * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar import, or a direct API integration. The matching property below carries the details.
11419
+ * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar or Outlook Calendar import, or a direct API integration. The matching property below carries the details.
11397
11420
  * @enum {string}
11398
11421
  */
11399
- type: "api" | "app" | "googleCalendar" | "mcp" | "member";
11422
+ type: "api" | "app" | "googleCalendar" | "mcp" | "member" | "outlookCalendar";
11400
11423
  };
11401
11424
  /**
11402
11425
  * Format: date-time
@@ -12445,11 +12468,20 @@ interface components {
12445
12468
  };
12446
12469
  /** @description Set when `type` is `member`. */
12447
12470
  member?: Record<string, never>;
12471
+ /** @description Set when `type` is `outlookCalendar`. */
12472
+ outlookCalendar?: {
12473
+ /** @description ID of the Outlook calendar the event was imported from. */
12474
+ calendarId?: string;
12475
+ /** @description ID of the Outlook event the booking mirrors. */
12476
+ eventId?: string;
12477
+ /** @description Link to the Outlook event. */
12478
+ eventLink?: string;
12479
+ };
12448
12480
  /**
12449
- * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar import, or a direct API integration. The matching property below carries the details.
12481
+ * @description Where the booking was created: the admin app, the member app, an MCP client, a Google Calendar or Outlook Calendar import, or a direct API integration. The matching property below carries the details.
12450
12482
  * @enum {string}
12451
12483
  */
12452
- type: "api" | "app" | "googleCalendar" | "mcp" | "member";
12484
+ type: "api" | "app" | "googleCalendar" | "mcp" | "member" | "outlookCalendar";
12453
12485
  };
12454
12486
  /**
12455
12487
  * Format: date-time
@@ -13398,10 +13430,10 @@ interface components {
13398
13430
  type?: string;
13399
13431
  };
13400
13432
  /**
13401
- * @description Current order status.
13433
+ * @description Current order status. An order is pending while its payment is still processing.
13402
13434
  * @enum {string}
13403
13435
  */
13404
- status: "new" | "inProgress" | "completed" | "canceled";
13436
+ status: "canceled" | "completed" | "inProgress" | "new" | "pending";
13405
13437
  /** @description User who placed the order. */
13406
13438
  user: {
13407
13439
  /** @description Short bio of the user. */
@@ -13866,10 +13898,10 @@ interface components {
13866
13898
  type?: string;
13867
13899
  };
13868
13900
  /**
13869
- * @description Current order status.
13901
+ * @description Current order status. An order is pending while its payment is still processing.
13870
13902
  * @enum {string}
13871
13903
  */
13872
- status: "new" | "inProgress" | "completed" | "canceled";
13904
+ status: "canceled" | "completed" | "inProgress" | "new" | "pending";
13873
13905
  /** @description User who placed the order. */
13874
13906
  user: {
13875
13907
  /** @description Short bio of the user. */
@@ -15785,6 +15817,8 @@ interface components {
15785
15817
  * @description ID of the assignee user.
15786
15818
  */
15787
15819
  userRefAssignee?: string;
15820
+ /** @description IDs of the users Lem AI suggests as assignees, best match first. Only returned to admins with support permission. */
15821
+ userRefsAssigneeSuggested?: string[];
15788
15822
  /** @description Requester user details. */
15789
15823
  userRequester?: {
15790
15824
  /** @description Whether the user is blocked. */
@@ -22914,7 +22948,7 @@ interface components {
22914
22948
  unitAmount: number;
22915
22949
  }[];
22916
22950
  };
22917
- /** @description Whether day passes are enabled. */
22951
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes; enabling it for any other type is rejected. */
22918
22952
  dayPassesEnabled?: boolean;
22919
22953
  /** @description Description of the resource. */
22920
22954
  description?: string;
@@ -22983,6 +23017,13 @@ interface components {
22983
23017
  unitAmount: number;
22984
23018
  }[];
22985
23019
  };
23020
+ /** @description Outlook Calendar integration settings. Pass null to disconnect the calendar from the resource. */
23021
+ outlookCalendar?: {
23022
+ /** @description Outlook calendar id. */
23023
+ id: string;
23024
+ /** @description Whether two-way sync is enabled. */
23025
+ twoWaySyncEnabled: boolean;
23026
+ } | null;
22986
23027
  /**
22987
23028
  * Format: uuid
22988
23029
  * @description Parent resource id when creating a child resource.
@@ -23328,7 +23369,7 @@ interface components {
23328
23369
  unitAmount: number;
23329
23370
  }[];
23330
23371
  };
23331
- /** @description Whether day passes are enabled. */
23372
+ /** @description Whether members can book this resource with day passes. Only hotDesk resources support day passes; enabling it for any other type is rejected. */
23332
23373
  dayPassesEnabled?: boolean;
23333
23374
  /** @description Description of the resource. */
23334
23375
  description?: string;
@@ -23387,6 +23428,13 @@ interface components {
23387
23428
  unitAmount: number;
23388
23429
  }[];
23389
23430
  };
23431
+ /** @description Outlook Calendar integration settings. Pass null to disconnect the calendar from the resource. */
23432
+ outlookCalendar?: {
23433
+ /** @description Outlook calendar id. */
23434
+ id: string;
23435
+ /** @description Whether two-way sync is enabled. */
23436
+ twoWaySyncEnabled: boolean;
23437
+ } | null;
23390
23438
  /**
23391
23439
  * Format: uuid
23392
23440
  * @description Parent resource id when creating a child resource.
@@ -24814,10 +24862,10 @@ interface components {
24814
24862
  /** @description Description text of the ticket. */
24815
24863
  text: string;
24816
24864
  /**
24817
- * @description Category type of the ticket.
24865
+ * @description Category type of the ticket. When omitted, the type is detected from the text and administrators can change it later.
24818
24866
  * @enum {string}
24819
24867
  */
24820
- type: "access" | "accountAndBilling" | "bookings" | "cleaning" | "discriminationAndHarassment" | "internet" | "mailAndPackages" | "noiseAndAcoustics" | "offensiveOrObjectionableContent" | "other" | "printing" | "repairAndMaintenance" | "temperatureAndVentilation" | "websiteAndApp";
24868
+ type?: "access" | "accountAndBilling" | "bookings" | "cleaning" | "discriminationAndHarassment" | "internet" | "mailAndPackages" | "noiseAndAcoustics" | "offensiveOrObjectionableContent" | "other" | "printing" | "repairAndMaintenance" | "temperatureAndVentilation" | "websiteAndApp";
24821
24869
  /**
24822
24870
  * Format: uuid
24823
24871
  * @description ID of the user requesting the ticket. Defaults to the authenticated user when omitted.
@@ -30383,7 +30431,7 @@ interface operations {
30383
30431
  membershipRefOwner?: string;
30384
30432
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
30385
30433
  nextPageToken?: string;
30386
- /** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or createDate and direction is asc or desc. */
30434
+ /** @description Sort order as `<field>:<direction>`, where field is startDate, endDate or createDate and direction is asc or desc. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
30387
30435
  order?: string;
30388
30436
  /** @description UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
30389
30437
  resourceRef?: string;
@@ -33187,7 +33235,7 @@ interface GetBookingsQuery {
33187
33235
  membershipRefOwner?: string;
33188
33236
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
33189
33237
  nextPageToken?: string;
33190
- /** Sort order as `:`, where field is startDate, endDate or createDate and direction is asc or desc. */
33238
+ /** Sort order as `:`, where field is startDate, endDate or createDate and direction is asc or desc. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
33191
33239
  order?: string;
33192
33240
  /** UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
33193
33241
  resourceRef?: string;