Skip to content

Commit 80e13cd

Browse files
fix(openapi): sync with openapi definition (#217)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f455dd4 commit 80e13cd

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

openapi.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5145,6 +5145,58 @@
51455145
}
51465146
}
51475147
},
5148+
{
5149+
"type": "object",
5150+
"additionalProperties": false,
5151+
"properties": {
5152+
"type": {
5153+
"type": "string",
5154+
"enum": [
5155+
"suspiciousStarActivity"
5156+
]
5157+
},
5158+
"value": {
5159+
"allOf": [
5160+
{
5161+
"$ref": "#/components/schemas/SocketIssueBasics"
5162+
},
5163+
{
5164+
"type": "object",
5165+
"additionalProperties": false,
5166+
"properties": {
5167+
"description": {
5168+
"type": "string",
5169+
"description": "",
5170+
"default": ""
5171+
},
5172+
"props": {
5173+
"type": "object",
5174+
"additionalProperties": false,
5175+
"description": "",
5176+
"properties": {
5177+
"percentageSuspiciousStars": {
5178+
"type": "number",
5179+
"description": "",
5180+
"default": 0
5181+
}
5182+
},
5183+
"required": [
5184+
"percentageSuspiciousStars"
5185+
]
5186+
},
5187+
"usage": {
5188+
"$ref": "#/components/schemas/SocketUsageRef"
5189+
}
5190+
},
5191+
"required": [
5192+
"description",
5193+
"props"
5194+
]
5195+
}
5196+
]
5197+
}
5198+
}
5199+
},
51485200
{
51495201
"type": "object",
51505202
"additionalProperties": false,
@@ -7470,6 +7522,7 @@
74707522
"CreateApiToken",
74717523
"CreateUser",
74727524
"GithubAppInstallation",
7525+
"JoinOrganization",
74737526
"JoinOrganizationByVcs",
74747527
"LinkAccount",
74757528
"RemoveMember",

types/api.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,18 @@ export interface components {
17311731
props: Record<string, never>;
17321732
usage?: components["schemas"]["SocketUsageRef"];
17331733
};
1734+
}) | ({
1735+
/** @enum {string} */
1736+
type?: "suspiciousStarActivity";
1737+
value?: components["schemas"]["SocketIssueBasics"] & {
1738+
/** @default */
1739+
description: string;
1740+
props: {
1741+
/** @default 0 */
1742+
percentageSuspiciousStars: number;
1743+
};
1744+
usage?: components["schemas"]["SocketUsageRef"];
1745+
};
17341746
}) | ({
17351747
/** @enum {string} */
17361748
type?: "unpopularPackage";
@@ -2571,7 +2583,7 @@ export interface operations {
25712583
parameters: {
25722584
query?: {
25732585
/** @description Filter audit log events by type. Omit for all types. */
2574-
type?: "BookDemo" | "CancelInvitation" | "ChangeMemberRole" | "ChangePlanSubscriptionSeats" | "ContactForm" | "CreateApiToken" | "CreateUser" | "GithubAppInstallation" | "JoinOrganizationByVcs" | "LinkAccount" | "RemoveMember" | "ResetInvitationLink" | "ResetOrganizationSettingToDefault" | "RotateApiToken" | "SendInvitation" | "SignIn" | "SignOut" | "Subscribe" | "SyncOrganization" | "TransferOwnership" | "UpdateAlertTriage" | "UpdateApiTokenName" | "UpdateApiTokenScopes" | "UpdateApiTokenVisibility" | "UpdateOrganizationSetting" | "UpgradeOrganizationPlan" | "VerifiedEmail" | "DeleteRepository" | "DeleteReport";
2586+
type?: "BookDemo" | "CancelInvitation" | "ChangeMemberRole" | "ChangePlanSubscriptionSeats" | "ContactForm" | "CreateApiToken" | "CreateUser" | "GithubAppInstallation" | "JoinOrganization" | "JoinOrganizationByVcs" | "LinkAccount" | "RemoveMember" | "ResetInvitationLink" | "ResetOrganizationSettingToDefault" | "RotateApiToken" | "SendInvitation" | "SignIn" | "SignOut" | "Subscribe" | "SyncOrganization" | "TransferOwnership" | "UpdateAlertTriage" | "UpdateApiTokenName" | "UpdateApiTokenScopes" | "UpdateApiTokenVisibility" | "UpdateOrganizationSetting" | "UpgradeOrganizationPlan" | "VerifiedEmail" | "DeleteRepository" | "DeleteReport";
25752587
/** @description Number of events per page */
25762588
per_page?: number;
25772589
/** @description Page token */

0 commit comments

Comments
 (0)