Skip to content

Commit 23ea15f

Browse files
authored
Merge pull request #5402 from github/openapi-update-687d1e5264891e3b6757f9c202468d3377dd671fdf12eb68144bdf3517d02ad8
Update OpenAPI 3.1 Descriptions
2 parents 4e6e47e + d9748a5 commit 23ea15f

16 files changed

+28818
-19382
lines changed

descriptions-next/api.github.com/api.github.com.2022-11-28.json

Lines changed: 455 additions & 2 deletions
Large diffs are not rendered by default.

descriptions-next/api.github.com/api.github.com.2022-11-28.yaml

Lines changed: 321 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5136,6 +5136,44 @@ paths:
51365136
enabledForGitHubApps: true
51375137
category: dependabot
51385138
subcategory: repository-access
5139+
"/organizations/{org}/settings/billing/premium_request/usage":
5140+
get:
5141+
summary: Get billing premium request usage report for an organization
5142+
description: Gets a report of premium request usage for an organization. To
5143+
use this endpoint, you must be an administrator of an organization within
5144+
an enterprise or an organization account.
5145+
tags:
5146+
- billing
5147+
operationId: billing/get-github-billing-premium-request-usage-report-org
5148+
externalDocs:
5149+
description: API method documentation
5150+
url: https://docs.github.com/rest/billing/enhanced-billing#get-billing-premium-request-usage-report-for-an-organization
5151+
parameters:
5152+
- "$ref": "#/components/parameters/org"
5153+
- "$ref": "#/components/parameters/billing-usage-report-year"
5154+
- "$ref": "#/components/parameters/billing-usage-report-month-default"
5155+
- "$ref": "#/components/parameters/billing-usage-report-day"
5156+
- "$ref": "#/components/parameters/billing-usage-report-user"
5157+
- "$ref": "#/components/parameters/billing-usage-report-model"
5158+
- "$ref": "#/components/parameters/billing-usage-report-product"
5159+
responses:
5160+
'200':
5161+
"$ref": "#/components/responses/billing_premium_request_usage_report_org"
5162+
'400':
5163+
"$ref": "#/components/responses/bad_request"
5164+
'403':
5165+
"$ref": "#/components/responses/forbidden"
5166+
'404':
5167+
"$ref": "#/components/responses/not_found"
5168+
'500':
5169+
"$ref": "#/components/responses/internal_error"
5170+
'503':
5171+
"$ref": "#/components/responses/service_unavailable"
5172+
x-github:
5173+
githubCloudOnly: false
5174+
enabledForGitHubApps: true
5175+
category: billing
5176+
subcategory: enhanced-billing
51395177
"/organizations/{org}/settings/billing/usage":
51405178
get:
51415179
summary: Get billing usage report for an organization
@@ -54593,6 +54631,41 @@ paths:
5459354631
enabledForGitHubApps: false
5459454632
category: billing
5459554633
subcategory: billing
54634+
"/users/{username}/settings/billing/premium_request/usage":
54635+
get:
54636+
summary: Get billing premium request usage report for a user
54637+
description: Gets a report of premium request usage for a user.
54638+
tags:
54639+
- billing
54640+
operationId: billing/get-github-billing-premium-request-usage-report-user
54641+
externalDocs:
54642+
description: API method documentation
54643+
url: https://docs.github.com/rest/billing/enhanced-billing#get-billing-premium-request-usage-report-for-a-user
54644+
parameters:
54645+
- "$ref": "#/components/parameters/username"
54646+
- "$ref": "#/components/parameters/billing-usage-report-year"
54647+
- "$ref": "#/components/parameters/billing-usage-report-month-default"
54648+
- "$ref": "#/components/parameters/billing-usage-report-day"
54649+
- "$ref": "#/components/parameters/billing-usage-report-model"
54650+
- "$ref": "#/components/parameters/billing-usage-report-product"
54651+
responses:
54652+
'200':
54653+
"$ref": "#/components/responses/billing_premium_request_usage_report_user"
54654+
'400':
54655+
"$ref": "#/components/responses/bad_request"
54656+
'403':
54657+
"$ref": "#/components/responses/forbidden"
54658+
'404':
54659+
"$ref": "#/components/responses/not_found"
54660+
'500':
54661+
"$ref": "#/components/responses/internal_error"
54662+
'503':
54663+
"$ref": "#/components/responses/service_unavailable"
54664+
x-github:
54665+
githubCloudOnly: false
54666+
enabledForGitHubApps: true
54667+
category: billing
54668+
subcategory: enhanced-billing
5459654669
"/users/{username}/settings/billing/shared-storage":
5459754670
get:
5459854671
summary: Get shared storage billing for a user
@@ -79053,6 +79126,89 @@ components:
7905379126
- type: 'null'
7905479127
- "$ref": "#/components/schemas/simple-repository"
7905579128
additionalProperties: false
79129+
billing-premium-request-usage-report-org:
79130+
type: object
79131+
properties:
79132+
timePeriod:
79133+
type: object
79134+
properties:
79135+
year:
79136+
type: integer
79137+
description: The year for the usage report.
79138+
month:
79139+
type: integer
79140+
description: The month for the usage report.
79141+
day:
79142+
type: integer
79143+
description: The day for the usage report.
79144+
required:
79145+
- year
79146+
organization:
79147+
type: string
79148+
description: The unique identifier of the organization.
79149+
user:
79150+
type: string
79151+
description: The name of the user for the usage report.
79152+
product:
79153+
type: string
79154+
description: The product for the usage report.
79155+
model:
79156+
type: string
79157+
description: The model for the usage report.
79158+
usageItems:
79159+
type: array
79160+
items:
79161+
type: object
79162+
properties:
79163+
product:
79164+
type: string
79165+
description: Product name.
79166+
sku:
79167+
type: string
79168+
description: SKU name.
79169+
model:
79170+
type: string
79171+
description: Model name.
79172+
unitType:
79173+
type: string
79174+
description: Unit type of the usage line item.
79175+
pricePerUnit:
79176+
type: number
79177+
description: Price per unit of the usage line item.
79178+
grossQuantity:
79179+
type: integer
79180+
description: Gross quantity of the usage line item.
79181+
grossAmount:
79182+
type: number
79183+
description: Gross amount of the usage line item.
79184+
discountQuantity:
79185+
type: integer
79186+
description: Discount quantity of the usage line item.
79187+
discountAmount:
79188+
type: number
79189+
description: Discount amount of the usage line item.
79190+
netQuantity:
79191+
type: integer
79192+
description: Net quantity of the usage line item.
79193+
netAmount:
79194+
type: number
79195+
description: Net amount of the usage line item.
79196+
required:
79197+
- product
79198+
- sku
79199+
- model
79200+
- unitType
79201+
- pricePerUnit
79202+
- grossQuantity
79203+
- grossAmount
79204+
- discountQuantity
79205+
- discountAmount
79206+
- netQuantity
79207+
- netAmount
79208+
required:
79209+
- timePeriod
79210+
- organization
79211+
- usageItems
7905679212
billing-usage-report:
7905779213
type: object
7905879214
properties:
@@ -100395,6 +100551,86 @@ components:
100395100551
required:
100396100552
- key
100397100553
- id
100554+
billing-premium-request-usage-report-user:
100555+
type: object
100556+
properties:
100557+
timePeriod:
100558+
type: object
100559+
properties:
100560+
year:
100561+
type: integer
100562+
description: The year for the usage report.
100563+
month:
100564+
type: integer
100565+
description: The month for the usage report.
100566+
day:
100567+
type: integer
100568+
description: The day for the usage report.
100569+
required:
100570+
- year
100571+
user:
100572+
type: string
100573+
description: The unique identifier of the user.
100574+
product:
100575+
type: string
100576+
description: The product for the usage report.
100577+
model:
100578+
type: string
100579+
description: The model for the usage report.
100580+
usageItems:
100581+
type: array
100582+
items:
100583+
type: object
100584+
properties:
100585+
product:
100586+
type: string
100587+
description: Product name.
100588+
sku:
100589+
type: string
100590+
description: SKU name.
100591+
model:
100592+
type: string
100593+
description: Model name.
100594+
unitType:
100595+
type: string
100596+
description: Unit type of the usage line item.
100597+
pricePerUnit:
100598+
type: number
100599+
description: Price per unit of the usage line item.
100600+
grossQuantity:
100601+
type: integer
100602+
description: Gross quantity of the usage line item.
100603+
grossAmount:
100604+
type: number
100605+
description: Gross amount of the usage line item.
100606+
discountQuantity:
100607+
type: integer
100608+
description: Discount quantity of the usage line item.
100609+
discountAmount:
100610+
type: number
100611+
description: Discount amount of the usage line item.
100612+
netQuantity:
100613+
type: integer
100614+
description: Net quantity of the usage line item.
100615+
netAmount:
100616+
type: number
100617+
description: Net amount of the usage line item.
100618+
required:
100619+
- product
100620+
- sku
100621+
- model
100622+
- unitType
100623+
- pricePerUnit
100624+
- grossQuantity
100625+
- grossAmount
100626+
- discountQuantity
100627+
- discountAmount
100628+
- netQuantity
100629+
- netAmount
100630+
required:
100631+
- timePeriod
100632+
- user
100633+
- usageItems
100398100634
billing-usage-report-user:
100399100635
type: object
100400100636
properties:
@@ -212963,6 +213199,23 @@ components:
212963213199
teams_url: https://api.github.com/repos/octocat/example-repo/teams
212964213200
trees_url: https://api.github.com/repos/octocat/example-repo/git/trees{/sha}
212965213201
hooks_url: https://api.github.com/repos/octocat/example-repo/hooks
213202+
billing-premium-request-usage-report-org:
213203+
value:
213204+
timePeriod:
213205+
year: 2025
213206+
organization: GitHub
213207+
usageItems:
213208+
- product: Copilot
213209+
sku: Copilot Premium Request
213210+
model: GPT-5
213211+
unitType: requests
213212+
pricePerUnit: 0.04
213213+
grossQuantity: 100
213214+
grossAmount: 4.0
213215+
discountQuantity: 0
213216+
discountAmount: 0.0
213217+
netQuantity: 100
213218+
netAmount: 4.0
212966213219
billing-usage-report:
212967213220
value:
212968213221
usageItems:
@@ -234797,6 +235050,23 @@ components:
234797235050
gravatar_id: ''
234798235051
url: https://api.github.com/orgs/github
234799235052
avatar_url: https://avatars.githubusercontent.com/u/9919?
235053+
billing-premium-request-usage-report-user:
235054+
value:
235055+
timePeriod:
235056+
year: 2025
235057+
user: monalisa
235058+
usageItems:
235059+
- product: Copilot
235060+
sku: Copilot Premium Request
235061+
model: GPT-5
235062+
unitType: requests
235063+
pricePerUnit: 0.04
235064+
grossQuantity: 100
235065+
grossAmount: 4.0
235066+
discountQuantity: 0
235067+
discountAmount: 0.0
235068+
netQuantity: 100
235069+
netAmount: 4.0
234800235070
billing-usage-report-user:
234801235071
value:
234802235072
usageItems:
@@ -236738,11 +237008,11 @@ components:
236738237008
required: false
236739237009
schema:
236740237010
type: integer
236741-
billing-usage-report-month:
237011+
billing-usage-report-month-default:
236742237012
name: month
236743237013
description: If specified, only return results for a single month. The value
236744-
of `month` is an integer between `1` and `12`. If no year is specified the
236745-
default `year` is used.
237014+
of `month` is an integer between `1` and `12`. Default value is the current
237015+
month. If no year is specified the default `year` is used.
236746237016
in: query
236747237017
required: false
236748237018
schema:
@@ -236756,6 +237026,36 @@ components:
236756237026
required: false
236757237027
schema:
236758237028
type: integer
237029+
billing-usage-report-user:
237030+
name: user
237031+
description: The user name to query usage for. The name is not case sensitive.
237032+
in: query
237033+
required: false
237034+
schema:
237035+
type: string
237036+
billing-usage-report-model:
237037+
name: model
237038+
description: The model name to query usage for. The name is not case sensitive.
237039+
in: query
237040+
required: false
237041+
schema:
237042+
type: string
237043+
billing-usage-report-product:
237044+
name: product
237045+
description: The product name to query usage for. The name is not case sensitive.
237046+
in: query
237047+
required: false
237048+
schema:
237049+
type: string
237050+
billing-usage-report-month:
237051+
name: month
237052+
description: If specified, only return results for a single month. The value
237053+
of `month` is an integer between `1` and `12`. If no year is specified the
237054+
default `year` is used.
237055+
in: query
237056+
required: false
237057+
schema:
237058+
type: integer
236759237059
billing-usage-report-hour:
236760237060
name: hour
236761237061
description: If specified, only return results for a single hour. The value
@@ -237973,6 +238273,15 @@ components:
237973238273
application/json:
237974238274
schema:
237975238275
"$ref": "#/components/schemas/basic-error"
238276+
billing_premium_request_usage_report_org:
238277+
description: Response when getting a billing premium request usage report
238278+
content:
238279+
application/json:
238280+
schema:
238281+
"$ref": "#/components/schemas/billing-premium-request-usage-report-org"
238282+
examples:
238283+
default:
238284+
"$ref": "#/components/examples/billing-premium-request-usage-report-org"
237976238285
billing_usage_report_org:
237977238286
description: Billing usage report response for an organization
237978238287
content:
@@ -238130,6 +238439,15 @@ components:
238130238439
application/json:
238131238440
schema:
238132238441
"$ref": "#/components/schemas/basic-error"
238442+
billing_premium_request_usage_report_user:
238443+
description: Response when getting a billing premium request usage report
238444+
content:
238445+
application/json:
238446+
schema:
238447+
"$ref": "#/components/schemas/billing-premium-request-usage-report-user"
238448+
examples:
238449+
default:
238450+
"$ref": "#/components/examples/billing-premium-request-usage-report-user"
238133238451
billing_usage_report_user:
238134238452
description: Response when getting a billing usage report
238135238453
content:

0 commit comments

Comments
 (0)