Skip to content

Commit 97e9ec6

Browse files
committed
Commit via running ake Sources/interactions
1 parent bb9db1e commit 97e9ec6

File tree

2 files changed

+355
-298
lines changed

2 files changed

+355
-298
lines changed

Sources/interactions/Client.swift

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public struct Client: APIProtocol {
4444
///
4545
/// - Remark: HTTP `GET /orgs/{org}/interaction-limits`.
4646
/// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/get(interactions/get-restrictions-for-org)`.
47-
public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output {
47+
public func interactionsGetRestrictionsForOrg(_ input: Operations.InteractionsGetRestrictionsForOrg.Input) async throws -> Operations.InteractionsGetRestrictionsForOrg.Output {
4848
try await client.send(
4949
input: input,
50-
forOperation: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.id,
50+
forOperation: Operations.InteractionsGetRestrictionsForOrg.id,
5151
serializer: { input in
5252
let path = try converter.renderedPath(
5353
template: "/orgs/{}/interaction-limits",
@@ -70,7 +70,7 @@ public struct Client: APIProtocol {
7070
switch response.status.code {
7171
case 200:
7272
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
73-
let body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body
73+
let body: Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body
7474
let chosenContentType = try converter.bestContentType(
7575
received: contentType,
7676
options: [
@@ -80,7 +80,7 @@ public struct Client: APIProtocol {
8080
switch chosenContentType {
8181
case "application/json":
8282
body = try await converter.getResponseBodyAsJSON(
83-
Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self,
83+
Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body.JsonPayload.self,
8484
from: responseBody,
8585
transforming: { value in
8686
.json(value)
@@ -108,10 +108,10 @@ public struct Client: APIProtocol {
108108
///
109109
/// - Remark: HTTP `PUT /orgs/{org}/interaction-limits`.
110110
/// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/put(interactions/set-restrictions-for-org)`.
111-
public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output {
111+
public func interactionsSetRestrictionsForOrg(_ input: Operations.InteractionsSetRestrictionsForOrg.Input) async throws -> Operations.InteractionsSetRestrictionsForOrg.Output {
112112
try await client.send(
113113
input: input,
114-
forOperation: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.id,
114+
forOperation: Operations.InteractionsSetRestrictionsForOrg.id,
115115
serializer: { input in
116116
let path = try converter.renderedPath(
117117
template: "/orgs/{}/interaction-limits",
@@ -143,7 +143,7 @@ public struct Client: APIProtocol {
143143
switch response.status.code {
144144
case 200:
145145
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
146-
let body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body
146+
let body: Operations.InteractionsSetRestrictionsForOrg.Output.Ok.Body
147147
let chosenContentType = try converter.bestContentType(
148148
received: contentType,
149149
options: [
@@ -153,7 +153,7 @@ public struct Client: APIProtocol {
153153
switch chosenContentType {
154154
case "application/json":
155155
body = try await converter.getResponseBodyAsJSON(
156-
Components.Schemas.interaction_hyphen_limit_hyphen_response.self,
156+
Components.Schemas.InteractionLimitResponse.self,
157157
from: responseBody,
158158
transforming: { value in
159159
.json(value)
@@ -165,7 +165,7 @@ public struct Client: APIProtocol {
165165
return .ok(.init(body: body))
166166
case 422:
167167
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
168-
let body: Components.Responses.validation_failed.Body
168+
let body: Components.Responses.ValidationFailed.Body
169169
let chosenContentType = try converter.bestContentType(
170170
received: contentType,
171171
options: [
@@ -175,7 +175,7 @@ public struct Client: APIProtocol {
175175
switch chosenContentType {
176176
case "application/json":
177177
body = try await converter.getResponseBodyAsJSON(
178-
Components.Schemas.validation_hyphen_error.self,
178+
Components.Schemas.ValidationError.self,
179179
from: responseBody,
180180
transforming: { value in
181181
.json(value)
@@ -203,10 +203,10 @@ public struct Client: APIProtocol {
203203
///
204204
/// - Remark: HTTP `DELETE /orgs/{org}/interaction-limits`.
205205
/// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)`.
206-
public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Output {
206+
public func interactionsRemoveRestrictionsForOrg(_ input: Operations.InteractionsRemoveRestrictionsForOrg.Input) async throws -> Operations.InteractionsRemoveRestrictionsForOrg.Output {
207207
try await client.send(
208208
input: input,
209-
forOperation: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.id,
209+
forOperation: Operations.InteractionsRemoveRestrictionsForOrg.id,
210210
serializer: { input in
211211
let path = try converter.renderedPath(
212212
template: "/orgs/{}/interaction-limits",
@@ -243,10 +243,10 @@ public struct Client: APIProtocol {
243243
///
244244
/// - Remark: HTTP `GET /repos/{owner}/{repo}/interaction-limits`.
245245
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/get(interactions/get-restrictions-for-repo)`.
246-
public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output {
246+
public func interactionsGetRestrictionsForRepo(_ input: Operations.InteractionsGetRestrictionsForRepo.Input) async throws -> Operations.InteractionsGetRestrictionsForRepo.Output {
247247
try await client.send(
248248
input: input,
249-
forOperation: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.id,
249+
forOperation: Operations.InteractionsGetRestrictionsForRepo.id,
250250
serializer: { input in
251251
let path = try converter.renderedPath(
252252
template: "/repos/{}/{}/interaction-limits",
@@ -270,7 +270,7 @@ public struct Client: APIProtocol {
270270
switch response.status.code {
271271
case 200:
272272
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
273-
let body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body
273+
let body: Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body
274274
let chosenContentType = try converter.bestContentType(
275275
received: contentType,
276276
options: [
@@ -280,7 +280,7 @@ public struct Client: APIProtocol {
280280
switch chosenContentType {
281281
case "application/json":
282282
body = try await converter.getResponseBodyAsJSON(
283-
Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.self,
283+
Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body.JsonPayload.self,
284284
from: responseBody,
285285
transforming: { value in
286286
.json(value)
@@ -308,10 +308,10 @@ public struct Client: APIProtocol {
308308
///
309309
/// - Remark: HTTP `PUT /repos/{owner}/{repo}/interaction-limits`.
310310
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)`.
311-
public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output {
311+
public func interactionsSetRestrictionsForRepo(_ input: Operations.InteractionsSetRestrictionsForRepo.Input) async throws -> Operations.InteractionsSetRestrictionsForRepo.Output {
312312
try await client.send(
313313
input: input,
314-
forOperation: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.id,
314+
forOperation: Operations.InteractionsSetRestrictionsForRepo.id,
315315
serializer: { input in
316316
let path = try converter.renderedPath(
317317
template: "/repos/{}/{}/interaction-limits",
@@ -344,7 +344,7 @@ public struct Client: APIProtocol {
344344
switch response.status.code {
345345
case 200:
346346
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
347-
let body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body
347+
let body: Operations.InteractionsSetRestrictionsForRepo.Output.Ok.Body
348348
let chosenContentType = try converter.bestContentType(
349349
received: contentType,
350350
options: [
@@ -354,7 +354,7 @@ public struct Client: APIProtocol {
354354
switch chosenContentType {
355355
case "application/json":
356356
body = try await converter.getResponseBodyAsJSON(
357-
Components.Schemas.interaction_hyphen_limit_hyphen_response.self,
357+
Components.Schemas.InteractionLimitResponse.self,
358358
from: responseBody,
359359
transforming: { value in
360360
.json(value)
@@ -384,10 +384,10 @@ public struct Client: APIProtocol {
384384
///
385385
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/interaction-limits`.
386386
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)`.
387-
public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output {
387+
public func interactionsRemoveRestrictionsForRepo(_ input: Operations.InteractionsRemoveRestrictionsForRepo.Input) async throws -> Operations.InteractionsRemoveRestrictionsForRepo.Output {
388388
try await client.send(
389389
input: input,
390-
forOperation: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.id,
390+
forOperation: Operations.InteractionsRemoveRestrictionsForRepo.id,
391391
serializer: { input in
392392
let path = try converter.renderedPath(
393393
template: "/repos/{}/{}/interaction-limits",
@@ -427,10 +427,10 @@ public struct Client: APIProtocol {
427427
///
428428
/// - Remark: HTTP `GET /user/interaction-limits`.
429429
/// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)`.
430-
public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output {
430+
public func interactionsGetRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output {
431431
try await client.send(
432432
input: input,
433-
forOperation: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.id,
433+
forOperation: Operations.InteractionsGetRestrictionsForAuthenticatedUser.id,
434434
serializer: { input in
435435
let path = try converter.renderedPath(
436436
template: "/user/interaction-limits",
@@ -451,7 +451,7 @@ public struct Client: APIProtocol {
451451
switch response.status.code {
452452
case 200:
453453
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
454-
let body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body
454+
let body: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body
455455
let chosenContentType = try converter.bestContentType(
456456
received: contentType,
457457
options: [
@@ -461,7 +461,7 @@ public struct Client: APIProtocol {
461461
switch chosenContentType {
462462
case "application/json":
463463
body = try await converter.getResponseBodyAsJSON(
464-
Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self,
464+
Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body.JsonPayload.self,
465465
from: responseBody,
466466
transforming: { value in
467467
.json(value)
@@ -491,10 +491,10 @@ public struct Client: APIProtocol {
491491
///
492492
/// - Remark: HTTP `PUT /user/interaction-limits`.
493493
/// - Remark: Generated from `#/paths//user/interaction-limits/put(interactions/set-restrictions-for-authenticated-user)`.
494-
public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output {
494+
public func interactionsSetRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output {
495495
try await client.send(
496496
input: input,
497-
forOperation: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.id,
497+
forOperation: Operations.InteractionsSetRestrictionsForAuthenticatedUser.id,
498498
serializer: { input in
499499
let path = try converter.renderedPath(
500500
template: "/user/interaction-limits",
@@ -524,7 +524,7 @@ public struct Client: APIProtocol {
524524
switch response.status.code {
525525
case 200:
526526
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
527-
let body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body
527+
let body: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output.Ok.Body
528528
let chosenContentType = try converter.bestContentType(
529529
received: contentType,
530530
options: [
@@ -534,7 +534,7 @@ public struct Client: APIProtocol {
534534
switch chosenContentType {
535535
case "application/json":
536536
body = try await converter.getResponseBodyAsJSON(
537-
Components.Schemas.interaction_hyphen_limit_hyphen_response.self,
537+
Components.Schemas.InteractionLimitResponse.self,
538538
from: responseBody,
539539
transforming: { value in
540540
.json(value)
@@ -546,7 +546,7 @@ public struct Client: APIProtocol {
546546
return .ok(.init(body: body))
547547
case 422:
548548
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
549-
let body: Components.Responses.validation_failed.Body
549+
let body: Components.Responses.ValidationFailed.Body
550550
let chosenContentType = try converter.bestContentType(
551551
received: contentType,
552552
options: [
@@ -556,7 +556,7 @@ public struct Client: APIProtocol {
556556
switch chosenContentType {
557557
case "application/json":
558558
body = try await converter.getResponseBodyAsJSON(
559-
Components.Schemas.validation_hyphen_error.self,
559+
Components.Schemas.ValidationError.self,
560560
from: responseBody,
561561
transforming: { value in
562562
.json(value)
@@ -584,10 +584,10 @@ public struct Client: APIProtocol {
584584
///
585585
/// - Remark: HTTP `DELETE /user/interaction-limits`.
586586
/// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)`.
587-
public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output {
587+
public func interactionsRemoveRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Output {
588588
try await client.send(
589589
input: input,
590-
forOperation: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.id,
590+
forOperation: Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.id,
591591
serializer: { input in
592592
let path = try converter.renderedPath(
593593
template: "/user/interaction-limits",

0 commit comments

Comments
 (0)