@seamapi/types 1.624.0 → 1.625.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.
@@ -97759,6 +97759,223 @@ declare const _default: {
97759
97759
  'x-title': string;
97760
97760
  };
97761
97761
  };
97762
+ '/seam/customer/v1/staff_members/get': {
97763
+ get: {
97764
+ description: string;
97765
+ operationId: string;
97766
+ parameters: {
97767
+ in: string;
97768
+ name: string;
97769
+ required: boolean;
97770
+ schema: {
97771
+ description: string;
97772
+ type: string;
97773
+ };
97774
+ }[];
97775
+ responses: {
97776
+ 200: {
97777
+ content: {
97778
+ 'application/json': {
97779
+ schema: {
97780
+ properties: {
97781
+ access_grant: {
97782
+ $ref: string;
97783
+ };
97784
+ ok: {
97785
+ type: string;
97786
+ };
97787
+ spaces: {
97788
+ items: {
97789
+ properties: {
97790
+ child_space_keys: {
97791
+ items: {
97792
+ type: string;
97793
+ };
97794
+ type: string;
97795
+ };
97796
+ space_key: {
97797
+ type: string;
97798
+ };
97799
+ };
97800
+ required: string[];
97801
+ type: string;
97802
+ };
97803
+ type: string;
97804
+ };
97805
+ staff_member: {
97806
+ description: string;
97807
+ properties: {
97808
+ email_address: {
97809
+ description: string;
97810
+ type: string;
97811
+ };
97812
+ name: {
97813
+ description: string;
97814
+ type: string;
97815
+ };
97816
+ phone_number: {
97817
+ description: string;
97818
+ type: string;
97819
+ };
97820
+ space_keys: {
97821
+ description: string;
97822
+ items: {
97823
+ type: string;
97824
+ };
97825
+ type: string;
97826
+ };
97827
+ staff_member_key: {
97828
+ description: string;
97829
+ type: string;
97830
+ };
97831
+ user_identity_id: {
97832
+ format: string;
97833
+ type: string;
97834
+ };
97835
+ };
97836
+ required: string[];
97837
+ type: string;
97838
+ 'x-route-path': string;
97839
+ };
97840
+ };
97841
+ required: string[];
97842
+ type: string;
97843
+ };
97844
+ };
97845
+ };
97846
+ description: string;
97847
+ };
97848
+ 400: {
97849
+ description: string;
97850
+ };
97851
+ 401: {
97852
+ description: string;
97853
+ };
97854
+ };
97855
+ security: {
97856
+ client_session_with_customer: never[];
97857
+ }[];
97858
+ summary: string;
97859
+ tags: never[];
97860
+ 'x-fern-sdk-group-name': string[];
97861
+ 'x-fern-sdk-method-name': string;
97862
+ 'x-fern-sdk-return-value': string;
97863
+ 'x-response-key': string;
97864
+ 'x-title': string;
97865
+ 'x-undocumented': string;
97866
+ };
97867
+ post: {
97868
+ description: string;
97869
+ operationId: string;
97870
+ requestBody: {
97871
+ content: {
97872
+ 'application/json': {
97873
+ schema: {
97874
+ properties: {
97875
+ staff_member_key: {
97876
+ description: string;
97877
+ type: string;
97878
+ };
97879
+ };
97880
+ required: string[];
97881
+ type: string;
97882
+ };
97883
+ };
97884
+ };
97885
+ };
97886
+ responses: {
97887
+ 200: {
97888
+ content: {
97889
+ 'application/json': {
97890
+ schema: {
97891
+ properties: {
97892
+ access_grant: {
97893
+ $ref: string;
97894
+ };
97895
+ ok: {
97896
+ type: string;
97897
+ };
97898
+ spaces: {
97899
+ items: {
97900
+ properties: {
97901
+ child_space_keys: {
97902
+ items: {
97903
+ type: string;
97904
+ };
97905
+ type: string;
97906
+ };
97907
+ space_key: {
97908
+ type: string;
97909
+ };
97910
+ };
97911
+ required: string[];
97912
+ type: string;
97913
+ };
97914
+ type: string;
97915
+ };
97916
+ staff_member: {
97917
+ description: string;
97918
+ properties: {
97919
+ email_address: {
97920
+ description: string;
97921
+ type: string;
97922
+ };
97923
+ name: {
97924
+ description: string;
97925
+ type: string;
97926
+ };
97927
+ phone_number: {
97928
+ description: string;
97929
+ type: string;
97930
+ };
97931
+ space_keys: {
97932
+ description: string;
97933
+ items: {
97934
+ type: string;
97935
+ };
97936
+ type: string;
97937
+ };
97938
+ staff_member_key: {
97939
+ description: string;
97940
+ type: string;
97941
+ };
97942
+ user_identity_id: {
97943
+ format: string;
97944
+ type: string;
97945
+ };
97946
+ };
97947
+ required: string[];
97948
+ type: string;
97949
+ 'x-route-path': string;
97950
+ };
97951
+ };
97952
+ required: string[];
97953
+ type: string;
97954
+ };
97955
+ };
97956
+ };
97957
+ description: string;
97958
+ };
97959
+ 400: {
97960
+ description: string;
97961
+ };
97962
+ 401: {
97963
+ description: string;
97964
+ };
97965
+ };
97966
+ security: {
97967
+ client_session_with_customer: never[];
97968
+ }[];
97969
+ summary: string;
97970
+ tags: never[];
97971
+ 'x-fern-sdk-group-name': string[];
97972
+ 'x-fern-sdk-method-name': string;
97973
+ 'x-fern-sdk-return-value': string;
97974
+ 'x-response-key': string;
97975
+ 'x-title': string;
97976
+ 'x-undocumented': string;
97977
+ };
97978
+ };
97762
97979
  '/seam/customer/v1/staff_members/list': {
97763
97980
  get: {
97764
97981
  description: string;
@@ -169991,6 +170208,95 @@ type Routes = {
169991
170208
  }[];
169992
170209
  };
169993
170210
  };
