@seamapi/types 1.682.0 → 1.683.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.
@@ -57660,6 +57660,29 @@ declare const _default: {
57660
57660
  type: string;
57661
57661
  'x-route-path': string;
57662
57662
  };
57663
+ customer: {
57664
+ description: string;
57665
+ properties: {
57666
+ created_at: {
57667
+ description: string;
57668
+ format: string;
57669
+ type: string;
57670
+ };
57671
+ customer_key: {
57672
+ description: string;
57673
+ type: string;
57674
+ };
57675
+ workspace_id: {
57676
+ description: string;
57677
+ format: string;
57678
+ type: string;
57679
+ };
57680
+ };
57681
+ required: string[];
57682
+ type: string;
57683
+ 'x-route-path': string;
57684
+ 'x-undocumented': string;
57685
+ };
57663
57686
  customization_profile: {
57664
57687
  description: string;
57665
57688
  properties: {
@@ -98518,6 +98541,170 @@ declare const _default: {
98518
98541
  'x-undocumented': string;
98519
98542
  };
98520
98543
  };
98544
+ '/seam/customer/v1/customers/list': {
98545
+ get: {
98546
+ description: string;
98547
+ operationId: string;
98548
+ parameters: ({
98549
+ in: string;
98550
+ name: string;
98551
+ schema: {
98552
+ default: number;
98553
+ description: string;
98554
+ exclusiveMinimum: boolean;
98555
+ minimum: number;
98556
+ type: string;
98557
+ nullable?: never;
98558
+ };
98559
+ } | {
98560
+ in: string;
98561
+ name: string;
98562
+ schema: {
98563
+ description: string;
98564
+ nullable: boolean;
98565
+ type: string;
98566
+ default?: never;
98567
+ exclusiveMinimum?: never;
98568
+ minimum?: never;
98569
+ };
98570
+ })[];
98571
+ responses: {
98572
+ 200: {
98573
+ content: {
98574
+ 'application/json': {
98575
+ schema: {
98576
+ properties: {
98577
+ customers: {
98578
+ items: {
98579
+ $ref: string;
98580
+ };
98581
+ type: string;
98582
+ };
98583
+ ok: {
98584
+ type: string;
98585
+ };
98586
+ pagination: {
98587
+ $ref: string;
98588
+ };
98589
+ };
98590
+ required: string[];
98591
+ type: string;
98592
+ };
98593
+ };
98594
+ };
98595
+ description: string;
98596
+ };
98597
+ 400: {
98598
+ description: string;
98599
+ };
98600
+ 401: {
98601
+ description: string;
98602
+ };
98603
+ };
98604
+ security: ({
98605
+ api_key: never[];
98606
+ pat_with_workspace?: never;
98607
+ console_session_with_workspace?: never;
98608
+ } | {
98609
+ pat_with_workspace: never[];
98610
+ api_key?: never;
98611
+ console_session_with_workspace?: never;
98612
+ } | {
98613
+ console_session_with_workspace: never[];
98614
+ api_key?: never;
98615
+ pat_with_workspace?: never;
98616
+ })[];
98617
+ summary: string;
98618
+ tags: never[];
98619
+ 'x-fern-sdk-group-name': string[];
98620
+ 'x-fern-sdk-method-name': string;
98621
+ 'x-fern-sdk-return-value': string;
98622
+ 'x-response-key': string;
98623
+ 'x-title': string;
98624
+ 'x-undocumented': string;
98625
+ };
98626
+ post: {
98627
+ description: string;
98628
+ operationId: string;
98629
+ requestBody: {
98630
+ content: {
98631
+ 'application/json': {
98632
+ schema: {
98633
+ properties: {
98634
+ limit: {
98635
+ default: number;
98636
+ description: string;
98637
+ exclusiveMinimum: boolean;
98638
+ minimum: number;
98639
+ type: string;
98640
+ };
98641
+ page_cursor: {
98642
+ description: string;
98643
+ nullable: boolean;
98644
+ type: string;
98645
+ };
98646
+ };
98647
+ type: string;
98648
+ };
98649
+ };
98650
+ };
98651
+ };
98652
+ responses: {
98653
+ 200: {
98654
+ content: {
98655
+ 'application/json': {
98656
+ schema: {
98657
+ properties: {
98658
+ customers: {
98659
+ items: {
98660
+ $ref: string;
98661
+ };
98662
+ type: string;
98663
+ };
98664
+ ok: {
98665
+ type: string;
98666
+ };
98667
+ pagination: {
98668
+ $ref: string;
98669
+ };
98670
+ };
98671
+ required: string[];
98672
+ type: string;
98673
+ };
98674
+ };
98675
+ };
98676
+ description: string;
98677
+ };
98678
+ 400: {
98679
+ description: string;
98680
+ };
98681
+ 401: {
98682
+ description: string;
98683
+ };
98684
+ };
98685
+ security: ({
98686
+ api_key: never[];
98687
+ pat_with_workspace?: never;
98688
+ console_session_with_workspace?: never;
98689
+ } | {
98690
+ pat_with_workspace: never[];
98691
+ api_key?: never;
98692
+ console_session_with_workspace?: never;
98693
+ } | {
98694
+ console_session_with_workspace: never[];
98695
+ api_key?: never;
98696
+ pat_with_workspace?: never;
98697
+ })[];
98698
+ summary: string;
98699
+ tags: never[];
98700
+ 'x-fern-sdk-group-name': string[];
98701
+ 'x-fern-sdk-method-name': string;
98702
+ 'x-fern-sdk-return-value': string;
98703
+ 'x-response-key': string;
98704
+ 'x-title': string;
98705
+ 'x-undocumented': string;
98706
+ };
98707
+ };
98521
98708
  '/seam/customer/v1/events/list': {
98522
98709
  get: {
98523
98710
  description: string;
@@ -166639,6 +166826,39 @@ type Routes = {
166639
166826
  };
166640
166827
  maxDuration: undefined;
166641
166828
  };
166829
+ '/seam/customer/v1/customers/list': {
166830
+ route: '/seam/customer/v1/customers/list';
166831
+ method: 'GET' | 'POST';
166832
+ queryParams: {};
166833
+ jsonBody: {};
166834
+ commonParams: {
166835
+ /** Maximum number of records to return per page. */
166836
+ limit?: number;
166837
+ /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
166838
+ page_cursor?: ((string | undefined) | null) | undefined;
166839
+ };
166840
+ formData: {};
166841
+ jsonResponse: {
166842
+ customers: {
166843
+ /** Unique key for the customer within the workspace. */
166844
+ customer_key: string;
166845
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer. */
166846
+ workspace_id: string;
166847
+ /** Date and time at which the customer was created. */
166848
+ created_at: string;
166849
+ }[];
166850
+ /** Information about the current page of results. */
166851
+ pagination: {
166852
+ /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
166853
+ next_page_cursor: string | null;
166854
+ /** Indicates whether there is another page of results after this one. */
166855
+ has_next_page: boolean;
166856
+ /** URL to get the next page of results. */
166857
+ next_page_url: string | null;
166858
+ };
166859
+ };
166860
+ maxDuration: undefined;
166861
+ };
166642
166862
  '/seam/customer/v1/events/list': {
166643
166863
  route: '/seam/customer/v1/events/list';
166644
166864
  method: 'GET' | 'POST';
package/dist/index.cjs CHANGED
@@ -14361,6 +14361,29 @@ var openapi_default = {
14361
14361
  type: "object",
14362
14362
  "x-route-path": "/connected_accounts"
14363
14363
  },
14364
+ customer: {
14365
+ description: "Represents a customer within a workspace. Customers are used to organize resources and manage access for different clients, such as hotels, property managers, and more.",
14366
+ properties: {
14367
+ created_at: {
14368
+ description: "Date and time at which the customer was created.",
14369
+ format: "date-time",
14370
+ type: "string"
14371
+ },
14372
+ customer_key: {
14373
+ description: "Unique key for the customer within the workspace.",
14374
+ type: "string"
14375
+ },
14376
+ workspace_id: {
14377
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer.",
14378
+ format: "uuid",
14379
+ type: "string"
14380
+ }
14381
+ },
14382
+ required: ["customer_key", "workspace_id", "created_at"],
14383
+ type: "object",
14384
+ "x-route-path": "/customers",
14385
+ "x-undocumented": "Internal resource."
14386
+ },
14364
14387
  customization_profile: {
14365
14388
  description: "A customization profile.",
14366
14389
  properties: {
@@ -56159,6 +56182,133 @@ var openapi_default = {
56159
56182
  "x-undocumented": "Internal endpoint for Console."
56160
56183
  }
56161
56184
  },
56185
+ "/seam/customer/v1/customers/list": {
56186
+ get: {
56187
+ description: "Returns a list of all customers within the workspace.",
56188
+ operationId: "seamCustomerV1CustomersListGet",
56189
+ parameters: [
56190
+ {
56191
+ in: "query",
56192
+ name: "limit",
56193
+ schema: {
56194
+ default: 500,
56195
+ description: "Maximum number of records to return per page.",
56196
+ exclusiveMinimum: true,
56197
+ minimum: 0,
56198
+ type: "integer"
56199
+ }
56200
+ },
56201
+ {
56202
+ in: "query",
56203
+ name: "page_cursor",
56204
+ schema: {
56205
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
56206
+ nullable: true,
56207
+ type: "string"
56208
+ }
56209
+ }
56210
+ ],
56211
+ responses: {
56212
+ 200: {
56213
+ content: {
56214
+ "application/json": {
56215
+ schema: {
56216
+ properties: {
56217
+ customers: {
56218
+ items: { $ref: "#/components/schemas/customer" },
56219
+ type: "array"
56220
+ },
56221
+ ok: { type: "boolean" },
56222
+ pagination: { $ref: "#/components/schemas/pagination" }
56223
+ },
56224
+ required: ["customers", "pagination", "ok"],
56225
+ type: "object"
56226
+ }
56227
+ }
56228
+ },
56229
+ description: "OK"
56230
+ },
56231
+ 400: { description: "Bad Request" },
56232
+ 401: { description: "Unauthorized" }
56233
+ },
56234
+ security: [
56235
+ { api_key: [] },
56236
+ { pat_with_workspace: [] },
56237
+ { console_session_with_workspace: [] }
56238
+ ],
56239
+ summary: "/seam/customer/v1/customers/list",
56240
+ tags: [],
56241
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "customers"],
56242
+ "x-fern-sdk-method-name": "list",
56243
+ "x-fern-sdk-return-value": "customers",
56244
+ "x-response-key": "customers",
56245
+ "x-title": "List Customers",
56246
+ "x-undocumented": "Internal endpoint for Console."
56247
+ },
56248
+ post: {
56249
+ description: "Returns a list of all customers within the workspace.",
56250
+ operationId: "seamCustomerV1CustomersListPost",
56251
+ requestBody: {
56252
+ content: {
56253
+ "application/json": {
56254
+ schema: {
56255
+ properties: {
56256
+ limit: {
56257
+ default: 500,
56258
+ description: "Maximum number of records to return per page.",
56259
+ exclusiveMinimum: true,
56260
+ minimum: 0,
56261
+ type: "integer"
56262
+ },
56263
+ page_cursor: {
56264
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
56265
+ nullable: true,
56266
+ type: "string"
56267
+ }
56268
+ },
56269
+ type: "object"
56270
+ }
56271
+ }
56272
+ }
56273
+ },
56274
+ responses: {
56275
+ 200: {
56276
+ content: {
56277
+ "application/json": {
56278
+ schema: {
56279
+ properties: {
56280
+ customers: {
56281
+ items: { $ref: "#/components/schemas/customer" },
56282
+ type: "array"
56283
+ },
56284
+ ok: { type: "boolean" },
56285
+ pagination: { $ref: "#/components/schemas/pagination" }
56286
+ },
56287
+ required: ["customers", "pagination", "ok"],
56288
+ type: "object"
56289
+ }
56290
+ }
56291
+ },
56292
+ description: "OK"
56293
+ },
56294
+ 400: { description: "Bad Request" },
56295
+ 401: { description: "Unauthorized" }
56296
+ },
56297
+ security: [
56298
+ { api_key: [] },
56299
+ { pat_with_workspace: [] },
56300
+ { console_session_with_workspace: [] }
56301
+ ],
56302
+ summary: "/seam/customer/v1/customers/list",
56303
+ tags: [],
56304
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "customers"],
56305
+ "x-fern-sdk-method-name": "list",
56306
+ "x-fern-sdk-return-value": "customers",
56307
+ "x-response-key": "customers",
56308
+ "x-title": "List Customers",
56309
+ "x-undocumented": "Internal endpoint for Console."
56310
+ }
56311
+ },
56162
56312
  "/seam/customer/v1/events/list": {
56163
56313
  get: {
56164
56314
  description: "Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.",