@seamapi/types 1.535.0 → 1.536.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.
@@ -1 +1,2 @@
1
1
  export * from './instant-key.js';
2
+ export * from './instant-key-preview.js';
@@ -1,2 +1,3 @@
1
1
  export * from './instant-key.js';
2
+ export * from './instant-key-preview.js';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,240 @@
1
+ import { z } from 'zod';
2
+ declare const instant_key_preview_hotel: z.ZodObject<{
3
+ hotel_name: z.ZodString;
4
+ primary_color: z.ZodString;
5
+ accent_color: z.ZodString;
6
+ secondary_color: z.ZodString;
7
+ logo_url: z.ZodOptional<z.ZodString>;
8
+ verified: z.ZodBoolean;
9
+ }, "strip", z.ZodTypeAny, {
10
+ primary_color: string;
11
+ secondary_color: string;
12
+ hotel_name: string;
13
+ accent_color: string;
14
+ verified: boolean;
15
+ logo_url?: string | undefined;
16
+ }, {
17
+ primary_color: string;
18
+ secondary_color: string;
19
+ hotel_name: string;
20
+ accent_color: string;
21
+ verified: boolean;
22
+ logo_url?: string | undefined;
23
+ }>;
24
+ declare const instant_key_preview_guest: z.ZodObject<{
25
+ first_name: z.ZodString;
26
+ last_name: z.ZodString;
27
+ full_name: z.ZodString;
28
+ email: z.ZodString;
29
+ check_in_date: z.ZodString;
30
+ check_out_date: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ email: string;
33
+ full_name: string;
34
+ first_name: string;
35
+ last_name: string;
36
+ check_in_date: string;
37
+ check_out_date: string;
38
+ }, {
39
+ email: string;
40
+ full_name: string;
41
+ first_name: string;
42
+ last_name: string;
43
+ check_in_date: string;
44
+ check_out_date: string;
45
+ }>;
46
+ declare const instant_key_preview_room: z.ZodObject<{
47
+ room_number: z.ZodString;
48
+ room_type: z.ZodString;
49
+ floor: z.ZodNumber;
50
+ }, "strip", z.ZodTypeAny, {
51
+ room_number: string;
52
+ room_type: string;
53
+ floor: number;
54
+ }, {
55
+ room_number: string;
56
+ room_type: string;
57
+ floor: number;
58
+ }>;
59
+ declare const instant_key_preview_access: z.ZodObject<{
60
+ name: z.ZodString;
61
+ icon: z.ZodString;
62
+ hours: z.ZodOptional<z.ZodString>;
63
+ location: z.ZodOptional<z.ZodString>;
64
+ available: z.ZodBoolean;
65
+ }, "strip", z.ZodTypeAny, {
66
+ name: string;
67
+ icon: string;
68
+ available: boolean;
69
+ location?: string | undefined;
70
+ hours?: string | undefined;
71
+ }, {
72
+ name: string;
73
+ icon: string;
74
+ available: boolean;
75
+ location?: string | undefined;
76
+ hours?: string | undefined;
77
+ }>;
78
+ export declare const instant_key_preview: z.ZodObject<{
79
+ shortcode: z.ZodString;
80
+ hotel: z.ZodObject<{
81
+ hotel_name: z.ZodString;
82
+ primary_color: z.ZodString;
83
+ accent_color: z.ZodString;
84
+ secondary_color: z.ZodString;
85
+ logo_url: z.ZodOptional<z.ZodString>;
86
+ verified: z.ZodBoolean;
87
+ }, "strip", z.ZodTypeAny, {
88
+ primary_color: string;
89
+ secondary_color: string;
90
+ hotel_name: string;
91
+ accent_color: string;
92
+ verified: boolean;
93
+ logo_url?: string | undefined;
94
+ }, {
95
+ primary_color: string;
96
+ secondary_color: string;
97
+ hotel_name: string;
98
+ accent_color: string;
99
+ verified: boolean;
100
+ logo_url?: string | undefined;
101
+ }>;
102
+ guest: z.ZodObject<{
103
+ first_name: z.ZodString;
104
+ last_name: z.ZodString;
105
+ full_name: z.ZodString;
106
+ email: z.ZodString;
107
+ check_in_date: z.ZodString;
108
+ check_out_date: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ email: string;
111
+ full_name: string;
112
+ first_name: string;
113
+ last_name: string;
114
+ check_in_date: string;
115
+ check_out_date: string;
116
+ }, {
117
+ email: string;
118
+ full_name: string;
119
+ first_name: string;
120
+ last_name: string;
121
+ check_in_date: string;
122
+ check_out_date: string;
123
+ }>;
124
+ room: z.ZodObject<{
125
+ room_number: z.ZodString;
126
+ room_type: z.ZodString;
127
+ floor: z.ZodNumber;
128
+ }, "strip", z.ZodTypeAny, {
129
+ room_number: string;
130
+ room_type: string;
131
+ floor: number;
132
+ }, {
133
+ room_number: string;
134
+ room_type: string;
135
+ floor: number;
136
+ }>;
137
+ access: z.ZodArray<z.ZodObject<{
138
+ name: z.ZodString;
139
+ icon: z.ZodString;
140
+ hours: z.ZodOptional<z.ZodString>;
141
+ location: z.ZodOptional<z.ZodString>;
142
+ available: z.ZodBoolean;
143
+ }, "strip", z.ZodTypeAny, {
144
+ name: string;
145
+ icon: string;
146
+ available: boolean;
147
+ location?: string | undefined;
148
+ hours?: string | undefined;
149
+ }, {
150
+ name: string;
151
+ icon: string;
152
+ available: boolean;
153
+ location?: string | undefined;
154
+ hours?: string | undefined;
155
+ }>, "many">;
156
+ key_status: z.ZodEnum<["ready", "expired", "used"]>;
157
+ support_phone: z.ZodString;
158
+ support_email: z.ZodString;
159
+ created_at: z.ZodString;
160
+ updated_at: z.ZodString;
161
+ expires_at: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ created_at: string;
164
+ guest: {
165
+ email: string;
166
+ full_name: string;
167
+ first_name: string;
168
+ last_name: string;
169
+ check_in_date: string;
170
+ check_out_date: string;
171
+ };
172
+ expires_at: string;
173
+ shortcode: string;
174
+ hotel: {
175
+ primary_color: string;
176
+ secondary_color: string;
177
+ hotel_name: string;
178
+ accent_color: string;
179
+ verified: boolean;
180
+ logo_url?: string | undefined;
181
+ };
182
+ room: {
183
+ room_number: string;
184
+ room_type: string;
185
+ floor: number;
186
+ };
187
+ access: {
188
+ name: string;
189
+ icon: string;
190
+ available: boolean;
191
+ location?: string | undefined;
192
+ hours?: string | undefined;
193
+ }[];
194
+ key_status: "expired" | "ready" | "used";
195
+ support_phone: string;
196
+ support_email: string;
197
+ updated_at: string;
198
+ }, {
199
+ created_at: string;
200
+ guest: {
201
+ email: string;
202
+ full_name: string;
203
+ first_name: string;
204
+ last_name: string;
205
+ check_in_date: string;
206
+ check_out_date: string;
207
+ };
208
+ expires_at: string;
209
+ shortcode: string;
210
+ hotel: {
211
+ primary_color: string;
212
+ secondary_color: string;
213
+ hotel_name: string;
214
+ accent_color: string;
215
+ verified: boolean;
216
+ logo_url?: string | undefined;
217
+ };
218
+ room: {
219
+ room_number: string;
220
+ room_type: string;
221
+ floor: number;
222
+ };
223
+ access: {
224
+ name: string;
225
+ icon: string;
226
+ available: boolean;
227
+ location?: string | undefined;
228
+ hours?: string | undefined;
229
+ }[];
230
+ key_status: "expired" | "ready" | "used";
231
+ support_phone: string;
232
+ support_email: string;
233
+ updated_at: string;
234
+ }>;
235
+ export type InstantKeyPreview = z.infer<typeof instant_key_preview>;
236
+ export type InstantKeyPreviewHotel = z.infer<typeof instant_key_preview_hotel>;
237
+ export type InstantKeyPreviewGuest = z.infer<typeof instant_key_preview_guest>;
238
+ export type InstantKeyPreviewRoom = z.infer<typeof instant_key_preview_room>;
239
+ export type InstantKeyPreviewAccess = z.infer<typeof instant_key_preview_access>;
240
+ export {};
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ const instant_key_preview_hotel = z.object({
3
+ hotel_name: z.string(),
4
+ primary_color: z.string(),
5
+ accent_color: z.string(),
6
+ secondary_color: z.string(),
7
+ logo_url: z.string().optional(),
8
+ verified: z.boolean(),
9
+ });
10
+ const instant_key_preview_guest = z.object({
11
+ first_name: z.string(),
12
+ last_name: z.string(),
13
+ full_name: z.string(),
14
+ email: z.string(),
15
+ check_in_date: z.string(),
16
+ check_out_date: z.string(),
17
+ });
18
+ const instant_key_preview_room = z.object({
19
+ room_number: z.string(),
20
+ room_type: z.string(),
21
+ floor: z.number(),
22
+ });
23
+ const instant_key_preview_access = z.object({
24
+ name: z.string(),
25
+ icon: z.string(),
26
+ hours: z.string().optional(),
27
+ location: z.string().optional(),
28
+ available: z.boolean(),
29
+ });
30
+ export const instant_key_preview = z.object({
31
+ shortcode: z.string(),
32
+ hotel: instant_key_preview_hotel,
33
+ guest: instant_key_preview_guest,
34
+ room: instant_key_preview_room,
35
+ access: z.array(instant_key_preview_access),
36
+ key_status: z.enum(['ready', 'expired', 'used']),
37
+ support_phone: z.string(),
38
+ support_email: z.string(),
39
+ created_at: z.string(),
40
+ updated_at: z.string(),
41
+ expires_at: z.string(),
42
+ }).describe(`
43
+ ---
44
+ route_path: /instant_keys/preview
45
+ ---
46
+ Represents a preview of an Instant Key with hotel, guest, and access information.
47
+ `);
48
+ //# sourceMappingURL=instant-key-preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instant-key-preview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/instant-key-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAA;AAEF,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS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,EAAE;CACvB,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -39826,6 +39826,352 @@ declare const _default: {
39826
39826
  'x-undocumented': string;
