@seamapi/types 1.605.0 → 1.606.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
@@ -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,
@@ -5705,6 +5706,52 @@ var bridge_client_session = zod.z.object({
5705
5706
  ---
5706
5707
  Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
5707
5708
  `);
5709
+ var base_user_identity_resource = zod.z.object({
5710
+ name: zod.z.string().describe("Your display name for this user identity resource."),
5711
+ email_address: zod.z.string().optional().describe("Email address associated with the user identity."),
5712
+ phone_number: zod.z.string().optional().describe("Phone number associated with the user identity.")
5713
+ });
5714
+ var guest_resource = base_user_identity_resource.extend({
5715
+ guest_key: zod.z.string().describe("Your unique identifier for the guest.")
5716
+ });
5717
+ var tenant_resource = base_user_identity_resource.extend({
5718
+ tenant_key: zod.z.string().describe("Your unique identifier for the tenant.")
5719
+ });
5720
+ var resident_resource = base_user_identity_resource.extend({
5721
+ resident_key: zod.z.string().describe("Your unique identifier for the resident.")
5722
+ });
5723
+ var user_resource = base_user_identity_resource.extend({
5724
+ user_key: zod.z.string().describe("Your unique identifier for the user.")
5725
+ });
5726
+ var staff_member_resource = base_user_identity_resource.extend({
5727
+ staff_member_key: zod.z.string().describe("Your unique identifier for the staff."),
5728
+ site_keys: zod.z.array(zod.z.string()).describe(
5729
+ "List of unique identifiers for the sites the staff member is associated with."
5730
+ )
5731
+ }).describe(`
5732
+ ---
5733
+ route_path: /seam/customer/v1/staff_members
5734
+ ---
5735
+ Represents a staff member for a specific customer.
5736
+ `);
5737
+ var user_identity_resource = base_user_identity_resource.extend({
5738
+ user_identity_key: zod.z.string().describe("Your unique identifier for the user identity.")
5739
+ });
5740
+ zod.z.union([
5741
+ guest_resource,
5742
+ tenant_resource,
5743
+ resident_resource,
5744
+ user_resource,
5745
+ user_identity_resource,
5746
+ staff_member_resource
5747
+ ]);
5748
+ zod.z.union([
5749
+ zod.z.object({ guest_key: zod.z.string() }),
5750
+ zod.z.object({ tenant_key: zod.z.string() }),
5751
+ zod.z.object({ resident_key: zod.z.string() }),
5752
+ zod.z.object({ user_key: zod.z.string() }),
5753
+ zod.z.object({ user_identity_key: zod.z.string() })
5754
+ ]);
5708
5755
  var pagination = zod.z.object({
5709
5756
  next_page_cursor: zod.z.string().base64().nullable().describe(
5710
5757
  "Opaque value that can be used to select the next page of results via the `page_cursor` parameter."
@@ -24528,6 +24575,35 @@ var openapi_default = {
24528
24575
  "x-draft": "Early access.",
24529
24576
  "x-route-path": "/spaces"
24530
24577
  },
24578
+ staff_member: {
24579
+ description: "Represents a staff member for a specific customer.",
24580
+ properties: {
24581
+ email_address: {
24582
+ description: "Email address associated with the user identity.",
24583
+ type: "string"
24584
+ },
24585
+ name: {
24586
+ description: "Your display name for this user identity resource.",
24587
+ type: "string"
24588
+ },
24589
+ phone_number: {
24590
+ description: "Phone number associated with the user identity.",
24591
+ type: "string"
24592
+ },
24593
+ site_keys: {
24594
+ description: "List of unique identifiers for the sites the staff member is associated with.",
24595
+ items: { type: "string" },
24596
+ type: "array"
24597
+ },
24598
+ staff_member_key: {
24599
+ description: "Your unique identifier for the staff.",
24600
+ type: "string"
24601
+ }
24602
+ },
24603
+ required: ["name", "staff_member_key", "site_keys"],
24604
+ type: "object",
24605
+ "x-route-path": "/seam/customer/v1/staff_members"
24606
+ },
24531
24607
  thermostat_daily_program: {
24532
24608
  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
24609
  properties: {
@@ -43730,6 +43806,43 @@ var openapi_default = {
43730
43806
  },
43731
43807
  type: "array"
43732
43808
  },
43809
+ staff_members: {
43810
+ description: "List of staff members.",
43811
+ items: {
43812
+ description: "Represents a staff member for a specific customer.",
43813
+ properties: {
43814
+ email_address: {
43815
+ description: "Email address associated with the user identity.",
43816
+ type: "string"
43817
+ },
43818
+ name: {
43819
+ description: "Your display name for this user identity resource.",
43820
+ type: "string"
43821
+ },
43822
+ phone_number: {
43823
+ description: "Phone number associated with the user identity.",
43824
+ type: "string"
43825
+ },
43826
+ site_keys: {
43827
+ description: "List of unique identifiers for the sites the staff member is associated with.",
43828
+ items: { type: "string" },
43829
+ type: "array"
43830
+ },
43831
+ staff_member_key: {
43832
+ description: "Your unique identifier for the staff.",
43833
+ type: "string"
43834
+ }
43835
+ },
43836
+ required: [
43837
+ "name",
43838
+ "staff_member_key",
43839
+ "site_keys"
43840
+ ],
43841
+ type: "object",
43842
+ "x-route-path": "/seam/customer/v1/staff_members"
43843
+ },
43844
+ type: "array"
43845
+ },
43733
43846
  tenants: {
43734
43847
  description: "List of tenants.",
43735
43848
  items: {
@@ -44709,6 +44822,39 @@ var openapi_default = {
44709
44822
  },
44710
44823
  type: "array"
44711
44824
  },
44825
+ staff_members: {
44826
+ description: "List of staff members.",
44827
+ items: {
44828
+ description: "Represents a staff member for a specific customer.",
44829
+ properties: {
44830
+ email_address: {
44831
+ description: "Email address associated with the user identity.",
44832
+ type: "string"
44833
+ },
44834
+ name: {
44835
+ description: "Your display name for this user identity resource.",
44836
+ type: "string"
44837
+ },
44838
+ phone_number: {
44839
+ description: "Phone number associated with the user identity.",
44840
+ type: "string"
44841
+ },
44842
+ site_keys: {
44843
+ description: "List of unique identifiers for the sites the staff member is associated with.",
44844
+ items: { type: "string" },
44845
+ type: "array"
44846
+ },
44847
+ staff_member_key: {
44848
+ description: "Your unique identifier for the staff.",
44849
+ type: "string"
44850
+ }
44851
+ },
44852
+ required: ["name", "staff_member_key", "site_keys"],
44853
+ type: "object",
44854
+ "x-route-path": "/seam/customer/v1/staff_members"
44855
+ },
44856
+ type: "array"
44857
+ },
44712
44858
  tenants: {
44713
44859
  description: "List of tenants.",
44714
44860
  items: {
@@ -55348,6 +55494,165 @@ var openapi_default = {
55348
55494
  "x-title": "List Spaces"
55349
55495
  }
55350
55496
  },
55497
+ "/seam/customer/v1/staff_members/list": {
55498
+ get: {
55499
+ 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.",
55500
+ operationId: "seamCustomerV1StaffMembersListGet",
55501
+ parameters: [
55502
+ {
55503
+ in: "query",
55504
+ name: "space_key",
55505
+ schema: {
55506
+ description: "Filter staff members by space key.",
55507
+ type: "string"
55508
+ }
55509
+ },
55510
+ {
55511
+ in: "query",
55512
+ name: "space_id",
55513
+ schema: {
55514
+ description: "Filter staff members by space ID (UUID).",
55515
+ format: "uuid",
55516
+ type: "string"
55517
+ }
55518
+ },
55519
+ {
55520
+ in: "query",
55521
+ name: "limit",
55522
+ schema: {
55523
+ default: 500,
55524
+ description: "Maximum number of records to return per page.",
55525
+ exclusiveMinimum: true,
55526
+ minimum: 0,
55527
+ type: "integer"
55528
+ }
55529
+ },
55530
+ {
55531
+ in: "query",
55532
+ name: "created_before",
55533
+ schema: {
55534
+ description: "Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.",
55535
+ format: "date-time",
55536
+ type: "string"
55537
+ }
55538
+ },
55539
+ {
55540
+ in: "query",
55541
+ name: "page_cursor",
55542
+ schema: {
55543
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
55544
+ nullable: true,
55545
+ type: "string"
55546
+ }
55547
+ }
55548
+ ],
55549
+ responses: {
55550
+ 200: {
55551
+ content: {
55552
+ "application/json": {
55553
+ schema: {
55554
+ properties: {
55555
+ ok: { type: "boolean" },
55556
+ pagination: { $ref: "#/components/schemas/pagination" },
55557
+ staff_members: {
55558
+ items: { $ref: "#/components/schemas/staff_member" },
55559
+ type: "array"
55560
+ }
55561
+ },
55562
+ required: ["staff_members", "pagination", "ok"],
55563
+ type: "object"
55564
+ }
55565
+ }
55566
+ },
55567
+ description: "OK"
55568
+ },
55569
+ 400: { description: "Bad Request" },
55570
+ 401: { description: "Unauthorized" }
55571
+ },
55572
+ security: [{ client_session_with_customer: [] }],
55573
+ summary: "/seam/customer/v1/staff_members/list",
55574
+ tags: [],
55575
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "staff_members"],
55576
+ "x-fern-sdk-method-name": "list",
55577
+ "x-fern-sdk-return-value": "staff_members",
55578
+ "x-response-key": "staff_members",
55579
+ "x-title": "List Staff Members for Customer Space",
55580
+ "x-undocumented": "Internal endpoint for customer portals."
55581
+ },
55582
+ post: {
55583
+ 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.",
55584
+ operationId: "seamCustomerV1StaffMembersListPost",
55585
+ requestBody: {
55586
+ content: {
55587
+ "application/json": {
55588
+ schema: {
55589
+ properties: {
55590
+ created_before: {
55591
+ description: "Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.",
55592
+ format: "date-time",
55593
+ type: "string"
55594
+ },
55595
+ limit: {
55596
+ default: 500,
55597
+ description: "Maximum number of records to return per page.",
55598
+ exclusiveMinimum: true,
55599
+ minimum: 0,
55600
+ type: "integer"
55601
+ },
55602
+ page_cursor: {
55603
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
55604
+ nullable: true,
55605
+ type: "string"
55606
+ },
55607
+ space_id: {
55608
+ description: "Filter staff members by space ID (UUID).",
55609
+ format: "uuid",
55610
+ type: "string"
55611
+ },
55612
+ space_key: {
55613
+ description: "Filter staff members by space key.",
55614
+ type: "string"
55615
+ }
55616
+ },
55617
+ type: "object"
55618
+ }
55619
+ }
55620
+ }
55621
+ },
55622
+ responses: {
55623
+ 200: {
55624
+ content: {
55625
+ "application/json": {
55626
+ schema: {
55627
+ properties: {
55628
+ ok: { type: "boolean" },
55629
+ pagination: { $ref: "#/components/schemas/pagination" },
55630
+ staff_members: {
55631
+ items: { $ref: "#/components/schemas/staff_member" },
55632
+ type: "array"
55633
+ }
55634
+ },
55635
+ required: ["staff_members", "pagination", "ok"],
55636
+ type: "object"
55637
+ }
55638
+ }
55639
+ },
55640
+ description: "OK"
55641
+ },
55642
+ 400: { description: "Bad Request" },
55643
+ 401: { description: "Unauthorized" }
55644
+ },
55645
+ security: [{ client_session_with_customer: [] }],
55646
+ summary: "/seam/customer/v1/staff_members/list",
55647
+ tags: [],
55648
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "staff_members"],
55649
+ "x-fern-sdk-method-name": "list",
55650
+ "x-fern-sdk-return-value": "staff_members",
55651
+ "x-response-key": "staff_members",
55652
+ "x-title": "List Staff Members for Customer Space",
55653
+ "x-undocumented": "Internal endpoint for customer portals."
55654
+ }
55655
+ },
55351
55656
  "/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]": {
55352
55657
  post: {
55353
55658
  description: "Receives webhook events from external connector APIs and processes them into partner resources.",