@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 +305 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +376 -1
- package/dist/index.cjs +305 -0
- package/dist/index.cjs.map +1 -1
- 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/openapi.d.ts +285 -0
- package/lib/seam/connect/openapi.js +258 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +68 -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/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 +277 -0
- package/src/lib/seam/connect/route-types.ts +72 -0
- package/src/lib/seam/connect/schemas.ts +1 -0
|
@@ -31804,6 +31804,19 @@ export type Routes = {
|
|
|
31804
31804
|
/** Your unique identifier for the user identity. */
|
|
31805
31805
|
user_identity_key: string;
|
|
31806
31806
|
}[] | undefined;
|
|
31807
|
+
/** List of staff members. */
|
|
31808
|
+
staff_members?: {
|
|
31809
|
+
/** Your display name for this user identity resource. */
|
|
31810
|
+
name: string;
|
|
31811
|
+
/** Email address associated with the user identity. */
|
|
31812
|
+
email_address?: string | undefined;
|
|
31813
|
+
/** Phone number associated with the user identity. */
|
|
31814
|
+
phone_number?: string | undefined;
|
|
31815
|
+
/** Your unique identifier for the staff. */
|
|
31816
|
+
staff_member_key: string;
|
|
31817
|
+
/** List of unique identifiers for the sites the staff member is associated with. */
|
|
31818
|
+
site_keys: string[];
|
|
31819
|
+
}[] | undefined;
|
|
31807
31820
|
/** List of reservations. */
|
|
31808
31821
|
reservations?: {
|
|
31809
31822
|
/** Your name for this access grant resource. */
|
|
@@ -32129,6 +32142,19 @@ export type Routes = {
|
|
|
32129
32142
|
/** Your unique identifier for the user identity. */
|
|
32130
32143
|
user_identity_key: string;
|
|
32131
32144
|
}[] | undefined;
|
|
32145
|
+
/** List of staff members. */
|
|
32146
|
+
staff_members?: {
|
|
32147
|
+
/** Your display name for this user identity resource. */
|
|
32148
|
+
name: string;
|
|
32149
|
+
/** Email address associated with the user identity. */
|
|
32150
|
+
email_address?: string | undefined;
|
|
32151
|
+
/** Phone number associated with the user identity. */
|
|
32152
|
+
phone_number?: string | undefined;
|
|
32153
|
+
/** Your unique identifier for the staff. */
|
|
32154
|
+
staff_member_key: string;
|
|
32155
|
+
/** List of unique identifiers for the sites the staff member is associated with. */
|
|
32156
|
+
site_keys: string[];
|
|
32157
|
+
}[] | undefined;
|
|
32132
32158
|
/** List of reservations. */
|
|
32133
32159
|
reservations?: {
|
|
32134
32160
|
/** Your name for this access grant resource. */
|
|
@@ -59154,6 +59180,48 @@ export type Routes = {
|
|
|
59154
59180
|
}[];
|
|
59155
59181
|
};
|
|
59156
59182
|
};
|
|
59183
|
+
'/seam/customer/v1/staff_members/list': {
|
|
59184
|
+
route: '/seam/customer/v1/staff_members/list';
|
|
59185
|
+
method: 'GET' | 'POST';
|
|
59186
|
+
queryParams: {};
|
|
59187
|
+
jsonBody: {};
|
|
59188
|
+
commonParams: {
|
|
59189
|
+
/** Filter staff members by space key. */
|
|
59190
|
+
space_key?: string | undefined;
|
|
59191
|
+
/** Filter staff members by space ID (UUID). */
|
|
59192
|
+
space_id?: string | undefined;
|
|
59193
|
+
/** Maximum number of records to return per page. */
|
|
59194
|
+
limit?: number;
|
|
59195
|
+
/** Timestamp by which to limit returned staff members. Returns staff members created before this timestamp. */
|
|
59196
|
+
created_before?: Date | undefined;
|
|
59197
|
+
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
|
|
59198
|
+
page_cursor?: ((string | undefined) | null) | undefined;
|
|
59199
|
+
};
|
|
59200
|
+
formData: {};
|
|
59201
|
+
jsonResponse: {
|
|
59202
|
+
staff_members: {
|
|
59203
|
+
/** Your display name for this user identity resource. */
|
|
59204
|
+
name: string;
|
|
59205
|
+
/** Email address associated with the user identity. */
|
|
59206
|
+
email_address?: string | undefined;
|
|
59207
|
+
/** Phone number associated with the user identity. */
|
|
59208
|
+
phone_number?: string | undefined;
|
|
59209
|
+
/** Your unique identifier for the staff. */
|
|
59210
|
+
staff_member_key: string;
|
|
59211
|
+
/** List of unique identifiers for the sites the staff member is associated with. */
|
|
59212
|
+
site_keys: string[];
|
|
59213
|
+
}[];
|
|
59214
|
+
/** Information about the current page of results. */
|
|
59215
|
+
pagination: {
|
|
59216
|
+
/** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
|
|
59217
|
+
next_page_cursor: string | null;
|
|
59218
|
+
/** Indicates whether there is another page of results after this one. */
|
|
59219
|
+
has_next_page: boolean;
|
|
59220
|
+
/** URL to get the next page of results. */
|
|
59221
|
+
next_page_url: string | null;
|
|
59222
|
+
};
|
|
59223
|
+
};
|
|
59224
|
+
};
|
|
59157
59225
|
'/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]': {
|
|
59158
59226
|
route: '/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]';
|
|
59159
59227
|
method: 'POST';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, batch, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, customization_profile, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, batch, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, customization_profile, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, staff_member_resource, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, batch, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, customization_profile, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, batch, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, customization_profile, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, staff_member_resource, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,KAAK,EACL,MAAM,EACN,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,KAAK,EACL,MAAM,EACN,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
guest_resource,
|
|
22
22
|
resident_resource,
|
|
23
|
+
staff_member_resource,
|
|
23
24
|
tenant_resource,
|
|
24
25
|
user_identity_resource,
|
|
25
26
|
user_resource,
|
|
@@ -82,6 +83,10 @@ export const customer_data = z.object({
|
|
|
82
83
|
.array(user_identity_resource)
|
|
83
84
|
.optional()
|
|
84
85
|
.describe('List of user identities.'),
|
|
86
|
+
staff_members: z
|
|
87
|
+
.array(staff_member_resource)
|
|
88
|
+
.optional()
|
|
89
|
+
.describe('List of staff members.'),
|
|
85
90
|
|
|
86
91
|
// Access grant resources
|
|
87
92
|
reservations: z
|
|
@@ -32,6 +32,23 @@ export const user_resource = base_user_identity_resource.extend({
|
|
|
32
32
|
user_key: z.string().describe('Your unique identifier for the user.'),
|
|
33
33
|
})
|
|
34
34
|
|
|
35
|
+
// staff resource
|
|
36
|
+
export const staff_member_resource = base_user_identity_resource.extend({
|
|
37
|
+
staff_member_key: z
|
|
38
|
+
.string()
|
|
39
|
+
.describe('Your unique identifier for the staff.'),
|
|
40
|
+
site_keys: z
|
|
41
|
+
.array(z.string())
|
|
42
|
+
.describe(
|
|
43
|
+
'List of unique identifiers for the sites the staff member is associated with.',
|
|
44
|
+
),
|
|
45
|
+
}).describe(`
|
|
46
|
+
---
|
|
47
|
+
route_path: /seam/customer/v1/staff_members
|
|
48
|
+
---
|
|
49
|
+
Represents a staff member for a specific customer.
|
|
50
|
+
`)
|
|
51
|
+
|
|
35
52
|
export const user_identity_resource = base_user_identity_resource.extend({
|
|
36
53
|
user_identity_key: z
|
|
37
54
|
.string()
|
|
@@ -45,6 +62,7 @@ export const user_identity_resource_union = z.union([
|
|
|
45
62
|
resident_resource,
|
|
46
63
|
user_resource,
|
|
47
64
|
user_identity_resource,
|
|
65
|
+
staff_member_resource,
|
|
48
66
|
])
|
|
49
67
|
|
|
50
68
|
// All user identity key aliases for use in references
|
|
@@ -20864,6 +20864,36 @@ export default {
|
|
|
20864
20864
|
'x-draft': 'Early access.',
|
|
20865
20865
|
'x-route-path': '/spaces',
|
|
20866
20866
|
},
|
|
20867
|
+
staff_member: {
|
|
20868
|
+
description: 'Represents a staff member for a specific customer.',
|
|
20869
|
+
properties: {
|
|
20870
|
+
email_address: {
|
|
20871
|
+
description: 'Email address associated with the user identity.',
|
|
20872
|
+
type: 'string',
|
|
20873
|
+
},
|
|
20874
|
+
name: {
|
|
20875
|
+
description: 'Your display name for this user identity resource.',
|
|
20876
|
+
type: 'string',
|
|
20877
|
+
},
|
|
20878
|
+
phone_number: {
|
|
20879
|
+
description: 'Phone number associated with the user identity.',
|
|
20880
|
+
type: 'string',
|
|
20881
|
+
},
|
|
20882
|
+
site_keys: {
|
|
20883
|
+
description:
|
|
20884
|
+
'List of unique identifiers for the sites the staff member is associated with.',
|
|
20885
|
+
items: { type: 'string' },
|
|
20886
|
+
type: 'array',
|
|
20887
|
+
},
|
|
20888
|
+
staff_member_key: {
|
|
20889
|
+
description: 'Your unique identifier for the staff.',
|
|
20890
|
+
type: 'string',
|
|
20891
|
+
},
|
|
20892
|
+
},
|
|
20893
|
+
required: ['name', 'staff_member_key', 'site_keys'],
|
|
20894
|
+
type: 'object',
|
|
20895
|
+
'x-route-path': '/seam/customer/v1/staff_members',
|
|
20896
|
+
},
|
|
20867
20897
|
thermostat_daily_program: {
|
|
20868
20898
|
description:
|
|
20869
20899
|
'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.',
|
|
@@ -41657,6 +41687,49 @@ export default {
|
|
|
41657
41687
|
},
|
|
41658
41688
|
type: 'array',
|
|
41659
41689
|
},
|
|
41690
|
+
staff_members: {
|
|
41691
|
+
description: 'List of staff members.',
|
|
41692
|
+
items: {
|
|
41693
|
+
description:
|
|
41694
|
+
'Represents a staff member for a specific customer.',
|
|
41695
|
+
properties: {
|
|
41696
|
+
email_address: {
|
|
41697
|
+
description:
|
|
41698
|
+
'Email address associated with the user identity.',
|
|
41699
|
+
type: 'string',
|
|
41700
|
+
},
|
|
41701
|
+
name: {
|
|
41702
|
+
description:
|
|
41703
|
+
'Your display name for this user identity resource.',
|
|
41704
|
+
type: 'string',
|
|
41705
|
+
},
|
|
41706
|
+
phone_number: {
|
|
41707
|
+
description:
|
|
41708
|
+
'Phone number associated with the user identity.',
|
|
41709
|
+
type: 'string',
|
|
41710
|
+
},
|
|
41711
|
+
site_keys: {
|
|
41712
|
+
description:
|
|
41713
|
+
'List of unique identifiers for the sites the staff member is associated with.',
|
|
41714
|
+
items: { type: 'string' },
|
|
41715
|
+
type: 'array',
|
|
41716
|
+
},
|
|
41717
|
+
staff_member_key: {
|
|
41718
|
+
description:
|
|
41719
|
+
'Your unique identifier for the staff.',
|
|
41720
|
+
type: 'string',
|
|
41721
|
+
},
|
|
41722
|
+
},
|
|
41723
|
+
required: [
|
|
41724
|
+
'name',
|
|
41725
|
+
'staff_member_key',
|
|
41726
|
+
'site_keys',
|
|
41727
|
+
],
|
|
41728
|
+
type: 'object',
|
|
41729
|
+
'x-route-path': '/seam/customer/v1/staff_members',
|
|
41730
|
+
},
|
|
41731
|
+
type: 'array',
|
|
41732
|
+
},
|
|
41660
41733
|
tenants: {
|
|
41661
41734
|
description: 'List of tenants.',
|
|
41662
41735
|
items: {
|
|
@@ -42732,6 +42805,44 @@ export default {
|
|
|
42732
42805
|
},
|
|
42733
42806
|
type: 'array',
|
|
42734
42807
|
},
|
|
42808
|
+
staff_members: {
|
|
42809
|
+
description: 'List of staff members.',
|
|
42810
|
+
items: {
|
|
42811
|
+
description:
|
|
42812
|
+
'Represents a staff member for a specific customer.',
|
|
42813
|
+
properties: {
|
|
42814
|
+
email_address: {
|
|
42815
|
+
description:
|
|
42816
|
+
'Email address associated with the user identity.',
|
|
42817
|
+
type: 'string',
|
|
42818
|
+
},
|
|
42819
|
+
name: {
|
|
42820
|
+
description:
|
|
42821
|
+
'Your display name for this user identity resource.',
|
|
42822
|
+
type: 'string',
|
|
42823
|
+
},
|
|
42824
|
+
phone_number: {
|
|
42825
|
+
description:
|
|
42826
|
+
'Phone number associated with the user identity.',
|
|
42827
|
+
type: 'string',
|
|
42828
|
+
},
|
|
42829
|
+
site_keys: {
|
|
42830
|
+
description:
|
|
42831
|
+
'List of unique identifiers for the sites the staff member is associated with.',
|
|
42832
|
+
items: { type: 'string' },
|
|
42833
|
+
type: 'array',
|
|
42834
|
+
},
|
|
42835
|
+
staff_member_key: {
|
|
42836
|
+
description: 'Your unique identifier for the staff.',
|
|
42837
|
+
type: 'string',
|
|
42838
|
+
},
|
|
42839
|
+
},
|
|
42840
|
+
required: ['name', 'staff_member_key', 'site_keys'],
|
|
42841
|
+
type: 'object',
|
|
42842
|
+
'x-route-path': '/seam/customer/v1/staff_members',
|
|
42843
|
+
},
|
|
42844
|
+
type: 'array',
|
|
42845
|
+
},
|
|
42735
42846
|
tenants: {
|
|
42736
42847
|
description: 'List of tenants.',
|
|
42737
42848
|
items: {
|
|
@@ -53782,6 +53893,172 @@ export default {
|
|
|
53782
53893
|
'x-title': 'List Spaces',
|
|
53783
53894
|
},
|
|
53784
53895
|
},
|
|
53896
|
+
'/seam/customer/v1/staff_members/list': {
|
|
53897
|
+
get: {
|
|
53898
|
+
description:
|
|
53899
|
+
'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.',
|
|
53900
|
+
operationId: 'seamCustomerV1StaffMembersListGet',
|
|
53901
|
+
parameters: [
|
|
53902
|
+
{
|
|
53903
|
+
in: 'query',
|
|
53904
|
+
name: 'space_key',
|
|
53905
|
+
schema: {
|
|
53906
|
+
description: 'Filter staff members by space key.',
|
|
53907
|
+
type: 'string',
|
|
53908
|
+
},
|
|
53909
|
+
},
|
|
53910
|
+
{
|
|
53911
|
+
in: 'query',
|
|
53912
|
+
name: 'space_id',
|
|
53913
|
+
schema: {
|
|
53914
|
+
description: 'Filter staff members by space ID (UUID).',
|
|
53915
|
+
format: 'uuid',
|
|
53916
|
+
type: 'string',
|
|
53917
|
+
},
|
|
53918
|
+
},
|
|
53919
|
+
{
|
|
53920
|
+
in: 'query',
|
|
53921
|
+
name: 'limit',
|
|
53922
|
+
schema: {
|
|
53923
|
+
default: 500,
|
|
53924
|
+
description: 'Maximum number of records to return per page.',
|
|
53925
|
+
exclusiveMinimum: true,
|
|
53926
|
+
minimum: 0,
|
|
53927
|
+
type: 'integer',
|
|
53928
|
+
},
|
|
53929
|
+
},
|
|
53930
|
+
{
|
|
53931
|
+
in: 'query',
|
|
53932
|
+
name: 'created_before',
|
|
53933
|
+
schema: {
|
|
53934
|
+
description:
|
|
53935
|
+
'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
|
|
53936
|
+
format: 'date-time',
|
|
53937
|
+
type: 'string',
|
|
53938
|
+
},
|
|
53939
|
+
},
|
|
53940
|
+
{
|
|
53941
|
+
in: 'query',
|
|
53942
|
+
name: 'page_cursor',
|
|
53943
|
+
schema: {
|
|
53944
|
+
description:
|
|
53945
|
+
"Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
53946
|
+
nullable: true,
|
|
53947
|
+
type: 'string',
|
|
53948
|
+
},
|
|
53949
|
+
},
|
|
53950
|
+
],
|
|
53951
|
+
responses: {
|
|
53952
|
+
200: {
|
|
53953
|
+
content: {
|
|
53954
|
+
'application/json': {
|
|
53955
|
+
schema: {
|
|
53956
|
+
properties: {
|
|
53957
|
+
ok: { type: 'boolean' },
|
|
53958
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
53959
|
+
staff_members: {
|
|
53960
|
+
items: { $ref: '#/components/schemas/staff_member' },
|
|
53961
|
+
type: 'array',
|
|
53962
|
+
},
|
|
53963
|
+
},
|
|
53964
|
+
required: ['staff_members', 'pagination', 'ok'],
|
|
53965
|
+
type: 'object',
|
|
53966
|
+
},
|
|
53967
|
+
},
|
|
53968
|
+
},
|
|
53969
|
+
description: 'OK',
|
|
53970
|
+
},
|
|
53971
|
+
400: { description: 'Bad Request' },
|
|
53972
|
+
401: { description: 'Unauthorized' },
|
|
53973
|
+
},
|
|
53974
|
+
security: [{ client_session_with_customer: [] }],
|
|
53975
|
+
summary: '/seam/customer/v1/staff_members/list',
|
|
53976
|
+
tags: [],
|
|
53977
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
|
|
53978
|
+
'x-fern-sdk-method-name': 'list',
|
|
53979
|
+
'x-fern-sdk-return-value': 'staff_members',
|
|
53980
|
+
'x-response-key': 'staff_members',
|
|
53981
|
+
'x-title': 'List Staff Members for Customer Space',
|
|
53982
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
53983
|
+
},
|
|
53984
|
+
post: {
|
|
53985
|
+
description:
|
|
53986
|
+
'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.',
|
|
53987
|
+
operationId: 'seamCustomerV1StaffMembersListPost',
|
|
53988
|
+
requestBody: {
|
|
53989
|
+
content: {
|
|
53990
|
+
'application/json': {
|
|
53991
|
+
schema: {
|
|
53992
|
+
properties: {
|
|
53993
|
+
created_before: {
|
|
53994
|
+
description:
|
|
53995
|
+
'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
|
|
53996
|
+
format: 'date-time',
|
|
53997
|
+
type: 'string',
|
|
53998
|
+
},
|
|
53999
|
+
limit: {
|
|
54000
|
+
default: 500,
|
|
54001
|
+
description:
|
|
54002
|
+
'Maximum number of records to return per page.',
|
|
54003
|
+
exclusiveMinimum: true,
|
|
54004
|
+
minimum: 0,
|
|
54005
|
+
type: 'integer',
|
|
54006
|
+
},
|
|
54007
|
+
page_cursor: {
|
|
54008
|
+
description:
|
|
54009
|
+
"Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
54010
|
+
nullable: true,
|
|
54011
|
+
type: 'string',
|
|
54012
|
+
},
|
|
54013
|
+
space_id: {
|
|
54014
|
+
description: 'Filter staff members by space ID (UUID).',
|
|
54015
|
+
format: 'uuid',
|
|
54016
|
+
type: 'string',
|
|
54017
|
+
},
|
|
54018
|
+
space_key: {
|
|
54019
|
+
description: 'Filter staff members by space key.',
|
|
54020
|
+
type: 'string',
|
|
54021
|
+
},
|
|
54022
|
+
},
|
|
54023
|
+
type: 'object',
|
|
54024
|
+
},
|
|
54025
|
+
},
|
|
54026
|
+
},
|
|
54027
|
+
},
|
|
54028
|
+
responses: {
|
|
54029
|
+
200: {
|
|
54030
|
+
content: {
|
|
54031
|
+
'application/json': {
|
|
54032
|
+
schema: {
|
|
54033
|
+
properties: {
|
|
54034
|
+
ok: { type: 'boolean' },
|
|
54035
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
54036
|
+
staff_members: {
|
|
54037
|
+
items: { $ref: '#/components/schemas/staff_member' },
|
|
54038
|
+
type: 'array',
|
|
54039
|
+
},
|
|
54040
|
+
},
|
|
54041
|
+
required: ['staff_members', 'pagination', 'ok'],
|
|
54042
|
+
type: 'object',
|
|
54043
|
+
},
|
|
54044
|
+
},
|
|
54045
|
+
},
|
|
54046
|
+
description: 'OK',
|
|
54047
|
+
},
|
|
54048
|
+
400: { description: 'Bad Request' },
|
|
54049
|
+
401: { description: 'Unauthorized' },
|
|
54050
|
+
},
|
|
54051
|
+
security: [{ client_session_with_customer: [] }],
|
|
54052
|
+
summary: '/seam/customer/v1/staff_members/list',
|
|
54053
|
+
tags: [],
|
|
54054
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
|
|
54055
|
+
'x-fern-sdk-method-name': 'list',
|
|
54056
|
+
'x-fern-sdk-return-value': 'staff_members',
|
|
54057
|
+
'x-response-key': 'staff_members',
|
|
54058
|
+
'x-title': 'List Staff Members for Customer Space',
|
|
54059
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
54060
|
+
},
|
|
54061
|
+
},
|
|
53785
54062
|
'/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]': {
|
|
53786
54063
|
post: {
|
|
53787
54064
|
description:
|
|
@@ -36966,6 +36966,21 @@ export type Routes = {
|
|
|
36966
36966
|
user_identity_key: string
|
|
36967
36967
|
}[]
|
|
36968
36968
|
| undefined
|
|
36969
|
+
/** List of staff members. */
|
|
36970
|
+
staff_members?:
|
|
36971
|
+
| {
|
|
36972
|
+
/** Your display name for this user identity resource. */
|
|
36973
|
+
name: string
|
|
36974
|
+
/** Email address associated with the user identity. */
|
|
36975
|
+
email_address?: string | undefined
|
|
36976
|
+
/** Phone number associated with the user identity. */
|
|
36977
|
+
phone_number?: string | undefined
|
|
36978
|
+
/** Your unique identifier for the staff. */
|
|
36979
|
+
staff_member_key: string
|
|
36980
|
+
/** List of unique identifiers for the sites the staff member is associated with. */
|
|
36981
|
+
site_keys: string[]
|
|
36982
|
+
}[]
|
|
36983
|
+
| undefined
|
|
36969
36984
|
/** List of reservations. */
|
|
36970
36985
|
reservations?:
|
|
36971
36986
|
| {
|
|
@@ -37328,6 +37343,21 @@ export type Routes = {
|
|
|
37328
37343
|
user_identity_key: string
|
|
37329
37344
|
}[]
|
|
37330
37345
|
| undefined
|
|
37346
|
+
/** List of staff members. */
|
|
37347
|
+
staff_members?:
|
|
37348
|
+
| {
|
|
37349
|
+
/** Your display name for this user identity resource. */
|
|
37350
|
+
name: string
|
|
37351
|
+
/** Email address associated with the user identity. */
|
|
37352
|
+
email_address?: string | undefined
|
|
37353
|
+
/** Phone number associated with the user identity. */
|
|
37354
|
+
phone_number?: string | undefined
|
|
37355
|
+
/** Your unique identifier for the staff. */
|
|
37356
|
+
staff_member_key: string
|
|
37357
|
+
/** List of unique identifiers for the sites the staff member is associated with. */
|
|
37358
|
+
site_keys: string[]
|
|
37359
|
+
}[]
|
|
37360
|
+
| undefined
|
|
37331
37361
|
/** List of reservations. */
|
|
37332
37362
|
reservations?:
|
|
37333
37363
|
| {
|
|
@@ -70477,6 +70507,48 @@ export type Routes = {
|
|
|
70477
70507
|
}[]
|
|
70478
70508
|
}
|
|
70479
70509
|
}
|
|
70510
|
+
'/seam/customer/v1/staff_members/list': {
|
|
70511
|
+
route: '/seam/customer/v1/staff_members/list'
|
|
70512
|
+
method: 'GET' | 'POST'
|
|
70513
|
+
queryParams: {}
|
|
70514
|
+
jsonBody: {}
|
|
70515
|
+
commonParams: {
|
|
70516
|
+
/** Filter staff members by space key. */
|
|
70517
|
+
space_key?: string | undefined
|
|
70518
|
+
/** Filter staff members by space ID (UUID). */
|
|
70519
|
+
space_id?: string | undefined
|
|
70520
|
+
/** Maximum number of records to return per page. */
|
|
70521
|
+
limit?: number
|
|
70522
|
+
/** Timestamp by which to limit returned staff members. Returns staff members created before this timestamp. */
|
|
70523
|
+
created_before?: Date | undefined
|
|
70524
|
+
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
|
|
70525
|
+
page_cursor?: ((string | undefined) | null) | undefined
|
|
70526
|
+
}
|
|
70527
|
+
formData: {}
|
|
70528
|
+
jsonResponse: {
|
|
70529
|
+
staff_members: {
|
|
70530
|
+
/** Your display name for this user identity resource. */
|
|
70531
|
+
name: string
|
|
70532
|
+
/** Email address associated with the user identity. */
|
|
70533
|
+
email_address?: string | undefined
|
|
70534
|
+
/** Phone number associated with the user identity. */
|
|
70535
|
+
phone_number?: string | undefined
|
|
70536
|
+
/** Your unique identifier for the staff. */
|
|
70537
|
+
staff_member_key: string
|
|
70538
|
+
/** List of unique identifiers for the sites the staff member is associated with. */
|
|
70539
|
+
site_keys: string[]
|
|
70540
|
+
}[]
|
|
70541
|
+
/** Information about the current page of results. */
|
|
70542
|
+
pagination: {
|
|
70543
|
+
/** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
|
|
70544
|
+
next_page_cursor: string | null
|
|
70545
|
+
/** Indicates whether there is another page of results after this one. */
|
|
70546
|
+
has_next_page: boolean
|
|
70547
|
+
/** URL to get the next page of results. */
|
|
70548
|
+
next_page_url: string | null
|
|
70549
|
+
}
|
|
70550
|
+
}
|
|
70551
|
+
}
|
|
70480
70552
|
'/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]': {
|
|
70481
70553
|
route: '/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]'
|
|
70482
70554
|
method: 'POST'
|