@@ -19,12 +19,8 @@ class SessionApi {
19
19
/// Performs an HTTP 'POST /v1/sessions/cancel' operation and returns the [Response] .
20
20
/// Parameters:
21
21
///
22
- /// * [String] trinsicAuthorization (required):
23
- /// Bearer token. Can be left empty on anonymous endpoints
24
- ///
25
22
/// * [String] sessionId:
26
- Future <Response > cancelSessionWithHttpInfo (
27
- String trinsicAuthorization, {
23
+ Future <Response > cancelSessionAsyncWithHttpInfo ({
28
24
String ? sessionId,
29
25
}) async {
30
26
// ignore: prefer_const_declarations
@@ -41,9 +37,6 @@ class SessionApi {
41
37
queryParams.addAll (_queryParams ('' , 'sessionId' , sessionId));
42
38
}
43
39
44
- headerParams[r'TrinsicAuthorization' ] =
45
- parameterToString (trinsicAuthorization);
46
-
47
40
const contentTypes = < String > [];
48
41
49
42
return apiClient.invokeAPI (
@@ -59,16 +52,11 @@ class SessionApi {
59
52
60
53
/// Parameters:
61
54
///
62
- /// * [String] trinsicAuthorization (required):
63
- /// Bearer token. Can be left empty on anonymous endpoints
64
- ///
65
55
/// * [String] sessionId:
66
- Future <CancelSessionResponse ?> cancelSession (
67
- String trinsicAuthorization, {
56
+ Future <CancelSessionResponse ?> cancelSessionAsync ({
68
57
String ? sessionId,
69
58
}) async {
70
- final response = await cancelSessionWithHttpInfo (
71
- trinsicAuthorization,
59
+ final response = await cancelSessionAsyncWithHttpInfo (
72
60
sessionId: sessionId,
73
61
);
74
62
if (response.statusCode >= HttpStatus .badRequest) {
@@ -87,19 +75,15 @@ class SessionApi {
87
75
return null ;
88
76
}
89
77
90
- /// Performs an HTTP 'POST /v1/sessions' operation and returns the [Response] .
78
+ /// Performs an HTTP 'POST /v1/sessions/create ' operation and returns the [Response] .
91
79
/// Parameters:
92
80
///
93
- /// * [String] trinsicAuthorization (required):
94
- /// Bearer token. Can be left empty on anonymous endpoints
95
- ///
96
81
/// * [CreateSessionRequest] createSessionRequest:
97
- Future <Response > createSessionWithHttpInfo (
98
- String trinsicAuthorization, {
82
+ Future <Response > createSessionAsyncWithHttpInfo ({
99
83
CreateSessionRequest ? createSessionRequest,
100
84
}) async {
101
85
// ignore: prefer_const_declarations
102
- final path = r'/v1/sessions' ;
86
+ final path = r'/v1/sessions/create ' ;
103
87
104
88
// ignore: prefer_final_locals
105
89
Object ? postBody = createSessionRequest;
@@ -108,9 +92,6 @@ class SessionApi {
108
92
final headerParams = < String , String > {};
109
93
final formParams = < String , String > {};
110
94
111
- headerParams[r'TrinsicAuthorization' ] =
112
- parameterToString (trinsicAuthorization);
113
-
114
95
const contentTypes = < String > [
115
96
'application/json' ,
116
97
'text/json' ,
@@ -130,16 +111,11 @@ class SessionApi {
130
111
131
112
/// Parameters:
132
113
///
133
- /// * [String] trinsicAuthorization (required):
134
- /// Bearer token. Can be left empty on anonymous endpoints
135
- ///
136
114
/// * [CreateSessionRequest] createSessionRequest:
137
- Future <CreateSessionResponse ?> createSession (
138
- String trinsicAuthorization, {
115
+ Future <CreateSessionResponse ?> createSessionAsync ({
139
116
CreateSessionRequest ? createSessionRequest,
140
117
}) async {
141
- final response = await createSessionWithHttpInfo (
142
- trinsicAuthorization,
118
+ final response = await createSessionAsyncWithHttpInfo (
143
119
createSessionRequest: createSessionRequest,
144
120
);
145
121
if (response.statusCode >= HttpStatus .badRequest) {
@@ -161,12 +137,8 @@ class SessionApi {
161
137
/// Performs an HTTP 'GET /v1/sessions/get' operation and returns the [Response] .
162
138
/// Parameters:
163
139
///
164
- /// * [String] trinsicAuthorization (required):
165
- /// Bearer token. Can be left empty on anonymous endpoints
166
- ///
167
140
/// * [String] sessionId:
168
- Future <Response > getSessionWithHttpInfo (
169
- String trinsicAuthorization, {
141
+ Future <Response > getSessionAsyncWithHttpInfo ({
170
142
String ? sessionId,
171
143
}) async {
172
144
// ignore: prefer_const_declarations
@@ -183,9 +155,6 @@ class SessionApi {
183
155
queryParams.addAll (_queryParams ('' , 'sessionId' , sessionId));
184
156
}
185
157
186
- headerParams[r'TrinsicAuthorization' ] =
187
- parameterToString (trinsicAuthorization);
188
-
189
158
const contentTypes = < String > [];
190
159
191
160
return apiClient.invokeAPI (
@@ -201,16 +170,11 @@ class SessionApi {
201
170
202
171
/// Parameters:
203
172
///
204
- /// * [String] trinsicAuthorization (required):
205
- /// Bearer token. Can be left empty on anonymous endpoints
206
- ///
207
173
/// * [String] sessionId:
208
- Future <GetSessionResponseV1 ?> getSession (
209
- String trinsicAuthorization, {
174
+ Future <GetSessionResponseV1 ?> getSessionAsync ({
210
175
String ? sessionId,
211
176
}) async {
212
- final response = await getSessionWithHttpInfo (
213
- trinsicAuthorization,
177
+ final response = await getSessionAsyncWithHttpInfo (
214
178
sessionId: sessionId,
215
179
);
216
180
if (response.statusCode >= HttpStatus .badRequest) {
@@ -232,12 +196,8 @@ class SessionApi {
232
196
/// Performs an HTTP 'POST /v1/sessions/list' operation and returns the [Response] .
233
197
/// Parameters:
234
198
///
235
- /// * [String] trinsicAuthorization (required):
236
- /// Bearer token. Can be left empty on anonymous endpoints
237
- ///
238
199
/// * [ListSessionsRequest] listSessionsRequest:
239
- Future <Response > listSessionsWithHttpInfo (
240
- String trinsicAuthorization, {
200
+ Future <Response > listSessionsAsyncWithHttpInfo ({
241
201
ListSessionsRequest ? listSessionsRequest,
242
202
}) async {
243
203
// ignore: prefer_const_declarations
@@ -250,9 +210,6 @@ class SessionApi {
250
210
final headerParams = < String , String > {};
251
211
final formParams = < String , String > {};
252
212
253
- headerParams[r'TrinsicAuthorization' ] =
254
- parameterToString (trinsicAuthorization);
255
-
256
213
const contentTypes = < String > [
257
214
'application/json' ,
258
215
'text/json' ,
@@ -272,16 +229,11 @@ class SessionApi {
272
229
273
230
/// Parameters:
274
231
///
275
- /// * [String] trinsicAuthorization (required):
276
- /// Bearer token. Can be left empty on anonymous endpoints
277
- ///
278
232
/// * [ListSessionsRequest] listSessionsRequest:
279
- Future <ListSessionsResponseV1 ?> listSessions (
280
- String trinsicAuthorization, {
233
+ Future <ListSessionsResponseV1 ?> listSessionsAsync ({
281
234
ListSessionsRequest ? listSessionsRequest,
282
235
}) async {
283
- final response = await listSessionsWithHttpInfo (
284
- trinsicAuthorization,
236
+ final response = await listSessionsAsyncWithHttpInfo (
285
237
listSessionsRequest: listSessionsRequest,
286
238
);
287
239
if (response.statusCode >= HttpStatus .badRequest) {
0 commit comments