170211
+ '/seam/customer/v1/staff_members/get': {
170212
+ route: '/seam/customer/v1/staff_members/get';
170213
+ method: 'GET' | 'POST';
170214
+ queryParams: {};
170215
+ jsonBody: {};
170216
+ commonParams: {
170217
+ /** Key of staff member to get. */
170218
+ staff_member_key: string;
170219
+ };
170220
+ formData: {};
170221
+ jsonResponse: {
170222
+ /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
170223
+ access_grant: {
170224
+ /** ID of the Seam workspace associated with the Access Grant. */
170225
+ workspace_id: string;
170226
+ /** ID of the Access Grant. */
170227
+ access_grant_id: string;
170228
+ /** Unique key for the access grant within the workspace. */
170229
+ access_grant_key?: string | undefined;
170230
+ /** Reservation key for the access grant. */
170231
+ reservation_key?: string | undefined;
170232
+ /** ID of user identity to which the Access Grant gives access. */
170233
+ user_identity_id: string;
170234
+ /**
170235
+ * @deprecated Use `space_ids`.*/
170236
+ location_ids: string[];
170237
+ /** IDs of the spaces to which the Access Grant gives access. */
170238
+ space_ids: string[];
170239
+ /** Access methods that the user requested for the Access Grant. */
170240
+ requested_access_methods: {
170241
+ /** Display name of the access method. */
170242
+ display_name: string;
170243
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
170244
+ mode: 'code' | 'card' | 'mobile_key';
170245
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
170246
+ code?: string | undefined;
170247
+ /** Date and time at which the requested access method was added to the Access Grant. */
170248
+ created_at: string;
170249
+ /** IDs of the access methods created for the requested access method. */
170250
+ created_access_method_ids: string[];
170251
+ }[];
170252
+ /** IDs of the access methods created for the Access Grant. */
170253
+ access_method_ids: string[];
170254
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
170255
+ client_session_token?: string | undefined;
170256
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
170257
+ name: string | null;
170258
+ /** Display name of the Access Grant. */
170259
+ display_name: string;
170260
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
170261
+ instant_key_url?: string | undefined;
170262
+ /** Date and time at which the Access Grant was created. */
170263
+ created_at: string;
170264
+ /** Date and time at which the Access Grant starts. */
170265
+ starts_at: string;
170266
+ /** Date and time at which the Access Grant ends. */
170267
+ ends_at: string | null;
170268
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
170269
+ warnings: {
170270
+ /** Date and time at which Seam created the warning. */
170271
+ created_at: string;
170272
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
170273
+ message: string;
170274
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
170275
+ warning_code: 'being_deleted';
170276
+ }[];
170277
+ /** ID of the customization profile associated with the Access Grant. */
170278
+ customization_profile_id?: string | undefined;
170279
+ };
170280
+ spaces: {
170281
+ space_key: string;
170282
+ child_space_keys?: string[] | undefined;
170283
+ }[];
170284
+ /** Represents a staff member for a specific customer. */
170285
+ staff_member: {
170286
+ /** Your unique identifier for the staff. */
170287
+ staff_member_key: string;
170288
+ /** Phone number associated with the user identity. */
170289
+ phone_number?: string | undefined;
170290
+ /** Email address associated with the user identity. */
170291
+ email_address?: string | undefined;
170292
+ /** Your display name for this user identity resource. */
170293
+ name: string;
170294
+ /** List of unique identifiers for the spaces the staff member is associated with. */
170295
+ space_keys?: string[] | undefined;
170296
+ user_identity_id?: string | undefined;
170297
+ };
170298
+ };
170299
+ };
169994
170300
  '/seam/customer/v1/staff_members/list': {
169995
170301
  route: '/seam/customer/v1/staff_members/list';
169996
170302
  method: 'GET' | 'POST';
package/dist/index.cjs CHANGED
@@ -56485,6 +56485,187 @@ var openapi_default = {
56485
56485
  "x-title": "List Spaces"
56486
56486
  }
56487
56487
  },
