Skip to content

Commit

Permalink
chore(codegen): updates existing language semantics (#70)
Browse files Browse the repository at this point in the history
Co-authored-by: ctran88 <[email protected]>
  • Loading branch information
passage-beachball-bot and ctran88 authored Dec 6, 2024
1 parent cf0ff53 commit 6e7bde9
Show file tree
Hide file tree
Showing 54 changed files with 1,328 additions and 888 deletions.
3 changes: 3 additions & 0 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ models/Nonce.ts
models/OtpAuthMethod.ts
models/PaginatedLinks.ts
models/PasskeysAuthMethod.ts
models/SocialConnectionType.ts
models/Technologies.ts
models/ThemeType.ts
models/TtlDisplayUnit.ts
models/UserEventAction.ts
models/UserEventStatus.ts
models/UserInfo.ts
models/UserMetadataField.ts
Expand Down
2 changes: 1 addition & 1 deletion src/generated/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0
7.11.0-SNAPSHOT
9 changes: 6 additions & 3 deletions src/generated/apis/AppsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ export class AppsApi extends runtime.BaseAPI {
* Get App
*/
async getAppRaw(requestParameters: GetAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppResponse>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling getApp.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling getApp().'
);
}

const queryParameters: any = {};
Expand All @@ -62,7 +65,7 @@ export class AppsApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))),
path: `/apps/{app_id}`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
Expand Down
18 changes: 12 additions & 6 deletions src/generated/apis/AuthenticateApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,18 @@ export class AuthenticateApi extends runtime.BaseAPI {
* Verify the nonce received from a WebAuthn ceremony
*/
async authenticateVerifyNonceRaw(requestParameters: AuthenticateVerifyNonceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticateVerifyNonceResponse>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling authenticateVerifyNonce.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling authenticateVerifyNonce().'
);
}

if (requestParameters.body === null || requestParameters.body === undefined) {
throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling authenticateVerifyNonce.');
if (requestParameters['body'] == null) {
throw new runtime.RequiredError(
'body',
'Required parameter "body" was null or undefined when calling authenticateVerifyNonce().'
);
}

const queryParameters: any = {};
Expand All @@ -78,11 +84,11 @@ export class AuthenticateApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}/authenticate/verify`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))),
path: `/apps/{app_id}/authenticate/verify`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))),
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: requestParameters.body as any,
body: requestParameters['body'] as any,
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticateVerifyNonceResponseFromJSON(jsonValue));
Expand Down
36 changes: 24 additions & 12 deletions src/generated/apis/TransactionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,18 @@ export class TransactionsApi extends runtime.BaseAPI {
* Create a transaction to start a user\'s authentication process
*/
async createAuthenticateTransactionRaw(requestParameters: CreateAuthenticateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTransactionResponse>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling createAuthenticateTransaction.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling createAuthenticateTransaction().'
);
}

if (requestParameters.createTransactionAuthenticateRequest === null || requestParameters.createTransactionAuthenticateRequest === undefined) {
throw new runtime.RequiredError('createTransactionAuthenticateRequest','Required parameter requestParameters.createTransactionAuthenticateRequest was null or undefined when calling createAuthenticateTransaction.');
if (requestParameters['createTransactionAuthenticateRequest'] == null) {
throw new runtime.RequiredError(
'createTransactionAuthenticateRequest',
'Required parameter "createTransactionAuthenticateRequest" was null or undefined when calling createAuthenticateTransaction().'
);
}

const queryParameters: any = {};
Expand All @@ -88,11 +94,11 @@ export class TransactionsApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}/transactions/authenticate`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))),
path: `/apps/{app_id}/transactions/authenticate`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))),
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: CreateTransactionAuthenticateRequestToJSON(requestParameters.createTransactionAuthenticateRequest),
body: CreateTransactionAuthenticateRequestToJSON(requestParameters['createTransactionAuthenticateRequest']),
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => CreateTransactionResponseFromJSON(jsonValue));
Expand All @@ -110,12 +116,18 @@ export class TransactionsApi extends runtime.BaseAPI {
* Create a transaction to start a user\'s registration process
*/
async createRegisterTransactionRaw(requestParameters: CreateRegisterTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTransactionResponse>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling createRegisterTransaction.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling createRegisterTransaction().'
);
}

if (requestParameters.createTransactionRegisterRequest === null || requestParameters.createTransactionRegisterRequest === undefined) {
throw new runtime.RequiredError('createTransactionRegisterRequest','Required parameter requestParameters.createTransactionRegisterRequest was null or undefined when calling createRegisterTransaction.');
if (requestParameters['createTransactionRegisterRequest'] == null) {
throw new runtime.RequiredError(
'createTransactionRegisterRequest',
'Required parameter "createTransactionRegisterRequest" was null or undefined when calling createRegisterTransaction().'
);
}

const queryParameters: any = {};
Expand All @@ -133,11 +145,11 @@ export class TransactionsApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}/transactions/register`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))),
path: `/apps/{app_id}/transactions/register`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))),
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: CreateTransactionRegisterRequestToJSON(requestParameters.createTransactionRegisterRequest),
body: CreateTransactionRegisterRequestToJSON(requestParameters['createTransactionRegisterRequest']),
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => CreateTransactionResponseFromJSON(jsonValue));
Expand Down
39 changes: 27 additions & 12 deletions src/generated/apis/UserDevicesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,25 @@ export class UserDevicesApi extends runtime.BaseAPI {
* Delete a device for a user
*/
async deleteUserDevicesRaw(requestParameters: DeleteUserDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling deleteUserDevices.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling deleteUserDevices().'
);
}

if (requestParameters.userId === null || requestParameters.userId === undefined) {
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling deleteUserDevices.');
if (requestParameters['userId'] == null) {
throw new runtime.RequiredError(
'userId',
'Required parameter "userId" was null or undefined when calling deleteUserDevices().'
);
}

if (requestParameters.deviceId === null || requestParameters.deviceId === undefined) {
throw new runtime.RequiredError('deviceId','Required parameter requestParameters.deviceId was null or undefined when calling deleteUserDevices.');
if (requestParameters['deviceId'] == null) {
throw new runtime.RequiredError(
'deviceId',
'Required parameter "deviceId" was null or undefined when calling deleteUserDevices().'
);
}

const queryParameters: any = {};
Expand All @@ -77,7 +86,7 @@ export class UserDevicesApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}/users/{user_id}/devices/{device_id}`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters.userId))).replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters.deviceId))),
path: `/apps/{app_id}/users/{user_id}/devices/{device_id}`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId']))),
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
Expand All @@ -99,12 +108,18 @@ export class UserDevicesApi extends runtime.BaseAPI {
* List User Devices
*/
async listUserDevicesRaw(requestParameters: ListUserDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDevicesResponse>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling listUserDevices.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling listUserDevices().'
);
}

