diff --git a/package-lock.json b/package-lock.json index b4748d4..516ea2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5239,9 +5239,9 @@ } }, "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -7386,14 +7386,10 @@ "license": "MIT" }, "node_modules/ip-address": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", - "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", + "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", "license": "MIT", - "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, "engines": { "node": ">= 12" } @@ -8008,12 +8004,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsbn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", - "license": "MIT" - }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", @@ -9747,9 +9737,9 @@ } }, "node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -10021,12 +10011,12 @@ } }, "node_modules/socks": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.5.tgz", - "integrity": "sha512-iF+tNDQla22geJdTyJB1wM/qrX9DMRwWrciEPwWLPRWAUEM8sQiyxgckLxWT1f7+9VabJS0jTGGr4QgBuvi6Ww==", + "version": "2.8.7", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz", + "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", "license": "MIT", "dependencies": { - "ip-address": "^9.0.5", + "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" }, "engines": { @@ -10061,12 +10051,6 @@ "memory-pager": "^1.0.2" } }, - "node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "license": "BSD-3-Clause" - }, "node_modules/sshpk": { "version": "1.18.0", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", diff --git a/src/services/grpc/account/v2/create-audit-log-comment.ts b/src/services/grpc/account/v2/create-audit-log-comment.ts new file mode 100644 index 0000000..4eb4d87 --- /dev/null +++ b/src/services/grpc/account/v2/create-audit-log-comment.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { CreateAuditLogCommentRequest, CreateAuditLogCommentResponse } from '@pretendonetwork/grpc/account/v2/create_audit_log_comment_rpc'; + +export async function createAuditLogComment(_request: CreateAuditLogCommentRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/create-ban-comment.ts b/src/services/grpc/account/v2/create-ban-comment.ts new file mode 100644 index 0000000..aee6d6d --- /dev/null +++ b/src/services/grpc/account/v2/create-ban-comment.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { CreateBanCommentRequest, CreateBanCommentResponse } from '@pretendonetwork/grpc/account/v2/create_ban_comment_rpc'; + +export async function createBanComment(_request: CreateBanCommentRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/create-server.ts b/src/services/grpc/account/v2/create-server.ts new file mode 100644 index 0000000..f681893 --- /dev/null +++ b/src/services/grpc/account/v2/create-server.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { CreateServerRequest, CreateServerResponse } from '@pretendonetwork/grpc/account/v2/create_server_rpc'; + +export async function createServer(_request: CreateServerRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/delete-pnid.ts b/src/services/grpc/account/v2/delete-pnid.ts new file mode 100644 index 0000000..68acbb4 --- /dev/null +++ b/src/services/grpc/account/v2/delete-pnid.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { DeletePNIDRequest, DeletePNIDResponse } from '@pretendonetwork/grpc/account/v2/delete_pnid_rpc'; + +export async function deletePNID(_request: DeletePNIDRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/delete-server.ts b/src/services/grpc/account/v2/delete-server.ts new file mode 100644 index 0000000..cb0203e --- /dev/null +++ b/src/services/grpc/account/v2/delete-server.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { DeleteServerRequest, DeleteServerResponse } from '@pretendonetwork/grpc/account/v2/delete_server_rpc'; + +export async function deleteServer(_request: DeleteServerRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/exchange-independent-service-token-for-user-data.ts b/src/services/grpc/account/v2/exchange-independent-service-token-for-user-data.ts new file mode 100644 index 0000000..a43687c --- /dev/null +++ b/src/services/grpc/account/v2/exchange-independent-service-token-for-user-data.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ExchangeIndependentServiceTokenForUserDataRequest, ExchangeIndependentServiceTokenForUserDataResponse } from '@pretendonetwork/grpc/account/v2/exchange_independent_service_token_for_user_data_rpc'; + +export async function exchangeIndependentServiceTokenForUserData(_request: ExchangeIndependentServiceTokenForUserDataRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/exchange-nex-token-for-user-data.ts b/src/services/grpc/account/v2/exchange-nex-token-for-user-data.ts new file mode 100644 index 0000000..d24da4f --- /dev/null +++ b/src/services/grpc/account/v2/exchange-nex-token-for-user-data.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ExchangeNEXTokenForUserDataRequest, ExchangeNEXTokenForUserDataResponse } from '@pretendonetwork/grpc/account/v2/exchange_nex_token_for_user_data_rpc'; + +export async function exchangeNEXTokenForUserData(_request: ExchangeNEXTokenForUserDataRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/exchange-oauth-token-for-user-data.ts b/src/services/grpc/account/v2/exchange-oauth-token-for-user-data.ts new file mode 100644 index 0000000..778b0e9 --- /dev/null +++ b/src/services/grpc/account/v2/exchange-oauth-token-for-user-data.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ExchangeOAuthTokenForUserDataRequest, ExchangeOAuthTokenForUserDataResponse } from '@pretendonetwork/grpc/account/v2/exchange_oauth_token_for_user_data_rpc'; + +export async function exchangeOAuthTokenForUserData(_request: ExchangeOAuthTokenForUserDataRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/exchange-password-reset-token-for-user-data.ts b/src/services/grpc/account/v2/exchange-password-reset-token-for-user-data.ts new file mode 100644 index 0000000..d9454bf --- /dev/null +++ b/src/services/grpc/account/v2/exchange-password-reset-token-for-user-data.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ExchangePasswordResetTokenForUserDataRequest, ExchangePasswordResetTokenForUserDataResponse } from '@pretendonetwork/grpc/account/v2/exchange_password_reset_token_for_user_data_rpc'; + +export async function exchangePasswordResetTokenForUserData(_request: ExchangePasswordResetTokenForUserDataRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/get-ban.ts b/src/services/grpc/account/v2/get-ban.ts new file mode 100644 index 0000000..746e49a --- /dev/null +++ b/src/services/grpc/account/v2/get-ban.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { GetBanRequest, GetBanResponse } from '@pretendonetwork/grpc/account/v2/get_ban_rpc'; + +export async function getBan(_request: GetBanRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/get-device.ts b/src/services/grpc/account/v2/get-device.ts new file mode 100644 index 0000000..e116c2f --- /dev/null +++ b/src/services/grpc/account/v2/get-device.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { GetDeviceRequest, GetDeviceResponse } from '@pretendonetwork/grpc/account/v2/get_device_rpc'; + +export async function getDevice(_request: GetDeviceRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/get-nex-account.ts b/src/services/grpc/account/v2/get-nex-account.ts new file mode 100644 index 0000000..ea810e6 --- /dev/null +++ b/src/services/grpc/account/v2/get-nex-account.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { GetNEXAccountRequest, GetNEXAccountResponse } from '@pretendonetwork/grpc/account/v2/get_nex_account_rpc'; + +export async function getNEXAccount(_request: GetNEXAccountRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/get-pnid.ts b/src/services/grpc/account/v2/get-pnid.ts new file mode 100644 index 0000000..075bfe5 --- /dev/null +++ b/src/services/grpc/account/v2/get-pnid.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { GetPNIDRequest, GetPNIDResponse } from '@pretendonetwork/grpc/account/v2/get_pnid_rpc'; + +export async function getPNID(_request: GetPNIDRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/get-server.ts b/src/services/grpc/account/v2/get-server.ts new file mode 100644 index 0000000..0e2b9c8 --- /dev/null +++ b/src/services/grpc/account/v2/get-server.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { GetServerRequest, GetServerResponse } from '@pretendonetwork/grpc/account/v2/get_server_rpc'; + +export async function getServer(_request: GetServerRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/implementation.ts b/src/services/grpc/account/v2/implementation.ts index d8ed211..9528225 100644 --- a/src/services/grpc/account/v2/implementation.ts +++ b/src/services/grpc/account/v2/implementation.ts @@ -3,13 +3,74 @@ import { getNEXPassword } from '@/services/grpc/account/v2/get-nex-password'; import { getNEXData } from '@/services/grpc/account/v2/get-nex-data'; import { updatePNIDPermissions } from '@/services/grpc/account/v2/update-pnid-permissions'; import { exchangeTokenForUserData } from '@/services/grpc/account/v2/exchange-token-for-user-data'; +import { exchangeOAuthTokenForUserData } from '@/services/grpc/account/v2/exchange-oauth-token-for-user-data'; +import { exchangeNEXTokenForUserData } from '@/services/grpc/account/v2/exchange-nex-token-for-user-data'; +import { exchangeIndependentServiceTokenForUserData } from '@/services/grpc/account/v2/exchange-independent-service-token-for-user-data'; +import { exchangePasswordResetTokenForUserData } from '@/services/grpc/account/v2/exchange-password-reset-token-for-user-data'; +import { validateIndependentServiceToken } from '@/services/grpc/account/v2/validate-independent-service-token'; import { deleteAccount } from '@/services/grpc/account/v2/delete-account'; +import { listDevices } from '@/services/grpc/account/v2/list-devices'; +import { getDevice } from '@/services/grpc/account/v2/get-device'; +import { updateDevice } from '@/services/grpc/account/v2/update-device'; +import { listNEXAccounts } from '@/services/grpc/account/v2/list-nex-accounts'; +import { getNEXAccount } from '@/services/grpc/account/v2/get-nex-account'; +import { updateNEXAccount } from '@/services/grpc/account/v2/update-nex-account'; +import { listServers } from '@/services/grpc/account/v2/list-servers'; +import { createServer } from '@/services/grpc/account/v2/create-server'; +import { getServer } from '@/services/grpc/account/v2/get-server'; +import { updateServer } from '@/services/grpc/account/v2/update-server'; +import { deleteServer } from '@/services/grpc/account/v2/delete-server'; +import { listPNIDs } from '@/services/grpc/account/v2/list-pnids'; +import { getPNID } from '@/services/grpc/account/v2/get-pnid'; +import { updatePNID } from '@/services/grpc/account/v2/update-pnid'; +import { deletePNID } from '@/services/grpc/account/v2/delete-pnid'; +import { listAuditLogs } from '@/services/grpc/account/v2/list-audit-logs'; +import { listAuditLogComments } from '@/services/grpc/account/v2/list-audit-log-comments'; +import { createAuditLogComment } from '@/services/grpc/account/v2/create-audit-log-comment'; +import { listBans } from '@/services/grpc/account/v2/list-bans'; +import { issueBan } from '@/services/grpc/account/v2/issue-ban'; +import { getBan } from '@/services/grpc/account/v2/get-ban'; +import { updateBan } from '@/services/grpc/account/v2/update-ban'; +import { pardonBan } from '@/services/grpc/account/v2/pardon-ban'; +import { listBanComments } from '@/services/grpc/account/v2/list-ban-comments'; +import { createBanComment } from '@/services/grpc/account/v2/create-ban-comment'; +import type { AccountServiceImplementation } from '@pretendonetwork/grpc/account/v2/account_service'; -export const accountServiceImplementationV2 = { +export const accountServiceImplementationV2: AccountServiceImplementation = { getUserData, getNEXPassword, getNEXData, updatePNIDPermissions, exchangeTokenForUserData, - deleteAccount + exchangeOAuthTokenForUserData, + exchangeNEXTokenForUserData, + exchangeIndependentServiceTokenForUserData, + exchangePasswordResetTokenForUserData, + validateIndependentServiceToken, + deleteAccount, + listDevices, + getDevice, + updateDevice, + listNEXAccounts, + getNEXAccount, + updateNEXAccount, + listServers, + createServer, + getServer, + updateServer, + deleteServer, + listPNIDs, + getPNID, + updatePNID, + deletePNID, + listAuditLogs, + listAuditLogComments, + createAuditLogComment, + listBans, + issueBan, + getBan, + updateBan, + pardonBan, + listBanComments, + createBanComment }; diff --git a/src/services/grpc/account/v2/issue-ban.ts b/src/services/grpc/account/v2/issue-ban.ts new file mode 100644 index 0000000..098e94a --- /dev/null +++ b/src/services/grpc/account/v2/issue-ban.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { IssueBanRequest, IssueBanResponse } from '@pretendonetwork/grpc/account/v2/issue_ban_rpc'; + +export async function issueBan(_request: IssueBanRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-audit-log-comments.ts b/src/services/grpc/account/v2/list-audit-log-comments.ts new file mode 100644 index 0000000..95616e3 --- /dev/null +++ b/src/services/grpc/account/v2/list-audit-log-comments.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListAuditLogCommentsRequest, ListAuditLogCommentsResponse } from '@pretendonetwork/grpc/account/v2/list_audit_log_comments_rpc'; + +export async function listAuditLogComments(_request: ListAuditLogCommentsRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-audit-logs.ts b/src/services/grpc/account/v2/list-audit-logs.ts new file mode 100644 index 0000000..813ec00 --- /dev/null +++ b/src/services/grpc/account/v2/list-audit-logs.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListAuditLogsRequest, ListAuditLogsResponse } from '@pretendonetwork/grpc/account/v2/list_audit_logs_rpc'; + +export async function listAuditLogs(_request: ListAuditLogsRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-ban-comments.ts b/src/services/grpc/account/v2/list-ban-comments.ts new file mode 100644 index 0000000..45ab08a --- /dev/null +++ b/src/services/grpc/account/v2/list-ban-comments.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListBanCommentsRequest, ListBanCommentsResponse } from '@pretendonetwork/grpc/account/v2/list_ban_comments_rpc'; + +export async function listBanComments(_request: ListBanCommentsRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-bans.ts b/src/services/grpc/account/v2/list-bans.ts new file mode 100644 index 0000000..c438f49 --- /dev/null +++ b/src/services/grpc/account/v2/list-bans.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListBansRequest, ListBansResponse } from '@pretendonetwork/grpc/account/v2/list_bans_rpc'; + +export async function listBans(_request: ListBansRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-devices.ts b/src/services/grpc/account/v2/list-devices.ts new file mode 100644 index 0000000..1b3b956 --- /dev/null +++ b/src/services/grpc/account/v2/list-devices.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListDevicesRequest, ListDevicesResponse } from '@pretendonetwork/grpc/account/v2/list_devices_rpc'; + +export async function listDevices(_request: ListDevicesRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-nex-accounts.ts b/src/services/grpc/account/v2/list-nex-accounts.ts new file mode 100644 index 0000000..5575a8c --- /dev/null +++ b/src/services/grpc/account/v2/list-nex-accounts.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListNEXAccountsRequest, ListNEXAccountsResponse } from '@pretendonetwork/grpc/account/v2/list_nex_accounts_rpc'; + +export async function listNEXAccounts(_request: ListNEXAccountsRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-pnids.ts b/src/services/grpc/account/v2/list-pnids.ts new file mode 100644 index 0000000..50e6f8e --- /dev/null +++ b/src/services/grpc/account/v2/list-pnids.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListPNIDsRequest, ListPNIDsResponse } from '@pretendonetwork/grpc/account/v2/list_pnids_rpc'; + +export async function listPNIDs(_request: ListPNIDsRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/list-servers.ts b/src/services/grpc/account/v2/list-servers.ts new file mode 100644 index 0000000..98ba3a6 --- /dev/null +++ b/src/services/grpc/account/v2/list-servers.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ListServersRequest, ListServersResponse } from '@pretendonetwork/grpc/account/v2/list_servers_rpc'; + +export async function listServers(_request: ListServersRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/pardon-ban.ts b/src/services/grpc/account/v2/pardon-ban.ts new file mode 100644 index 0000000..050d184 --- /dev/null +++ b/src/services/grpc/account/v2/pardon-ban.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { PardonBanRequest, PardonBanResponse } from '@pretendonetwork/grpc/account/v2/pardon_ban_rpc'; + +export async function pardonBan(_request: PardonBanRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/update-ban.ts b/src/services/grpc/account/v2/update-ban.ts new file mode 100644 index 0000000..82363ce --- /dev/null +++ b/src/services/grpc/account/v2/update-ban.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { UpdateBanRequest, UpdateBanResponse } from '@pretendonetwork/grpc/account/v2/update_ban_rpc'; + +export async function updateBan(_request: UpdateBanRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/update-device.ts b/src/services/grpc/account/v2/update-device.ts new file mode 100644 index 0000000..bb84801 --- /dev/null +++ b/src/services/grpc/account/v2/update-device.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { UpdateDeviceRequest, UpdateDeviceResponse } from '@pretendonetwork/grpc/account/v2/update_device_rpc'; + +export async function updateDevice(_request: UpdateDeviceRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/update-nex-account.ts b/src/services/grpc/account/v2/update-nex-account.ts new file mode 100644 index 0000000..c228a24 --- /dev/null +++ b/src/services/grpc/account/v2/update-nex-account.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { UpdateNEXAccountRequest, UpdateNEXAccountResponse } from '@pretendonetwork/grpc/account/v2/update_nex_account_rpc'; + +export async function updateNEXAccount(_request: UpdateNEXAccountRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/update-pnid.ts b/src/services/grpc/account/v2/update-pnid.ts new file mode 100644 index 0000000..d54d719 --- /dev/null +++ b/src/services/grpc/account/v2/update-pnid.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { UpdatePNIDRequest, UpdatePNIDResponse } from '@pretendonetwork/grpc/account/v2/update_pnid_rpc'; + +export async function updatePNID(_request: UpdatePNIDRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/update-server.ts b/src/services/grpc/account/v2/update-server.ts new file mode 100644 index 0000000..0439c35 --- /dev/null +++ b/src/services/grpc/account/v2/update-server.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { UpdateServerRequest, UpdateServerResponse } from '@pretendonetwork/grpc/account/v2/update_server_rpc'; + +export async function updateServer(_request: UpdateServerRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +} diff --git a/src/services/grpc/account/v2/validate-independent-service-token.ts b/src/services/grpc/account/v2/validate-independent-service-token.ts new file mode 100644 index 0000000..98b7ff5 --- /dev/null +++ b/src/services/grpc/account/v2/validate-independent-service-token.ts @@ -0,0 +1,9 @@ +import { Status, ServerError } from 'nice-grpc'; +import type { ValidateIndependentServiceTokenRequest, ValidateIndependentServiceTokenResponse } from '@pretendonetwork/grpc/account/v2/validate_independent_service_token_rpc'; + +export async function validateIndependentServiceToken(_request: ValidateIndependentServiceTokenRequest): Promise { + throw new ServerError( + Status.UNIMPLEMENTED, + 'Stubbed' + ); +}