@seamapi/types 1.605.0 → 1.607.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 +316 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +412 -1
- package/dist/index.cjs +316 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +6 -0
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -0
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +25 -0
- package/lib/seam/connect/models/customer/customer-data.d.ts +34 -0
- package/lib/seam/connect/models/customer/customer-data.js +5 -1
- package/lib/seam/connect/models/customer/customer-data.js.map +1 -1
- package/lib/seam/connect/models/customer/user-identity-resources.d.ts +39 -0
- package/lib/seam/connect/models/customer/user-identity-resources.js +15 -0
- package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -1
- package/lib/seam/connect/models/phones/phone-session.d.ts +16 -0
- package/lib/seam/connect/openapi.d.ts +293 -0
- package/lib/seam/connect/openapi.js +266 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +88 -0
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +6 -0
- package/src/lib/seam/connect/models/customer/customer-data.ts +5 -0
- package/src/lib/seam/connect/models/customer/user-identity-resources.ts +18 -0
- package/src/lib/seam/connect/openapi.ts +287 -0
- package/src/lib/seam/connect/route-types.ts +92 -0
- package/src/lib/seam/connect/schemas.ts +1 -0
package/dist/connect.cjs
CHANGED
|
@@ -38,6 +38,7 @@ __export(schemas_exports, {
|
|
|
38
38
|
noise_threshold: () => noise_threshold,
|
|
39
39
|
pagination: () => pagination,
|
|
40
40
|
seam_event: () => seam_event,
|
|
41
|
+
staff_member_resource: () => staff_member_resource,
|
|
41
42
|
thermostat_daily_program: () => thermostat_daily_program,
|
|
42
43
|
thermostat_schedule: () => thermostat_schedule,
|
|
43
44
|
thermostat_weekly_program: () => thermostat_weekly_program,
|
|
@@ -2944,6 +2945,9 @@ var acs_entrance_capability_flags = zod.z.object({
|
|
|
2944
2945
|
),
|
|
2945
2946
|
can_unlock_with_code: zod.z.boolean().optional().describe(
|
|
2946
2947
|
"Indicates whether the ACS entrance can be unlocked with pin codes."
|
|
2948
|
+
),
|
|
2949
|
+
can_belong_to_reservation: zod.z.boolean().optional().describe(
|
|
2950
|
+
"Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key."
|
|
2947
2951
|
)
|
|
2948
2952
|
});
|
|
2949
2953
|
var acs_entrance = zod.z.object({
|
|
@@ -5705,6 +5709,52 @@ var bridge_client_session = zod.z.object({
|
|
|
5705
5709
|
---
|
|
5706
5710
|
Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
|
|
5707
5711
|
`);
|
|
5712
|
+
var base_user_identity_resource = zod.z.object({
|
|
5713
|
+
name: zod.z.string().describe("Your display name for this user identity resource."),
|
|
5714
|
+
email_address: zod.z.string().optional().describe("Email address associated with the user identity."),
|
|
5715
|
+
phone_number: zod.z.string().optional().describe("Phone number associated with the user identity.")
|
|
5716
|
+
});
|
|
5717
|
+
var guest_resource = base_user_identity_resource.extend({
|
|
5718
|
+
guest_key: zod.z.string().describe("Your unique identifier for the guest.")
|
|
5719
|
+
});
|
|
5720
|
+
var tenant_resource = base_user_identity_resource.extend({
|
|
5721
|
+
tenant_key: zod.z.string().describe("Your unique identifier for the tenant.")
|
|
5722
|
+
});
|
|
5723
|
+
var resident_resource = base_user_identity_resource.extend({
|
|
5724
|
+
resident_key: zod.z.string().describe("Your unique identifier for the resident.")
|
|
5725
|
+
});
|
|
5726
|
+
var user_resource = base_user_identity_resource.extend({
|
|
5727
|
+
user_key: zod.z.string().describe("Your unique identifier for the user.")
|
|
5728
|
+
});
|
|
5729
|
+
var staff_member_resource = base_user_identity_resource.extend({
|
|
5730
|
+
staff_member_key: zod.z.string().describe("Your unique identifier for the staff."),
|
|
5731
|
+
site_keys: zod.z.array(zod.z.string()).describe(
|
|
5732
|
+
"List of unique identifiers for the sites the staff member is associated with."
|
|
5733
|
+
)
|
|
5734
|
+
}).describe(`
|
|
5735
|
+
---
|
|
5736
|
+
route_path: /seam/customer/v1/staff_members
|
|
5737
|
+
---
|
|
5738
|
+
Represents a staff member for a specific customer.
|
|
5739
|
+
`);
|
|
5740
|
+
var user_identity_resource = base_user_identity_resource.extend({
|
|
5741
|
+
user_identity_key: zod.z.string().describe("Your unique identifier for the user identity.")
|
|
5742
|
+
});
|
|
5743
|
+
zod.z.union([
|
|
5744
|
+
guest_resource,
|
|
5745
|
+
tenant_resource,
|
|
5746
|
+
resident_resource,
|
|
5747
|
+
user_resource,
|
|
5748
|
+
user_identity_resource,
|
|
5749
|
+
staff_member_resource
|
|
5750
|
+
]);
|
|
5751
|
+
zod.z.union([
|
|
5752
|
+
zod.z.object({ guest_key: zod.z.string() }),
|
|
5753
|
+
zod.z.object({ tenant_key: zod.z.string() }),
|
|
5754
|
+
zod.z.object({ resident_key: zod.z.string() }),
|
|
5755
|
+
zod.z.object({ user_key: zod.z.string() }),
|
|
5756
|
+
zod.z.object({ user_identity_key: zod.z.string() })
|
|
5757
|
+
]);
|
|
5708
5758
|
var pagination = zod.z.object({
|
|
5709
5759
|
next_page_cursor: zod.z.string().base64().nullable().describe(
|
|
5710
5760
|
"Opaque value that can be used to select the next page of results via the `page_cursor` parameter."
|
|
@@ -8215,6 +8265,10 @@ var openapi_default = {
|
|
|
8215
8265
|
required: ["door_type", "door_name"],
|
|
8216
8266
|
type: "object"
|
|
8217
8267
|
},
|
|
8268
|
+
can_belong_to_reservation: {
|
|
8269
|
+
description: "Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.",
|
|
8270
|
+
type: "boolean"
|
|
8271
|
+
},
|
|
8218
8272
|
can_unlock_with_card: {
|
|
8219
8273
|
description: "Indicates whether the ACS entrance can be unlocked with card credentials.",
|
|
8220
8274
|
type: "boolean"
|
|
@@ -23642,6 +23696,10 @@ var openapi_default = {
|
|
|
23642
23696
|
required: ["door_type", "door_name"],
|
|
23643
23697
|
type: "object"
|
|
23644
23698
|
},
|
|
23699
|
+
can_belong_to_reservation: {
|
|
23700
|
+
description: "Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.",
|
|
23701
|
+
type: "boolean"
|
|
23702
|
+
},
|
|
23645
23703
|
can_unlock_with_card: {
|
|
23646
23704
|
description: "Indicates whether the ACS entrance can be unlocked with card credentials.",
|
|
23647
23705
|
type: "boolean"
|
|
@@ -24528,6 +24586,35 @@ var openapi_default = {
|
|
|
24528
24586
|
"x-draft": "Early access.",
|
|
24529
24587
|
"x-route-path": "/spaces"
|
|
24530
24588
|
},
|
|
24589
|
+
staff_member: {
|
|
24590
|
+
description: "Represents a staff member for a specific customer.",
|
|
24591
|
+
properties: {
|
|
24592
|
+
email_address: {
|
|
24593
|
+
description: "Email address associated with the user identity.",
|
|
24594
|
+
type: "string"
|
|
24595
|
+
},
|
|
24596
|
+
name: {
|
|
24597
|
+
description: "Your display name for this user identity resource.",
|
|
24598
|
+
type: "string"
|
|
24599
|
+
},
|
|
24600
|
+
phone_number: {
|
|
24601
|
+
description: "Phone number associated with the user identity.",
|
|
24602
|
+
type: "string"
|
|
24603
|
+
},
|
|
24604
|
+
site_keys: {
|
|
24605
|
+
description: "List of unique identifiers for the sites the staff member is associated with.",
|
|
24606
|
+
items: { type: "string" },
|
|
24607
|
+
type: "array"
|
|
24608
|
+
},
|
|
24609
|
+
staff_member_key: {
|
|
24610
|
+
description: "Your unique identifier for the staff.",
|
|
24611
|
+
type: "string"
|
|
24612
|
+
}
|
|
24613
|
+
},
|
|
24614
|
+
required: ["name", "staff_member_key", "site_keys"],
|
|
24615
|
+
type: "object",
|
|
24616
|
+
"x-route-path": "/seam/customer/v1/staff_members"
|
|
24617
|
+
},
|
|
24531
24618
|
thermostat_daily_program: {
|
|
24532
24619
|
description: "Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.",
|
|
24533
24620
|
properties: {
|
|
@@ -43730,6 +43817,43 @@ var openapi_default = {
|
|
|
43730
43817
|
},
|
|
43731
43818
|
type: "array"
|
|
43732
43819
|
},
|
|
43820
|
+
staff_members: {
|
|
43821
|
+
description: "List of staff members.",
|
|
43822
|
+
items: {
|
|
43823
|
+
description: "Represents a staff member for a specific customer.",
|
|
43824
|
+
properties: {
|
|
43825
|
+
email_address: {
|
|
43826
|
+
description: "Email address associated with the user identity.",
|
|
43827
|
+
type: "string"
|
|
43828
|
+
},
|
|
43829
|
+
name: {
|
|
43830
|
+
description: "Your display name for this user identity resource.",
|
|
43831
|
+
type: "string"
|
|
43832
|
+
},
|
|
43833
|
+
phone_number: {
|
|
43834
|
+
description: "Phone number associated with the user identity.",
|
|
43835
|
+
type: "string"
|
|
43836
|
+
},
|
|
43837
|
+
site_keys: {
|
|
43838
|
+
description: "List of unique identifiers for the sites the staff member is associated with.",
|
|
43839
|
+
items: { type: "string" },
|
|
43840
|
+
type: "array"
|
|
43841
|
+
},
|
|
43842
|
+
staff_member_key: {
|
|
43843
|
+
description: "Your unique identifier for the staff.",
|
|
43844
|
+
type: "string"
|
|
43845
|
+
}
|
|
43846
|
+
},
|
|
43847
|
+
required: [
|
|
43848
|
+
"name",
|
|
43849
|
+
"staff_member_key",
|
|
43850
|
+
"site_keys"
|
|
43851
|
+
],
|
|
43852
|
+
type: "object",
|
|
43853
|
+
"x-route-path": "/seam/customer/v1/staff_members"
|
|
43854
|
+
},
|
|
43855
|
+
type: "array"
|
|
43856
|
+
},
|
|
43733
43857
|
tenants: {
|
|
43734
43858
|
description: "List of tenants.",
|
|
43735
43859
|
items: {
|
|
@@ -44709,6 +44833,39 @@ var openapi_default = {
|
|
|
44709
44833
|
},
|
|
44710
44834
|
type: "array"
|
|
44711
44835
|
},
|
|
44836
|
+
staff_members: {
|
|
44837
|
+
description: "List of staff members.",
|
|
44838
|
+
items: {
|
|
44839
|
+
description: "Represents a staff member for a specific customer.",
|
|
44840
|
+
properties: {
|
|
44841
|
+
email_address: {
|
|
44842
|
+
description: "Email address associated with the user identity.",
|
|
44843
|
+
type: "string"
|
|
44844
|
+
},
|
|
44845
|
+
name: {
|
|
44846
|
+
description: "Your display name for this user identity resource.",
|
|
44847
|
+
type: "string"
|
|
44848
|
+
},
|
|
44849
|
+
phone_number: {
|
|
44850
|
+
description: "Phone number associated with the user identity.",
|
|
44851
|
+
type: "string"
|
|
44852
|
+
},
|
|
44853
|
+
site_keys: {
|
|
44854
|
+
description: "List of unique identifiers for the sites the staff member is associated with.",
|
|
44855
|
+
items: { type: "string" },
|
|
44856
|
+
type: "array"
|
|
44857
|
+
},
|
|
44858
|
+
staff_member_key: {
|
|
44859
|
+
description: "Your unique identifier for the staff.",
|
|
44860
|
+
type: "string"
|
|
44861
|
+
}
|
|
44862
|
+
},
|
|
44863
|
+
required: ["name", "staff_member_key", "site_keys"],
|
|
44864
|
+
type: "object",
|
|
44865
|
+
"x-route-path": "/seam/customer/v1/staff_members"
|
|
44866
|
+
},
|
|
44867
|
+
type: "array"
|
|
44868
|
+
},
|
|
44712
44869
|
tenants: {
|
|
44713
44870
|
description: "List of tenants.",
|
|
44714
44871
|
items: {
|
|
@@ -55348,6 +55505,165 @@ var openapi_default = {
|
|
|
55348
55505
|
"x-title": "List Spaces"
|
|
55349
55506
|
}
|
|
55350
55507
|
},
|
|
55508
|
+
"/seam/customer/v1/staff_members/list": {
|
|
55509
|
+
get: {
|
|
55510
|
+
description: "Returns a list of staff members for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.\nProvided space_key or space_id can be a child space, in which case the staff members for the parent space will be returned.",
|
|
55511
|
+
operationId: "seamCustomerV1StaffMembersListGet",
|
|
55512
|
+
parameters: [
|
|
55513
|
+
{
|
|
55514
|
+
in: "query",
|
|
55515
|
+
name: "space_key",
|
|
55516
|
+
schema: {
|
|
55517
|
+
description: "Filter staff members by space key.",
|
|
55518
|
+
type: "string"
|
|
55519
|
+
}
|
|
55520
|
+
},
|
|
55521
|
+
{
|
|
55522
|
+
in: "query",
|
|
55523
|
+
name: "space_id",
|
|
55524
|
+
schema: {
|
|
55525
|
+
description: "Filter staff members by space ID (UUID).",
|
|
55526
|
+
format: "uuid",
|
|
55527
|
+
type: "string"
|
|
55528
|
+
}
|
|
55529
|
+
},
|
|
55530
|
+
{
|
|
55531
|
+
in: "query",
|
|
55532
|
+
name: "limit",
|
|
55533
|
+
schema: {
|
|
55534
|
+
default: 500,
|
|
55535
|
+
description: "Maximum number of records to return per page.",
|
|
55536
|
+
exclusiveMinimum: true,
|
|
55537
|
+
minimum: 0,
|
|
55538
|
+
type: "integer"
|
|
55539
|
+
}
|
|
55540
|
+
},
|
|
55541
|
+
{
|
|
55542
|
+
in: "query",
|
|
55543
|
+
name: "created_before",
|
|
55544
|
+
schema: {
|
|
55545
|
+
description: "Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.",
|
|
55546
|
+
format: "date-time",
|
|
55547
|
+
type: "string"
|
|
55548
|
+
}
|
|
55549
|
+
},
|
|
55550
|
+
{
|
|
55551
|
+
in: "query",
|
|
55552
|
+
name: "page_cursor",
|
|
55553
|
+
schema: {
|
|
55554
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
55555
|
+
nullable: true,
|
|
55556
|
+
type: "string"
|
|
55557
|
+
}
|
|
55558
|
+
}
|
|
55559
|
+
],
|
|
55560
|
+
responses: {
|
|
55561
|
+
200: {
|
|
55562
|
+
content: {
|
|
55563
|
+
"application/json": {
|
|
55564
|
+
schema: {
|
|
55565
|
+
properties: {
|
|
55566
|
+
ok: { type: "boolean" },
|
|
55567
|
+
pagination: { $ref: "#/components/schemas/pagination" },
|
|
55568
|
+
staff_members: {
|
|
55569
|
+
items: { $ref: "#/components/schemas/staff_member" },
|
|
55570
|
+
type: "array"
|
|
55571
|
+
}
|
|
55572
|
+
},
|
|
55573
|
+
required: ["staff_members", "pagination", "ok"],
|
|
55574
|
+
type: "object"
|
|
55575
|
+
}
|
|
55576
|
+
}
|
|
55577
|
+
},
|
|
55578
|
+
description: "OK"
|
|
55579
|
+
},
|
|
55580
|
+
400: { description: "Bad Request" },
|
|
55581
|
+
401: { description: "Unauthorized" }
|
|
55582
|
+
},
|
|
55583
|
+
security: [{ client_session_with_customer: [] }],
|
|
55584
|
+
summary: "/seam/customer/v1/staff_members/list",
|
|
55585
|
+
tags: [],
|
|
55586
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "staff_members"],
|
|
55587
|
+
"x-fern-sdk-method-name": "list",
|
|
55588
|
+
"x-fern-sdk-return-value": "staff_members",
|
|
55589
|
+
"x-response-key": "staff_members",
|
|
55590
|
+
"x-title": "List Staff Members for Customer Space",
|
|
55591
|
+
"x-undocumented": "Internal endpoint for customer portals."
|
|
55592
|
+
},
|
|
55593
|
+
post: {
|
|
55594
|
+
description: "Returns a list of staff members for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.\nProvided space_key or space_id can be a child space, in which case the staff members for the parent space will be returned.",
|
|
55595
|
+
operationId: "seamCustomerV1StaffMembersListPost",
|
|
55596
|
+
requestBody: {
|
|
55597
|
+
content: {
|
|
55598
|
+
"application/json": {
|
|
55599
|
+
schema: {
|
|
55600
|
+
properties: {
|
|
55601
|
+
created_before: {
|
|
55602
|
+
description: "Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.",
|
|
55603
|
+
format: "date-time",
|
|
55604
|
+
type: "string"
|
|
55605
|
+
},
|
|
55606
|
+
limit: {
|
|
55607
|
+
default: 500,
|
|
55608
|
+
description: "Maximum number of records to return per page.",
|
|
55609
|
+
exclusiveMinimum: true,
|
|
55610
|
+
minimum: 0,
|
|
55611
|
+
type: "integer"
|
|
55612
|
+
},
|
|
55613
|
+
page_cursor: {
|
|
55614
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
55615
|
+
nullable: true,
|
|
55616
|
+
type: "string"
|
|
55617
|
+
},
|
|
55618
|
+
space_id: {
|
|
55619
|
+
description: "Filter staff members by space ID (UUID).",
|
|
55620
|
+
format: "uuid",
|
|
55621
|
+
type: "string"
|
|
55622
|
+
},
|
|
55623
|
+
space_key: {
|
|
55624
|
+
description: "Filter staff members by space key.",
|
|
55625
|
+
type: "string"
|
|
55626
|
+
}
|
|
55627
|
+
},
|
|
55628
|
+
type: "object"
|
|
55629
|
+
}
|
|
55630
|
+
}
|
|
55631
|
+
}
|
|
55632
|
+
},
|
|
55633
|
+
responses: {
|
|
55634
|
+
200: {
|
|
55635
|
+
content: {
|
|
55636
|
+
"application/json": {
|
|
55637
|
+
schema: {
|
|
55638
|
+
properties: {
|
|
55639
|
+
ok: { type: "boolean" },
|
|
55640
|
+
pagination: { $ref: "#/components/schemas/pagination" },
|
|
55641
|
+
staff_members: {
|
|
55642
|
+
items: { $ref: "#/components/schemas/staff_member" },
|
|
55643
|
+
type: "array"
|
|
55644
|
+
}
|
|
55645
|
+
},
|
|
55646
|
+
required: ["staff_members", "pagination", "ok"],
|
|
55647
|
+
type: "object"
|
|
55648
|
+
}
|
|
55649
|
+
}
|
|
55650
|
+
},
|
|
55651
|
+
description: "OK"
|
|
55652
|
+
},
|
|
55653
|
+
400: { description: "Bad Request" },
|
|
55654
|
+
401: { description: "Unauthorized" }
|
|
55655
|
+
},
|
|
55656
|
+
security: [{ client_session_with_customer: [] }],
|
|
55657
|
+
summary: "/seam/customer/v1/staff_members/list",
|
|
55658
|
+
tags: [],
|
|
55659
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "staff_members"],
|
|
55660
|
+
"x-fern-sdk-method-name": "list",
|
|
55661
|
+
"x-fern-sdk-return-value": "staff_members",
|
|
55662
|
+
"x-response-key": "staff_members",
|
|
55663
|
+
"x-title": "List Staff Members for Customer Space",
|
|
55664
|
+
"x-undocumented": "Internal endpoint for customer portals."
|
|
55665
|
+
}
|
|
55666
|
+
},
|
|
55351
55667
|
"/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]": {
|
|
55352
55668
|
post: {
|
|
55353
55669
|
description: "Receives webhook events from external connector APIs and processes them into partner resources.",
|