Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 54ce087

Browse files
authored
chore: migrate from yaml to json (#103)
1 parent 8fb6f44 commit 54ce087

File tree

17 files changed

+642
-256
lines changed

17 files changed

+642
-256
lines changed

modules/auth/module.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "Authentication",
3+
"description": "Authenticate users with multiple authentication methods.",
4+
"icon": "key",
5+
"tags": [
6+
"core",
7+
"auth",
8+
"user"
9+
],
10+
"authors": [
11+
"rivet-gg",
12+
"NathanFlurry"
13+
],
14+
"status": "stable",
15+
"dependencies": {
16+
"email": {},
17+
"users": {},
18+
"rate_limit": {}
19+
},
20+
"scripts": {
21+
"auth_email_passwordless": {
22+
"name": "Authenticate Email Passwordless",
23+
"description": "Send a one-time verification code to a user's email address to authenticate them.",
24+
"public": true
25+
},
26+
"verify_email_passwordless": {
27+
"name": "Verify Email Passwordless",
28+
"description": "Verify a user's email address with a one-time verification code.",
29+
"public": true
30+
}
31+
},
32+
"errors": {
33+
"provider_disabled": {
34+
"name": "Provider Disabled"
35+
},
36+
"verification_code_invalid": {
37+
"name": "Verification Code Invalid"
38+
},
39+
"verification_code_attempt_limit": {
40+
"name": "Verification Code Attempt Limit"
41+
},
42+
"verification_code_expired": {
43+
"name": "Verification Code Expired"
44+
},
45+
"verification_code_already_used": {
46+
"name": "Verification Code Already Used"
47+
},
48+
"email_already_used": {
49+
"name": "Email Already Used"
50+
}
51+
}
52+
}

modules/auth/module.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

modules/currency/module.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "Currency",
3+
"description": "Track user balances and allow them to deposit and withdraw.",
4+
"icon": "coin",
5+
"tags": [
6+
"economy"
7+
],
8+
"authors": [
9+
"ABCxFF"
10+
],
11+
"status": "preview",
12+
"dependencies": {
13+
"rate_limit": {},
14+
"users": {}
15+
},
16+
"scripts": {
17+
"deposit": {
18+
"name": "Deposit"
19+
},
20+
"withdraw": {
21+
"name": "Withdraw"
22+
},
23+
"get_balance": {
24+
"name": "Get Balance"
25+
},
26+
"set_balance": {
27+
"name": "Set Balance"
28+
},
29+
"get_balance_by_token": {
30+
"name": "Get Balance by Token",
31+
"public": true
32+
}
33+
},
34+
"errors": {
35+
"invalid_user": {
36+
"name": "Invalid User"
37+
},
38+
"invalid_amount": {
39+
"name": "Invalid Amount"
40+
},
41+
"not_enough_funds": {
42+
"name": "Not Enough Funds"
43+
}
44+
}
45+
}

modules/currency/module.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

modules/email/module.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "Email",
3+
"description": "Send emails using multiple providers.",
4+
"icon": "envelope",
5+
"tags": [
6+
"email"
7+
],
8+
"authors": [
9+
"rivet-gg",
10+
"NathanFlurry"
11+
],
12+
"status": "stable",
13+
"scripts": {
14+
"send_email": {
15+
"name": "Send Email"
16+
}
17+
},
18+
"errors": {
19+
"email_missing_content": {
20+
"name": "Email Missing Content",
21+
"description": "Email must have `html` and/or `text`"
22+
},
23+
"sendgrid_error": {
24+
"name": "SendGrid Error"
25+
}
26+
}
27+
}

modules/email/module.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

modules/friends/module.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"name": "Friends",
3+
"description": "Allow users to send and accept friend requests.",
4+
"icon": "user-group",
5+
"tags": [
6+
"social"
7+
],
8+
"authors": [
9+
"rivet-gg",
10+
"NathanFlurry"
11+
],
12+
"status": "beta",
13+
"dependencies": {
14+
"rate_limit": {},
15+
"users": {}
16+
},
17+
"scripts": {
18+
"send_request": {
19+
"name": "Send Request",
20+
"description": "Send a friend request to another user.",
21+
"public": true
22+
},
23+
"accept_request": {
24+
"name": "Accept Request",
25+
"description": "Accept a friend request from another user.",
26+
"public": true
27+
},
28+
"decline_request": {
29+
"name": "Decline Request",
30+
"description": "Decline a friend request from another user.",
31+
"public": true
32+
},
33+
"remove_friend": {
34+
"name": "Remove Friend",
35+
"description": "Remove a friend from your friends list.",
36+
"public": true
37+
},
38+
"list_friends": {
39+
"name": "List Friends",
40+
"description": "List all friends of a user.",
41+
"public": true
42+
},
43+
"list_outgoing_friend_requests": {
44+
"name": "List Outgoing Friend Requests",
45+
"description": "List all friend requests sent by a user.",
46+
"public": true
47+
},
48+
"list_incoming_friend_requests": {
49+
"name": "List Incoming Friend Requests",
50+
"description": "List all friend requests received by a user.",
51+
"public": true
52+
}
53+
},
54+
"errors": {
55+
"already_friends": {
56+
"name": "Already Friends"
57+
},
58+
"friend_request_not_found": {
59+
"name": "Friend Request Not Found"
60+
},
61+
"friend_request_already_exists": {
62+
"name": "Friend Request Already Exists"
63+
},
64+
"not_friend_request_recipient": {
65+
"name": "Not Friend Request Recipient"
66+
},
67+
"friend_request_already_accepted": {
68+
"name": "Friend Request Already Accepted"
69+
},
70+
"friend_request_already_declined": {
71+
"name": "Friend Request Already Declined"
72+
},
73+
"cannot_send_to_self": {
74+
"name": "Cannot Send to Self"
75+
}
76+
}
77+
}

modules/friends/module.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.

modules/rate_limit/module.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Rate Limit",
3+
"description": "Prevent abuse by limiting request rate.",
4+
"icon": "gauge-circle-minus",
5+
"tags": [
6+
"core",
7+
"utility"
8+
],
9+
"authors": [
10+
"rivet-gg",
11+
"NathanFlurry"
12+
],
13+
"status": "stable",
14+
"scripts": {
15+
"throttle": {
16+
"name": "Throttle",
17+
"description": "Limit the amount of times an request can be made by a given key."
18+
},
19+
"throttle_public": {
20+
"name": "Throttle Public",
21+
"description": "Limit the amount of times a public request can be made by a given key. This will rate limit based off the user's IP address."
22+
}
23+
},
24+
"errors": {
25+
"rate_limit_exceeded": {
26+
"name": "Rate Limit Exceeded"
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)