@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.
- package/dist/connect.cjs +150 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +220 -0
- package/dist/index.cjs +150 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer.d.ts +15 -0
- package/lib/seam/connect/models/customer/customer.js +21 -0
- package/lib/seam/connect/models/customer/customer.js.map +1 -0
- package/lib/seam/connect/models/customer/index.d.ts +1 -0
- package/lib/seam/connect/models/customer/index.js +1 -0
- package/lib/seam/connect/models/customer/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +187 -0
- package/lib/seam/connect/openapi.js +150 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +33 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/customer/customer.ts +25 -0
- package/src/lib/seam/connect/models/customer/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +155 -0
- package/src/lib/seam/connect/route-types.ts +33 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const customer: z.ZodObject<{
|
|
3
|
+
customer_key: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
created_at: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
workspace_id: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
customer_key: string;
|
|
10
|
+
}, {
|
|
11
|
+
workspace_id: string;
|
|
12
|
+
created_at: string;
|
|
13
|
+
customer_key: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type Customer = z.infer<typeof customer>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const customer = z.object({
|
|
3
|
+
customer_key: z
|
|
4
|
+
.string()
|
|
5
|
+
.describe('Unique key for the customer within the workspace.'),
|
|
6
|
+
workspace_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer.'),
|
|
10
|
+
created_at: z
|
|
11
|
+
.string()
|
|
12
|
+
.datetime()
|
|
13
|
+
.describe('Date and time at which the customer was created.'),
|
|
14
|
+
}).describe(`
|
|
15
|
+
---
|
|
16
|
+
route_path: /customers
|
|
17
|
+
undocumented: Internal resource.
|
|
18
|
+
---
|
|
19
|
+
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.
|
|
20
|
+
`);
|
|
21
|
+
//# sourceMappingURL=customer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,CAAC,mDAAmD,CAAC;IAChE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,2GAA2G,CAC5G;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA"}
|
|
@@ -4601,6 +4601,29 @@ declare const _default: {
|
|
|
4601
4601
|
type: string;
|
|
4602
4602
|
'x-route-path': string;
|
|
4603
4603
|
};
|
|
4604
|
+
customer: {
|
|
4605
|
+
description: string;
|
|
4606
|
+
properties: {
|
|
4607
|
+
created_at: {
|
|
4608
|
+
description: string;
|
|
4609
|
+
format: string;
|
|
4610
|
+
type: string;
|
|
4611
|
+
};
|
|
4612
|
+
customer_key: {
|
|
4613
|
+
description: string;
|
|
4614
|
+
type: string;
|
|
4615
|
+
};
|
|
4616
|
+
workspace_id: {
|
|
4617
|
+
description: string;
|
|
4618
|
+
format: string;
|
|
4619
|
+
type: string;
|
|
4620
|
+
};
|
|
4621
|
+
};
|
|
4622
|
+
required: string[];
|
|
4623
|
+
type: string;
|
|
4624
|
+
'x-route-path': string;
|
|
4625
|
+
'x-undocumented': string;
|
|
4626
|
+
};
|
|
4604
4627
|
customization_profile: {
|
|
4605
4628
|
description: string;
|
|
4606
4629
|
properties: {
|
|
@@ -45459,6 +45482,170 @@ declare const _default: {
|
|
|
45459
45482
|
'x-undocumented': string;
|
|
45460
45483
|
};
|
|
45461
45484
|
};
|
|
45485
|
+
'/seam/customer/v1/customers/list': {
|
|
45486
|
+
get: {
|
|
45487
|
+
description: string;
|
|
45488
|
+
operationId: string;
|
|
45489
|
+
parameters: ({
|
|
45490
|
+
in: string;
|
|
45491
|
+
name: string;
|
|
45492
|
+
schema: {
|
|
45493
|
+
default: number;
|
|
45494
|
+
description: string;
|
|
45495
|
+
exclusiveMinimum: boolean;
|
|
45496
|
+
minimum: number;
|
|
45497
|
+
type: string;
|
|
45498
|
+
nullable?: never;
|
|
45499
|
+
};
|
|
45500
|
+
} | {
|
|
45501
|
+
in: string;
|
|
45502
|
+
name: string;
|
|
45503
|
+
schema: {
|
|
45504
|
+
description: string;
|
|
45505
|
+
nullable: boolean;
|
|
45506
|
+
type: string;
|
|
45507
|
+
default?: never;
|
|
45508
|
+
exclusiveMinimum?: never;
|
|
45509
|
+
minimum?: never;
|
|
45510
|
+
};
|
|
45511
|
+
})[];
|
|
45512
|
+
responses: {
|
|
45513
|
+
200: {
|
|
45514
|
+
content: {
|
|
45515
|
+
'application/json': {
|
|
45516
|
+
schema: {
|
|
45517
|
+
properties: {
|
|
45518
|
+
customers: {
|
|
45519
|
+
items: {
|
|
45520
|
+
$ref: string;
|
|
45521
|
+
};
|
|
45522
|
+
type: string;
|
|
45523
|
+
};
|
|
45524
|
+
ok: {
|
|
45525
|
+
type: string;
|
|
45526
|
+
};
|
|
45527
|
+
pagination: {
|
|
45528
|
+
$ref: string;
|
|
45529
|
+
};
|
|
45530
|
+
};
|
|
45531
|
+
required: string[];
|
|
45532
|
+
type: string;
|
|
45533
|
+
};
|
|
45534
|
+
};
|
|
45535
|
+
};
|
|
45536
|
+
description: string;
|
|
45537
|
+
};
|
|
45538
|
+
400: {
|
|
45539
|
+
description: string;
|
|
45540
|
+
};
|
|
45541
|
+
401: {
|
|
45542
|
+
description: string;
|
|
45543
|
+
};
|
|
45544
|
+
};
|
|
45545
|
+
security: ({
|
|
45546
|
+
api_key: never[];
|
|
45547
|
+
pat_with_workspace?: never;
|
|
45548
|
+
console_session_with_workspace?: never;
|
|
45549
|
+
} | {
|
|
45550
|
+
pat_with_workspace: never[];
|
|
45551
|
+
api_key?: never;
|
|
45552
|
+
console_session_with_workspace?: never;
|
|
45553
|
+
} | {
|
|
45554
|
+
console_session_with_workspace: never[];
|
|
45555
|
+
api_key?: never;
|
|
45556
|
+
pat_with_workspace?: never;
|
|
45557
|
+
})[];
|
|
45558
|
+
summary: string;
|
|
45559
|
+
tags: never[];
|
|
45560
|
+
'x-fern-sdk-group-name': string[];
|
|
45561
|
+
'x-fern-sdk-method-name': string;
|
|
45562
|
+
'x-fern-sdk-return-value': string;
|
|
45563
|
+
'x-response-key': string;
|
|
45564
|
+
'x-title': string;
|
|
45565
|
+
'x-undocumented': string;
|
|
45566
|
+
};
|
|
45567
|
+
post: {
|
|
45568
|
+
description: string;
|
|
45569
|
+
operationId: string;
|
|
45570
|
+
requestBody: {
|
|
45571
|
+
content: {
|
|
45572
|
+
'application/json': {
|
|
45573
|
+
schema: {
|
|
45574
|
+
properties: {
|
|
45575
|
+
limit: {
|
|
45576
|
+
default: number;
|
|
45577
|
+
description: string;
|
|
45578
|
+
exclusiveMinimum: boolean;
|
|
45579
|
+
minimum: number;
|
|
45580
|
+
type: string;
|
|
45581
|
+
};
|
|
45582
|
+
page_cursor: {
|
|
45583
|
+
description: string;
|
|
45584
|
+
nullable: boolean;
|
|
45585
|
+
type: string;
|
|
45586
|
+
};
|
|
45587
|
+
};
|
|
45588
|
+
type: string;
|
|
45589
|
+
};
|
|
45590
|
+
};
|
|
45591
|
+
};
|
|
45592
|
+
};
|
|
45593
|
+
responses: {
|
|
45594
|
+
200: {
|
|
45595
|
+
content: {
|
|
45596
|
+
'application/json': {
|
|
45597
|
+
schema: {
|
|
45598
|
+
properties: {
|
|
45599
|
+
customers: {
|
|
45600
|
+
items: {
|
|
45601
|
+
$ref: string;
|
|
45602
|
+
};
|
|
45603
|
+
type: string;
|
|
45604
|
+
};
|
|
45605
|
+
ok: {
|
|
45606
|
+
type: string;
|
|
45607
|
+
};
|
|
45608
|
+
pagination: {
|
|
45609
|
+
$ref: string;
|
|
45610
|
+
};
|
|
45611
|
+
};
|
|
45612
|
+
required: string[];
|
|
45613
|
+
type: string;
|
|
45614
|
+
};
|
|
45615
|
+
};
|
|
45616
|
+
};
|
|
45617
|
+
description: string;
|
|
45618
|
+
};
|
|
45619
|
+
400: {
|
|
45620
|
+
description: string;
|
|
45621
|
+
};
|
|
45622
|
+
401: {
|
|
45623
|
+
description: string;
|
|
45624
|
+
};
|
|
45625
|
+
};
|
|
45626
|
+
security: ({
|
|
45627
|
+
api_key: never[];
|
|
45628
|
+
pat_with_workspace?: never;
|
|
45629
|
+
console_session_with_workspace?: never;
|
|
45630
|
+
} | {
|
|
45631
|
+
pat_with_workspace: never[];
|
|
45632
|
+
api_key?: never;
|
|
45633
|
+
console_session_with_workspace?: never;
|
|
45634
|
+
} | {
|
|
45635
|
+
console_session_with_workspace: never[];
|
|
45636
|
+
api_key?: never;
|
|
45637
|
+
pat_with_workspace?: never;
|
|
45638
|
+
})[];
|
|
45639
|
+
summary: string;
|
|
45640
|
+
tags: never[];
|
|
45641
|
+
'x-fern-sdk-group-name': string[];
|
|
45642
|
+
'x-fern-sdk-method-name': string;
|
|
45643
|
+
'x-fern-sdk-return-value': string;
|
|
45644
|
+
'x-response-key': string;
|
|
45645
|
+
'x-title': string;
|
|
45646
|
+
'x-undocumented': string;
|
|
45647
|
+
};
|
|
45648
|
+
};
|
|
45462
45649
|
'/seam/customer/v1/events/list': {
|
|
45463
45650
|
get: {
|
|
45464
45651
|
description: string;
|
|
@@ -8461,6 +8461,29 @@ export default {
|
|
|
8461
8461
|
type: 'object',
|
|
8462
8462
|
'x-route-path': '/connected_accounts',
|
|
8463
8463
|
},
|
|
8464
|
+
customer: {
|
|
8465
|
+
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.',
|
|
8466
|
+
properties: {
|
|
8467
|
+
created_at: {
|
|
8468
|
+
description: 'Date and time at which the customer was created.',
|
|
8469
|
+
format: 'date-time',
|
|
8470
|
+
type: 'string',
|
|
8471
|
+
},
|
|
8472
|
+
customer_key: {
|
|
8473
|
+
description: 'Unique key for the customer within the workspace.',
|
|
8474
|
+
type: 'string',
|
|
8475
|
+
},
|
|
8476
|
+
workspace_id: {
|
|
8477
|
+
description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer.',
|
|
8478
|
+
format: 'uuid',
|
|
8479
|
+
type: 'string',
|
|
8480
|
+
},
|
|
8481
|
+
},
|
|
8482
|
+
required: ['customer_key', 'workspace_id', 'created_at'],
|
|
8483
|
+
type: 'object',
|
|
8484
|
+
'x-route-path': '/customers',
|
|
8485
|
+
'x-undocumented': 'Internal resource.',
|
|
8486
|
+
},
|
|
8464
8487
|
customization_profile: {
|
|
8465
8488
|
description: 'A customization profile.',
|
|
8466
8489
|
properties: {
|
|
@@ -50259,6 +50282,133 @@ export default {
|
|
|
50259
50282
|
'x-undocumented': 'Internal endpoint for Console.',
|
|
50260
50283
|
},
|
|
50261
50284
|
},
|
|
50285
|
+
'/seam/customer/v1/customers/list': {
|
|
50286
|
+
get: {
|
|
50287
|
+
description: 'Returns a list of all customers within the workspace.',
|
|
50288
|
+
operationId: 'seamCustomerV1CustomersListGet',
|
|
50289
|
+
parameters: [
|
|
50290
|
+
{
|
|
50291
|
+
in: 'query',
|
|
50292
|
+
name: 'limit',
|
|
50293
|
+
schema: {
|
|
50294
|
+
default: 500,
|
|
50295
|
+
description: 'Maximum number of records to return per page.',
|
|
50296
|
+
exclusiveMinimum: true,
|
|
50297
|
+
minimum: 0,
|
|
50298
|
+
type: 'integer',
|
|
50299
|
+
},
|
|
50300
|
+
},
|
|
50301
|
+
{
|
|
50302
|
+
in: 'query',
|
|
50303
|
+
name: 'page_cursor',
|
|
50304
|
+
schema: {
|
|
50305
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
50306
|
+
nullable: true,
|
|
50307
|
+
type: 'string',
|
|
50308
|
+
},
|
|
50309
|
+
},
|
|
50310
|
+
],
|
|
50311
|
+
responses: {
|
|
50312
|
+
200: {
|
|
50313
|
+
content: {
|
|
50314
|
+
'application/json': {
|
|
50315
|
+
schema: {
|
|
50316
|
+
properties: {
|
|
50317
|
+
customers: {
|
|
50318
|
+
items: { $ref: '#/components/schemas/customer' },
|
|
50319
|
+
type: 'array',
|
|
50320
|
+
},
|
|
50321
|
+
ok: { type: 'boolean' },
|
|
50322
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
50323
|
+
},
|
|
50324
|
+
required: ['customers', 'pagination', 'ok'],
|
|
50325
|
+
type: 'object',
|
|
50326
|
+
},
|
|
50327
|
+
},
|
|
50328
|
+
},
|
|
50329
|
+
description: 'OK',
|
|
50330
|
+
},
|
|
50331
|
+
400: { description: 'Bad Request' },
|
|
50332
|
+
401: { description: 'Unauthorized' },
|
|
50333
|
+
},
|
|
50334
|
+
security: [
|
|
50335
|
+
{ api_key: [] },
|
|
50336
|
+
{ pat_with_workspace: [] },
|
|
50337
|
+
{ console_session_with_workspace: [] },
|
|
50338
|
+
],
|
|
50339
|
+
summary: '/seam/customer/v1/customers/list',
|
|
50340
|
+
tags: [],
|
|
50341
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'],
|
|
50342
|
+
'x-fern-sdk-method-name': 'list',
|
|
50343
|
+
'x-fern-sdk-return-value': 'customers',
|
|
50344
|
+
'x-response-key': 'customers',
|
|
50345
|
+
'x-title': 'List Customers',
|
|
50346
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
50347
|
+
},
|
|
50348
|
+
post: {
|
|
50349
|
+
description: 'Returns a list of all customers within the workspace.',
|
|
50350
|
+
operationId: 'seamCustomerV1CustomersListPost',
|
|
50351
|
+
requestBody: {
|
|
50352
|
+
content: {
|
|
50353
|
+
'application/json': {
|
|
50354
|
+
schema: {
|
|
50355
|
+
properties: {
|
|
50356
|
+
limit: {
|
|
50357
|
+
default: 500,
|
|
50358
|
+
description: 'Maximum number of records to return per page.',
|
|
50359
|
+
exclusiveMinimum: true,
|
|
50360
|
+
minimum: 0,
|
|
50361
|
+
type: 'integer',
|
|
50362
|
+
},
|
|
50363
|
+
page_cursor: {
|
|
50364
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
50365
|
+
nullable: true,
|
|
50366
|
+
type: 'string',
|
|
50367
|
+
},
|
|
50368
|
+
},
|
|
50369
|
+
type: 'object',
|
|
50370
|
+
},
|
|
50371
|
+
},
|
|
50372
|
+
},
|
|
50373
|
+
},
|
|
50374
|
+
responses: {
|
|
50375
|
+
200: {
|
|
50376
|
+
content: {
|
|
50377
|
+
'application/json': {
|
|
50378
|
+
schema: {
|
|
50379
|
+
properties: {
|
|
50380
|
+
customers: {
|
|
50381
|
+
items: { $ref: '#/components/schemas/customer' },
|
|
50382
|
+
type: 'array',
|
|
50383
|
+
},
|
|
50384
|
+
ok: { type: 'boolean' },
|
|
50385
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
50386
|
+
},
|
|
50387
|
+
required: ['customers', 'pagination', 'ok'],
|
|
50388
|
+
type: 'object',
|
|
50389
|
+
},
|
|
50390
|
+
},
|
|
50391
|
+
},
|
|
50392
|
+
description: 'OK',
|
|
50393
|
+
},
|
|
50394
|
+
400: { description: 'Bad Request' },
|
|
50395
|
+
401: { description: 'Unauthorized' },
|
|
50396
|
+
},
|
|
50397
|
+
security: [
|
|
50398
|
+
{ api_key: [] },
|
|
50399
|
+
{ pat_with_workspace: [] },
|
|
50400
|
+
{ console_session_with_workspace: [] },
|
|
50401
|
+
],
|
|
50402
|
+
summary: '/seam/customer/v1/customers/list',
|
|
50403
|
+
tags: [],
|
|
50404
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'],
|
|
50405
|
+
'x-fern-sdk-method-name': 'list',
|
|
50406
|
+
'x-fern-sdk-return-value': 'customers',
|
|
50407
|
+
'x-response-key': 'customers',
|
|
50408
|
+
'x-title': 'List Customers',
|
|
50409
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
50410
|
+
},
|
|
50411
|
+
},
|
|
50262
50412
|
'/seam/customer/v1/events/list': {
|
|
50263
50413
|
get: {
|
|
50264
50414
|
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.',
|