Skip to content

Commit f5f2ea4

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

File tree

2 files changed

+46
-59
lines changed

2 files changed

+46
-59
lines changed

openapi.json

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8424,45 +8424,35 @@
84248424
"schema": {
84258425
"type": "string",
84268426
"enum": [
8427-
"BookDemo",
8427+
"AssociateLabel",
84288428
"CancelInvitation",
84298429
"ChangeMemberRole",
84308430
"ChangePlanSubscriptionSeats",
8431-
"ContactForm",
84328431
"CreateApiToken",
8433-
"CreateUser",
8434-
"GithubAppInstallation",
8432+
"CreateLabel",
8433+
"DeleteLabel",
8434+
"DeleteLabelSetting",
8435+
"DeleteReport",
8436+
"DeleteRepository",
8437+
"DisassociateLabel",
84358438
"JoinOrganization",
8436-
"JoinOrganizationByVcs",
8437-
"LinkAccount",
84388439
"RemoveMember",
84398440
"ResetInvitationLink",
84408441
"ResetOrganizationSettingToDefault",
84418442
"RotateApiToken",
84428443
"SendInvitation",
8443-
"SignIn",
8444-
"SignOut",
8445-
"Subscribe",
8444+
"SetLabelSettingToDefault",
84468445
"SyncOrganization",
84478446
"TransferOwnership",
84488447
"UpdateAlertTriage",
84498448
"UpdateApiTokenCommitter",
8449+
"UpdateApiTokenMaxQuota",
84508450
"UpdateApiTokenName",
84518451
"UpdateApiTokenScopes",
84528452
"UpdateApiTokenVisibility",
8453-
"UpdateOrganizationSetting",
8454-
"UpgradeOrganizationPlan",
8455-
"VerifiedEmail",
8456-
"DeleteRepository",
8457-
"DeleteReport",
8458-
"DeleteLabel",
8459-
"CreateLabel",
8460-
"AssociateLabel",
8461-
"DisassociateLabel",
84628453
"UpdateLabelSetting",
8463-
"DeleteLabelSetting",
8464-
"SetLabelSettingToDefault",
8465-
"UpdateApiTokenMaxQuota"
8454+
"UpdateOrganizationSetting",
8455+
"UpgradeOrganizationPlan"
84668456
]
84678457
}
84688458
},
@@ -8544,27 +8534,32 @@
85448534
"country_code": {
85458535
"type": "string",
85468536
"description": "",
8547-
"default": ""
8537+
"default": "",
8538+
"nullable": true
85488539
},
85498540
"organization_id": {
85508541
"type": "string",
85518542
"description": "",
8552-
"default": ""
8543+
"default": "",
8544+
"nullable": true
85538545
},
85548546
"ip_address": {
85558547
"type": "string",
85568548
"description": "",
8557-
"default": ""
8549+
"default": "",
8550+
"nullable": true
85588551
},
85598552
"payload": {
85608553
"type": "object",
85618554
"description": "",
8562-
"default": null
8555+
"default": null,
8556+
"nullable": true
85638557
},
85648558
"status_code": {
85658559
"type": "integer",
85668560
"description": "",
8567-
"default": 0
8561+
"default": 0,
8562+
"nullable": true
85688563
},
85698564
"type": {
85708565
"type": "string",
@@ -8574,12 +8569,14 @@
85748569
"user_agent": {
85758570
"type": "string",
85768571
"description": "",
8577-
"default": ""
8572+
"default": "",
8573+
"nullable": true
85788574
},
85798575
"user_id": {
85808576
"type": "string",
85818577
"description": "",
8582-
"default": ""
8578+
"default": "",
8579+
"nullable": true
85838580
},
85848581
"user_email": {
85858582
"type": "string",
@@ -9733,7 +9730,7 @@
97339730
"name": "after",
97349731
"in": "query",
97359732
"required": true,
9736-
"description": "The base full scan ID",
9733+
"description": "The full scan ID of the base/target of the diff (older)",
97379734
"schema": {
97389735
"type": "string"
97399736
}
@@ -9742,7 +9739,7 @@
97429739
"name": "before",
97439740
"in": "query",
97449741
"required": true,
9745-
"description": "The base full scan ID",
9742+
"description": "The full scan ID of the head/changed side of the diff (newer)",
97469743
"schema": {
97479744
"type": "string"
97489745
}

types/api.d.ts

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,45 +3908,35 @@ export interface operations {
39083908
query?: {
39093909
/** @description Filter audit log events by type. Omit for all types. */
39103910
type?:
3911-
| 'BookDemo'
3911+
| 'AssociateLabel'
39123912
| 'CancelInvitation'
39133913
| 'ChangeMemberRole'
39143914
| 'ChangePlanSubscriptionSeats'
3915-
| 'ContactForm'
39163915
| 'CreateApiToken'
3917-
| 'CreateUser'
3918-
| 'GithubAppInstallation'
3916+
| 'CreateLabel'
3917+
| 'DeleteLabel'
3918+
| 'DeleteLabelSetting'
3919+
| 'DeleteReport'
3920+
| 'DeleteRepository'
3921+
| 'DisassociateLabel'
39193922
| 'JoinOrganization'
3920-
| 'JoinOrganizationByVcs'
3921-
| 'LinkAccount'
39223923
| 'RemoveMember'
39233924
| 'ResetInvitationLink'
39243925
| 'ResetOrganizationSettingToDefault'
39253926
| 'RotateApiToken'
39263927
| 'SendInvitation'
3927-
| 'SignIn'
3928-
| 'SignOut'
3929-
| 'Subscribe'
3928+
| 'SetLabelSettingToDefault'
39303929
| 'SyncOrganization'
39313930
| 'TransferOwnership'
39323931
| 'UpdateAlertTriage'
39333932
| 'UpdateApiTokenCommitter'
3933+
| 'UpdateApiTokenMaxQuota'
39343934
| 'UpdateApiTokenName'
39353935
| 'UpdateApiTokenScopes'
39363936
| 'UpdateApiTokenVisibility'
3937+
| 'UpdateLabelSetting'
39373938
| 'UpdateOrganizationSetting'
39383939
| 'UpgradeOrganizationPlan'
3939-
| 'VerifiedEmail'
3940-
| 'DeleteRepository'
3941-
| 'DeleteReport'
3942-
| 'DeleteLabel'
3943-
| 'CreateLabel'
3944-
| 'AssociateLabel'
3945-
| 'DisassociateLabel'
3946-
| 'UpdateLabelSetting'
3947-
| 'DeleteLabelSetting'
3948-
| 'SetLabelSettingToDefault'
3949-
| 'UpdateApiTokenMaxQuota'
39503940
/** @description Number of events per page */
39513941
per_page?: number
39523942
/** @description Page token */
@@ -3972,21 +3962,21 @@ export interface operations {
39723962
/** @default */
39733963
updated_at?: string
39743964
/** @default */
3975-
country_code?: string
3965+
country_code?: string | null
39763966
/** @default */
3977-
organization_id?: string
3967+
organization_id?: string | null
39783968
/** @default */
3979-
ip_address?: string
3969+
ip_address?: string | null
39803970
/** @default null */
3981-
payload?: Record<string, never>
3971+
payload?: Record<string, unknown> | null
39823972
/** @default 0 */
3983-
status_code?: number
3973+
status_code?: number | null
39843974
/** @default */
39853975
type?: string
39863976
/** @default */
3987-
user_agent?: string
3977+
user_agent?: string | null
39883978
/** @default */
3989-
user_id?: string
3979+
user_id?: string | null
39903980
/** @default */
39913981
user_email?: string
39923982
/** @default */
@@ -4437,9 +4427,9 @@ export interface operations {
44374427
GetOrgDiffScan: {
44384428
parameters: {
44394429
query: {
4440-
/** @description The base full scan ID */
4430+
/** @description The full scan ID of the base/target of the diff (older) */
44414431
after: string
4442-
/** @description The base full scan ID */
4432+
/** @description The full scan ID of the head/changed side of the diff (newer) */
44434433
before: string
44444434
/** @description Include license details in the response. This can increase the response size significantly. */
44454435
include_license_details?: boolean

0 commit comments

Comments
 (0)