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