39827
39827
  };
39828
39828
  };
39829
+ '/seam/instant_key/v1/preview/get': {
39830
+ get: {
39831
+ operationId: string;
39832
+ requestBody: {
39833
+ content: {
39834
+ 'application/json': {
39835
+ schema: {
39836
+ properties: {
39837
+ instant_key_url: {
39838
+ description: string;
39839
+ type: string;
39840
+ };
39841
+ };
39842
+ required: string[];
39843
+ type: string;
39844
+ };
39845
+ };
39846
+ };
39847
+ };
39848
+ responses: {
39849
+ 200: {
39850
+ content: {
39851
+ 'application/json': {
39852
+ schema: {
39853
+ properties: {
39854
+ instant_key_preview: {
39855
+ description: string;
39856
+ properties: {
39857
+ access: {
39858
+ items: {
39859
+ properties: {
39860
+ available: {
39861
+ type: string;
39862
+ };
39863
+ hours: {
39864
+ type: string;
39865
+ };
39866
+ icon: {
39867
+ type: string;
39868
+ };
39869
+ location: {
39870
+ type: string;
39871
+ };
39872
+ name: {
39873
+ type: string;
39874
+ };
39875
+ };
39876
+ required: string[];
39877
+ type: string;
39878
+ };
39879
+ type: string;
39880
+ };
39881
+ created_at: {
39882
+ type: string;
39883
+ };
39884
+ expires_at: {
39885
+ type: string;
39886
+ };
39887
+ guest: {
39888
+ properties: {
39889
+ check_in_date: {
39890
+ type: string;
39891
+ };
39892
+ check_out_date: {
39893
+ type: string;
39894
+ };
39895
+ email: {
39896
+ type: string;
39897
+ };
39898
+ first_name: {
39899
+ type: string;
39900
+ };
39901
+ full_name: {
39902
+ type: string;
39903
+ };
39904
+ last_name: {
39905
+ type: string;
39906
+ };
39907
+ };
39908
+ required: string[];
39909
+ type: string;
39910
+ };
39911
+ hotel: {
39912
+ properties: {
39913
+ accent_color: {
39914
+ type: string;
39915
+ };
39916
+ hotel_name: {
39917
+ type: string;
39918
+ };
39919
+ logo_url: {
39920
+ type: string;
39921
+ };
39922
+ primary_color: {
39923
+ type: string;
39924
+ };
39925
+ secondary_color: {
39926
+ type: string;
39927
+ };
39928
+ verified: {
39929
+ type: string;
39930
+ };
39931
+ };
39932
+ required: string[];
39933
+ type: string;
39934
+ };
39935
+ key_status: {
39936
+ enum: string[];
39937
+ type: string;
39938
+ };
39939
+ room: {
39940
+ properties: {
39941
+ floor: {
39942
+ format: string;
39943
+ type: string;
39944
+ };
39945
+ room_number: {
39946
+ type: string;
39947
+ };
39948
+ room_type: {
39949
+ type: string;
39950
+ };
39951
+ };
39952
+ required: string[];
39953
+ type: string;
39954
+ };
39955
+ shortcode: {
39956
+ type: string;
39957
+ };
39958
+ support_email: {
39959
+ type: string;
39960
+ };
39961
+ support_phone: {
39962
+ type: string;
39963
+ };
39964
+ updated_at: {
39965
+ type: string;
39966
+ };
39967
+ };
39968
+ required: string[];
39969
+ type: string;
39970
+ 'x-route-path': string;
39971
+ };
39972
+ ok: {
39973
+ type: string;
39974
+ };
39975
+ };
39976
+ required: string[];
39977
+ type: string;
39978
+ };
39979
+ };
39980
+ };
39981
+ description: string;
39982
+ };
39983
+ 400: {
39984
+ description: string;
39985
+ };
39986
+ 401: {
39987
+ description: string;
39988
+ };
39989
+ };
39990
+ security: {
39991
+ certified_client: never[];
39992
+ }[];
39993
+ summary: string;
39994
+ tags: never[];
39995
+ 'x-fern-sdk-group-name': string[];
39996
+ 'x-fern-sdk-method-name': string;
39997
+ 'x-fern-sdk-return-value': string;
39998
+ 'x-response-key': string;
39999
+ 'x-title': string;
40000
+ 'x-undocumented': string;
40001
+ };
40002
+ post: {
40003
+ operationId: string;
40004
+ requestBody: {
40005
+ content: {
40006
+ 'application/json': {
40007
+ schema: {
40008
+ properties: {
40009
+ instant_key_url: {
40010
+ description: string;
40011
+ type: string;
40012
+ };
40013
+ };
40014
+ required: string[];
40015
+ type: string;
40016
+ };
40017
+ };
40018
+ };
40019
+ };
40020
+ responses: {
40021
+ 200: {
40022
+ content: {
40023
+ 'application/json': {
40024
+ schema: {
40025
+ properties: {
40026
+ instant_key_preview: {
40027
+ description: string;
40028
+ properties: {
40029
+ access: {
40030
+ items: {
40031
+ properties: {
40032
+ available: {
40033
+ type: string;
40034
+ };
40035
+ hours: {
40036
+ type: string;
40037
+ };
40038
+ icon: {
40039
+ type: string;
40040
+ };
40041
+ location: {
40042
+ type: string;
40043
+ };
40044
+ name: {
40045
+ type: string;
40046
+ };
40047
+ };
40048
+ required: string[];
40049
+ type: string;
40050
+ };
40051
+ type: string;
40052
+ };
40053
+ created_at: {
40054
+ type: string;
40055
+ };
40056
+ expires_at: {
40057
+ type: string;
40058
+ };
40059
+ guest: {
40060
+ properties: {
40061
+ check_in_date: {
40062
+ type: string;
40063
+ };
40064
+ check_out_date: {
40065
+ type: string;
40066
+ };
40067
+ email: {
40068
+ type: string;
40069
+ };
40070
+ first_name: {
40071
+ type: string;
40072
+ };
40073
+ full_name: {
40074
+ type: string;
40075
+ };
40076
+ last_name: {
40077
+ type: string;
40078
+ };
40079
+ };
40080
+ required: string[];
40081
+ type: string;
40082
+ };
40083
+ hotel: {
40084
+ properties: {
40085
+ accent_color: {
40086
+ type: string;
40087
+ };
40088
+ hotel_name: {
40089
+ type: string;
40090
+ };
40091
+ logo_url: {
40092
+ type: string;
40093
+ };
40094
+ primary_color: {
40095
+ type: string;
40096
+ };
40097
+ secondary_color: {
40098
+ type: string;
40099
+ };
40100
+ verified: {
40101
+ type: string;
40102
+ };
40103
+ };
40104
+ required: string[];
40105
+ type: string;
40106
+ };
40107
+ key_status: {
40108
+ enum: string[];
40109
+ type: string;
40110
+ };
40111
+ room: {
40112
+ properties: {
40113
+ floor: {
40114
+ format: string;
40115
+ type: string;
40116
+ };
40117
+ room_number: {
40118
+ type: string;
40119
+ };
40120
+ room_type: {
40121
+ type: string;
40122
+ };
40123
+ };
40124
+ required: string[];
40125
+ type: string;
40126
+ };
40127
+ shortcode: {
40128
+ type: string;
40129
+ };
40130
+ support_email: {
40131
+ type: string;
40132
+ };
40133
+ support_phone: {
40134
+ type: string;
40135
+ };
40136
+ updated_at: {
40137
+ type: string;
40138
+ };
40139
+ };
40140
+ required: string[];
40141
+ type: string;
40142
+ 'x-route-path': string;
40143
+ };
40144
+ ok: {
40145
+ type: string;
40146
+ };
40147
+ };
40148
+ required: string[];
40149
+ type: string;
40150
+ };
40151
+ };
40152
+ };
40153
+ description: string;
40154
+ };
40155
+ 400: {
40156
+ description: string;
40157
+ };
40158
+ 401: {
40159
+ description: string;
40160
+ };
40161
+ };
40162
+ security: {
40163
+ certified_client: never[];
40164
+ }[];
40165
+ summary: string;
40166
+ tags: never[];
40167
+ 'x-fern-sdk-group-name': string[];
40168
+ 'x-fern-sdk-method-name': string;
40169
+ 'x-fern-sdk-return-value': string;
40170
+ 'x-response-key': string;
40171
+ 'x-title': string;
40172
+ 'x-undocumented': string;
40173
+ };
40174
+ };
39829
40175
  '/seam/mobile_sdk/v1/acs/credentials/list': {
39830
40176
  get: {
39831
40177
  description: string;