56488
+ "/seam/customer/v1/staff_members/get": {
56489
+ get: {
56490
+ description: "Returns a staff member for a specific customer.",
56491
+ operationId: "seamCustomerV1StaffMembersGetGet",
56492
+ parameters: [
56493
+ {
56494
+ in: "query",
56495
+ name: "staff_member_key",
56496
+ required: true,
56497
+ schema: {
56498
+ description: "Key of staff member to get.",
56499
+ type: "string"
56500
+ }
56501
+ }
56502
+ ],
56503
+ responses: {
56504
+ 200: {
56505
+ content: {
56506
+ "application/json": {
56507
+ schema: {
56508
+ properties: {
56509
+ access_grant: { $ref: "#/components/schemas/access_grant" },
56510
+ ok: { type: "boolean" },
56511
+ spaces: {
56512
+ items: {
56513
+ properties: {
56514
+ child_space_keys: {
56515
+ items: { type: "string" },
56516
+ type: "array"
56517
+ },
56518
+ space_key: { type: "string" }
56519
+ },
56520
+ required: ["space_key"],
56521
+ type: "object"
56522
+ },
56523
+ type: "array"
56524
+ },
56525
+ staff_member: {
56526
+ description: "Represents a staff member for a specific customer.",
56527
+ properties: {
56528
+ email_address: {
56529
+ description: "Email address associated with the user identity.",
56530
+ type: "string"
56531
+ },
56532
+ name: {
56533
+ description: "Your display name for this user identity resource.",
56534
+ type: "string"
56535
+ },
56536
+ phone_number: {
56537
+ description: "Phone number associated with the user identity.",
56538
+ type: "string"
56539
+ },
56540
+ space_keys: {
56541
+ description: "List of unique identifiers for the spaces the staff member is associated with.",
56542
+ items: { type: "string" },
56543
+ type: "array"
56544
+ },
56545
+ staff_member_key: {
56546
+ description: "Your unique identifier for the staff.",
56547
+ type: "string"
56548
+ },
56549
+ user_identity_id: { format: "uuid", type: "string" }
56550
+ },
56551
+ required: ["staff_member_key", "name"],
56552
+ type: "object",
56553
+ "x-route-path": "/seam/customer/v1/staff_members"
56554
+ }
56555
+ },
56556
+ required: ["access_grant", "spaces", "staff_member", "ok"],
56557
+ type: "object"
56558
+ }
56559
+ }
56560
+ },
56561
+ description: "OK"
56562
+ },
56563
+ 400: { description: "Bad Request" },
56564
+ 401: { description: "Unauthorized" }
56565
+ },
56566
+ security: [{ client_session_with_customer: [] }],
56567
+ summary: "/seam/customer/v1/staff_members/get",
56568
+ tags: [],
56569
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "staff_members"],
56570
+ "x-fern-sdk-method-name": "get",
56571
+ "x-fern-sdk-return-value": "staff_member",
56572
+ "x-response-key": "staff_member",
56573
+ "x-title": "Get Staff Member",
56574
+ "x-undocumented": "Internal endpoint for customer portals."
56575
+ },
56576
+ post: {
56577
+ description: "Returns a staff member for a specific customer.",
56578
+ operationId: "seamCustomerV1StaffMembersGetPost",
56579
+ requestBody: {
56580
+ content: {
56581
+ "application/json": {
56582
+ schema: {
56583
+ properties: {
56584
+ staff_member_key: {
56585
+ description: "Key of staff member to get.",
56586
+ type: "string"
56587
+ }
56588
+ },
56589
+ required: ["staff_member_key"],
56590
+ type: "object"
56591
+ }
56592
+ }
56593
+ }
56594
+ },
56595
+ responses: {
56596
+ 200: {
56597
+ content: {
56598
+ "application/json": {
56599
+ schema: {
56600
+ properties: {
56601
+ access_grant: { $ref: "#/components/schemas/access_grant" },
56602
+ ok: { type: "boolean" },
56603
+ spaces: {
56604
+ items: {
56605
+ properties: {
56606
+ child_space_keys: {
56607
+ items: { type: "string" },
56608
+ type: "array"
56609
+ },
56610
+ space_key: { type: "string" }
56611
+ },
56612
+ required: ["space_key"],
56613
+ type: "object"
56614
+ },
56615
+ type: "array"
56616
+ },
56617
+ staff_member: {
56618
+ description: "Represents a staff member for a specific customer.",
56619
+ properties: {
56620
+ email_address: {
56621
+ description: "Email address associated with the user identity.",
56622
+ type: "string"
56623
+ },
56624
+ name: {
56625
+ description: "Your display name for this user identity resource.",
56626
+ type: "string"
56627
+ },
56628
+ phone_number: {
56629
+ description: "Phone number associated with the user identity.",
56630
+ type: "string"
56631
+ },
56632
+ space_keys: {
56633
+ description: "List of unique identifiers for the spaces the staff member is associated with.",
56634
+ items: { type: "string" },
56635
+ type: "array"
56636
+ },
56637
+ staff_member_key: {
56638
+ description: "Your unique identifier for the staff.",
56639
+ type: "string"
56640
+ },
56641
+ user_identity_id: { format: "uuid", type: "string" }
56642
+ },
56643
+ required: ["staff_member_key", "name"],
56644
+ type: "object",
56645
+ "x-route-path": "/seam/customer/v1/staff_members"
56646
+ }
56647
+ },
56648
+ required: ["access_grant", "spaces", "staff_member", "ok"],
56649
+ type: "object"
56650
+ }
56651
+ }
56652
+ },
56653
+ description: "OK"
56654
+ },
56655
+ 400: { description: "Bad Request" },
56656
+ 401: { description: "Unauthorized" }
56657
+ },
56658
+ security: [{ client_session_with_customer: [] }],
56659
+ summary: "/seam/customer/v1/staff_members/get",
56660
+ tags: [],
56661
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "staff_members"],
56662
+ "x-fern-sdk-method-name": "get",
56663
+ "x-fern-sdk-return-value": "staff_member",
56664
+ "x-response-key": "staff_member",
56665
+ "x-title": "Get Staff Member",
56666
+ "x-undocumented": "Internal endpoint for customer portals."
56667
+ }
56668
+ },
56488
56669
  "/seam/customer/v1/staff_members/list": {
56489
56670
  get: {
56490
56671
  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.",