Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
main ▾

xtool.git / Sources / DeveloperAPI / Generated / Types.swift

Types.swift9291 lines · 1.1 MiBRaw
1// Generated by swift-openapi-generator, do not modify.
2@_spi(Generated) import OpenAPIRuntime
3#if os(Linux)
4@preconcurrency import struct Foundation.URL
5@preconcurrency import struct Foundation.Data
6@preconcurrency import struct Foundation.Date
7#else
8import struct Foundation.URL
9import struct Foundation.Data
10import struct Foundation.Date
11#endif
12/// A type that performs HTTP operations defined by the OpenAPI document.
13public protocol APIProtocol: Sendable {
14 /// - Remark: HTTP `POST /v1/bundleIdCapabilities`.
15 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)`.
16 func bundleIdCapabilitiesCreateInstance(_ input: Operations.BundleIdCapabilitiesCreateInstance.Input) async throws -> Operations.BundleIdCapabilitiesCreateInstance.Output
17 /// - Remark: HTTP `PATCH /v1/bundleIdCapabilities/{id}`.
18 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)`.
19 func bundleIdCapabilitiesUpdateInstance(_ input: Operations.BundleIdCapabilitiesUpdateInstance.Input) async throws -> Operations.BundleIdCapabilitiesUpdateInstance.Output
20 /// - Remark: HTTP `DELETE /v1/bundleIdCapabilities/{id}`.
21 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)`.
22 func bundleIdCapabilitiesDeleteInstance(_ input: Operations.BundleIdCapabilitiesDeleteInstance.Input) async throws -> Operations.BundleIdCapabilitiesDeleteInstance.Output
23 /// - Remark: HTTP `GET /v1/bundleIds`.
24 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)`.
25 func bundleIdsGetCollection(_ input: Operations.BundleIdsGetCollection.Input) async throws -> Operations.BundleIdsGetCollection.Output
26 /// - Remark: HTTP `POST /v1/bundleIds`.
27 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)`.
28 func bundleIdsCreateInstance(_ input: Operations.BundleIdsCreateInstance.Input) async throws -> Operations.BundleIdsCreateInstance.Output
29 /// - Remark: HTTP `GET /v1/bundleIds/{id}`.
30 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)`.
31 func bundleIdsGetInstance(_ input: Operations.BundleIdsGetInstance.Input) async throws -> Operations.BundleIdsGetInstance.Output
32 /// - Remark: HTTP `PATCH /v1/bundleIds/{id}`.
33 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)`.
34 func bundleIdsUpdateInstance(_ input: Operations.BundleIdsUpdateInstance.Input) async throws -> Operations.BundleIdsUpdateInstance.Output
35 /// - Remark: HTTP `DELETE /v1/bundleIds/{id}`.
36 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)`.
37 func bundleIdsDeleteInstance(_ input: Operations.BundleIdsDeleteInstance.Input) async throws -> Operations.BundleIdsDeleteInstance.Output
38 /// - Remark: HTTP `GET /v1/certificates`.
39 /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)`.
40 func certificatesGetCollection(_ input: Operations.CertificatesGetCollection.Input) async throws -> Operations.CertificatesGetCollection.Output
41 /// - Remark: HTTP `POST /v1/certificates`.
42 /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)`.
43 func certificatesCreateInstance(_ input: Operations.CertificatesCreateInstance.Input) async throws -> Operations.CertificatesCreateInstance.Output
44 /// - Remark: HTTP `GET /v1/certificates/{id}`.
45 /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)`.
46 func certificatesGetInstance(_ input: Operations.CertificatesGetInstance.Input) async throws -> Operations.CertificatesGetInstance.Output
47 /// - Remark: HTTP `PATCH /v1/certificates/{id}`.
48 /// - Remark: Generated from `#/paths//v1/certificates/{id}/patch(certificates_updateInstance)`.
49 func certificatesUpdateInstance(_ input: Operations.CertificatesUpdateInstance.Input) async throws -> Operations.CertificatesUpdateInstance.Output
50 /// - Remark: HTTP `DELETE /v1/certificates/{id}`.
51 /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)`.
52 func certificatesDeleteInstance(_ input: Operations.CertificatesDeleteInstance.Input) async throws -> Operations.CertificatesDeleteInstance.Output
53 /// - Remark: HTTP `GET /v1/devices`.
54 /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)`.
55 func devicesGetCollection(_ input: Operations.DevicesGetCollection.Input) async throws -> Operations.DevicesGetCollection.Output
56 /// - Remark: HTTP `POST /v1/devices`.
57 /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)`.
58 func devicesCreateInstance(_ input: Operations.DevicesCreateInstance.Input) async throws -> Operations.DevicesCreateInstance.Output
59 /// - Remark: HTTP `GET /v1/devices/{id}`.
60 /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)`.
61 func devicesGetInstance(_ input: Operations.DevicesGetInstance.Input) async throws -> Operations.DevicesGetInstance.Output
62 /// - Remark: HTTP `PATCH /v1/devices/{id}`.
63 /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)`.
64 func devicesUpdateInstance(_ input: Operations.DevicesUpdateInstance.Input) async throws -> Operations.DevicesUpdateInstance.Output
65 /// - Remark: HTTP `GET /v1/profiles`.
66 /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)`.
67 func profilesGetCollection(_ input: Operations.ProfilesGetCollection.Input) async throws -> Operations.ProfilesGetCollection.Output
68 /// - Remark: HTTP `POST /v1/profiles`.
69 /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)`.
70 func profilesCreateInstance(_ input: Operations.ProfilesCreateInstance.Input) async throws -> Operations.ProfilesCreateInstance.Output
71 /// - Remark: HTTP `GET /v1/profiles/{id}`.
72 /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)`.
73 func profilesGetInstance(_ input: Operations.ProfilesGetInstance.Input) async throws -> Operations.ProfilesGetInstance.Output
74 /// - Remark: HTTP `DELETE /v1/profiles/{id}`.
75 /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)`.
76 func profilesDeleteInstance(_ input: Operations.ProfilesDeleteInstance.Input) async throws -> Operations.ProfilesDeleteInstance.Output
77 /// - Remark: HTTP `GET /v1/bundleIds/{id}/relationships/app`.
78 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/relationships/app/get(bundleIds_app_getToOneRelationship)`.
79 func bundleIdsAppGetToOneRelationship(_ input: Operations.BundleIdsAppGetToOneRelationship.Input) async throws -> Operations.BundleIdsAppGetToOneRelationship.Output
80 /// - Remark: HTTP `GET /v1/bundleIds/{id}/app`.
81 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)`.
82 func bundleIdsAppGetToOneRelated(_ input: Operations.BundleIdsAppGetToOneRelated.Input) async throws -> Operations.BundleIdsAppGetToOneRelated.Output
83 /// - Remark: HTTP `GET /v1/bundleIds/{id}/relationships/bundleIdCapabilities`.
84 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/relationships/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelationship)`.
85 func bundleIdsBundleIdCapabilitiesGetToManyRelationship(_ input: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelationship.Input) async throws -> Operations.BundleIdsBundleIdCapabilitiesGetToManyRelationship.Output
86 /// - Remark: HTTP `GET /v1/bundleIds/{id}/bundleIdCapabilities`.
87 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)`.
88 func bundleIdsBundleIdCapabilitiesGetToManyRelated(_ input: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Input) async throws -> Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output
89 /// - Remark: HTTP `GET /v1/bundleIds/{id}/relationships/profiles`.
90 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/relationships/profiles/get(bundleIds_profiles_getToManyRelationship)`.
91 func bundleIdsProfilesGetToManyRelationship(_ input: Operations.BundleIdsProfilesGetToManyRelationship.Input) async throws -> Operations.BundleIdsProfilesGetToManyRelationship.Output
92 /// - Remark: HTTP `GET /v1/bundleIds/{id}/profiles`.
93 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)`.
94 func bundleIdsProfilesGetToManyRelated(_ input: Operations.BundleIdsProfilesGetToManyRelated.Input) async throws -> Operations.BundleIdsProfilesGetToManyRelated.Output
95 /// - Remark: HTTP `GET /v1/certificates/{id}/relationships/passTypeId`.
96 /// - Remark: Generated from `#/paths//v1/certificates/{id}/relationships/passTypeId/get(certificates_passTypeId_getToOneRelationship)`.
97 func certificatesPassTypeIdGetToOneRelationship(_ input: Operations.CertificatesPassTypeIdGetToOneRelationship.Input) async throws -> Operations.CertificatesPassTypeIdGetToOneRelationship.Output
98 /// - Remark: HTTP `GET /v1/certificates/{id}/passTypeId`.
99 /// - Remark: Generated from `#/paths//v1/certificates/{id}/passTypeId/get(certificates_passTypeId_getToOneRelated)`.
100 func certificatesPassTypeIdGetToOneRelated(_ input: Operations.CertificatesPassTypeIdGetToOneRelated.Input) async throws -> Operations.CertificatesPassTypeIdGetToOneRelated.Output
101 /// - Remark: HTTP `GET /v1/profiles/{id}/relationships/bundleId`.
102 /// - Remark: Generated from `#/paths//v1/profiles/{id}/relationships/bundleId/get(profiles_bundleId_getToOneRelationship)`.
103 func profilesBundleIdGetToOneRelationship(_ input: Operations.ProfilesBundleIdGetToOneRelationship.Input) async throws -> Operations.ProfilesBundleIdGetToOneRelationship.Output
104 /// - Remark: HTTP `GET /v1/profiles/{id}/bundleId`.
105 /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)`.
106 func profilesBundleIdGetToOneRelated(_ input: Operations.ProfilesBundleIdGetToOneRelated.Input) async throws -> Operations.ProfilesBundleIdGetToOneRelated.Output
107 /// - Remark: HTTP `GET /v1/profiles/{id}/relationships/certificates`.
108 /// - Remark: Generated from `#/paths//v1/profiles/{id}/relationships/certificates/get(profiles_certificates_getToManyRelationship)`.
109 func profilesCertificatesGetToManyRelationship(_ input: Operations.ProfilesCertificatesGetToManyRelationship.Input) async throws -> Operations.ProfilesCertificatesGetToManyRelationship.Output
110 /// - Remark: HTTP `GET /v1/profiles/{id}/certificates`.
111 /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)`.
112 func profilesCertificatesGetToManyRelated(_ input: Operations.ProfilesCertificatesGetToManyRelated.Input) async throws -> Operations.ProfilesCertificatesGetToManyRelated.Output
113 /// - Remark: HTTP `GET /v1/profiles/{id}/relationships/devices`.
114 /// - Remark: Generated from `#/paths//v1/profiles/{id}/relationships/devices/get(profiles_devices_getToManyRelationship)`.
115 func profilesDevicesGetToManyRelationship(_ input: Operations.ProfilesDevicesGetToManyRelationship.Input) async throws -> Operations.ProfilesDevicesGetToManyRelationship.Output
116 /// - Remark: HTTP `GET /v1/profiles/{id}/devices`.
117 /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)`.
118 func profilesDevicesGetToManyRelated(_ input: Operations.ProfilesDevicesGetToManyRelated.Input) async throws -> Operations.ProfilesDevicesGetToManyRelated.Output
119}
120
121/// Convenience overloads for operation inputs.
122extension APIProtocol {
123 /// - Remark: HTTP `POST /v1/bundleIdCapabilities`.
124 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)`.
125 public func bundleIdCapabilitiesCreateInstance(
126 headers: Operations.BundleIdCapabilitiesCreateInstance.Input.Headers = .init(),
127 body: Operations.BundleIdCapabilitiesCreateInstance.Input.Body
128 ) async throws -> Operations.BundleIdCapabilitiesCreateInstance.Output {
129 try await bundleIdCapabilitiesCreateInstance(Operations.BundleIdCapabilitiesCreateInstance.Input(
130 headers: headers,
131 body: body
132 ))
133 }
134 /// - Remark: HTTP `PATCH /v1/bundleIdCapabilities/{id}`.
135 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)`.
136 public func bundleIdCapabilitiesUpdateInstance(
137 path: Operations.BundleIdCapabilitiesUpdateInstance.Input.Path,
138 headers: Operations.BundleIdCapabilitiesUpdateInstance.Input.Headers = .init(),
139 body: Operations.BundleIdCapabilitiesUpdateInstance.Input.Body
140 ) async throws -> Operations.BundleIdCapabilitiesUpdateInstance.Output {
141 try await bundleIdCapabilitiesUpdateInstance(Operations.BundleIdCapabilitiesUpdateInstance.Input(
142 path: path,
143 headers: headers,
144 body: body
145 ))
146 }
147 /// - Remark: HTTP `DELETE /v1/bundleIdCapabilities/{id}`.
148 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)`.
149 public func bundleIdCapabilitiesDeleteInstance(
150 path: Operations.BundleIdCapabilitiesDeleteInstance.Input.Path,
151 headers: Operations.BundleIdCapabilitiesDeleteInstance.Input.Headers = .init()
152 ) async throws -> Operations.BundleIdCapabilitiesDeleteInstance.Output {
153 try await bundleIdCapabilitiesDeleteInstance(Operations.BundleIdCapabilitiesDeleteInstance.Input(
154 path: path,
155 headers: headers
156 ))
157 }
158 /// - Remark: HTTP `GET /v1/bundleIds`.
159 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)`.
160 public func bundleIdsGetCollection(
161 query: Operations.BundleIdsGetCollection.Input.Query = .init(),
162 headers: Operations.BundleIdsGetCollection.Input.Headers = .init()
163 ) async throws -> Operations.BundleIdsGetCollection.Output {
164 try await bundleIdsGetCollection(Operations.BundleIdsGetCollection.Input(
165 query: query,
166 headers: headers
167 ))
168 }
169 /// - Remark: HTTP `POST /v1/bundleIds`.
170 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)`.
171 public func bundleIdsCreateInstance(
172 headers: Operations.BundleIdsCreateInstance.Input.Headers = .init(),
173 body: Operations.BundleIdsCreateInstance.Input.Body
174 ) async throws -> Operations.BundleIdsCreateInstance.Output {
175 try await bundleIdsCreateInstance(Operations.BundleIdsCreateInstance.Input(
176 headers: headers,
177 body: body
178 ))
179 }
180 /// - Remark: HTTP `GET /v1/bundleIds/{id}`.
181 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)`.
182 public func bundleIdsGetInstance(
183 path: Operations.BundleIdsGetInstance.Input.Path,
184 query: Operations.BundleIdsGetInstance.Input.Query = .init(),
185 headers: Operations.BundleIdsGetInstance.Input.Headers = .init()
186 ) async throws -> Operations.BundleIdsGetInstance.Output {
187 try await bundleIdsGetInstance(Operations.BundleIdsGetInstance.Input(
188 path: path,
189 query: query,
190 headers: headers
191 ))
192 }
193 /// - Remark: HTTP `PATCH /v1/bundleIds/{id}`.
194 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)`.
195 public func bundleIdsUpdateInstance(
196 path: Operations.BundleIdsUpdateInstance.Input.Path,
197 headers: Operations.BundleIdsUpdateInstance.Input.Headers = .init(),
198 body: Operations.BundleIdsUpdateInstance.Input.Body
199 ) async throws -> Operations.BundleIdsUpdateInstance.Output {
200 try await bundleIdsUpdateInstance(Operations.BundleIdsUpdateInstance.Input(
201 path: path,
202 headers: headers,
203 body: body
204 ))
205 }
206 /// - Remark: HTTP `DELETE /v1/bundleIds/{id}`.
207 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)`.
208 public func bundleIdsDeleteInstance(
209 path: Operations.BundleIdsDeleteInstance.Input.Path,
210 headers: Operations.BundleIdsDeleteInstance.Input.Headers = .init()
211 ) async throws -> Operations.BundleIdsDeleteInstance.Output {
212 try await bundleIdsDeleteInstance(Operations.BundleIdsDeleteInstance.Input(
213 path: path,
214 headers: headers
215 ))
216 }
217 /// - Remark: HTTP `GET /v1/certificates`.
218 /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)`.
219 public func certificatesGetCollection(
220 query: Operations.CertificatesGetCollection.Input.Query = .init(),
221 headers: Operations.CertificatesGetCollection.Input.Headers = .init()
222 ) async throws -> Operations.CertificatesGetCollection.Output {
223 try await certificatesGetCollection(Operations.CertificatesGetCollection.Input(
224 query: query,
225 headers: headers
226 ))
227 }
228 /// - Remark: HTTP `POST /v1/certificates`.
229 /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)`.
230 public func certificatesCreateInstance(
231 headers: Operations.CertificatesCreateInstance.Input.Headers = .init(),
232 body: Operations.CertificatesCreateInstance.Input.Body
233 ) async throws -> Operations.CertificatesCreateInstance.Output {
234 try await certificatesCreateInstance(Operations.CertificatesCreateInstance.Input(
235 headers: headers,
236 body: body
237 ))
238 }
239 /// - Remark: HTTP `GET /v1/certificates/{id}`.
240 /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)`.
241 public func certificatesGetInstance(
242 path: Operations.CertificatesGetInstance.Input.Path,
243 query: Operations.CertificatesGetInstance.Input.Query = .init(),
244 headers: Operations.CertificatesGetInstance.Input.Headers = .init()
245 ) async throws -> Operations.CertificatesGetInstance.Output {
246 try await certificatesGetInstance(Operations.CertificatesGetInstance.Input(
247 path: path,
248 query: query,
249 headers: headers
250 ))
251 }
252 /// - Remark: HTTP `PATCH /v1/certificates/{id}`.
253 /// - Remark: Generated from `#/paths//v1/certificates/{id}/patch(certificates_updateInstance)`.
254 public func certificatesUpdateInstance(
255 path: Operations.CertificatesUpdateInstance.Input.Path,
256 headers: Operations.CertificatesUpdateInstance.Input.Headers = .init(),
257 body: Operations.CertificatesUpdateInstance.Input.Body
258 ) async throws -> Operations.CertificatesUpdateInstance.Output {
259 try await certificatesUpdateInstance(Operations.CertificatesUpdateInstance.Input(
260 path: path,
261 headers: headers,
262 body: body
263 ))
264 }
265 /// - Remark: HTTP `DELETE /v1/certificates/{id}`.
266 /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)`.
267 public func certificatesDeleteInstance(
268 path: Operations.CertificatesDeleteInstance.Input.Path,
269 headers: Operations.CertificatesDeleteInstance.Input.Headers = .init()
270 ) async throws -> Operations.CertificatesDeleteInstance.Output {
271 try await certificatesDeleteInstance(Operations.CertificatesDeleteInstance.Input(
272 path: path,
273 headers: headers
274 ))
275 }
276 /// - Remark: HTTP `GET /v1/devices`.
277 /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)`.
278 public func devicesGetCollection(
279 query: Operations.DevicesGetCollection.Input.Query = .init(),
280 headers: Operations.DevicesGetCollection.Input.Headers = .init()
281 ) async throws -> Operations.DevicesGetCollection.Output {
282 try await devicesGetCollection(Operations.DevicesGetCollection.Input(
283 query: query,
284 headers: headers
285 ))
286 }
287 /// - Remark: HTTP `POST /v1/devices`.
288 /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)`.
289 public func devicesCreateInstance(
290 headers: Operations.DevicesCreateInstance.Input.Headers = .init(),
291 body: Operations.DevicesCreateInstance.Input.Body
292 ) async throws -> Operations.DevicesCreateInstance.Output {
293 try await devicesCreateInstance(Operations.DevicesCreateInstance.Input(
294 headers: headers,
295 body: body
296 ))
297 }
298 /// - Remark: HTTP `GET /v1/devices/{id}`.
299 /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)`.
300 public func devicesGetInstance(
301 path: Operations.DevicesGetInstance.Input.Path,
302 query: Operations.DevicesGetInstance.Input.Query = .init(),
303 headers: Operations.DevicesGetInstance.Input.Headers = .init()
304 ) async throws -> Operations.DevicesGetInstance.Output {
305 try await devicesGetInstance(Operations.DevicesGetInstance.Input(
306 path: path,
307 query: query,
308 headers: headers
309 ))
310 }
311 /// - Remark: HTTP `PATCH /v1/devices/{id}`.
312 /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)`.
313 public func devicesUpdateInstance(
314 path: Operations.DevicesUpdateInstance.Input.Path,
315 headers: Operations.DevicesUpdateInstance.Input.Headers = .init(),
316 body: Operations.DevicesUpdateInstance.Input.Body
317 ) async throws -> Operations.DevicesUpdateInstance.Output {
318 try await devicesUpdateInstance(Operations.DevicesUpdateInstance.Input(
319 path: path,
320 headers: headers,
321 body: body
322 ))
323 }
324 /// - Remark: HTTP `GET /v1/profiles`.
325 /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)`.
326 public func profilesGetCollection(
327 query: Operations.ProfilesGetCollection.Input.Query = .init(),
328 headers: Operations.ProfilesGetCollection.Input.Headers = .init()
329 ) async throws -> Operations.ProfilesGetCollection.Output {
330 try await profilesGetCollection(Operations.ProfilesGetCollection.Input(
331 query: query,
332 headers: headers
333 ))
334 }
335 /// - Remark: HTTP `POST /v1/profiles`.
336 /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)`.
337 public func profilesCreateInstance(
338 headers: Operations.ProfilesCreateInstance.Input.Headers = .init(),
339 body: Operations.ProfilesCreateInstance.Input.Body
340 ) async throws -> Operations.ProfilesCreateInstance.Output {
341 try await profilesCreateInstance(Operations.ProfilesCreateInstance.Input(
342 headers: headers,
343 body: body
344 ))
345 }
346 /// - Remark: HTTP `GET /v1/profiles/{id}`.
347 /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)`.
348 public func profilesGetInstance(
349 path: Operations.ProfilesGetInstance.Input.Path,
350 query: Operations.ProfilesGetInstance.Input.Query = .init(),
351 headers: Operations.ProfilesGetInstance.Input.Headers = .init()
352 ) async throws -> Operations.ProfilesGetInstance.Output {
353 try await profilesGetInstance(Operations.ProfilesGetInstance.Input(
354 path: path,
355 query: query,
356 headers: headers
357 ))
358 }
359 /// - Remark: HTTP `DELETE /v1/profiles/{id}`.
360 /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)`.
361 public func profilesDeleteInstance(
362 path: Operations.ProfilesDeleteInstance.Input.Path,
363 headers: Operations.ProfilesDeleteInstance.Input.Headers = .init()
364 ) async throws -> Operations.ProfilesDeleteInstance.Output {
365 try await profilesDeleteInstance(Operations.ProfilesDeleteInstance.Input(
366 path: path,
367 headers: headers
368 ))
369 }
370 /// - Remark: HTTP `GET /v1/bundleIds/{id}/relationships/app`.
371 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/relationships/app/get(bundleIds_app_getToOneRelationship)`.
372 public func bundleIdsAppGetToOneRelationship(
373 path: Operations.BundleIdsAppGetToOneRelationship.Input.Path,
374 headers: Operations.BundleIdsAppGetToOneRelationship.Input.Headers = .init()
375 ) async throws -> Operations.BundleIdsAppGetToOneRelationship.Output {
376 try await bundleIdsAppGetToOneRelationship(Operations.BundleIdsAppGetToOneRelationship.Input(
377 path: path,
378 headers: headers
379 ))
380 }
381 /// - Remark: HTTP `GET /v1/bundleIds/{id}/app`.
382 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)`.
383 public func bundleIdsAppGetToOneRelated(
384 path: Operations.BundleIdsAppGetToOneRelated.Input.Path,
385 query: Operations.BundleIdsAppGetToOneRelated.Input.Query = .init(),
386 headers: Operations.BundleIdsAppGetToOneRelated.Input.Headers = .init()
387 ) async throws -> Operations.BundleIdsAppGetToOneRelated.Output {
388 try await bundleIdsAppGetToOneRelated(Operations.BundleIdsAppGetToOneRelated.Input(
389 path: path,
390 query: query,
391 headers: headers
392 ))
393 }
394 /// - Remark: HTTP `GET /v1/bundleIds/{id}/relationships/bundleIdCapabilities`.
395 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/relationships/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelationship)`.
396 public func bundleIdsBundleIdCapabilitiesGetToManyRelationship(
397 path: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelationship.Input.Path,
398 query: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelationship.Input.Query = .init(),
399 headers: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelationship.Input.Headers = .init()
400 ) async throws -> Operations.BundleIdsBundleIdCapabilitiesGetToManyRelationship.Output {
401 try await bundleIdsBundleIdCapabilitiesGetToManyRelationship(Operations.BundleIdsBundleIdCapabilitiesGetToManyRelationship.Input(
402 path: path,
403 query: query,
404 headers: headers
405 ))
406 }
407 /// - Remark: HTTP `GET /v1/bundleIds/{id}/bundleIdCapabilities`.
408 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)`.
409 public func bundleIdsBundleIdCapabilitiesGetToManyRelated(
410 path: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Input.Path,
411 query: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Input.Query = .init(),
412 headers: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Input.Headers = .init()
413 ) async throws -> Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output {
414 try await bundleIdsBundleIdCapabilitiesGetToManyRelated(Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Input(
415 path: path,
416 query: query,
417 headers: headers
418 ))
419 }
420 /// - Remark: HTTP `GET /v1/bundleIds/{id}/relationships/profiles`.
421 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/relationships/profiles/get(bundleIds_profiles_getToManyRelationship)`.
422 public func bundleIdsProfilesGetToManyRelationship(
423 path: Operations.BundleIdsProfilesGetToManyRelationship.Input.Path,
424 query: Operations.BundleIdsProfilesGetToManyRelationship.Input.Query = .init(),
425 headers: Operations.BundleIdsProfilesGetToManyRelationship.Input.Headers = .init()
426 ) async throws -> Operations.BundleIdsProfilesGetToManyRelationship.Output {
427 try await bundleIdsProfilesGetToManyRelationship(Operations.BundleIdsProfilesGetToManyRelationship.Input(
428 path: path,
429 query: query,
430 headers: headers
431 ))
432 }
433 /// - Remark: HTTP `GET /v1/bundleIds/{id}/profiles`.
434 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)`.
435 public func bundleIdsProfilesGetToManyRelated(
436 path: Operations.BundleIdsProfilesGetToManyRelated.Input.Path,
437 query: Operations.BundleIdsProfilesGetToManyRelated.Input.Query = .init(),
438 headers: Operations.BundleIdsProfilesGetToManyRelated.Input.Headers = .init()
439 ) async throws -> Operations.BundleIdsProfilesGetToManyRelated.Output {
440 try await bundleIdsProfilesGetToManyRelated(Operations.BundleIdsProfilesGetToManyRelated.Input(
441 path: path,
442 query: query,
443 headers: headers
444 ))
445 }
446 /// - Remark: HTTP `GET /v1/certificates/{id}/relationships/passTypeId`.
447 /// - Remark: Generated from `#/paths//v1/certificates/{id}/relationships/passTypeId/get(certificates_passTypeId_getToOneRelationship)`.
448 public func certificatesPassTypeIdGetToOneRelationship(
449 path: Operations.CertificatesPassTypeIdGetToOneRelationship.Input.Path,
450 headers: Operations.CertificatesPassTypeIdGetToOneRelationship.Input.Headers = .init()
451 ) async throws -> Operations.CertificatesPassTypeIdGetToOneRelationship.Output {
452 try await certificatesPassTypeIdGetToOneRelationship(Operations.CertificatesPassTypeIdGetToOneRelationship.Input(
453 path: path,
454 headers: headers
455 ))
456 }
457 /// - Remark: HTTP `GET /v1/certificates/{id}/passTypeId`.
458 /// - Remark: Generated from `#/paths//v1/certificates/{id}/passTypeId/get(certificates_passTypeId_getToOneRelated)`.
459 public func certificatesPassTypeIdGetToOneRelated(
460 path: Operations.CertificatesPassTypeIdGetToOneRelated.Input.Path,
461 query: Operations.CertificatesPassTypeIdGetToOneRelated.Input.Query = .init(),
462 headers: Operations.CertificatesPassTypeIdGetToOneRelated.Input.Headers = .init()
463 ) async throws -> Operations.CertificatesPassTypeIdGetToOneRelated.Output {
464 try await certificatesPassTypeIdGetToOneRelated(Operations.CertificatesPassTypeIdGetToOneRelated.Input(
465 path: path,
466 query: query,
467 headers: headers
468 ))
469 }
470 /// - Remark: HTTP `GET /v1/profiles/{id}/relationships/bundleId`.
471 /// - Remark: Generated from `#/paths//v1/profiles/{id}/relationships/bundleId/get(profiles_bundleId_getToOneRelationship)`.
472 public func profilesBundleIdGetToOneRelationship(
473 path: Operations.ProfilesBundleIdGetToOneRelationship.Input.Path,
474 headers: Operations.ProfilesBundleIdGetToOneRelationship.Input.Headers = .init()
475 ) async throws -> Operations.ProfilesBundleIdGetToOneRelationship.Output {
476 try await profilesBundleIdGetToOneRelationship(Operations.ProfilesBundleIdGetToOneRelationship.Input(
477 path: path,
478 headers: headers
479 ))
480 }
481 /// - Remark: HTTP `GET /v1/profiles/{id}/bundleId`.
482 /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)`.
483 public func profilesBundleIdGetToOneRelated(
484 path: Operations.ProfilesBundleIdGetToOneRelated.Input.Path,
485 query: Operations.ProfilesBundleIdGetToOneRelated.Input.Query = .init(),
486 headers: Operations.ProfilesBundleIdGetToOneRelated.Input.Headers = .init()
487 ) async throws -> Operations.ProfilesBundleIdGetToOneRelated.Output {
488 try await profilesBundleIdGetToOneRelated(Operations.ProfilesBundleIdGetToOneRelated.Input(
489 path: path,
490 query: query,
491 headers: headers
492 ))
493 }
494 /// - Remark: HTTP `GET /v1/profiles/{id}/relationships/certificates`.
495 /// - Remark: Generated from `#/paths//v1/profiles/{id}/relationships/certificates/get(profiles_certificates_getToManyRelationship)`.
496 public func profilesCertificatesGetToManyRelationship(
497 path: Operations.ProfilesCertificatesGetToManyRelationship.Input.Path,
498 query: Operations.ProfilesCertificatesGetToManyRelationship.Input.Query = .init(),
499 headers: Operations.ProfilesCertificatesGetToManyRelationship.Input.Headers = .init()
500 ) async throws -> Operations.ProfilesCertificatesGetToManyRelationship.Output {
501 try await profilesCertificatesGetToManyRelationship(Operations.ProfilesCertificatesGetToManyRelationship.Input(
502 path: path,
503 query: query,
504 headers: headers
505 ))
506 }
507 /// - Remark: HTTP `GET /v1/profiles/{id}/certificates`.
508 /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)`.
509 public func profilesCertificatesGetToManyRelated(
510 path: Operations.ProfilesCertificatesGetToManyRelated.Input.Path,
511 query: Operations.ProfilesCertificatesGetToManyRelated.Input.Query = .init(),
512 headers: Operations.ProfilesCertificatesGetToManyRelated.Input.Headers = .init()
513 ) async throws -> Operations.ProfilesCertificatesGetToManyRelated.Output {
514 try await profilesCertificatesGetToManyRelated(Operations.ProfilesCertificatesGetToManyRelated.Input(
515 path: path,
516 query: query,
517 headers: headers
518 ))
519 }
520 /// - Remark: HTTP `GET /v1/profiles/{id}/relationships/devices`.
521 /// - Remark: Generated from `#/paths//v1/profiles/{id}/relationships/devices/get(profiles_devices_getToManyRelationship)`.
522 public func profilesDevicesGetToManyRelationship(
523 path: Operations.ProfilesDevicesGetToManyRelationship.Input.Path,
524 query: Operations.ProfilesDevicesGetToManyRelationship.Input.Query = .init(),
525 headers: Operations.ProfilesDevicesGetToManyRelationship.Input.Headers = .init()
526 ) async throws -> Operations.ProfilesDevicesGetToManyRelationship.Output {
527 try await profilesDevicesGetToManyRelationship(Operations.ProfilesDevicesGetToManyRelationship.Input(
528 path: path,
529 query: query,
530 headers: headers
531 ))
532 }
533 /// - Remark: HTTP `GET /v1/profiles/{id}/devices`.
534 /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)`.
535 public func profilesDevicesGetToManyRelated(
536 path: Operations.ProfilesDevicesGetToManyRelated.Input.Path,
537 query: Operations.ProfilesDevicesGetToManyRelated.Input.Query = .init(),
538 headers: Operations.ProfilesDevicesGetToManyRelated.Input.Headers = .init()
539 ) async throws -> Operations.ProfilesDevicesGetToManyRelated.Output {
540 try await profilesDevicesGetToManyRelated(Operations.ProfilesDevicesGetToManyRelated.Input(
541 path: path,
542 query: query,
543 headers: headers
544 ))
545 }
546}
547
548/// Server URLs defined in the OpenAPI document.
549public enum Servers {
550 public enum Server1 {
551 public static func url() throws -> Foundation.URL {
552 try Foundation.URL(
553 validatingOpenAPIServerURL: "https://api.appstoreconnect.apple.com/",
554 variables: []
555 )
556 }
557 }
558 @available(*, deprecated, renamed: "Servers.Server1.url")
559 public static func server1() throws -> Foundation.URL {
560 try Foundation.URL(
561 validatingOpenAPIServerURL: "https://api.appstoreconnect.apple.com/",
562 variables: []
563 )
564 }
565}
566
567/// Types generated from the components section of the OpenAPI document.
568public enum Components {
569 /// Types generated from the `#/components/schemas` section of the OpenAPI document.
570 public enum Schemas {
571 /// - Remark: Generated from `#/components/schemas/App`.
572 public struct App: Codable, Hashable, Sendable {
573 /// - Remark: Generated from `#/components/schemas/App/type`.
574 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
575 case apps = "apps"
576 }
577 /// - Remark: Generated from `#/components/schemas/App/type`.
578 public var _type: Components.Schemas.App._TypePayload
579 /// - Remark: Generated from `#/components/schemas/App/id`.
580 public var id: Swift.String
581 /// - Remark: Generated from `#/components/schemas/App/attributes`.
582 public struct AttributesPayload: Codable, Hashable, Sendable {
583 /// - Remark: Generated from `#/components/schemas/App/attributes/accessibilityUrl`.
584 public var accessibilityUrl: Swift.String?
585 /// - Remark: Generated from `#/components/schemas/App/attributes/name`.
586 public var name: Swift.String?
587 /// - Remark: Generated from `#/components/schemas/App/attributes/bundleId`.
588 public var bundleId: Swift.String?
589 /// - Remark: Generated from `#/components/schemas/App/attributes/sku`.
590 public var sku: Swift.String?
591 /// - Remark: Generated from `#/components/schemas/App/attributes/primaryLocale`.
592 public var primaryLocale: Swift.String?
593 /// - Remark: Generated from `#/components/schemas/App/attributes/isOrEverWasMadeForKids`.
594 public var isOrEverWasMadeForKids: Swift.Bool?
595 /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrl`.
596 public var subscriptionStatusUrl: Swift.String?
597 /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrlVersion`.
598 public var subscriptionStatusUrlVersion: Components.Schemas.SubscriptionStatusUrlVersion?
599 /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrlForSandbox`.
600 public var subscriptionStatusUrlForSandbox: Swift.String?
601 /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrlVersionForSandbox`.
602 public var subscriptionStatusUrlVersionForSandbox: Components.Schemas.SubscriptionStatusUrlVersion?
603 /// - Remark: Generated from `#/components/schemas/App/attributes/contentRightsDeclaration`.
604 public struct ContentRightsDeclarationPayload: Codable, Hashable, Sendable {
605 /// - Remark: Generated from `#/components/schemas/App/attributes/contentRightsDeclaration/value1`.
606 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
607 case doesNotUseThirdPartyContent = "DOES_NOT_USE_THIRD_PARTY_CONTENT"
608 case usesThirdPartyContent = "USES_THIRD_PARTY_CONTENT"
609 }
610 /// - Remark: Generated from `#/components/schemas/App/attributes/contentRightsDeclaration/value1`.
611 public var value1: Components.Schemas.App.AttributesPayload.ContentRightsDeclarationPayload.Value1Payload?
612 /// - Remark: Generated from `#/components/schemas/App/attributes/contentRightsDeclaration/value2`.
613 public var value2: Swift.String?
614 /// Creates a new `ContentRightsDeclarationPayload`.
615 ///
616 /// - Parameters:
617 /// - value1:
618 /// - value2:
619 public init(
620 value1: Components.Schemas.App.AttributesPayload.ContentRightsDeclarationPayload.Value1Payload? = nil,
621 value2: Swift.String? = nil
622 ) {
623 self.value1 = value1
624 self.value2 = value2
625 }
626 public init(from decoder: any Decoder) throws {
627 var errors: [any Error] = []
628 do {
629 self.value1 = try decoder.decodeFromSingleValueContainer()
630 } catch {
631 errors.append(error)
632 }
633 do {
634 self.value2 = try decoder.decodeFromSingleValueContainer()
635 } catch {
636 errors.append(error)
637 }
638 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
639 [
640 self.value1,
641 self.value2
642 ],
643 type: Self.self,
644 codingPath: decoder.codingPath,
645 errors: errors
646 )
647 }
648 public func encode(to encoder: any Encoder) throws {
649 try encoder.encodeFirstNonNilValueToSingleValueContainer([
650 self.value1,
651 self.value2
652 ])
653 }
654 }
655 /// - Remark: Generated from `#/components/schemas/App/attributes/contentRightsDeclaration`.
656 public var contentRightsDeclaration: Components.Schemas.App.AttributesPayload.ContentRightsDeclarationPayload?
657 /// - Remark: Generated from `#/components/schemas/App/attributes/streamlinedPurchasingEnabled`.
658 public var streamlinedPurchasingEnabled: Swift.Bool?
659 /// Creates a new `AttributesPayload`.
660 ///
661 /// - Parameters:
662 /// - accessibilityUrl:
663 /// - name:
664 /// - bundleId:
665 /// - sku:
666 /// - primaryLocale:
667 /// - isOrEverWasMadeForKids:
668 /// - subscriptionStatusUrl:
669 /// - subscriptionStatusUrlVersion:
670 /// - subscriptionStatusUrlForSandbox:
671 /// - subscriptionStatusUrlVersionForSandbox:
672 /// - contentRightsDeclaration:
673 /// - streamlinedPurchasingEnabled:
674 public init(
675 accessibilityUrl: Swift.String? = nil,
676 name: Swift.String? = nil,
677 bundleId: Swift.String? = nil,
678 sku: Swift.String? = nil,
679 primaryLocale: Swift.String? = nil,
680 isOrEverWasMadeForKids: Swift.Bool? = nil,
681 subscriptionStatusUrl: Swift.String? = nil,
682 subscriptionStatusUrlVersion: Components.Schemas.SubscriptionStatusUrlVersion? = nil,
683 subscriptionStatusUrlForSandbox: Swift.String? = nil,
684 subscriptionStatusUrlVersionForSandbox: Components.Schemas.SubscriptionStatusUrlVersion? = nil,
685 contentRightsDeclaration: Components.Schemas.App.AttributesPayload.ContentRightsDeclarationPayload? = nil,
686 streamlinedPurchasingEnabled: Swift.Bool? = nil
687 ) {
688 self.accessibilityUrl = accessibilityUrl
689 self.name = name
690 self.bundleId = bundleId
691 self.sku = sku
692 self.primaryLocale = primaryLocale
693 self.isOrEverWasMadeForKids = isOrEverWasMadeForKids
694 self.subscriptionStatusUrl = subscriptionStatusUrl
695 self.subscriptionStatusUrlVersion = subscriptionStatusUrlVersion
696 self.subscriptionStatusUrlForSandbox = subscriptionStatusUrlForSandbox
697 self.subscriptionStatusUrlVersionForSandbox = subscriptionStatusUrlVersionForSandbox
698 self.contentRightsDeclaration = contentRightsDeclaration
699 self.streamlinedPurchasingEnabled = streamlinedPurchasingEnabled
700 }
701 public enum CodingKeys: String, CodingKey {
702 case accessibilityUrl
703 case name
704 case bundleId
705 case sku
706 case primaryLocale
707 case isOrEverWasMadeForKids
708 case subscriptionStatusUrl
709 case subscriptionStatusUrlVersion
710 case subscriptionStatusUrlForSandbox
711 case subscriptionStatusUrlVersionForSandbox
712 case contentRightsDeclaration
713 case streamlinedPurchasingEnabled
714 }
715 }
716 /// - Remark: Generated from `#/components/schemas/App/attributes`.
717 public var attributes: Components.Schemas.App.AttributesPayload?
718 /// - Remark: Generated from `#/components/schemas/App/relationships`.
719 public struct RelationshipsPayload: Codable, Hashable, Sendable {
720 /// - Remark: Generated from `#/components/schemas/App/relationships/accessibilityDeclarations`.
721 public struct AccessibilityDeclarationsPayload: Codable, Hashable, Sendable {
722 /// - Remark: Generated from `#/components/schemas/App/relationships/accessibilityDeclarations/links`.
723 public var links: Components.Schemas.RelationshipLinks?
724 /// Creates a new `AccessibilityDeclarationsPayload`.
725 ///
726 /// - Parameters:
727 /// - links:
728 public init(links: Components.Schemas.RelationshipLinks? = nil) {
729 self.links = links
730 }
731 public enum CodingKeys: String, CodingKey {
732 case links
733 }
734 }
735 /// - Remark: Generated from `#/components/schemas/App/relationships/accessibilityDeclarations`.
736 public var accessibilityDeclarations: Components.Schemas.App.RelationshipsPayload.AccessibilityDeclarationsPayload?
737 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations`.
738 public struct AppEncryptionDeclarationsPayload: Codable, Hashable, Sendable {
739 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/links`.
740 public var links: Components.Schemas.RelationshipLinks?
741 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/meta`.
742 public var meta: Components.Schemas.PagingInformation?
743 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/DataPayload`.
744 public struct DataPayloadPayload: Codable, Hashable, Sendable {
745 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/DataPayload/type`.
746 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
747 case appEncryptionDeclarations = "appEncryptionDeclarations"
748 }
749 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/DataPayload/type`.
750 public var _type: Components.Schemas.App.RelationshipsPayload.AppEncryptionDeclarationsPayload.DataPayloadPayload._TypePayload
751 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/DataPayload/id`.
752 public var id: Swift.String
753 /// Creates a new `DataPayloadPayload`.
754 ///
755 /// - Parameters:
756 /// - _type:
757 /// - id:
758 public init(
759 _type: Components.Schemas.App.RelationshipsPayload.AppEncryptionDeclarationsPayload.DataPayloadPayload._TypePayload,
760 id: Swift.String
761 ) {
762 self._type = _type
763 self.id = id
764 }
765 public enum CodingKeys: String, CodingKey {
766 case _type = "type"
767 case id
768 }
769 }
770 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/data`.
771 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AppEncryptionDeclarationsPayload.DataPayloadPayload]
772 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/data`.
773 public var data: Components.Schemas.App.RelationshipsPayload.AppEncryptionDeclarationsPayload.DataPayload?
774 /// Creates a new `AppEncryptionDeclarationsPayload`.
775 ///
776 /// - Parameters:
777 /// - links:
778 /// - meta:
779 /// - data:
780 public init(
781 links: Components.Schemas.RelationshipLinks? = nil,
782 meta: Components.Schemas.PagingInformation? = nil,
783 data: Components.Schemas.App.RelationshipsPayload.AppEncryptionDeclarationsPayload.DataPayload? = nil
784 ) {
785 self.links = links
786 self.meta = meta
787 self.data = data
788 }
789 public enum CodingKeys: String, CodingKey {
790 case links
791 case meta
792 case data
793 }
794 }
795 /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations`.
796 public var appEncryptionDeclarations: Components.Schemas.App.RelationshipsPayload.AppEncryptionDeclarationsPayload?
797 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreIcon`.
798 public struct AppStoreIconPayload: Codable, Hashable, Sendable {
799 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreIcon/data`.
800 public struct DataPayload: Codable, Hashable, Sendable {
801 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreIcon/data/type`.
802 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
803 case buildIcons = "buildIcons"
804 }
805 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreIcon/data/type`.
806 public var _type: Components.Schemas.App.RelationshipsPayload.AppStoreIconPayload.DataPayload._TypePayload
807 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreIcon/data/id`.
808 public var id: Swift.String
809 /// Creates a new `DataPayload`.
810 ///
811 /// - Parameters:
812 /// - _type:
813 /// - id:
814 public init(
815 _type: Components.Schemas.App.RelationshipsPayload.AppStoreIconPayload.DataPayload._TypePayload,
816 id: Swift.String
817 ) {
818 self._type = _type
819 self.id = id
820 }
821 public enum CodingKeys: String, CodingKey {
822 case _type = "type"
823 case id
824 }
825 }
826 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreIcon/data`.
827 public var data: Components.Schemas.App.RelationshipsPayload.AppStoreIconPayload.DataPayload?
828 /// Creates a new `AppStoreIconPayload`.
829 ///
830 /// - Parameters:
831 /// - data:
832 public init(data: Components.Schemas.App.RelationshipsPayload.AppStoreIconPayload.DataPayload? = nil) {
833 self.data = data
834 }
835 public enum CodingKeys: String, CodingKey {
836 case data
837 }
838 }
839 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreIcon`.
840 public var appStoreIcon: Components.Schemas.App.RelationshipsPayload.AppStoreIconPayload?
841 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct`.
842 public struct CiProductPayload: Codable, Hashable, Sendable {
843 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/links`.
844 public var links: Components.Schemas.RelationshipLinks?
845 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data`.
846 public struct DataPayload: Codable, Hashable, Sendable {
847 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data/type`.
848 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
849 case ciProducts = "ciProducts"
850 }
851 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data/type`.
852 public var _type: Components.Schemas.App.RelationshipsPayload.CiProductPayload.DataPayload._TypePayload
853 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data/id`.
854 public var id: Swift.String
855 /// Creates a new `DataPayload`.
856 ///
857 /// - Parameters:
858 /// - _type:
859 /// - id:
860 public init(
861 _type: Components.Schemas.App.RelationshipsPayload.CiProductPayload.DataPayload._TypePayload,
862 id: Swift.String
863 ) {
864 self._type = _type
865 self.id = id
866 }
867 public enum CodingKeys: String, CodingKey {
868 case _type = "type"
869 case id
870 }
871 }
872 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data`.
873 public var data: Components.Schemas.App.RelationshipsPayload.CiProductPayload.DataPayload?
874 /// Creates a new `CiProductPayload`.
875 ///
876 /// - Parameters:
877 /// - links:
878 /// - data:
879 public init(
880 links: Components.Schemas.RelationshipLinks? = nil,
881 data: Components.Schemas.App.RelationshipsPayload.CiProductPayload.DataPayload? = nil
882 ) {
883 self.links = links
884 self.data = data
885 }
886 public enum CodingKeys: String, CodingKey {
887 case links
888 case data
889 }
890 }
891 /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct`.
892 public var ciProduct: Components.Schemas.App.RelationshipsPayload.CiProductPayload?
893 /// - Remark: Generated from `#/components/schemas/App/relationships/betaTesters`.
894 public struct BetaTestersPayload: Codable, Hashable, Sendable {
895 /// - Remark: Generated from `#/components/schemas/App/relationships/betaTesters/links`.
896 public var links: Components.Schemas.RelationshipLinks?
897 /// Creates a new `BetaTestersPayload`.
898 ///
899 /// - Parameters:
900 /// - links:
901 public init(links: Components.Schemas.RelationshipLinks? = nil) {
902 self.links = links
903 }
904 public enum CodingKeys: String, CodingKey {
905 case links
906 }
907 }
908 /// - Remark: Generated from `#/components/schemas/App/relationships/betaTesters`.
909 public var betaTesters: Components.Schemas.App.RelationshipsPayload.BetaTestersPayload?
910 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups`.
911 public struct BetaGroupsPayload: Codable, Hashable, Sendable {
912 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/links`.
913 public var links: Components.Schemas.RelationshipLinks?
914 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/meta`.
915 public var meta: Components.Schemas.PagingInformation?
916 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/DataPayload`.
917 public struct DataPayloadPayload: Codable, Hashable, Sendable {
918 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/DataPayload/type`.
919 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
920 case betaGroups = "betaGroups"
921 }
922 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/DataPayload/type`.
923 public var _type: Components.Schemas.App.RelationshipsPayload.BetaGroupsPayload.DataPayloadPayload._TypePayload
924 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/DataPayload/id`.
925 public var id: Swift.String
926 /// Creates a new `DataPayloadPayload`.
927 ///
928 /// - Parameters:
929 /// - _type:
930 /// - id:
931 public init(
932 _type: Components.Schemas.App.RelationshipsPayload.BetaGroupsPayload.DataPayloadPayload._TypePayload,
933 id: Swift.String
934 ) {
935 self._type = _type
936 self.id = id
937 }
938 public enum CodingKeys: String, CodingKey {
939 case _type = "type"
940 case id
941 }
942 }
943 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/data`.
944 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.BetaGroupsPayload.DataPayloadPayload]
945 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/data`.
946 public var data: Components.Schemas.App.RelationshipsPayload.BetaGroupsPayload.DataPayload?
947 /// Creates a new `BetaGroupsPayload`.
948 ///
949 /// - Parameters:
950 /// - links:
951 /// - meta:
952 /// - data:
953 public init(
954 links: Components.Schemas.RelationshipLinks? = nil,
955 meta: Components.Schemas.PagingInformation? = nil,
956 data: Components.Schemas.App.RelationshipsPayload.BetaGroupsPayload.DataPayload? = nil
957 ) {
958 self.links = links
959 self.meta = meta
960 self.data = data
961 }
962 public enum CodingKeys: String, CodingKey {
963 case links
964 case meta
965 case data
966 }
967 }
968 /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups`.
969 public var betaGroups: Components.Schemas.App.RelationshipsPayload.BetaGroupsPayload?
970 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions`.
971 public struct AppStoreVersionsPayload: Codable, Hashable, Sendable {
972 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/links`.
973 public var links: Components.Schemas.RelationshipLinks?
974 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/meta`.
975 public var meta: Components.Schemas.PagingInformation?
976 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/DataPayload`.
977 public struct DataPayloadPayload: Codable, Hashable, Sendable {
978 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/DataPayload/type`.
979 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
980 case appStoreVersions = "appStoreVersions"
981 }
982 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/DataPayload/type`.
983 public var _type: Components.Schemas.App.RelationshipsPayload.AppStoreVersionsPayload.DataPayloadPayload._TypePayload
984 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/DataPayload/id`.
985 public var id: Swift.String
986 /// Creates a new `DataPayloadPayload`.
987 ///
988 /// - Parameters:
989 /// - _type:
990 /// - id:
991 public init(
992 _type: Components.Schemas.App.RelationshipsPayload.AppStoreVersionsPayload.DataPayloadPayload._TypePayload,
993 id: Swift.String
994 ) {
995 self._type = _type
996 self.id = id
997 }
998 public enum CodingKeys: String, CodingKey {
999 case _type = "type"
1000 case id
1001 }
1002 }
1003 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/data`.
1004 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AppStoreVersionsPayload.DataPayloadPayload]
1005 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/data`.
1006 public var data: Components.Schemas.App.RelationshipsPayload.AppStoreVersionsPayload.DataPayload?
1007 /// Creates a new `AppStoreVersionsPayload`.
1008 ///
1009 /// - Parameters:
1010 /// - links:
1011 /// - meta:
1012 /// - data:
1013 public init(
1014 links: Components.Schemas.RelationshipLinks? = nil,
1015 meta: Components.Schemas.PagingInformation? = nil,
1016 data: Components.Schemas.App.RelationshipsPayload.AppStoreVersionsPayload.DataPayload? = nil
1017 ) {
1018 self.links = links
1019 self.meta = meta
1020 self.data = data
1021 }
1022 public enum CodingKeys: String, CodingKey {
1023 case links
1024 case meta
1025 case data
1026 }
1027 }
1028 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions`.
1029 public var appStoreVersions: Components.Schemas.App.RelationshipsPayload.AppStoreVersionsPayload?
1030 /// - Remark: Generated from `#/components/schemas/App/relationships/appTags`.
1031 public struct AppTagsPayload: Codable, Hashable, Sendable {
1032 /// - Remark: Generated from `#/components/schemas/App/relationships/appTags/links`.
1033 public var links: Components.Schemas.RelationshipLinks?
1034 /// Creates a new `AppTagsPayload`.
1035 ///
1036 /// - Parameters:
1037 /// - links:
1038 public init(links: Components.Schemas.RelationshipLinks? = nil) {
1039 self.links = links
1040 }
1041 public enum CodingKeys: String, CodingKey {
1042 case links
1043 }
1044 }
1045 /// - Remark: Generated from `#/components/schemas/App/relationships/appTags`.
1046 public var appTags: Components.Schemas.App.RelationshipsPayload.AppTagsPayload?
1047 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions`.
1048 public struct PreReleaseVersionsPayload: Codable, Hashable, Sendable {
1049 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/links`.
1050 public var links: Components.Schemas.RelationshipLinks?
1051 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/meta`.
1052 public var meta: Components.Schemas.PagingInformation?
1053 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/DataPayload`.
1054 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1055 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/DataPayload/type`.
1056 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1057 case preReleaseVersions = "preReleaseVersions"
1058 }
1059 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/DataPayload/type`.
1060 public var _type: Components.Schemas.App.RelationshipsPayload.PreReleaseVersionsPayload.DataPayloadPayload._TypePayload
1061 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/DataPayload/id`.
1062 public var id: Swift.String
1063 /// Creates a new `DataPayloadPayload`.
1064 ///
1065 /// - Parameters:
1066 /// - _type:
1067 /// - id:
1068 public init(
1069 _type: Components.Schemas.App.RelationshipsPayload.PreReleaseVersionsPayload.DataPayloadPayload._TypePayload,
1070 id: Swift.String
1071 ) {
1072 self._type = _type
1073 self.id = id
1074 }
1075 public enum CodingKeys: String, CodingKey {
1076 case _type = "type"
1077 case id
1078 }
1079 }
1080 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/data`.
1081 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.PreReleaseVersionsPayload.DataPayloadPayload]
1082 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/data`.
1083 public var data: Components.Schemas.App.RelationshipsPayload.PreReleaseVersionsPayload.DataPayload?
1084 /// Creates a new `PreReleaseVersionsPayload`.
1085 ///
1086 /// - Parameters:
1087 /// - links:
1088 /// - meta:
1089 /// - data:
1090 public init(
1091 links: Components.Schemas.RelationshipLinks? = nil,
1092 meta: Components.Schemas.PagingInformation? = nil,
1093 data: Components.Schemas.App.RelationshipsPayload.PreReleaseVersionsPayload.DataPayload? = nil
1094 ) {
1095 self.links = links
1096 self.meta = meta
1097 self.data = data
1098 }
1099 public enum CodingKeys: String, CodingKey {
1100 case links
1101 case meta
1102 case data
1103 }
1104 }
1105 /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions`.
1106 public var preReleaseVersions: Components.Schemas.App.RelationshipsPayload.PreReleaseVersionsPayload?
1107 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations`.
1108 public struct BetaAppLocalizationsPayload: Codable, Hashable, Sendable {
1109 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/links`.
1110 public var links: Components.Schemas.RelationshipLinks?
1111 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/meta`.
1112 public var meta: Components.Schemas.PagingInformation?
1113 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/DataPayload`.
1114 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1115 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/DataPayload/type`.
1116 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1117 case betaAppLocalizations = "betaAppLocalizations"
1118 }
1119 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/DataPayload/type`.
1120 public var _type: Components.Schemas.App.RelationshipsPayload.BetaAppLocalizationsPayload.DataPayloadPayload._TypePayload
1121 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/DataPayload/id`.
1122 public var id: Swift.String
1123 /// Creates a new `DataPayloadPayload`.
1124 ///
1125 /// - Parameters:
1126 /// - _type:
1127 /// - id:
1128 public init(
1129 _type: Components.Schemas.App.RelationshipsPayload.BetaAppLocalizationsPayload.DataPayloadPayload._TypePayload,
1130 id: Swift.String
1131 ) {
1132 self._type = _type
1133 self.id = id
1134 }
1135 public enum CodingKeys: String, CodingKey {
1136 case _type = "type"
1137 case id
1138 }
1139 }
1140 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/data`.
1141 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.BetaAppLocalizationsPayload.DataPayloadPayload]
1142 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/data`.
1143 public var data: Components.Schemas.App.RelationshipsPayload.BetaAppLocalizationsPayload.DataPayload?
1144 /// Creates a new `BetaAppLocalizationsPayload`.
1145 ///
1146 /// - Parameters:
1147 /// - links:
1148 /// - meta:
1149 /// - data:
1150 public init(
1151 links: Components.Schemas.RelationshipLinks? = nil,
1152 meta: Components.Schemas.PagingInformation? = nil,
1153 data: Components.Schemas.App.RelationshipsPayload.BetaAppLocalizationsPayload.DataPayload? = nil
1154 ) {
1155 self.links = links
1156 self.meta = meta
1157 self.data = data
1158 }
1159 public enum CodingKeys: String, CodingKey {
1160 case links
1161 case meta
1162 case data
1163 }
1164 }
1165 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations`.
1166 public var betaAppLocalizations: Components.Schemas.App.RelationshipsPayload.BetaAppLocalizationsPayload?
1167 /// - Remark: Generated from `#/components/schemas/App/relationships/builds`.
1168 public struct BuildsPayload: Codable, Hashable, Sendable {
1169 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/links`.
1170 public var links: Components.Schemas.RelationshipLinks?
1171 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/meta`.
1172 public var meta: Components.Schemas.PagingInformation?
1173 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/DataPayload`.
1174 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1175 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/DataPayload/type`.
1176 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1177 case builds = "builds"
1178 }
1179 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/DataPayload/type`.
1180 public var _type: Components.Schemas.App.RelationshipsPayload.BuildsPayload.DataPayloadPayload._TypePayload
1181 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/DataPayload/id`.
1182 public var id: Swift.String
1183 /// Creates a new `DataPayloadPayload`.
1184 ///
1185 /// - Parameters:
1186 /// - _type:
1187 /// - id:
1188 public init(
1189 _type: Components.Schemas.App.RelationshipsPayload.BuildsPayload.DataPayloadPayload._TypePayload,
1190 id: Swift.String
1191 ) {
1192 self._type = _type
1193 self.id = id
1194 }
1195 public enum CodingKeys: String, CodingKey {
1196 case _type = "type"
1197 case id
1198 }
1199 }
1200 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/data`.
1201 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.BuildsPayload.DataPayloadPayload]
1202 /// - Remark: Generated from `#/components/schemas/App/relationships/builds/data`.
1203 public var data: Components.Schemas.App.RelationshipsPayload.BuildsPayload.DataPayload?
1204 /// Creates a new `BuildsPayload`.
1205 ///
1206 /// - Parameters:
1207 /// - links:
1208 /// - meta:
1209 /// - data:
1210 public init(
1211 links: Components.Schemas.RelationshipLinks? = nil,
1212 meta: Components.Schemas.PagingInformation? = nil,
1213 data: Components.Schemas.App.RelationshipsPayload.BuildsPayload.DataPayload? = nil
1214 ) {
1215 self.links = links
1216 self.meta = meta
1217 self.data = data
1218 }
1219 public enum CodingKeys: String, CodingKey {
1220 case links
1221 case meta
1222 case data
1223 }
1224 }
1225 /// - Remark: Generated from `#/components/schemas/App/relationships/builds`.
1226 public var builds: Components.Schemas.App.RelationshipsPayload.BuildsPayload?
1227 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement`.
1228 public struct BetaLicenseAgreementPayload: Codable, Hashable, Sendable {
1229 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/links`.
1230 public var links: Components.Schemas.RelationshipLinks?
1231 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data`.
1232 public struct DataPayload: Codable, Hashable, Sendable {
1233 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data/type`.
1234 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1235 case betaLicenseAgreements = "betaLicenseAgreements"
1236 }
1237 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data/type`.
1238 public var _type: Components.Schemas.App.RelationshipsPayload.BetaLicenseAgreementPayload.DataPayload._TypePayload
1239 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data/id`.
1240 public var id: Swift.String
1241 /// Creates a new `DataPayload`.
1242 ///
1243 /// - Parameters:
1244 /// - _type:
1245 /// - id:
1246 public init(
1247 _type: Components.Schemas.App.RelationshipsPayload.BetaLicenseAgreementPayload.DataPayload._TypePayload,
1248 id: Swift.String
1249 ) {
1250 self._type = _type
1251 self.id = id
1252 }
1253 public enum CodingKeys: String, CodingKey {
1254 case _type = "type"
1255 case id
1256 }
1257 }
1258 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data`.
1259 public var data: Components.Schemas.App.RelationshipsPayload.BetaLicenseAgreementPayload.DataPayload?
1260 /// Creates a new `BetaLicenseAgreementPayload`.
1261 ///
1262 /// - Parameters:
1263 /// - links:
1264 /// - data:
1265 public init(
1266 links: Components.Schemas.RelationshipLinks? = nil,
1267 data: Components.Schemas.App.RelationshipsPayload.BetaLicenseAgreementPayload.DataPayload? = nil
1268 ) {
1269 self.links = links
1270 self.data = data
1271 }
1272 public enum CodingKeys: String, CodingKey {
1273 case links
1274 case data
1275 }
1276 }
1277 /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement`.
1278 public var betaLicenseAgreement: Components.Schemas.App.RelationshipsPayload.BetaLicenseAgreementPayload?
1279 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail`.
1280 public struct BetaAppReviewDetailPayload: Codable, Hashable, Sendable {
1281 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/links`.
1282 public var links: Components.Schemas.RelationshipLinks?
1283 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data`.
1284 public struct DataPayload: Codable, Hashable, Sendable {
1285 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data/type`.
1286 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1287 case betaAppReviewDetails = "betaAppReviewDetails"
1288 }
1289 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data/type`.
1290 public var _type: Components.Schemas.App.RelationshipsPayload.BetaAppReviewDetailPayload.DataPayload._TypePayload
1291 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data/id`.
1292 public var id: Swift.String
1293 /// Creates a new `DataPayload`.
1294 ///
1295 /// - Parameters:
1296 /// - _type:
1297 /// - id:
1298 public init(
1299 _type: Components.Schemas.App.RelationshipsPayload.BetaAppReviewDetailPayload.DataPayload._TypePayload,
1300 id: Swift.String
1301 ) {
1302 self._type = _type
1303 self.id = id
1304 }
1305 public enum CodingKeys: String, CodingKey {
1306 case _type = "type"
1307 case id
1308 }
1309 }
1310 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data`.
1311 public var data: Components.Schemas.App.RelationshipsPayload.BetaAppReviewDetailPayload.DataPayload?
1312 /// Creates a new `BetaAppReviewDetailPayload`.
1313 ///
1314 /// - Parameters:
1315 /// - links:
1316 /// - data:
1317 public init(
1318 links: Components.Schemas.RelationshipLinks? = nil,
1319 data: Components.Schemas.App.RelationshipsPayload.BetaAppReviewDetailPayload.DataPayload? = nil
1320 ) {
1321 self.links = links
1322 self.data = data
1323 }
1324 public enum CodingKeys: String, CodingKey {
1325 case links
1326 case data
1327 }
1328 }
1329 /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail`.
1330 public var betaAppReviewDetail: Components.Schemas.App.RelationshipsPayload.BetaAppReviewDetailPayload?
1331 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos`.
1332 public struct AppInfosPayload: Codable, Hashable, Sendable {
1333 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/links`.
1334 public var links: Components.Schemas.RelationshipLinks?
1335 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/meta`.
1336 public var meta: Components.Schemas.PagingInformation?
1337 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/DataPayload`.
1338 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1339 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/DataPayload/type`.
1340 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1341 case appInfos = "appInfos"
1342 }
1343 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/DataPayload/type`.
1344 public var _type: Components.Schemas.App.RelationshipsPayload.AppInfosPayload.DataPayloadPayload._TypePayload
1345 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/DataPayload/id`.
1346 public var id: Swift.String
1347 /// Creates a new `DataPayloadPayload`.
1348 ///
1349 /// - Parameters:
1350 /// - _type:
1351 /// - id:
1352 public init(
1353 _type: Components.Schemas.App.RelationshipsPayload.AppInfosPayload.DataPayloadPayload._TypePayload,
1354 id: Swift.String
1355 ) {
1356 self._type = _type
1357 self.id = id
1358 }
1359 public enum CodingKeys: String, CodingKey {
1360 case _type = "type"
1361 case id
1362 }
1363 }
1364 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/data`.
1365 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AppInfosPayload.DataPayloadPayload]
1366 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/data`.
1367 public var data: Components.Schemas.App.RelationshipsPayload.AppInfosPayload.DataPayload?
1368 /// Creates a new `AppInfosPayload`.
1369 ///
1370 /// - Parameters:
1371 /// - links:
1372 /// - meta:
1373 /// - data:
1374 public init(
1375 links: Components.Schemas.RelationshipLinks? = nil,
1376 meta: Components.Schemas.PagingInformation? = nil,
1377 data: Components.Schemas.App.RelationshipsPayload.AppInfosPayload.DataPayload? = nil
1378 ) {
1379 self.links = links
1380 self.meta = meta
1381 self.data = data
1382 }
1383 public enum CodingKeys: String, CodingKey {
1384 case links
1385 case meta
1386 case data
1387 }
1388 }
1389 /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos`.
1390 public var appInfos: Components.Schemas.App.RelationshipsPayload.AppInfosPayload?
1391 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips`.
1392 public struct AppClipsPayload: Codable, Hashable, Sendable {
1393 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/links`.
1394 public var links: Components.Schemas.RelationshipLinks?
1395 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/meta`.
1396 public var meta: Components.Schemas.PagingInformation?
1397 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/DataPayload`.
1398 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1399 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/DataPayload/type`.
1400 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1401 case appClips = "appClips"
1402 }
1403 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/DataPayload/type`.
1404 public var _type: Components.Schemas.App.RelationshipsPayload.AppClipsPayload.DataPayloadPayload._TypePayload
1405 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/DataPayload/id`.
1406 public var id: Swift.String
1407 /// Creates a new `DataPayloadPayload`.
1408 ///
1409 /// - Parameters:
1410 /// - _type:
1411 /// - id:
1412 public init(
1413 _type: Components.Schemas.App.RelationshipsPayload.AppClipsPayload.DataPayloadPayload._TypePayload,
1414 id: Swift.String
1415 ) {
1416 self._type = _type
1417 self.id = id
1418 }
1419 public enum CodingKeys: String, CodingKey {
1420 case _type = "type"
1421 case id
1422 }
1423 }
1424 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/data`.
1425 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AppClipsPayload.DataPayloadPayload]
1426 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/data`.
1427 public var data: Components.Schemas.App.RelationshipsPayload.AppClipsPayload.DataPayload?
1428 /// Creates a new `AppClipsPayload`.
1429 ///
1430 /// - Parameters:
1431 /// - links:
1432 /// - meta:
1433 /// - data:
1434 public init(
1435 links: Components.Schemas.RelationshipLinks? = nil,
1436 meta: Components.Schemas.PagingInformation? = nil,
1437 data: Components.Schemas.App.RelationshipsPayload.AppClipsPayload.DataPayload? = nil
1438 ) {
1439 self.links = links
1440 self.meta = meta
1441 self.data = data
1442 }
1443 public enum CodingKeys: String, CodingKey {
1444 case links
1445 case meta
1446 case data
1447 }
1448 }
1449 /// - Remark: Generated from `#/components/schemas/App/relationships/appClips`.
1450 public var appClips: Components.Schemas.App.RelationshipsPayload.AppClipsPayload?
1451 /// - Remark: Generated from `#/components/schemas/App/relationships/appPricePoints`.
1452 public struct AppPricePointsPayload: Codable, Hashable, Sendable {
1453 /// - Remark: Generated from `#/components/schemas/App/relationships/appPricePoints/links`.
1454 public var links: Components.Schemas.RelationshipLinks?
1455 /// Creates a new `AppPricePointsPayload`.
1456 ///
1457 /// - Parameters:
1458 /// - links:
1459 public init(links: Components.Schemas.RelationshipLinks? = nil) {
1460 self.links = links
1461 }
1462 public enum CodingKeys: String, CodingKey {
1463 case links
1464 }
1465 }
1466 /// - Remark: Generated from `#/components/schemas/App/relationships/appPricePoints`.
1467 public var appPricePoints: Components.Schemas.App.RelationshipsPayload.AppPricePointsPayload?
1468 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement`.
1469 public struct EndUserLicenseAgreementPayload: Codable, Hashable, Sendable {
1470 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/links`.
1471 public var links: Components.Schemas.RelationshipLinks?
1472 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data`.
1473 public struct DataPayload: Codable, Hashable, Sendable {
1474 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data/type`.
1475 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1476 case endUserLicenseAgreements = "endUserLicenseAgreements"
1477 }
1478 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data/type`.
1479 public var _type: Components.Schemas.App.RelationshipsPayload.EndUserLicenseAgreementPayload.DataPayload._TypePayload
1480 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data/id`.
1481 public var id: Swift.String
1482 /// Creates a new `DataPayload`.
1483 ///
1484 /// - Parameters:
1485 /// - _type:
1486 /// - id:
1487 public init(
1488 _type: Components.Schemas.App.RelationshipsPayload.EndUserLicenseAgreementPayload.DataPayload._TypePayload,
1489 id: Swift.String
1490 ) {
1491 self._type = _type
1492 self.id = id
1493 }
1494 public enum CodingKeys: String, CodingKey {
1495 case _type = "type"
1496 case id
1497 }
1498 }
1499 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data`.
1500 public var data: Components.Schemas.App.RelationshipsPayload.EndUserLicenseAgreementPayload.DataPayload?
1501 /// Creates a new `EndUserLicenseAgreementPayload`.
1502 ///
1503 /// - Parameters:
1504 /// - links:
1505 /// - data:
1506 public init(
1507 links: Components.Schemas.RelationshipLinks? = nil,
1508 data: Components.Schemas.App.RelationshipsPayload.EndUserLicenseAgreementPayload.DataPayload? = nil
1509 ) {
1510 self.links = links
1511 self.data = data
1512 }
1513 public enum CodingKeys: String, CodingKey {
1514 case links
1515 case data
1516 }
1517 }
1518 /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement`.
1519 public var endUserLicenseAgreement: Components.Schemas.App.RelationshipsPayload.EndUserLicenseAgreementPayload?
1520 /// - Remark: Generated from `#/components/schemas/App/relationships/appPriceSchedule`.
1521 public struct AppPriceSchedulePayload: Codable, Hashable, Sendable {
1522 /// - Remark: Generated from `#/components/schemas/App/relationships/appPriceSchedule/links`.
1523 public var links: Components.Schemas.RelationshipLinks?
1524 /// Creates a new `AppPriceSchedulePayload`.
1525 ///
1526 /// - Parameters:
1527 /// - links:
1528 public init(links: Components.Schemas.RelationshipLinks? = nil) {
1529 self.links = links
1530 }
1531 public enum CodingKeys: String, CodingKey {
1532 case links
1533 }
1534 }
1535 /// - Remark: Generated from `#/components/schemas/App/relationships/appPriceSchedule`.
1536 public var appPriceSchedule: Components.Schemas.App.RelationshipsPayload.AppPriceSchedulePayload?
1537 /// - Remark: Generated from `#/components/schemas/App/relationships/appAvailabilityV2`.
1538 public struct AppAvailabilityV2Payload: Codable, Hashable, Sendable {
1539 /// - Remark: Generated from `#/components/schemas/App/relationships/appAvailabilityV2/links`.
1540 public var links: Components.Schemas.RelationshipLinks?
1541 /// Creates a new `AppAvailabilityV2Payload`.
1542 ///
1543 /// - Parameters:
1544 /// - links:
1545 public init(links: Components.Schemas.RelationshipLinks? = nil) {
1546 self.links = links
1547 }
1548 public enum CodingKeys: String, CodingKey {
1549 case links
1550 }
1551 }
1552 /// - Remark: Generated from `#/components/schemas/App/relationships/appAvailabilityV2`.
1553 public var appAvailabilityV2: Components.Schemas.App.RelationshipsPayload.AppAvailabilityV2Payload?
1554 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases`.
1555 public struct InAppPurchasesPayload: Codable, Hashable, Sendable {
1556 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/links`.
1557 public var links: Components.Schemas.RelationshipLinks?
1558 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/meta`.
1559 public var meta: Components.Schemas.PagingInformation?
1560 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/DataPayload`.
1561 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1562 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/DataPayload/type`.
1563 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1564 case inAppPurchases = "inAppPurchases"
1565 }
1566 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/DataPayload/type`.
1567 public var _type: Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload.DataPayloadPayload._TypePayload
1568 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/DataPayload/id`.
1569 public var id: Swift.String
1570 /// Creates a new `DataPayloadPayload`.
1571 ///
1572 /// - Parameters:
1573 /// - _type:
1574 /// - id:
1575 public init(
1576 _type: Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload.DataPayloadPayload._TypePayload,
1577 id: Swift.String
1578 ) {
1579 self._type = _type
1580 self.id = id
1581 }
1582 public enum CodingKeys: String, CodingKey {
1583 case _type = "type"
1584 case id
1585 }
1586 }
1587 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/data`.
1588 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload.DataPayloadPayload]
1589 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/data`.
1590 public var data: Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload.DataPayload?
1591 /// Creates a new `InAppPurchasesPayload`.
1592 ///
1593 /// - Parameters:
1594 /// - links:
1595 /// - meta:
1596 /// - data:
1597 public init(
1598 links: Components.Schemas.RelationshipLinks? = nil,
1599 meta: Components.Schemas.PagingInformation? = nil,
1600 data: Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload.DataPayload? = nil
1601 ) {
1602 self.links = links
1603 self.meta = meta
1604 self.data = data
1605 }
1606 public enum CodingKeys: String, CodingKey {
1607 case links
1608 case meta
1609 case data
1610 }
1611 }
1612 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases`.
1613 public var inAppPurchases: Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload?
1614 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups`.
1615 public struct SubscriptionGroupsPayload: Codable, Hashable, Sendable {
1616 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/links`.
1617 public var links: Components.Schemas.RelationshipLinks?
1618 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/meta`.
1619 public var meta: Components.Schemas.PagingInformation?
1620 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/DataPayload`.
1621 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1622 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/DataPayload/type`.
1623 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1624 case subscriptionGroups = "subscriptionGroups"
1625 }
1626 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/DataPayload/type`.
1627 public var _type: Components.Schemas.App.RelationshipsPayload.SubscriptionGroupsPayload.DataPayloadPayload._TypePayload
1628 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/DataPayload/id`.
1629 public var id: Swift.String
1630 /// Creates a new `DataPayloadPayload`.
1631 ///
1632 /// - Parameters:
1633 /// - _type:
1634 /// - id:
1635 public init(
1636 _type: Components.Schemas.App.RelationshipsPayload.SubscriptionGroupsPayload.DataPayloadPayload._TypePayload,
1637 id: Swift.String
1638 ) {
1639 self._type = _type
1640 self.id = id
1641 }
1642 public enum CodingKeys: String, CodingKey {
1643 case _type = "type"
1644 case id
1645 }
1646 }
1647 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/data`.
1648 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.SubscriptionGroupsPayload.DataPayloadPayload]
1649 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/data`.
1650 public var data: Components.Schemas.App.RelationshipsPayload.SubscriptionGroupsPayload.DataPayload?
1651 /// Creates a new `SubscriptionGroupsPayload`.
1652 ///
1653 /// - Parameters:
1654 /// - links:
1655 /// - meta:
1656 /// - data:
1657 public init(
1658 links: Components.Schemas.RelationshipLinks? = nil,
1659 meta: Components.Schemas.PagingInformation? = nil,
1660 data: Components.Schemas.App.RelationshipsPayload.SubscriptionGroupsPayload.DataPayload? = nil
1661 ) {
1662 self.links = links
1663 self.meta = meta
1664 self.data = data
1665 }
1666 public enum CodingKeys: String, CodingKey {
1667 case links
1668 case meta
1669 case data
1670 }
1671 }
1672 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups`.
1673 public var subscriptionGroups: Components.Schemas.App.RelationshipsPayload.SubscriptionGroupsPayload?
1674 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions`.
1675 public struct GameCenterEnabledVersionsPayload: Codable, Hashable, Sendable {
1676 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/links`.
1677 public var links: Components.Schemas.RelationshipLinks?
1678 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/meta`.
1679 public var meta: Components.Schemas.PagingInformation?
1680 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/DataPayload`.
1681 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1682 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/DataPayload/type`.
1683 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1684 case gameCenterEnabledVersions = "gameCenterEnabledVersions"
1685 }
1686 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/DataPayload/type`.
1687 public var _type: Components.Schemas.App.RelationshipsPayload.GameCenterEnabledVersionsPayload.DataPayloadPayload._TypePayload
1688 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/DataPayload/id`.
1689 public var id: Swift.String
1690 /// Creates a new `DataPayloadPayload`.
1691 ///
1692 /// - Parameters:
1693 /// - _type:
1694 /// - id:
1695 public init(
1696 _type: Components.Schemas.App.RelationshipsPayload.GameCenterEnabledVersionsPayload.DataPayloadPayload._TypePayload,
1697 id: Swift.String
1698 ) {
1699 self._type = _type
1700 self.id = id
1701 }
1702 public enum CodingKeys: String, CodingKey {
1703 case _type = "type"
1704 case id
1705 }
1706 }
1707 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/data`.
1708 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.GameCenterEnabledVersionsPayload.DataPayloadPayload]
1709 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/data`.
1710 public var data: Components.Schemas.App.RelationshipsPayload.GameCenterEnabledVersionsPayload.DataPayload?
1711 /// Creates a new `GameCenterEnabledVersionsPayload`.
1712 ///
1713 /// - Parameters:
1714 /// - links:
1715 /// - meta:
1716 /// - data:
1717 public init(
1718 links: Components.Schemas.RelationshipLinks? = nil,
1719 meta: Components.Schemas.PagingInformation? = nil,
1720 data: Components.Schemas.App.RelationshipsPayload.GameCenterEnabledVersionsPayload.DataPayload? = nil
1721 ) {
1722 self.links = links
1723 self.meta = meta
1724 self.data = data
1725 }
1726 public enum CodingKeys: String, CodingKey {
1727 case links
1728 case meta
1729 case data
1730 }
1731 }
1732 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions`.
1733 public var gameCenterEnabledVersions: Components.Schemas.App.RelationshipsPayload.GameCenterEnabledVersionsPayload?
1734 /// - Remark: Generated from `#/components/schemas/App/relationships/perfPowerMetrics`.
1735 public struct PerfPowerMetricsPayload: Codable, Hashable, Sendable {
1736 /// - Remark: Generated from `#/components/schemas/App/relationships/perfPowerMetrics/links`.
1737 public var links: Components.Schemas.RelationshipLinks?
1738 /// Creates a new `PerfPowerMetricsPayload`.
1739 ///
1740 /// - Parameters:
1741 /// - links:
1742 public init(links: Components.Schemas.RelationshipLinks? = nil) {
1743 self.links = links
1744 }
1745 public enum CodingKeys: String, CodingKey {
1746 case links
1747 }
1748 }
1749 /// - Remark: Generated from `#/components/schemas/App/relationships/perfPowerMetrics`.
1750 public var perfPowerMetrics: Components.Schemas.App.RelationshipsPayload.PerfPowerMetricsPayload?
1751 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages`.
1752 public struct AppCustomProductPagesPayload: Codable, Hashable, Sendable {
1753 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/links`.
1754 public var links: Components.Schemas.RelationshipLinks?
1755 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/meta`.
1756 public var meta: Components.Schemas.PagingInformation?
1757 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/DataPayload`.
1758 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1759 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/DataPayload/type`.
1760 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1761 case appCustomProductPages = "appCustomProductPages"
1762 }
1763 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/DataPayload/type`.
1764 public var _type: Components.Schemas.App.RelationshipsPayload.AppCustomProductPagesPayload.DataPayloadPayload._TypePayload
1765 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/DataPayload/id`.
1766 public var id: Swift.String
1767 /// Creates a new `DataPayloadPayload`.
1768 ///
1769 /// - Parameters:
1770 /// - _type:
1771 /// - id:
1772 public init(
1773 _type: Components.Schemas.App.RelationshipsPayload.AppCustomProductPagesPayload.DataPayloadPayload._TypePayload,
1774 id: Swift.String
1775 ) {
1776 self._type = _type
1777 self.id = id
1778 }
1779 public enum CodingKeys: String, CodingKey {
1780 case _type = "type"
1781 case id
1782 }
1783 }
1784 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/data`.
1785 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AppCustomProductPagesPayload.DataPayloadPayload]
1786 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/data`.
1787 public var data: Components.Schemas.App.RelationshipsPayload.AppCustomProductPagesPayload.DataPayload?
1788 /// Creates a new `AppCustomProductPagesPayload`.
1789 ///
1790 /// - Parameters:
1791 /// - links:
1792 /// - meta:
1793 /// - data:
1794 public init(
1795 links: Components.Schemas.RelationshipLinks? = nil,
1796 meta: Components.Schemas.PagingInformation? = nil,
1797 data: Components.Schemas.App.RelationshipsPayload.AppCustomProductPagesPayload.DataPayload? = nil
1798 ) {
1799 self.links = links
1800 self.meta = meta
1801 self.data = data
1802 }
1803 public enum CodingKeys: String, CodingKey {
1804 case links
1805 case meta
1806 case data
1807 }
1808 }
1809 /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages`.
1810 public var appCustomProductPages: Components.Schemas.App.RelationshipsPayload.AppCustomProductPagesPayload?
1811 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2`.
1812 public struct InAppPurchasesV2Payload: Codable, Hashable, Sendable {
1813 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/links`.
1814 public var links: Components.Schemas.RelationshipLinks?
1815 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/meta`.
1816 public var meta: Components.Schemas.PagingInformation?
1817 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/DataPayload`.
1818 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1819 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/DataPayload/type`.
1820 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1821 case inAppPurchases = "inAppPurchases"
1822 }
1823 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/DataPayload/type`.
1824 public var _type: Components.Schemas.App.RelationshipsPayload.InAppPurchasesV2Payload.DataPayloadPayload._TypePayload
1825 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/DataPayload/id`.
1826 public var id: Swift.String
1827 /// Creates a new `DataPayloadPayload`.
1828 ///
1829 /// - Parameters:
1830 /// - _type:
1831 /// - id:
1832 public init(
1833 _type: Components.Schemas.App.RelationshipsPayload.InAppPurchasesV2Payload.DataPayloadPayload._TypePayload,
1834 id: Swift.String
1835 ) {
1836 self._type = _type
1837 self.id = id
1838 }
1839 public enum CodingKeys: String, CodingKey {
1840 case _type = "type"
1841 case id
1842 }
1843 }
1844 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/data`.
1845 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.InAppPurchasesV2Payload.DataPayloadPayload]
1846 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/data`.
1847 public var data: Components.Schemas.App.RelationshipsPayload.InAppPurchasesV2Payload.DataPayload?
1848 /// Creates a new `InAppPurchasesV2Payload`.
1849 ///
1850 /// - Parameters:
1851 /// - links:
1852 /// - meta:
1853 /// - data:
1854 public init(
1855 links: Components.Schemas.RelationshipLinks? = nil,
1856 meta: Components.Schemas.PagingInformation? = nil,
1857 data: Components.Schemas.App.RelationshipsPayload.InAppPurchasesV2Payload.DataPayload? = nil
1858 ) {
1859 self.links = links
1860 self.meta = meta
1861 self.data = data
1862 }
1863 public enum CodingKeys: String, CodingKey {
1864 case links
1865 case meta
1866 case data
1867 }
1868 }
1869 /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2`.
1870 public var inAppPurchasesV2: Components.Schemas.App.RelationshipsPayload.InAppPurchasesV2Payload?
1871 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases`.
1872 public struct PromotedPurchasesPayload: Codable, Hashable, Sendable {
1873 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/links`.
1874 public var links: Components.Schemas.RelationshipLinks?
1875 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/meta`.
1876 public var meta: Components.Schemas.PagingInformation?
1877 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/DataPayload`.
1878 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1879 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/DataPayload/type`.
1880 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1881 case promotedPurchases = "promotedPurchases"
1882 }
1883 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/DataPayload/type`.
1884 public var _type: Components.Schemas.App.RelationshipsPayload.PromotedPurchasesPayload.DataPayloadPayload._TypePayload
1885 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/DataPayload/id`.
1886 public var id: Swift.String
1887 /// Creates a new `DataPayloadPayload`.
1888 ///
1889 /// - Parameters:
1890 /// - _type:
1891 /// - id:
1892 public init(
1893 _type: Components.Schemas.App.RelationshipsPayload.PromotedPurchasesPayload.DataPayloadPayload._TypePayload,
1894 id: Swift.String
1895 ) {
1896 self._type = _type
1897 self.id = id
1898 }
1899 public enum CodingKeys: String, CodingKey {
1900 case _type = "type"
1901 case id
1902 }
1903 }
1904 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/data`.
1905 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.PromotedPurchasesPayload.DataPayloadPayload]
1906 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/data`.
1907 public var data: Components.Schemas.App.RelationshipsPayload.PromotedPurchasesPayload.DataPayload?
1908 /// Creates a new `PromotedPurchasesPayload`.
1909 ///
1910 /// - Parameters:
1911 /// - links:
1912 /// - meta:
1913 /// - data:
1914 public init(
1915 links: Components.Schemas.RelationshipLinks? = nil,
1916 meta: Components.Schemas.PagingInformation? = nil,
1917 data: Components.Schemas.App.RelationshipsPayload.PromotedPurchasesPayload.DataPayload? = nil
1918 ) {
1919 self.links = links
1920 self.meta = meta
1921 self.data = data
1922 }
1923 public enum CodingKeys: String, CodingKey {
1924 case links
1925 case meta
1926 case data
1927 }
1928 }
1929 /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases`.
1930 public var promotedPurchases: Components.Schemas.App.RelationshipsPayload.PromotedPurchasesPayload?
1931 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents`.
1932 public struct AppEventsPayload: Codable, Hashable, Sendable {
1933 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/links`.
1934 public var links: Components.Schemas.RelationshipLinks?
1935 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/meta`.
1936 public var meta: Components.Schemas.PagingInformation?
1937 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/DataPayload`.
1938 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1939 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/DataPayload/type`.
1940 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
1941 case appEvents = "appEvents"
1942 }
1943 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/DataPayload/type`.
1944 public var _type: Components.Schemas.App.RelationshipsPayload.AppEventsPayload.DataPayloadPayload._TypePayload
1945 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/DataPayload/id`.
1946 public var id: Swift.String
1947 /// Creates a new `DataPayloadPayload`.
1948 ///
1949 /// - Parameters:
1950 /// - _type:
1951 /// - id:
1952 public init(
1953 _type: Components.Schemas.App.RelationshipsPayload.AppEventsPayload.DataPayloadPayload._TypePayload,
1954 id: Swift.String
1955 ) {
1956 self._type = _type
1957 self.id = id
1958 }
1959 public enum CodingKeys: String, CodingKey {
1960 case _type = "type"
1961 case id
1962 }
1963 }
1964 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/data`.
1965 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AppEventsPayload.DataPayloadPayload]
1966 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/data`.
1967 public var data: Components.Schemas.App.RelationshipsPayload.AppEventsPayload.DataPayload?
1968 /// Creates a new `AppEventsPayload`.
1969 ///
1970 /// - Parameters:
1971 /// - links:
1972 /// - meta:
1973 /// - data:
1974 public init(
1975 links: Components.Schemas.RelationshipLinks? = nil,
1976 meta: Components.Schemas.PagingInformation? = nil,
1977 data: Components.Schemas.App.RelationshipsPayload.AppEventsPayload.DataPayload? = nil
1978 ) {
1979 self.links = links
1980 self.meta = meta
1981 self.data = data
1982 }
1983 public enum CodingKeys: String, CodingKey {
1984 case links
1985 case meta
1986 case data
1987 }
1988 }
1989 /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents`.
1990 public var appEvents: Components.Schemas.App.RelationshipsPayload.AppEventsPayload?
1991 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions`.
1992 public struct ReviewSubmissionsPayload: Codable, Hashable, Sendable {
1993 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/links`.
1994 public var links: Components.Schemas.RelationshipLinks?
1995 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/meta`.
1996 public var meta: Components.Schemas.PagingInformation?
1997 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/DataPayload`.
1998 public struct DataPayloadPayload: Codable, Hashable, Sendable {
1999 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/DataPayload/type`.
2000 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2001 case reviewSubmissions = "reviewSubmissions"
2002 }
2003 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/DataPayload/type`.
2004 public var _type: Components.Schemas.App.RelationshipsPayload.ReviewSubmissionsPayload.DataPayloadPayload._TypePayload
2005 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/DataPayload/id`.
2006 public var id: Swift.String
2007 /// Creates a new `DataPayloadPayload`.
2008 ///
2009 /// - Parameters:
2010 /// - _type:
2011 /// - id:
2012 public init(
2013 _type: Components.Schemas.App.RelationshipsPayload.ReviewSubmissionsPayload.DataPayloadPayload._TypePayload,
2014 id: Swift.String
2015 ) {
2016 self._type = _type
2017 self.id = id
2018 }
2019 public enum CodingKeys: String, CodingKey {
2020 case _type = "type"
2021 case id
2022 }
2023 }
2024 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/data`.
2025 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.ReviewSubmissionsPayload.DataPayloadPayload]
2026 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/data`.
2027 public var data: Components.Schemas.App.RelationshipsPayload.ReviewSubmissionsPayload.DataPayload?
2028 /// Creates a new `ReviewSubmissionsPayload`.
2029 ///
2030 /// - Parameters:
2031 /// - links:
2032 /// - meta:
2033 /// - data:
2034 public init(
2035 links: Components.Schemas.RelationshipLinks? = nil,
2036 meta: Components.Schemas.PagingInformation? = nil,
2037 data: Components.Schemas.App.RelationshipsPayload.ReviewSubmissionsPayload.DataPayload? = nil
2038 ) {
2039 self.links = links
2040 self.meta = meta
2041 self.data = data
2042 }
2043 public enum CodingKeys: String, CodingKey {
2044 case links
2045 case meta
2046 case data
2047 }
2048 }
2049 /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions`.
2050 public var reviewSubmissions: Components.Schemas.App.RelationshipsPayload.ReviewSubmissionsPayload?
2051 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod`.
2052 public struct SubscriptionGracePeriodPayload: Codable, Hashable, Sendable {
2053 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/links`.
2054 public var links: Components.Schemas.RelationshipLinks?
2055 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data`.
2056 public struct DataPayload: Codable, Hashable, Sendable {
2057 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data/type`.
2058 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2059 case subscriptionGracePeriods = "subscriptionGracePeriods"
2060 }
2061 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data/type`.
2062 public var _type: Components.Schemas.App.RelationshipsPayload.SubscriptionGracePeriodPayload.DataPayload._TypePayload
2063 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data/id`.
2064 public var id: Swift.String
2065 /// Creates a new `DataPayload`.
2066 ///
2067 /// - Parameters:
2068 /// - _type:
2069 /// - id:
2070 public init(
2071 _type: Components.Schemas.App.RelationshipsPayload.SubscriptionGracePeriodPayload.DataPayload._TypePayload,
2072 id: Swift.String
2073 ) {
2074 self._type = _type
2075 self.id = id
2076 }
2077 public enum CodingKeys: String, CodingKey {
2078 case _type = "type"
2079 case id
2080 }
2081 }
2082 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data`.
2083 public var data: Components.Schemas.App.RelationshipsPayload.SubscriptionGracePeriodPayload.DataPayload?
2084 /// Creates a new `SubscriptionGracePeriodPayload`.
2085 ///
2086 /// - Parameters:
2087 /// - links:
2088 /// - data:
2089 public init(
2090 links: Components.Schemas.RelationshipLinks? = nil,
2091 data: Components.Schemas.App.RelationshipsPayload.SubscriptionGracePeriodPayload.DataPayload? = nil
2092 ) {
2093 self.links = links
2094 self.data = data
2095 }
2096 public enum CodingKeys: String, CodingKey {
2097 case links
2098 case data
2099 }
2100 }
2101 /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod`.
2102 public var subscriptionGracePeriod: Components.Schemas.App.RelationshipsPayload.SubscriptionGracePeriodPayload?
2103 /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviews`.
2104 public struct CustomerReviewsPayload: Codable, Hashable, Sendable {
2105 /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviews/links`.
2106 public var links: Components.Schemas.RelationshipLinks?
2107 /// Creates a new `CustomerReviewsPayload`.
2108 ///
2109 /// - Parameters:
2110 /// - links:
2111 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2112 self.links = links
2113 }
2114 public enum CodingKeys: String, CodingKey {
2115 case links
2116 }
2117 }
2118 /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviews`.
2119 public var customerReviews: Components.Schemas.App.RelationshipsPayload.CustomerReviewsPayload?
2120 /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviewSummarizations`.
2121 public struct CustomerReviewSummarizationsPayload: Codable, Hashable, Sendable {
2122 /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviewSummarizations/links`.
2123 public var links: Components.Schemas.RelationshipLinks?
2124 /// Creates a new `CustomerReviewSummarizationsPayload`.
2125 ///
2126 /// - Parameters:
2127 /// - links:
2128 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2129 self.links = links
2130 }
2131 public enum CodingKeys: String, CodingKey {
2132 case links
2133 }
2134 }
2135 /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviewSummarizations`.
2136 public var customerReviewSummarizations: Components.Schemas.App.RelationshipsPayload.CustomerReviewSummarizationsPayload?
2137 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail`.
2138 public struct GameCenterDetailPayload: Codable, Hashable, Sendable {
2139 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/links`.
2140 public var links: Components.Schemas.RelationshipLinks?
2141 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data`.
2142 public struct DataPayload: Codable, Hashable, Sendable {
2143 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data/type`.
2144 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2145 case gameCenterDetails = "gameCenterDetails"
2146 }
2147 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data/type`.
2148 public var _type: Components.Schemas.App.RelationshipsPayload.GameCenterDetailPayload.DataPayload._TypePayload
2149 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data/id`.
2150 public var id: Swift.String
2151 /// Creates a new `DataPayload`.
2152 ///
2153 /// - Parameters:
2154 /// - _type:
2155 /// - id:
2156 public init(
2157 _type: Components.Schemas.App.RelationshipsPayload.GameCenterDetailPayload.DataPayload._TypePayload,
2158 id: Swift.String
2159 ) {
2160 self._type = _type
2161 self.id = id
2162 }
2163 public enum CodingKeys: String, CodingKey {
2164 case _type = "type"
2165 case id
2166 }
2167 }
2168 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data`.
2169 public var data: Components.Schemas.App.RelationshipsPayload.GameCenterDetailPayload.DataPayload?
2170 /// Creates a new `GameCenterDetailPayload`.
2171 ///
2172 /// - Parameters:
2173 /// - links:
2174 /// - data:
2175 public init(
2176 links: Components.Schemas.RelationshipLinks? = nil,
2177 data: Components.Schemas.App.RelationshipsPayload.GameCenterDetailPayload.DataPayload? = nil
2178 ) {
2179 self.links = links
2180 self.data = data
2181 }
2182 public enum CodingKeys: String, CodingKey {
2183 case links
2184 case data
2185 }
2186 }
2187 /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail`.
2188 public var gameCenterDetail: Components.Schemas.App.RelationshipsPayload.GameCenterDetailPayload?
2189 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2`.
2190 public struct AppStoreVersionExperimentsV2Payload: Codable, Hashable, Sendable {
2191 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/links`.
2192 public var links: Components.Schemas.RelationshipLinks?
2193 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/meta`.
2194 public var meta: Components.Schemas.PagingInformation?
2195 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/DataPayload`.
2196 public struct DataPayloadPayload: Codable, Hashable, Sendable {
2197 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/DataPayload/type`.
2198 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2199 case appStoreVersionExperiments = "appStoreVersionExperiments"
2200 }
2201 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/DataPayload/type`.
2202 public var _type: Components.Schemas.App.RelationshipsPayload.AppStoreVersionExperimentsV2Payload.DataPayloadPayload._TypePayload
2203 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/DataPayload/id`.
2204 public var id: Swift.String
2205 /// Creates a new `DataPayloadPayload`.
2206 ///
2207 /// - Parameters:
2208 /// - _type:
2209 /// - id:
2210 public init(
2211 _type: Components.Schemas.App.RelationshipsPayload.AppStoreVersionExperimentsV2Payload.DataPayloadPayload._TypePayload,
2212 id: Swift.String
2213 ) {
2214 self._type = _type
2215 self.id = id
2216 }
2217 public enum CodingKeys: String, CodingKey {
2218 case _type = "type"
2219 case id
2220 }
2221 }
2222 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/data`.
2223 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AppStoreVersionExperimentsV2Payload.DataPayloadPayload]
2224 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/data`.
2225 public var data: Components.Schemas.App.RelationshipsPayload.AppStoreVersionExperimentsV2Payload.DataPayload?
2226 /// Creates a new `AppStoreVersionExperimentsV2Payload`.
2227 ///
2228 /// - Parameters:
2229 /// - links:
2230 /// - meta:
2231 /// - data:
2232 public init(
2233 links: Components.Schemas.RelationshipLinks? = nil,
2234 meta: Components.Schemas.PagingInformation? = nil,
2235 data: Components.Schemas.App.RelationshipsPayload.AppStoreVersionExperimentsV2Payload.DataPayload? = nil
2236 ) {
2237 self.links = links
2238 self.meta = meta
2239 self.data = data
2240 }
2241 public enum CodingKeys: String, CodingKey {
2242 case links
2243 case meta
2244 case data
2245 }
2246 }
2247 /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2`.
2248 public var appStoreVersionExperimentsV2: Components.Schemas.App.RelationshipsPayload.AppStoreVersionExperimentsV2Payload?
2249 /// - Remark: Generated from `#/components/schemas/App/relationships/alternativeDistributionKey`.
2250 public struct AlternativeDistributionKeyPayload: Codable, Hashable, Sendable {
2251 /// - Remark: Generated from `#/components/schemas/App/relationships/alternativeDistributionKey/links`.
2252 public var links: Components.Schemas.RelationshipLinks?
2253 /// Creates a new `AlternativeDistributionKeyPayload`.
2254 ///
2255 /// - Parameters:
2256 /// - links:
2257 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2258 self.links = links
2259 }
2260 public enum CodingKeys: String, CodingKey {
2261 case links
2262 }
2263 }
2264 /// - Remark: Generated from `#/components/schemas/App/relationships/alternativeDistributionKey`.
2265 public var alternativeDistributionKey: Components.Schemas.App.RelationshipsPayload.AlternativeDistributionKeyPayload?
2266 /// - Remark: Generated from `#/components/schemas/App/relationships/analyticsReportRequests`.
2267 public struct AnalyticsReportRequestsPayload: Codable, Hashable, Sendable {
2268 /// - Remark: Generated from `#/components/schemas/App/relationships/analyticsReportRequests/links`.
2269 public var links: Components.Schemas.RelationshipLinks?
2270 /// Creates a new `AnalyticsReportRequestsPayload`.
2271 ///
2272 /// - Parameters:
2273 /// - links:
2274 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2275 self.links = links
2276 }
2277 public enum CodingKeys: String, CodingKey {
2278 case links
2279 }
2280 }
2281 /// - Remark: Generated from `#/components/schemas/App/relationships/analyticsReportRequests`.
2282 public var analyticsReportRequests: Components.Schemas.App.RelationshipsPayload.AnalyticsReportRequestsPayload?
2283 /// - Remark: Generated from `#/components/schemas/App/relationships/marketplaceSearchDetail`.
2284 public struct MarketplaceSearchDetailPayload: Codable, Hashable, Sendable {
2285 /// - Remark: Generated from `#/components/schemas/App/relationships/marketplaceSearchDetail/links`.
2286 public var links: Components.Schemas.RelationshipLinks?
2287 /// Creates a new `MarketplaceSearchDetailPayload`.
2288 ///
2289 /// - Parameters:
2290 /// - links:
2291 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2292 self.links = links
2293 }
2294 public enum CodingKeys: String, CodingKey {
2295 case links
2296 }
2297 }
2298 /// - Remark: Generated from `#/components/schemas/App/relationships/marketplaceSearchDetail`.
2299 public var marketplaceSearchDetail: Components.Schemas.App.RelationshipsPayload.MarketplaceSearchDetailPayload?
2300 /// - Remark: Generated from `#/components/schemas/App/relationships/buildUploads`.
2301 public struct BuildUploadsPayload: Codable, Hashable, Sendable {
2302 /// - Remark: Generated from `#/components/schemas/App/relationships/buildUploads/links`.
2303 public var links: Components.Schemas.RelationshipLinks?
2304 /// Creates a new `BuildUploadsPayload`.
2305 ///
2306 /// - Parameters:
2307 /// - links:
2308 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2309 self.links = links
2310 }
2311 public enum CodingKeys: String, CodingKey {
2312 case links
2313 }
2314 }
2315 /// - Remark: Generated from `#/components/schemas/App/relationships/buildUploads`.
2316 public var buildUploads: Components.Schemas.App.RelationshipsPayload.BuildUploadsPayload?
2317 /// - Remark: Generated from `#/components/schemas/App/relationships/backgroundAssets`.
2318 public struct BackgroundAssetsPayload: Codable, Hashable, Sendable {
2319 /// - Remark: Generated from `#/components/schemas/App/relationships/backgroundAssets/links`.
2320 public var links: Components.Schemas.RelationshipLinks?
2321 /// Creates a new `BackgroundAssetsPayload`.
2322 ///
2323 /// - Parameters:
2324 /// - links:
2325 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2326 self.links = links
2327 }
2328 public enum CodingKeys: String, CodingKey {
2329 case links
2330 }
2331 }
2332 /// - Remark: Generated from `#/components/schemas/App/relationships/backgroundAssets`.
2333 public var backgroundAssets: Components.Schemas.App.RelationshipsPayload.BackgroundAssetsPayload?
2334 /// - Remark: Generated from `#/components/schemas/App/relationships/betaFeedbackScreenshotSubmissions`.
2335 public struct BetaFeedbackScreenshotSubmissionsPayload: Codable, Hashable, Sendable {
2336 /// - Remark: Generated from `#/components/schemas/App/relationships/betaFeedbackScreenshotSubmissions/links`.
2337 public var links: Components.Schemas.RelationshipLinks?
2338 /// Creates a new `BetaFeedbackScreenshotSubmissionsPayload`.
2339 ///
2340 /// - Parameters:
2341 /// - links:
2342 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2343 self.links = links
2344 }
2345 public enum CodingKeys: String, CodingKey {
2346 case links
2347 }
2348 }
2349 /// - Remark: Generated from `#/components/schemas/App/relationships/betaFeedbackScreenshotSubmissions`.
2350 public var betaFeedbackScreenshotSubmissions: Components.Schemas.App.RelationshipsPayload.BetaFeedbackScreenshotSubmissionsPayload?
2351 /// - Remark: Generated from `#/components/schemas/App/relationships/betaFeedbackCrashSubmissions`.
2352 public struct BetaFeedbackCrashSubmissionsPayload: Codable, Hashable, Sendable {
2353 /// - Remark: Generated from `#/components/schemas/App/relationships/betaFeedbackCrashSubmissions/links`.
2354 public var links: Components.Schemas.RelationshipLinks?
2355 /// Creates a new `BetaFeedbackCrashSubmissionsPayload`.
2356 ///
2357 /// - Parameters:
2358 /// - links:
2359 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2360 self.links = links
2361 }
2362 public enum CodingKeys: String, CodingKey {
2363 case links
2364 }
2365 }
2366 /// - Remark: Generated from `#/components/schemas/App/relationships/betaFeedbackCrashSubmissions`.
2367 public var betaFeedbackCrashSubmissions: Components.Schemas.App.RelationshipsPayload.BetaFeedbackCrashSubmissionsPayload?
2368 /// - Remark: Generated from `#/components/schemas/App/relationships/searchKeywords`.
2369 public struct SearchKeywordsPayload: Codable, Hashable, Sendable {
2370 /// - Remark: Generated from `#/components/schemas/App/relationships/searchKeywords/links`.
2371 public var links: Components.Schemas.RelationshipLinks?
2372 /// Creates a new `SearchKeywordsPayload`.
2373 ///
2374 /// - Parameters:
2375 /// - links:
2376 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2377 self.links = links
2378 }
2379 public enum CodingKeys: String, CodingKey {
2380 case links
2381 }
2382 }
2383 /// - Remark: Generated from `#/components/schemas/App/relationships/searchKeywords`.
2384 public var searchKeywords: Components.Schemas.App.RelationshipsPayload.SearchKeywordsPayload?
2385 /// - Remark: Generated from `#/components/schemas/App/relationships/webhooks`.
2386 public struct WebhooksPayload: Codable, Hashable, Sendable {
2387 /// - Remark: Generated from `#/components/schemas/App/relationships/webhooks/links`.
2388 public var links: Components.Schemas.RelationshipLinks?
2389 /// Creates a new `WebhooksPayload`.
2390 ///
2391 /// - Parameters:
2392 /// - links:
2393 public init(links: Components.Schemas.RelationshipLinks? = nil) {
2394 self.links = links
2395 }
2396 public enum CodingKeys: String, CodingKey {
2397 case links
2398 }
2399 }
2400 /// - Remark: Generated from `#/components/schemas/App/relationships/webhooks`.
2401 public var webhooks: Components.Schemas.App.RelationshipsPayload.WebhooksPayload?
2402 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails`.
2403 public struct AndroidToIosAppMappingDetailsPayload: Codable, Hashable, Sendable {
2404 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/links`.
2405 public var links: Components.Schemas.RelationshipLinks?
2406 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/meta`.
2407 public var meta: Components.Schemas.PagingInformation?
2408 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/DataPayload`.
2409 public struct DataPayloadPayload: Codable, Hashable, Sendable {
2410 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/DataPayload/type`.
2411 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2412 case androidToIosAppMappingDetails = "androidToIosAppMappingDetails"
2413 }
2414 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/DataPayload/type`.
2415 public var _type: Components.Schemas.App.RelationshipsPayload.AndroidToIosAppMappingDetailsPayload.DataPayloadPayload._TypePayload
2416 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/DataPayload/id`.
2417 public var id: Swift.String
2418 /// Creates a new `DataPayloadPayload`.
2419 ///
2420 /// - Parameters:
2421 /// - _type:
2422 /// - id:
2423 public init(
2424 _type: Components.Schemas.App.RelationshipsPayload.AndroidToIosAppMappingDetailsPayload.DataPayloadPayload._TypePayload,
2425 id: Swift.String
2426 ) {
2427 self._type = _type
2428 self.id = id
2429 }
2430 public enum CodingKeys: String, CodingKey {
2431 case _type = "type"
2432 case id
2433 }
2434 }
2435 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/data`.
2436 public typealias DataPayload = [Components.Schemas.App.RelationshipsPayload.AndroidToIosAppMappingDetailsPayload.DataPayloadPayload]
2437 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails/data`.
2438 public var data: Components.Schemas.App.RelationshipsPayload.AndroidToIosAppMappingDetailsPayload.DataPayload?
2439 /// Creates a new `AndroidToIosAppMappingDetailsPayload`.
2440 ///
2441 /// - Parameters:
2442 /// - links:
2443 /// - meta:
2444 /// - data:
2445 public init(
2446 links: Components.Schemas.RelationshipLinks? = nil,
2447 meta: Components.Schemas.PagingInformation? = nil,
2448 data: Components.Schemas.App.RelationshipsPayload.AndroidToIosAppMappingDetailsPayload.DataPayload? = nil
2449 ) {
2450 self.links = links
2451 self.meta = meta
2452 self.data = data
2453 }
2454 public enum CodingKeys: String, CodingKey {
2455 case links
2456 case meta
2457 case data
2458 }
2459 }
2460 /// - Remark: Generated from `#/components/schemas/App/relationships/androidToIosAppMappingDetails`.
2461 public var androidToIosAppMappingDetails: Components.Schemas.App.RelationshipsPayload.AndroidToIosAppMappingDetailsPayload?
2462 /// Creates a new `RelationshipsPayload`.
2463 ///
2464 /// - Parameters:
2465 /// - accessibilityDeclarations:
2466 /// - appEncryptionDeclarations:
2467 /// - appStoreIcon:
2468 /// - ciProduct:
2469 /// - betaTesters:
2470 /// - betaGroups:
2471 /// - appStoreVersions:
2472 /// - appTags:
2473 /// - preReleaseVersions:
2474 /// - betaAppLocalizations:
2475 /// - builds:
2476 /// - betaLicenseAgreement:
2477 /// - betaAppReviewDetail:
2478 /// - appInfos:
2479 /// - appClips:
2480 /// - appPricePoints:
2481 /// - endUserLicenseAgreement:
2482 /// - appPriceSchedule:
2483 /// - appAvailabilityV2:
2484 /// - inAppPurchases:
2485 /// - subscriptionGroups:
2486 /// - gameCenterEnabledVersions:
2487 /// - perfPowerMetrics:
2488 /// - appCustomProductPages:
2489 /// - inAppPurchasesV2:
2490 /// - promotedPurchases:
2491 /// - appEvents:
2492 /// - reviewSubmissions:
2493 /// - subscriptionGracePeriod:
2494 /// - customerReviews:
2495 /// - customerReviewSummarizations:
2496 /// - gameCenterDetail:
2497 /// - appStoreVersionExperimentsV2:
2498 /// - alternativeDistributionKey:
2499 /// - analyticsReportRequests:
2500 /// - marketplaceSearchDetail:
2501 /// - buildUploads:
2502 /// - backgroundAssets:
2503 /// - betaFeedbackScreenshotSubmissions:
2504 /// - betaFeedbackCrashSubmissions:
2505 /// - searchKeywords:
2506 /// - webhooks:
2507 /// - androidToIosAppMappingDetails:
2508 public init(
2509 accessibilityDeclarations: Components.Schemas.App.RelationshipsPayload.AccessibilityDeclarationsPayload? = nil,
2510 appEncryptionDeclarations: Components.Schemas.App.RelationshipsPayload.AppEncryptionDeclarationsPayload? = nil,
2511 appStoreIcon: Components.Schemas.App.RelationshipsPayload.AppStoreIconPayload? = nil,
2512 ciProduct: Components.Schemas.App.RelationshipsPayload.CiProductPayload? = nil,
2513 betaTesters: Components.Schemas.App.RelationshipsPayload.BetaTestersPayload? = nil,
2514 betaGroups: Components.Schemas.App.RelationshipsPayload.BetaGroupsPayload? = nil,
2515 appStoreVersions: Components.Schemas.App.RelationshipsPayload.AppStoreVersionsPayload? = nil,
2516 appTags: Components.Schemas.App.RelationshipsPayload.AppTagsPayload? = nil,
2517 preReleaseVersions: Components.Schemas.App.RelationshipsPayload.PreReleaseVersionsPayload? = nil,
2518 betaAppLocalizations: Components.Schemas.App.RelationshipsPayload.BetaAppLocalizationsPayload? = nil,
2519 builds: Components.Schemas.App.RelationshipsPayload.BuildsPayload? = nil,
2520 betaLicenseAgreement: Components.Schemas.App.RelationshipsPayload.BetaLicenseAgreementPayload? = nil,
2521 betaAppReviewDetail: Components.Schemas.App.RelationshipsPayload.BetaAppReviewDetailPayload? = nil,
2522 appInfos: Components.Schemas.App.RelationshipsPayload.AppInfosPayload? = nil,
2523 appClips: Components.Schemas.App.RelationshipsPayload.AppClipsPayload? = nil,
2524 appPricePoints: Components.Schemas.App.RelationshipsPayload.AppPricePointsPayload? = nil,
2525 endUserLicenseAgreement: Components.Schemas.App.RelationshipsPayload.EndUserLicenseAgreementPayload? = nil,
2526 appPriceSchedule: Components.Schemas.App.RelationshipsPayload.AppPriceSchedulePayload? = nil,
2527 appAvailabilityV2: Components.Schemas.App.RelationshipsPayload.AppAvailabilityV2Payload? = nil,
2528 inAppPurchases: Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload? = nil,
2529 subscriptionGroups: Components.Schemas.App.RelationshipsPayload.SubscriptionGroupsPayload? = nil,
2530 gameCenterEnabledVersions: Components.Schemas.App.RelationshipsPayload.GameCenterEnabledVersionsPayload? = nil,
2531 perfPowerMetrics: Components.Schemas.App.RelationshipsPayload.PerfPowerMetricsPayload? = nil,
2532 appCustomProductPages: Components.Schemas.App.RelationshipsPayload.AppCustomProductPagesPayload? = nil,
2533 inAppPurchasesV2: Components.Schemas.App.RelationshipsPayload.InAppPurchasesV2Payload? = nil,
2534 promotedPurchases: Components.Schemas.App.RelationshipsPayload.PromotedPurchasesPayload? = nil,
2535 appEvents: Components.Schemas.App.RelationshipsPayload.AppEventsPayload? = nil,
2536 reviewSubmissions: Components.Schemas.App.RelationshipsPayload.ReviewSubmissionsPayload? = nil,
2537 subscriptionGracePeriod: Components.Schemas.App.RelationshipsPayload.SubscriptionGracePeriodPayload? = nil,
2538 customerReviews: Components.Schemas.App.RelationshipsPayload.CustomerReviewsPayload? = nil,
2539 customerReviewSummarizations: Components.Schemas.App.RelationshipsPayload.CustomerReviewSummarizationsPayload? = nil,
2540 gameCenterDetail: Components.Schemas.App.RelationshipsPayload.GameCenterDetailPayload? = nil,
2541 appStoreVersionExperimentsV2: Components.Schemas.App.RelationshipsPayload.AppStoreVersionExperimentsV2Payload? = nil,
2542 alternativeDistributionKey: Components.Schemas.App.RelationshipsPayload.AlternativeDistributionKeyPayload? = nil,
2543 analyticsReportRequests: Components.Schemas.App.RelationshipsPayload.AnalyticsReportRequestsPayload? = nil,
2544 marketplaceSearchDetail: Components.Schemas.App.RelationshipsPayload.MarketplaceSearchDetailPayload? = nil,
2545 buildUploads: Components.Schemas.App.RelationshipsPayload.BuildUploadsPayload? = nil,
2546 backgroundAssets: Components.Schemas.App.RelationshipsPayload.BackgroundAssetsPayload? = nil,
2547 betaFeedbackScreenshotSubmissions: Components.Schemas.App.RelationshipsPayload.BetaFeedbackScreenshotSubmissionsPayload? = nil,
2548 betaFeedbackCrashSubmissions: Components.Schemas.App.RelationshipsPayload.BetaFeedbackCrashSubmissionsPayload? = nil,
2549 searchKeywords: Components.Schemas.App.RelationshipsPayload.SearchKeywordsPayload? = nil,
2550 webhooks: Components.Schemas.App.RelationshipsPayload.WebhooksPayload? = nil,
2551 androidToIosAppMappingDetails: Components.Schemas.App.RelationshipsPayload.AndroidToIosAppMappingDetailsPayload? = nil
2552 ) {
2553 self.accessibilityDeclarations = accessibilityDeclarations
2554 self.appEncryptionDeclarations = appEncryptionDeclarations
2555 self.appStoreIcon = appStoreIcon
2556 self.ciProduct = ciProduct
2557 self.betaTesters = betaTesters
2558 self.betaGroups = betaGroups
2559 self.appStoreVersions = appStoreVersions
2560 self.appTags = appTags
2561 self.preReleaseVersions = preReleaseVersions
2562 self.betaAppLocalizations = betaAppLocalizations
2563 self.builds = builds
2564 self.betaLicenseAgreement = betaLicenseAgreement
2565 self.betaAppReviewDetail = betaAppReviewDetail
2566 self.appInfos = appInfos
2567 self.appClips = appClips
2568 self.appPricePoints = appPricePoints
2569 self.endUserLicenseAgreement = endUserLicenseAgreement
2570 self.appPriceSchedule = appPriceSchedule
2571 self.appAvailabilityV2 = appAvailabilityV2
2572 self.inAppPurchases = inAppPurchases
2573 self.subscriptionGroups = subscriptionGroups
2574 self.gameCenterEnabledVersions = gameCenterEnabledVersions
2575 self.perfPowerMetrics = perfPowerMetrics
2576 self.appCustomProductPages = appCustomProductPages
2577 self.inAppPurchasesV2 = inAppPurchasesV2
2578 self.promotedPurchases = promotedPurchases
2579 self.appEvents = appEvents
2580 self.reviewSubmissions = reviewSubmissions
2581 self.subscriptionGracePeriod = subscriptionGracePeriod
2582 self.customerReviews = customerReviews
2583 self.customerReviewSummarizations = customerReviewSummarizations
2584 self.gameCenterDetail = gameCenterDetail
2585 self.appStoreVersionExperimentsV2 = appStoreVersionExperimentsV2
2586 self.alternativeDistributionKey = alternativeDistributionKey
2587 self.analyticsReportRequests = analyticsReportRequests
2588 self.marketplaceSearchDetail = marketplaceSearchDetail
2589 self.buildUploads = buildUploads
2590 self.backgroundAssets = backgroundAssets
2591 self.betaFeedbackScreenshotSubmissions = betaFeedbackScreenshotSubmissions
2592 self.betaFeedbackCrashSubmissions = betaFeedbackCrashSubmissions
2593 self.searchKeywords = searchKeywords
2594 self.webhooks = webhooks
2595 self.androidToIosAppMappingDetails = androidToIosAppMappingDetails
2596 }
2597 public enum CodingKeys: String, CodingKey {
2598 case accessibilityDeclarations
2599 case appEncryptionDeclarations
2600 case appStoreIcon
2601 case ciProduct
2602 case betaTesters
2603 case betaGroups
2604 case appStoreVersions
2605 case appTags
2606 case preReleaseVersions
2607 case betaAppLocalizations
2608 case builds
2609 case betaLicenseAgreement
2610 case betaAppReviewDetail
2611 case appInfos
2612 case appClips
2613 case appPricePoints
2614 case endUserLicenseAgreement
2615 case appPriceSchedule
2616 case appAvailabilityV2
2617 case inAppPurchases
2618 case subscriptionGroups
2619 case gameCenterEnabledVersions
2620 case perfPowerMetrics
2621 case appCustomProductPages
2622 case inAppPurchasesV2
2623 case promotedPurchases
2624 case appEvents
2625 case reviewSubmissions
2626 case subscriptionGracePeriod
2627 case customerReviews
2628 case customerReviewSummarizations
2629 case gameCenterDetail
2630 case appStoreVersionExperimentsV2
2631 case alternativeDistributionKey
2632 case analyticsReportRequests
2633 case marketplaceSearchDetail
2634 case buildUploads
2635 case backgroundAssets
2636 case betaFeedbackScreenshotSubmissions
2637 case betaFeedbackCrashSubmissions
2638 case searchKeywords
2639 case webhooks
2640 case androidToIosAppMappingDetails
2641 }
2642 }
2643 /// - Remark: Generated from `#/components/schemas/App/relationships`.
2644 public var relationships: Components.Schemas.App.RelationshipsPayload?
2645 /// - Remark: Generated from `#/components/schemas/App/links`.
2646 public var links: Components.Schemas.ResourceLinks?
2647 /// Creates a new `App`.
2648 ///
2649 /// - Parameters:
2650 /// - _type:
2651 /// - id:
2652 /// - attributes:
2653 /// - relationships:
2654 /// - links:
2655 public init(
2656 _type: Components.Schemas.App._TypePayload,
2657 id: Swift.String,
2658 attributes: Components.Schemas.App.AttributesPayload? = nil,
2659 relationships: Components.Schemas.App.RelationshipsPayload? = nil,
2660 links: Components.Schemas.ResourceLinks? = nil
2661 ) {
2662 self._type = _type
2663 self.id = id
2664 self.attributes = attributes
2665 self.relationships = relationships
2666 self.links = links
2667 }
2668 public enum CodingKeys: String, CodingKey {
2669 case _type = "type"
2670 case id
2671 case attributes
2672 case relationships
2673 case links
2674 }
2675 }
2676 /// - Remark: Generated from `#/components/schemas/BundleIdCapability`.
2677 public struct BundleIdCapability: Codable, Hashable, Sendable {
2678 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/type`.
2679 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2680 case bundleIdCapabilities = "bundleIdCapabilities"
2681 }
2682 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/type`.
2683 public var _type: Components.Schemas.BundleIdCapability._TypePayload
2684 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/id`.
2685 public var id: Swift.String
2686 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes`.
2687 public struct AttributesPayload: Codable, Hashable, Sendable {
2688 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes/capabilityType`.
2689 public var capabilityType: Components.Schemas.CapabilityType?
2690 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes/settings`.
2691 public var settings: [Components.Schemas.CapabilitySetting]?
2692 /// Creates a new `AttributesPayload`.
2693 ///
2694 /// - Parameters:
2695 /// - capabilityType:
2696 /// - settings:
2697 public init(
2698 capabilityType: Components.Schemas.CapabilityType? = nil,
2699 settings: [Components.Schemas.CapabilitySetting]? = nil
2700 ) {
2701 self.capabilityType = capabilityType
2702 self.settings = settings
2703 }
2704 public enum CodingKeys: String, CodingKey {
2705 case capabilityType
2706 case settings
2707 }
2708 }
2709 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes`.
2710 public var attributes: Components.Schemas.BundleIdCapability.AttributesPayload?
2711 /// - Remark: Generated from `#/components/schemas/BundleIdCapability/links`.
2712 public var links: Components.Schemas.ResourceLinks?
2713 /// Creates a new `BundleIdCapability`.
2714 ///
2715 /// - Parameters:
2716 /// - _type:
2717 /// - id:
2718 /// - attributes:
2719 /// - links:
2720 public init(
2721 _type: Components.Schemas.BundleIdCapability._TypePayload,
2722 id: Swift.String,
2723 attributes: Components.Schemas.BundleIdCapability.AttributesPayload? = nil,
2724 links: Components.Schemas.ResourceLinks? = nil
2725 ) {
2726 self._type = _type
2727 self.id = id
2728 self.attributes = attributes
2729 self.links = links
2730 }
2731 public enum CodingKeys: String, CodingKey {
2732 case _type = "type"
2733 case id
2734 case attributes
2735 case links
2736 }
2737 }
2738 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityResponse`.
2739 public struct BundleIdCapabilityResponse: Codable, Hashable, Sendable {
2740 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityResponse/data`.
2741 public var data: Components.Schemas.BundleIdCapability
2742 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityResponse/links`.
2743 public var links: Components.Schemas.DocumentLinks
2744 /// Creates a new `BundleIdCapabilityResponse`.
2745 ///
2746 /// - Parameters:
2747 /// - data:
2748 /// - links:
2749 public init(
2750 data: Components.Schemas.BundleIdCapability,
2751 links: Components.Schemas.DocumentLinks
2752 ) {
2753 self.data = data
2754 self.links = links
2755 }
2756 public enum CodingKeys: String, CodingKey {
2757 case data
2758 case links
2759 }
2760 }
2761 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest`.
2762 public struct BundleIdCapabilityCreateRequest: Codable, Hashable, Sendable {
2763 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data`.
2764 public struct DataPayload: Codable, Hashable, Sendable {
2765 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/type`.
2766 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2767 case bundleIdCapabilities = "bundleIdCapabilities"
2768 }
2769 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/type`.
2770 public var _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload._TypePayload
2771 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes`.
2772 public struct AttributesPayload: Codable, Hashable, Sendable {
2773 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes/capabilityType`.
2774 public var capabilityType: Components.Schemas.CapabilityType
2775 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes/settings`.
2776 public var settings: [Components.Schemas.CapabilitySetting]?
2777 /// Creates a new `AttributesPayload`.
2778 ///
2779 /// - Parameters:
2780 /// - capabilityType:
2781 /// - settings:
2782 public init(
2783 capabilityType: Components.Schemas.CapabilityType,
2784 settings: [Components.Schemas.CapabilitySetting]? = nil
2785 ) {
2786 self.capabilityType = capabilityType
2787 self.settings = settings
2788 }
2789 public enum CodingKeys: String, CodingKey {
2790 case capabilityType
2791 case settings
2792 }
2793 }
2794 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes`.
2795 public var attributes: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.AttributesPayload
2796 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships`.
2797 public struct RelationshipsPayload: Codable, Hashable, Sendable {
2798 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId`.
2799 public struct BundleIdPayload: Codable, Hashable, Sendable {
2800 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data`.
2801 public struct DataPayload: Codable, Hashable, Sendable {
2802 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data/type`.
2803 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2804 case bundleIds = "bundleIds"
2805 }
2806 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data/type`.
2807 public var _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload._TypePayload
2808 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data/id`.
2809 public var id: Swift.String
2810 /// Creates a new `DataPayload`.
2811 ///
2812 /// - Parameters:
2813 /// - _type:
2814 /// - id:
2815 public init(
2816 _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload._TypePayload,
2817 id: Swift.String
2818 ) {
2819 self._type = _type
2820 self.id = id
2821 }
2822 public enum CodingKeys: String, CodingKey {
2823 case _type = "type"
2824 case id
2825 }
2826 }
2827 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data`.
2828 public var data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload
2829 /// Creates a new `BundleIdPayload`.
2830 ///
2831 /// - Parameters:
2832 /// - data:
2833 public init(data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload) {
2834 self.data = data
2835 }
2836 public enum CodingKeys: String, CodingKey {
2837 case data
2838 }
2839 }
2840 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId`.
2841 public var bundleId: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload
2842 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability`.
2843 public struct CapabilityPayload: Codable, Hashable, Sendable {
2844 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data`.
2845 public struct DataPayload: Codable, Hashable, Sendable {
2846 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data/type`.
2847 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2848 case capabilities = "capabilities"
2849 }
2850 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data/type`.
2851 public var _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload._TypePayload
2852 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data/id`.
2853 public var id: Components.Schemas.CapabilityType
2854 /// Creates a new `DataPayload`.
2855 ///
2856 /// - Parameters:
2857 /// - _type:
2858 /// - id:
2859 public init(
2860 _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload._TypePayload,
2861 id: Components.Schemas.CapabilityType
2862 ) {
2863 self._type = _type
2864 self.id = id
2865 }
2866 public enum CodingKeys: String, CodingKey {
2867 case _type = "type"
2868 case id
2869 }
2870 }
2871 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data`.
2872 public var data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload
2873 /// Creates a new `CapabilityPayload`.
2874 ///
2875 /// - Parameters:
2876 /// - data:
2877 public init(data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload) {
2878 self.data = data
2879 }
2880 public enum CodingKeys: String, CodingKey {
2881 case data
2882 }
2883 }
2884 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability`.
2885 public var capability: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload?
2886 /// Creates a new `RelationshipsPayload`.
2887 ///
2888 /// - Parameters:
2889 /// - bundleId:
2890 /// - capability:
2891 public init(
2892 bundleId: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload,
2893 capability: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload? = nil
2894 ) {
2895 self.bundleId = bundleId
2896 self.capability = capability
2897 }
2898 public enum CodingKeys: String, CodingKey {
2899 case bundleId
2900 case capability
2901 }
2902 }
2903 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships`.
2904 public var relationships: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload
2905 /// Creates a new `DataPayload`.
2906 ///
2907 /// - Parameters:
2908 /// - _type:
2909 /// - attributes:
2910 /// - relationships:
2911 public init(
2912 _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload._TypePayload,
2913 attributes: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.AttributesPayload,
2914 relationships: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload
2915 ) {
2916 self._type = _type
2917 self.attributes = attributes
2918 self.relationships = relationships
2919 }
2920 public enum CodingKeys: String, CodingKey {
2921 case _type = "type"
2922 case attributes
2923 case relationships
2924 }
2925 }
2926 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data`.
2927 public var data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload
2928 /// Creates a new `BundleIdCapabilityCreateRequest`.
2929 ///
2930 /// - Parameters:
2931 /// - data:
2932 public init(data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload) {
2933 self.data = data
2934 }
2935 public enum CodingKeys: String, CodingKey {
2936 case data
2937 }
2938 }
2939 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest`.
2940 public struct BundleIdCapabilityUpdateRequest: Codable, Hashable, Sendable {
2941 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data`.
2942 public struct DataPayload: Codable, Hashable, Sendable {
2943 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/type`.
2944 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2945 case bundleIdCapabilities = "bundleIdCapabilities"
2946 }
2947 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/type`.
2948 public var _type: Components.Schemas.BundleIdCapabilityUpdateRequest.DataPayload._TypePayload
2949 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/id`.
2950 public var id: Swift.String
2951 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes`.
2952 public struct AttributesPayload: Codable, Hashable, Sendable {
2953 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes/capabilityType`.
2954 public var capabilityType: Components.Schemas.CapabilityType?
2955 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes/settings`.
2956 public var settings: [Components.Schemas.CapabilitySetting]?
2957 /// Creates a new `AttributesPayload`.
2958 ///
2959 /// - Parameters:
2960 /// - capabilityType:
2961 /// - settings:
2962 public init(
2963 capabilityType: Components.Schemas.CapabilityType? = nil,
2964 settings: [Components.Schemas.CapabilitySetting]? = nil
2965 ) {
2966 self.capabilityType = capabilityType
2967 self.settings = settings
2968 }
2969 public enum CodingKeys: String, CodingKey {
2970 case capabilityType
2971 case settings
2972 }
2973 }
2974 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes`.
2975 public var attributes: Components.Schemas.BundleIdCapabilityUpdateRequest.DataPayload.AttributesPayload?
2976 /// Creates a new `DataPayload`.
2977 ///
2978 /// - Parameters:
2979 /// - _type:
2980 /// - id:
2981 /// - attributes:
2982 public init(
2983 _type: Components.Schemas.BundleIdCapabilityUpdateRequest.DataPayload._TypePayload,
2984 id: Swift.String,
2985 attributes: Components.Schemas.BundleIdCapabilityUpdateRequest.DataPayload.AttributesPayload? = nil
2986 ) {
2987 self._type = _type
2988 self.id = id
2989 self.attributes = attributes
2990 }
2991 public enum CodingKeys: String, CodingKey {
2992 case _type = "type"
2993 case id
2994 case attributes
2995 }
2996 }
2997 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data`.
2998 public var data: Components.Schemas.BundleIdCapabilityUpdateRequest.DataPayload
2999 /// Creates a new `BundleIdCapabilityUpdateRequest`.
3000 ///
3001 /// - Parameters:
3002 /// - data:
3003 public init(data: Components.Schemas.BundleIdCapabilityUpdateRequest.DataPayload) {
3004 self.data = data
3005 }
3006 public enum CodingKeys: String, CodingKey {
3007 case data
3008 }
3009 }
3010 /// - Remark: Generated from `#/components/schemas/BundleId`.
3011 public struct BundleId: Codable, Hashable, Sendable {
3012 /// - Remark: Generated from `#/components/schemas/BundleId/type`.
3013 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3014 case bundleIds = "bundleIds"
3015 }
3016 /// - Remark: Generated from `#/components/schemas/BundleId/type`.
3017 public var _type: Components.Schemas.BundleId._TypePayload
3018 /// - Remark: Generated from `#/components/schemas/BundleId/id`.
3019 public var id: Swift.String
3020 /// - Remark: Generated from `#/components/schemas/BundleId/attributes`.
3021 public struct AttributesPayload: Codable, Hashable, Sendable {
3022 /// - Remark: Generated from `#/components/schemas/BundleId/attributes/name`.
3023 public var name: Swift.String?
3024 /// - Remark: Generated from `#/components/schemas/BundleId/attributes/platform`.
3025 public var platform: Components.Schemas.BundleIdPlatform?
3026 /// - Remark: Generated from `#/components/schemas/BundleId/attributes/identifier`.
3027 public var identifier: Swift.String?
3028 /// - Remark: Generated from `#/components/schemas/BundleId/attributes/seedId`.
3029 public var seedId: Swift.String?
3030 /// Creates a new `AttributesPayload`.
3031 ///
3032 /// - Parameters:
3033 /// - name:
3034 /// - platform:
3035 /// - identifier:
3036 /// - seedId:
3037 public init(
3038 name: Swift.String? = nil,
3039 platform: Components.Schemas.BundleIdPlatform? = nil,
3040 identifier: Swift.String? = nil,
3041 seedId: Swift.String? = nil
3042 ) {
3043 self.name = name
3044 self.platform = platform
3045 self.identifier = identifier
3046 self.seedId = seedId
3047 }
3048 public enum CodingKeys: String, CodingKey {
3049 case name
3050 case platform
3051 case identifier
3052 case seedId
3053 }
3054 }
3055 /// - Remark: Generated from `#/components/schemas/BundleId/attributes`.
3056 public var attributes: Components.Schemas.BundleId.AttributesPayload?
3057 /// - Remark: Generated from `#/components/schemas/BundleId/relationships`.
3058 public struct RelationshipsPayload: Codable, Hashable, Sendable {
3059 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles`.
3060 public struct ProfilesPayload: Codable, Hashable, Sendable {
3061 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/links`.
3062 public var links: Components.Schemas.RelationshipLinks?
3063 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/meta`.
3064 public var meta: Components.Schemas.PagingInformation?
3065 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/DataPayload`.
3066 public struct DataPayloadPayload: Codable, Hashable, Sendable {
3067 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/DataPayload/type`.
3068 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3069 case profiles = "profiles"
3070 }
3071 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/DataPayload/type`.
3072 public var _type: Components.Schemas.BundleId.RelationshipsPayload.ProfilesPayload.DataPayloadPayload._TypePayload
3073 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/DataPayload/id`.
3074 public var id: Swift.String
3075 /// Creates a new `DataPayloadPayload`.
3076 ///
3077 /// - Parameters:
3078 /// - _type:
3079 /// - id:
3080 public init(
3081 _type: Components.Schemas.BundleId.RelationshipsPayload.ProfilesPayload.DataPayloadPayload._TypePayload,
3082 id: Swift.String
3083 ) {
3084 self._type = _type
3085 self.id = id
3086 }
3087 public enum CodingKeys: String, CodingKey {
3088 case _type = "type"
3089 case id
3090 }
3091 }
3092 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/data`.
3093 public typealias DataPayload = [Components.Schemas.BundleId.RelationshipsPayload.ProfilesPayload.DataPayloadPayload]
3094 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/data`.
3095 public var data: Components.Schemas.BundleId.RelationshipsPayload.ProfilesPayload.DataPayload?
3096 /// Creates a new `ProfilesPayload`.
3097 ///
3098 /// - Parameters:
3099 /// - links:
3100 /// - meta:
3101 /// - data:
3102 public init(
3103 links: Components.Schemas.RelationshipLinks? = nil,
3104 meta: Components.Schemas.PagingInformation? = nil,
3105 data: Components.Schemas.BundleId.RelationshipsPayload.ProfilesPayload.DataPayload? = nil
3106 ) {
3107 self.links = links
3108 self.meta = meta
3109 self.data = data
3110 }
3111 public enum CodingKeys: String, CodingKey {
3112 case links
3113 case meta
3114 case data
3115 }
3116 }
3117 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles`.
3118 public var profiles: Components.Schemas.BundleId.RelationshipsPayload.ProfilesPayload?
3119 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities`.
3120 public struct BundleIdCapabilitiesPayload: Codable, Hashable, Sendable {
3121 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/links`.
3122 public var links: Components.Schemas.RelationshipLinks?
3123 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/meta`.
3124 public var meta: Components.Schemas.PagingInformation?
3125 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/DataPayload`.
3126 public struct DataPayloadPayload: Codable, Hashable, Sendable {
3127 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/DataPayload/type`.
3128 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3129 case bundleIdCapabilities = "bundleIdCapabilities"
3130 }
3131 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/DataPayload/type`.
3132 public var _type: Components.Schemas.BundleId.RelationshipsPayload.BundleIdCapabilitiesPayload.DataPayloadPayload._TypePayload
3133 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/DataPayload/id`.
3134 public var id: Swift.String
3135 /// Creates a new `DataPayloadPayload`.
3136 ///
3137 /// - Parameters:
3138 /// - _type:
3139 /// - id:
3140 public init(
3141 _type: Components.Schemas.BundleId.RelationshipsPayload.BundleIdCapabilitiesPayload.DataPayloadPayload._TypePayload,
3142 id: Swift.String
3143 ) {
3144 self._type = _type
3145 self.id = id
3146 }
3147 public enum CodingKeys: String, CodingKey {
3148 case _type = "type"
3149 case id
3150 }
3151 }
3152 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/data`.
3153 public typealias DataPayload = [Components.Schemas.BundleId.RelationshipsPayload.BundleIdCapabilitiesPayload.DataPayloadPayload]
3154 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/data`.
3155 public var data: Components.Schemas.BundleId.RelationshipsPayload.BundleIdCapabilitiesPayload.DataPayload?
3156 /// Creates a new `BundleIdCapabilitiesPayload`.
3157 ///
3158 /// - Parameters:
3159 /// - links:
3160 /// - meta:
3161 /// - data:
3162 public init(
3163 links: Components.Schemas.RelationshipLinks? = nil,
3164 meta: Components.Schemas.PagingInformation? = nil,
3165 data: Components.Schemas.BundleId.RelationshipsPayload.BundleIdCapabilitiesPayload.DataPayload? = nil
3166 ) {
3167 self.links = links
3168 self.meta = meta
3169 self.data = data
3170 }
3171 public enum CodingKeys: String, CodingKey {
3172 case links
3173 case meta
3174 case data
3175 }
3176 }
3177 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities`.
3178 public var bundleIdCapabilities: Components.Schemas.BundleId.RelationshipsPayload.BundleIdCapabilitiesPayload?
3179 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app`.
3180 public struct AppPayload: Codable, Hashable, Sendable {
3181 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/links`.
3182 public var links: Components.Schemas.RelationshipLinks?
3183 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data`.
3184 public struct DataPayload: Codable, Hashable, Sendable {
3185 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data/type`.
3186 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3187 case apps = "apps"
3188 }
3189 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data/type`.
3190 public var _type: Components.Schemas.BundleId.RelationshipsPayload.AppPayload.DataPayload._TypePayload
3191 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data/id`.
3192 public var id: Swift.String
3193 /// Creates a new `DataPayload`.
3194 ///
3195 /// - Parameters:
3196 /// - _type:
3197 /// - id:
3198 public init(
3199 _type: Components.Schemas.BundleId.RelationshipsPayload.AppPayload.DataPayload._TypePayload,
3200 id: Swift.String
3201 ) {
3202 self._type = _type
3203 self.id = id
3204 }
3205 public enum CodingKeys: String, CodingKey {
3206 case _type = "type"
3207 case id
3208 }
3209 }
3210 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data`.
3211 public var data: Components.Schemas.BundleId.RelationshipsPayload.AppPayload.DataPayload?
3212 /// Creates a new `AppPayload`.
3213 ///
3214 /// - Parameters:
3215 /// - links:
3216 /// - data:
3217 public init(
3218 links: Components.Schemas.RelationshipLinks? = nil,
3219 data: Components.Schemas.BundleId.RelationshipsPayload.AppPayload.DataPayload? = nil
3220 ) {
3221 self.links = links
3222 self.data = data
3223 }
3224 public enum CodingKeys: String, CodingKey {
3225 case links
3226 case data
3227 }
3228 }
3229 /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app`.
3230 public var app: Components.Schemas.BundleId.RelationshipsPayload.AppPayload?
3231 /// Creates a new `RelationshipsPayload`.
3232 ///
3233 /// - Parameters:
3234 /// - profiles:
3235 /// - bundleIdCapabilities:
3236 /// - app:
3237 public init(
3238 profiles: Components.Schemas.BundleId.RelationshipsPayload.ProfilesPayload? = nil,
3239 bundleIdCapabilities: Components.Schemas.BundleId.RelationshipsPayload.BundleIdCapabilitiesPayload? = nil,
3240 app: Components.Schemas.BundleId.RelationshipsPayload.AppPayload? = nil
3241 ) {
3242 self.profiles = profiles
3243 self.bundleIdCapabilities = bundleIdCapabilities
3244 self.app = app
3245 }
3246 public enum CodingKeys: String, CodingKey {
3247 case profiles
3248 case bundleIdCapabilities
3249 case app
3250 }
3251 }
3252 /// - Remark: Generated from `#/components/schemas/BundleId/relationships`.
3253 public var relationships: Components.Schemas.BundleId.RelationshipsPayload?
3254 /// - Remark: Generated from `#/components/schemas/BundleId/links`.
3255 public var links: Components.Schemas.ResourceLinks?
3256 /// Creates a new `BundleId`.
3257 ///
3258 /// - Parameters:
3259 /// - _type:
3260 /// - id:
3261 /// - attributes:
3262 /// - relationships:
3263 /// - links:
3264 public init(
3265 _type: Components.Schemas.BundleId._TypePayload,
3266 id: Swift.String,
3267 attributes: Components.Schemas.BundleId.AttributesPayload? = nil,
3268 relationships: Components.Schemas.BundleId.RelationshipsPayload? = nil,
3269 links: Components.Schemas.ResourceLinks? = nil
3270 ) {
3271 self._type = _type
3272 self.id = id
3273 self.attributes = attributes
3274 self.relationships = relationships
3275 self.links = links
3276 }
3277 public enum CodingKeys: String, CodingKey {
3278 case _type = "type"
3279 case id
3280 case attributes
3281 case relationships
3282 case links
3283 }
3284 }
3285 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse`.
3286 public struct BundleIdsResponse: Codable, Hashable, Sendable {
3287 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/data`.
3288 public var data: [Components.Schemas.BundleId]
3289 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/IncludedPayload`.
3290 @frozen public enum IncludedPayloadPayload: Codable, Hashable, Sendable {
3291 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/IncludedPayload/App`.
3292 case apps(Components.Schemas.App)
3293 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/IncludedPayload/BundleIdCapability`.
3294 case bundleIdCapabilities(Components.Schemas.BundleIdCapability)
3295 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/IncludedPayload/Profile`.
3296 case profiles(Components.Schemas.Profile)
3297 public enum CodingKeys: String, CodingKey {
3298 case _type = "type"
3299 }
3300 public init(from decoder: any Decoder) throws {
3301 let container = try decoder.container(keyedBy: CodingKeys.self)
3302 let discriminator = try container.decode(
3303 Swift.String.self,
3304 forKey: ._type
3305 )
3306 switch discriminator {
3307 case "apps":
3308 self = .apps(try .init(from: decoder))
3309 case "bundleIdCapabilities":
3310 self = .bundleIdCapabilities(try .init(from: decoder))
3311 case "profiles":
3312 self = .profiles(try .init(from: decoder))
3313 default:
3314 throw Swift.DecodingError.unknownOneOfDiscriminator(
3315 discriminatorKey: CodingKeys._type,
3316 discriminatorValue: discriminator,
3317 codingPath: decoder.codingPath
3318 )
3319 }
3320 }
3321 public func encode(to encoder: any Encoder) throws {
3322 switch self {
3323 case let .apps(value):
3324 try value.encode(to: encoder)
3325 case let .bundleIdCapabilities(value):
3326 try value.encode(to: encoder)
3327 case let .profiles(value):
3328 try value.encode(to: encoder)
3329 }
3330 }
3331 }
3332 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/included`.
3333 public typealias IncludedPayload = [Components.Schemas.BundleIdsResponse.IncludedPayloadPayload]
3334 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/included`.
3335 public var included: Components.Schemas.BundleIdsResponse.IncludedPayload?
3336 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/links`.
3337 public var links: Components.Schemas.PagedDocumentLinks
3338 /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/meta`.
3339 public var meta: Components.Schemas.PagingInformation?
3340 /// Creates a new `BundleIdsResponse`.
3341 ///
3342 /// - Parameters:
3343 /// - data:
3344 /// - included:
3345 /// - links:
3346 /// - meta:
3347 public init(
3348 data: [Components.Schemas.BundleId],
3349 included: Components.Schemas.BundleIdsResponse.IncludedPayload? = nil,
3350 links: Components.Schemas.PagedDocumentLinks,
3351 meta: Components.Schemas.PagingInformation? = nil
3352 ) {
3353 self.data = data
3354 self.included = included
3355 self.links = links
3356 self.meta = meta
3357 }
3358 public enum CodingKeys: String, CodingKey {
3359 case data
3360 case included
3361 case links
3362 case meta
3363 }
3364 }
3365 /// - Remark: Generated from `#/components/schemas/BundleIdResponse`.
3366 public struct BundleIdResponse: Codable, Hashable, Sendable {
3367 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/data`.
3368 public var data: Components.Schemas.BundleId
3369 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/IncludedPayload`.
3370 @frozen public enum IncludedPayloadPayload: Codable, Hashable, Sendable {
3371 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/IncludedPayload/App`.
3372 case apps(Components.Schemas.App)
3373 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/IncludedPayload/BundleIdCapability`.
3374 case bundleIdCapabilities(Components.Schemas.BundleIdCapability)
3375 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/IncludedPayload/Profile`.
3376 case profiles(Components.Schemas.Profile)
3377 public enum CodingKeys: String, CodingKey {
3378 case _type = "type"
3379 }
3380 public init(from decoder: any Decoder) throws {
3381 let container = try decoder.container(keyedBy: CodingKeys.self)
3382 let discriminator = try container.decode(
3383 Swift.String.self,
3384 forKey: ._type
3385 )
3386 switch discriminator {
3387 case "apps":
3388 self = .apps(try .init(from: decoder))
3389 case "bundleIdCapabilities":
3390 self = .bundleIdCapabilities(try .init(from: decoder))
3391 case "profiles":
3392 self = .profiles(try .init(from: decoder))
3393 default:
3394 throw Swift.DecodingError.unknownOneOfDiscriminator(
3395 discriminatorKey: CodingKeys._type,
3396 discriminatorValue: discriminator,
3397 codingPath: decoder.codingPath
3398 )
3399 }
3400 }
3401 public func encode(to encoder: any Encoder) throws {
3402 switch self {
3403 case let .apps(value):
3404 try value.encode(to: encoder)
3405 case let .bundleIdCapabilities(value):
3406 try value.encode(to: encoder)
3407 case let .profiles(value):
3408 try value.encode(to: encoder)
3409 }
3410 }
3411 }
3412 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/included`.
3413 public typealias IncludedPayload = [Components.Schemas.BundleIdResponse.IncludedPayloadPayload]
3414 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/included`.
3415 public var included: Components.Schemas.BundleIdResponse.IncludedPayload?
3416 /// - Remark: Generated from `#/components/schemas/BundleIdResponse/links`.
3417 public var links: Components.Schemas.DocumentLinks
3418 /// Creates a new `BundleIdResponse`.
3419 ///
3420 /// - Parameters:
3421 /// - data:
3422 /// - included:
3423 /// - links:
3424 public init(
3425 data: Components.Schemas.BundleId,
3426 included: Components.Schemas.BundleIdResponse.IncludedPayload? = nil,
3427 links: Components.Schemas.DocumentLinks
3428 ) {
3429 self.data = data
3430 self.included = included
3431 self.links = links
3432 }
3433 public enum CodingKeys: String, CodingKey {
3434 case data
3435 case included
3436 case links
3437 }
3438 }
3439 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest`.
3440 public struct BundleIdCreateRequest: Codable, Hashable, Sendable {
3441 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data`.
3442 public struct DataPayload: Codable, Hashable, Sendable {
3443 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/type`.
3444 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3445 case bundleIds = "bundleIds"
3446 }
3447 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/type`.
3448 public var _type: Components.Schemas.BundleIdCreateRequest.DataPayload._TypePayload
3449 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes`.
3450 public struct AttributesPayload: Codable, Hashable, Sendable {
3451 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/name`.
3452 public var name: Swift.String
3453 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/platform`.
3454 public var platform: Components.Schemas.BundleIdPlatform
3455 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/identifier`.
3456 public var identifier: Swift.String
3457 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/seedId`.
3458 public var seedId: Swift.String?
3459 /// Creates a new `AttributesPayload`.
3460 ///
3461 /// - Parameters:
3462 /// - name:
3463 /// - platform:
3464 /// - identifier:
3465 /// - seedId:
3466 public init(
3467 name: Swift.String,
3468 platform: Components.Schemas.BundleIdPlatform,
3469 identifier: Swift.String,
3470 seedId: Swift.String? = nil
3471 ) {
3472 self.name = name
3473 self.platform = platform
3474 self.identifier = identifier
3475 self.seedId = seedId
3476 }
3477 public enum CodingKeys: String, CodingKey {
3478 case name
3479 case platform
3480 case identifier
3481 case seedId
3482 }
3483 }
3484 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes`.
3485 public var attributes: Components.Schemas.BundleIdCreateRequest.DataPayload.AttributesPayload
3486 /// Creates a new `DataPayload`.
3487 ///
3488 /// - Parameters:
3489 /// - _type:
3490 /// - attributes:
3491 public init(
3492 _type: Components.Schemas.BundleIdCreateRequest.DataPayload._TypePayload,
3493 attributes: Components.Schemas.BundleIdCreateRequest.DataPayload.AttributesPayload
3494 ) {
3495 self._type = _type
3496 self.attributes = attributes
3497 }
3498 public enum CodingKeys: String, CodingKey {
3499 case _type = "type"
3500 case attributes
3501 }
3502 }
3503 /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data`.
3504 public var data: Components.Schemas.BundleIdCreateRequest.DataPayload
3505 /// Creates a new `BundleIdCreateRequest`.
3506 ///
3507 /// - Parameters:
3508 /// - data:
3509 public init(data: Components.Schemas.BundleIdCreateRequest.DataPayload) {
3510 self.data = data
3511 }
3512 public enum CodingKeys: String, CodingKey {
3513 case data
3514 }
3515 }
3516 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest`.
3517 public struct BundleIdUpdateRequest: Codable, Hashable, Sendable {
3518 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data`.
3519 public struct DataPayload: Codable, Hashable, Sendable {
3520 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/type`.
3521 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3522 case bundleIds = "bundleIds"
3523 }
3524 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/type`.
3525 public var _type: Components.Schemas.BundleIdUpdateRequest.DataPayload._TypePayload
3526 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/id`.
3527 public var id: Swift.String
3528 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/attributes`.
3529 public struct AttributesPayload: Codable, Hashable, Sendable {
3530 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/attributes/name`.
3531 public var name: Swift.String?
3532 /// Creates a new `AttributesPayload`.
3533 ///
3534 /// - Parameters:
3535 /// - name:
3536 public init(name: Swift.String? = nil) {
3537 self.name = name
3538 }
3539 public enum CodingKeys: String, CodingKey {
3540 case name
3541 }
3542 }
3543 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/attributes`.
3544 public var attributes: Components.Schemas.BundleIdUpdateRequest.DataPayload.AttributesPayload?
3545 /// Creates a new `DataPayload`.
3546 ///
3547 /// - Parameters:
3548 /// - _type:
3549 /// - id:
3550 /// - attributes:
3551 public init(
3552 _type: Components.Schemas.BundleIdUpdateRequest.DataPayload._TypePayload,
3553 id: Swift.String,
3554 attributes: Components.Schemas.BundleIdUpdateRequest.DataPayload.AttributesPayload? = nil
3555 ) {
3556 self._type = _type
3557 self.id = id
3558 self.attributes = attributes
3559 }
3560 public enum CodingKeys: String, CodingKey {
3561 case _type = "type"
3562 case id
3563 case attributes
3564 }
3565 }
3566 /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data`.
3567 public var data: Components.Schemas.BundleIdUpdateRequest.DataPayload
3568 /// Creates a new `BundleIdUpdateRequest`.
3569 ///
3570 /// - Parameters:
3571 /// - data:
3572 public init(data: Components.Schemas.BundleIdUpdateRequest.DataPayload) {
3573 self.data = data
3574 }
3575 public enum CodingKeys: String, CodingKey {
3576 case data
3577 }
3578 }
3579 /// - Remark: Generated from `#/components/schemas/Certificate`.
3580 public struct Certificate: Codable, Hashable, Sendable {
3581 /// - Remark: Generated from `#/components/schemas/Certificate/type`.
3582 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3583 case certificates = "certificates"
3584 }
3585 /// - Remark: Generated from `#/components/schemas/Certificate/type`.
3586 public var _type: Components.Schemas.Certificate._TypePayload
3587 /// - Remark: Generated from `#/components/schemas/Certificate/id`.
3588 public var id: Swift.String
3589 /// - Remark: Generated from `#/components/schemas/Certificate/attributes`.
3590 public struct AttributesPayload: Codable, Hashable, Sendable {
3591 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/name`.
3592 public var name: Swift.String?
3593 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/certificateType`.
3594 public var certificateType: Components.Schemas.CertificateType?
3595 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/displayName`.
3596 public var displayName: Swift.String?
3597 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/serialNumber`.
3598 public var serialNumber: Swift.String?
3599 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/platform`.
3600 public var platform: Components.Schemas.BundleIdPlatform?
3601 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/expirationDate`.
3602 public var expirationDate: Foundation.Date?
3603 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/certificateContent`.
3604 public var certificateContent: Swift.String?
3605 /// - Remark: Generated from `#/components/schemas/Certificate/attributes/activated`.
3606 public var activated: Swift.Bool?
3607 /// Creates a new `AttributesPayload`.
3608 ///
3609 /// - Parameters:
3610 /// - name:
3611 /// - certificateType:
3612 /// - displayName:
3613 /// - serialNumber:
3614 /// - platform:
3615 /// - expirationDate:
3616 /// - certificateContent:
3617 /// - activated:
3618 public init(
3619 name: Swift.String? = nil,
3620 certificateType: Components.Schemas.CertificateType? = nil,
3621 displayName: Swift.String? = nil,
3622 serialNumber: Swift.String? = nil,
3623 platform: Components.Schemas.BundleIdPlatform? = nil,
3624 expirationDate: Foundation.Date? = nil,
3625 certificateContent: Swift.String? = nil,
3626 activated: Swift.Bool? = nil
3627 ) {
3628 self.name = name
3629 self.certificateType = certificateType
3630 self.displayName = displayName
3631 self.serialNumber = serialNumber
3632 self.platform = platform
3633 self.expirationDate = expirationDate
3634 self.certificateContent = certificateContent
3635 self.activated = activated
3636 }
3637 public enum CodingKeys: String, CodingKey {
3638 case name
3639 case certificateType
3640 case displayName
3641 case serialNumber
3642 case platform
3643 case expirationDate
3644 case certificateContent
3645 case activated
3646 }
3647 }
3648 /// - Remark: Generated from `#/components/schemas/Certificate/attributes`.
3649 public var attributes: Components.Schemas.Certificate.AttributesPayload?
3650 /// - Remark: Generated from `#/components/schemas/Certificate/relationships`.
3651 public struct RelationshipsPayload: Codable, Hashable, Sendable {
3652 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId`.
3653 public struct PassTypeIdPayload: Codable, Hashable, Sendable {
3654 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId/links`.
3655 public var links: Components.Schemas.RelationshipLinks?
3656 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId/data`.
3657 public struct DataPayload: Codable, Hashable, Sendable {
3658 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId/data/type`.
3659 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3660 case passTypeIds = "passTypeIds"
3661 }
3662 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId/data/type`.
3663 public var _type: Components.Schemas.Certificate.RelationshipsPayload.PassTypeIdPayload.DataPayload._TypePayload
3664 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId/data/id`.
3665 public var id: Swift.String
3666 /// Creates a new `DataPayload`.
3667 ///
3668 /// - Parameters:
3669 /// - _type:
3670 /// - id:
3671 public init(
3672 _type: Components.Schemas.Certificate.RelationshipsPayload.PassTypeIdPayload.DataPayload._TypePayload,
3673 id: Swift.String
3674 ) {
3675 self._type = _type
3676 self.id = id
3677 }
3678 public enum CodingKeys: String, CodingKey {
3679 case _type = "type"
3680 case id
3681 }
3682 }
3683 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId/data`.
3684 public var data: Components.Schemas.Certificate.RelationshipsPayload.PassTypeIdPayload.DataPayload?
3685 /// Creates a new `PassTypeIdPayload`.
3686 ///
3687 /// - Parameters:
3688 /// - links:
3689 /// - data:
3690 public init(
3691 links: Components.Schemas.RelationshipLinks? = nil,
3692 data: Components.Schemas.Certificate.RelationshipsPayload.PassTypeIdPayload.DataPayload? = nil
3693 ) {
3694 self.links = links
3695 self.data = data
3696 }
3697 public enum CodingKeys: String, CodingKey {
3698 case links
3699 case data
3700 }
3701 }
3702 /// - Remark: Generated from `#/components/schemas/Certificate/relationships/passTypeId`.
3703 public var passTypeId: Components.Schemas.Certificate.RelationshipsPayload.PassTypeIdPayload?
3704 /// Creates a new `RelationshipsPayload`.
3705 ///
3706 /// - Parameters:
3707 /// - passTypeId:
3708 public init(passTypeId: Components.Schemas.Certificate.RelationshipsPayload.PassTypeIdPayload? = nil) {
3709 self.passTypeId = passTypeId
3710 }
3711 public enum CodingKeys: String, CodingKey {
3712 case passTypeId
3713 }
3714 }
3715 /// - Remark: Generated from `#/components/schemas/Certificate/relationships`.
3716 public var relationships: Components.Schemas.Certificate.RelationshipsPayload?
3717 /// - Remark: Generated from `#/components/schemas/Certificate/links`.
3718 public var links: Components.Schemas.ResourceLinks?
3719 /// Creates a new `Certificate`.
3720 ///
3721 /// - Parameters:
3722 /// - _type:
3723 /// - id:
3724 /// - attributes:
3725 /// - relationships:
3726 /// - links:
3727 public init(
3728 _type: Components.Schemas.Certificate._TypePayload,
3729 id: Swift.String,
3730 attributes: Components.Schemas.Certificate.AttributesPayload? = nil,
3731 relationships: Components.Schemas.Certificate.RelationshipsPayload? = nil,
3732 links: Components.Schemas.ResourceLinks? = nil
3733 ) {
3734 self._type = _type
3735 self.id = id
3736 self.attributes = attributes
3737 self.relationships = relationships
3738 self.links = links
3739 }
3740 public enum CodingKeys: String, CodingKey {
3741 case _type = "type"
3742 case id
3743 case attributes
3744 case relationships
3745 case links
3746 }
3747 }
3748 /// - Remark: Generated from `#/components/schemas/CertificatesResponse`.
3749 public struct CertificatesResponse: Codable, Hashable, Sendable {
3750 /// - Remark: Generated from `#/components/schemas/CertificatesResponse/data`.
3751 public var data: [Components.Schemas.Certificate]
3752 /// - Remark: Generated from `#/components/schemas/CertificatesResponse/included`.
3753 public var included: [Components.Schemas.PassTypeId]?
3754 /// - Remark: Generated from `#/components/schemas/CertificatesResponse/links`.
3755 public var links: Components.Schemas.PagedDocumentLinks
3756 /// - Remark: Generated from `#/components/schemas/CertificatesResponse/meta`.
3757 public var meta: Components.Schemas.PagingInformation?
3758 /// Creates a new `CertificatesResponse`.
3759 ///
3760 /// - Parameters:
3761 /// - data:
3762 /// - included:
3763 /// - links:
3764 /// - meta:
3765 public init(
3766 data: [Components.Schemas.Certificate],
3767 included: [Components.Schemas.PassTypeId]? = nil,
3768 links: Components.Schemas.PagedDocumentLinks,
3769 meta: Components.Schemas.PagingInformation? = nil
3770 ) {
3771 self.data = data
3772 self.included = included
3773 self.links = links
3774 self.meta = meta
3775 }
3776 public enum CodingKeys: String, CodingKey {
3777 case data
3778 case included
3779 case links
3780 case meta
3781 }
3782 }
3783 /// - Remark: Generated from `#/components/schemas/CertificateResponse`.
3784 public struct CertificateResponse: Codable, Hashable, Sendable {
3785 /// - Remark: Generated from `#/components/schemas/CertificateResponse/data`.
3786 public var data: Components.Schemas.Certificate
3787 /// - Remark: Generated from `#/components/schemas/CertificateResponse/included`.
3788 public var included: [Components.Schemas.PassTypeId]?
3789 /// - Remark: Generated from `#/components/schemas/CertificateResponse/links`.
3790 public var links: Components.Schemas.DocumentLinks
3791 /// Creates a new `CertificateResponse`.
3792 ///
3793 /// - Parameters:
3794 /// - data:
3795 /// - included:
3796 /// - links:
3797 public init(
3798 data: Components.Schemas.Certificate,
3799 included: [Components.Schemas.PassTypeId]? = nil,
3800 links: Components.Schemas.DocumentLinks
3801 ) {
3802 self.data = data
3803 self.included = included
3804 self.links = links
3805 }
3806 public enum CodingKeys: String, CodingKey {
3807 case data
3808 case included
3809 case links
3810 }
3811 }
3812 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest`.
3813 public struct CertificateCreateRequest: Codable, Hashable, Sendable {
3814 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data`.
3815 public struct DataPayload: Codable, Hashable, Sendable {
3816 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/type`.
3817 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3818 case certificates = "certificates"
3819 }
3820 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/type`.
3821 public var _type: Components.Schemas.CertificateCreateRequest.DataPayload._TypePayload
3822 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes`.
3823 public struct AttributesPayload: Codable, Hashable, Sendable {
3824 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes/csrContent`.
3825 public var csrContent: Swift.String
3826 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes/certificateType`.
3827 public var certificateType: Components.Schemas.CertificateType
3828 /// Creates a new `AttributesPayload`.
3829 ///
3830 /// - Parameters:
3831 /// - csrContent:
3832 /// - certificateType:
3833 public init(
3834 csrContent: Swift.String,
3835 certificateType: Components.Schemas.CertificateType
3836 ) {
3837 self.csrContent = csrContent
3838 self.certificateType = certificateType
3839 }
3840 public enum CodingKeys: String, CodingKey {
3841 case csrContent
3842 case certificateType
3843 }
3844 }
3845 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes`.
3846 public var attributes: Components.Schemas.CertificateCreateRequest.DataPayload.AttributesPayload
3847 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships`.
3848 public struct RelationshipsPayload: Codable, Hashable, Sendable {
3849 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/merchantId`.
3850 public struct MerchantIdPayload: Codable, Hashable, Sendable {
3851 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/merchantId/data`.
3852 public struct DataPayload: Codable, Hashable, Sendable {
3853 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/merchantId/data/type`.
3854 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3855 case merchantIds = "merchantIds"
3856 }
3857 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/merchantId/data/type`.
3858 public var _type: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.MerchantIdPayload.DataPayload._TypePayload
3859 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/merchantId/data/id`.
3860 public var id: Swift.String
3861 /// Creates a new `DataPayload`.
3862 ///
3863 /// - Parameters:
3864 /// - _type:
3865 /// - id:
3866 public init(
3867 _type: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.MerchantIdPayload.DataPayload._TypePayload,
3868 id: Swift.String
3869 ) {
3870 self._type = _type
3871 self.id = id
3872 }
3873 public enum CodingKeys: String, CodingKey {
3874 case _type = "type"
3875 case id
3876 }
3877 }
3878 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/merchantId/data`.
3879 public var data: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.MerchantIdPayload.DataPayload?
3880 /// Creates a new `MerchantIdPayload`.
3881 ///
3882 /// - Parameters:
3883 /// - data:
3884 public init(data: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.MerchantIdPayload.DataPayload? = nil) {
3885 self.data = data
3886 }
3887 public enum CodingKeys: String, CodingKey {
3888 case data
3889 }
3890 }
3891 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/merchantId`.
3892 public var merchantId: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.MerchantIdPayload?
3893 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/passTypeId`.
3894 public struct PassTypeIdPayload: Codable, Hashable, Sendable {
3895 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/passTypeId/data`.
3896 public struct DataPayload: Codable, Hashable, Sendable {
3897 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/passTypeId/data/type`.
3898 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3899 case passTypeIds = "passTypeIds"
3900 }
3901 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/passTypeId/data/type`.
3902 public var _type: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.PassTypeIdPayload.DataPayload._TypePayload
3903 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/passTypeId/data/id`.
3904 public var id: Swift.String
3905 /// Creates a new `DataPayload`.
3906 ///
3907 /// - Parameters:
3908 /// - _type:
3909 /// - id:
3910 public init(
3911 _type: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.PassTypeIdPayload.DataPayload._TypePayload,
3912 id: Swift.String
3913 ) {
3914 self._type = _type
3915 self.id = id
3916 }
3917 public enum CodingKeys: String, CodingKey {
3918 case _type = "type"
3919 case id
3920 }
3921 }
3922 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/passTypeId/data`.
3923 public var data: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.PassTypeIdPayload.DataPayload?
3924 /// Creates a new `PassTypeIdPayload`.
3925 ///
3926 /// - Parameters:
3927 /// - data:
3928 public init(data: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.PassTypeIdPayload.DataPayload? = nil) {
3929 self.data = data
3930 }
3931 public enum CodingKeys: String, CodingKey {
3932 case data
3933 }
3934 }
3935 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships/passTypeId`.
3936 public var passTypeId: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.PassTypeIdPayload?
3937 /// Creates a new `RelationshipsPayload`.
3938 ///
3939 /// - Parameters:
3940 /// - merchantId:
3941 /// - passTypeId:
3942 public init(
3943 merchantId: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.MerchantIdPayload? = nil,
3944 passTypeId: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload.PassTypeIdPayload? = nil
3945 ) {
3946 self.merchantId = merchantId
3947 self.passTypeId = passTypeId
3948 }
3949 public enum CodingKeys: String, CodingKey {
3950 case merchantId
3951 case passTypeId
3952 }
3953 }
3954 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/relationships`.
3955 public var relationships: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload?
3956 /// Creates a new `DataPayload`.
3957 ///
3958 /// - Parameters:
3959 /// - _type:
3960 /// - attributes:
3961 /// - relationships:
3962 public init(
3963 _type: Components.Schemas.CertificateCreateRequest.DataPayload._TypePayload,
3964 attributes: Components.Schemas.CertificateCreateRequest.DataPayload.AttributesPayload,
3965 relationships: Components.Schemas.CertificateCreateRequest.DataPayload.RelationshipsPayload? = nil
3966 ) {
3967 self._type = _type
3968 self.attributes = attributes
3969 self.relationships = relationships
3970 }
3971 public enum CodingKeys: String, CodingKey {
3972 case _type = "type"
3973 case attributes
3974 case relationships
3975 }
3976 }
3977 /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data`.
3978 public var data: Components.Schemas.CertificateCreateRequest.DataPayload
3979 /// Creates a new `CertificateCreateRequest`.
3980 ///
3981 /// - Parameters:
3982 /// - data:
3983 public init(data: Components.Schemas.CertificateCreateRequest.DataPayload) {
3984 self.data = data
3985 }
3986 public enum CodingKeys: String, CodingKey {
3987 case data
3988 }
3989 }
3990 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest`.
3991 public struct CertificateUpdateRequest: Codable, Hashable, Sendable {
3992 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data`.
3993 public struct DataPayload: Codable, Hashable, Sendable {
3994 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data/type`.
3995 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
3996 case certificates = "certificates"
3997 }
3998 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data/type`.
3999 public var _type: Components.Schemas.CertificateUpdateRequest.DataPayload._TypePayload
4000 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data/id`.
4001 public var id: Swift.String
4002 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data/attributes`.
4003 public struct AttributesPayload: Codable, Hashable, Sendable {
4004 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data/attributes/activated`.
4005 public var activated: Swift.Bool?
4006 /// Creates a new `AttributesPayload`.
4007 ///
4008 /// - Parameters:
4009 /// - activated:
4010 public init(activated: Swift.Bool? = nil) {
4011 self.activated = activated
4012 }
4013 public enum CodingKeys: String, CodingKey {
4014 case activated
4015 }
4016 }
4017 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data/attributes`.
4018 public var attributes: Components.Schemas.CertificateUpdateRequest.DataPayload.AttributesPayload?
4019 /// Creates a new `DataPayload`.
4020 ///
4021 /// - Parameters:
4022 /// - _type:
4023 /// - id:
4024 /// - attributes:
4025 public init(
4026 _type: Components.Schemas.CertificateUpdateRequest.DataPayload._TypePayload,
4027 id: Swift.String,
4028 attributes: Components.Schemas.CertificateUpdateRequest.DataPayload.AttributesPayload? = nil
4029 ) {
4030 self._type = _type
4031 self.id = id
4032 self.attributes = attributes
4033 }
4034 public enum CodingKeys: String, CodingKey {
4035 case _type = "type"
4036 case id
4037 case attributes
4038 }
4039 }
4040 /// - Remark: Generated from `#/components/schemas/CertificateUpdateRequest/data`.
4041 public var data: Components.Schemas.CertificateUpdateRequest.DataPayload
4042 /// Creates a new `CertificateUpdateRequest`.
4043 ///
4044 /// - Parameters:
4045 /// - data:
4046 public init(data: Components.Schemas.CertificateUpdateRequest.DataPayload) {
4047 self.data = data
4048 }
4049 public enum CodingKeys: String, CodingKey {
4050 case data
4051 }
4052 }
4053 /// - Remark: Generated from `#/components/schemas/Device`.
4054 public struct Device: Codable, Hashable, Sendable {
4055 /// - Remark: Generated from `#/components/schemas/Device/type`.
4056 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4057 case devices = "devices"
4058 }
4059 /// - Remark: Generated from `#/components/schemas/Device/type`.
4060 public var _type: Components.Schemas.Device._TypePayload
4061 /// - Remark: Generated from `#/components/schemas/Device/id`.
4062 public var id: Swift.String
4063 /// - Remark: Generated from `#/components/schemas/Device/attributes`.
4064 public struct AttributesPayload: Codable, Hashable, Sendable {
4065 /// - Remark: Generated from `#/components/schemas/Device/attributes/name`.
4066 public var name: Swift.String?
4067 /// - Remark: Generated from `#/components/schemas/Device/attributes/platform`.
4068 public var platform: Components.Schemas.BundleIdPlatform?
4069 /// - Remark: Generated from `#/components/schemas/Device/attributes/udid`.
4070 public var udid: Swift.String?
4071 /// - Remark: Generated from `#/components/schemas/Device/attributes/deviceClass`.
4072 public struct DeviceClassPayload: Codable, Hashable, Sendable {
4073 /// - Remark: Generated from `#/components/schemas/Device/attributes/deviceClass/value1`.
4074 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
4075 case appleVisionPro = "APPLE_VISION_PRO"
4076 case appleWatch = "APPLE_WATCH"
4077 case ipad = "IPAD"
4078 case iphone = "IPHONE"
4079 case ipod = "IPOD"
4080 case appleTv = "APPLE_TV"
4081 case mac = "MAC"
4082 }
4083 /// - Remark: Generated from `#/components/schemas/Device/attributes/deviceClass/value1`.
4084 public var value1: Components.Schemas.Device.AttributesPayload.DeviceClassPayload.Value1Payload?
4085 /// - Remark: Generated from `#/components/schemas/Device/attributes/deviceClass/value2`.
4086 public var value2: Swift.String?
4087 /// Creates a new `DeviceClassPayload`.
4088 ///
4089 /// - Parameters:
4090 /// - value1:
4091 /// - value2:
4092 public init(
4093 value1: Components.Schemas.Device.AttributesPayload.DeviceClassPayload.Value1Payload? = nil,
4094 value2: Swift.String? = nil
4095 ) {
4096 self.value1 = value1
4097 self.value2 = value2
4098 }
4099 public init(from decoder: any Decoder) throws {
4100 var errors: [any Error] = []
4101 do {
4102 self.value1 = try decoder.decodeFromSingleValueContainer()
4103 } catch {
4104 errors.append(error)
4105 }
4106 do {
4107 self.value2 = try decoder.decodeFromSingleValueContainer()
4108 } catch {
4109 errors.append(error)
4110 }
4111 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
4112 [
4113 self.value1,
4114 self.value2
4115 ],
4116 type: Self.self,
4117 codingPath: decoder.codingPath,
4118 errors: errors
4119 )
4120 }
4121 public func encode(to encoder: any Encoder) throws {
4122 try encoder.encodeFirstNonNilValueToSingleValueContainer([
4123 self.value1,
4124 self.value2
4125 ])
4126 }
4127 }
4128 /// - Remark: Generated from `#/components/schemas/Device/attributes/deviceClass`.
4129 public var deviceClass: Components.Schemas.Device.AttributesPayload.DeviceClassPayload?
4130 /// - Remark: Generated from `#/components/schemas/Device/attributes/status`.
4131 public struct StatusPayload: Codable, Hashable, Sendable {
4132 /// - Remark: Generated from `#/components/schemas/Device/attributes/status/value1`.
4133 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
4134 case enabled = "ENABLED"
4135 case disabled = "DISABLED"
4136 }
4137 /// - Remark: Generated from `#/components/schemas/Device/attributes/status/value1`.
4138 public var value1: Components.Schemas.Device.AttributesPayload.StatusPayload.Value1Payload?
4139 /// - Remark: Generated from `#/components/schemas/Device/attributes/status/value2`.
4140 public var value2: Swift.String?
4141 /// Creates a new `StatusPayload`.
4142 ///
4143 /// - Parameters:
4144 /// - value1:
4145 /// - value2:
4146 public init(
4147 value1: Components.Schemas.Device.AttributesPayload.StatusPayload.Value1Payload? = nil,
4148 value2: Swift.String? = nil
4149 ) {
4150 self.value1 = value1
4151 self.value2 = value2
4152 }
4153 public init(from decoder: any Decoder) throws {
4154 var errors: [any Error] = []
4155 do {
4156 self.value1 = try decoder.decodeFromSingleValueContainer()
4157 } catch {
4158 errors.append(error)
4159 }
4160 do {
4161 self.value2 = try decoder.decodeFromSingleValueContainer()
4162 } catch {
4163 errors.append(error)
4164 }
4165 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
4166 [
4167 self.value1,
4168 self.value2
4169 ],
4170 type: Self.self,
4171 codingPath: decoder.codingPath,
4172 errors: errors
4173 )
4174 }
4175 public func encode(to encoder: any Encoder) throws {
4176 try encoder.encodeFirstNonNilValueToSingleValueContainer([
4177 self.value1,
4178 self.value2
4179 ])
4180 }
4181 }
4182 /// - Remark: Generated from `#/components/schemas/Device/attributes/status`.
4183 public var status: Components.Schemas.Device.AttributesPayload.StatusPayload?
4184 /// - Remark: Generated from `#/components/schemas/Device/attributes/model`.
4185 public var model: Swift.String?
4186 /// - Remark: Generated from `#/components/schemas/Device/attributes/addedDate`.
4187 public var addedDate: Foundation.Date?
4188 /// Creates a new `AttributesPayload`.
4189 ///
4190 /// - Parameters:
4191 /// - name:
4192 /// - platform:
4193 /// - udid:
4194 /// - deviceClass:
4195 /// - status:
4196 /// - model:
4197 /// - addedDate:
4198 public init(
4199 name: Swift.String? = nil,
4200 platform: Components.Schemas.BundleIdPlatform? = nil,
4201 udid: Swift.String? = nil,
4202 deviceClass: Components.Schemas.Device.AttributesPayload.DeviceClassPayload? = nil,
4203 status: Components.Schemas.Device.AttributesPayload.StatusPayload? = nil,
4204 model: Swift.String? = nil,
4205 addedDate: Foundation.Date? = nil
4206 ) {
4207 self.name = name
4208 self.platform = platform
4209 self.udid = udid
4210 self.deviceClass = deviceClass
4211 self.status = status
4212 self.model = model
4213 self.addedDate = addedDate
4214 }
4215 public enum CodingKeys: String, CodingKey {
4216 case name
4217 case platform
4218 case udid
4219 case deviceClass
4220 case status
4221 case model
4222 case addedDate
4223 }
4224 }
4225 /// - Remark: Generated from `#/components/schemas/Device/attributes`.
4226 public var attributes: Components.Schemas.Device.AttributesPayload?
4227 /// - Remark: Generated from `#/components/schemas/Device/links`.
4228 public var links: Components.Schemas.ResourceLinks?
4229 /// Creates a new `Device`.
4230 ///
4231 /// - Parameters:
4232 /// - _type:
4233 /// - id:
4234 /// - attributes:
4235 /// - links:
4236 public init(
4237 _type: Components.Schemas.Device._TypePayload,
4238 id: Swift.String,
4239 attributes: Components.Schemas.Device.AttributesPayload? = nil,
4240 links: Components.Schemas.ResourceLinks? = nil
4241 ) {
4242 self._type = _type
4243 self.id = id
4244 self.attributes = attributes
4245 self.links = links
4246 }
4247 public enum CodingKeys: String, CodingKey {
4248 case _type = "type"
4249 case id
4250 case attributes
4251 case links
4252 }
4253 }
4254 /// - Remark: Generated from `#/components/schemas/DevicesResponse`.
4255 public struct DevicesResponse: Codable, Hashable, Sendable {
4256 /// - Remark: Generated from `#/components/schemas/DevicesResponse/data`.
4257 public var data: [Components.Schemas.Device]
4258 /// - Remark: Generated from `#/components/schemas/DevicesResponse/links`.
4259 public var links: Components.Schemas.PagedDocumentLinks
4260 /// - Remark: Generated from `#/components/schemas/DevicesResponse/meta`.
4261 public var meta: Components.Schemas.PagingInformation?
4262 /// Creates a new `DevicesResponse`.
4263 ///
4264 /// - Parameters:
4265 /// - data:
4266 /// - links:
4267 /// - meta:
4268 public init(
4269 data: [Components.Schemas.Device],
4270 links: Components.Schemas.PagedDocumentLinks,
4271 meta: Components.Schemas.PagingInformation? = nil
4272 ) {
4273 self.data = data
4274 self.links = links
4275 self.meta = meta
4276 }
4277 public enum CodingKeys: String, CodingKey {
4278 case data
4279 case links
4280 case meta
4281 }
4282 }
4283 /// - Remark: Generated from `#/components/schemas/DeviceResponse`.
4284 public struct DeviceResponse: Codable, Hashable, Sendable {
4285 /// - Remark: Generated from `#/components/schemas/DeviceResponse/data`.
4286 public var data: Components.Schemas.Device
4287 /// - Remark: Generated from `#/components/schemas/DeviceResponse/links`.
4288 public var links: Components.Schemas.DocumentLinks
4289 /// Creates a new `DeviceResponse`.
4290 ///
4291 /// - Parameters:
4292 /// - data:
4293 /// - links:
4294 public init(
4295 data: Components.Schemas.Device,
4296 links: Components.Schemas.DocumentLinks
4297 ) {
4298 self.data = data
4299 self.links = links
4300 }
4301 public enum CodingKeys: String, CodingKey {
4302 case data
4303 case links
4304 }
4305 }
4306 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest`.
4307 public struct DeviceCreateRequest: Codable, Hashable, Sendable {
4308 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data`.
4309 public struct DataPayload: Codable, Hashable, Sendable {
4310 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/type`.
4311 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4312 case devices = "devices"
4313 }
4314 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/type`.
4315 public var _type: Components.Schemas.DeviceCreateRequest.DataPayload._TypePayload
4316 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes`.
4317 public struct AttributesPayload: Codable, Hashable, Sendable {
4318 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes/name`.
4319 public var name: Swift.String
4320 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes/platform`.
4321 public var platform: Components.Schemas.BundleIdPlatform
4322 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes/udid`.
4323 public var udid: Swift.String
4324 /// Creates a new `AttributesPayload`.
4325 ///
4326 /// - Parameters:
4327 /// - name:
4328 /// - platform:
4329 /// - udid:
4330 public init(
4331 name: Swift.String,
4332 platform: Components.Schemas.BundleIdPlatform,
4333 udid: Swift.String
4334 ) {
4335 self.name = name
4336 self.platform = platform
4337 self.udid = udid
4338 }
4339 public enum CodingKeys: String, CodingKey {
4340 case name
4341 case platform
4342 case udid
4343 }
4344 }
4345 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes`.
4346 public var attributes: Components.Schemas.DeviceCreateRequest.DataPayload.AttributesPayload
4347 /// Creates a new `DataPayload`.
4348 ///
4349 /// - Parameters:
4350 /// - _type:
4351 /// - attributes:
4352 public init(
4353 _type: Components.Schemas.DeviceCreateRequest.DataPayload._TypePayload,
4354 attributes: Components.Schemas.DeviceCreateRequest.DataPayload.AttributesPayload
4355 ) {
4356 self._type = _type
4357 self.attributes = attributes
4358 }
4359 public enum CodingKeys: String, CodingKey {
4360 case _type = "type"
4361 case attributes
4362 }
4363 }
4364 /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data`.
4365 public var data: Components.Schemas.DeviceCreateRequest.DataPayload
4366 /// Creates a new `DeviceCreateRequest`.
4367 ///
4368 /// - Parameters:
4369 /// - data:
4370 public init(data: Components.Schemas.DeviceCreateRequest.DataPayload) {
4371 self.data = data
4372 }
4373 public enum CodingKeys: String, CodingKey {
4374 case data
4375 }
4376 }
4377 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest`.
4378 public struct DeviceUpdateRequest: Codable, Hashable, Sendable {
4379 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data`.
4380 public struct DataPayload: Codable, Hashable, Sendable {
4381 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/type`.
4382 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4383 case devices = "devices"
4384 }
4385 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/type`.
4386 public var _type: Components.Schemas.DeviceUpdateRequest.DataPayload._TypePayload
4387 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/id`.
4388 public var id: Swift.String
4389 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes`.
4390 public struct AttributesPayload: Codable, Hashable, Sendable {
4391 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes/name`.
4392 public var name: Swift.String?
4393 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes/status`.
4394 @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable {
4395 case enabled = "ENABLED"
4396 case disabled = "DISABLED"
4397 }
4398 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes/status`.
4399 public var status: Components.Schemas.DeviceUpdateRequest.DataPayload.AttributesPayload.StatusPayload?
4400 /// Creates a new `AttributesPayload`.
4401 ///
4402 /// - Parameters:
4403 /// - name:
4404 /// - status:
4405 public init(
4406 name: Swift.String? = nil,
4407 status: Components.Schemas.DeviceUpdateRequest.DataPayload.AttributesPayload.StatusPayload? = nil
4408 ) {
4409 self.name = name
4410 self.status = status
4411 }
4412 public enum CodingKeys: String, CodingKey {
4413 case name
4414 case status
4415 }
4416 }
4417 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes`.
4418 public var attributes: Components.Schemas.DeviceUpdateRequest.DataPayload.AttributesPayload?
4419 /// Creates a new `DataPayload`.
4420 ///
4421 /// - Parameters:
4422 /// - _type:
4423 /// - id:
4424 /// - attributes:
4425 public init(
4426 _type: Components.Schemas.DeviceUpdateRequest.DataPayload._TypePayload,
4427 id: Swift.String,
4428 attributes: Components.Schemas.DeviceUpdateRequest.DataPayload.AttributesPayload? = nil
4429 ) {
4430 self._type = _type
4431 self.id = id
4432 self.attributes = attributes
4433 }
4434 public enum CodingKeys: String, CodingKey {
4435 case _type = "type"
4436 case id
4437 case attributes
4438 }
4439 }
4440 /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data`.
4441 public var data: Components.Schemas.DeviceUpdateRequest.DataPayload
4442 /// Creates a new `DeviceUpdateRequest`.
4443 ///
4444 /// - Parameters:
4445 /// - data:
4446 public init(data: Components.Schemas.DeviceUpdateRequest.DataPayload) {
4447 self.data = data
4448 }
4449 public enum CodingKeys: String, CodingKey {
4450 case data
4451 }
4452 }
4453 /// - Remark: Generated from `#/components/schemas/PassTypeId`.
4454 public struct PassTypeId: Codable, Hashable, Sendable {
4455 /// - Remark: Generated from `#/components/schemas/PassTypeId/type`.
4456 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4457 case passTypeIds = "passTypeIds"
4458 }
4459 /// - Remark: Generated from `#/components/schemas/PassTypeId/type`.
4460 public var _type: Components.Schemas.PassTypeId._TypePayload
4461 /// - Remark: Generated from `#/components/schemas/PassTypeId/id`.
4462 public var id: Swift.String
4463 /// - Remark: Generated from `#/components/schemas/PassTypeId/attributes`.
4464 public struct AttributesPayload: Codable, Hashable, Sendable {
4465 /// - Remark: Generated from `#/components/schemas/PassTypeId/attributes/name`.
4466 public var name: Swift.String?
4467 /// - Remark: Generated from `#/components/schemas/PassTypeId/attributes/identifier`.
4468 public var identifier: Swift.String?
4469 /// Creates a new `AttributesPayload`.
4470 ///
4471 /// - Parameters:
4472 /// - name:
4473 /// - identifier:
4474 public init(
4475 name: Swift.String? = nil,
4476 identifier: Swift.String? = nil
4477 ) {
4478 self.name = name
4479 self.identifier = identifier
4480 }
4481 public enum CodingKeys: String, CodingKey {
4482 case name
4483 case identifier
4484 }
4485 }
4486 /// - Remark: Generated from `#/components/schemas/PassTypeId/attributes`.
4487 public var attributes: Components.Schemas.PassTypeId.AttributesPayload?
4488 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships`.
4489 public struct RelationshipsPayload: Codable, Hashable, Sendable {
4490 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates`.
4491 public struct CertificatesPayload: Codable, Hashable, Sendable {
4492 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/links`.
4493 public var links: Components.Schemas.RelationshipLinks?
4494 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/meta`.
4495 public var meta: Components.Schemas.PagingInformation?
4496 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/DataPayload`.
4497 public struct DataPayloadPayload: Codable, Hashable, Sendable {
4498 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/DataPayload/type`.
4499 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4500 case certificates = "certificates"
4501 }
4502 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/DataPayload/type`.
4503 public var _type: Components.Schemas.PassTypeId.RelationshipsPayload.CertificatesPayload.DataPayloadPayload._TypePayload
4504 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/DataPayload/id`.
4505 public var id: Swift.String
4506 /// Creates a new `DataPayloadPayload`.
4507 ///
4508 /// - Parameters:
4509 /// - _type:
4510 /// - id:
4511 public init(
4512 _type: Components.Schemas.PassTypeId.RelationshipsPayload.CertificatesPayload.DataPayloadPayload._TypePayload,
4513 id: Swift.String
4514 ) {
4515 self._type = _type
4516 self.id = id
4517 }
4518 public enum CodingKeys: String, CodingKey {
4519 case _type = "type"
4520 case id
4521 }
4522 }
4523 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/data`.
4524 public typealias DataPayload = [Components.Schemas.PassTypeId.RelationshipsPayload.CertificatesPayload.DataPayloadPayload]
4525 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates/data`.
4526 public var data: Components.Schemas.PassTypeId.RelationshipsPayload.CertificatesPayload.DataPayload?
4527 /// Creates a new `CertificatesPayload`.
4528 ///
4529 /// - Parameters:
4530 /// - links:
4531 /// - meta:
4532 /// - data:
4533 public init(
4534 links: Components.Schemas.RelationshipLinks? = nil,
4535 meta: Components.Schemas.PagingInformation? = nil,
4536 data: Components.Schemas.PassTypeId.RelationshipsPayload.CertificatesPayload.DataPayload? = nil
4537 ) {
4538 self.links = links
4539 self.meta = meta
4540 self.data = data
4541 }
4542 public enum CodingKeys: String, CodingKey {
4543 case links
4544 case meta
4545 case data
4546 }
4547 }
4548 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships/certificates`.
4549 public var certificates: Components.Schemas.PassTypeId.RelationshipsPayload.CertificatesPayload?
4550 /// Creates a new `RelationshipsPayload`.
4551 ///
4552 /// - Parameters:
4553 /// - certificates:
4554 public init(certificates: Components.Schemas.PassTypeId.RelationshipsPayload.CertificatesPayload? = nil) {
4555 self.certificates = certificates
4556 }
4557 public enum CodingKeys: String, CodingKey {
4558 case certificates
4559 }
4560 }
4561 /// - Remark: Generated from `#/components/schemas/PassTypeId/relationships`.
4562 public var relationships: Components.Schemas.PassTypeId.RelationshipsPayload?
4563 /// - Remark: Generated from `#/components/schemas/PassTypeId/links`.
4564 public var links: Components.Schemas.ResourceLinks?
4565 /// Creates a new `PassTypeId`.
4566 ///
4567 /// - Parameters:
4568 /// - _type:
4569 /// - id:
4570 /// - attributes:
4571 /// - relationships:
4572 /// - links:
4573 public init(
4574 _type: Components.Schemas.PassTypeId._TypePayload,
4575 id: Swift.String,
4576 attributes: Components.Schemas.PassTypeId.AttributesPayload? = nil,
4577 relationships: Components.Schemas.PassTypeId.RelationshipsPayload? = nil,
4578 links: Components.Schemas.ResourceLinks? = nil
4579 ) {
4580 self._type = _type
4581 self.id = id
4582 self.attributes = attributes
4583 self.relationships = relationships
4584 self.links = links
4585 }
4586 public enum CodingKeys: String, CodingKey {
4587 case _type = "type"
4588 case id
4589 case attributes
4590 case relationships
4591 case links
4592 }
4593 }
4594 /// - Remark: Generated from `#/components/schemas/PassTypeIdResponse`.
4595 public struct PassTypeIdResponse: Codable, Hashable, Sendable {
4596 /// - Remark: Generated from `#/components/schemas/PassTypeIdResponse/data`.
4597 public var data: Components.Schemas.PassTypeId
4598 /// - Remark: Generated from `#/components/schemas/PassTypeIdResponse/included`.
4599 public var included: [Components.Schemas.Certificate]?
4600 /// - Remark: Generated from `#/components/schemas/PassTypeIdResponse/links`.
4601 public var links: Components.Schemas.DocumentLinks
4602 /// Creates a new `PassTypeIdResponse`.
4603 ///
4604 /// - Parameters:
4605 /// - data:
4606 /// - included:
4607 /// - links:
4608 public init(
4609 data: Components.Schemas.PassTypeId,
4610 included: [Components.Schemas.Certificate]? = nil,
4611 links: Components.Schemas.DocumentLinks
4612 ) {
4613 self.data = data
4614 self.included = included
4615 self.links = links
4616 }
4617 public enum CodingKeys: String, CodingKey {
4618 case data
4619 case included
4620 case links
4621 }
4622 }
4623 /// - Remark: Generated from `#/components/schemas/Profile`.
4624 public struct Profile: Codable, Hashable, Sendable {
4625 /// - Remark: Generated from `#/components/schemas/Profile/type`.
4626 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4627 case profiles = "profiles"
4628 }
4629 /// - Remark: Generated from `#/components/schemas/Profile/type`.
4630 public var _type: Components.Schemas.Profile._TypePayload
4631 /// - Remark: Generated from `#/components/schemas/Profile/id`.
4632 public var id: Swift.String
4633 /// - Remark: Generated from `#/components/schemas/Profile/attributes`.
4634 public struct AttributesPayload: Codable, Hashable, Sendable {
4635 /// - Remark: Generated from `#/components/schemas/Profile/attributes/name`.
4636 public var name: Swift.String?
4637 /// - Remark: Generated from `#/components/schemas/Profile/attributes/platform`.
4638 public var platform: Components.Schemas.BundleIdPlatform?
4639 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileType`.
4640 public struct ProfileTypePayload: Codable, Hashable, Sendable {
4641 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileType/value1`.
4642 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
4643 case iosAppDevelopment = "IOS_APP_DEVELOPMENT"
4644 case iosAppStore = "IOS_APP_STORE"
4645 case iosAppAdhoc = "IOS_APP_ADHOC"
4646 case iosAppInhouse = "IOS_APP_INHOUSE"
4647 case macAppDevelopment = "MAC_APP_DEVELOPMENT"
4648 case macAppStore = "MAC_APP_STORE"
4649 case macAppDirect = "MAC_APP_DIRECT"
4650 case tvosAppDevelopment = "TVOS_APP_DEVELOPMENT"
4651 case tvosAppStore = "TVOS_APP_STORE"
4652 case tvosAppAdhoc = "TVOS_APP_ADHOC"
4653 case tvosAppInhouse = "TVOS_APP_INHOUSE"
4654 case macCatalystAppDevelopment = "MAC_CATALYST_APP_DEVELOPMENT"
4655 case macCatalystAppStore = "MAC_CATALYST_APP_STORE"
4656 case macCatalystAppDirect = "MAC_CATALYST_APP_DIRECT"
4657 }
4658 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileType/value1`.
4659 public var value1: Components.Schemas.Profile.AttributesPayload.ProfileTypePayload.Value1Payload?
4660 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileType/value2`.
4661 public var value2: Swift.String?
4662 /// Creates a new `ProfileTypePayload`.
4663 ///
4664 /// - Parameters:
4665 /// - value1:
4666 /// - value2:
4667 public init(
4668 value1: Components.Schemas.Profile.AttributesPayload.ProfileTypePayload.Value1Payload? = nil,
4669 value2: Swift.String? = nil
4670 ) {
4671 self.value1 = value1
4672 self.value2 = value2
4673 }
4674 public init(from decoder: any Decoder) throws {
4675 var errors: [any Error] = []
4676 do {
4677 self.value1 = try decoder.decodeFromSingleValueContainer()
4678 } catch {
4679 errors.append(error)
4680 }
4681 do {
4682 self.value2 = try decoder.decodeFromSingleValueContainer()
4683 } catch {
4684 errors.append(error)
4685 }
4686 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
4687 [
4688 self.value1,
4689 self.value2
4690 ],
4691 type: Self.self,
4692 codingPath: decoder.codingPath,
4693 errors: errors
4694 )
4695 }
4696 public func encode(to encoder: any Encoder) throws {
4697 try encoder.encodeFirstNonNilValueToSingleValueContainer([
4698 self.value1,
4699 self.value2
4700 ])
4701 }
4702 }
4703 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileType`.
4704 public var profileType: Components.Schemas.Profile.AttributesPayload.ProfileTypePayload?
4705 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileState`.
4706 public struct ProfileStatePayload: Codable, Hashable, Sendable {
4707 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileState/value1`.
4708 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
4709 case active = "ACTIVE"
4710 case invalid = "INVALID"
4711 }
4712 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileState/value1`.
4713 public var value1: Components.Schemas.Profile.AttributesPayload.ProfileStatePayload.Value1Payload?
4714 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileState/value2`.
4715 public var value2: Swift.String?
4716 /// Creates a new `ProfileStatePayload`.
4717 ///
4718 /// - Parameters:
4719 /// - value1:
4720 /// - value2:
4721 public init(
4722 value1: Components.Schemas.Profile.AttributesPayload.ProfileStatePayload.Value1Payload? = nil,
4723 value2: Swift.String? = nil
4724 ) {
4725 self.value1 = value1
4726 self.value2 = value2
4727 }
4728 public init(from decoder: any Decoder) throws {
4729 var errors: [any Error] = []
4730 do {
4731 self.value1 = try decoder.decodeFromSingleValueContainer()
4732 } catch {
4733 errors.append(error)
4734 }
4735 do {
4736 self.value2 = try decoder.decodeFromSingleValueContainer()
4737 } catch {
4738 errors.append(error)
4739 }
4740 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
4741 [
4742 self.value1,
4743 self.value2
4744 ],
4745 type: Self.self,
4746 codingPath: decoder.codingPath,
4747 errors: errors
4748 )
4749 }
4750 public func encode(to encoder: any Encoder) throws {
4751 try encoder.encodeFirstNonNilValueToSingleValueContainer([
4752 self.value1,
4753 self.value2
4754 ])
4755 }
4756 }
4757 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileState`.
4758 public var profileState: Components.Schemas.Profile.AttributesPayload.ProfileStatePayload?
4759 /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileContent`.
4760 public var profileContent: Swift.String?
4761 /// - Remark: Generated from `#/components/schemas/Profile/attributes/uuid`.
4762 public var uuid: Swift.String?
4763 /// - Remark: Generated from `#/components/schemas/Profile/attributes/createdDate`.
4764 public var createdDate: Foundation.Date?
4765 /// - Remark: Generated from `#/components/schemas/Profile/attributes/expirationDate`.
4766 public var expirationDate: Foundation.Date?
4767 /// Creates a new `AttributesPayload`.
4768 ///
4769 /// - Parameters:
4770 /// - name:
4771 /// - platform:
4772 /// - profileType:
4773 /// - profileState:
4774 /// - profileContent:
4775 /// - uuid:
4776 /// - createdDate:
4777 /// - expirationDate:
4778 public init(
4779 name: Swift.String? = nil,
4780 platform: Components.Schemas.BundleIdPlatform? = nil,
4781 profileType: Components.Schemas.Profile.AttributesPayload.ProfileTypePayload? = nil,
4782 profileState: Components.Schemas.Profile.AttributesPayload.ProfileStatePayload? = nil,
4783 profileContent: Swift.String? = nil,
4784 uuid: Swift.String? = nil,
4785 createdDate: Foundation.Date? = nil,
4786 expirationDate: Foundation.Date? = nil
4787 ) {
4788 self.name = name
4789 self.platform = platform
4790 self.profileType = profileType
4791 self.profileState = profileState
4792 self.profileContent = profileContent
4793 self.uuid = uuid
4794 self.createdDate = createdDate
4795 self.expirationDate = expirationDate
4796 }
4797 public enum CodingKeys: String, CodingKey {
4798 case name
4799 case platform
4800 case profileType
4801 case profileState
4802 case profileContent
4803 case uuid
4804 case createdDate
4805 case expirationDate
4806 }
4807 }
4808 /// - Remark: Generated from `#/components/schemas/Profile/attributes`.
4809 public var attributes: Components.Schemas.Profile.AttributesPayload?
4810 /// - Remark: Generated from `#/components/schemas/Profile/relationships`.
4811 public struct RelationshipsPayload: Codable, Hashable, Sendable {
4812 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId`.
4813 public struct BundleIdPayload: Codable, Hashable, Sendable {
4814 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/links`.
4815 public var links: Components.Schemas.RelationshipLinks?
4816 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data`.
4817 public struct DataPayload: Codable, Hashable, Sendable {
4818 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data/type`.
4819 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4820 case bundleIds = "bundleIds"
4821 }
4822 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data/type`.
4823 public var _type: Components.Schemas.Profile.RelationshipsPayload.BundleIdPayload.DataPayload._TypePayload
4824 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data/id`.
4825 public var id: Swift.String
4826 /// Creates a new `DataPayload`.
4827 ///
4828 /// - Parameters:
4829 /// - _type:
4830 /// - id:
4831 public init(
4832 _type: Components.Schemas.Profile.RelationshipsPayload.BundleIdPayload.DataPayload._TypePayload,
4833 id: Swift.String
4834 ) {
4835 self._type = _type
4836 self.id = id
4837 }
4838 public enum CodingKeys: String, CodingKey {
4839 case _type = "type"
4840 case id
4841 }
4842 }
4843 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data`.
4844 public var data: Components.Schemas.Profile.RelationshipsPayload.BundleIdPayload.DataPayload?
4845 /// Creates a new `BundleIdPayload`.
4846 ///
4847 /// - Parameters:
4848 /// - links:
4849 /// - data:
4850 public init(
4851 links: Components.Schemas.RelationshipLinks? = nil,
4852 data: Components.Schemas.Profile.RelationshipsPayload.BundleIdPayload.DataPayload? = nil
4853 ) {
4854 self.links = links
4855 self.data = data
4856 }
4857 public enum CodingKeys: String, CodingKey {
4858 case links
4859 case data
4860 }
4861 }
4862 /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId`.
4863 public var bundleId: Components.Schemas.Profile.RelationshipsPayload.BundleIdPayload?
4864 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices`.
4865 public struct DevicesPayload: Codable, Hashable, Sendable {
4866 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/links`.
4867 public var links: Components.Schemas.RelationshipLinks?
4868 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/meta`.
4869 public var meta: Components.Schemas.PagingInformation?
4870 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/DataPayload`.
4871 public struct DataPayloadPayload: Codable, Hashable, Sendable {
4872 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/DataPayload/type`.
4873 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4874 case devices = "devices"
4875 }
4876 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/DataPayload/type`.
4877 public var _type: Components.Schemas.Profile.RelationshipsPayload.DevicesPayload.DataPayloadPayload._TypePayload
4878 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/DataPayload/id`.
4879 public var id: Swift.String
4880 /// Creates a new `DataPayloadPayload`.
4881 ///
4882 /// - Parameters:
4883 /// - _type:
4884 /// - id:
4885 public init(
4886 _type: Components.Schemas.Profile.RelationshipsPayload.DevicesPayload.DataPayloadPayload._TypePayload,
4887 id: Swift.String
4888 ) {
4889 self._type = _type
4890 self.id = id
4891 }
4892 public enum CodingKeys: String, CodingKey {
4893 case _type = "type"
4894 case id
4895 }
4896 }
4897 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/data`.
4898 public typealias DataPayload = [Components.Schemas.Profile.RelationshipsPayload.DevicesPayload.DataPayloadPayload]
4899 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/data`.
4900 public var data: Components.Schemas.Profile.RelationshipsPayload.DevicesPayload.DataPayload?
4901 /// Creates a new `DevicesPayload`.
4902 ///
4903 /// - Parameters:
4904 /// - links:
4905 /// - meta:
4906 /// - data:
4907 public init(
4908 links: Components.Schemas.RelationshipLinks? = nil,
4909 meta: Components.Schemas.PagingInformation? = nil,
4910 data: Components.Schemas.Profile.RelationshipsPayload.DevicesPayload.DataPayload? = nil
4911 ) {
4912 self.links = links
4913 self.meta = meta
4914 self.data = data
4915 }
4916 public enum CodingKeys: String, CodingKey {
4917 case links
4918 case meta
4919 case data
4920 }
4921 }
4922 /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices`.
4923 public var devices: Components.Schemas.Profile.RelationshipsPayload.DevicesPayload?
4924 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates`.
4925 public struct CertificatesPayload: Codable, Hashable, Sendable {
4926 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/links`.
4927 public var links: Components.Schemas.RelationshipLinks?
4928 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/meta`.
4929 public var meta: Components.Schemas.PagingInformation?
4930 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/DataPayload`.
4931 public struct DataPayloadPayload: Codable, Hashable, Sendable {
4932 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/DataPayload/type`.
4933 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
4934 case certificates = "certificates"
4935 }
4936 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/DataPayload/type`.
4937 public var _type: Components.Schemas.Profile.RelationshipsPayload.CertificatesPayload.DataPayloadPayload._TypePayload
4938 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/DataPayload/id`.
4939 public var id: Swift.String
4940 /// Creates a new `DataPayloadPayload`.
4941 ///
4942 /// - Parameters:
4943 /// - _type:
4944 /// - id:
4945 public init(
4946 _type: Components.Schemas.Profile.RelationshipsPayload.CertificatesPayload.DataPayloadPayload._TypePayload,
4947 id: Swift.String
4948 ) {
4949 self._type = _type
4950 self.id = id
4951 }
4952 public enum CodingKeys: String, CodingKey {
4953 case _type = "type"
4954 case id
4955 }
4956 }
4957 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/data`.
4958 public typealias DataPayload = [Components.Schemas.Profile.RelationshipsPayload.CertificatesPayload.DataPayloadPayload]
4959 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/data`.
4960 public var data: Components.Schemas.Profile.RelationshipsPayload.CertificatesPayload.DataPayload?
4961 /// Creates a new `CertificatesPayload`.
4962 ///
4963 /// - Parameters:
4964 /// - links:
4965 /// - meta:
4966 /// - data:
4967 public init(
4968 links: Components.Schemas.RelationshipLinks? = nil,
4969 meta: Components.Schemas.PagingInformation? = nil,
4970 data: Components.Schemas.Profile.RelationshipsPayload.CertificatesPayload.DataPayload? = nil
4971 ) {
4972 self.links = links
4973 self.meta = meta
4974 self.data = data
4975 }
4976 public enum CodingKeys: String, CodingKey {
4977 case links
4978 case meta
4979 case data
4980 }
4981 }
4982 /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates`.
4983 public var certificates: Components.Schemas.Profile.RelationshipsPayload.CertificatesPayload?
4984 /// Creates a new `RelationshipsPayload`.
4985 ///
4986 /// - Parameters:
4987 /// - bundleId:
4988 /// - devices:
4989 /// - certificates:
4990 public init(
4991 bundleId: Components.Schemas.Profile.RelationshipsPayload.BundleIdPayload? = nil,
4992 devices: Components.Schemas.Profile.RelationshipsPayload.DevicesPayload? = nil,
4993 certificates: Components.Schemas.Profile.RelationshipsPayload.CertificatesPayload? = nil
4994 ) {
4995 self.bundleId = bundleId
4996 self.devices = devices
4997 self.certificates = certificates
4998 }
4999 public enum CodingKeys: String, CodingKey {
5000 case bundleId
5001 case devices
5002 case certificates
5003 }
5004 }
5005 /// - Remark: Generated from `#/components/schemas/Profile/relationships`.
5006 public var relationships: Components.Schemas.Profile.RelationshipsPayload?
5007 /// - Remark: Generated from `#/components/schemas/Profile/links`.
5008 public var links: Components.Schemas.ResourceLinks?
5009 /// Creates a new `Profile`.
5010 ///
5011 /// - Parameters:
5012 /// - _type:
5013 /// - id:
5014 /// - attributes:
5015 /// - relationships:
5016 /// - links:
5017 public init(
5018 _type: Components.Schemas.Profile._TypePayload,
5019 id: Swift.String,
5020 attributes: Components.Schemas.Profile.AttributesPayload? = nil,
5021 relationships: Components.Schemas.Profile.RelationshipsPayload? = nil,
5022 links: Components.Schemas.ResourceLinks? = nil
5023 ) {
5024 self._type = _type
5025 self.id = id
5026 self.attributes = attributes
5027 self.relationships = relationships
5028 self.links = links
5029 }
5030 public enum CodingKeys: String, CodingKey {
5031 case _type = "type"
5032 case id
5033 case attributes
5034 case relationships
5035 case links
5036 }
5037 }
5038 /// - Remark: Generated from `#/components/schemas/ProfilesResponse`.
5039 public struct ProfilesResponse: Codable, Hashable, Sendable {
5040 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/data`.
5041 public var data: [Components.Schemas.Profile]
5042 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/IncludedPayload`.
5043 @frozen public enum IncludedPayloadPayload: Codable, Hashable, Sendable {
5044 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/IncludedPayload/BundleId`.
5045 case bundleIds(Components.Schemas.BundleId)
5046 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/IncludedPayload/Certificate`.
5047 case certificates(Components.Schemas.Certificate)
5048 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/IncludedPayload/Device`.
5049 case devices(Components.Schemas.Device)
5050 public enum CodingKeys: String, CodingKey {
5051 case _type = "type"
5052 }
5053 public init(from decoder: any Decoder) throws {
5054 let container = try decoder.container(keyedBy: CodingKeys.self)
5055 let discriminator = try container.decode(
5056 Swift.String.self,
5057 forKey: ._type
5058 )
5059 switch discriminator {
5060 case "bundleIds":
5061 self = .bundleIds(try .init(from: decoder))
5062 case "certificates":
5063 self = .certificates(try .init(from: decoder))
5064 case "devices":
5065 self = .devices(try .init(from: decoder))
5066 default:
5067 throw Swift.DecodingError.unknownOneOfDiscriminator(
5068 discriminatorKey: CodingKeys._type,
5069 discriminatorValue: discriminator,
5070 codingPath: decoder.codingPath
5071 )
5072 }
5073 }
5074 public func encode(to encoder: any Encoder) throws {
5075 switch self {
5076 case let .bundleIds(value):
5077 try value.encode(to: encoder)
5078 case let .certificates(value):
5079 try value.encode(to: encoder)
5080 case let .devices(value):
5081 try value.encode(to: encoder)
5082 }
5083 }
5084 }
5085 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/included`.
5086 public typealias IncludedPayload = [Components.Schemas.ProfilesResponse.IncludedPayloadPayload]
5087 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/included`.
5088 public var included: Components.Schemas.ProfilesResponse.IncludedPayload?
5089 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/links`.
5090 public var links: Components.Schemas.PagedDocumentLinks
5091 /// - Remark: Generated from `#/components/schemas/ProfilesResponse/meta`.
5092 public var meta: Components.Schemas.PagingInformation?
5093 /// Creates a new `ProfilesResponse`.
5094 ///
5095 /// - Parameters:
5096 /// - data:
5097 /// - included:
5098 /// - links:
5099 /// - meta:
5100 public init(
5101 data: [Components.Schemas.Profile],
5102 included: Components.Schemas.ProfilesResponse.IncludedPayload? = nil,
5103 links: Components.Schemas.PagedDocumentLinks,
5104 meta: Components.Schemas.PagingInformation? = nil
5105 ) {
5106 self.data = data
5107 self.included = included
5108 self.links = links
5109 self.meta = meta
5110 }
5111 public enum CodingKeys: String, CodingKey {
5112 case data
5113 case included
5114 case links
5115 case meta
5116 }
5117 }
5118 /// - Remark: Generated from `#/components/schemas/ProfileResponse`.
5119 public struct ProfileResponse: Codable, Hashable, Sendable {
5120 /// - Remark: Generated from `#/components/schemas/ProfileResponse/data`.
5121 public var data: Components.Schemas.Profile
5122 /// - Remark: Generated from `#/components/schemas/ProfileResponse/IncludedPayload`.
5123 @frozen public enum IncludedPayloadPayload: Codable, Hashable, Sendable {
5124 /// - Remark: Generated from `#/components/schemas/ProfileResponse/IncludedPayload/BundleId`.
5125 case bundleIds(Components.Schemas.BundleId)
5126 /// - Remark: Generated from `#/components/schemas/ProfileResponse/IncludedPayload/Certificate`.
5127 case certificates(Components.Schemas.Certificate)
5128 /// - Remark: Generated from `#/components/schemas/ProfileResponse/IncludedPayload/Device`.
5129 case devices(Components.Schemas.Device)
5130 public enum CodingKeys: String, CodingKey {
5131 case _type = "type"
5132 }
5133 public init(from decoder: any Decoder) throws {
5134 let container = try decoder.container(keyedBy: CodingKeys.self)
5135 let discriminator = try container.decode(
5136 Swift.String.self,
5137 forKey: ._type
5138 )
5139 switch discriminator {
5140 case "bundleIds":
5141 self = .bundleIds(try .init(from: decoder))
5142 case "certificates":
5143 self = .certificates(try .init(from: decoder))
5144 case "devices":
5145 self = .devices(try .init(from: decoder))
5146 default:
5147 throw Swift.DecodingError.unknownOneOfDiscriminator(
5148 discriminatorKey: CodingKeys._type,
5149 discriminatorValue: discriminator,
5150 codingPath: decoder.codingPath
5151 )
5152 }
5153 }
5154 public func encode(to encoder: any Encoder) throws {
5155 switch self {
5156 case let .bundleIds(value):
5157 try value.encode(to: encoder)
5158 case let .certificates(value):
5159 try value.encode(to: encoder)
5160 case let .devices(value):
5161 try value.encode(to: encoder)
5162 }
5163 }
5164 }
5165 /// - Remark: Generated from `#/components/schemas/ProfileResponse/included`.
5166 public typealias IncludedPayload = [Components.Schemas.ProfileResponse.IncludedPayloadPayload]
5167 /// - Remark: Generated from `#/components/schemas/ProfileResponse/included`.
5168 public var included: Components.Schemas.ProfileResponse.IncludedPayload?
5169 /// - Remark: Generated from `#/components/schemas/ProfileResponse/links`.
5170 public var links: Components.Schemas.DocumentLinks
5171 /// Creates a new `ProfileResponse`.
5172 ///
5173 /// - Parameters:
5174 /// - data:
5175 /// - included:
5176 /// - links:
5177 public init(
5178 data: Components.Schemas.Profile,
5179 included: Components.Schemas.ProfileResponse.IncludedPayload? = nil,
5180 links: Components.Schemas.DocumentLinks
5181 ) {
5182 self.data = data
5183 self.included = included
5184 self.links = links
5185 }
5186 public enum CodingKeys: String, CodingKey {
5187 case data
5188 case included
5189 case links
5190 }
5191 }
5192 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest`.
5193 public struct ProfileCreateRequest: Codable, Hashable, Sendable {
5194 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data`.
5195 public struct DataPayload: Codable, Hashable, Sendable {
5196 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/type`.
5197 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5198 case profiles = "profiles"
5199 }
5200 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/type`.
5201 public var _type: Components.Schemas.ProfileCreateRequest.DataPayload._TypePayload
5202 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes`.
5203 public struct AttributesPayload: Codable, Hashable, Sendable {
5204 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/name`.
5205 public var name: Swift.String
5206 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/profileType`.
5207 public struct ProfileTypePayload: Codable, Hashable, Sendable {
5208 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/profileType/value1`.
5209 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
5210 case iosAppDevelopment = "IOS_APP_DEVELOPMENT"
5211 case iosAppStore = "IOS_APP_STORE"
5212 case iosAppAdhoc = "IOS_APP_ADHOC"
5213 case iosAppInhouse = "IOS_APP_INHOUSE"
5214 case macAppDevelopment = "MAC_APP_DEVELOPMENT"
5215 case macAppStore = "MAC_APP_STORE"
5216 case macAppDirect = "MAC_APP_DIRECT"
5217 case tvosAppDevelopment = "TVOS_APP_DEVELOPMENT"
5218 case tvosAppStore = "TVOS_APP_STORE"
5219 case tvosAppAdhoc = "TVOS_APP_ADHOC"
5220 case tvosAppInhouse = "TVOS_APP_INHOUSE"
5221 case macCatalystAppDevelopment = "MAC_CATALYST_APP_DEVELOPMENT"
5222 case macCatalystAppStore = "MAC_CATALYST_APP_STORE"
5223 case macCatalystAppDirect = "MAC_CATALYST_APP_DIRECT"
5224 }
5225 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/profileType/value1`.
5226 public var value1: Components.Schemas.ProfileCreateRequest.DataPayload.AttributesPayload.ProfileTypePayload.Value1Payload?
5227 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/profileType/value2`.
5228 public var value2: Swift.String?
5229 /// Creates a new `ProfileTypePayload`.
5230 ///
5231 /// - Parameters:
5232 /// - value1:
5233 /// - value2:
5234 public init(
5235 value1: Components.Schemas.ProfileCreateRequest.DataPayload.AttributesPayload.ProfileTypePayload.Value1Payload? = nil,
5236 value2: Swift.String? = nil
5237 ) {
5238 self.value1 = value1
5239 self.value2 = value2
5240 }
5241 public init(from decoder: any Decoder) throws {
5242 var errors: [any Error] = []
5243 do {
5244 self.value1 = try decoder.decodeFromSingleValueContainer()
5245 } catch {
5246 errors.append(error)
5247 }
5248 do {
5249 self.value2 = try decoder.decodeFromSingleValueContainer()
5250 } catch {
5251 errors.append(error)
5252 }
5253 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
5254 [
5255 self.value1,
5256 self.value2
5257 ],
5258 type: Self.self,
5259 codingPath: decoder.codingPath,
5260 errors: errors
5261 )
5262 }
5263 public func encode(to encoder: any Encoder) throws {
5264 try encoder.encodeFirstNonNilValueToSingleValueContainer([
5265 self.value1,
5266 self.value2
5267 ])
5268 }
5269 }
5270 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/profileType`.
5271 public var profileType: Components.Schemas.ProfileCreateRequest.DataPayload.AttributesPayload.ProfileTypePayload
5272 /// Creates a new `AttributesPayload`.
5273 ///
5274 /// - Parameters:
5275 /// - name:
5276 /// - profileType:
5277 public init(
5278 name: Swift.String,
5279 profileType: Components.Schemas.ProfileCreateRequest.DataPayload.AttributesPayload.ProfileTypePayload
5280 ) {
5281 self.name = name
5282 self.profileType = profileType
5283 }
5284 public enum CodingKeys: String, CodingKey {
5285 case name
5286 case profileType
5287 }
5288 }
5289 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes`.
5290 public var attributes: Components.Schemas.ProfileCreateRequest.DataPayload.AttributesPayload
5291 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships`.
5292 public struct RelationshipsPayload: Codable, Hashable, Sendable {
5293 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId`.
5294 public struct BundleIdPayload: Codable, Hashable, Sendable {
5295 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data`.
5296 public struct DataPayload: Codable, Hashable, Sendable {
5297 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data/type`.
5298 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5299 case bundleIds = "bundleIds"
5300 }
5301 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data/type`.
5302 public var _type: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload._TypePayload
5303 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data/id`.
5304 public var id: Swift.String
5305 /// Creates a new `DataPayload`.
5306 ///
5307 /// - Parameters:
5308 /// - _type:
5309 /// - id:
5310 public init(
5311 _type: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload._TypePayload,
5312 id: Swift.String
5313 ) {
5314 self._type = _type
5315 self.id = id
5316 }
5317 public enum CodingKeys: String, CodingKey {
5318 case _type = "type"
5319 case id
5320 }
5321 }
5322 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data`.
5323 public var data: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload
5324 /// Creates a new `BundleIdPayload`.
5325 ///
5326 /// - Parameters:
5327 /// - data:
5328 public init(data: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload.DataPayload) {
5329 self.data = data
5330 }
5331 public enum CodingKeys: String, CodingKey {
5332 case data
5333 }
5334 }
5335 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId`.
5336 public var bundleId: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload
5337 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices`.
5338 public struct DevicesPayload: Codable, Hashable, Sendable {
5339 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/DataPayload`.
5340 public struct DataPayloadPayload: Codable, Hashable, Sendable {
5341 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/DataPayload/type`.
5342 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5343 case devices = "devices"
5344 }
5345 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/DataPayload/type`.
5346 public var _type: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.DevicesPayload.DataPayloadPayload._TypePayload
5347 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/DataPayload/id`.
5348 public var id: Swift.String
5349 /// Creates a new `DataPayloadPayload`.
5350 ///
5351 /// - Parameters:
5352 /// - _type:
5353 /// - id:
5354 public init(
5355 _type: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.DevicesPayload.DataPayloadPayload._TypePayload,
5356 id: Swift.String
5357 ) {
5358 self._type = _type
5359 self.id = id
5360 }
5361 public enum CodingKeys: String, CodingKey {
5362 case _type = "type"
5363 case id
5364 }
5365 }
5366 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/data`.
5367 public typealias DataPayload = [Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.DevicesPayload.DataPayloadPayload]
5368 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/data`.
5369 public var data: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.DevicesPayload.DataPayload?
5370 /// Creates a new `DevicesPayload`.
5371 ///
5372 /// - Parameters:
5373 /// - data:
5374 public init(data: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.DevicesPayload.DataPayload? = nil) {
5375 self.data = data
5376 }
5377 public enum CodingKeys: String, CodingKey {
5378 case data
5379 }
5380 }
5381 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices`.
5382 public var devices: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.DevicesPayload?
5383 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates`.
5384 public struct CertificatesPayload: Codable, Hashable, Sendable {
5385 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/DataPayload`.
5386 public struct DataPayloadPayload: Codable, Hashable, Sendable {
5387 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/DataPayload/type`.
5388 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5389 case certificates = "certificates"
5390 }
5391 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/DataPayload/type`.
5392 public var _type: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.CertificatesPayload.DataPayloadPayload._TypePayload
5393 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/DataPayload/id`.
5394 public var id: Swift.String
5395 /// Creates a new `DataPayloadPayload`.
5396 ///
5397 /// - Parameters:
5398 /// - _type:
5399 /// - id:
5400 public init(
5401 _type: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.CertificatesPayload.DataPayloadPayload._TypePayload,
5402 id: Swift.String
5403 ) {
5404 self._type = _type
5405 self.id = id
5406 }
5407 public enum CodingKeys: String, CodingKey {
5408 case _type = "type"
5409 case id
5410 }
5411 }
5412 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/data`.
5413 public typealias DataPayload = [Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.CertificatesPayload.DataPayloadPayload]
5414 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/data`.
5415 public var data: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.CertificatesPayload.DataPayload
5416 /// Creates a new `CertificatesPayload`.
5417 ///
5418 /// - Parameters:
5419 /// - data:
5420 public init(data: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.CertificatesPayload.DataPayload) {
5421 self.data = data
5422 }
5423 public enum CodingKeys: String, CodingKey {
5424 case data
5425 }
5426 }
5427 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates`.
5428 public var certificates: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.CertificatesPayload
5429 /// Creates a new `RelationshipsPayload`.
5430 ///
5431 /// - Parameters:
5432 /// - bundleId:
5433 /// - devices:
5434 /// - certificates:
5435 public init(
5436 bundleId: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload,
5437 devices: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.DevicesPayload? = nil,
5438 certificates: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload.CertificatesPayload
5439 ) {
5440 self.bundleId = bundleId
5441 self.devices = devices
5442 self.certificates = certificates
5443 }
5444 public enum CodingKeys: String, CodingKey {
5445 case bundleId
5446 case devices
5447 case certificates
5448 }
5449 }
5450 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships`.
5451 public var relationships: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload
5452 /// Creates a new `DataPayload`.
5453 ///
5454 /// - Parameters:
5455 /// - _type:
5456 /// - attributes:
5457 /// - relationships:
5458 public init(
5459 _type: Components.Schemas.ProfileCreateRequest.DataPayload._TypePayload,
5460 attributes: Components.Schemas.ProfileCreateRequest.DataPayload.AttributesPayload,
5461 relationships: Components.Schemas.ProfileCreateRequest.DataPayload.RelationshipsPayload
5462 ) {
5463 self._type = _type
5464 self.attributes = attributes
5465 self.relationships = relationships
5466 }
5467 public enum CodingKeys: String, CodingKey {
5468 case _type = "type"
5469 case attributes
5470 case relationships
5471 }
5472 }
5473 /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data`.
5474 public var data: Components.Schemas.ProfileCreateRequest.DataPayload
5475 /// Creates a new `ProfileCreateRequest`.
5476 ///
5477 /// - Parameters:
5478 /// - data:
5479 public init(data: Components.Schemas.ProfileCreateRequest.DataPayload) {
5480 self.data = data
5481 }
5482 public enum CodingKeys: String, CodingKey {
5483 case data
5484 }
5485 }
5486 /// - Remark: Generated from `#/components/schemas/AppWithoutIncludesResponse`.
5487 public struct AppWithoutIncludesResponse: Codable, Hashable, Sendable {
5488 /// - Remark: Generated from `#/components/schemas/AppWithoutIncludesResponse/data`.
5489 public var data: Components.Schemas.App
5490 /// - Remark: Generated from `#/components/schemas/AppWithoutIncludesResponse/links`.
5491 public var links: Components.Schemas.DocumentLinks
5492 /// Creates a new `AppWithoutIncludesResponse`.
5493 ///
5494 /// - Parameters:
5495 /// - data:
5496 /// - links:
5497 public init(
5498 data: Components.Schemas.App,
5499 links: Components.Schemas.DocumentLinks
5500 ) {
5501 self.data = data
5502 self.links = links
5503 }
5504 public enum CodingKeys: String, CodingKey {
5505 case data
5506 case links
5507 }
5508 }
5509 /// - Remark: Generated from `#/components/schemas/BundleIdAppLinkageResponse`.
5510 public struct BundleIdAppLinkageResponse: Codable, Hashable, Sendable {
5511 /// - Remark: Generated from `#/components/schemas/BundleIdAppLinkageResponse/data`.
5512 public struct DataPayload: Codable, Hashable, Sendable {
5513 /// - Remark: Generated from `#/components/schemas/BundleIdAppLinkageResponse/data/type`.
5514 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5515 case apps = "apps"
5516 }
5517 /// - Remark: Generated from `#/components/schemas/BundleIdAppLinkageResponse/data/type`.
5518 public var _type: Components.Schemas.BundleIdAppLinkageResponse.DataPayload._TypePayload
5519 /// - Remark: Generated from `#/components/schemas/BundleIdAppLinkageResponse/data/id`.
5520 public var id: Swift.String
5521 /// Creates a new `DataPayload`.
5522 ///
5523 /// - Parameters:
5524 /// - _type:
5525 /// - id:
5526 public init(
5527 _type: Components.Schemas.BundleIdAppLinkageResponse.DataPayload._TypePayload,
5528 id: Swift.String
5529 ) {
5530 self._type = _type
5531 self.id = id
5532 }
5533 public enum CodingKeys: String, CodingKey {
5534 case _type = "type"
5535 case id
5536 }
5537 }
5538 /// - Remark: Generated from `#/components/schemas/BundleIdAppLinkageResponse/data`.
5539 public var data: Components.Schemas.BundleIdAppLinkageResponse.DataPayload
5540 /// - Remark: Generated from `#/components/schemas/BundleIdAppLinkageResponse/links`.
5541 public var links: Components.Schemas.DocumentLinks
5542 /// Creates a new `BundleIdAppLinkageResponse`.
5543 ///
5544 /// - Parameters:
5545 /// - data:
5546 /// - links:
5547 public init(
5548 data: Components.Schemas.BundleIdAppLinkageResponse.DataPayload,
5549 links: Components.Schemas.DocumentLinks
5550 ) {
5551 self.data = data
5552 self.links = links
5553 }
5554 public enum CodingKeys: String, CodingKey {
5555 case data
5556 case links
5557 }
5558 }
5559 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse`.
5560 public struct BundleIdCapabilitiesWithoutIncludesResponse: Codable, Hashable, Sendable {
5561 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse/data`.
5562 public var data: [Components.Schemas.BundleIdCapability]
5563 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse/links`.
5564 public var links: Components.Schemas.PagedDocumentLinks
5565 /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse/meta`.
5566 public var meta: Components.Schemas.PagingInformation?
5567 /// Creates a new `BundleIdCapabilitiesWithoutIncludesResponse`.
5568 ///
5569 /// - Parameters:
5570 /// - data:
5571 /// - links:
5572 /// - meta:
5573 public init(
5574 data: [Components.Schemas.BundleIdCapability],
5575 links: Components.Schemas.PagedDocumentLinks,
5576 meta: Components.Schemas.PagingInformation? = nil
5577 ) {
5578 self.data = data
5579 self.links = links
5580 self.meta = meta
5581 }
5582 public enum CodingKeys: String, CodingKey {
5583 case data
5584 case links
5585 case meta
5586 }
5587 }
5588 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse`.
5589 public struct BundleIdBundleIdCapabilitiesLinkagesResponse: Codable, Hashable, Sendable {
5590 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/DataPayload`.
5591 public struct DataPayloadPayload: Codable, Hashable, Sendable {
5592 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/DataPayload/type`.
5593 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5594 case bundleIdCapabilities = "bundleIdCapabilities"
5595 }
5596 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/DataPayload/type`.
5597 public var _type: Components.Schemas.BundleIdBundleIdCapabilitiesLinkagesResponse.DataPayloadPayload._TypePayload
5598 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/DataPayload/id`.
5599 public var id: Swift.String
5600 /// Creates a new `DataPayloadPayload`.
5601 ///
5602 /// - Parameters:
5603 /// - _type:
5604 /// - id:
5605 public init(
5606 _type: Components.Schemas.BundleIdBundleIdCapabilitiesLinkagesResponse.DataPayloadPayload._TypePayload,
5607 id: Swift.String
5608 ) {
5609 self._type = _type
5610 self.id = id
5611 }
5612 public enum CodingKeys: String, CodingKey {
5613 case _type = "type"
5614 case id
5615 }
5616 }
5617 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/data`.
5618 public typealias DataPayload = [Components.Schemas.BundleIdBundleIdCapabilitiesLinkagesResponse.DataPayloadPayload]
5619 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/data`.
5620 public var data: Components.Schemas.BundleIdBundleIdCapabilitiesLinkagesResponse.DataPayload
5621 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/links`.
5622 public var links: Components.Schemas.PagedDocumentLinks
5623 /// - Remark: Generated from `#/components/schemas/BundleIdBundleIdCapabilitiesLinkagesResponse/meta`.
5624 public var meta: Components.Schemas.PagingInformation?
5625 /// Creates a new `BundleIdBundleIdCapabilitiesLinkagesResponse`.
5626 ///
5627 /// - Parameters:
5628 /// - data:
5629 /// - links:
5630 /// - meta:
5631 public init(
5632 data: Components.Schemas.BundleIdBundleIdCapabilitiesLinkagesResponse.DataPayload,
5633 links: Components.Schemas.PagedDocumentLinks,
5634 meta: Components.Schemas.PagingInformation? = nil
5635 ) {
5636 self.data = data
5637 self.links = links
5638 self.meta = meta
5639 }
5640 public enum CodingKeys: String, CodingKey {
5641 case data
5642 case links
5643 case meta
5644 }
5645 }
5646 /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse`.
5647 public struct ProfilesWithoutIncludesResponse: Codable, Hashable, Sendable {
5648 /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse/data`.
5649 public var data: [Components.Schemas.Profile]
5650 /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse/links`.
5651 public var links: Components.Schemas.PagedDocumentLinks
5652 /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse/meta`.
5653 public var meta: Components.Schemas.PagingInformation?
5654 /// Creates a new `ProfilesWithoutIncludesResponse`.
5655 ///
5656 /// - Parameters:
5657 /// - data:
5658 /// - links:
5659 /// - meta:
5660 public init(
5661 data: [Components.Schemas.Profile],
5662 links: Components.Schemas.PagedDocumentLinks,
5663 meta: Components.Schemas.PagingInformation? = nil
5664 ) {
5665 self.data = data
5666 self.links = links
5667 self.meta = meta
5668 }
5669 public enum CodingKeys: String, CodingKey {
5670 case data
5671 case links
5672 case meta
5673 }
5674 }
5675 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse`.
5676 public struct BundleIdProfilesLinkagesResponse: Codable, Hashable, Sendable {
5677 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/DataPayload`.
5678 public struct DataPayloadPayload: Codable, Hashable, Sendable {
5679 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/DataPayload/type`.
5680 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5681 case profiles = "profiles"
5682 }
5683 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/DataPayload/type`.
5684 public var _type: Components.Schemas.BundleIdProfilesLinkagesResponse.DataPayloadPayload._TypePayload
5685 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/DataPayload/id`.
5686 public var id: Swift.String
5687 /// Creates a new `DataPayloadPayload`.
5688 ///
5689 /// - Parameters:
5690 /// - _type:
5691 /// - id:
5692 public init(
5693 _type: Components.Schemas.BundleIdProfilesLinkagesResponse.DataPayloadPayload._TypePayload,
5694 id: Swift.String
5695 ) {
5696 self._type = _type
5697 self.id = id
5698 }
5699 public enum CodingKeys: String, CodingKey {
5700 case _type = "type"
5701 case id
5702 }
5703 }
5704 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/data`.
5705 public typealias DataPayload = [Components.Schemas.BundleIdProfilesLinkagesResponse.DataPayloadPayload]
5706 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/data`.
5707 public var data: Components.Schemas.BundleIdProfilesLinkagesResponse.DataPayload
5708 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/links`.
5709 public var links: Components.Schemas.PagedDocumentLinks
5710 /// - Remark: Generated from `#/components/schemas/BundleIdProfilesLinkagesResponse/meta`.
5711 public var meta: Components.Schemas.PagingInformation?
5712 /// Creates a new `BundleIdProfilesLinkagesResponse`.
5713 ///
5714 /// - Parameters:
5715 /// - data:
5716 /// - links:
5717 /// - meta:
5718 public init(
5719 data: Components.Schemas.BundleIdProfilesLinkagesResponse.DataPayload,
5720 links: Components.Schemas.PagedDocumentLinks,
5721 meta: Components.Schemas.PagingInformation? = nil
5722 ) {
5723 self.data = data
5724 self.links = links
5725 self.meta = meta
5726 }
5727 public enum CodingKeys: String, CodingKey {
5728 case data
5729 case links
5730 case meta
5731 }
5732 }
5733 /// - Remark: Generated from `#/components/schemas/CertificatePassTypeIdLinkageResponse`.
5734 public struct CertificatePassTypeIdLinkageResponse: Codable, Hashable, Sendable {
5735 /// - Remark: Generated from `#/components/schemas/CertificatePassTypeIdLinkageResponse/data`.
5736 public struct DataPayload: Codable, Hashable, Sendable {
5737 /// - Remark: Generated from `#/components/schemas/CertificatePassTypeIdLinkageResponse/data/type`.
5738 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5739 case passTypeIds = "passTypeIds"
5740 }
5741 /// - Remark: Generated from `#/components/schemas/CertificatePassTypeIdLinkageResponse/data/type`.
5742 public var _type: Components.Schemas.CertificatePassTypeIdLinkageResponse.DataPayload._TypePayload
5743 /// - Remark: Generated from `#/components/schemas/CertificatePassTypeIdLinkageResponse/data/id`.
5744 public var id: Swift.String
5745 /// Creates a new `DataPayload`.
5746 ///
5747 /// - Parameters:
5748 /// - _type:
5749 /// - id:
5750 public init(
5751 _type: Components.Schemas.CertificatePassTypeIdLinkageResponse.DataPayload._TypePayload,
5752 id: Swift.String
5753 ) {
5754 self._type = _type
5755 self.id = id
5756 }
5757 public enum CodingKeys: String, CodingKey {
5758 case _type = "type"
5759 case id
5760 }
5761 }
5762 /// - Remark: Generated from `#/components/schemas/CertificatePassTypeIdLinkageResponse/data`.
5763 public var data: Components.Schemas.CertificatePassTypeIdLinkageResponse.DataPayload
5764 /// - Remark: Generated from `#/components/schemas/CertificatePassTypeIdLinkageResponse/links`.
5765 public var links: Components.Schemas.DocumentLinks
5766 /// Creates a new `CertificatePassTypeIdLinkageResponse`.
5767 ///
5768 /// - Parameters:
5769 /// - data:
5770 /// - links:
5771 public init(
5772 data: Components.Schemas.CertificatePassTypeIdLinkageResponse.DataPayload,
5773 links: Components.Schemas.DocumentLinks
5774 ) {
5775 self.data = data
5776 self.links = links
5777 }
5778 public enum CodingKeys: String, CodingKey {
5779 case data
5780 case links
5781 }
5782 }
5783 /// - Remark: Generated from `#/components/schemas/BundleIdWithoutIncludesResponse`.
5784 public struct BundleIdWithoutIncludesResponse: Codable, Hashable, Sendable {
5785 /// - Remark: Generated from `#/components/schemas/BundleIdWithoutIncludesResponse/data`.
5786 public var data: Components.Schemas.BundleId
5787 /// - Remark: Generated from `#/components/schemas/BundleIdWithoutIncludesResponse/links`.
5788 public var links: Components.Schemas.DocumentLinks
5789 /// Creates a new `BundleIdWithoutIncludesResponse`.
5790 ///
5791 /// - Parameters:
5792 /// - data:
5793 /// - links:
5794 public init(
5795 data: Components.Schemas.BundleId,
5796 links: Components.Schemas.DocumentLinks
5797 ) {
5798 self.data = data
5799 self.links = links
5800 }
5801 public enum CodingKeys: String, CodingKey {
5802 case data
5803 case links
5804 }
5805 }
5806 /// - Remark: Generated from `#/components/schemas/ProfileBundleIdLinkageResponse`.
5807 public struct ProfileBundleIdLinkageResponse: Codable, Hashable, Sendable {
5808 /// - Remark: Generated from `#/components/schemas/ProfileBundleIdLinkageResponse/data`.
5809 public struct DataPayload: Codable, Hashable, Sendable {
5810 /// - Remark: Generated from `#/components/schemas/ProfileBundleIdLinkageResponse/data/type`.
5811 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5812 case bundleIds = "bundleIds"
5813 }
5814 /// - Remark: Generated from `#/components/schemas/ProfileBundleIdLinkageResponse/data/type`.
5815 public var _type: Components.Schemas.ProfileBundleIdLinkageResponse.DataPayload._TypePayload
5816 /// - Remark: Generated from `#/components/schemas/ProfileBundleIdLinkageResponse/data/id`.
5817 public var id: Swift.String
5818 /// Creates a new `DataPayload`.
5819 ///
5820 /// - Parameters:
5821 /// - _type:
5822 /// - id:
5823 public init(
5824 _type: Components.Schemas.ProfileBundleIdLinkageResponse.DataPayload._TypePayload,
5825 id: Swift.String
5826 ) {
5827 self._type = _type
5828 self.id = id
5829 }
5830 public enum CodingKeys: String, CodingKey {
5831 case _type = "type"
5832 case id
5833 }
5834 }
5835 /// - Remark: Generated from `#/components/schemas/ProfileBundleIdLinkageResponse/data`.
5836 public var data: Components.Schemas.ProfileBundleIdLinkageResponse.DataPayload
5837 /// - Remark: Generated from `#/components/schemas/ProfileBundleIdLinkageResponse/links`.
5838 public var links: Components.Schemas.DocumentLinks
5839 /// Creates a new `ProfileBundleIdLinkageResponse`.
5840 ///
5841 /// - Parameters:
5842 /// - data:
5843 /// - links:
5844 public init(
5845 data: Components.Schemas.ProfileBundleIdLinkageResponse.DataPayload,
5846 links: Components.Schemas.DocumentLinks
5847 ) {
5848 self.data = data
5849 self.links = links
5850 }
5851 public enum CodingKeys: String, CodingKey {
5852 case data
5853 case links
5854 }
5855 }
5856 /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse`.
5857 public struct CertificatesWithoutIncludesResponse: Codable, Hashable, Sendable {
5858 /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse/data`.
5859 public var data: [Components.Schemas.Certificate]
5860 /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse/links`.
5861 public var links: Components.Schemas.PagedDocumentLinks
5862 /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse/meta`.
5863 public var meta: Components.Schemas.PagingInformation?
5864 /// Creates a new `CertificatesWithoutIncludesResponse`.
5865 ///
5866 /// - Parameters:
5867 /// - data:
5868 /// - links:
5869 /// - meta:
5870 public init(
5871 data: [Components.Schemas.Certificate],
5872 links: Components.Schemas.PagedDocumentLinks,
5873 meta: Components.Schemas.PagingInformation? = nil
5874 ) {
5875 self.data = data
5876 self.links = links
5877 self.meta = meta
5878 }
5879 public enum CodingKeys: String, CodingKey {
5880 case data
5881 case links
5882 case meta
5883 }
5884 }
5885 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse`.
5886 public struct ProfileCertificatesLinkagesResponse: Codable, Hashable, Sendable {
5887 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/DataPayload`.
5888 public struct DataPayloadPayload: Codable, Hashable, Sendable {
5889 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/DataPayload/type`.
5890 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5891 case certificates = "certificates"
5892 }
5893 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/DataPayload/type`.
5894 public var _type: Components.Schemas.ProfileCertificatesLinkagesResponse.DataPayloadPayload._TypePayload
5895 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/DataPayload/id`.
5896 public var id: Swift.String
5897 /// Creates a new `DataPayloadPayload`.
5898 ///
5899 /// - Parameters:
5900 /// - _type:
5901 /// - id:
5902 public init(
5903 _type: Components.Schemas.ProfileCertificatesLinkagesResponse.DataPayloadPayload._TypePayload,
5904 id: Swift.String
5905 ) {
5906 self._type = _type
5907 self.id = id
5908 }
5909 public enum CodingKeys: String, CodingKey {
5910 case _type = "type"
5911 case id
5912 }
5913 }
5914 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/data`.
5915 public typealias DataPayload = [Components.Schemas.ProfileCertificatesLinkagesResponse.DataPayloadPayload]
5916 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/data`.
5917 public var data: Components.Schemas.ProfileCertificatesLinkagesResponse.DataPayload
5918 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/links`.
5919 public var links: Components.Schemas.PagedDocumentLinks
5920 /// - Remark: Generated from `#/components/schemas/ProfileCertificatesLinkagesResponse/meta`.
5921 public var meta: Components.Schemas.PagingInformation?
5922 /// Creates a new `ProfileCertificatesLinkagesResponse`.
5923 ///
5924 /// - Parameters:
5925 /// - data:
5926 /// - links:
5927 /// - meta:
5928 public init(
5929 data: Components.Schemas.ProfileCertificatesLinkagesResponse.DataPayload,
5930 links: Components.Schemas.PagedDocumentLinks,
5931 meta: Components.Schemas.PagingInformation? = nil
5932 ) {
5933 self.data = data
5934 self.links = links
5935 self.meta = meta
5936 }
5937 public enum CodingKeys: String, CodingKey {
5938 case data
5939 case links
5940 case meta
5941 }
5942 }
5943 /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse`.
5944 public struct DevicesWithoutIncludesResponse: Codable, Hashable, Sendable {
5945 /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse/data`.
5946 public var data: [Components.Schemas.Device]
5947 /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse/links`.
5948 public var links: Components.Schemas.PagedDocumentLinks
5949 /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse/meta`.
5950 public var meta: Components.Schemas.PagingInformation?
5951 /// Creates a new `DevicesWithoutIncludesResponse`.
5952 ///
5953 /// - Parameters:
5954 /// - data:
5955 /// - links:
5956 /// - meta:
5957 public init(
5958 data: [Components.Schemas.Device],
5959 links: Components.Schemas.PagedDocumentLinks,
5960 meta: Components.Schemas.PagingInformation? = nil
5961 ) {
5962 self.data = data
5963 self.links = links
5964 self.meta = meta
5965 }
5966 public enum CodingKeys: String, CodingKey {
5967 case data
5968 case links
5969 case meta
5970 }
5971 }
5972 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse`.
5973 public struct ProfileDevicesLinkagesResponse: Codable, Hashable, Sendable {
5974 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/DataPayload`.
5975 public struct DataPayloadPayload: Codable, Hashable, Sendable {
5976 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/DataPayload/type`.
5977 @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable {
5978 case devices = "devices"
5979 }
5980 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/DataPayload/type`.
5981 public var _type: Components.Schemas.ProfileDevicesLinkagesResponse.DataPayloadPayload._TypePayload
5982 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/DataPayload/id`.
5983 public var id: Swift.String
5984 /// Creates a new `DataPayloadPayload`.
5985 ///
5986 /// - Parameters:
5987 /// - _type:
5988 /// - id:
5989 public init(
5990 _type: Components.Schemas.ProfileDevicesLinkagesResponse.DataPayloadPayload._TypePayload,
5991 id: Swift.String
5992 ) {
5993 self._type = _type
5994 self.id = id
5995 }
5996 public enum CodingKeys: String, CodingKey {
5997 case _type = "type"
5998 case id
5999 }
6000 }
6001 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/data`.
6002 public typealias DataPayload = [Components.Schemas.ProfileDevicesLinkagesResponse.DataPayloadPayload]
6003 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/data`.
6004 public var data: Components.Schemas.ProfileDevicesLinkagesResponse.DataPayload
6005 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/links`.
6006 public var links: Components.Schemas.PagedDocumentLinks
6007 /// - Remark: Generated from `#/components/schemas/ProfileDevicesLinkagesResponse/meta`.
6008 public var meta: Components.Schemas.PagingInformation?
6009 /// Creates a new `ProfileDevicesLinkagesResponse`.
6010 ///
6011 /// - Parameters:
6012 /// - data:
6013 /// - links:
6014 /// - meta:
6015 public init(
6016 data: Components.Schemas.ProfileDevicesLinkagesResponse.DataPayload,
6017 links: Components.Schemas.PagedDocumentLinks,
6018 meta: Components.Schemas.PagingInformation? = nil
6019 ) {
6020 self.data = data
6021 self.links = links
6022 self.meta = meta
6023 }
6024 public enum CodingKeys: String, CodingKey {
6025 case data
6026 case links
6027 case meta
6028 }
6029 }
6030 /// - Remark: Generated from `#/components/schemas/ErrorResponse`.
6031 public struct ErrorResponse: Codable, Hashable, Sendable {
6032 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload`.
6033 public struct ErrorsPayloadPayload: Codable, Hashable, Sendable {
6034 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/id`.
6035 public var id: Swift.String?
6036 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/status`.
6037 public var status: Swift.String
6038 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/code`.
6039 public var code: Swift.String
6040 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/title`.
6041 public var title: Swift.String
6042 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/detail`.
6043 public var detail: Swift.String
6044 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/source`.
6045 @frozen public enum SourcePayload: Codable, Hashable, Sendable {
6046 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/source/case1`.
6047 case ErrorSourcePointer(Components.Schemas.ErrorSourcePointer)
6048 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/source/case2`.
6049 case ErrorSourceParameter(Components.Schemas.ErrorSourceParameter)
6050 public init(from decoder: any Decoder) throws {
6051 var errors: [any Error] = []
6052 do {
6053 self = .ErrorSourcePointer(try .init(from: decoder))
6054 return
6055 } catch {
6056 errors.append(error)
6057 }
6058 do {
6059 self = .ErrorSourceParameter(try .init(from: decoder))
6060 return
6061 } catch {
6062 errors.append(error)
6063 }
6064 throw Swift.DecodingError.failedToDecodeOneOfSchema(
6065 type: Self.self,
6066 codingPath: decoder.codingPath,
6067 errors: errors
6068 )
6069 }
6070 public func encode(to encoder: any Encoder) throws {
6071 switch self {
6072 case let .ErrorSourcePointer(value):
6073 try value.encode(to: encoder)
6074 case let .ErrorSourceParameter(value):
6075 try value.encode(to: encoder)
6076 }
6077 }
6078 }
6079 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/source`.
6080 public var source: Components.Schemas.ErrorResponse.ErrorsPayloadPayload.SourcePayload?
6081 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/links`.
6082 public var links: Components.Schemas.ErrorLinks?
6083 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/meta`.
6084 public struct MetaPayload: Codable, Hashable, Sendable {
6085 /// A container of undocumented properties.
6086 public var additionalProperties: [String: OpenAPIRuntime.OpenAPIValueContainer]
6087 /// Creates a new `MetaPayload`.
6088 ///
6089 /// - Parameters:
6090 /// - additionalProperties: A container of undocumented properties.
6091 public init(additionalProperties: [String: OpenAPIRuntime.OpenAPIValueContainer] = .init()) {
6092 self.additionalProperties = additionalProperties
6093 }
6094 public init(from decoder: any Decoder) throws {
6095 additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])
6096 }
6097 public func encode(to encoder: any Encoder) throws {
6098 try encoder.encodeAdditionalProperties(additionalProperties)
6099 }
6100 }
6101 /// - Remark: Generated from `#/components/schemas/ErrorResponse/ErrorsPayload/meta`.
6102 public var meta: Components.Schemas.ErrorResponse.ErrorsPayloadPayload.MetaPayload?
6103 /// Creates a new `ErrorsPayloadPayload`.
6104 ///
6105 /// - Parameters:
6106 /// - id:
6107 /// - status:
6108 /// - code:
6109 /// - title:
6110 /// - detail:
6111 /// - source:
6112 /// - links:
6113 /// - meta:
6114 public init(
6115 id: Swift.String? = nil,
6116 status: Swift.String,
6117 code: Swift.String,
6118 title: Swift.String,
6119 detail: Swift.String,
6120 source: Components.Schemas.ErrorResponse.ErrorsPayloadPayload.SourcePayload? = nil,
6121 links: Components.Schemas.ErrorLinks? = nil,
6122 meta: Components.Schemas.ErrorResponse.ErrorsPayloadPayload.MetaPayload? = nil
6123 ) {
6124 self.id = id
6125 self.status = status
6126 self.code = code
6127 self.title = title
6128 self.detail = detail
6129 self.source = source
6130 self.links = links
6131 self.meta = meta
6132 }
6133 public enum CodingKeys: String, CodingKey {
6134 case id
6135 case status
6136 case code
6137 case title
6138 case detail
6139 case source
6140 case links
6141 case meta
6142 }
6143 }
6144 /// - Remark: Generated from `#/components/schemas/ErrorResponse/errors`.
6145 public typealias ErrorsPayload = [Components.Schemas.ErrorResponse.ErrorsPayloadPayload]
6146 /// - Remark: Generated from `#/components/schemas/ErrorResponse/errors`.
6147 public var errors: Components.Schemas.ErrorResponse.ErrorsPayload?
6148 /// Creates a new `ErrorResponse`.
6149 ///
6150 /// - Parameters:
6151 /// - errors:
6152 public init(errors: Components.Schemas.ErrorResponse.ErrorsPayload? = nil) {
6153 self.errors = errors
6154 }
6155 public enum CodingKeys: String, CodingKey {
6156 case errors
6157 }
6158 }
6159 /// - Remark: Generated from `#/components/schemas/ErrorSourceParameter`.
6160 public struct ErrorSourceParameter: Codable, Hashable, Sendable {
6161 /// - Remark: Generated from `#/components/schemas/ErrorSourceParameter/parameter`.
6162 public var parameter: Swift.String
6163 /// Creates a new `ErrorSourceParameter`.
6164 ///
6165 /// - Parameters:
6166 /// - parameter:
6167 public init(parameter: Swift.String) {
6168 self.parameter = parameter
6169 }
6170 public enum CodingKeys: String, CodingKey {
6171 case parameter
6172 }
6173 }
6174 /// - Remark: Generated from `#/components/schemas/ErrorSourcePointer`.
6175 public struct ErrorSourcePointer: Codable, Hashable, Sendable {
6176 /// - Remark: Generated from `#/components/schemas/ErrorSourcePointer/pointer`.
6177 public var pointer: Swift.String
6178 /// Creates a new `ErrorSourcePointer`.
6179 ///
6180 /// - Parameters:
6181 /// - pointer:
6182 public init(pointer: Swift.String) {
6183 self.pointer = pointer
6184 }
6185 public enum CodingKeys: String, CodingKey {
6186 case pointer
6187 }
6188 }
6189 /// - Remark: Generated from `#/components/schemas/ErrorLinks`.
6190 public struct ErrorLinks: Codable, Hashable, Sendable {
6191 /// - Remark: Generated from `#/components/schemas/ErrorLinks/about`.
6192 public var about: Swift.String?
6193 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated`.
6194 @frozen public enum AssociatedPayload: Codable, Hashable, Sendable {
6195 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case1`.
6196 case case1(Swift.String)
6197 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2`.
6198 public struct Case2Payload: Codable, Hashable, Sendable {
6199 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/href`.
6200 public var href: Swift.String?
6201 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/meta`.
6202 public struct MetaPayload: Codable, Hashable, Sendable {
6203 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/meta/source`.
6204 public var source: Swift.String?
6205 /// Creates a new `MetaPayload`.
6206 ///
6207 /// - Parameters:
6208 /// - source:
6209 public init(source: Swift.String? = nil) {
6210 self.source = source
6211 }
6212 public enum CodingKeys: String, CodingKey {
6213 case source
6214 }
6215 }
6216 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/meta`.
6217 public var meta: Components.Schemas.ErrorLinks.AssociatedPayload.Case2Payload.MetaPayload?
6218 /// Creates a new `Case2Payload`.
6219 ///
6220 /// - Parameters:
6221 /// - href:
6222 /// - meta:
6223 public init(
6224 href: Swift.String? = nil,
6225 meta: Components.Schemas.ErrorLinks.AssociatedPayload.Case2Payload.MetaPayload? = nil
6226 ) {
6227 self.href = href
6228 self.meta = meta
6229 }
6230 public enum CodingKeys: String, CodingKey {
6231 case href
6232 case meta
6233 }
6234 }
6235 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2`.
6236 case case2(Components.Schemas.ErrorLinks.AssociatedPayload.Case2Payload)
6237 public init(from decoder: any Decoder) throws {
6238 var errors: [any Error] = []
6239 do {
6240 self = .case1(try decoder.decodeFromSingleValueContainer())
6241 return
6242 } catch {
6243 errors.append(error)
6244 }
6245 do {
6246 self = .case2(try .init(from: decoder))
6247 return
6248 } catch {
6249 errors.append(error)
6250 }
6251 throw Swift.DecodingError.failedToDecodeOneOfSchema(
6252 type: Self.self,
6253 codingPath: decoder.codingPath,
6254 errors: errors
6255 )
6256 }
6257 public func encode(to encoder: any Encoder) throws {
6258 switch self {
6259 case let .case1(value):
6260 try encoder.encodeToSingleValueContainer(value)
6261 case let .case2(value):
6262 try value.encode(to: encoder)
6263 }
6264 }
6265 }
6266 /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated`.
6267 public var associated: Components.Schemas.ErrorLinks.AssociatedPayload?
6268 /// Creates a new `ErrorLinks`.
6269 ///
6270 /// - Parameters:
6271 /// - about:
6272 /// - associated:
6273 public init(
6274 about: Swift.String? = nil,
6275 associated: Components.Schemas.ErrorLinks.AssociatedPayload? = nil
6276 ) {
6277 self.about = about
6278 self.associated = associated
6279 }
6280 public enum CodingKeys: String, CodingKey {
6281 case about
6282 case associated
6283 }
6284 }
6285 /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks`.
6286 public struct PagedDocumentLinks: Codable, Hashable, Sendable {
6287 /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks/self`.
6288 public var _self: Swift.String
6289 /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks/first`.
6290 public var first: Swift.String?
6291 /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks/next`.
6292 public var next: Swift.String?
6293 /// Creates a new `PagedDocumentLinks`.
6294 ///
6295 /// - Parameters:
6296 /// - _self:
6297 /// - first:
6298 /// - next:
6299 public init(
6300 _self: Swift.String,
6301 first: Swift.String? = nil,
6302 next: Swift.String? = nil
6303 ) {
6304 self._self = _self
6305 self.first = first
6306 self.next = next
6307 }
6308 public enum CodingKeys: String, CodingKey {
6309 case _self = "self"
6310 case first
6311 case next
6312 }
6313 }
6314 /// - Remark: Generated from `#/components/schemas/PagingInformation`.
6315 public struct PagingInformation: Codable, Hashable, Sendable {
6316 /// - Remark: Generated from `#/components/schemas/PagingInformation/paging`.
6317 public struct PagingPayload: Codable, Hashable, Sendable {
6318 /// - Remark: Generated from `#/components/schemas/PagingInformation/paging/total`.
6319 public var total: Swift.Int?
6320 /// - Remark: Generated from `#/components/schemas/PagingInformation/paging/limit`.
6321 public var limit: Swift.Int
6322 /// - Remark: Generated from `#/components/schemas/PagingInformation/paging/nextCursor`.
6323 public var nextCursor: Swift.String?
6324 /// Creates a new `PagingPayload`.
6325 ///
6326 /// - Parameters:
6327 /// - total:
6328 /// - limit:
6329 /// - nextCursor:
6330 public init(
6331 total: Swift.Int? = nil,
6332 limit: Swift.Int,
6333 nextCursor: Swift.String? = nil
6334 ) {
6335 self.total = total
6336 self.limit = limit
6337 self.nextCursor = nextCursor
6338 }
6339 public enum CodingKeys: String, CodingKey {
6340 case total
6341 case limit
6342 case nextCursor
6343 }
6344 }
6345 /// - Remark: Generated from `#/components/schemas/PagingInformation/paging`.
6346 public var paging: Components.Schemas.PagingInformation.PagingPayload
6347 /// Creates a new `PagingInformation`.
6348 ///
6349 /// - Parameters:
6350 /// - paging:
6351 public init(paging: Components.Schemas.PagingInformation.PagingPayload) {
6352 self.paging = paging
6353 }
6354 public enum CodingKeys: String, CodingKey {
6355 case paging
6356 }
6357 }
6358 /// - Remark: Generated from `#/components/schemas/DocumentLinks`.
6359 public struct DocumentLinks: Codable, Hashable, Sendable {
6360 /// - Remark: Generated from `#/components/schemas/DocumentLinks/self`.
6361 public var _self: Swift.String
6362 /// Creates a new `DocumentLinks`.
6363 ///
6364 /// - Parameters:
6365 /// - _self:
6366 public init(_self: Swift.String) {
6367 self._self = _self
6368 }
6369 public enum CodingKeys: String, CodingKey {
6370 case _self = "self"
6371 }
6372 }
6373 /// - Remark: Generated from `#/components/schemas/ResourceLinks`.
6374 public struct ResourceLinks: Codable, Hashable, Sendable {
6375 /// - Remark: Generated from `#/components/schemas/ResourceLinks/self`.
6376 public var _self: Swift.String?
6377 /// Creates a new `ResourceLinks`.
6378 ///
6379 /// - Parameters:
6380 /// - _self:
6381 public init(_self: Swift.String? = nil) {
6382 self._self = _self
6383 }
6384 public enum CodingKeys: String, CodingKey {
6385 case _self = "self"
6386 }
6387 }
6388 /// - Remark: Generated from `#/components/schemas/RelationshipLinks`.
6389 public struct RelationshipLinks: Codable, Hashable, Sendable {
6390 /// - Remark: Generated from `#/components/schemas/RelationshipLinks/self`.
6391 public var _self: Swift.String?
6392 /// - Remark: Generated from `#/components/schemas/RelationshipLinks/related`.
6393 public var related: Swift.String?
6394 /// Creates a new `RelationshipLinks`.
6395 ///
6396 /// - Parameters:
6397 /// - _self:
6398 /// - related:
6399 public init(
6400 _self: Swift.String? = nil,
6401 related: Swift.String? = nil
6402 ) {
6403 self._self = _self
6404 self.related = related
6405 }
6406 public enum CodingKeys: String, CodingKey {
6407 case _self = "self"
6408 case related
6409 }
6410 }
6411 /// - Remark: Generated from `#/components/schemas/BundleIdPlatform`.
6412 public struct BundleIdPlatform: Codable, Hashable, Sendable {
6413 /// - Remark: Generated from `#/components/schemas/BundleIdPlatform/value1`.
6414 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
6415 case ios = "IOS"
6416 case macOs = "MAC_OS"
6417 case universal = "UNIVERSAL"
6418 }
6419 /// - Remark: Generated from `#/components/schemas/BundleIdPlatform/value1`.
6420 public var value1: Components.Schemas.BundleIdPlatform.Value1Payload?
6421 /// - Remark: Generated from `#/components/schemas/BundleIdPlatform/value2`.
6422 public var value2: Swift.String?
6423 /// Creates a new `BundleIdPlatform`.
6424 ///
6425 /// - Parameters:
6426 /// - value1:
6427 /// - value2:
6428 public init(
6429 value1: Components.Schemas.BundleIdPlatform.Value1Payload? = nil,
6430 value2: Swift.String? = nil
6431 ) {
6432 self.value1 = value1
6433 self.value2 = value2
6434 }
6435 public init(from decoder: any Decoder) throws {
6436 var errors: [any Error] = []
6437 do {
6438 self.value1 = try decoder.decodeFromSingleValueContainer()
6439 } catch {
6440 errors.append(error)
6441 }
6442 do {
6443 self.value2 = try decoder.decodeFromSingleValueContainer()
6444 } catch {
6445 errors.append(error)
6446 }
6447 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
6448 [
6449 self.value1,
6450 self.value2
6451 ],
6452 type: Self.self,
6453 codingPath: decoder.codingPath,
6454 errors: errors
6455 )
6456 }
6457 public func encode(to encoder: any Encoder) throws {
6458 try encoder.encodeFirstNonNilValueToSingleValueContainer([
6459 self.value1,
6460 self.value2
6461 ])
6462 }
6463 }
6464 /// - Remark: Generated from `#/components/schemas/CapabilityOption`.
6465 public struct CapabilityOption: Codable, Hashable, Sendable {
6466 /// - Remark: Generated from `#/components/schemas/CapabilityOption/key`.
6467 public struct KeyPayload: Codable, Hashable, Sendable {
6468 /// - Remark: Generated from `#/components/schemas/CapabilityOption/key/value1`.
6469 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
6470 case xcode5 = "XCODE_5"
6471 case xcode6 = "XCODE_6"
6472 case completeProtection = "COMPLETE_PROTECTION"
6473 case protectedUnlessOpen = "PROTECTED_UNLESS_OPEN"
6474 case protectedUntilFirstUserAuth = "PROTECTED_UNTIL_FIRST_USER_AUTH"
6475 case primaryAppConsent = "PRIMARY_APP_CONSENT"
6476 }
6477 /// - Remark: Generated from `#/components/schemas/CapabilityOption/key/value1`.
6478 public var value1: Components.Schemas.CapabilityOption.KeyPayload.Value1Payload?
6479 /// - Remark: Generated from `#/components/schemas/CapabilityOption/key/value2`.
6480 public var value2: Swift.String?
6481 /// Creates a new `KeyPayload`.
6482 ///
6483 /// - Parameters:
6484 /// - value1:
6485 /// - value2:
6486 public init(
6487 value1: Components.Schemas.CapabilityOption.KeyPayload.Value1Payload? = nil,
6488 value2: Swift.String? = nil
6489 ) {
6490 self.value1 = value1
6491 self.value2 = value2
6492 }
6493 public init(from decoder: any Decoder) throws {
6494 var errors: [any Error] = []
6495 do {
6496 self.value1 = try decoder.decodeFromSingleValueContainer()
6497 } catch {
6498 errors.append(error)
6499 }
6500 do {
6501 self.value2 = try decoder.decodeFromSingleValueContainer()
6502 } catch {
6503 errors.append(error)
6504 }
6505 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
6506 [
6507 self.value1,
6508 self.value2
6509 ],
6510 type: Self.self,
6511 codingPath: decoder.codingPath,
6512 errors: errors
6513 )
6514 }
6515 public func encode(to encoder: any Encoder) throws {
6516 try encoder.encodeFirstNonNilValueToSingleValueContainer([
6517 self.value1,
6518 self.value2
6519 ])
6520 }
6521 }
6522 /// - Remark: Generated from `#/components/schemas/CapabilityOption/key`.
6523 public var key: Components.Schemas.CapabilityOption.KeyPayload?
6524 /// - Remark: Generated from `#/components/schemas/CapabilityOption/name`.
6525 public var name: Swift.String?
6526 /// - Remark: Generated from `#/components/schemas/CapabilityOption/description`.
6527 public var description: Swift.String?
6528 /// - Remark: Generated from `#/components/schemas/CapabilityOption/enabledByDefault`.
6529 public var enabledByDefault: Swift.Bool?
6530 /// - Remark: Generated from `#/components/schemas/CapabilityOption/enabled`.
6531 public var enabled: Swift.Bool?
6532 /// - Remark: Generated from `#/components/schemas/CapabilityOption/supportsWildcard`.
6533 public var supportsWildcard: Swift.Bool?
6534 /// Creates a new `CapabilityOption`.
6535 ///
6536 /// - Parameters:
6537 /// - key:
6538 /// - name:
6539 /// - description:
6540 /// - enabledByDefault:
6541 /// - enabled:
6542 /// - supportsWildcard:
6543 public init(
6544 key: Components.Schemas.CapabilityOption.KeyPayload? = nil,
6545 name: Swift.String? = nil,
6546 description: Swift.String? = nil,
6547 enabledByDefault: Swift.Bool? = nil,
6548 enabled: Swift.Bool? = nil,
6549 supportsWildcard: Swift.Bool? = nil
6550 ) {
6551 self.key = key
6552 self.name = name
6553 self.description = description
6554 self.enabledByDefault = enabledByDefault
6555 self.enabled = enabled
6556 self.supportsWildcard = supportsWildcard
6557 }
6558 public enum CodingKeys: String, CodingKey {
6559 case key
6560 case name
6561 case description
6562 case enabledByDefault
6563 case enabled
6564 case supportsWildcard
6565 }
6566 }
6567 /// - Remark: Generated from `#/components/schemas/CapabilitySetting`.
6568 public struct CapabilitySetting: Codable, Hashable, Sendable {
6569 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/key`.
6570 public struct KeyPayload: Codable, Hashable, Sendable {
6571 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/key/value1`.
6572 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
6573 case icloudVersion = "ICLOUD_VERSION"
6574 case dataProtectionPermissionLevel = "DATA_PROTECTION_PERMISSION_LEVEL"
6575 case appleIdAuthAppConsent = "APPLE_ID_AUTH_APP_CONSENT"
6576 }
6577 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/key/value1`.
6578 public var value1: Components.Schemas.CapabilitySetting.KeyPayload.Value1Payload?
6579 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/key/value2`.
6580 public var value2: Swift.String?
6581 /// Creates a new `KeyPayload`.
6582 ///
6583 /// - Parameters:
6584 /// - value1:
6585 /// - value2:
6586 public init(
6587 value1: Components.Schemas.CapabilitySetting.KeyPayload.Value1Payload? = nil,
6588 value2: Swift.String? = nil
6589 ) {
6590 self.value1 = value1
6591 self.value2 = value2
6592 }
6593 public init(from decoder: any Decoder) throws {
6594 var errors: [any Error] = []
6595 do {
6596 self.value1 = try decoder.decodeFromSingleValueContainer()
6597 } catch {
6598 errors.append(error)
6599 }
6600 do {
6601 self.value2 = try decoder.decodeFromSingleValueContainer()
6602 } catch {
6603 errors.append(error)
6604 }
6605 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
6606 [
6607 self.value1,
6608 self.value2
6609 ],
6610 type: Self.self,
6611 codingPath: decoder.codingPath,
6612 errors: errors
6613 )
6614 }
6615 public func encode(to encoder: any Encoder) throws {
6616 try encoder.encodeFirstNonNilValueToSingleValueContainer([
6617 self.value1,
6618 self.value2
6619 ])
6620 }
6621 }
6622 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/key`.
6623 public var key: Components.Schemas.CapabilitySetting.KeyPayload?
6624 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/name`.
6625 public var name: Swift.String?
6626 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/description`.
6627 public var description: Swift.String?
6628 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/enabledByDefault`.
6629 public var enabledByDefault: Swift.Bool?
6630 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/visible`.
6631 public var visible: Swift.Bool?
6632 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/allowedInstances`.
6633 public struct AllowedInstancesPayload: Codable, Hashable, Sendable {
6634 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/allowedInstances/value1`.
6635 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
6636 case entry = "ENTRY"
6637 case single = "SINGLE"
6638 case multiple = "MULTIPLE"
6639 }
6640 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/allowedInstances/value1`.
6641 public var value1: Components.Schemas.CapabilitySetting.AllowedInstancesPayload.Value1Payload?
6642 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/allowedInstances/value2`.
6643 public var value2: Swift.String?
6644 /// Creates a new `AllowedInstancesPayload`.
6645 ///
6646 /// - Parameters:
6647 /// - value1:
6648 /// - value2:
6649 public init(
6650 value1: Components.Schemas.CapabilitySetting.AllowedInstancesPayload.Value1Payload? = nil,
6651 value2: Swift.String? = nil
6652 ) {
6653 self.value1 = value1
6654 self.value2 = value2
6655 }
6656 public init(from decoder: any Decoder) throws {
6657 var errors: [any Error] = []
6658 do {
6659 self.value1 = try decoder.decodeFromSingleValueContainer()
6660 } catch {
6661 errors.append(error)
6662 }
6663 do {
6664 self.value2 = try decoder.decodeFromSingleValueContainer()
6665 } catch {
6666 errors.append(error)
6667 }
6668 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
6669 [
6670 self.value1,
6671 self.value2
6672 ],
6673 type: Self.self,
6674 codingPath: decoder.codingPath,
6675 errors: errors
6676 )
6677 }
6678 public func encode(to encoder: any Encoder) throws {
6679 try encoder.encodeFirstNonNilValueToSingleValueContainer([
6680 self.value1,
6681 self.value2
6682 ])
6683 }
6684 }
6685 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/allowedInstances`.
6686 public var allowedInstances: Components.Schemas.CapabilitySetting.AllowedInstancesPayload?
6687 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/minInstances`.
6688 public var minInstances: Swift.Int?
6689 /// - Remark: Generated from `#/components/schemas/CapabilitySetting/options`.
6690 public var options: [Components.Schemas.CapabilityOption]?
6691 /// Creates a new `CapabilitySetting`.
6692 ///
6693 /// - Parameters:
6694 /// - key:
6695 /// - name:
6696 /// - description:
6697 /// - enabledByDefault:
6698 /// - visible:
6699 /// - allowedInstances:
6700 /// - minInstances:
6701 /// - options:
6702 public init(
6703 key: Components.Schemas.CapabilitySetting.KeyPayload? = nil,
6704 name: Swift.String? = nil,
6705 description: Swift.String? = nil,
6706 enabledByDefault: Swift.Bool? = nil,
6707 visible: Swift.Bool? = nil,
6708 allowedInstances: Components.Schemas.CapabilitySetting.AllowedInstancesPayload? = nil,
6709 minInstances: Swift.Int? = nil,
6710 options: [Components.Schemas.CapabilityOption]? = nil
6711 ) {
6712 self.key = key
6713 self.name = name
6714 self.description = description
6715 self.enabledByDefault = enabledByDefault
6716 self.visible = visible
6717 self.allowedInstances = allowedInstances
6718 self.minInstances = minInstances
6719 self.options = options
6720 }
6721 public enum CodingKeys: String, CodingKey {
6722 case key
6723 case name
6724 case description
6725 case enabledByDefault
6726 case visible
6727 case allowedInstances
6728 case minInstances
6729 case options
6730 }
6731 }
6732 /// - Remark: Generated from `#/components/schemas/CapabilityType`.
6733 public struct CapabilityType: Codable, Hashable, Sendable {
6734 /// - Remark: Generated from `#/components/schemas/CapabilityType/value1`.
6735 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
6736 case icloud = "ICLOUD"
6737 case inAppPurchase = "IN_APP_PURCHASE"
6738 case gameCenter = "GAME_CENTER"
6739 case pushNotifications = "PUSH_NOTIFICATIONS"
6740 case wallet = "WALLET"
6741 case interAppAudio = "INTER_APP_AUDIO"
6742 case maps = "MAPS"
6743 case associatedDomains = "ASSOCIATED_DOMAINS"
6744 case personalVpn = "PERSONAL_VPN"
6745 case appGroups = "APP_GROUPS"
6746 case healthkit = "HEALTHKIT"
6747 case homekit = "HOMEKIT"
6748 case wirelessAccessoryConfiguration = "WIRELESS_ACCESSORY_CONFIGURATION"
6749 case applePay = "APPLE_PAY"
6750 case dataProtection = "DATA_PROTECTION"
6751 case sirikit = "SIRIKIT"
6752 case networkExtensions = "NETWORK_EXTENSIONS"
6753 case multipath = "MULTIPATH"
6754 case hotSpot = "HOT_SPOT"
6755 case nfcTagReading = "NFC_TAG_READING"
6756 case classkit = "CLASSKIT"
6757 case autofillCredentialProvider = "AUTOFILL_CREDENTIAL_PROVIDER"
6758 case accessWifiInformation = "ACCESS_WIFI_INFORMATION"
6759 case networkCustomProtocol = "NETWORK_CUSTOM_PROTOCOL"
6760 case coremediaHlsLowLatency = "COREMEDIA_HLS_LOW_LATENCY"
6761 case systemExtensionInstall = "SYSTEM_EXTENSION_INSTALL"
6762 case userManagement = "USER_MANAGEMENT"
6763 case appleIdAuth = "APPLE_ID_AUTH"
6764 }
6765 /// - Remark: Generated from `#/components/schemas/CapabilityType/value1`.
6766 public var value1: Components.Schemas.CapabilityType.Value1Payload?
6767 /// - Remark: Generated from `#/components/schemas/CapabilityType/value2`.
6768 public var value2: Swift.String?
6769 /// Creates a new `CapabilityType`.
6770 ///
6771 /// - Parameters:
6772 /// - value1:
6773 /// - value2:
6774 public init(
6775 value1: Components.Schemas.CapabilityType.Value1Payload? = nil,
6776 value2: Swift.String? = nil
6777 ) {
6778 self.value1 = value1
6779 self.value2 = value2
6780 }
6781 public init(from decoder: any Decoder) throws {
6782 var errors: [any Error] = []
6783 do {
6784 self.value1 = try decoder.decodeFromSingleValueContainer()
6785 } catch {
6786 errors.append(error)
6787 }
6788 do {
6789 self.value2 = try decoder.decodeFromSingleValueContainer()
6790 } catch {
6791 errors.append(error)
6792 }
6793 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
6794 [
6795 self.value1,
6796 self.value2
6797 ],
6798 type: Self.self,
6799 codingPath: decoder.codingPath,
6800 errors: errors
6801 )
6802 }
6803 public func encode(to encoder: any Encoder) throws {
6804 try encoder.encodeFirstNonNilValueToSingleValueContainer([
6805 self.value1,
6806 self.value2
6807 ])
6808 }
6809 }
6810 /// - Remark: Generated from `#/components/schemas/CertificateType`.
6811 public struct CertificateType: Codable, Hashable, Sendable {
6812 /// - Remark: Generated from `#/components/schemas/CertificateType/value1`.
6813 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
6814 case applePay = "APPLE_PAY"
6815 case applePayMerchantIdentity = "APPLE_PAY_MERCHANT_IDENTITY"
6816 case applePayPspIdentity = "APPLE_PAY_PSP_IDENTITY"
6817 case applePayRsa = "APPLE_PAY_RSA"
6818 case developerIdKext = "DEVELOPER_ID_KEXT"
6819 case developerIdKextG2 = "DEVELOPER_ID_KEXT_G2"
6820 case developerIdApplication = "DEVELOPER_ID_APPLICATION"
6821 case developerIdApplicationG2 = "DEVELOPER_ID_APPLICATION_G2"
6822 case development = "DEVELOPMENT"
6823 case distribution = "DISTRIBUTION"
6824 case identityAccess = "IDENTITY_ACCESS"
6825 case iosDevelopment = "IOS_DEVELOPMENT"
6826 case iosDistribution = "IOS_DISTRIBUTION"
6827 case macAppDistribution = "MAC_APP_DISTRIBUTION"
6828 case macInstallerDistribution = "MAC_INSTALLER_DISTRIBUTION"
6829 case macAppDevelopment = "MAC_APP_DEVELOPMENT"
6830 case passTypeId = "PASS_TYPE_ID"
6831 case passTypeIdWithNfc = "PASS_TYPE_ID_WITH_NFC"
6832 }
6833 /// - Remark: Generated from `#/components/schemas/CertificateType/value1`.
6834 public var value1: Components.Schemas.CertificateType.Value1Payload?
6835 /// - Remark: Generated from `#/components/schemas/CertificateType/value2`.
6836 public var value2: Swift.String?
6837 /// Creates a new `CertificateType`.
6838 ///
6839 /// - Parameters:
6840 /// - value1:
6841 /// - value2:
6842 public init(
6843 value1: Components.Schemas.CertificateType.Value1Payload? = nil,
6844 value2: Swift.String? = nil
6845 ) {
6846 self.value1 = value1
6847 self.value2 = value2
6848 }
6849 public init(from decoder: any Decoder) throws {
6850 var errors: [any Error] = []
6851 do {
6852 self.value1 = try decoder.decodeFromSingleValueContainer()
6853 } catch {
6854 errors.append(error)
6855 }
6856 do {
6857 self.value2 = try decoder.decodeFromSingleValueContainer()
6858 } catch {
6859 errors.append(error)
6860 }
6861 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
6862 [
6863 self.value1,
6864 self.value2
6865 ],
6866 type: Self.self,
6867 codingPath: decoder.codingPath,
6868 errors: errors
6869 )
6870 }
6871 public func encode(to encoder: any Encoder) throws {
6872 try encoder.encodeFirstNonNilValueToSingleValueContainer([
6873 self.value1,
6874 self.value2
6875 ])
6876 }
6877 }
6878 /// - Remark: Generated from `#/components/schemas/SubscriptionStatusUrlVersion`.
6879 public struct SubscriptionStatusUrlVersion: Codable, Hashable, Sendable {
6880 /// - Remark: Generated from `#/components/schemas/SubscriptionStatusUrlVersion/value1`.
6881 @frozen public enum Value1Payload: String, Codable, Hashable, Sendable, CaseIterable {
6882 case v1 = "V1"
6883 case v2 = "V2"
6884 }
6885 /// - Remark: Generated from `#/components/schemas/SubscriptionStatusUrlVersion/value1`.
6886 public var value1: Components.Schemas.SubscriptionStatusUrlVersion.Value1Payload?
6887 /// - Remark: Generated from `#/components/schemas/SubscriptionStatusUrlVersion/value2`.
6888 public var value2: Swift.String?
6889 /// Creates a new `SubscriptionStatusUrlVersion`.
6890 ///
6891 /// - Parameters:
6892 /// - value1:
6893 /// - value2:
6894 public init(
6895 value1: Components.Schemas.SubscriptionStatusUrlVersion.Value1Payload? = nil,
6896 value2: Swift.String? = nil
6897 ) {
6898 self.value1 = value1
6899 self.value2 = value2
6900 }
6901 public init(from decoder: any Decoder) throws {
6902 var errors: [any Error] = []
6903 do {
6904 self.value1 = try decoder.decodeFromSingleValueContainer()
6905 } catch {
6906 errors.append(error)
6907 }
6908 do {
6909 self.value2 = try decoder.decodeFromSingleValueContainer()
6910 } catch {
6911 errors.append(error)
6912 }
6913 try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
6914 [
6915 self.value1,
6916 self.value2
6917 ],
6918 type: Self.self,
6919 codingPath: decoder.codingPath,
6920 errors: errors
6921 )
6922 }
6923 public func encode(to encoder: any Encoder) throws {
6924 try encoder.encodeFirstNonNilValueToSingleValueContainer([
6925 self.value1,
6926 self.value2
6927 ])
6928 }
6929 }
6930 }
6931 /// Types generated from the `#/components/parameters` section of the OpenAPI document.
6932 public enum Parameters {}
6933 /// Types generated from the `#/components/requestBodies` section of the OpenAPI document.
6934 public enum RequestBodies {}
6935 /// Types generated from the `#/components/responses` section of the OpenAPI document.
6936 public enum Responses {}
6937 /// Types generated from the `#/components/headers` section of the OpenAPI document.
6938 public enum Headers {}
6939}
6940
6941/// API operations, with input and output types, generated from `#/paths` in the OpenAPI document.
6942public enum Operations {
6943 /// - Remark: HTTP `POST /v1/bundleIdCapabilities`.
6944 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)`.
6945 public enum BundleIdCapabilitiesCreateInstance {
6946 public static let id: Swift.String = "bundleIdCapabilities_createInstance"
6947 public struct Input: Sendable, Hashable {
6948 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/header`.
6949 public struct Headers: Sendable, Hashable {
6950 public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdCapabilitiesCreateInstance.AcceptableContentType>]
6951 /// Creates a new `Headers`.
6952 ///
6953 /// - Parameters:
6954 /// - accept:
6955 public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdCapabilitiesCreateInstance.AcceptableContentType>] = .defaultValues()) {
6956 self.accept = accept
6957 }
6958 }
6959 public var headers: Operations.BundleIdCapabilitiesCreateInstance.Input.Headers
6960 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/requestBody`.
6961 @frozen public enum Body: Sendable, Hashable {
6962 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/requestBody/content/application\/json`.
6963 case json(Components.Schemas.BundleIdCapabilityCreateRequest)
6964 }
6965 public var body: Operations.BundleIdCapabilitiesCreateInstance.Input.Body
6966 /// Creates a new `Input`.
6967 ///
6968 /// - Parameters:
6969 /// - headers:
6970 /// - body:
6971 public init(
6972 headers: Operations.BundleIdCapabilitiesCreateInstance.Input.Headers = .init(),
6973 body: Operations.BundleIdCapabilitiesCreateInstance.Input.Body
6974 ) {
6975 self.headers = headers
6976 self.body = body
6977 }
6978 }
6979 @frozen public enum Output: Sendable, Hashable {
6980 public struct Created: Sendable, Hashable {
6981 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content`.
6982 @frozen public enum Body: Sendable, Hashable {
6983 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content/application\/json`.
6984 case json(Components.Schemas.BundleIdCapabilityResponse)
6985 /// The associated value of the enum case if `self` is `.json`.
6986 ///
6987 /// - Throws: An error if `self` is not `.json`.
6988 /// - SeeAlso: `.json`.
6989 public var json: Components.Schemas.BundleIdCapabilityResponse {
6990 get throws {
6991 switch self {
6992 case let .json(body):
6993 return body
6994 }
6995 }
6996 }
6997 }
6998 /// Received HTTP response body
6999 public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body
7000 /// Creates a new `Created`.
7001 ///
7002 /// - Parameters:
7003 /// - body: Received HTTP response body
7004 public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body) {
7005 self.body = body
7006 }
7007 }
7008 /// Single BundleIdCapability
7009 ///
7010 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/201`.
7011 ///
7012 /// HTTP response code: `201 created`.
7013 case created(Operations.BundleIdCapabilitiesCreateInstance.Output.Created)
7014 /// The associated value of the enum case if `self` is `.created`.
7015 ///
7016 /// - Throws: An error if `self` is not `.created`.
7017 /// - SeeAlso: `.created`.
7018 public var created: Operations.BundleIdCapabilitiesCreateInstance.Output.Created {
7019 get throws {
7020 switch self {
7021 case let .created(response):
7022 return response
7023 default:
7024 try throwUnexpectedResponseStatus(
7025 expectedStatus: "created",
7026 response: self
7027 )
7028 }
7029 }
7030 }
7031 public struct BadRequest: Sendable, Hashable {
7032 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/400/content`.
7033 @frozen public enum Body: Sendable, Hashable {
7034 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/400/content/application\/json`.
7035 case json(Components.Schemas.ErrorResponse)
7036 /// The associated value of the enum case if `self` is `.json`.
7037 ///
7038 /// - Throws: An error if `self` is not `.json`.
7039 /// - SeeAlso: `.json`.
7040 public var json: Components.Schemas.ErrorResponse {
7041 get throws {
7042 switch self {
7043 case let .json(body):
7044 return body
7045 }
7046 }
7047 }
7048 }
7049 /// Received HTTP response body
7050 public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest.Body
7051 /// Creates a new `BadRequest`.
7052 ///
7053 /// - Parameters:
7054 /// - body: Received HTTP response body
7055 public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest.Body) {
7056 self.body = body
7057 }
7058 }
7059 /// Parameter error(s)
7060 ///
7061 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/400`.
7062 ///
7063 /// HTTP response code: `400 badRequest`.
7064 case badRequest(Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest)
7065 /// The associated value of the enum case if `self` is `.badRequest`.
7066 ///
7067 /// - Throws: An error if `self` is not `.badRequest`.
7068 /// - SeeAlso: `.badRequest`.
7069 public var badRequest: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest {
7070 get throws {
7071 switch self {
7072 case let .badRequest(response):
7073 return response
7074 default:
7075 try throwUnexpectedResponseStatus(
7076 expectedStatus: "badRequest",
7077 response: self
7078 )
7079 }
7080 }
7081 }
7082 public struct Unauthorized: Sendable, Hashable {
7083 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/401/content`.
7084 @frozen public enum Body: Sendable, Hashable {
7085 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/401/content/application\/json`.
7086 case json(Components.Schemas.ErrorResponse)
7087 /// The associated value of the enum case if `self` is `.json`.
7088 ///
7089 /// - Throws: An error if `self` is not `.json`.
7090 /// - SeeAlso: `.json`.
7091 public var json: Components.Schemas.ErrorResponse {
7092 get throws {
7093 switch self {
7094 case let .json(body):
7095 return body
7096 }
7097 }
7098 }
7099 }
7100 /// Received HTTP response body
7101 public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized.Body
7102 /// Creates a new `Unauthorized`.
7103 ///
7104 /// - Parameters:
7105 /// - body: Received HTTP response body
7106 public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized.Body) {
7107 self.body = body
7108 }
7109 }
7110 /// Unauthorized error(s)
7111 ///
7112 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/401`.
7113 ///
7114 /// HTTP response code: `401 unauthorized`.
7115 case unauthorized(Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized)
7116 /// The associated value of the enum case if `self` is `.unauthorized`.
7117 ///
7118 /// - Throws: An error if `self` is not `.unauthorized`.
7119 /// - SeeAlso: `.unauthorized`.
7120 public var unauthorized: Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized {
7121 get throws {
7122 switch self {
7123 case let .unauthorized(response):
7124 return response
7125 default:
7126 try throwUnexpectedResponseStatus(
7127 expectedStatus: "unauthorized",
7128 response: self
7129 )
7130 }
7131 }
7132 }
7133 public struct Forbidden: Sendable, Hashable {
7134 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/403/content`.
7135 @frozen public enum Body: Sendable, Hashable {
7136 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/403/content/application\/json`.
7137 case json(Components.Schemas.ErrorResponse)
7138 /// The associated value of the enum case if `self` is `.json`.
7139 ///
7140 /// - Throws: An error if `self` is not `.json`.
7141 /// - SeeAlso: `.json`.
7142 public var json: Components.Schemas.ErrorResponse {
7143 get throws {
7144 switch self {
7145 case let .json(body):
7146 return body
7147 }
7148 }
7149 }
7150 }
7151 /// Received HTTP response body
7152 public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden.Body
7153 /// Creates a new `Forbidden`.
7154 ///
7155 /// - Parameters:
7156 /// - body: Received HTTP response body
7157 public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden.Body) {
7158 self.body = body
7159 }
7160 }
7161 /// Forbidden error
7162 ///
7163 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/403`.
7164 ///
7165 /// HTTP response code: `403 forbidden`.
7166 case forbidden(Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden)
7167 /// The associated value of the enum case if `self` is `.forbidden`.
7168 ///
7169 /// - Throws: An error if `self` is not `.forbidden`.
7170 /// - SeeAlso: `.forbidden`.
7171 public var forbidden: Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden {
7172 get throws {
7173 switch self {
7174 case let .forbidden(response):
7175 return response
7176 default:
7177 try throwUnexpectedResponseStatus(
7178 expectedStatus: "forbidden",
7179 response: self
7180 )
7181 }
7182 }
7183 }
7184 public struct Conflict: Sendable, Hashable {
7185 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content`.
7186 @frozen public enum Body: Sendable, Hashable {
7187 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content/application\/json`.
7188 case json(Components.Schemas.ErrorResponse)
7189 /// The associated value of the enum case if `self` is `.json`.
7190 ///
7191 /// - Throws: An error if `self` is not `.json`.
7192 /// - SeeAlso: `.json`.
7193 public var json: Components.Schemas.ErrorResponse {
7194 get throws {
7195 switch self {
7196 case let .json(body):
7197 return body
7198 }
7199 }
7200 }
7201 }
7202 /// Received HTTP response body
7203 public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body
7204 /// Creates a new `Conflict`.
7205 ///
7206 /// - Parameters:
7207 /// - body: Received HTTP response body
7208 public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body) {
7209 self.body = body
7210 }
7211 }
7212 /// Request entity error(s)
7213 ///
7214 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/409`.
7215 ///
7216 /// HTTP response code: `409 conflict`.
7217 case conflict(Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict)
7218 /// The associated value of the enum case if `self` is `.conflict`.
7219 ///
7220 /// - Throws: An error if `self` is not `.conflict`.
7221 /// - SeeAlso: `.conflict`.
7222 public var conflict: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict {
7223 get throws {
7224 switch self {
7225 case let .conflict(response):
7226 return response
7227 default:
7228 try throwUnexpectedResponseStatus(
7229 expectedStatus: "conflict",
7230 response: self
7231 )
7232 }
7233 }
7234 }
7235 public struct UnprocessableContent: Sendable, Hashable {
7236 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content`.
7237 @frozen public enum Body: Sendable, Hashable {
7238 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content/application\/json`.
7239 case json(Components.Schemas.ErrorResponse)
7240 /// The associated value of the enum case if `self` is `.json`.
7241 ///
7242 /// - Throws: An error if `self` is not `.json`.
7243 /// - SeeAlso: `.json`.
7244 public var json: Components.Schemas.ErrorResponse {
7245 get throws {
7246 switch self {
7247 case let .json(body):
7248 return body
7249 }
7250 }
7251 }
7252 }
7253 /// Received HTTP response body
7254 public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body
7255 /// Creates a new `UnprocessableContent`.
7256 ///
7257 /// - Parameters:
7258 /// - body: Received HTTP response body
7259 public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body) {
7260 self.body = body
7261 }
7262 }
7263 /// Unprocessable request entity error(s)
7264 ///
7265 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/422`.
7266 ///
7267 /// HTTP response code: `422 unprocessableContent`.
7268 case unprocessableContent(Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent)
7269 /// The associated value of the enum case if `self` is `.unprocessableContent`.
7270 ///
7271 /// - Throws: An error if `self` is not `.unprocessableContent`.
7272 /// - SeeAlso: `.unprocessableContent`.
7273 public var unprocessableContent: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent {
7274 get throws {
7275 switch self {
7276 case let .unprocessableContent(response):
7277 return response
7278 default:
7279 try throwUnexpectedResponseStatus(
7280 expectedStatus: "unprocessableContent",
7281 response: self
7282 )
7283 }
7284 }
7285 }
7286 public struct TooManyRequests: Sendable, Hashable {
7287 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/429/content`.
7288 @frozen public enum Body: Sendable, Hashable {
7289 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/429/content/application\/json`.
7290 case json(Components.Schemas.ErrorResponse)
7291 /// The associated value of the enum case if `self` is `.json`.
7292 ///
7293 /// - Throws: An error if `self` is not `.json`.
7294 /// - SeeAlso: `.json`.
7295 public var json: Components.Schemas.ErrorResponse {
7296 get throws {
7297 switch self {
7298 case let .json(body):
7299 return body
7300 }
7301 }
7302 }
7303 }
7304 /// Received HTTP response body
7305 public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.TooManyRequests.Body
7306 /// Creates a new `TooManyRequests`.
7307 ///
7308 /// - Parameters:
7309 /// - body: Received HTTP response body
7310 public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.TooManyRequests.Body) {
7311 self.body = body
7312 }
7313 }
7314 /// Rate limit exceeded error
7315 ///
7316 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/429`.
7317 ///
7318 /// HTTP response code: `429 tooManyRequests`.
7319 case tooManyRequests(Operations.BundleIdCapabilitiesCreateInstance.Output.TooManyRequests)
7320 /// The associated value of the enum case if `self` is `.tooManyRequests`.
7321 ///
7322 /// - Throws: An error if `self` is not `.tooManyRequests`.
7323 /// - SeeAlso: `.tooManyRequests`.
7324 public var tooManyRequests: Operations.BundleIdCapabilitiesCreateInstance.Output.TooManyRequests {
7325 get throws {
7326 switch self {
7327 case let .tooManyRequests(response):
7328 return response
7329 default:
7330 try throwUnexpectedResponseStatus(
7331 expectedStatus: "tooManyRequests",
7332 response: self
7333 )
7334 }
7335 }
7336 }
7337 /// Undocumented response.
7338 ///
7339 /// A response with a code that is not documented in the OpenAPI document.
7340 case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
7341 }
7342 @frozen public enum AcceptableContentType: AcceptableProtocol {
7343 case json
7344 case other(Swift.String)
7345 public init?(rawValue: Swift.String) {
7346 switch rawValue.lowercased() {
7347 case "application/json":
7348 self = .json
7349 default:
7350 self = .other(rawValue)
7351 }
7352 }
7353 public var rawValue: Swift.String {
7354 switch self {
7355 case let .other(string):
7356 return string
7357 case .json:
7358 return "application/json"
7359 }
7360 }
7361 public static var allCases: [Self] {
7362 [
7363 .json
7364 ]
7365 }
7366 }
7367 }
7368 /// - Remark: HTTP `PATCH /v1/bundleIdCapabilities/{id}`.
7369 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)`.
7370 public enum BundleIdCapabilitiesUpdateInstance {
7371 public static let id: Swift.String = "bundleIdCapabilities_updateInstance"
7372 public struct Input: Sendable, Hashable {
7373 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/path`.
7374 public struct Path: Sendable, Hashable {
7375 /// the id of the requested resource
7376 ///
7377 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/path/id`.
7378 public var id: Swift.String
7379 /// Creates a new `Path`.
7380 ///
7381 /// - Parameters:
7382 /// - id: the id of the requested resource
7383 public init(id: Swift.String) {
7384 self.id = id
7385 }
7386 }
7387 public var path: Operations.BundleIdCapabilitiesUpdateInstance.Input.Path
7388 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/header`.
7389 public struct Headers: Sendable, Hashable {
7390 public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdCapabilitiesUpdateInstance.AcceptableContentType>]
7391 /// Creates a new `Headers`.
7392 ///
7393 /// - Parameters:
7394 /// - accept:
7395 public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdCapabilitiesUpdateInstance.AcceptableContentType>] = .defaultValues()) {
7396 self.accept = accept
7397 }
7398 }
7399 public var headers: Operations.BundleIdCapabilitiesUpdateInstance.Input.Headers
7400 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/requestBody`.
7401 @frozen public enum Body: Sendable, Hashable {
7402 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/requestBody/content/application\/json`.
7403 case json(Components.Schemas.BundleIdCapabilityUpdateRequest)
7404 }
7405 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Input.Body
7406 /// Creates a new `Input`.
7407 ///
7408 /// - Parameters:
7409 /// - path:
7410 /// - headers:
7411 /// - body:
7412 public init(
7413 path: Operations.BundleIdCapabilitiesUpdateInstance.Input.Path,
7414 headers: Operations.BundleIdCapabilitiesUpdateInstance.Input.Headers = .init(),
7415 body: Operations.BundleIdCapabilitiesUpdateInstance.Input.Body
7416 ) {
7417 self.path = path
7418 self.headers = headers
7419 self.body = body
7420 }
7421 }
7422 @frozen public enum Output: Sendable, Hashable {
7423 public struct Ok: Sendable, Hashable {
7424 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content`.
7425 @frozen public enum Body: Sendable, Hashable {
7426 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content/application\/json`.
7427 case json(Components.Schemas.BundleIdCapabilityResponse)
7428 /// The associated value of the enum case if `self` is `.json`.
7429 ///
7430 /// - Throws: An error if `self` is not `.json`.
7431 /// - SeeAlso: `.json`.
7432 public var json: Components.Schemas.BundleIdCapabilityResponse {
7433 get throws {
7434 switch self {
7435 case let .json(body):
7436 return body
7437 }
7438 }
7439 }
7440 }
7441 /// Received HTTP response body
7442 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body
7443 /// Creates a new `Ok`.
7444 ///
7445 /// - Parameters:
7446 /// - body: Received HTTP response body
7447 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body) {
7448 self.body = body
7449 }
7450 }
7451 /// Single BundleIdCapability
7452 ///
7453 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/200`.
7454 ///
7455 /// HTTP response code: `200 ok`.
7456 case ok(Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok)
7457 /// The associated value of the enum case if `self` is `.ok`.
7458 ///
7459 /// - Throws: An error if `self` is not `.ok`.
7460 /// - SeeAlso: `.ok`.
7461 public var ok: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok {
7462 get throws {
7463 switch self {
7464 case let .ok(response):
7465 return response
7466 default:
7467 try throwUnexpectedResponseStatus(
7468 expectedStatus: "ok",
7469 response: self
7470 )
7471 }
7472 }
7473 }
7474 public struct BadRequest: Sendable, Hashable {
7475 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/400/content`.
7476 @frozen public enum Body: Sendable, Hashable {
7477 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/400/content/application\/json`.
7478 case json(Components.Schemas.ErrorResponse)
7479 /// The associated value of the enum case if `self` is `.json`.
7480 ///
7481 /// - Throws: An error if `self` is not `.json`.
7482 /// - SeeAlso: `.json`.
7483 public var json: Components.Schemas.ErrorResponse {
7484 get throws {
7485 switch self {
7486 case let .json(body):
7487 return body
7488 }
7489 }
7490 }
7491 }
7492 /// Received HTTP response body
7493 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest.Body
7494 /// Creates a new `BadRequest`.
7495 ///
7496 /// - Parameters:
7497 /// - body: Received HTTP response body
7498 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest.Body) {
7499 self.body = body
7500 }
7501 }
7502 /// Parameter error(s)
7503 ///
7504 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/400`.
7505 ///
7506 /// HTTP response code: `400 badRequest`.
7507 case badRequest(Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest)
7508 /// The associated value of the enum case if `self` is `.badRequest`.
7509 ///
7510 /// - Throws: An error if `self` is not `.badRequest`.
7511 /// - SeeAlso: `.badRequest`.
7512 public var badRequest: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest {
7513 get throws {
7514 switch self {
7515 case let .badRequest(response):
7516 return response
7517 default:
7518 try throwUnexpectedResponseStatus(
7519 expectedStatus: "badRequest",
7520 response: self
7521 )
7522 }
7523 }
7524 }
7525 public struct Unauthorized: Sendable, Hashable {
7526 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/401/content`.
7527 @frozen public enum Body: Sendable, Hashable {
7528 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/401/content/application\/json`.
7529 case json(Components.Schemas.ErrorResponse)
7530 /// The associated value of the enum case if `self` is `.json`.
7531 ///
7532 /// - Throws: An error if `self` is not `.json`.
7533 /// - SeeAlso: `.json`.
7534 public var json: Components.Schemas.ErrorResponse {
7535 get throws {
7536 switch self {
7537 case let .json(body):
7538 return body
7539 }
7540 }
7541 }
7542 }
7543 /// Received HTTP response body
7544 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized.Body
7545 /// Creates a new `Unauthorized`.
7546 ///
7547 /// - Parameters:
7548 /// - body: Received HTTP response body
7549 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized.Body) {
7550 self.body = body
7551 }
7552 }
7553 /// Unauthorized error(s)
7554 ///
7555 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/401`.
7556 ///
7557 /// HTTP response code: `401 unauthorized`.
7558 case unauthorized(Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized)
7559 /// The associated value of the enum case if `self` is `.unauthorized`.
7560 ///
7561 /// - Throws: An error if `self` is not `.unauthorized`.
7562 /// - SeeAlso: `.unauthorized`.
7563 public var unauthorized: Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized {
7564 get throws {
7565 switch self {
7566 case let .unauthorized(response):
7567 return response
7568 default:
7569 try throwUnexpectedResponseStatus(
7570 expectedStatus: "unauthorized",
7571 response: self
7572 )
7573 }
7574 }
7575 }
7576 public struct Forbidden: Sendable, Hashable {
7577 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/403/content`.
7578 @frozen public enum Body: Sendable, Hashable {
7579 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/403/content/application\/json`.
7580 case json(Components.Schemas.ErrorResponse)
7581 /// The associated value of the enum case if `self` is `.json`.
7582 ///
7583 /// - Throws: An error if `self` is not `.json`.
7584 /// - SeeAlso: `.json`.
7585 public var json: Components.Schemas.ErrorResponse {
7586 get throws {
7587 switch self {
7588 case let .json(body):
7589 return body
7590 }
7591 }
7592 }
7593 }
7594 /// Received HTTP response body
7595 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden.Body
7596 /// Creates a new `Forbidden`.
7597 ///
7598 /// - Parameters:
7599 /// - body: Received HTTP response body
7600 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden.Body) {
7601 self.body = body
7602 }
7603 }
7604 /// Forbidden error
7605 ///
7606 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/403`.
7607 ///
7608 /// HTTP response code: `403 forbidden`.
7609 case forbidden(Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden)
7610 /// The associated value of the enum case if `self` is `.forbidden`.
7611 ///
7612 /// - Throws: An error if `self` is not `.forbidden`.
7613 /// - SeeAlso: `.forbidden`.
7614 public var forbidden: Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden {
7615 get throws {
7616 switch self {
7617 case let .forbidden(response):
7618 return response
7619 default:
7620 try throwUnexpectedResponseStatus(
7621 expectedStatus: "forbidden",
7622 response: self
7623 )
7624 }
7625 }
7626 }
7627 public struct NotFound: Sendable, Hashable {
7628 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/404/content`.
7629 @frozen public enum Body: Sendable, Hashable {
7630 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/404/content/application\/json`.
7631 case json(Components.Schemas.ErrorResponse)
7632 /// The associated value of the enum case if `self` is `.json`.
7633 ///
7634 /// - Throws: An error if `self` is not `.json`.
7635 /// - SeeAlso: `.json`.
7636 public var json: Components.Schemas.ErrorResponse {
7637 get throws {
7638 switch self {
7639 case let .json(body):
7640 return body
7641 }
7642 }
7643 }
7644 }
7645 /// Received HTTP response body
7646 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound.Body
7647 /// Creates a new `NotFound`.
7648 ///
7649 /// - Parameters:
7650 /// - body: Received HTTP response body
7651 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound.Body) {
7652 self.body = body
7653 }
7654 }
7655 /// Not found error
7656 ///
7657 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/404`.
7658 ///
7659 /// HTTP response code: `404 notFound`.
7660 case notFound(Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound)
7661 /// The associated value of the enum case if `self` is `.notFound`.
7662 ///
7663 /// - Throws: An error if `self` is not `.notFound`.
7664 /// - SeeAlso: `.notFound`.
7665 public var notFound: Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound {
7666 get throws {
7667 switch self {
7668 case let .notFound(response):
7669 return response
7670 default:
7671 try throwUnexpectedResponseStatus(
7672 expectedStatus: "notFound",
7673 response: self
7674 )
7675 }
7676 }
7677 }
7678 public struct Conflict: Sendable, Hashable {
7679 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content`.
7680 @frozen public enum Body: Sendable, Hashable {
7681 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content/application\/json`.
7682 case json(Components.Schemas.ErrorResponse)
7683 /// The associated value of the enum case if `self` is `.json`.
7684 ///
7685 /// - Throws: An error if `self` is not `.json`.
7686 /// - SeeAlso: `.json`.
7687 public var json: Components.Schemas.ErrorResponse {
7688 get throws {
7689 switch self {
7690 case let .json(body):
7691 return body
7692 }
7693 }
7694 }
7695 }
7696 /// Received HTTP response body
7697 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body
7698 /// Creates a new `Conflict`.
7699 ///
7700 /// - Parameters:
7701 /// - body: Received HTTP response body
7702 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body) {
7703 self.body = body
7704 }
7705 }
7706 /// Request entity error(s)
7707 ///
7708 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/409`.
7709 ///
7710 /// HTTP response code: `409 conflict`.
7711 case conflict(Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict)
7712 /// The associated value of the enum case if `self` is `.conflict`.
7713 ///
7714 /// - Throws: An error if `self` is not `.conflict`.
7715 /// - SeeAlso: `.conflict`.
7716 public var conflict: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict {
7717 get throws {
7718 switch self {
7719 case let .conflict(response):
7720 return response
7721 default:
7722 try throwUnexpectedResponseStatus(
7723 expectedStatus: "conflict",
7724 response: self
7725 )
7726 }
7727 }
7728 }
7729 public struct UnprocessableContent: Sendable, Hashable {
7730 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content`.
7731 @frozen public enum Body: Sendable, Hashable {
7732 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content/application\/json`.
7733 case json(Components.Schemas.ErrorResponse)
7734 /// The associated value of the enum case if `self` is `.json`.
7735 ///
7736 /// - Throws: An error if `self` is not `.json`.
7737 /// - SeeAlso: `.json`.
7738 public var json: Components.Schemas.ErrorResponse {
7739 get throws {
7740 switch self {
7741 case let .json(body):
7742 return body
7743 }
7744 }
7745 }
7746 }
7747 /// Received HTTP response body
7748 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body
7749 /// Creates a new `UnprocessableContent`.
7750 ///
7751 /// - Parameters:
7752 /// - body: Received HTTP response body
7753 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body) {
7754 self.body = body
7755 }
7756 }
7757 /// Unprocessable request entity error(s)
7758 ///
7759 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/422`.
7760 ///
7761 /// HTTP response code: `422 unprocessableContent`.
7762 case unprocessableContent(Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent)
7763 /// The associated value of the enum case if `self` is `.unprocessableContent`.
7764 ///
7765 /// - Throws: An error if `self` is not `.unprocessableContent`.
7766 /// - SeeAlso: `.unprocessableContent`.
7767 public var unprocessableContent: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent {
7768 get throws {
7769 switch self {
7770 case let .unprocessableContent(response):
7771 return response
7772 default:
7773 try throwUnexpectedResponseStatus(
7774 expectedStatus: "unprocessableContent",
7775 response: self
7776 )
7777 }
7778 }
7779 }
7780 public struct TooManyRequests: Sendable, Hashable {
7781 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/429/content`.
7782 @frozen public enum Body: Sendable, Hashable {
7783 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/429/content/application\/json`.
7784 case json(Components.Schemas.ErrorResponse)
7785 /// The associated value of the enum case if `self` is `.json`.
7786 ///
7787 /// - Throws: An error if `self` is not `.json`.
7788 /// - SeeAlso: `.json`.
7789 public var json: Components.Schemas.ErrorResponse {
7790 get throws {
7791 switch self {
7792 case let .json(body):
7793 return body
7794 }
7795 }
7796 }
7797 }
7798 /// Received HTTP response body
7799 public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.TooManyRequests.Body
7800 /// Creates a new `TooManyRequests`.
7801 ///
7802 /// - Parameters:
7803 /// - body: Received HTTP response body
7804 public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.TooManyRequests.Body) {
7805 self.body = body
7806 }
7807 }
7808 /// Rate limit exceeded error
7809 ///
7810 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/429`.
7811 ///
7812 /// HTTP response code: `429 tooManyRequests`.
7813 case tooManyRequests(Operations.BundleIdCapabilitiesUpdateInstance.Output.TooManyRequests)
7814 /// The associated value of the enum case if `self` is `.tooManyRequests`.
7815 ///
7816 /// - Throws: An error if `self` is not `.tooManyRequests`.
7817 /// - SeeAlso: `.tooManyRequests`.
7818 public var tooManyRequests: Operations.BundleIdCapabilitiesUpdateInstance.Output.TooManyRequests {
7819 get throws {
7820 switch self {
7821 case let .tooManyRequests(response):
7822 return response
7823 default:
7824 try throwUnexpectedResponseStatus(
7825 expectedStatus: "tooManyRequests",
7826 response: self
7827 )
7828 }
7829 }
7830 }
7831 /// Undocumented response.
7832 ///
7833 /// A response with a code that is not documented in the OpenAPI document.
7834 case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
7835 }
7836 @frozen public enum AcceptableContentType: AcceptableProtocol {
7837 case json
7838 case other(Swift.String)
7839 public init?(rawValue: Swift.String) {
7840 switch rawValue.lowercased() {
7841 case "application/json":
7842 self = .json
7843 default:
7844 self = .other(rawValue)
7845 }
7846 }
7847 public var rawValue: Swift.String {
7848 switch self {
7849 case let .other(string):
7850 return string
7851 case .json:
7852 return "application/json"
7853 }
7854 }
7855 public static var allCases: [Self] {
7856 [
7857 .json
7858 ]
7859 }
7860 }
7861 }
7862 /// - Remark: HTTP `DELETE /v1/bundleIdCapabilities/{id}`.
7863 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)`.
7864 public enum BundleIdCapabilitiesDeleteInstance {
7865 public static let id: Swift.String = "bundleIdCapabilities_deleteInstance"
7866 public struct Input: Sendable, Hashable {
7867 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/path`.
7868 public struct Path: Sendable, Hashable {
7869 /// the id of the requested resource
7870 ///
7871 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/path/id`.
7872 public var id: Swift.String
7873 /// Creates a new `Path`.
7874 ///
7875 /// - Parameters:
7876 /// - id: the id of the requested resource
7877 public init(id: Swift.String) {
7878 self.id = id
7879 }
7880 }
7881 public var path: Operations.BundleIdCapabilitiesDeleteInstance.Input.Path
7882 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/header`.
7883 public struct Headers: Sendable, Hashable {
7884 public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdCapabilitiesDeleteInstance.AcceptableContentType>]
7885 /// Creates a new `Headers`.
7886 ///
7887 /// - Parameters:
7888 /// - accept:
7889 public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdCapabilitiesDeleteInstance.AcceptableContentType>] = .defaultValues()) {
7890 self.accept = accept
7891 }
7892 }
7893 public var headers: Operations.BundleIdCapabilitiesDeleteInstance.Input.Headers
7894 /// Creates a new `Input`.
7895 ///
7896 /// - Parameters:
7897 /// - path:
7898 /// - headers:
7899 public init(
7900 path: Operations.BundleIdCapabilitiesDeleteInstance.Input.Path,
7901 headers: Operations.BundleIdCapabilitiesDeleteInstance.Input.Headers = .init()
7902 ) {
7903 self.path = path
7904 self.headers = headers
7905 }
7906 }
7907 @frozen public enum Output: Sendable, Hashable {
7908 public struct NoContent: Sendable, Hashable {
7909 /// Creates a new `NoContent`.
7910 public init() {}
7911 }
7912 /// Success (no content)
7913 ///
7914 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/204`.
7915 ///
7916 /// HTTP response code: `204 noContent`.
7917 case noContent(Operations.BundleIdCapabilitiesDeleteInstance.Output.NoContent)
7918 /// Success (no content)
7919 ///
7920 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/204`.
7921 ///
7922 /// HTTP response code: `204 noContent`.
7923 public static var noContent: Self {
7924 .noContent(.init())
7925 }
7926 /// The associated value of the enum case if `self` is `.noContent`.
7927 ///
7928 /// - Throws: An error if `self` is not `.noContent`.
7929 /// - SeeAlso: `.noContent`.
7930 public var noContent: Operations.BundleIdCapabilitiesDeleteInstance.Output.NoContent {
7931 get throws {
7932 switch self {
7933 case let .noContent(response):
7934 return response
7935 default:
7936 try throwUnexpectedResponseStatus(
7937 expectedStatus: "noContent",
7938 response: self
7939 )
7940 }
7941 }
7942 }
7943 public struct BadRequest: Sendable, Hashable {
7944 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/400/content`.
7945 @frozen public enum Body: Sendable, Hashable {
7946 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/400/content/application\/json`.
7947 case json(Components.Schemas.ErrorResponse)
7948 /// The associated value of the enum case if `self` is `.json`.
7949 ///
7950 /// - Throws: An error if `self` is not `.json`.
7951 /// - SeeAlso: `.json`.
7952 public var json: Components.Schemas.ErrorResponse {
7953 get throws {
7954 switch self {
7955 case let .json(body):
7956 return body
7957 }
7958 }
7959 }
7960 }
7961 /// Received HTTP response body
7962 public var body: Operations.BundleIdCapabilitiesDeleteInstance.Output.BadRequest.Body
7963 /// Creates a new `BadRequest`.
7964 ///
7965 /// - Parameters:
7966 /// - body: Received HTTP response body
7967 public init(body: Operations.BundleIdCapabilitiesDeleteInstance.Output.BadRequest.Body) {
7968 self.body = body
7969 }
7970 }
7971 /// Parameter error(s)
7972 ///
7973 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/400`.
7974 ///
7975 /// HTTP response code: `400 badRequest`.
7976 case badRequest(Operations.BundleIdCapabilitiesDeleteInstance.Output.BadRequest)
7977 /// The associated value of the enum case if `self` is `.badRequest`.
7978 ///
7979 /// - Throws: An error if `self` is not `.badRequest`.
7980 /// - SeeAlso: `.badRequest`.
7981 public var badRequest: Operations.BundleIdCapabilitiesDeleteInstance.Output.BadRequest {
7982 get throws {
7983 switch self {
7984 case let .badRequest(response):
7985 return response
7986 default:
7987 try throwUnexpectedResponseStatus(
7988 expectedStatus: "badRequest",
7989 response: self
7990 )
7991 }
7992 }
7993 }
7994 public struct Unauthorized: Sendable, Hashable {
7995 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/401/content`.
7996 @frozen public enum Body: Sendable, Hashable {
7997 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/401/content/application\/json`.
7998 case json(Components.Schemas.ErrorResponse)
7999 /// The associated value of the enum case if `self` is `.json`.
8000 ///
8001 /// - Throws: An error if `self` is not `.json`.
8002 /// - SeeAlso: `.json`.
8003 public var json: Components.Schemas.ErrorResponse {
8004 get throws {
8005 switch self {
8006 case let .json(body):
8007 return body
8008 }
8009 }
8010 }
8011 }
8012 /// Received HTTP response body
8013 public var body: Operations.BundleIdCapabilitiesDeleteInstance.Output.Unauthorized.Body
8014 /// Creates a new `Unauthorized`.
8015 ///
8016 /// - Parameters:
8017 /// - body: Received HTTP response body
8018 public init(body: Operations.BundleIdCapabilitiesDeleteInstance.Output.Unauthorized.Body) {
8019 self.body = body
8020 }
8021 }
8022 /// Unauthorized error(s)
8023 ///
8024 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/401`.
8025 ///
8026 /// HTTP response code: `401 unauthorized`.
8027 case unauthorized(Operations.BundleIdCapabilitiesDeleteInstance.Output.Unauthorized)
8028 /// The associated value of the enum case if `self` is `.unauthorized`.
8029 ///
8030 /// - Throws: An error if `self` is not `.unauthorized`.
8031 /// - SeeAlso: `.unauthorized`.
8032 public var unauthorized: Operations.BundleIdCapabilitiesDeleteInstance.Output.Unauthorized {
8033 get throws {
8034 switch self {
8035 case let .unauthorized(response):
8036 return response
8037 default:
8038 try throwUnexpectedResponseStatus(
8039 expectedStatus: "unauthorized",
8040 response: self
8041 )
8042 }
8043 }
8044 }
8045 public struct Forbidden: Sendable, Hashable {
8046 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/403/content`.
8047 @frozen public enum Body: Sendable, Hashable {
8048 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/403/content/application\/json`.
8049 case json(Components.Schemas.ErrorResponse)
8050 /// The associated value of the enum case if `self` is `.json`.
8051 ///
8052 /// - Throws: An error if `self` is not `.json`.
8053 /// - SeeAlso: `.json`.
8054 public var json: Components.Schemas.ErrorResponse {
8055 get throws {
8056 switch self {
8057 case let .json(body):
8058 return body
8059 }
8060 }
8061 }
8062 }
8063 /// Received HTTP response body
8064 public var body: Operations.BundleIdCapabilitiesDeleteInstance.Output.Forbidden.Body
8065 /// Creates a new `Forbidden`.
8066 ///
8067 /// - Parameters:
8068 /// - body: Received HTTP response body
8069 public init(body: Operations.BundleIdCapabilitiesDeleteInstance.Output.Forbidden.Body) {
8070 self.body = body
8071 }
8072 }
8073 /// Forbidden error
8074 ///
8075 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/403`.
8076 ///
8077 /// HTTP response code: `403 forbidden`.
8078 case forbidden(Operations.BundleIdCapabilitiesDeleteInstance.Output.Forbidden)
8079 /// The associated value of the enum case if `self` is `.forbidden`.
8080 ///
8081 /// - Throws: An error if `self` is not `.forbidden`.
8082 /// - SeeAlso: `.forbidden`.
8083 public var forbidden: Operations.BundleIdCapabilitiesDeleteInstance.Output.Forbidden {
8084 get throws {
8085 switch self {
8086 case let .forbidden(response):
8087 return response
8088 default:
8089 try throwUnexpectedResponseStatus(
8090 expectedStatus: "forbidden",
8091 response: self
8092 )
8093 }
8094 }
8095 }
8096 public struct NotFound: Sendable, Hashable {
8097 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/404/content`.
8098 @frozen public enum Body: Sendable, Hashable {
8099 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/404/content/application\/json`.
8100 case json(Components.Schemas.ErrorResponse)
8101 /// The associated value of the enum case if `self` is `.json`.
8102 ///
8103 /// - Throws: An error if `self` is not `.json`.
8104 /// - SeeAlso: `.json`.
8105 public var json: Components.Schemas.ErrorResponse {
8106 get throws {
8107 switch self {
8108 case let .json(body):
8109 return body
8110 }
8111 }
8112 }
8113 }
8114 /// Received HTTP response body
8115 public var body: Operations.BundleIdCapabilitiesDeleteInstance.Output.NotFound.Body
8116 /// Creates a new `NotFound`.
8117 ///
8118 /// - Parameters:
8119 /// - body: Received HTTP response body
8120 public init(body: Operations.BundleIdCapabilitiesDeleteInstance.Output.NotFound.Body) {
8121 self.body = body
8122 }
8123 }
8124 /// Not found error
8125 ///
8126 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/404`.
8127 ///
8128 /// HTTP response code: `404 notFound`.
8129 case notFound(Operations.BundleIdCapabilitiesDeleteInstance.Output.NotFound)
8130 /// The associated value of the enum case if `self` is `.notFound`.
8131 ///
8132 /// - Throws: An error if `self` is not `.notFound`.
8133 /// - SeeAlso: `.notFound`.
8134 public var notFound: Operations.BundleIdCapabilitiesDeleteInstance.Output.NotFound {
8135 get throws {
8136 switch self {
8137 case let .notFound(response):
8138 return response
8139 default:
8140 try throwUnexpectedResponseStatus(
8141 expectedStatus: "notFound",
8142 response: self
8143 )
8144 }
8145 }
8146 }
8147 public struct TooManyRequests: Sendable, Hashable {
8148 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/429/content`.
8149 @frozen public enum Body: Sendable, Hashable {
8150 /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/429/content/application\/json`.
8151 case json(Components.Schemas.ErrorResponse)
8152 /// The associated value of the enum case if `self` is `.json`.
8153 ///
8154 /// - Throws: An error if `self` is not `.json`.
8155 /// - SeeAlso: `.json`.
8156 public var json: Components.Schemas.ErrorResponse {
8157 get throws {
8158 switch self {
8159 case let .json(body):
8160 return body
8161 }
8162 }
8163 }
8164 }
8165 /// Received HTTP response body
8166 public var body: Operations.BundleIdCapabilitiesDeleteInstance.Output.TooManyRequests.Body
8167 /// Creates a new `TooManyRequests`.
8168 ///
8169 /// - Parameters:
8170 /// - body: Received HTTP response body
8171 public init(body: Operations.BundleIdCapabilitiesDeleteInstance.Output.TooManyRequests.Body) {
8172 self.body = body
8173 }
8174 }
8175 /// Rate limit exceeded error
8176 ///
8177 /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/429`.
8178 ///
8179 /// HTTP response code: `429 tooManyRequests`.
8180 case tooManyRequests(Operations.BundleIdCapabilitiesDeleteInstance.Output.TooManyRequests)
8181 /// The associated value of the enum case if `self` is `.tooManyRequests`.
8182 ///
8183 /// - Throws: An error if `self` is not `.tooManyRequests`.
8184 /// - SeeAlso: `.tooManyRequests`.
8185 public var tooManyRequests: Operations.BundleIdCapabilitiesDeleteInstance.Output.TooManyRequests {
8186 get throws {
8187 switch self {
8188 case let .tooManyRequests(response):
8189 return response
8190 default:
8191 try throwUnexpectedResponseStatus(
8192 expectedStatus: "tooManyRequests",
8193 response: self
8194 )
8195 }
8196 }
8197 }
8198 /// Undocumented response.
8199 ///
8200 /// A response with a code that is not documented in the OpenAPI document.
8201 case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
8202 }
8203 @frozen public enum AcceptableContentType: AcceptableProtocol {
8204 case json
8205 case other(Swift.String)
8206 public init?(rawValue: Swift.String) {
8207 switch rawValue.lowercased() {
8208 case "application/json":
8209 self = .json
8210 default:
8211 self = .other(rawValue)
8212 }
8213 }
8214 public var rawValue: Swift.String {
8215 switch self {
8216 case let .other(string):
8217 return string
8218 case .json:
8219 return "application/json"
8220 }
8221 }
8222 public static var allCases: [Self] {
8223 [
8224 .json
8225 ]
8226 }
8227 }
8228 }
8229 /// - Remark: HTTP `GET /v1/bundleIds`.
8230 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)`.
8231 public enum BundleIdsGetCollection {
8232 public static let id: Swift.String = "bundleIds_getCollection"
8233 public struct Input: Sendable, Hashable {
8234 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query`.
8235 public struct Query: Sendable, Hashable {
8236 /// filter by attribute 'name'
8237 ///
8238 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[name]`.
8239 public var filter_lbrack_name_rbrack_: [Swift.String]?
8240 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/Filter_lbrack_platform_rbrack_Payload`.
8241 @frozen public enum FilterLbrackPlatformRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
8242 case ios = "IOS"
8243 case macOs = "MAC_OS"
8244 case universal = "UNIVERSAL"
8245 }
8246 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[platform]`.
8247 public typealias Filter_lbrack_platform_rbrack_Payload = [Operations.BundleIdsGetCollection.Input.Query.FilterLbrackPlatformRbrackPayloadPayload]
8248 /// filter by attribute 'platform'
8249 ///
8250 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[platform]`.
8251 public var filter_lbrack_platform_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Filter_lbrack_platform_rbrack_Payload?
8252 /// filter by attribute 'identifier'
8253 ///
8254 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[identifier]`.
8255 public var filter_lbrack_identifier_rbrack_: [Swift.String]?
8256 /// filter by attribute 'seedId'
8257 ///
8258 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[seedId]`.
8259 public var filter_lbrack_seedId_rbrack_: [Swift.String]?
8260 /// filter by id(s)
8261 ///
8262 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[id]`.
8263 public var filter_lbrack_id_rbrack_: [Swift.String]?
8264 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/SortPayload`.
8265 @frozen public enum SortPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
8266 case name = "name"
8267 case _hyphen_name = "-name"
8268 case platform = "platform"
8269 case _hyphen_platform = "-platform"
8270 case identifier = "identifier"
8271 case _hyphen_identifier = "-identifier"
8272 case seedId = "seedId"
8273 case _hyphen_seedId = "-seedId"
8274 case id = "id"
8275 case _hyphen_id = "-id"
8276 }
8277 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/sort`.
8278 public typealias SortPayload = [Operations.BundleIdsGetCollection.Input.Query.SortPayloadPayload]
8279 /// comma-separated list of sort expressions; resources will be sorted as specified
8280 ///
8281 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/sort`.
8282 public var sort: Operations.BundleIdsGetCollection.Input.Query.SortPayload?
8283 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/Fields_lbrack_bundleIds_rbrack_Payload`.
8284 @frozen public enum FieldsLbrackBundleIdsRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
8285 case name = "name"
8286 case platform = "platform"
8287 case identifier = "identifier"
8288 case seedId = "seedId"
8289 case profiles = "profiles"
8290 case bundleIdCapabilities = "bundleIdCapabilities"
8291 case app = "app"
8292 }
8293 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIds]`.
8294 public typealias Fields_lbrack_bundleIds_rbrack_Payload = [Operations.BundleIdsGetCollection.Input.Query.FieldsLbrackBundleIdsRbrackPayloadPayload]
8295 /// the fields to include for returned resources of type bundleIds
8296 ///
8297 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIds]`.
8298 public var fields_lbrack_bundleIds_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_bundleIds_rbrack_Payload?
8299 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/Fields_lbrack_profiles_rbrack_Payload`.
8300 @frozen public enum FieldsLbrackProfilesRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
8301 case name = "name"
8302 case platform = "platform"
8303 case profileType = "profileType"
8304 case profileState = "profileState"
8305 case profileContent = "profileContent"
8306 case uuid = "uuid"
8307 case createdDate = "createdDate"
8308 case expirationDate = "expirationDate"
8309 case bundleId = "bundleId"
8310 case devices = "devices"
8311 case certificates = "certificates"
8312 }
8313 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[profiles]`.
8314 public typealias Fields_lbrack_profiles_rbrack_Payload = [Operations.BundleIdsGetCollection.Input.Query.FieldsLbrackProfilesRbrackPayloadPayload]
8315 /// the fields to include for returned resources of type profiles
8316 ///
8317 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[profiles]`.
8318 public var fields_lbrack_profiles_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_profiles_rbrack_Payload?
8319 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/Fields_lbrack_bundleIdCapabilities_rbrack_Payload`.
8320 @frozen public enum FieldsLbrackBundleIdCapabilitiesRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
8321 case capabilityType = "capabilityType"
8322 case settings = "settings"
8323 }
8324 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIdCapabilities]`.
8325 public typealias Fields_lbrack_bundleIdCapabilities_rbrack_Payload = [Operations.BundleIdsGetCollection.Input.Query.FieldsLbrackBundleIdCapabilitiesRbrackPayloadPayload]
8326 /// the fields to include for returned resources of type bundleIdCapabilities
8327 ///
8328 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIdCapabilities]`.
8329 public var fields_lbrack_bundleIdCapabilities_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_bundleIdCapabilities_rbrack_Payload?
8330 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/Fields_lbrack_apps_rbrack_Payload`.
8331 @frozen public enum FieldsLbrackAppsRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
8332 case accessibilityUrl = "accessibilityUrl"
8333 case name = "name"
8334 case bundleId = "bundleId"
8335 case sku = "sku"
8336 case primaryLocale = "primaryLocale"
8337 case isOrEverWasMadeForKids = "isOrEverWasMadeForKids"
8338 case subscriptionStatusUrl = "subscriptionStatusUrl"
8339 case subscriptionStatusUrlVersion = "subscriptionStatusUrlVersion"
8340 case subscriptionStatusUrlForSandbox = "subscriptionStatusUrlForSandbox"
8341 case subscriptionStatusUrlVersionForSandbox = "subscriptionStatusUrlVersionForSandbox"
8342 case contentRightsDeclaration = "contentRightsDeclaration"
8343 case streamlinedPurchasingEnabled = "streamlinedPurchasingEnabled"
8344 case accessibilityDeclarations = "accessibilityDeclarations"
8345 case appEncryptionDeclarations = "appEncryptionDeclarations"
8346 case appStoreIcon = "appStoreIcon"
8347 case ciProduct = "ciProduct"
8348 case betaTesters = "betaTesters"
8349 case betaGroups = "betaGroups"
8350 case appStoreVersions = "appStoreVersions"
8351 case appTags = "appTags"
8352 case preReleaseVersions = "preReleaseVersions"
8353 case betaAppLocalizations = "betaAppLocalizations"
8354 case builds = "builds"
8355 case betaLicenseAgreement = "betaLicenseAgreement"
8356 case betaAppReviewDetail = "betaAppReviewDetail"
8357 case appInfos = "appInfos"
8358 case appClips = "appClips"
8359 case appPricePoints = "appPricePoints"
8360 case endUserLicenseAgreement = "endUserLicenseAgreement"
8361 case appPriceSchedule = "appPriceSchedule"
8362 case appAvailabilityV2 = "appAvailabilityV2"
8363 case inAppPurchases = "inAppPurchases"
8364 case subscriptionGroups = "subscriptionGroups"
8365 case gameCenterEnabledVersions = "gameCenterEnabledVersions"
8366 case perfPowerMetrics = "perfPowerMetrics"
8367 case appCustomProductPages = "appCustomProductPages"
8368 case inAppPurchasesV2 = "inAppPurchasesV2"
8369 case promotedPurchases = "promotedPurchases"
8370 case appEvents = "appEvents"
8371 case reviewSubmissions = "reviewSubmissions"
8372 case subscriptionGracePeriod = "subscriptionGracePeriod"
8373 case customerReviews = "customerReviews"
8374 case customerReviewSummarizations = "customerReviewSummarizations"
8375 case gameCenterDetail = "gameCenterDetail"
8376 case appStoreVersionExperimentsV2 = "appStoreVersionExperimentsV2"
8377 case alternativeDistributionKey = "alternativeDistributionKey"
8378 case analyticsReportRequests = "analyticsReportRequests"
8379 case marketplaceSearchDetail = "marketplaceSearchDetail"
8380 case buildUploads = "buildUploads"
8381 case backgroundAssets = "backgroundAssets"
8382 case betaFeedbackScreenshotSubmissions = "betaFeedbackScreenshotSubmissions"
8383 case betaFeedbackCrashSubmissions = "betaFeedbackCrashSubmissions"
8384 case searchKeywords = "searchKeywords"
8385 case webhooks = "webhooks"
8386 case androidToIosAppMappingDetails = "androidToIosAppMappingDetails"
8387 }
8388 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[apps]`.
8389 public typealias Fields_lbrack_apps_rbrack_Payload = [Operations.BundleIdsGetCollection.Input.Query.FieldsLbrackAppsRbrackPayloadPayload]
8390 /// the fields to include for returned resources of type apps
8391 ///
8392 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[apps]`.
8393 public var fields_lbrack_apps_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_apps_rbrack_Payload?
8394 /// maximum resources per page
8395 ///
8396 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/limit`.
8397 public var limit: Swift.Int?
8398 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/IncludePayload`.
8399 @frozen public enum IncludePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
8400 case profiles = "profiles"
8401 case bundleIdCapabilities = "bundleIdCapabilities"
8402 case app = "app"
8403 }
8404 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/include`.
8405 public typealias IncludePayload = [Operations.BundleIdsGetCollection.Input.Query.IncludePayloadPayload]
8406 /// comma-separated list of relationships to include
8407 ///
8408 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/include`.
8409 public var include: Operations.BundleIdsGetCollection.Input.Query.IncludePayload?
8410 /// maximum number of related bundleIdCapabilities returned (when they are included)
8411 ///
8412 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/limit[bundleIdCapabilities]`.
8413 public var limit_lbrack_bundleIdCapabilities_rbrack_: Swift.Int?
8414 /// maximum number of related profiles returned (when they are included)
8415 ///
8416 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/limit[profiles]`.
8417 public var limit_lbrack_profiles_rbrack_: Swift.Int?
8418 /// Creates a new `Query`.
8419 ///
8420 /// - Parameters:
8421 /// - filter_lbrack_name_rbrack_: filter by attribute 'name'
8422 /// - filter_lbrack_platform_rbrack_: filter by attribute 'platform'
8423 /// - filter_lbrack_identifier_rbrack_: filter by attribute 'identifier'
8424 /// - filter_lbrack_seedId_rbrack_: filter by attribute 'seedId'
8425 /// - filter_lbrack_id_rbrack_: filter by id(s)
8426 /// - sort: comma-separated list of sort expressions; resources will be sorted as specified
8427 /// - fields_lbrack_bundleIds_rbrack_: the fields to include for returned resources of type bundleIds
8428 /// - fields_lbrack_profiles_rbrack_: the fields to include for returned resources of type profiles
8429 /// - fields_lbrack_bundleIdCapabilities_rbrack_: the fields to include for returned resources of type bundleIdCapabilities
8430 /// - fields_lbrack_apps_rbrack_: the fields to include for returned resources of type apps
8431 /// - limit: maximum resources per page
8432 /// - include: comma-separated list of relationships to include
8433 /// - limit_lbrack_bundleIdCapabilities_rbrack_: maximum number of related bundleIdCapabilities returned (when they are included)
8434 /// - limit_lbrack_profiles_rbrack_: maximum number of related profiles returned (when they are included)
8435 public init(
8436 filter_lbrack_name_rbrack_: [Swift.String]? = nil,
8437 filter_lbrack_platform_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Filter_lbrack_platform_rbrack_Payload? = nil,
8438 filter_lbrack_identifier_rbrack_: [Swift.String]? = nil,
8439 filter_lbrack_seedId_rbrack_: [Swift.String]? = nil,
8440 filter_lbrack_id_rbrack_: [Swift.String]? = nil,
8441 sort: Operations.BundleIdsGetCollection.Input.Query.SortPayload? = nil,
8442 fields_lbrack_bundleIds_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_bundleIds_rbrack_Payload? = nil,
8443 fields_lbrack_profiles_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_profiles_rbrack_Payload? = nil,
8444 fields_lbrack_bundleIdCapabilities_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_bundleIdCapabilities_rbrack_Payload? = nil,
8445 fields_lbrack_apps_rbrack_: Operations.BundleIdsGetCollection.Input.Query.Fields_lbrack_apps_rbrack_Payload? = nil,
8446 limit: Swift.Int? = nil,
8447 include: Operations.BundleIdsGetCollection.Input.Query.IncludePayload? = nil,
8448 limit_lbrack_bundleIdCapabilities_rbrack_: Swift.Int? = nil,
8449 limit_lbrack_profiles_rbrack_: Swift.Int? = nil
8450 ) {
8451 self.filter_lbrack_name_rbrack_ = filter_lbrack_name_rbrack_
8452 self.filter_lbrack_platform_rbrack_ = filter_lbrack_platform_rbrack_
8453 self.filter_lbrack_identifier_rbrack_ = filter_lbrack_identifier_rbrack_
8454 self.filter_lbrack_seedId_rbrack_ = filter_lbrack_seedId_rbrack_
8455 self.filter_lbrack_id_rbrack_ = filter_lbrack_id_rbrack_
8456 self.sort = sort
8457 self.fields_lbrack_bundleIds_rbrack_ = fields_lbrack_bundleIds_rbrack_
8458 self.fields_lbrack_profiles_rbrack_ = fields_lbrack_profiles_rbrack_
8459 self.fields_lbrack_bundleIdCapabilities_rbrack_ = fields_lbrack_bundleIdCapabilities_rbrack_
8460 self.fields_lbrack_apps_rbrack_ = fields_lbrack_apps_rbrack_
8461 self.limit = limit
8462 self.include = include
8463 self.limit_lbrack_bundleIdCapabilities_rbrack_ = limit_lbrack_bundleIdCapabilities_rbrack_
8464 self.limit_lbrack_profiles_rbrack_ = limit_lbrack_profiles_rbrack_
8465 }
8466 }
8467 public var query: Operations.BundleIdsGetCollection.Input.Query
8468 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/header`.
8469 public struct Headers: Sendable, Hashable {
8470 public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdsGetCollection.AcceptableContentType>]
8471 /// Creates a new `Headers`.
8472 ///
8473 /// - Parameters:
8474 /// - accept:
8475 public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdsGetCollection.AcceptableContentType>] = .defaultValues()) {
8476 self.accept = accept
8477 }
8478 }
8479 public var headers: Operations.BundleIdsGetCollection.Input.Headers
8480 /// Creates a new `Input`.
8481 ///
8482 /// - Parameters:
8483 /// - query:
8484 /// - headers:
8485 public init(
8486 query: Operations.BundleIdsGetCollection.Input.Query = .init(),
8487 headers: Operations.BundleIdsGetCollection.Input.Headers = .init()
8488 ) {
8489 self.query = query
8490 self.headers = headers
8491 }
8492 }
8493 @frozen public enum Output: Sendable, Hashable {
8494 public struct Ok: Sendable, Hashable {
8495 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content`.
8496 @frozen public enum Body: Sendable, Hashable {
8497 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content/application\/json`.
8498 case json(Components.Schemas.BundleIdsResponse)
8499 /// The associated value of the enum case if `self` is `.json`.
8500 ///
8501 /// - Throws: An error if `self` is not `.json`.
8502 /// - SeeAlso: `.json`.
8503 public var json: Components.Schemas.BundleIdsResponse {
8504 get throws {
8505 switch self {
8506 case let .json(body):
8507 return body
8508 }
8509 }
8510 }
8511 }
8512 /// Received HTTP response body
8513 public var body: Operations.BundleIdsGetCollection.Output.Ok.Body
8514 /// Creates a new `Ok`.
8515 ///
8516 /// - Parameters:
8517 /// - body: Received HTTP response body
8518 public init(body: Operations.BundleIdsGetCollection.Output.Ok.Body) {
8519 self.body = body
8520 }
8521 }
8522 /// List of BundleIds
8523 ///
8524 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/200`.
8525 ///
8526 /// HTTP response code: `200 ok`.
8527 case ok(Operations.BundleIdsGetCollection.Output.Ok)
8528 /// The associated value of the enum case if `self` is `.ok`.
8529 ///
8530 /// - Throws: An error if `self` is not `.ok`.
8531 /// - SeeAlso: `.ok`.
8532 public var ok: Operations.BundleIdsGetCollection.Output.Ok {
8533 get throws {
8534 switch self {
8535 case let .ok(response):
8536 return response
8537 default:
8538 try throwUnexpectedResponseStatus(
8539 expectedStatus: "ok",
8540 response: self
8541 )
8542 }
8543 }
8544 }
8545 public struct BadRequest: Sendable, Hashable {
8546 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/400/content`.
8547 @frozen public enum Body: Sendable, Hashable {
8548 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/400/content/application\/json`.
8549 case json(Components.Schemas.ErrorResponse)
8550 /// The associated value of the enum case if `self` is `.json`.
8551 ///
8552 /// - Throws: An error if `self` is not `.json`.
8553 /// - SeeAlso: `.json`.
8554 public var json: Components.Schemas.ErrorResponse {
8555 get throws {
8556 switch self {
8557 case let .json(body):
8558 return body
8559 }
8560 }
8561 }
8562 }
8563 /// Received HTTP response body
8564 public var body: Operations.BundleIdsGetCollection.Output.BadRequest.Body
8565 /// Creates a new `BadRequest`.
8566 ///
8567 /// - Parameters:
8568 /// - body: Received HTTP response body
8569 public init(body: Operations.BundleIdsGetCollection.Output.BadRequest.Body) {
8570 self.body = body
8571 }
8572 }
8573 /// Parameter error(s)
8574 ///
8575 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/400`.
8576 ///
8577 /// HTTP response code: `400 badRequest`.
8578 case badRequest(Operations.BundleIdsGetCollection.Output.BadRequest)
8579 /// The associated value of the enum case if `self` is `.badRequest`.
8580 ///
8581 /// - Throws: An error if `self` is not `.badRequest`.
8582 /// - SeeAlso: `.badRequest`.
8583 public var badRequest: Operations.BundleIdsGetCollection.Output.BadRequest {
8584 get throws {
8585 switch self {
8586 case let .badRequest(response):
8587 return response
8588 default:
8589 try throwUnexpectedResponseStatus(
8590 expectedStatus: "badRequest",
8591 response: self
8592 )
8593 }
8594 }
8595 }
8596 public struct Unauthorized: Sendable, Hashable {
8597 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/401/content`.
8598 @frozen public enum Body: Sendable, Hashable {
8599 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/401/content/application\/json`.
8600 case json(Components.Schemas.ErrorResponse)
8601 /// The associated value of the enum case if `self` is `.json`.
8602 ///
8603 /// - Throws: An error if `self` is not `.json`.
8604 /// - SeeAlso: `.json`.
8605 public var json: Components.Schemas.ErrorResponse {
8606 get throws {
8607 switch self {
8608 case let .json(body):
8609 return body
8610 }
8611 }
8612 }
8613 }
8614 /// Received HTTP response body
8615 public var body: Operations.BundleIdsGetCollection.Output.Unauthorized.Body
8616 /// Creates a new `Unauthorized`.
8617 ///
8618 /// - Parameters:
8619 /// - body: Received HTTP response body
8620 public init(body: Operations.BundleIdsGetCollection.Output.Unauthorized.Body) {
8621 self.body = body
8622 }
8623 }
8624 /// Unauthorized error(s)
8625 ///
8626 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/401`.
8627 ///
8628 /// HTTP response code: `401 unauthorized`.
8629 case unauthorized(Operations.BundleIdsGetCollection.Output.Unauthorized)
8630 /// The associated value of the enum case if `self` is `.unauthorized`.
8631 ///
8632 /// - Throws: An error if `self` is not `.unauthorized`.
8633 /// - SeeAlso: `.unauthorized`.
8634 public var unauthorized: Operations.BundleIdsGetCollection.Output.Unauthorized {
8635 get throws {
8636 switch self {
8637 case let .unauthorized(response):
8638 return response
8639 default:
8640 try throwUnexpectedResponseStatus(
8641 expectedStatus: "unauthorized",
8642 response: self
8643 )
8644 }
8645 }
8646 }
8647 public struct Forbidden: Sendable, Hashable {
8648 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/403/content`.
8649 @frozen public enum Body: Sendable, Hashable {
8650 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/403/content/application\/json`.
8651 case json(Components.Schemas.ErrorResponse)
8652 /// The associated value of the enum case if `self` is `.json`.
8653 ///
8654 /// - Throws: An error if `self` is not `.json`.
8655 /// - SeeAlso: `.json`.
8656 public var json: Components.Schemas.ErrorResponse {
8657 get throws {
8658 switch self {
8659 case let .json(body):
8660 return body
8661 }
8662 }
8663 }
8664 }
8665 /// Received HTTP response body
8666 public var body: Operations.BundleIdsGetCollection.Output.Forbidden.Body
8667 /// Creates a new `Forbidden`.
8668 ///
8669 /// - Parameters:
8670 /// - body: Received HTTP response body
8671 public init(body: Operations.BundleIdsGetCollection.Output.Forbidden.Body) {
8672 self.body = body
8673 }
8674 }
8675 /// Forbidden error
8676 ///
8677 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/403`.
8678 ///
8679 /// HTTP response code: `403 forbidden`.
8680 case forbidden(Operations.BundleIdsGetCollection.Output.Forbidden)
8681 /// The associated value of the enum case if `self` is `.forbidden`.
8682 ///
8683 /// - Throws: An error if `self` is not `.forbidden`.
8684 /// - SeeAlso: `.forbidden`.
8685 public var forbidden: Operations.BundleIdsGetCollection.Output.Forbidden {
8686 get throws {
8687 switch self {
8688 case let .forbidden(response):
8689 return response
8690 default:
8691 try throwUnexpectedResponseStatus(
8692 expectedStatus: "forbidden",
8693 response: self
8694 )
8695 }
8696 }
8697 }
8698 public struct TooManyRequests: Sendable, Hashable {
8699 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/429/content`.
8700 @frozen public enum Body: Sendable, Hashable {
8701 /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/429/content/application\/json`.
8702 case json(Components.Schemas.ErrorResponse)
8703 /// The associated value of the enum case if `self` is `.json`.
8704 ///
8705 /// - Throws: An error if `self` is not `.json`.
8706 /// - SeeAlso: `.json`.
8707 public var json: Components.Schemas.ErrorResponse {
8708 get throws {
8709 switch self {
8710 case let .json(body):
8711 return body
8712 }
8713 }
8714 }
8715 }
8716 /// Received HTTP response body
8717 public var body: Operations.BundleIdsGetCollection.Output.TooManyRequests.Body
8718 /// Creates a new `TooManyRequests`.
8719 ///
8720 /// - Parameters:
8721 /// - body: Received HTTP response body
8722 public init(body: Operations.BundleIdsGetCollection.Output.TooManyRequests.Body) {
8723 self.body = body
8724 }
8725 }
8726 /// Rate limit exceeded error
8727 ///
8728 /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/429`.
8729 ///
8730 /// HTTP response code: `429 tooManyRequests`.
8731 case tooManyRequests(Operations.BundleIdsGetCollection.Output.TooManyRequests)
8732 /// The associated value of the enum case if `self` is `.tooManyRequests`.
8733 ///
8734 /// - Throws: An error if `self` is not `.tooManyRequests`.
8735 /// - SeeAlso: `.tooManyRequests`.
8736 public var tooManyRequests: Operations.BundleIdsGetCollection.Output.TooManyRequests {
8737 get throws {
8738 switch self {
8739 case let .tooManyRequests(response):
8740 return response
8741 default:
8742 try throwUnexpectedResponseStatus(
8743 expectedStatus: "tooManyRequests",
8744 response: self
8745 )
8746 }
8747 }
8748 }
8749 /// Undocumented response.
8750 ///
8751 /// A response with a code that is not documented in the OpenAPI document.
8752 case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
8753 }
8754 @frozen public enum AcceptableContentType: AcceptableProtocol {
8755 case json
8756 case other(Swift.String)
8757 public init?(rawValue: Swift.String) {
8758 switch rawValue.lowercased() {
8759 case "application/json":
8760 self = .json
8761 default:
8762 self = .other(rawValue)
8763 }
8764 }
8765 public var rawValue: Swift.String {
8766 switch self {
8767 case let .other(string):
8768 return string
8769 case .json:
8770 return "application/json"
8771 }
8772 }
8773 public static var allCases: [Self] {
8774 [
8775 .json
8776 ]
8777 }
8778 }
8779 }
8780 /// - Remark: HTTP `POST /v1/bundleIds`.
8781 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)`.
8782 public enum BundleIdsCreateInstance {
8783 public static let id: Swift.String = "bundleIds_createInstance"
8784 public struct Input: Sendable, Hashable {
8785 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/header`.
8786 public struct Headers: Sendable, Hashable {
8787 public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdsCreateInstance.AcceptableContentType>]
8788 /// Creates a new `Headers`.
8789 ///
8790 /// - Parameters:
8791 /// - accept:
8792 public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.BundleIdsCreateInstance.AcceptableContentType>] = .defaultValues()) {
8793 self.accept = accept
8794 }
8795 }
8796 public var headers: Operations.BundleIdsCreateInstance.Input.Headers
8797 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/requestBody`.
8798 @frozen public enum Body: Sendable, Hashable {
8799 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/requestBody/content/application\/json`.
8800 case json(Components.Schemas.BundleIdCreateRequest)
8801 }
8802 public var body: Operations.BundleIdsCreateInstance.Input.Body
8803 /// Creates a new `Input`.
8804 ///
8805 /// - Parameters:
8806 /// - headers:
8807 /// - body:
8808 public init(
8809 headers: Operations.BundleIdsCreateInstance.Input.Headers = .init(),
8810 body: Operations.BundleIdsCreateInstance.Input.Body
8811 ) {
8812 self.headers = headers
8813 self.body = body
8814 }
8815 }
8816 @frozen public enum Output: Sendable, Hashable {
8817 public struct Created: Sendable, Hashable {
8818 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content`.
8819 @frozen public enum Body: Sendable, Hashable {
8820 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content/application\/json`.
8821 case json(Components.Schemas.BundleIdResponse)
8822 /// The associated value of the enum case if `self` is `.json`.
8823 ///
8824 /// - Throws: An error if `self` is not `.json`.
8825 /// - SeeAlso: `.json`.
8826 public var json: Components.Schemas.BundleIdResponse {
8827 get throws {
8828 switch self {
8829 case let .json(body):
8830 return body
8831 }
8832 }
8833 }
8834 }
8835 /// Received HTTP response body
8836 public var body: Operations.BundleIdsCreateInstance.Output.Created.Body
8837 /// Creates a new `Created`.
8838 ///
8839 /// - Parameters:
8840 /// - body: Received HTTP response body
8841 public init(body: Operations.BundleIdsCreateInstance.Output.Created.Body) {
8842 self.body = body
8843 }
8844 }
8845 /// Single BundleId
8846 ///
8847 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/201`.
8848 ///
8849 /// HTTP response code: `201 created`.
8850 case created(Operations.BundleIdsCreateInstance.Output.Created)
8851 /// The associated value of the enum case if `self` is `.created`.
8852 ///
8853 /// - Throws: An error if `self` is not `.created`.
8854 /// - SeeAlso: `.created`.
8855 public var created: Operations.BundleIdsCreateInstance.Output.Created {
8856 get throws {
8857 switch self {
8858 case let .created(response):
8859 return response
8860 default:
8861 try throwUnexpectedResponseStatus(
8862 expectedStatus: "created",
8863 response: self
8864 )
8865 }
8866 }
8867 }
8868 public struct BadRequest: Sendable, Hashable {
8869 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/400/content`.
8870 @frozen public enum Body: Sendable, Hashable {
8871 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/400/content/application\/json`.
8872 case json(Components.Schemas.ErrorResponse)
8873 /// The associated value of the enum case if `self` is `.json`.
8874 ///
8875 /// - Throws: An error if `self` is not `.json`.
8876 /// - SeeAlso: `.json`.
8877 public var json: Components.Schemas.ErrorResponse {
8878 get throws {
8879 switch self {
8880 case let .json(body):
8881 return body
8882 }
8883 }
8884 }
8885 }
8886 /// Received HTTP response body
8887 public var body: Operations.BundleIdsCreateInstance.Output.BadRequest.Body
8888 /// Creates a new `BadRequest`.
8889 ///
8890 /// - Parameters:
8891 /// - body: Received HTTP response body
8892 public init(body: Operations.BundleIdsCreateInstance.Output.BadRequest.Body) {
8893 self.body = body
8894 }
8895 }
8896 /// Parameter error(s)
8897 ///
8898 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/400`.
8899 ///
8900 /// HTTP response code: `400 badRequest`.
8901 case badRequest(Operations.BundleIdsCreateInstance.Output.BadRequest)
8902 /// The associated value of the enum case if `self` is `.badRequest`.
8903 ///
8904 /// - Throws: An error if `self` is not `.badRequest`.
8905 /// - SeeAlso: `.badRequest`.
8906 public var badRequest: Operations.BundleIdsCreateInstance.Output.BadRequest {
8907 get throws {
8908 switch self {
8909 case let .badRequest(response):
8910 return response
8911 default:
8912 try throwUnexpectedResponseStatus(
8913 expectedStatus: "badRequest",
8914 response: self
8915 )
8916 }
8917 }
8918 }
8919 public struct Unauthorized: Sendable, Hashable {
8920 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/401/content`.
8921 @frozen public enum Body: Sendable, Hashable {
8922 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/401/content/application\/json`.
8923 case json(Components.Schemas.ErrorResponse)
8924 /// The associated value of the enum case if `self` is `.json`.
8925 ///
8926 /// - Throws: An error if `self` is not `.json`.
8927 /// - SeeAlso: `.json`.
8928 public var json: Components.Schemas.ErrorResponse {
8929 get throws {
8930 switch self {
8931 case let .json(body):
8932 return body
8933 }
8934 }
8935 }
8936 }
8937 /// Received HTTP response body
8938 public var body: Operations.BundleIdsCreateInstance.Output.Unauthorized.Body
8939 /// Creates a new `Unauthorized`.
8940 ///
8941 /// - Parameters:
8942 /// - body: Received HTTP response body
8943 public init(body: Operations.BundleIdsCreateInstance.Output.Unauthorized.Body) {
8944 self.body = body
8945 }
8946 }
8947 /// Unauthorized error(s)
8948 ///
8949 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/401`.
8950 ///
8951 /// HTTP response code: `401 unauthorized`.
8952 case unauthorized(Operations.BundleIdsCreateInstance.Output.Unauthorized)
8953 /// The associated value of the enum case if `self` is `.unauthorized`.
8954 ///
8955 /// - Throws: An error if `self` is not `.unauthorized`.
8956 /// - SeeAlso: `.unauthorized`.
8957 public var unauthorized: Operations.BundleIdsCreateInstance.Output.Unauthorized {
8958 get throws {
8959 switch self {
8960 case let .unauthorized(response):
8961 return response
8962 default:
8963 try throwUnexpectedResponseStatus(
8964 expectedStatus: "unauthorized",
8965 response: self
8966 )
8967 }
8968 }
8969 }
8970 public struct Forbidden: Sendable, Hashable {
8971 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/403/content`.
8972 @frozen public enum Body: Sendable, Hashable {
8973 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/403/content/application\/json`.
8974 case json(Components.Schemas.ErrorResponse)
8975 /// The associated value of the enum case if `self` is `.json`.
8976 ///
8977 /// - Throws: An error if `self` is not `.json`.
8978 /// - SeeAlso: `.json`.
8979 public var json: Components.Schemas.ErrorResponse {
8980 get throws {
8981 switch self {
8982 case let .json(body):
8983 return body
8984 }
8985 }
8986 }
8987 }
8988 /// Received HTTP response body
8989 public var body: Operations.BundleIdsCreateInstance.Output.Forbidden.Body
8990 /// Creates a new `Forbidden`.
8991 ///
8992 /// - Parameters:
8993 /// - body: Received HTTP response body
8994 public init(body: Operations.BundleIdsCreateInstance.Output.Forbidden.Body) {
8995 self.body = body
8996 }
8997 }
8998 /// Forbidden error
8999 ///
9000 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/403`.
9001 ///
9002 /// HTTP response code: `403 forbidden`.
9003 case forbidden(Operations.BundleIdsCreateInstance.Output.Forbidden)
9004 /// The associated value of the enum case if `self` is `.forbidden`.
9005 ///
9006 /// - Throws: An error if `self` is not `.forbidden`.
9007 /// - SeeAlso: `.forbidden`.
9008 public var forbidden: Operations.BundleIdsCreateInstance.Output.Forbidden {
9009 get throws {
9010 switch self {
9011 case let .forbidden(response):
9012 return response
9013 default:
9014 try throwUnexpectedResponseStatus(
9015 expectedStatus: "forbidden",
9016 response: self
9017 )
9018 }
9019 }
9020 }
9021 public struct Conflict: Sendable, Hashable {
9022 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content`.
9023 @frozen public enum Body: Sendable, Hashable {
9024 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content/application\/json`.
9025 case json(Components.Schemas.ErrorResponse)
9026 /// The associated value of the enum case if `self` is `.json`.
9027 ///
9028 /// - Throws: An error if `self` is not `.json`.
9029 /// - SeeAlso: `.json`.
9030 public var json: Components.Schemas.ErrorResponse {
9031 get throws {
9032 switch self {
9033 case let .json(body):
9034 return body
9035 }
9036 }
9037 }
9038 }
9039 /// Received HTTP response body
9040 public var body: Operations.BundleIdsCreateInstance.Output.Conflict.Body
9041 /// Creates a new `Conflict`.
9042 ///
9043 /// - Parameters:
9044 /// - body: Received HTTP response body
9045 public init(body: Operations.BundleIdsCreateInstance.Output.Conflict.Body) {
9046 self.body = body
9047 }
9048 }
9049 /// Request entity error(s)
9050 ///
9051 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/409`.
9052 ///
9053 /// HTTP response code: `409 conflict`.
9054 case conflict(Operations.BundleIdsCreateInstance.Output.Conflict)
9055 /// The associated value of the enum case if `self` is `.conflict`.
9056 ///
9057 /// - Throws: An error if `self` is not `.conflict`.
9058 /// - SeeAlso: `.conflict`.
9059 public var conflict: Operations.BundleIdsCreateInstance.Output.Conflict {
9060 get throws {
9061 switch self {
9062 case let .conflict(response):
9063 return response
9064 default:
9065 try throwUnexpectedResponseStatus(
9066 expectedStatus: "conflict",
9067 response: self
9068 )
9069 }
9070 }
9071 }
9072 public struct UnprocessableContent: Sendable, Hashable {
9073 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content`.
9074 @frozen public enum Body: Sendable, Hashable {
9075 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content/application\/json`.
9076 case json(Components.Schemas.ErrorResponse)
9077 /// The associated value of the enum case if `self` is `.json`.
9078 ///
9079 /// - Throws: An error if `self` is not `.json`.
9080 /// - SeeAlso: `.json`.
9081 public var json: Components.Schemas.ErrorResponse {
9082 get throws {
9083 switch self {
9084 case let .json(body):
9085 return body
9086 }
9087 }
9088 }
9089 }
9090 /// Received HTTP response body
9091 public var body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body
9092 /// Creates a new `UnprocessableContent`.
9093 ///
9094 /// - Parameters:
9095 /// - body: Received HTTP response body
9096 public init(body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body) {
9097 self.body = body
9098 }
9099 }
9100 /// Unprocessable request entity error(s)
9101 ///
9102 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/422`.
9103 ///
9104 /// HTTP response code: `422 unprocessableContent`.
9105 case unprocessableContent(Operations.BundleIdsCreateInstance.Output.UnprocessableContent)
9106 /// The associated value of the enum case if `self` is `.unprocessableContent`.
9107 ///
9108 /// - Throws: An error if `self` is not `.unprocessableContent`.
9109 /// - SeeAlso: `.unprocessableContent`.
9110 public var unprocessableContent: Operations.BundleIdsCreateInstance.Output.UnprocessableContent {
9111 get throws {
9112 switch self {
9113 case let .unprocessableContent(response):
9114 return response
9115 default:
9116 try throwUnexpectedResponseStatus(
9117 expectedStatus: "unprocessableContent",
9118 response: self
9119 )
9120 }
9121 }
9122 }
9123 public struct TooManyRequests: Sendable, Hashable {
9124 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/429/content`.
9125 @frozen public enum Body: Sendable, Hashable {
9126 /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/429/content/application\/json`.
9127 case json(Components.Schemas.ErrorResponse)
9128 /// The associated value of the enum case if `self` is `.json`.
9129 ///
9130 /// - Throws: An error if `self` is not `.json`.
9131 /// - SeeAlso: `.json`.
9132 public var json: Components.Schemas.ErrorResponse {
9133 get throws {
9134 switch self {
9135 case let .json(body):
9136 return body
9137 }
9138 }
9139 }
9140 }
9141 /// Received HTTP response body
9142 public var body: Operations.BundleIdsCreateInstance.Output.TooManyRequests.Body
9143 /// Creates a new `TooManyRequests`.
9144 ///
9145 /// - Parameters:
9146 /// - body: Received HTTP response body
9147 public init(body: Operations.BundleIdsCreateInstance.Output.TooManyRequests.Body) {
9148 self.body = body
9149 }
9150 }
9151 /// Rate limit exceeded error
9152 ///
9153 /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/429`.
9154 ///
9155 /// HTTP response code: `429 tooManyRequests`.
9156 case tooManyRequests(Operations.BundleIdsCreateInstance.Output.TooManyRequests)
9157 /// The associated value of the enum case if `self` is `.tooManyRequests`.
9158 ///
9159 /// - Throws: An error if `self` is not `.tooManyRequests`.
9160 /// - SeeAlso: `.tooManyRequests`.
9161 public var tooManyRequests: Operations.BundleIdsCreateInstance.Output.TooManyRequests {
9162 get throws {
9163 switch self {
9164 case let .tooManyRequests(response):
9165 return response
9166 default:
9167 try throwUnexpectedResponseStatus(
9168 expectedStatus: "tooManyRequests",
9169 response: self
9170 )
9171 }
9172 }
9173 }
9174 /// Undocumented response.
9175 ///
9176 /// A response with a code that is not documented in the OpenAPI document.
9177 case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
9178 }
9179 @frozen public enum AcceptableContentType: AcceptableProtocol {
9180 case json
9181 case other(Swift.String)
9182 public init?(rawValue: Swift.String) {
9183 switch rawValue.lowercased() {
9184 case "application/json":
9185 self = .json
9186 default:
9187 self = .other(rawValue)
9188 }
9189 }
9190 public var rawValue: Swift.String {
9191 switch self {
9192 case let .other(string):
9193 return string
9194 case .json:
9195 return "application/json"
9196 }
9197 }
9198 public static var allCases: [Self] {
9199 [
9200 .json
9201 ]
9202 }
9203 }
9204 }
9205 /// - Remark: HTTP `GET /v1/bundleIds/{id}`.
9206 /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)`.
9207 public enum BundleIdsGetInstance {
9208 public static let id: Swift.String = "bundleIds_getInstance"
9209 public struct Input: Sendable, Hashable {
9210 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/path`.
9211 public struct Path: Sendable, Hashable {
9212 /// the id of the requested resource
9213 ///
9214 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/path/id`.
9215 public var id: Swift.String
9216 /// Creates a new `Path`.
9217 ///
9218 /// - Parameters:
9219 /// - id: the id of the requested resource
9220 public init(id: Swift.String) {
9221 self.id = id
9222 }
9223 }
9224 public var path: Operations.BundleIdsGetInstance.Input.Path
9225 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query`.
9226 public struct Query: Sendable, Hashable {
9227 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/Fields_lbrack_bundleIds_rbrack_Payload`.
9228 @frozen public enum FieldsLbrackBundleIdsRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
9229 case name = "name"
9230 case platform = "platform"
9231 case identifier = "identifier"
9232 case seedId = "seedId"
9233 case profiles = "profiles"
9234 case bundleIdCapabilities = "bundleIdCapabilities"
9235 case app = "app"
9236 }
9237 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIds]`.
9238 public typealias Fields_lbrack_bundleIds_rbrack_Payload = [Operations.BundleIdsGetInstance.Input.Query.FieldsLbrackBundleIdsRbrackPayloadPayload]
9239 /// the fields to include for returned resources of type bundleIds
9240 ///
9241 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIds]`.
9242 public var fields_lbrack_bundleIds_rbrack_: Operations.BundleIdsGetInstance.Input.Query.Fields_lbrack_bundleIds_rbrack_Payload?
9243 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/Fields_lbrack_profiles_rbrack_Payload`.
9244 @frozen public enum FieldsLbrackProfilesRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
9245 case name = "name"
9246 case platform = "platform"
9247 case profileType = "profileType"
9248 case profileState = "profileState"
9249 case profileContent = "profileContent"
9250 case uuid = "uuid"
9251 case createdDate = "createdDate"
9252 case expirationDate = "expirationDate"
9253 case bundleId = "bundleId"
9254 case devices = "devices"
9255 case certificates = "certificates"
9256 }
9257 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[profiles]`.
9258 public typealias Fields_lbrack_profiles_rbrack_Payload = [Operations.BundleIdsGetInstance.Input.Query.FieldsLbrackProfilesRbrackPayloadPayload]
9259 /// the fields to include for returned resources of type profiles
9260 ///
9261 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[profiles]`.
9262 public var fields_lbrack_profiles_rbrack_: Operations.BundleIdsGetInstance.Input.Query.Fields_lbrack_profiles_rbrack_Payload?
9263 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/Fields_lbrack_bundleIdCapabilities_rbrack_Payload`.
9264 @frozen public enum FieldsLbrackBundleIdCapabilitiesRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
9265 case capabilityType = "capabilityType"
9266 case settings = "settings"
9267 }
9268 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIdCapabilities]`.
9269 public typealias Fields_lbrack_bundleIdCapabilities_rbrack_Payload = [Operations.BundleIdsGetInstance.Input.Query.FieldsLbrackBundleIdCapabilitiesRbrackPayloadPayload]
9270 /// the fields to include for returned resources of type bundleIdCapabilities
9271 ///
9272 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIdCapabilities]`.
9273 public var fields_lbrack_bundleIdCapabilities_rbrack_: Operations.BundleIdsGetInstance.Input.Query.Fields_lbrack_bundleIdCapabilities_rbrack_Payload?
9274 /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/Fields_lbrack_apps_rbrack_Payload`.
9275 @frozen public enum FieldsLbrackAppsRbrackPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {
9276 case accessibilityUrl = "accessibilityUrl"
9277 case name = "name"
9278 case bundleId = "bundleId"
9279 case sku = "sku"
9280 case primaryLocale = "primaryLocale"
9281 case isOrEverWasMadeForKids = "isOrEverWasMadeForKids"
9282 case subscriptionStatusUrl = "subscriptionStatusUrl"
9283 case subscriptionStatusUrlVersion = "subscriptionStatusUrlVersion"
9284 case subscriptionStatusUrlForSandbox = "subscriptionStatusUrlForSandbox"
9285 case subscriptionStatusUrlVersionForSandbox = "subscriptionStatusUrlVersionForSandbox"
9286 case contentRightsDeclaration = "contentRightsDeclaration"
9287 case streamlinedPurchasingEnabled = "streamlinedPurchasingEnabled"
9288 case accessibilityDeclarations = "accessibilityDeclarations"
9289 case appEncryptionDeclarations = "appEncryptionDeclarations"
9290 case appStoreIcon = "appStoreIcon"
9291

File truncated at 512 KiB.