Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with OpenAPI definition #184

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 131 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8073,6 +8073,137 @@
"x-readme": {}
}
},
"/orgs/{org_slug}/audit-log": {
"get": {
"tags": [
"Audit Log"
],
"summary": "Get Audit Log Events",
"operationId": "getAuditLogEvents",
"parameters": [
{
"name": "org_slug",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"basicAuth": [
"audit-log:list"
]
}
],
"description": "Paginated list of audit log events.\n\nThe `type` queryParam must be omitted or one of:\n\n- BookDemo\n- CancelInvitation\n- ChangeMemberRole\n- ChangePlanSubscriptionSeats\n- ContactForm\n- CreateApiToken\n- CreateUser\n- GithubAppInstallation\n- JoinOrganizationByVcs\n- LinkAccount\n- RemoveMember\n- ResetInvitationLink\n- ResetOrganizationSettingToDefault\n- RotateApiToken\n- SendInvitation\n- SignIn\n- SignOut\n- Subscribe\n- SyncOrganization\n- TransferOwnership\n- UpdateAlertTriage\n- UpdateApiTokenName\n- UpdateApiTokenScopes\n- UpdateApiTokenVisibility\n- UpdateOrganizationSetting\n- UpgradeOrganizationPlan\n- VerifiedEmail\n\nThis endpoint consumes 0 units of your quota.",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"event_id": {
"type": "string",
"default": ""
},
"created_at": {
"type": "string",
"default": ""
},
"updated_at": {
"type": "string",
"default": ""
},
"country_code": {
"type": "string",
"default": ""
},
"organization_id": {
"type": "string",
"default": ""
},
"ip_address": {
"type": "string",
"default": ""
},
"payload": {
"type": "object",
"default": null
},
"status_code": {
"type": "integer",
"default": 0
},
"type": {
"type": "string",
"default": ""
},
"user_agent": {
"type": "string",
"default": ""
},
"user_id": {
"type": "string",
"default": ""
},
"user_email": {
"type": "string",
"default": ""
},
"user_image": {
"type": "string",
"default": ""
},
"organization_name": {
"type": "string",
"default": ""
}
}
}
},
"nextPage": {
"type": "integer",
"default": 0
}
},
"required": [
"nextPage",
"results"
]
}
}
},
"description": "The paginated list of events in an organizations audit log and the next page querystring token."
},
"400": {
"$ref": "#/components/responses/SocketBadRequest"
},
"401": {
"$ref": "#/components/responses/SocketUnauthorized"
},
"403": {
"$ref": "#/components/responses/SocketForbidden"
},
"404": {
"$ref": "#/components/responses/SocketNotFoundResponse"
},
"429": {
"$ref": "#/components/responses/SocketTooManyRequestsResponse"
}
},
"x-readme": {}
}
},
"/analytics/org/{filter}": {
"get": {
"tags": [
Expand Down
128 changes: 128 additions & 0 deletions types/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,45 @@ export interface paths {
*/
get: operations["getOrgFullScanMetadata"];
};
"/orgs/{org_slug}/audit-log": {
/**
* Get Audit Log Events
* @description Paginated list of audit log events.
*
* The `type` queryParam must be omitted or one of:
*
* - 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
*
* This endpoint consumes 0 units of your quota.
*/
get: operations["getAuditLogEvents"];
};
"/analytics/org/{filter}": {
/**
* Get organization analytics (unstable)
Expand Down Expand Up @@ -2883,6 +2922,95 @@ export interface operations {
429: components["responses"]["SocketTooManyRequestsResponse"];
};
};
/**
* Get Audit Log Events
* @description Paginated list of audit log events.
*
* The `type` queryParam must be omitted or one of:
*
* - 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
*
* This endpoint consumes 0 units of your quota.
*/
getAuditLogEvents: {
parameters: {
path: {
org_slug: string;
};
};
responses: {
/** @description The paginated list of events in an organizations audit log and the next page querystring token. */
200: {
content: {
"application/json": {
results: {
/** @default */
event_id?: string;
/** @default */
created_at?: string;
/** @default */
updated_at?: string;
/** @default */
country_code?: string;
/** @default */
organization_id?: string;
/** @default */
ip_address?: string;
/** @default null */
payload?: Record<string, never>;
/** @default 0 */
status_code?: number;
/** @default */
type?: string;
/** @default */
user_agent?: string;
/** @default */
user_id?: string;
/** @default */
user_email?: string;
/** @default */
user_image?: string;
/** @default */
organization_name?: string;
}[];
/** @default 0 */
nextPage: number;
};
};
};
400: components["responses"]["SocketBadRequest"];
401: components["responses"]["SocketUnauthorized"];
403: components["responses"]["SocketForbidden"];
404: components["responses"]["SocketNotFoundResponse"];
429: components["responses"]["SocketTooManyRequestsResponse"];
};
};
/**
* Get organization analytics (unstable)
* @description Get analytics data regarding the number of alerts found across all active repositories.
Expand Down