mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-04-24 23:11:05 -05:00
feat(grpc): stub release 2.4.0
This commit is contained in:
parent
d174cf4dbb
commit
a50857af89
58
package-lock.json
generated
58
package-lock.json
generated
|
|
@ -12,7 +12,7 @@
|
|||
"@aws-sdk/client-s3": "^3.657.0",
|
||||
"@aws-sdk/client-ses": "^3.515.0",
|
||||
"@inquirer/prompts": "^7.2.0",
|
||||
"@pretendonetwork/grpc": "^2.2.3",
|
||||
"@pretendonetwork/grpc": "^2.4.0",
|
||||
"bcrypt": "^5.0.0",
|
||||
"buffer-crc32": "^0.2.13",
|
||||
"colors": "^1.4.0",
|
||||
|
|
@ -2282,9 +2282,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@pretendonetwork/grpc": {
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@pretendonetwork/grpc/-/grpc-2.2.3.tgz",
|
||||
"integrity": "sha512-bTyUtFPT1/IwAWix9nkNZlmUUlG/k0F6YnARpNIceg9F6Mw1iHvGvMwvuX06PY9svnKDUeGdyR41rl/YUilfBQ==",
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@pretendonetwork/grpc/-/grpc-2.4.0.tgz",
|
||||
"integrity": "sha512-DWDMadLkdMI6juZmcBYRZNVgYhMNwkO0Zmh9WBoY/2OANXDcgNOnLapICSZbVGrRFRPioxF6d/LAIltCbgxYgw==",
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@bufbuild/protobuf": "^2.2.2",
|
||||
|
|
@ -2383,7 +2383,6 @@
|
|||
"resolved": "https://registry.npmjs.org/@redis/client/-/client-1.6.1.tgz",
|
||||
"integrity": "sha512-/KCsg3xSlR+nCK8/8ZYSknYxvXHwubJrU82F3Lm1Fp6789VQ0/3RJKfsmRXjqfaTA++23CvC3hqmqe/2GEt6Kw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"cluster-key-slot": "1.1.2",
|
||||
"generic-pool": "3.9.0",
|
||||
|
|
@ -3429,7 +3428,6 @@
|
|||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.112.tgz",
|
||||
"integrity": "sha512-i+Vukt9POdS/MBI7YrrkkI5fMfwFtOjphSmt4WXYLfwqsfr6z/HdCx7LqT9M7JktGob8WNgj8nFB4TbGNE4Cog==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"undici-types": "~5.26.4"
|
||||
}
|
||||
|
|
@ -3575,7 +3573,6 @@
|
|||
"integrity": "sha512-4O3idHxhyzjClSMJ0a29AcoK0+YwnEqzI6oz3vlRf3xw0zbzt15MzXwItOlnr5nIth6zlY2RENLsOPvhyrKAQA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.34.1",
|
||||
"@typescript-eslint/types": "8.34.1",
|
||||
|
|
@ -4061,7 +4058,6 @@
|
|||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"acorn": "bin/acorn"
|
||||
},
|
||||
|
|
@ -5202,9 +5198,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"
|
||||
|
|
@ -5855,7 +5851,6 @@
|
|||
"integrity": "sha512-GsGizj2Y1rCWDu6XoEekL3RLilp0voSePurjZIkxL3wlm5o5EC9VpgaP7lrCvjnkuLvzFBQWB3vWB3K5KQTveQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.2.0",
|
||||
"@eslint-community/regexpp": "^4.12.1",
|
||||
|
|
@ -6002,7 +5997,6 @@
|
|||
"integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@rtsao/scc": "^1.1.0",
|
||||
"array-includes": "^3.1.8",
|
||||
|
|
@ -7338,14 +7332,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"
|
||||
}
|
||||
|
|
@ -7960,12 +7950,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",
|
||||
|
|
@ -8440,7 +8424,6 @@
|
|||
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.8.7.tgz",
|
||||
"integrity": "sha512-5Bo4CrUxrPITrhMKsqUTOkXXo2CoRC5tXxVQhnddCzqDMwRXfyStrxj1oY865g8gaekSBhxAeNkYyUSJvGm9Hw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"bson": "^5.5.0",
|
||||
"kareem": "2.5.1",
|
||||
|
|
@ -9647,9 +9630,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"
|
||||
|
|
@ -9921,12 +9904,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": {
|
||||
|
|
@ -9961,12 +9944,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",
|
||||
|
|
@ -10679,7 +10656,6 @@
|
|||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
|
||||
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
"@aws-sdk/client-s3": "^3.657.0",
|
||||
"@aws-sdk/client-ses": "^3.515.0",
|
||||
"@inquirer/prompts": "^7.2.0",
|
||||
"@pretendonetwork/grpc": "^2.2.3",
|
||||
"@pretendonetwork/grpc": "^2.4.0",
|
||||
"bcrypt": "^5.0.0",
|
||||
"buffer-crc32": "^0.2.13",
|
||||
"colors": "^1.4.0",
|
||||
|
|
|
|||
9
src/services/grpc/account/v2/create-audit-log-comment.ts
Normal file
9
src/services/grpc/account/v2/create-audit-log-comment.ts
Normal file
|
|
@ -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<CreateAuditLogCommentResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/create-ban-comment.ts
Normal file
9
src/services/grpc/account/v2/create-ban-comment.ts
Normal file
|
|
@ -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<CreateBanCommentResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/create-server.ts
Normal file
9
src/services/grpc/account/v2/create-server.ts
Normal file
|
|
@ -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<CreateServerResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/delete-pnid.ts
Normal file
9
src/services/grpc/account/v2/delete-pnid.ts
Normal file
|
|
@ -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<DeletePNIDResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/delete-server.ts
Normal file
9
src/services/grpc/account/v2/delete-server.ts
Normal file
|
|
@ -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<DeleteServerResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
|
|
@ -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<ExchangeIndependentServiceTokenForUserDataResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
|
|
@ -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<ExchangeNEXTokenForUserDataResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
|
|
@ -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<ExchangeOAuthTokenForUserDataResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
|
|
@ -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<ExchangePasswordResetTokenForUserDataResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/get-ban.ts
Normal file
9
src/services/grpc/account/v2/get-ban.ts
Normal file
|
|
@ -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<GetBanResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/get-device.ts
Normal file
9
src/services/grpc/account/v2/get-device.ts
Normal file
|
|
@ -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<GetDeviceResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/get-nex-account.ts
Normal file
9
src/services/grpc/account/v2/get-nex-account.ts
Normal file
|
|
@ -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<GetNEXAccountResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/get-pnid.ts
Normal file
9
src/services/grpc/account/v2/get-pnid.ts
Normal file
|
|
@ -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<GetPNIDResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/get-server.ts
Normal file
9
src/services/grpc/account/v2/get-server.ts
Normal file
|
|
@ -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<GetServerResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
9
src/services/grpc/account/v2/issue-ban.ts
Normal file
9
src/services/grpc/account/v2/issue-ban.ts
Normal file
|
|
@ -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<IssueBanResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-audit-log-comments.ts
Normal file
9
src/services/grpc/account/v2/list-audit-log-comments.ts
Normal file
|
|
@ -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<ListAuditLogCommentsResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-audit-logs.ts
Normal file
9
src/services/grpc/account/v2/list-audit-logs.ts
Normal file
|
|
@ -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<ListAuditLogsResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-ban-comments.ts
Normal file
9
src/services/grpc/account/v2/list-ban-comments.ts
Normal file
|
|
@ -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<ListBanCommentsResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-bans.ts
Normal file
9
src/services/grpc/account/v2/list-bans.ts
Normal file
|
|
@ -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<ListBansResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-devices.ts
Normal file
9
src/services/grpc/account/v2/list-devices.ts
Normal file
|
|
@ -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<ListDevicesResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-nex-accounts.ts
Normal file
9
src/services/grpc/account/v2/list-nex-accounts.ts
Normal file
|
|
@ -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<ListNEXAccountsResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-pnids.ts
Normal file
9
src/services/grpc/account/v2/list-pnids.ts
Normal file
|
|
@ -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<ListPNIDsResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/list-servers.ts
Normal file
9
src/services/grpc/account/v2/list-servers.ts
Normal file
|
|
@ -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<ListServersResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/pardon-ban.ts
Normal file
9
src/services/grpc/account/v2/pardon-ban.ts
Normal file
|
|
@ -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<PardonBanResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/update-ban.ts
Normal file
9
src/services/grpc/account/v2/update-ban.ts
Normal file
|
|
@ -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<UpdateBanResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/update-device.ts
Normal file
9
src/services/grpc/account/v2/update-device.ts
Normal file
|
|
@ -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<UpdateDeviceResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/update-nex-account.ts
Normal file
9
src/services/grpc/account/v2/update-nex-account.ts
Normal file
|
|
@ -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<UpdateNEXAccountResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/update-pnid.ts
Normal file
9
src/services/grpc/account/v2/update-pnid.ts
Normal file
|
|
@ -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<UpdatePNIDResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
9
src/services/grpc/account/v2/update-server.ts
Normal file
9
src/services/grpc/account/v2/update-server.ts
Normal file
|
|
@ -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<UpdateServerResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
|
|
@ -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<ValidateIndependentServiceTokenResponse> {
|
||||
throw new ServerError(
|
||||
Status.UNIMPLEMENTED,
|
||||
'Stubbed'
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user