@seamapi/types 1.660.0 → 1.662.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 +197 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +258 -0
- package/dist/index.cjs +197 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +226 -0
- package/lib/seam/connect/openapi.js +196 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +32 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +199 -1
- package/src/lib/seam/connect/route-types.ts +32 -0
|
@@ -26291,6 +26291,7 @@ export type Routes = {
|
|
|
26291
26291
|
method: 'POST';
|
|
26292
26292
|
queryParams: {};
|
|
26293
26293
|
jsonBody: {
|
|
26294
|
+
/** ID of the connected account you want to simulate as disconnected. */
|
|
26294
26295
|
connected_account_id: string;
|
|
26295
26296
|
};
|
|
26296
26297
|
commonParams: {};
|
|
@@ -54556,6 +54557,37 @@ export type Routes = {
|
|
|
54556
54557
|
};
|
|
54557
54558
|
maxDuration: undefined;
|
|
54558
54559
|
};
|
|
54560
|
+
'/seam/customer/v1/spaces/list_reservations': {
|
|
54561
|
+
route: '/seam/customer/v1/spaces/list_reservations';
|
|
54562
|
+
method: 'GET' | 'POST';
|
|
54563
|
+
queryParams: {};
|
|
54564
|
+
jsonBody: {};
|
|
54565
|
+
commonParams: {
|
|
54566
|
+
/** Filter reservations by issued status. */
|
|
54567
|
+
issued_status?: ('issued' | 'pending') | undefined;
|
|
54568
|
+
/** Filter reservations by space key. */
|
|
54569
|
+
space_key: string;
|
|
54570
|
+
};
|
|
54571
|
+
formData: {};
|
|
54572
|
+
jsonResponse: {
|
|
54573
|
+
reservations: {
|
|
54574
|
+
reservation_id: string;
|
|
54575
|
+
reservation_key: string;
|
|
54576
|
+
name: string | null;
|
|
54577
|
+
starts_at: string | null;
|
|
54578
|
+
ends_at: string | null;
|
|
54579
|
+
created_at: string;
|
|
54580
|
+
guest_name: string | null;
|
|
54581
|
+
has_issued_access: boolean;
|
|
54582
|
+
access_methods: {
|
|
54583
|
+
access_method_id: string;
|
|
54584
|
+
mode: string;
|
|
54585
|
+
is_issued: boolean;
|
|
54586
|
+
}[];
|
|
54587
|
+
}[];
|
|
54588
|
+
};
|
|
54589
|
+
maxDuration: undefined;
|
|
54590
|
+
};
|
|
54559
54591
|
'/seam/customer/v1/staff_members/get': {
|
|
54560
54592
|
route: '/seam/customer/v1/staff_members/get';
|
|
54561
54593
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -40929,7 +40929,12 @@ export default {
|
|
|
40929
40929
|
'application/json': {
|
|
40930
40930
|
schema: {
|
|
40931
40931
|
properties: {
|
|
40932
|
-
connected_account_id: {
|
|
40932
|
+
connected_account_id: {
|
|
40933
|
+
description:
|
|
40934
|
+
'ID of the connected account you want to simulate as disconnected.',
|
|
40935
|
+
format: 'uuid',
|
|
40936
|
+
type: 'string',
|
|
40937
|
+
},
|
|
40933
40938
|
},
|
|
40934
40939
|
required: ['connected_account_id'],
|
|
40935
40940
|
type: 'object',
|
|
@@ -40957,6 +40962,7 @@ export default {
|
|
|
40957
40962
|
{ api_key: [] },
|
|
40958
40963
|
{ pat_with_workspace: [] },
|
|
40959
40964
|
{ console_session_with_workspace: [] },
|
|
40965
|
+
{ client_session_with_customer: [] },
|
|
40960
40966
|
],
|
|
40961
40967
|
summary: '/connected_accounts/simulate/disconnect',
|
|
40962
40968
|
tags: ['/connected_accounts'],
|
|
@@ -55598,6 +55604,198 @@ export default {
|
|
|
55598
55604
|
'x-undocumented': 'Only used internally.',
|
|
55599
55605
|
},
|
|
55600
55606
|
},
|
|
55607
|
+
'/seam/customer/v1/spaces/list_reservations': {
|
|
55608
|
+
get: {
|
|
55609
|
+
description:
|
|
55610
|
+
'Returns a list of existing reservations for a specific space.\nIf issued_status is "issued", only reservations that have access methods issued will be returned.\nIf issued_status is "pending", only reservations that do not have access methods issued will be returned.\nIf issued_status is not provided, only reservations that do not have access methods issued will be returned.',
|
|
55611
|
+
operationId: 'seamCustomerV1SpacesListReservationsGet',
|
|
55612
|
+
parameters: [
|
|
55613
|
+
{
|
|
55614
|
+
in: 'query',
|
|
55615
|
+
name: 'issued_status',
|
|
55616
|
+
required: false,
|
|
55617
|
+
schema: {
|
|
55618
|
+
default: 'pending',
|
|
55619
|
+
description: 'Filter reservations by issued status.',
|
|
55620
|
+
enum: ['issued', 'pending'],
|
|
55621
|
+
type: 'string',
|
|
55622
|
+
},
|
|
55623
|
+
},
|
|
55624
|
+
{
|
|
55625
|
+
in: 'query',
|
|
55626
|
+
name: 'space_key',
|
|
55627
|
+
required: true,
|
|
55628
|
+
schema: {
|
|
55629
|
+
description: 'Filter reservations by space key.',
|
|
55630
|
+
type: 'string',
|
|
55631
|
+
},
|
|
55632
|
+
},
|
|
55633
|
+
],
|
|
55634
|
+
responses: {
|
|
55635
|
+
200: {
|
|
55636
|
+
content: {
|
|
55637
|
+
'application/json': {
|
|
55638
|
+
schema: {
|
|
55639
|
+
properties: {
|
|
55640
|
+
ok: { type: 'boolean' },
|
|
55641
|
+
reservations: {
|
|
55642
|
+
items: {
|
|
55643
|
+
properties: {
|
|
55644
|
+
access_methods: {
|
|
55645
|
+
items: {
|
|
55646
|
+
$ref: '#/components/schemas/access_method',
|
|
55647
|
+
},
|
|
55648
|
+
type: 'array',
|
|
55649
|
+
},
|
|
55650
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
55651
|
+
ends_at: {
|
|
55652
|
+
format: 'date-time',
|
|
55653
|
+
nullable: true,
|
|
55654
|
+
type: 'string',
|
|
55655
|
+
},
|
|
55656
|
+
guest_name: { nullable: true, type: 'string' },
|
|
55657
|
+
has_issued_access: { type: 'boolean' },
|
|
55658
|
+
name: { nullable: true, type: 'string' },
|
|
55659
|
+
reservation_id: { format: 'uuid', type: 'string' },
|
|
55660
|
+
reservation_key: { type: 'string' },
|
|
55661
|
+
starts_at: {
|
|
55662
|
+
format: 'date-time',
|
|
55663
|
+
nullable: true,
|
|
55664
|
+
type: 'string',
|
|
55665
|
+
},
|
|
55666
|
+
},
|
|
55667
|
+
required: [
|
|
55668
|
+
'reservation_id',
|
|
55669
|
+
'reservation_key',
|
|
55670
|
+
'name',
|
|
55671
|
+
'starts_at',
|
|
55672
|
+
'ends_at',
|
|
55673
|
+
'created_at',
|
|
55674
|
+
'guest_name',
|
|
55675
|
+
'has_issued_access',
|
|
55676
|
+
'access_methods',
|
|
55677
|
+
],
|
|
55678
|
+
type: 'object',
|
|
55679
|
+
},
|
|
55680
|
+
type: 'array',
|
|
55681
|
+
},
|
|
55682
|
+
},
|
|
55683
|
+
required: ['reservations', 'ok'],
|
|
55684
|
+
type: 'object',
|
|
55685
|
+
},
|
|
55686
|
+
},
|
|
55687
|
+
},
|
|
55688
|
+
description: 'OK',
|
|
55689
|
+
},
|
|
55690
|
+
400: { description: 'Bad Request' },
|
|
55691
|
+
401: { description: 'Unauthorized' },
|
|
55692
|
+
},
|
|
55693
|
+
security: [{ client_session_with_customer: [] }],
|
|
55694
|
+
summary: '/seam/customer/v1/spaces/list_reservations',
|
|
55695
|
+
tags: [],
|
|
55696
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
|
|
55697
|
+
'x-fern-sdk-method-name': 'list_reservations',
|
|
55698
|
+
'x-fern-sdk-return-value': 'reservations',
|
|
55699
|
+
'x-response-key': 'reservations',
|
|
55700
|
+
'x-title': 'List Reservations for Space',
|
|
55701
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
55702
|
+
},
|
|
55703
|
+
post: {
|
|
55704
|
+
description:
|
|
55705
|
+
'Returns a list of existing reservations for a specific space.\nIf issued_status is "issued", only reservations that have access methods issued will be returned.\nIf issued_status is "pending", only reservations that do not have access methods issued will be returned.\nIf issued_status is not provided, only reservations that do not have access methods issued will be returned.',
|
|
55706
|
+
operationId: 'seamCustomerV1SpacesListReservationsPost',
|
|
55707
|
+
requestBody: {
|
|
55708
|
+
content: {
|
|
55709
|
+
'application/json': {
|
|
55710
|
+
schema: {
|
|
55711
|
+
properties: {
|
|
55712
|
+
issued_status: {
|
|
55713
|
+
default: 'pending',
|
|
55714
|
+
description: 'Filter reservations by issued status.',
|
|
55715
|
+
enum: ['issued', 'pending'],
|
|
55716
|
+
type: 'string',
|
|
55717
|
+
},
|
|
55718
|
+
space_key: {
|
|
55719
|
+
description: 'Filter reservations by space key.',
|
|
55720
|
+
type: 'string',
|
|
55721
|
+
},
|
|
55722
|
+
},
|
|
55723
|
+
required: ['space_key'],
|
|
55724
|
+
type: 'object',
|
|
55725
|
+
},
|
|
55726
|
+
},
|
|
55727
|
+
},
|
|
55728
|
+
},
|
|
55729
|
+
responses: {
|
|
55730
|
+
200: {
|
|
55731
|
+
content: {
|
|
55732
|
+
'application/json': {
|
|
55733
|
+
schema: {
|
|
55734
|
+
properties: {
|
|
55735
|
+
ok: { type: 'boolean' },
|
|
55736
|
+
reservations: {
|
|
55737
|
+
items: {
|
|
55738
|
+
properties: {
|
|
55739
|
+
access_methods: {
|
|
55740
|
+
items: {
|
|
55741
|
+
$ref: '#/components/schemas/access_method',
|
|
55742
|
+
},
|
|
55743
|
+
type: 'array',
|
|
55744
|
+
},
|
|
55745
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
55746
|
+
ends_at: {
|
|
55747
|
+
format: 'date-time',
|
|
55748
|
+
nullable: true,
|
|
55749
|
+
type: 'string',
|
|
55750
|
+
},
|
|
55751
|
+
guest_name: { nullable: true, type: 'string' },
|
|
55752
|
+
has_issued_access: { type: 'boolean' },
|
|
55753
|
+
name: { nullable: true, type: 'string' },
|
|
55754
|
+
reservation_id: { format: 'uuid', type: 'string' },
|
|
55755
|
+
reservation_key: { type: 'string' },
|
|
55756
|
+
starts_at: {
|
|
55757
|
+
format: 'date-time',
|
|
55758
|
+
nullable: true,
|
|
55759
|
+
type: 'string',
|
|
55760
|
+
},
|
|
55761
|
+
},
|
|
55762
|
+
required: [
|
|
55763
|
+
'reservation_id',
|
|
55764
|
+
'reservation_key',
|
|
55765
|
+
'name',
|
|
55766
|
+
'starts_at',
|
|
55767
|
+
'ends_at',
|
|
55768
|
+
'created_at',
|
|
55769
|
+
'guest_name',
|
|
55770
|
+
'has_issued_access',
|
|
55771
|
+
'access_methods',
|
|
55772
|
+
],
|
|
55773
|
+
type: 'object',
|
|
55774
|
+
},
|
|
55775
|
+
type: 'array',
|
|
55776
|
+
},
|
|
55777
|
+
},
|
|
55778
|
+
required: ['reservations', 'ok'],
|
|
55779
|
+
type: 'object',
|
|
55780
|
+
},
|
|
55781
|
+
},
|
|
55782
|
+
},
|
|
55783
|
+
description: 'OK',
|
|
55784
|
+
},
|
|
55785
|
+
400: { description: 'Bad Request' },
|
|
55786
|
+
401: { description: 'Unauthorized' },
|
|
55787
|
+
},
|
|
55788
|
+
security: [{ client_session_with_customer: [] }],
|
|
55789
|
+
summary: '/seam/customer/v1/spaces/list_reservations',
|
|
55790
|
+
tags: [],
|
|
55791
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
|
|
55792
|
+
'x-fern-sdk-method-name': 'list_reservations',
|
|
55793
|
+
'x-fern-sdk-return-value': 'reservations',
|
|
55794
|
+
'x-response-key': 'reservations',
|
|
55795
|
+
'x-title': 'List Reservations for Space',
|
|
55796
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
55797
|
+
},
|
|
55798
|
+
},
|
|
55601
55799
|
'/seam/customer/v1/staff_members/get': {
|
|
55602
55800
|
get: {
|
|
55603
55801
|
description: 'Returns a staff member for a specific customer.',
|
|
@@ -30426,6 +30426,7 @@ export type Routes = {
|
|
|
30426
30426
|
method: 'POST'
|
|
30427
30427
|
queryParams: {}
|
|
30428
30428
|
jsonBody: {
|
|
30429
|
+
/** ID of the connected account you want to simulate as disconnected. */
|
|
30429
30430
|
connected_account_id: string
|
|
30430
30431
|
}
|
|
30431
30432
|
commonParams: {}
|
|
@@ -64975,6 +64976,37 @@ export type Routes = {
|
|
|
64975
64976
|
}
|
|
64976
64977
|
maxDuration: undefined
|
|
64977
64978
|
}
|
|
64979
|
+
'/seam/customer/v1/spaces/list_reservations': {
|
|
64980
|
+
route: '/seam/customer/v1/spaces/list_reservations'
|
|
64981
|
+
method: 'GET' | 'POST'
|
|
64982
|
+
queryParams: {}
|
|
64983
|
+
jsonBody: {}
|
|
64984
|
+
commonParams: {
|
|
64985
|
+
/** Filter reservations by issued status. */
|
|
64986
|
+
issued_status?: ('issued' | 'pending') | undefined
|
|
64987
|
+
/** Filter reservations by space key. */
|
|
64988
|
+
space_key: string
|
|
64989
|
+
}
|
|
64990
|
+
formData: {}
|
|
64991
|
+
jsonResponse: {
|
|
64992
|
+
reservations: {
|
|
64993
|
+
reservation_id: string
|
|
64994
|
+
reservation_key: string
|
|
64995
|
+
name: string | null
|
|
64996
|
+
starts_at: string | null
|
|
64997
|
+
ends_at: string | null
|
|
64998
|
+
created_at: string
|
|
64999
|
+
guest_name: string | null
|
|
65000
|
+
has_issued_access: boolean
|
|
65001
|
+
access_methods: {
|
|
65002
|
+
access_method_id: string
|
|
65003
|
+
mode: string
|
|
65004
|
+
is_issued: boolean
|
|
65005
|
+
}[]
|
|
65006
|
+
}[]
|
|
65007
|
+
}
|
|
65008
|
+
maxDuration: undefined
|
|
65009
|
+
}
|
|
64978
65010
|
'/seam/customer/v1/staff_members/get': {
|
|
64979
65011
|
route: '/seam/customer/v1/staff_members/get'
|
|
64980
65012
|
method: 'GET' | 'POST'
|