Skip to content

Commit 2a2b5fe

Browse files
authored
Merge branch 'dev' into dependabot/npm_and_yarn/mongoose-8.9.5
2 parents 8010a8d + 7cca8b2 commit 2a2b5fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3544
-1653
lines changed

api-docs/openapi.json

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,16 @@
18871887
}
18881888
}
18891889
},
1890+
"/org/registry/createOrg": {
1891+
"get": {
1892+
"description": "",
1893+
"responses": {
1894+
"400": {
1895+
"description": "Bad Request"
1896+
}
1897+
}
1898+
}
1899+
},
18901900
"/org": {
18911901
"get": {
18921902
"tags": [
@@ -3130,7 +3140,7 @@
31303140
"content": {
31313141
"application/json": {
31323142
"schema": {
3133-
"$ref": "../schemas/registry-org/get-registry-org-response.json"
3143+
"$ref": "../schemas/registry-org/list-registry-orgs-response.json"
31343144
}
31353145
}
31363146
}
@@ -3201,7 +3211,7 @@
32013211
"content": {
32023212
"application/json": {
32033213
"schema": {
3204-
"$ref": "../schemas/org/create-org-response.json"
3214+
"$ref": "../schemas/registry-org/create-registry-org-response.json"
32053215
}
32063216
}
32073217
}
@@ -3252,7 +3262,7 @@
32523262
"content": {
32533263
"application/json": {
32543264
"schema": {
3255-
"$ref": "#/components/schemas/CreateOrgPayload"
3265+
"$ref": "../schemas/registry-org/create-registry-org-request.json"
32563266
}
32573267
}
32583268
}
@@ -3293,7 +3303,7 @@
32933303
"content": {
32943304
"application/json": {
32953305
"schema": {
3296-
"$ref": "../schemas/org/get-org-response.json"
3306+
"$ref": "../schemas/registry-org/get-registry-org-response.json"
32973307
}
32983308
}
32993309
}
@@ -3376,7 +3386,13 @@
33763386
"content": {
33773387
"application/json": {
33783388
"schema": {
3379-
"$ref": "../schemas/org/delete-org-response.json"
3389+
"type": "object",
3390+
"properties": {
3391+
"message": {
3392+
"type": "string",
3393+
"description": "Message describing successful deletion operation"
3394+
}
3395+
}
33803396
}
33813397
}
33823398
}
@@ -3458,7 +3474,7 @@
34583474
"content": {
34593475
"application/json": {
34603476
"schema": {
3461-
"$ref": "../schemas/org/update-org-response.json"
3477+
"$ref": "../schemas/registry-org/update-registry-org-response.json"
34623478
}
34633479
}
34643480
}
@@ -3519,7 +3535,7 @@
35193535
"content": {
35203536
"application/json": {
35213537
"schema": {
3522-
"$ref": "#/components/schemas/UpdateOrgPayload"
3538+
"$ref": "../schemas/registry-org/update-registry-org-request.json"
35233539
}
35243540
}
35253541
}
@@ -3563,7 +3579,7 @@
35633579
"content": {
35643580
"application/json": {
35653581
"schema": {
3566-
"$ref": "../schemas/user/list-users-response.json"
3582+
"$ref": "../schemas/registry-user/list-registry-users-response.json"
35673583
}
35683584
}
35693585
}
@@ -3655,7 +3671,7 @@
36553671
"content": {
36563672
"application/json": {
36573673
"schema": {
3658-
"$ref": "../schemas/user/create-user-response.json"
3674+
"$ref": "../schemas/registry-user/create-registry-user-response.json"
36593675
}
36603676
}
36613677
}
@@ -3716,7 +3732,7 @@
37163732
"content": {
37173733
"application/json": {
37183734
"schema": {
3719-
"$ref": "../schemas/user/create-user-request.json"
3735+
"$ref": "../schemas/registry-user/create-registry-user-request.json"
37203736
}
37213737
}
37223738
}
@@ -3747,11 +3763,11 @@
37473763
],
37483764
"responses": {
37493765
"200": {
3750-
"description": "A list of all registry organizations, along with pagination fields if results span multiple pages of data",
3766+
"description": "A list of all registry users, along with pagination fields if results span multiple pages of data",
37513767
"content": {
37523768
"application/json": {
37533769
"schema": {
3754-
"$ref": "../schemas/registry-user/get-registry-users-response.json"
3770+
"$ref": "../schemas/registry-user/list-registry-users-response.json"
37553771
}
37563772
}
37573773
}
@@ -3822,7 +3838,7 @@
38223838
"content": {
38233839
"application/json": {
38243840
"schema": {
3825-
"$ref": "../schemas/user/create-user-response.json"
3841+
"$ref": "../schemas/registry-user/create-registry-user-response.json"
38263842
}
38273843
}
38283844
}
@@ -3873,7 +3889,7 @@
38733889
"content": {
38743890
"application/json": {
38753891
"schema": {
3876-
"$ref": "#/components/schemas/CreateUserPayload"
3892+
"$ref": "../schemas/registry-user/create-registry-user-request.json"
38773893
}
38783894
}
38793895
}
@@ -3914,7 +3930,7 @@
39143930
"content": {
39153931
"application/json": {
39163932
"schema": {
3917-
"$ref": "../schemas/user/get-user-response.json"
3933+
"$ref": "../schemas/registry-user/get-registry-user-response.json"
39183934
}
39193935
}
39203936
}
@@ -3997,7 +4013,7 @@
39974013
"content": {
39984014
"application/json": {
39994015
"schema": {
4000-
"$ref": "../schemas/user/update-user-response.json"
4016+
"$ref": "../schemas/registry-user/update-registry-user-response.json"
40014017
}
40024018
}
40034019
}
@@ -4058,7 +4074,7 @@
40584074
"content": {
40594075
"application/json": {
40604076
"schema": {
4061-
"$ref": "#/components/schemas/UpdateUserPayload"
4077+
"$ref": "../schemas/registry-user/update-registry-user-request.json"
40624078
}
40634079
}
40644080
}
@@ -4097,7 +4113,13 @@
40974113
"content": {
40984114
"application/json": {
40994115
"schema": {
4100-
"$ref": "../schemas/user/delete-user-response.json"
4116+
"type": "object",
4117+
"properties": {
4118+
"message": {
4119+
"type": "string",
4120+
"description": "Message describing successful deletion operation"
4121+
}
4122+
}
41014123
}
41024124
}
41034125
}
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://cve.mitre.org/schema/org/organization.json",
4+
"type": "object",
5+
"title": "CVE Update Registry Org Request",
6+
"description": "JSON Schema for updating a CVE Registry organization",
7+
"properties": {
8+
"long_name": {
9+
"type": "string",
10+
"description": "Full name of the organization"
11+
},
12+
"short_name": {
13+
"type": "string",
14+
"description": "Short name or acronym of the organization"
15+
},
16+
"aliases": {
17+
"type": "array",
18+
"items": {
19+
"type": "string"
20+
},
21+
"description": "Alternative names or aliases for the organization"
22+
},
23+
"cve_program_org_function": {
24+
"type": "string",
25+
"enum": ["CNA", "ADP", "Root", "Secretariat"],
26+
"description": "The organization's function within the CVE program"
27+
},
28+
"authority": {
29+
"type": "object",
30+
"properties": {
31+
"active_roles": {
32+
"type": "array",
33+
"items": {
34+
"type": "string",
35+
"enum": ["CNA", "ADP", "Root", "Secretariat"]
36+
}
37+
}
38+
},
39+
"required": ["active_roles"]
40+
},
41+
"reports_to": {
42+
"type": ["string", "null"],
43+
"description": "UUID of the parent organization, if any"
44+
},
45+
"oversees": {
46+
"type": "array",
47+
"items": {
48+
"type": "string"
49+
},
50+
"description": "UUIDs of organizations overseen by this organization"
51+
},
52+
"root_or_tlr": {
53+
"type": "boolean",
54+
"description": "Indicates if the organization is a root or top-level root"
55+
},
56+
"users": {
57+
"type": "array",
58+
"items": {
59+
"type": "string"
60+
},
61+
"description": "UUIDs of users associated with this organization"
62+
},
63+
"charter_or_scope": {
64+
"type": "string",
65+
"description": "Description of the organization's charter or scope"
66+
},
67+
"disclosure_policy": {
68+
"type": "string",
69+
"description": "The organization's disclosure policy"
70+
},
71+
"product_list": {
72+
"type": "string",
73+
"description": "List of products associated with the organization"
74+
},
75+
"contact_info": {
76+
"type": "object",
77+
"properties": {
78+
"additional_contact_users": {
79+
"type": "array",
80+
"items": {
81+
"type": "string"
82+
}
83+
},
84+
"poc": {
85+
"type": "string",
86+
"description": "Point of contact name"
87+
},
88+
"poc_email": {
89+
"type": "string",
90+
"format": "email",
91+
"description": "Point of contact email"
92+
},
93+
"poc_phone": {
94+
"type": "string",
95+
"description": "Point of contact phone number"
96+
},
97+
"admins": {
98+
"type": "array",
99+
"items": {
100+
"type": "string"
101+
},
102+
"description": "UUIDs of admin users"
103+
},
104+
"org_email": {
105+
"type": "string",
106+
"format": "email",
107+
"description": "Organization's email address"
108+
},
109+
"website": {
110+
"type": "string",
111+
"format": "uri",
112+
"description": "Organization's website URL"
113+
}
114+
}
115+
}
116+
}
117+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://cve.mitre.org/schema/user/registry-user.json",
4+
"type": "object",
5+
"title": "CVE Update Registry User Request",
6+
"description": "JSON Schema for updating a CVE Registry User",
7+
"properties": {
8+
"user_id": {
9+
"type": "string",
10+
"description": "User's identifier or username"
11+
},
12+
"name": {
13+
"type": "object",
14+
"properties": {
15+
"first": {
16+
"type": "string",
17+
"description": "User's first name"
18+
},
19+
"last": {
20+
"type": "string",
21+
"description": "User's last name"
22+
},
23+
"middle": {
24+
"type": "string",
25+
"description": "User's middle name"
26+
},
27+
"suffix": {
28+
"type": "string",
29+
"description": "User's name suffix"
30+
}
31+
}
32+
},
33+
"org_affiliations": {
34+
"type": "array",
35+
"items": {
36+
"type": "string"
37+
},
38+
"description": "UUIDs of organizations the user is affiliated with"
39+
},
40+
"cve_program_org_membership": {
41+
"type": "array",
42+
"items": {
43+
"type": "string"
44+
},
45+
"description": "UUIDs of CVE program organizations the user is a member of"
46+
},
47+
"authority": {
48+
"type": "object",
49+
"properties": {
50+
"active_roles": {
51+
"type": "array",
52+
"items": {
53+
"type": "string",
54+
"enum": ["ADMIN", "PUBLISHER"]
55+
}
56+
}
57+
},
58+
"required": ["active_roles"]
59+
},
60+
"contact_info": {
61+
"type": "object",
62+
"properties": {
63+
"email": {
64+
"type": "string",
65+
"format": "email",
66+
"description": "User's email address"
67+
},
68+
"phone": {
69+
"type": "string",
70+
"description": "User's phone number"
71+
}
72+
}
73+
}
74+
}
75+
}

0 commit comments

Comments
 (0)