From 4d02074e4decc9369e074fe6f9281a9b30d8041a Mon Sep 17 00:00:00 2001 From: samankittani Date: Mon, 26 Jan 2026 13:28:36 -0600 Subject: [PATCH 1/2] chore: add new cloud types --- src/types/CreateAssignmentData.ts | 3 +-- src/types/GroupJoinCode.ts | 4 ++++ src/types/JoinCodeRequest.ts | 3 +++ src/types/LogMessage.ts | 3 +++ src/types/NewUserBatch.ts | 4 ++++ src/types/NewUserErrorResponse.ts | 3 +++ src/types/RoleMetadata.ts | 3 ++- src/types/S3Key.ts | 3 +++ src/types/UpdateUserData.ts | 5 +++++ 9 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 src/types/GroupJoinCode.ts create mode 100644 src/types/JoinCodeRequest.ts create mode 100644 src/types/LogMessage.ts create mode 100644 src/types/NewUserBatch.ts create mode 100644 src/types/NewUserErrorResponse.ts create mode 100644 src/types/S3Key.ts create mode 100644 src/types/UpdateUserData.ts diff --git a/src/types/CreateAssignmentData.ts b/src/types/CreateAssignmentData.ts index f84e69c..8c9d28b 100644 --- a/src/types/CreateAssignmentData.ts +++ b/src/types/CreateAssignmentData.ts @@ -1,4 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { GroupId } from "./GroupId"; -export interface CreateAssignmentData { name: string, dueDate: any, } +export interface CreateAssignmentData { name: string, dueDate: any, } \ No newline at end of file diff --git a/src/types/GroupJoinCode.ts b/src/types/GroupJoinCode.ts new file mode 100644 index 0000000..fdf223b --- /dev/null +++ b/src/types/GroupJoinCode.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { GroupId } from "./GroupId"; + +export interface GroupJoinCode { group: GroupId, code: string, createdAt: any, } \ No newline at end of file diff --git a/src/types/JoinCodeRequest.ts b/src/types/JoinCodeRequest.ts new file mode 100644 index 0000000..0333bc6 --- /dev/null +++ b/src/types/JoinCodeRequest.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface JoinCodeRequest { code: string, } \ No newline at end of file diff --git a/src/types/LogMessage.ts b/src/types/LogMessage.ts new file mode 100644 index 0000000..cd60514 --- /dev/null +++ b/src/types/LogMessage.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface LogMessage { sender: string, recipients: Array, content: object, } \ No newline at end of file diff --git a/src/types/NewUserBatch.ts b/src/types/NewUserBatch.ts new file mode 100644 index 0000000..8aa89e7 --- /dev/null +++ b/src/types/NewUserBatch.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { NewUser } from "./NewUser"; + +export interface NewUserBatch { users: Array, } \ No newline at end of file diff --git a/src/types/NewUserErrorResponse.ts b/src/types/NewUserErrorResponse.ts new file mode 100644 index 0000000..909786b --- /dev/null +++ b/src/types/NewUserErrorResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface NewUserErrorResponse { username: string, status: number, message: string, } \ No newline at end of file diff --git a/src/types/RoleMetadata.ts b/src/types/RoleMetadata.ts index 2334989..2c783de 100644 --- a/src/types/RoleMetadata.ts +++ b/src/types/RoleMetadata.ts @@ -1,3 +1,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { S3Key } from "./S3Key"; -export interface RoleMetadata { name: string, code: string, media: string, } \ No newline at end of file +export interface RoleMetadata { name: string, code: S3Key, media: S3Key, } \ No newline at end of file diff --git a/src/types/S3Key.ts b/src/types/S3Key.ts new file mode 100644 index 0000000..d120f05 --- /dev/null +++ b/src/types/S3Key.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type S3Key = string; \ No newline at end of file diff --git a/src/types/UpdateUserData.ts b/src/types/UpdateUserData.ts new file mode 100644 index 0000000..b07851f --- /dev/null +++ b/src/types/UpdateUserData.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { GroupId } from "./GroupId"; +import type { UserRole } from "./UserRole"; + +export interface UpdateUserData { email: string | null, groupId: GroupId | null, role: UserRole | null, } \ No newline at end of file From 8f28021147242728b77e62167926bcbb16052b8e Mon Sep 17 00:00:00 2001 From: samankittani Date: Mon, 26 Jan 2026 13:48:06 -0600 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 955e296..b03578a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "netsblox-cloud-client", - "version": "2.4.1", + "version": "2.5.0", "description": "JS client for the netsblox cloud", "main": "index.js", "scripts": {