if (requestParameters.userId === null || requestParameters.userId === undefined) {
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling listUserDevices.');
if (requestParameters['userId'] == null) {
throw new runtime.RequiredError(
'userId',
'Required parameter "userId" was null or undefined when calling listUserDevices().'
);
}

const queryParameters: any = {};
Expand All @@ -120,7 +135,7 @@ export class UserDevicesApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}/users/{user_id}/devices`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters.userId))),
path: `/apps/{app_id}/users/{user_id}/devices`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId']))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
Expand Down
69 changes: 39 additions & 30 deletions src/generated/apis/UsersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,18 @@ export class UsersApi extends runtime.BaseAPI {
* Get User
*/
async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling getUser.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling getUser().'
);
}

if (requestParameters.userId === null || requestParameters.userId === undefined) {
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling getUser.');
if (requestParameters['userId'] == null) {
throw new runtime.RequiredError(
'userId',
'Required parameter "userId" was null or undefined when calling getUser().'
);
}

const queryParameters: any = {};
Expand All @@ -88,7 +94,7 @@ export class UsersApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}/users/{user_id}`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters.userId))),
path: `/apps/{app_id}/users/{user_id}`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId']))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
Expand All @@ -111,54 +117,57 @@ export class UsersApi extends runtime.BaseAPI {
* List Users
*/
async listPaginatedUsersRaw(requestParameters: ListPaginatedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPaginatedUsersResponse>> {
if (requestParameters.appId === null || requestParameters.appId === undefined) {
throw new runtime.RequiredError('appId','Required parameter requestParameters.appId was null or undefined when calling listPaginatedUsers.');
if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling listPaginatedUsers().'
);
}

const queryParameters: any = {};

if (requestParameters.page !== undefined) {
queryParameters['page'] = requestParameters.page;
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
}

if (requestParameters.limit !== undefined) {
queryParameters['limit'] = requestParameters.limit;
if (requestParameters['limit'] != null) {
queryParameters['limit'] = requestParameters['limit'];
}

if (requestParameters.createdBefore !== undefined) {
queryParameters['created_before'] = requestParameters.createdBefore;
if (requestParameters['createdBefore'] != null) {
queryParameters['created_before'] = requestParameters['createdBefore'];
}

if (requestParameters.orderBy !== undefined) {
queryParameters['order_by'] = requestParameters.orderBy;
if (requestParameters['orderBy'] != null) {
queryParameters['order_by'] = requestParameters['orderBy'];
}

if (requestParameters.identifier !== undefined) {
queryParameters['identifier'] = requestParameters.identifier;
if (requestParameters['identifier'] != null) {
queryParameters['identifier'] = requestParameters['identifier'];
}

if (requestParameters.id !== undefined) {
queryParameters['id'] = requestParameters.id;
if (requestParameters['id'] != null) {
queryParameters['id'] = requestParameters['id'];
}

if (requestParameters.loginCount !== undefined) {
queryParameters['login_count'] = requestParameters.loginCount;
if (requestParameters['loginCount'] != null) {
queryParameters['login_count'] = requestParameters['loginCount'];
}

if (requestParameters.status !== undefined) {
queryParameters['status'] = requestParameters.status;
if (requestParameters['status'] != null) {
queryParameters['status'] = requestParameters['status'];
}

if (requestParameters.createdAt !== undefined) {
queryParameters['created_at'] = requestParameters.createdAt;
if (requestParameters['createdAt'] != null) {
queryParameters['created_at'] = requestParameters['createdAt'];
}

if (requestParameters.updatedAt !== undefined) {
queryParameters['updated_at'] = requestParameters.updatedAt;
if (requestParameters['updatedAt'] != null) {
queryParameters['updated_at'] = requestParameters['updatedAt'];
}

if (requestParameters.lastLoginAt !== undefined) {
queryParameters['last_login_at'] = requestParameters.lastLoginAt;
if (requestParameters['lastLoginAt'] != null) {
queryParameters['last_login_at'] = requestParameters['lastLoginAt'];
}

const headerParameters: runtime.HTTPHeaders = {};
Expand All @@ -172,7 +181,7 @@ export class UsersApi extends runtime.BaseAPI {
}
}
const response = await this.request({
path: `/apps/{app_id}/users`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters.appId))),
path: `/apps/{app_id}/users`.replace(`{${"app_id"}}`, encodeURIComponent(String(requestParameters['appId']))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
Expand Down
Loading

0 comments on commit 6e7bde9

Please sign in to comment.