forked from PlasmoHQ/bpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
keys.schema.json
139 lines (139 loc) Β· 4.94 KB
/
keys.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://plasmo.com/bpp/keys.schema.json",
"title": "Browser Platform Publisher Keys v3",
"description": "Deployment Keys for the Plasmo's BPP Action.",
"$ref": "#/definitions/Root",
"definitions": {
"Root": {
"type": "object",
"properties": {
"chrome": {
"allOf": [
{ "$ref": "#/definitions/Common" },
{ "$ref": "#/definitions/Chrome" }
]
},
"firefox": {
"allOf": [
{ "$ref": "#/definitions/Common" },
{ "$ref": "#/definitions/Firefox" }
]
},
"edge": {
"allOf": [
{ "$ref": "#/definitions/Common" },
{ "$ref": "#/definitions/Edge" }
]
}
}
},
"Common": {
"description": "Common properties",
"type": "object",
"properties": {
"zip": {
"type": "string",
"description": "The zip file containing the extension. manifest.json but be in the root of the zip file."
},
"file": {
"type": "string",
"description": "Alias to zip"
},
"notes": {
"type": "string",
"description": "Provide notes for certification to the Edge Add-ons reviewers"
},
"verbose": {
"type": "boolean",
"description": "Enable verbose logging"
}
}
},
"Chrome": {
"description": "For refreshToken and clientId, follow: https://github.com/PlasmoHQ/chrome-webstore-api/blob/main/token.md",
"type": "object",
"properties": {
"extId": {
"type": "string",
"description": "Get it from https://chrome.google.com/webstore/detail/EXT_ID"
},
"refreshToken": {
"type": "string",
"description": "See: https://github.com/PlasmoHQ/chrome-webstore-api/blob/main/token.md"
},
"clientId": {
"type": "string",
"description": "See: https://github.com/PlasmoHQ/chrome-webstore-api/blob/main/token.md"
},
"clientSecret": {
"type": "string",
"description": "See: https://github.com/PlasmoHQ/chrome-webstore-api/blob/main/token.md"
},
"target": {
"type": "string",
"description": "The target audience to publish to. Defaults to 'default'",
"enum": ["default", "trustedTesters"],
"default": "default"
}
},
"required": ["extId", "refreshToken", "clientId", "clientSecret"]
},
"Firefox": {
"type": "object",
"description": "For API Key and API Secret, visit: https://addons.mozilla.org/en-US/developers/addon/api/key/",
"properties": {
"apiKey": {
"type": "string",
"description": "The JWT issuer, from https://addons.mozilla.org/en-US/developers/addon/api/key/"
},
"apiSecret": {
"type": "string",
"description": "The JWT secret, from https://addons.mozilla.org/en-US/developers/addon/api/key/"
},
"extId": {
"type": "string",
"description": "This is the extension UUID, get it from https://addons.mozilla.org/en-US/developers/addon/{ext-name}/edit, under Technical Details. If it is embedded in your manifest under gecko.id, omit this property."
}
},
"required": ["apiKey", "apiSecret"]
},
"Edge": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "Create an Edge add-on and get it from the dashboard: https://partner.microsoft.com/en-us/dashboard/microsoftedge/{product-id}/package/dashboard"
},
"clientId": {
"type": "string",
"description": "You can find your client ID by visiting the Microsoft Partner Center: https://partner.microsoft.com/en-us/dashboard/microsoftedge/publishapi"
},
"clientSecret": {
"type": "string",
"description": "You can find your client secret by visiting the Microsoft Partner Center: https://partner.microsoft.com/en-us/dashboard/microsoftedge/publishapi"
},
"accessTokenUrl": {
"type": "string",
"description": "You can find your access token URL by visiting the Microsoft Partner Center: https://partner.microsoft.com/en-us/dashboard/microsoftedge/publishapi"
}
},
"required": ["productId", "clientId", "clientSecret", "accessTokenUrl"]
},
"Opera": {
"type": "object",
"description": "NOTE: Opera add-ons reviewer require inspecting your extension's source code.",
"properties": {
"packageId": {
"type": "string",
"description": "Get it from https://addons.opera.com/developer/package/PACKAGE_ID"
},
"changelog": {
"type": "string",
"description": "Provide changelog for the Opera users"
}
},
"required": ["packageId"]
}
}
}