diff --git a/src/schema-routes/schema-routes.ts b/src/schema-routes/schema-routes.ts index d53b72f2..ec530392 100644 --- a/src/schema-routes/schema-routes.ts +++ b/src/schema-routes/schema-routes.ts @@ -614,13 +614,12 @@ export class SchemaRoutes { }; createRequestParamsSchema = ({ - queryParams, queryObjectSchema, pathArgsSchemas, extractRequestParams, routeName, }) => { - if (!queryParams || !queryParams.length) return null; + if (!extractRequestParams) return null; const pathParams = pathArgsSchemas.reduce((acc, pathArgSchema) => { if (pathArgSchema.name) { @@ -656,26 +655,24 @@ export class SchemaRoutes { }, }; + if (!Object.keys(schema.properties).length) return null; + const fixedSchema = this.config.hooks.onCreateRequestParams(schema); if (fixedSchema) return fixedSchema; - if (extractRequestParams) { - const generatedTypeName = this.schemaUtils.resolveTypeName( - routeName.usage, - { - suffixes: this.config.extractingOptions.requestParamsSuffix, - resolver: this.config.extractingOptions.requestParamsNameResolver, - }, - ); - - return this.schemaParserFabric.createParsedComponent({ - typeName: generatedTypeName, - schema: schema, - }); - } + const generatedTypeName = this.schemaUtils.resolveTypeName( + routeName.usage, + { + suffixes: this.config.extractingOptions.requestParamsSuffix, + resolver: this.config.extractingOptions.requestParamsNameResolver, + }, + ); - return schema; + return this.schemaParserFabric.createParsedComponent({ + typeName: generatedTypeName, + schema: schema, + }); }; extractResponseBodyIfItNeeded = (routeInfo, responseBodyInfo, routeName) => { @@ -908,7 +905,6 @@ export class SchemaRoutes { ); const requestParamsSchema = this.createRequestParamsSchema({ - queryParams: routeParams.query, pathArgsSchemas: routeParams.path, queryObjectSchema, extractRequestParams, diff --git a/templates/default/procedure-call.ejs b/templates/default/procedure-call.ejs index 465d6327..e75f3d83 100644 --- a/templates/default/procedure-call.ejs +++ b/templates/default/procedure-call.ejs @@ -20,15 +20,17 @@ const requestConfigParam = { } const argToTmpl = ({ name, optional, type, defaultValue }) => `${name}${!defaultValue && optional ? '?' : ''}: ${type}${defaultValue ? ` = ${defaultValue}` : ''}`; - -const rawWrapperArgs = config.extractRequestParams ? +const requestParamsArgs = [ + _.join(pathParamsNames, ", "), + query != null ? `...${queryName}` : '' +].filter(Boolean).join(', ') +const rawWrapperArgs = requestParams ? _.compact([ - requestParams && { - name: pathParams.length ? `{ ${_.join(pathParamsNames, ", ")}, ...${queryName} }` : queryName, + { + name: `{ ${requestParamsArgs} }`, optional: false, type: getInlineParseContent(requestParams), }, - ...(!requestParams ? pathParams : []), payload, requestConfigParam, ]) : diff --git a/templates/modular/procedure-call.ejs b/templates/modular/procedure-call.ejs index 6f15500f..628f94d0 100644 --- a/templates/modular/procedure-call.ejs +++ b/templates/modular/procedure-call.ejs @@ -20,15 +20,17 @@ const requestConfigParam = { } const argToTmpl = ({ name, optional, type, defaultValue }) => `${name}${!defaultValue && optional ? '?' : ''}: ${type}${defaultValue ? ` = ${defaultValue}` : ''}`; - -const rawWrapperArgs = config.extractRequestParams ? +const requestParamsArgs = [ + _.join(pathParamsNames, ", "), + query != null ? `...${queryName}` : '' +].filter(Boolean).join(', ') +const rawWrapperArgs = requestParams ? _.compact([ - requestParams && { - name: pathParams.length ? `{ ${_.join(pathParamsNames, ", ")}, ...${queryName} }` : queryName, + { + name: `{ ${requestParamsArgs} }`, optional: false, type: getInlineParseContent(requestParams), }, - ...(!requestParams ? pathParams : []), payload, requestConfigParam, ]) : diff --git a/tests/__snapshots__/extended.test.ts.snap b/tests/__snapshots__/extended.test.ts.snap index 625ec567..7a5df8b3 100644 --- a/tests/__snapshots__/extended.test.ts.snap +++ b/tests/__snapshots__/extended.test.ts.snap @@ -55,8 +55,19 @@ export interface AllActivitiesParams { export type AllBlocksData = Block[]; +export interface AllBlocksParams { + dashboardId: string; + /** a valid username string */ + username: string; +} + export type AllDashboardsData = Dashboard[]; +export interface AllDashboardsParams { + /** a valid username string */ + username: string; +} + export type AllDataData = DataResponse[]; export interface AllDataParams { @@ -82,6 +93,11 @@ export interface AllDataParams { export type AllFeedsData = Feed[]; +export interface AllFeedsParams { + /** a valid username string */ + username: string; +} + export type AllGroupFeedDataData = DataResponse[]; export interface AllGroupFeedDataParams { @@ -106,18 +122,61 @@ export interface AllGroupFeedDataParams { export type AllGroupFeedsData = Feed[]; +export interface AllGroupFeedsParams { + groupKey: string; + /** a valid username string */ + username: string; +} + export type AllGroupsData = Group[]; +export interface AllGroupsParams { + /** a valid username string */ + username: string; +} + export type AllPermissionsData = Permission[]; +export interface AllPermissionsParams { + type: string; + typeId: string; + /** a valid username string */ + username: string; +} + export type AllTokensData = Token[]; +export interface AllTokensParams { + /** a valid username string */ + username: string; +} + export type AllTriggersData = Trigger[]; +export interface AllTriggersParams { + /** a valid username string */ + username: string; +} + export type BatchCreateDataData = DataResponse[]; +export interface BatchCreateDataParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + export type BatchCreateGroupFeedDataData = DataResponse[]; +export interface BatchCreateGroupFeedDataParams { + /** a valid feed key */ + feedKey: string; + groupKey: string; + /** a valid username string */ + username: string; +} + export interface Block { block_feeds?: BlockFeed[]; column?: number; @@ -178,10 +237,28 @@ export interface ChartDataParams { export type CreateBlockData = Block; +export interface CreateBlockParams { + dashboardId: string; + /** a valid username string */ + username: string; +} + export type CreateDashboardData = Dashboard; +export interface CreateDashboardParams { + /** a valid username string */ + username: string; +} + export type CreateDataData = Data; +export interface CreateDataParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + export type CreateFeedData = Feed; export interface CreateFeedParams { @@ -194,6 +271,12 @@ export type CreateGroupData = Group; export type CreateGroupDataData = DataResponse[]; +export interface CreateGroupDataParams { + groupKey: string; + /** a valid username string */ + username: string; +} + export interface CreateGroupDataPayload { /** Optional created_at timestamp which will be applied to all feed values created. */ created_at?: string; @@ -214,6 +297,25 @@ export type CreateGroupFeedData = Feed; export type CreateGroupFeedDataData = DataResponse; +export interface CreateGroupFeedDataParams { + /** a valid feed key */ + feedKey: string; + groupKey: string; + /** a valid username string */ + username: string; +} + +export interface CreateGroupFeedParams { + groupKey: string; + /** a valid username string */ + username: string; +} + +export interface CreateGroupParams { + /** a valid username string */ + username: string; +} + export type CreatePermissionData = Permission; /** @default "r" */ @@ -223,6 +325,13 @@ export enum CreatePermissionModeEnum { Rw = "rw", } +export interface CreatePermissionParams { + type: string; + typeId: string; + /** a valid username string */ + username: string; +} + /** @default "public" */ export enum CreatePermissionScopeEnum { Secret = "secret", @@ -233,12 +342,30 @@ export enum CreatePermissionScopeEnum { export type CreateRawWebhookFeedDataData = Data; +export interface CreateRawWebhookFeedDataParams { + token: string; +} + export type CreateTokenData = Token; +export interface CreateTokenParams { + /** a valid username string */ + username: string; +} + export type CreateTriggerData = Trigger; +export interface CreateTriggerParams { + /** a valid username string */ + username: string; +} + export type CreateWebhookFeedDataData = Data; +export interface CreateWebhookFeedDataParams { + token: string; +} + export interface CreateWebhookFeedDataPayload { value?: string; } @@ -284,22 +411,81 @@ export interface DataResponse { export type DestroyActivitiesData = any; +export interface DestroyActivitiesParams { + /** a valid username string */ + username: string; +} + export type DestroyBlockData = string; +export interface DestroyBlockParams { + dashboardId: string; + id: string; + /** a valid username string */ + username: string; +} + export type DestroyDashboardData = string; +export interface DestroyDashboardParams { + id: string; + /** a valid username string */ + username: string; +} + export type DestroyDataData = string; +export interface DestroyDataParams { + /** a valid feed key */ + feedKey: string; + id: string; + /** a valid username string */ + username: string; +} + export type DestroyFeedData = any; +export interface DestroyFeedParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + export type DestroyGroupData = string; +export interface DestroyGroupParams { + groupKey: string; + /** a valid username string */ + username: string; +} + export type DestroyPermissionData = string; +export interface DestroyPermissionParams { + id: string; + type: string; + typeId: string; + /** a valid username string */ + username: string; +} + export type DestroyTokenData = string; +export interface DestroyTokenParams { + id: string; + /** a valid username string */ + username: string; +} + export type DestroyTriggerData = string; +export interface DestroyTriggerParams { + id: string; + /** a valid username string */ + username: string; +} + export interface Error { code?: string; message?: string; @@ -381,6 +567,13 @@ export interface GetActivityParams { export type GetBlockData = Block; +export interface GetBlockParams { + dashboardId: string; + id: string; + /** a valid username string */ + username: string; +} + export interface GetCurrentUserThrottleData { /** Actions taken inside the time window. */ active_data_rate?: number; @@ -388,8 +581,19 @@ export interface GetCurrentUserThrottleData { data_rate_limit?: number; } +export interface GetCurrentUserThrottleParams { + /** a valid username string */ + username: string; +} + export type GetDashboardData = Dashboard; +export interface GetDashboardParams { + id: string; + /** a valid username string */ + username: string; +} + export type GetDataData = DataResponse; export interface GetDataParams { @@ -406,14 +610,54 @@ export type GetFeedData = Feed; export type GetFeedDetailsData = Feed; +export interface GetFeedDetailsParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + +export interface GetFeedParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + export type GetGroupData = Group; +export interface GetGroupParams { + groupKey: string; + /** a valid username string */ + username: string; +} + export type GetPermissionData = Permission; +export interface GetPermissionParams { + id: string; + type: string; + typeId: string; + /** a valid username string */ + username: string; +} + export type GetTokenData = Token; +export interface GetTokenParams { + id: string; + /** a valid username string */ + username: string; +} + export type GetTriggerData = Trigger; +export interface GetTriggerParams { + id: string; + /** a valid username string */ + username: string; +} + export interface Group { created_at?: string; description?: string; @@ -495,22 +739,83 @@ export interface RemoveFeedFromGroupParams { export type ReplaceBlockData = Block; +export interface ReplaceBlockParams { + dashboardId: string; + id: string; + /** a valid username string */ + username: string; +} + export type ReplaceDashboardData = Dashboard; +export interface ReplaceDashboardParams { + id: string; + /** a valid username string */ + username: string; +} + export type ReplaceDataData = DataResponse; +export interface ReplaceDataParams { + /** a valid feed key */ + feedKey: string; + id: string; + /** a valid username string */ + username: string; +} + export type ReplaceFeedData = Feed; +export interface ReplaceFeedParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + export type ReplaceGroupData = Group; +export interface ReplaceGroupParams { + groupKey: string; + /** a valid username string */ + username: string; +} + export type ReplacePermissionData = Permission; +export interface ReplacePermissionParams { + id: string; + type: string; + typeId: string; + /** a valid username string */ + username: string; +} + export type ReplaceTokenData = Token; +export interface ReplaceTokenParams { + id: string; + /** a valid username string */ + username: string; +} + export type ReplaceTriggerData = Trigger; +export interface ReplaceTriggerParams { + id: string; + /** a valid username string */ + username: string; +} + export type RetainDataData = string; +export interface RetainDataParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + export interface ShallowGroup { created_at?: string; description?: string; @@ -529,20 +834,74 @@ export interface Trigger { export type UpdateBlockData = Block; +export interface UpdateBlockParams { + dashboardId: string; + id: string; + /** a valid username string */ + username: string; +} + export type UpdateDashboardData = Dashboard; +export interface UpdateDashboardParams { + id: string; + /** a valid username string */ + username: string; +} + export type UpdateDataData = DataResponse; +export interface UpdateDataParams { + /** a valid feed key */ + feedKey: string; + id: string; + /** a valid username string */ + username: string; +} + export type UpdateFeedData = Feed; +export interface UpdateFeedParams { + /** a valid feed key */ + feedKey: string; + /** a valid username string */ + username: string; +} + export type UpdateGroupData = Group; +export interface UpdateGroupParams { + groupKey: string; + /** a valid username string */ + username: string; +} + export type UpdatePermissionData = Permission; +export interface UpdatePermissionParams { + id: string; + type: string; + typeId: string; + /** a valid username string */ + username: string; +} + export type UpdateTokenData = Token; +export interface UpdateTokenParams { + id: string; + /** a valid username string */ + username: string; +} + export type UpdateTriggerData = Trigger; +export interface UpdateTriggerParams { + id: string; + /** a valid username string */ + username: string; +} + export interface User { color?: string; /** @format dateTime */ @@ -2632,7 +2991,7 @@ export class Api extends HttpClient + createRawWebhookFeedData: ({ token }: CreateRawWebhookFeedDataParams, params: RequestParams = {}) => this.request({ path: \`/webhooks/feed/\${token}/raw\`, method: "POST", @@ -2651,7 +3010,11 @@ export class Api extends HttpClient + createWebhookFeedData: ( + { token }: CreateWebhookFeedDataParams, + payload: CreateWebhookFeedDataPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/webhooks/feed/\${token}\`, method: "POST", @@ -2710,7 +3073,7 @@ export class Api extends HttpClient + allBlocks: ({ username, dashboardId }: AllBlocksParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/dashboards/\${dashboardId}/blocks\`, method: "GET", @@ -2728,7 +3091,7 @@ export class Api extends HttpClient + allDashboards: ({ username }: AllDashboardsParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/dashboards\`, method: "GET", @@ -2765,7 +3128,7 @@ export class Api extends HttpClient + allFeeds: ({ username }: AllFeedsParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/feeds\`, method: "GET", @@ -2802,7 +3165,7 @@ export class Api extends HttpClient + allGroupFeeds: ({ groupKey, username }: AllGroupFeedsParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/groups/\${groupKey}/feeds\`, method: "GET", @@ -2820,7 +3183,7 @@ export class Api extends HttpClient + allGroups: ({ username }: AllGroupsParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/groups\`, method: "GET", @@ -2838,7 +3201,7 @@ export class Api extends HttpClient + allPermissions: ({ username, type, typeId }: AllPermissionsParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/\${type}/\${typeId}/acl\`, method: "GET", @@ -2856,7 +3219,7 @@ export class Api extends HttpClient + allTokens: ({ username }: AllTokensParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/tokens\`, method: "GET", @@ -2874,7 +3237,7 @@ export class Api extends HttpClient + allTriggers: ({ username }: AllTriggersParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/triggers\`, method: "GET", @@ -2893,8 +3256,7 @@ export class Api extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient @@ -3163,8 +3520,7 @@ export class Api extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient + destroyActivities: ({ username }: DestroyActivitiesParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/activities\`, method: "DELETE", @@ -3327,7 +3679,7 @@ export class Api extends HttpClient + destroyBlock: ({ username, dashboardId, id }: DestroyBlockParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/dashboards/\${dashboardId}/blocks/\${id}\`, method: "DELETE", @@ -3345,7 +3697,7 @@ export class Api extends HttpClient + destroyDashboard: ({ username, id }: DestroyDashboardParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/dashboards/\${id}\`, method: "DELETE", @@ -3363,7 +3715,7 @@ export class Api extends HttpClient + destroyData: ({ username, feedKey, id }: DestroyDataParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/feeds/\${feedKey}/data/\${id}\`, method: "DELETE", @@ -3381,7 +3733,7 @@ export class Api extends HttpClient + destroyFeed: ({ username, feedKey }: DestroyFeedParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/feeds/\${feedKey}\`, method: "DELETE", @@ -3398,7 +3750,7 @@ export class Api extends HttpClient + destroyGroup: ({ username, groupKey }: DestroyGroupParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/groups/\${groupKey}\`, method: "DELETE", @@ -3416,7 +3768,7 @@ export class Api extends HttpClient + destroyPermission: ({ username, type, typeId, id }: DestroyPermissionParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/\${type}/\${typeId}/acl/\${id}\`, method: "DELETE", @@ -3434,7 +3786,7 @@ export class Api extends HttpClient + destroyToken: ({ username, id }: DestroyTokenParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/tokens/\${id}\`, method: "DELETE", @@ -3452,7 +3804,7 @@ export class Api extends HttpClient + destroyTrigger: ({ username, id }: DestroyTriggerParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/triggers/\${id}\`, method: "DELETE", @@ -3509,7 +3861,7 @@ export class Api extends HttpClient + getBlock: ({ username, dashboardId, id }: GetBlockParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/dashboards/\${dashboardId}/blocks/\${id}\`, method: "GET", @@ -3527,7 +3879,7 @@ export class Api extends HttpClient + getCurrentUserThrottle: ({ username }: GetCurrentUserThrottleParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/throttle\`, method: "GET", @@ -3545,7 +3897,7 @@ export class Api extends HttpClient + getDashboard: ({ username, id }: GetDashboardParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/dashboards/\${id}\`, method: "GET", @@ -3582,7 +3934,7 @@ export class Api extends HttpClient + getFeed: ({ username, feedKey }: GetFeedParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/feeds/\${feedKey}\`, method: "GET", @@ -3600,7 +3952,7 @@ export class Api extends HttpClient + getFeedDetails: ({ username, feedKey }: GetFeedDetailsParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/feeds/\${feedKey}/details\`, method: "GET", @@ -3618,7 +3970,7 @@ export class Api extends HttpClient + getGroup: ({ username, groupKey }: GetGroupParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/groups/\${groupKey}\`, method: "GET", @@ -3636,7 +3988,7 @@ export class Api extends HttpClient + getPermission: ({ username, type, typeId, id }: GetPermissionParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/\${type}/\${typeId}/acl/\${id}\`, method: "GET", @@ -3654,7 +4006,7 @@ export class Api extends HttpClient + getToken: ({ username, id }: GetTokenParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/tokens/\${id}\`, method: "GET", @@ -3672,7 +4024,7 @@ export class Api extends HttpClient + getTrigger: ({ username, id }: GetTriggerParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/triggers/\${id}\`, method: "GET", @@ -3770,9 +4122,7 @@ export class Api extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient + retainData: ({ username, feedKey }: RetainDataParams, params: RequestParams = {}) => this.request({ path: \`/\${username}/feeds/\${feedKey}/data/retain\`, method: "GET", @@ -4038,9 +4378,7 @@ export class Api extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient extends HttpClient; export type GetOrderByIdData = Order; +export interface GetOrderByIdParams { + /** + * ID of pet that needs to be fetched + * @format int64 + * @min 1 + * @max 5 + */ + orderId: number; +} + export type GetPetByIdData = Pet; +export interface GetPetByIdParams { + /** + * ID of pet to return + * @format int64 + */ + petId: number; +} + export type GetUserByNameData = User; +export interface GetUserByNameParams { + /** The name that needs to be fetched. Use user1 for testing. */ + username: string; +} + export type LoginUserData = string; export interface LoginUserParams { @@ -5240,6 +5609,14 @@ export interface Tag { name?: string; } +export interface UpdatePetWithFormParams { + /** + * ID of pet that needs to be updated + * @format int64 + */ + petId: number; +} + export interface UpdatePetWithFormPayload { /** Updated name of the pet */ name?: string; @@ -5247,8 +5624,21 @@ export interface UpdatePetWithFormPayload { status?: string; } +export interface UpdateUserParams { + /** name that need to be deleted */ + username: string; +} + export type UploadFileData = ApiResponse; +export interface UploadFileParams { + /** + * ID of pet to update + * @format int64 + */ + petId: number; +} + export interface UploadFilePayload { /** Additional data to pass to server */ additionalMetadata?: string; @@ -5956,7 +6346,7 @@ export class Api extends HttpClient + deletePet: ({ petId }: DeletePetParams, params: RequestParams = {}) => this.request({ path: \`/pet/\${petId}\`, method: "DELETE", @@ -5973,7 +6363,7 @@ export class Api extends HttpClient + findPetsByStatus: ({ ...query }: FindPetsByStatusParams, params: RequestParams = {}) => this.request({ path: \`/pet/findByStatus\`, method: "GET", @@ -5993,7 +6383,7 @@ export class Api extends HttpClient + findPetsByTags: ({ ...query }: FindPetsByTagsParams, params: RequestParams = {}) => this.request({ path: \`/pet/findByTags\`, method: "GET", @@ -6062,7 +6452,7 @@ export class Api extends HttpClient + getPetById: ({ petId }: GetPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pet/\${petId}\`, method: "GET", @@ -6116,7 +6506,11 @@ export class Api extends HttpClient + updatePetWithForm: ( + { petId }: UpdatePetWithFormParams, + data: UpdatePetWithFormPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/pet/\${petId}\`, method: "POST", @@ -6135,7 +6529,7 @@ export class Api extends HttpClient + uploadFile: ({ petId }: UploadFileParams, data: UploadFilePayload, params: RequestParams = {}) => this.request({ path: \`/pet/\${petId}/uploadImage\`, method: "POST", @@ -6155,7 +6549,7 @@ export class Api extends HttpClient + deleteOrder: ({ orderId }: DeleteOrderParams, params: RequestParams = {}) => this.request({ path: \`/store/order/\${orderId}\`, method: "DELETE", @@ -6188,7 +6582,7 @@ export class Api extends HttpClient + getOrderById: ({ orderId }: GetOrderByIdParams, params: RequestParams = {}) => this.request({ path: \`/store/order/\${orderId}\`, method: "GET", @@ -6274,7 +6668,7 @@ export class Api extends HttpClient + deleteUser: ({ username }: DeleteUserParams, params: RequestParams = {}) => this.request({ path: \`/user/\${username}\`, method: "DELETE", @@ -6289,7 +6683,7 @@ export class Api extends HttpClient + getUserByName: ({ username }: GetUserByNameParams, params: RequestParams = {}) => this.request({ path: \`/user/\${username}\`, method: "GET", @@ -6305,7 +6699,7 @@ export class Api extends HttpClient + loginUser: ({ ...query }: LoginUserParams, params: RequestParams = {}) => this.request({ path: \`/user/login\`, method: "GET", @@ -6337,7 +6731,7 @@ export class Api extends HttpClient + updateUser: ({ username }: UpdateUserParams, body: User, params: RequestParams = {}) => this.request({ path: \`/user/\${username}\`, method: "PUT", @@ -6664,7 +7058,7 @@ export class Api extends HttpClient + fooGetBar: ({ ...query }: FooGetBarParams, params: RequestParams = {}) => this.request({ path: \`/api/Foo/GetBar\`, method: "GET", @@ -7680,10 +8074,20 @@ export interface GetKeyData { export type GetKeyError = Error; +export interface GetKeyParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + export type HeadKeyData = any; export type HeadKeyError = Error; +export interface HeadKeyParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + export interface KeyBindData { /** confirmed */ status?: string; @@ -7691,6 +8095,11 @@ export interface KeyBindData { export type KeyBindError = Error; +export interface KeyBindParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + export interface KeyRegisterData { /** revoke key */ secret?: string; @@ -7737,6 +8146,11 @@ export interface KeyUpdateData { export type KeyUpdateError = Error; +export interface KeyUpdateParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + export interface PushLoginRequestData { /** sent */ status?: string; @@ -7769,6 +8183,11 @@ export interface SignConfirmData { export type SignConfirmError = Error; +export interface SignConfirmParams { + /** Job ID (20 chars) */ + job: string; +} + export interface SignDeleteData { /** done */ status?: string; @@ -7776,6 +8195,11 @@ export interface SignDeleteData { export type SignDeleteError = Error; +export interface SignDeleteParams { + /** Job ID (20 chars) */ + job: string; +} + export interface SignRequestData { /** 20-character ID */ job?: string; @@ -7804,6 +8228,16 @@ export type SignRetrieveHeadData = any; export type SignRetrieveHeadError = Error; +export interface SignRetrieveHeadParams { + /** Job ID (20 chars) */ + job: string; +} + +export interface SignRetrieveParams { + /** Job ID (20 chars) */ + job: string; +} + export interface SignUpdateData { /** result is JWT or JSON?? */ jwt?: string; @@ -7813,10 +8247,27 @@ export interface SignUpdateData { export type SignUpdateError = Error; +export interface SignUpdateParams { + /** Job ID (20 chars) */ + job: string; +} + export type WrongPathParams1Data = any; +export interface WrongPathParams1Params { + pathParam1: string; + pathParam2: string; + pathParam3: string; + pathParam4: string; +} + export type WrongPathParams2Data = any; +export interface WrongPathParams2Params { + /** DDD */ + pathParam1: string; +} + export namespace WrongPathParams1 { /** * @description DDD @@ -8335,10 +8786,7 @@ export class Api extends HttpClient this.request({ @@ -8355,7 +8803,7 @@ export class Api extends HttpClient + wrongPathParams2: ({ pathParam1 }: WrongPathParams2Params, params: RequestParams = {}) => this.request({ path: \`/wrong-path-params2\`, method: "DELETE", @@ -8370,7 +8818,7 @@ export class Api extends HttpClient + getKey: ({ pk }: GetKeyParams, params: RequestParams = {}) => this.request({ path: \`/key/\${pk}\`, method: "GET", @@ -8385,7 +8833,7 @@ export class Api extends HttpClient + headKey: ({ pk }: HeadKeyParams, params: RequestParams = {}) => this.request({ path: \`/key/\${pk}\`, method: "HEAD", @@ -8399,7 +8847,7 @@ export class Api extends HttpClient + keyBind: ({ pk }: KeyBindParams, body: AuthentiqID, params: RequestParams = {}) => this.request({ path: \`/key/\${pk}\`, method: "PUT", @@ -8447,7 +8895,7 @@ export class Api extends HttpClient + keyRevokeNosecret: ({ ...query }: KeyRevokeNosecretParams, params: RequestParams = {}) => this.request({ path: \`/key\`, method: "DELETE", @@ -8463,7 +8911,7 @@ export class Api extends HttpClient + keyUpdate: ({ pk }: KeyUpdateParams, body: AuthentiqID, params: RequestParams = {}) => this.request({ path: \`/key/\${pk}\`, method: "POST", @@ -8480,7 +8928,7 @@ export class Api extends HttpClient + pushLoginRequest: ({ ...query }: PushLoginRequestParams, body: PushToken, params: RequestParams = {}) => this.request({ path: \`/login\`, method: "POST", @@ -8498,7 +8946,7 @@ export class Api extends HttpClient + signConfirm: ({ job }: SignConfirmParams, params: RequestParams = {}) => this.request({ path: \`/scope/\${job}\`, method: "POST", @@ -8514,7 +8962,7 @@ export class Api extends HttpClient + signDelete: ({ job }: SignDeleteParams, params: RequestParams = {}) => this.request({ path: \`/scope/\${job}\`, method: "DELETE", @@ -8529,7 +8977,7 @@ export class Api extends HttpClient + signRequest: ({ ...query }: SignRequestParams, body: Claims, params: RequestParams = {}) => this.request({ path: \`/scope\`, method: "POST", @@ -8546,7 +8994,7 @@ export class Api extends HttpClient + signRetrieve: ({ job }: SignRetrieveParams, params: RequestParams = {}) => this.request({ path: \`/scope/\${job}\`, method: "GET", @@ -8561,7 +9009,7 @@ export class Api extends HttpClient + signRetrieveHead: ({ job }: SignRetrieveHeadParams, params: RequestParams = {}) => this.request({ path: \`/scope/\${job}\`, method: "HEAD", @@ -8575,7 +9023,7 @@ export class Api extends HttpClient + signUpdate: ({ job }: SignUpdateParams, params: RequestParams = {}) => this.request({ path: \`/scope/\${job}\`, method: "PUT", @@ -8863,7 +9311,7 @@ export class Api extends HttpClient + streamsCreate: ({ ...query }: StreamsCreateParams, params: RequestParams = {}) => this.request({ path: \`/streams\`, method: "POST", @@ -9789,6 +10237,10 @@ exports[`extended > 'explode-param-3' 1`] = ` export type CreateFileData = Floop; +export interface CreateFileParams { + user: string; +} + export interface CreateFilePayload { /** @default "" */ meme: string; @@ -10078,7 +10530,7 @@ export class Api extends HttpClient + createFile: ({ user }: CreateFileParams, data: CreateFilePayload, params: RequestParams = {}) => this.request({ path: \`/\${user}/foos\`, method: "POST", @@ -10095,7 +10547,7 @@ export class Api extends HttpClient + gets: ({ ...query }: GetsParams, params: RequestParams = {}) => this.request({ path: \`/something/\`, method: "GET", @@ -10401,10 +10853,32 @@ exports[`extended > 'full-swagger-scheme' 1`] = ` export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgData = any; +export interface ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams { + org: string; + repositoryId: number; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export type ActionsAddSelectedRepoToOrgSecretData = any; +export interface ActionsAddSelectedRepoToOrgSecretParams { + org: string; + repositoryId: number; + /** secret_name parameter */ + secretName: string; +} + export type ActionsAddSelfHostedRunnerToGroupForOrgData = any; +export interface ActionsAddSelfHostedRunnerToGroupForOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export interface ActionsBillingUsage { /** The amount of free GitHub Actions minutes available. */ included_minutes: number; @@ -10424,8 +10898,20 @@ export interface ActionsBillingUsage { export type ActionsCancelWorkflowRunData = any; +export interface ActionsCancelWorkflowRunParams { + owner: string; + repo: string; + runId: number; +} + export type ActionsCreateOrUpdateOrgSecretData = any; +export interface ActionsCreateOrUpdateOrgSecretParams { + org: string; + /** secret_name parameter */ + secretName: string; +} + export interface ActionsCreateOrUpdateOrgSecretPayload { /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint. */ encrypted_value?: string; @@ -10456,6 +10942,13 @@ export enum ActionsCreateOrUpdateOrgSecretVisibilityEnum { export type ActionsCreateOrUpdateRepoSecretData = any; +export interface ActionsCreateOrUpdateRepoSecretParams { + owner: string; + repo: string; + /** secret_name parameter */ + secretName: string; +} + export interface ActionsCreateOrUpdateRepoSecretPayload { /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/reference/actions#get-a-repository-public-key) endpoint. */ encrypted_value?: string; @@ -10465,14 +10958,36 @@ export interface ActionsCreateOrUpdateRepoSecretPayload { export type ActionsCreateRegistrationTokenForOrgData = AuthenticationToken; +export interface ActionsCreateRegistrationTokenForOrgParams { + org: string; +} + export type ActionsCreateRegistrationTokenForRepoData = AuthenticationToken; +export interface ActionsCreateRegistrationTokenForRepoParams { + owner: string; + repo: string; +} + export type ActionsCreateRemoveTokenForOrgData = AuthenticationToken; +export interface ActionsCreateRemoveTokenForOrgParams { + org: string; +} + export type ActionsCreateRemoveTokenForRepoData = AuthenticationToken; +export interface ActionsCreateRemoveTokenForRepoParams { + owner: string; + repo: string; +} + export type ActionsCreateSelfHostedRunnerGroupForOrgData = RunnerGroupsOrg; +export interface ActionsCreateSelfHostedRunnerGroupForOrgParams { + org: string; +} + export interface ActionsCreateSelfHostedRunnerGroupForOrgPayload { /** Name of the runner group. */ name: string; @@ -10499,6 +11014,13 @@ export enum ActionsCreateSelfHostedRunnerGroupForOrgVisibilityEnum { export type ActionsCreateWorkflowDispatchData = any; +export interface ActionsCreateWorkflowDispatchParams { + owner: string; + repo: string; + /** The ID of the workflow. You can also pass the workflow file name as a string. */ + workflowId: number | string; +} + export interface ActionsCreateWorkflowDispatchPayload { /** Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when \`inputs\` are omitted. */ inputs?: Record; @@ -10508,28 +11030,124 @@ export interface ActionsCreateWorkflowDispatchPayload { export type ActionsDeleteArtifactData = any; +export interface ActionsDeleteArtifactParams { + /** artifact_id parameter */ + artifactId: number; + owner: string; + repo: string; +} + export type ActionsDeleteOrgSecretData = any; +export interface ActionsDeleteOrgSecretParams { + org: string; + /** secret_name parameter */ + secretName: string; +} + export type ActionsDeleteRepoSecretData = any; +export interface ActionsDeleteRepoSecretParams { + owner: string; + repo: string; + /** secret_name parameter */ + secretName: string; +} + export type ActionsDeleteSelfHostedRunnerFromOrgData = any; +export interface ActionsDeleteSelfHostedRunnerFromOrgParams { + org: string; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type ActionsDeleteSelfHostedRunnerFromRepoData = any; +export interface ActionsDeleteSelfHostedRunnerFromRepoParams { + owner: string; + repo: string; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type ActionsDeleteSelfHostedRunnerGroupFromOrgData = any; +export interface ActionsDeleteSelfHostedRunnerGroupFromOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export type ActionsDeleteWorkflowRunData = any; export type ActionsDeleteWorkflowRunLogsData = any; +export interface ActionsDeleteWorkflowRunLogsParams { + owner: string; + repo: string; + runId: number; +} + +export interface ActionsDeleteWorkflowRunParams { + owner: string; + repo: string; + runId: number; +} + export type ActionsDisableSelectedRepositoryGithubActionsOrganizationData = any; +export interface ActionsDisableSelectedRepositoryGithubActionsOrganizationParams { + org: string; + repositoryId: number; +} + export type ActionsDisableWorkflowData = any; +export interface ActionsDisableWorkflowParams { + owner: string; + repo: string; + /** The ID of the workflow. You can also pass the workflow file name as a string. */ + workflowId: number | string; +} + +export interface ActionsDownloadArtifactParams { + archiveFormat: string; + /** artifact_id parameter */ + artifactId: number; + owner: string; + repo: string; +} + +export interface ActionsDownloadJobLogsForWorkflowRunParams { + /** job_id parameter */ + jobId: number; + owner: string; + repo: string; +} + +export interface ActionsDownloadWorkflowRunLogsParams { + owner: string; + repo: string; + runId: number; +} + export type ActionsEnableSelectedRepositoryGithubActionsOrganizationData = any; +export interface ActionsEnableSelectedRepositoryGithubActionsOrganizationParams { + org: string; + repositoryId: number; +} + export type ActionsEnableWorkflowData = any; +export interface ActionsEnableWorkflowParams { + owner: string; + repo: string; + /** The ID of the workflow. You can also pass the workflow file name as a string. */ + workflowId: number | string; +} + /** Whether GitHub Actions is enabled on the repository. */ export type ActionsEnabled = boolean; @@ -10546,38 +11164,137 @@ export interface ActionsEnterprisePermissions { export type ActionsGetAllowedActionsOrganizationData = SelectedActions; +export interface ActionsGetAllowedActionsOrganizationParams { + org: string; +} + export type ActionsGetAllowedActionsRepositoryData = SelectedActions; +export interface ActionsGetAllowedActionsRepositoryParams { + owner: string; + repo: string; +} + export type ActionsGetArtifactData = Artifact; +export interface ActionsGetArtifactParams { + /** artifact_id parameter */ + artifactId: number; + owner: string; + repo: string; +} + export type ActionsGetGithubActionsPermissionsOrganizationData = ActionsOrganizationPermissions; +export interface ActionsGetGithubActionsPermissionsOrganizationParams { + org: string; +} + export type ActionsGetGithubActionsPermissionsRepositoryData = ActionsRepositoryPermissions; +export interface ActionsGetGithubActionsPermissionsRepositoryParams { + owner: string; + repo: string; +} + export type ActionsGetJobForWorkflowRunData = Job; +export interface ActionsGetJobForWorkflowRunParams { + /** job_id parameter */ + jobId: number; + owner: string; + repo: string; +} + export type ActionsGetOrgPublicKeyData = ActionsPublicKey; +export interface ActionsGetOrgPublicKeyParams { + org: string; +} + export type ActionsGetOrgSecretData = OrganizationActionsSecret; +export interface ActionsGetOrgSecretParams { + org: string; + /** secret_name parameter */ + secretName: string; +} + export type ActionsGetRepoPublicKeyData = ActionsPublicKey; +export interface ActionsGetRepoPublicKeyParams { + owner: string; + repo: string; +} + export type ActionsGetRepoSecretData = ActionsSecret; +export interface ActionsGetRepoSecretParams { + owner: string; + repo: string; + /** secret_name parameter */ + secretName: string; +} + export type ActionsGetSelfHostedRunnerForOrgData = Runner; +export interface ActionsGetSelfHostedRunnerForOrgParams { + org: string; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type ActionsGetSelfHostedRunnerForRepoData = Runner; +export interface ActionsGetSelfHostedRunnerForRepoParams { + owner: string; + repo: string; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type ActionsGetSelfHostedRunnerGroupForOrgData = RunnerGroupsOrg; +export interface ActionsGetSelfHostedRunnerGroupForOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export type ActionsGetWorkflowData = Workflow; +export interface ActionsGetWorkflowParams { + owner: string; + repo: string; + /** The ID of the workflow. You can also pass the workflow file name as a string. */ + workflowId: number | string; +} + export type ActionsGetWorkflowRunData = WorkflowRun; +export interface ActionsGetWorkflowRunParams { + owner: string; + repo: string; + runId: number; +} + export type ActionsGetWorkflowRunUsageData = WorkflowRunUsage; +export interface ActionsGetWorkflowRunUsageParams { + owner: string; + repo: string; + runId: number; +} + export type ActionsGetWorkflowUsageData = WorkflowUsage; +export interface ActionsGetWorkflowUsageParams { + owner: string; + repo: string; + /** The ID of the workflow. You can also pass the workflow file name as a string. */ + workflowId: number | string; +} + export interface ActionsListArtifactsForRepoData { artifacts: Artifact[]; total_count: number; @@ -10661,6 +11378,12 @@ export interface ActionsListRepoAccessToSelfHostedRunnerGroupInOrgData { total_count: number; } +export interface ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface ActionsListRepoSecretsData { secrets: ActionsSecret[]; total_count: number; @@ -10703,13 +11426,28 @@ export interface ActionsListRepoWorkflowsParams { export type ActionsListRunnerApplicationsForOrgData = RunnerApplication[]; +export interface ActionsListRunnerApplicationsForOrgParams { + org: string; +} + export type ActionsListRunnerApplicationsForRepoData = RunnerApplication[]; +export interface ActionsListRunnerApplicationsForRepoParams { + owner: string; + repo: string; +} + export interface ActionsListSelectedReposForOrgSecretData { repositories: MinimalRepository[]; total_count: number; } +export interface ActionsListSelectedReposForOrgSecretParams { + org: string; + /** secret_name parameter */ + secretName: string; +} + export interface ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationData { repositories: Repository[]; total_count: number; @@ -10939,12 +11677,40 @@ export interface ActionsPublicKey { export type ActionsReRunWorkflowData = any; +export interface ActionsReRunWorkflowParams { + owner: string; + repo: string; + runId: number; +} + export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgData = any; +export interface ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams { + org: string; + repositoryId: number; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export type ActionsRemoveSelectedRepoFromOrgSecretData = any; +export interface ActionsRemoveSelectedRepoFromOrgSecretParams { + org: string; + repositoryId: number; + /** secret_name parameter */ + secretName: string; +} + export type ActionsRemoveSelfHostedRunnerFromGroupForOrgData = any; +export interface ActionsRemoveSelfHostedRunnerFromGroupForOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export interface ActionsRepositoryPermissions { /** The permissions policy that controls the actions that are allowed to run. Can be one of: \`all\`, \`local_only\`, or \`selected\`. */ allowed_actions: AllowedActions; @@ -10972,10 +11738,23 @@ export interface ActionsSecret { export type ActionsSetAllowedActionsOrganizationData = any; +export interface ActionsSetAllowedActionsOrganizationParams { + org: string; +} + export type ActionsSetAllowedActionsRepositoryData = any; +export interface ActionsSetAllowedActionsRepositoryParams { + owner: string; + repo: string; +} + export type ActionsSetGithubActionsPermissionsOrganizationData = any; +export interface ActionsSetGithubActionsPermissionsOrganizationParams { + org: string; +} + export interface ActionsSetGithubActionsPermissionsOrganizationPayload { /** The permissions policy that controls the actions that are allowed to run. Can be one of: \`all\`, \`local_only\`, or \`selected\`. */ allowed_actions?: AllowedActions; @@ -10985,6 +11764,11 @@ export interface ActionsSetGithubActionsPermissionsOrganizationPayload { export type ActionsSetGithubActionsPermissionsRepositoryData = any; +export interface ActionsSetGithubActionsPermissionsRepositoryParams { + owner: string; + repo: string; +} + export interface ActionsSetGithubActionsPermissionsRepositoryPayload { /** The permissions policy that controls the actions that are allowed to run. Can be one of: \`all\`, \`local_only\`, or \`selected\`. */ allowed_actions?: AllowedActions; @@ -10994,6 +11778,12 @@ export interface ActionsSetGithubActionsPermissionsRepositoryPayload { export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgData = any; +export interface ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgPayload { /** List of repository IDs that can access the runner group. */ selected_repository_ids: number[]; @@ -11001,6 +11791,12 @@ export interface ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgPayload { export type ActionsSetSelectedReposForOrgSecretData = any; +export interface ActionsSetSelectedReposForOrgSecretParams { + org: string; + /** secret_name parameter */ + secretName: string; +} + export interface ActionsSetSelectedReposForOrgSecretPayload { /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the \`visibility\` is set to \`selected\`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */ selected_repository_ids?: number[]; @@ -11008,6 +11804,10 @@ export interface ActionsSetSelectedReposForOrgSecretPayload { export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationData = any; +export interface ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParams { + org: string; +} + export interface ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationPayload { /** List of repository IDs to enable for GitHub Actions. */ selected_repository_ids: number[]; @@ -11015,6 +11815,12 @@ export interface ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationP export type ActionsSetSelfHostedRunnersInGroupForOrgData = any; +export interface ActionsSetSelfHostedRunnersInGroupForOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface ActionsSetSelfHostedRunnersInGroupForOrgPayload { /** List of runner IDs to add to the runner group. */ runners: number[]; @@ -11022,6 +11828,12 @@ export interface ActionsSetSelfHostedRunnersInGroupForOrgPayload { export type ActionsUpdateSelfHostedRunnerGroupForOrgData = RunnerGroupsOrg; +export interface ActionsUpdateSelfHostedRunnerGroupForOrgParams { + org: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface ActionsUpdateSelfHostedRunnerGroupForOrgPayload { /** Name of the runner group. */ name?: string; @@ -11040,18 +11852,48 @@ export type ActivityCheckRepoIsStarredByAuthenticatedUserData = any; export type ActivityCheckRepoIsStarredByAuthenticatedUserError = BasicError; +export interface ActivityCheckRepoIsStarredByAuthenticatedUserParams { + owner: string; + repo: string; +} + export type ActivityDeleteRepoSubscriptionData = any; +export interface ActivityDeleteRepoSubscriptionParams { + owner: string; + repo: string; +} + export type ActivityDeleteThreadSubscriptionData = any; +export interface ActivityDeleteThreadSubscriptionParams { + /** thread_id parameter */ + threadId: number; +} + export type ActivityGetFeedsData = Feed; export type ActivityGetRepoSubscriptionData = RepositorySubscription; +export interface ActivityGetRepoSubscriptionParams { + owner: string; + repo: string; +} + export type ActivityGetThreadData = Thread; +export interface ActivityGetThreadParams { + /** thread_id parameter */ + threadId: number; +} + export type ActivityGetThreadSubscriptionForAuthenticatedUserData = ThreadSubscription; +export interface ActivityGetThreadSubscriptionForAuthenticatedUserParams { + /** thread_id parameter */ + threadId: number; +} + export type ActivityListEventsForAuthenticatedUserData = Event[]; export interface ActivityListEventsForAuthenticatedUserParams { @@ -11426,6 +12268,11 @@ export interface ActivityMarkNotificationsAsReadPayload { export type ActivityMarkRepoNotificationsAsReadData = any; +export interface ActivityMarkRepoNotificationsAsReadParams { + owner: string; + repo: string; +} + export interface ActivityMarkRepoNotificationsAsReadPayload { /** Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: \`YYYY-MM-DDTHH:MM:SSZ\`. Default: The current timestamp. */ last_read_at?: string; @@ -11433,8 +12280,18 @@ export interface ActivityMarkRepoNotificationsAsReadPayload { export type ActivityMarkThreadAsReadData = any; +export interface ActivityMarkThreadAsReadParams { + /** thread_id parameter */ + threadId: number; +} + export type ActivitySetRepoSubscriptionData = RepositorySubscription; +export interface ActivitySetRepoSubscriptionParams { + owner: string; + repo: string; +} + export interface ActivitySetRepoSubscriptionPayload { /** Determines if all notifications should be blocked from this repository. */ ignored?: boolean; @@ -11444,6 +12301,11 @@ export interface ActivitySetRepoSubscriptionPayload { export type ActivitySetThreadSubscriptionData = ThreadSubscription; +export interface ActivitySetThreadSubscriptionParams { + /** thread_id parameter */ + threadId: number; +} + export interface ActivitySetThreadSubscriptionPayload { /** * Whether to block all notifications from a thread. @@ -11454,8 +12316,18 @@ export interface ActivitySetThreadSubscriptionPayload { export type ActivityStarRepoForAuthenticatedUserData = any; +export interface ActivityStarRepoForAuthenticatedUserParams { + owner: string; + repo: string; +} + export type ActivityUnstarRepoForAuthenticatedUserData = any; +export interface ActivityUnstarRepoForAuthenticatedUserParams { + owner: string; + repo: string; +} + /** * Actor * Actor @@ -11834,10 +12706,27 @@ export interface ApplicationGrant { export type AppsAddRepoToInstallationData = any; +export interface AppsAddRepoToInstallationParams { + /** installation_id parameter */ + installationId: number; + repositoryId: number; +} + export type AppsCheckAuthorizationData = Authorization | null; +export interface AppsCheckAuthorizationParams { + accessToken: string; + /** The client ID of your GitHub app. */ + clientId: string; +} + export type AppsCheckTokenData = Authorization; +export interface AppsCheckTokenParams { + /** The client ID of your GitHub app. */ + clientId: string; +} + export interface AppsCheckTokenPayload { /** The access_token of the OAuth application. */ access_token: string; @@ -11845,6 +12734,10 @@ export interface AppsCheckTokenPayload { export type AppsCreateContentAttachmentData = ContentReferenceAttachment; +export interface AppsCreateContentAttachmentParams { + contentReferenceId: number; +} + export interface AppsCreateContentAttachmentPayload { /** * The body of the attachment @@ -11868,8 +12761,17 @@ export type AppsCreateFromManifestData = Integration & { [key: string]: any; }; +export interface AppsCreateFromManifestParams { + code: string; +} + export type AppsCreateInstallationAccessTokenData = InstallationToken; +export interface AppsCreateInstallationAccessTokenParams { + /** installation_id parameter */ + installationId: number; +} + export interface AppsCreateInstallationAccessTokenPayload { /** The permissions granted to the user-to-server access token. */ permissions?: AppPermissions; @@ -11884,6 +12786,11 @@ export interface AppsCreateInstallationAccessTokenPayload { export type AppsDeleteAuthorizationData = any; +export interface AppsDeleteAuthorizationParams { + /** The client ID of your GitHub app. */ + clientId: string; +} + export interface AppsDeleteAuthorizationPayload { /** The OAuth access token used to authenticate to the GitHub API. */ access_token?: string; @@ -11891,8 +12798,18 @@ export interface AppsDeleteAuthorizationPayload { export type AppsDeleteInstallationData = any; +export interface AppsDeleteInstallationParams { + /** installation_id parameter */ + installationId: number; +} + export type AppsDeleteTokenData = any; +export interface AppsDeleteTokenParams { + /** The client ID of your GitHub app. */ + clientId: string; +} + export interface AppsDeleteTokenPayload { /** The OAuth access token used to authenticate to the GitHub API. */ access_token?: string; @@ -11902,20 +12819,52 @@ export type AppsGetAuthenticatedData = Integration; export type AppsGetBySlugData = Integration; +export interface AppsGetBySlugParams { + appSlug: string; +} + export type AppsGetInstallationData = Installation; +export interface AppsGetInstallationParams { + /** installation_id parameter */ + installationId: number; +} + export type AppsGetOrgInstallationData = Installation; +export interface AppsGetOrgInstallationParams { + org: string; +} + export type AppsGetRepoInstallationData = Installation; +export interface AppsGetRepoInstallationParams { + owner: string; + repo: string; +} + export type AppsGetSubscriptionPlanForAccountData = MarketplacePurchase; export type AppsGetSubscriptionPlanForAccountError = BasicError; +export interface AppsGetSubscriptionPlanForAccountParams { + /** account_id parameter */ + accountId: number; +} + export type AppsGetSubscriptionPlanForAccountStubbedData = MarketplacePurchase; +export interface AppsGetSubscriptionPlanForAccountStubbedParams { + /** account_id parameter */ + accountId: number; +} + export type AppsGetUserInstallationData = Installation; +export interface AppsGetUserInstallationParams { + username: string; +} + export type AppsGetWebhookConfigForAppData = WebhookConfig; export type AppsListAccountsForPlanData = MarketplacePurchase[]; @@ -12135,10 +13084,27 @@ export interface AppsListSubscriptionsForAuthenticatedUserStubbedParams { export type AppsRemoveRepoFromInstallationData = any; +export interface AppsRemoveRepoFromInstallationParams { + /** installation_id parameter */ + installationId: number; + repositoryId: number; +} + export type AppsResetAuthorizationData = Authorization; +export interface AppsResetAuthorizationParams { + accessToken: string; + /** The client ID of your GitHub app. */ + clientId: string; +} + export type AppsResetTokenData = Authorization; +export interface AppsResetTokenParams { + /** The client ID of your GitHub app. */ + clientId: string; +} + export interface AppsResetTokenPayload { /** The access_token of the OAuth application. */ access_token: string; @@ -12146,12 +13112,29 @@ export interface AppsResetTokenPayload { export type AppsRevokeAuthorizationForApplicationData = any; +export interface AppsRevokeAuthorizationForApplicationParams { + accessToken: string; + /** The client ID of your GitHub app. */ + clientId: string; +} + export type AppsRevokeGrantForApplicationData = any; +export interface AppsRevokeGrantForApplicationParams { + accessToken: string; + /** The client ID of your GitHub app. */ + clientId: string; +} + export type AppsRevokeInstallationAccessTokenData = any; export type AppsScopeTokenData = Authorization; +export interface AppsScopeTokenParams { + /** The client ID of your GitHub app. */ + clientId: string; +} + export interface AppsScopeTokenPayload { /** * **Required.** The OAuth access token used to authenticate to the GitHub API. @@ -12181,8 +13164,18 @@ export interface AppsScopeTokenPayload { export type AppsSuspendInstallationData = any; +export interface AppsSuspendInstallationParams { + /** installation_id parameter */ + installationId: number; +} + export type AppsUnsuspendInstallationData = any; +export interface AppsUnsuspendInstallationParams { + /** installation_id parameter */ + installationId: number; +} + export type AppsUpdateWebhookConfigForAppData = WebhookConfig; /** @example {"content_type":"json","insecure_ssl":"0","secret":"********","url":"https://example.com/webhook"} */ @@ -12508,22 +13501,61 @@ export interface BasicError { export type BillingGetGithubActionsBillingGheData = ActionsBillingUsage; +export interface BillingGetGithubActionsBillingGheParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type BillingGetGithubActionsBillingOrgData = ActionsBillingUsage; +export interface BillingGetGithubActionsBillingOrgParams { + org: string; +} + export type BillingGetGithubActionsBillingUserData = ActionsBillingUsage; +export interface BillingGetGithubActionsBillingUserParams { + username: string; +} + export type BillingGetGithubPackagesBillingGheData = PackagesBillingUsage; +export interface BillingGetGithubPackagesBillingGheParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type BillingGetGithubPackagesBillingOrgData = PackagesBillingUsage; +export interface BillingGetGithubPackagesBillingOrgParams { + org: string; +} + export type BillingGetGithubPackagesBillingUserData = PackagesBillingUsage; +export interface BillingGetGithubPackagesBillingUserParams { + username: string; +} + export type BillingGetSharedStorageBillingGheData = CombinedBillingUsage; +export interface BillingGetSharedStorageBillingGheParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type BillingGetSharedStorageBillingOrgData = CombinedBillingUsage; +export interface BillingGetSharedStorageBillingOrgParams { + org: string; +} + export type BillingGetSharedStorageBillingUserData = CombinedBillingUsage; +export interface BillingGetSharedStorageBillingUserParams { + username: string; +} + /** * Blob * Blob @@ -12916,6 +13948,11 @@ export enum ChecksCreateConclusionEnum { export type ChecksCreateData = CheckRun; +export interface ChecksCreateParams { + owner: string; + repo: string; +} + export type ChecksCreatePayload = ( | { status?: ChecksCreateStatusEnum; @@ -13040,6 +14077,11 @@ export enum ChecksCreateStatusEnum2 { export type ChecksCreateSuiteData = CheckSuite; +export interface ChecksCreateSuiteParams { + owner: string; + repo: string; +} + export interface ChecksCreateSuitePayload { /** The sha of the head commit. */ head_sha: string; @@ -13047,8 +14089,22 @@ export interface ChecksCreateSuitePayload { export type ChecksGetData = CheckRun; +export interface ChecksGetParams { + /** check_run_id parameter */ + checkRunId: number; + owner: string; + repo: string; +} + export type ChecksGetSuiteData = CheckSuite; +export interface ChecksGetSuiteParams { + /** check_suite_id parameter */ + checkSuiteId: number; + owner: string; + repo: string; +} + export type ChecksListAnnotationsData = CheckAnnotation[]; export interface ChecksListAnnotationsParams { @@ -13193,8 +14249,20 @@ export interface ChecksListSuitesForRefParams { export type ChecksRerequestSuiteData = any; +export interface ChecksRerequestSuiteParams { + /** check_suite_id parameter */ + checkSuiteId: number; + owner: string; + repo: string; +} + export type ChecksSetSuitesPreferencesData = CheckSuitePreference; +export interface ChecksSetSuitesPreferencesParams { + owner: string; + repo: string; +} + export interface ChecksSetSuitesPreferencesPayload { /** Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [\`auto_trigger_checks\` object](https://docs.github.com/rest/reference/checks#auto_trigger_checks-object) description for details. */ auto_trigger_checks?: { @@ -13231,6 +14299,13 @@ export enum ChecksUpdateConclusionEnum { export type ChecksUpdateData = CheckRun; +export interface ChecksUpdateParams { + /** check_run_id parameter */ + checkRunId: number; + owner: string; + repo: string; +} + export type ChecksUpdatePayload = ( | { status?: ChecksUpdateStatusEnum; @@ -13612,6 +14687,12 @@ export type CodeScanningAnalysisToolName = string; export type CodeScanningGetAlertData = CodeScanningAlertCodeScanningAlert; +export interface CodeScanningGetAlertParams { + alertNumber: number; + owner: string; + repo: string; +} + export type CodeScanningListAlertsForRepoData = CodeScanningAlertCodeScanningAlertItems[]; export interface CodeScanningListAlertsForRepoParams { @@ -13636,6 +14717,13 @@ export interface CodeScanningListRecentAnalysesParams { export type CodeScanningUpdateAlertData = CodeScanningAlertCodeScanningAlert; +export interface CodeScanningUpdateAlertParams { + /** The security alert number, found at the end of the security alert's URL. */ + alertNumber: AlertNumber; + owner: string; + repo: string; +} + export interface CodeScanningUpdateAlertPayload { /** **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: \`false positive\`, \`won't fix\`, and \`used in tests\`. */ dismissed_reason?: CodeScanningAlertDismissedReason; @@ -13645,6 +14733,11 @@ export interface CodeScanningUpdateAlertPayload { export type CodeScanningUploadSarifData = any; +export interface CodeScanningUploadSarifParams { + owner: string; + repo: string; +} + export interface CodeScanningUploadSarifPayload { /** * The base directory used in the analysis, as it appears in the SARIF file. @@ -13698,8 +14791,17 @@ export type CodesOfConductGetAllCodesOfConductData = CodeOfConduct[]; export type CodesOfConductGetConductCodeData = CodeOfConduct; +export interface CodesOfConductGetConductCodeParams { + key: string; +} + export type CodesOfConductGetForRepoData = CodeOfConduct; +export interface CodesOfConductGetForRepoParams { + owner: string; + repo: string; +} + /** * Collaborator * Collaborator @@ -14941,14 +16043,47 @@ export interface Enterprise { export type EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseData = any; +export interface EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of an organization. */ + orgId: number; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export type EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseData = any; +export interface EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type EnterpriseAdminCreateRegistrationTokenForEnterpriseData = AuthenticationToken; +export interface EnterpriseAdminCreateRegistrationTokenForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type EnterpriseAdminCreateRemoveTokenForEnterpriseData = AuthenticationToken; +export interface EnterpriseAdminCreateRemoveTokenForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseData = RunnerGroupsEnterprise; +export interface EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export interface EnterpriseAdminCreateSelfHostedRunnerGroupForEnterprisePayload { /** Name of the runner group. */ name: string; @@ -14968,28 +16103,108 @@ export enum EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseVisibilityEnu export type EnterpriseAdminDeleteScimGroupFromEnterpriseData = any; +export interface EnterpriseAdminDeleteScimGroupFromEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Identifier generated by the GitHub SCIM endpoint. */ + scimGroupId: string; +} + export type EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseData = any; +export interface EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseData = any; +export interface EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export type EnterpriseAdminDeleteUserFromEnterpriseData = any; +export interface EnterpriseAdminDeleteUserFromEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export type EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseData = any; +export interface EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of an organization. */ + orgId: number; +} + export type EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseData = any; +export interface EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of an organization. */ + orgId: number; +} + export type EnterpriseAdminGetAllowedActionsEnterpriseData = SelectedActions; +export interface EnterpriseAdminGetAllowedActionsEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type EnterpriseAdminGetGithubActionsPermissionsEnterpriseData = ActionsEnterprisePermissions; +export interface EnterpriseAdminGetGithubActionsPermissionsEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type EnterpriseAdminGetProvisioningInformationForEnterpriseGroupData = ScimEnterpriseGroup; +export interface EnterpriseAdminGetProvisioningInformationForEnterpriseGroupParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Identifier generated by the GitHub SCIM endpoint. */ + scimGroupId: string; +} + export type EnterpriseAdminGetProvisioningInformationForEnterpriseUserData = ScimEnterpriseUser; +export interface EnterpriseAdminGetProvisioningInformationForEnterpriseUserParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export type EnterpriseAdminGetSelfHostedRunnerForEnterpriseData = Runner; +export interface EnterpriseAdminGetSelfHostedRunnerForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseData = RunnerGroupsEnterprise; +export interface EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseData { organizations: OrganizationSimple[]; total_count: number; @@ -15036,6 +16251,11 @@ export interface EnterpriseAdminListProvisionedIdentitiesEnterpriseParams { export type EnterpriseAdminListRunnerApplicationsForEnterpriseData = RunnerApplication[]; +export interface EnterpriseAdminListRunnerApplicationsForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export interface EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseData { organizations: OrganizationSimple[]; total_count: number; @@ -15120,6 +16340,11 @@ export interface EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseParams export type EnterpriseAdminProvisionAndInviteEnterpriseGroupData = ScimEnterpriseGroup; +export interface EnterpriseAdminProvisionAndInviteEnterpriseGroupParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export interface EnterpriseAdminProvisionAndInviteEnterpriseGroupPayload { /** The name of the SCIM group. This must match the GitHub organization that the group maps to. */ displayName: string; @@ -15133,6 +16358,11 @@ export interface EnterpriseAdminProvisionAndInviteEnterpriseGroupPayload { export type EnterpriseAdminProvisionAndInviteEnterpriseUserData = ScimEnterpriseUser; +export interface EnterpriseAdminProvisionAndInviteEnterpriseUserParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export interface EnterpriseAdminProvisionAndInviteEnterpriseUserPayload { /** List of user emails. */ emails: { @@ -15161,12 +16391,40 @@ export interface EnterpriseAdminProvisionAndInviteEnterpriseUserPayload { export type EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseData = any; +export interface EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of an organization. */ + orgId: number; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export type EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseData = any; +export interface EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; + /** Unique identifier of the self-hosted runner. */ + runnerId: number; +} + export type EnterpriseAdminSetAllowedActionsEnterpriseData = any; +export interface EnterpriseAdminSetAllowedActionsEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export type EnterpriseAdminSetGithubActionsPermissionsEnterpriseData = any; +export interface EnterpriseAdminSetGithubActionsPermissionsEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export interface EnterpriseAdminSetGithubActionsPermissionsEnterprisePayload { /** The permissions policy that controls the actions that are allowed to run. Can be one of: \`all\`, \`local_only\`, or \`selected\`. */ allowed_actions?: AllowedActions; @@ -15176,6 +16434,13 @@ export interface EnterpriseAdminSetGithubActionsPermissionsEnterprisePayload { export type EnterpriseAdminSetInformationForProvisionedEnterpriseGroupData = ScimEnterpriseGroup; +export interface EnterpriseAdminSetInformationForProvisionedEnterpriseGroupParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Identifier generated by the GitHub SCIM endpoint. */ + scimGroupId: string; +} + export interface EnterpriseAdminSetInformationForProvisionedEnterpriseGroupPayload { /** The name of the SCIM group. This must match the GitHub organization that the group maps to. */ displayName: string; @@ -15189,6 +16454,13 @@ export interface EnterpriseAdminSetInformationForProvisionedEnterpriseGroupPaylo export type EnterpriseAdminSetInformationForProvisionedEnterpriseUserData = ScimEnterpriseUser; +export interface EnterpriseAdminSetInformationForProvisionedEnterpriseUserParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export interface EnterpriseAdminSetInformationForProvisionedEnterpriseUserPayload { /** List of user emails. */ emails: { @@ -15217,6 +16489,13 @@ export interface EnterpriseAdminSetInformationForProvisionedEnterpriseUserPayloa export type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseData = any; +export interface EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterprisePayload { /** List of organization IDs that can access the runner group. */ selected_organization_ids: number[]; @@ -15224,6 +16503,11 @@ export interface EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseP export type EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseData = any; +export interface EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; +} + export interface EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterprisePayload { /** List of organization IDs to enable for GitHub Actions. */ selected_organization_ids: number[]; @@ -15231,6 +16515,13 @@ export interface EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnte export type EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseData = any; +export interface EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface EnterpriseAdminSetSelfHostedRunnersInGroupForEnterprisePayload { /** List of runner IDs to add to the runner group. */ runners: number[]; @@ -15238,6 +16529,13 @@ export interface EnterpriseAdminSetSelfHostedRunnersInGroupForEnterprisePayload export type EnterpriseAdminUpdateAttributeForEnterpriseGroupData = ScimEnterpriseGroup; +export interface EnterpriseAdminUpdateAttributeForEnterpriseGroupParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Identifier generated by the GitHub SCIM endpoint. */ + scimGroupId: string; +} + export interface EnterpriseAdminUpdateAttributeForEnterpriseGroupPayload { /** Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2). */ Operations: object[]; @@ -15247,6 +16545,13 @@ export interface EnterpriseAdminUpdateAttributeForEnterpriseGroupPayload { export type EnterpriseAdminUpdateAttributeForEnterpriseUserData = ScimEnterpriseUser; +export interface EnterpriseAdminUpdateAttributeForEnterpriseUserParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export interface EnterpriseAdminUpdateAttributeForEnterpriseUserPayload { /** Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2). */ Operations: object[]; @@ -15256,6 +16561,13 @@ export interface EnterpriseAdminUpdateAttributeForEnterpriseUserPayload { export type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseData = RunnerGroupsEnterprise; +export interface EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseParams { + /** The slug version of the enterprise name. You can also substitute this value with the enterprise id. */ + enterprise: string; + /** Unique identifier of the self-hosted runner group. */ + runnerGroupId: number; +} + export interface EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprisePayload { /** Name of the runner group. */ name?: string; @@ -15872,8 +17184,18 @@ export type GistsCheckIsStarredData = any; export type GistsCheckIsStarredError = object; +export interface GistsCheckIsStarredParams { + /** gist_id parameter */ + gistId: string; +} + export type GistsCreateCommentData = GistComment; +export interface GistsCreateCommentParams { + /** gist_id parameter */ + gistId: string; +} + export interface GistsCreateCommentPayload { /** * The comment text. @@ -15917,16 +17239,51 @@ export enum GistsCreatePublicEnum { export type GistsDeleteCommentData = any; +export interface GistsDeleteCommentParams { + /** comment_id parameter */ + commentId: number; + /** gist_id parameter */ + gistId: string; +} + export type GistsDeleteData = any; +export interface GistsDeleteParams { + /** gist_id parameter */ + gistId: string; +} + export type GistsForkData = BaseGist; +export interface GistsForkParams { + /** gist_id parameter */ + gistId: string; +} + export type GistsGetCommentData = GistComment; +export interface GistsGetCommentParams { + /** comment_id parameter */ + commentId: number; + /** gist_id parameter */ + gistId: string; +} + export type GistsGetData = GistSimple; +export interface GistsGetParams { + /** gist_id parameter */ + gistId: string; +} + export type GistsGetRevisionData = GistSimple; +export interface GistsGetRevisionParams { + /** gist_id parameter */ + gistId: string; + sha: string; +} + export type GistsListCommentsData = GistComment[]; export interface GistsListCommentsParams { @@ -16049,10 +17406,27 @@ export interface GistsListStarredParams { export type GistsStarData = any; +export interface GistsStarParams { + /** gist_id parameter */ + gistId: string; +} + export type GistsUnstarData = any; +export interface GistsUnstarParams { + /** gist_id parameter */ + gistId: string; +} + export type GistsUpdateCommentData = GistComment; +export interface GistsUpdateCommentParams { + /** comment_id parameter */ + commentId: number; + /** gist_id parameter */ + gistId: string; +} + export interface GistsUpdateCommentPayload { /** * The comment text. @@ -16064,6 +17438,11 @@ export interface GistsUpdateCommentPayload { export type GistsUpdateData = GistSimple; +export interface GistsUpdateParams { + /** gist_id parameter */ + gistId: string; +} + export type GistsUpdatePayload = null & { /** * Description of the gist @@ -16173,6 +17552,11 @@ export interface GitCommit { export type GitCreateBlobData = ShortBlob; +export interface GitCreateBlobParams { + owner: string; + repo: string; +} + export interface GitCreateBlobPayload { /** The new blob's content. */ content: string; @@ -16185,6 +17569,11 @@ export interface GitCreateBlobPayload { export type GitCreateCommitData = GitCommit; +export interface GitCreateCommitParams { + owner: string; + repo: string; +} + export interface GitCreateCommitPayload { /** Information about the author of the commit. By default, the \`author\` will be the authenticated user and the current date. See the \`author\` and \`committer\` object below for details. */ author?: { @@ -16216,6 +17605,11 @@ export interface GitCreateCommitPayload { export type GitCreateRefData = GitRef; +export interface GitCreateRefParams { + owner: string; + repo: string; +} + export interface GitCreateRefPayload { /** @example ""refs/heads/newbranch"" */ key?: string; @@ -16227,6 +17621,11 @@ export interface GitCreateRefPayload { export type GitCreateTagData = GitTag; +export interface GitCreateTagParams { + owner: string; + repo: string; +} + export interface GitCreateTagPayload { /** The tag message. */ message: string; @@ -16265,6 +17664,11 @@ export enum GitCreateTreeModeEnum { Value120000 = "120000", } +export interface GitCreateTreeParams { + owner: string; + repo: string; +} + export interface GitCreateTreePayload { /** * The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by \`base_tree\` and entries defined in the \`tree\` parameter. Entries defined in the \`tree\` parameter will overwrite items from \`base_tree\` with the same \`path\`. If you're creating new changes on a branch, then normally you'd set \`base_tree\` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on. @@ -16303,14 +17707,47 @@ export enum GitCreateTreeTypeEnum { export type GitDeleteRefData = any; +export interface GitDeleteRefParams { + owner: string; + /** ref+ parameter */ + ref: string; + repo: string; +} + export type GitGetBlobData = Blob; +export interface GitGetBlobParams { + fileSha: string; + owner: string; + repo: string; +} + export type GitGetCommitData = GitCommit; +export interface GitGetCommitParams { + /** commit_sha parameter */ + commitSha: string; + owner: string; + repo: string; +} + export type GitGetRefData = GitRef; +export interface GitGetRefParams { + owner: string; + /** ref+ parameter */ + ref: string; + repo: string; +} + export type GitGetTagData = GitTag; +export interface GitGetTagParams { + owner: string; + repo: string; + tagSha: string; +} + export type GitGetTreeData = GitTree; export interface GitGetTreeParams { @@ -16433,6 +17870,13 @@ export interface GitTree { export type GitUpdateRefData = GitRef; +export interface GitUpdateRefParams { + owner: string; + /** ref+ parameter */ + ref: string; + repo: string; +} + export interface GitUpdateRefPayload { /** * Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to \`false\` will make sure you're not overwriting work. @@ -16460,6 +17904,10 @@ export type GitignoreGetAllTemplatesData = string[]; export type GitignoreGetTemplateData = GitignoreTemplate; +export interface GitignoreGetTemplateParams { + name: string; +} + /** * Gitignore Template * Gitignore Template @@ -17011,20 +18459,47 @@ export type InteractionsGetRestrictionsForAuthenticatedUserData = InteractionLim export type InteractionsGetRestrictionsForOrgData = InteractionLimitResponse; +export interface InteractionsGetRestrictionsForOrgParams { + org: string; +} + export type InteractionsGetRestrictionsForRepoData = InteractionLimitResponse; +export interface InteractionsGetRestrictionsForRepoParams { + owner: string; + repo: string; +} + export type InteractionsRemoveRestrictionsForAuthenticatedUserData = any; export type InteractionsRemoveRestrictionsForOrgData = any; +export interface InteractionsRemoveRestrictionsForOrgParams { + org: string; +} + export type InteractionsRemoveRestrictionsForRepoData = any; +export interface InteractionsRemoveRestrictionsForRepoParams { + owner: string; + repo: string; +} + export type InteractionsSetRestrictionsForAuthenticatedUserData = InteractionLimitResponse; export type InteractionsSetRestrictionsForOrgData = InteractionLimitResponse; +export interface InteractionsSetRestrictionsForOrgParams { + org: string; +} + export type InteractionsSetRestrictionsForRepoData = InteractionLimitResponse; +export interface InteractionsSetRestrictionsForRepoParams { + owner: string; + repo: string; +} + /** Internal Error */ export type InternalError = BasicError; @@ -17471,6 +18946,13 @@ export interface IssueSimple { export type IssuesAddAssigneesData = IssueSimple; +export interface IssuesAddAssigneesParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export interface IssuesAddAssigneesPayload { /** Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._ */ assignees?: string[]; @@ -17478,6 +18960,13 @@ export interface IssuesAddAssigneesPayload { export type IssuesAddLabelsData = Label[]; +export interface IssuesAddLabelsParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export interface IssuesAddLabelsPayload { /** The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a \`string\` or an \`array\` of labels directly, but GitHub recommends passing an object with the \`labels\` key. */ labels: string[]; @@ -17487,8 +18976,21 @@ export type IssuesCheckUserCanBeAssignedData = any; export type IssuesCheckUserCanBeAssignedError = BasicError; +export interface IssuesCheckUserCanBeAssignedParams { + assignee: string; + owner: string; + repo: string; +} + export type IssuesCreateCommentData = IssueComment; +export interface IssuesCreateCommentParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export interface IssuesCreateCommentPayload { /** The contents of the comment. */ body: string; @@ -17498,6 +19000,11 @@ export type IssuesCreateData = Issue; export type IssuesCreateLabelData = Label; +export interface IssuesCreateLabelParams { + owner: string; + repo: string; +} + export interface IssuesCreateLabelPayload { /** The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading \`#\`. */ color?: string; @@ -17509,6 +19016,11 @@ export interface IssuesCreateLabelPayload { export type IssuesCreateMilestoneData = Milestone; +export interface IssuesCreateMilestoneParams { + owner: string; + repo: string; +} + export interface IssuesCreateMilestonePayload { /** A description of the milestone. */ description?: string; @@ -17532,6 +19044,11 @@ export enum IssuesCreateMilestoneStateEnum { Closed = "closed", } +export interface IssuesCreateParams { + owner: string; + repo: string; +} + export interface IssuesCreatePayload { /** Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_ */ assignee?: string | null; @@ -17557,20 +19074,73 @@ export interface IssuesCreatePayload { export type IssuesDeleteCommentData = any; +export interface IssuesDeleteCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export type IssuesDeleteLabelData = any; +export interface IssuesDeleteLabelParams { + name: string; + owner: string; + repo: string; +} + export type IssuesDeleteMilestoneData = any; +export interface IssuesDeleteMilestoneParams { + /** milestone_number parameter */ + milestoneNumber: number; + owner: string; + repo: string; +} + export type IssuesGetCommentData = IssueComment; +export interface IssuesGetCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export type IssuesGetData = Issue; export type IssuesGetEventData = IssueEvent; +export interface IssuesGetEventParams { + eventId: number; + owner: string; + repo: string; +} + export type IssuesGetLabelData = Label; +export interface IssuesGetLabelParams { + name: string; + owner: string; + repo: string; +} + export type IssuesGetMilestoneData = Milestone; +export interface IssuesGetMilestoneParams { + /** milestone_number parameter */ + milestoneNumber: number; + owner: string; + repo: string; +} + +export interface IssuesGetParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export type IssuesListAssigneesData = SimpleUser[]; export interface IssuesListAssigneesParams { @@ -18184,6 +19754,13 @@ export enum IssuesLockLockReasonEnum { Spam = "spam", } +export interface IssuesLockParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export type IssuesLockPayload = { /** * The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: @@ -18197,8 +19774,22 @@ export type IssuesLockPayload = { export type IssuesRemoveAllLabelsData = any; +export interface IssuesRemoveAllLabelsParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export type IssuesRemoveAssigneesData = IssueSimple; +export interface IssuesRemoveAssigneesParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export interface IssuesRemoveAssigneesPayload { /** Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ assignees?: string[]; @@ -18206,8 +19797,23 @@ export interface IssuesRemoveAssigneesPayload { export type IssuesRemoveLabelData = Label[]; +export interface IssuesRemoveLabelParams { + /** issue_number parameter */ + issueNumber: number; + name: string; + owner: string; + repo: string; +} + export type IssuesSetLabelsData = Label[]; +export interface IssuesSetLabelsParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export interface IssuesSetLabelsPayload { /** The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a \`string\` or an \`array\` of labels directly, but GitHub recommends passing an object with the \`labels\` key. */ labels?: string[]; @@ -18215,8 +19821,22 @@ export interface IssuesSetLabelsPayload { export type IssuesUnlockData = any; +export interface IssuesUnlockParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export type IssuesUpdateCommentData = IssueComment; +export interface IssuesUpdateCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export interface IssuesUpdateCommentPayload { /** The contents of the comment. */ body: string; @@ -18226,6 +19846,12 @@ export type IssuesUpdateData = Issue; export type IssuesUpdateLabelData = Label; +export interface IssuesUpdateLabelParams { + name: string; + owner: string; + repo: string; +} + export interface IssuesUpdateLabelPayload { /** The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading \`#\`. */ color?: string; @@ -18237,6 +19863,13 @@ export interface IssuesUpdateLabelPayload { export type IssuesUpdateMilestoneData = Milestone; +export interface IssuesUpdateMilestoneParams { + /** milestone_number parameter */ + milestoneNumber: number; + owner: string; + repo: string; +} + export interface IssuesUpdateMilestonePayload { /** A description of the milestone. */ description?: string; @@ -18260,6 +19893,13 @@ export enum IssuesUpdateMilestoneStateEnum { Closed = "closed", } +export interface IssuesUpdateParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export interface IssuesUpdatePayload { /** Login for the user that this issue should be assigned to. **This field is deprecated.** */ assignee?: string | null; @@ -18613,6 +20253,15 @@ export type LicensesGetData = License; export type LicensesGetForRepoData = LicenseContent; +export interface LicensesGetForRepoParams { + owner: string; + repo: string; +} + +export interface LicensesGetParams { + license: string; +} + /** * Link * Hypermedia Link @@ -18861,10 +20510,37 @@ export interface Migration { export type MigrationsCancelImportData = any; +export interface MigrationsCancelImportParams { + owner: string; + repo: string; +} + export type MigrationsDeleteArchiveForAuthenticatedUserData = any; +export interface MigrationsDeleteArchiveForAuthenticatedUserParams { + /** migration_id parameter */ + migrationId: number; +} + export type MigrationsDeleteArchiveForOrgData = any; +export interface MigrationsDeleteArchiveForOrgParams { + /** migration_id parameter */ + migrationId: number; + org: string; +} + +export interface MigrationsDownloadArchiveForOrgParams { + /** migration_id parameter */ + migrationId: number; + org: string; +} + +export interface MigrationsGetArchiveForAuthenticatedUserParams { + /** migration_id parameter */ + migrationId: number; +} + export type MigrationsGetCommitAuthorsData = PorterAuthor[]; export interface MigrationsGetCommitAuthorsParams { @@ -18876,8 +20552,18 @@ export interface MigrationsGetCommitAuthorsParams { export type MigrationsGetImportStatusData = Import; +export interface MigrationsGetImportStatusParams { + owner: string; + repo: string; +} + export type MigrationsGetLargeFilesData = PorterLargeFile[]; +export interface MigrationsGetLargeFilesParams { + owner: string; + repo: string; +} + export type MigrationsGetStatusForAuthenticatedUserData = Migration; export interface MigrationsGetStatusForAuthenticatedUserParams { @@ -18888,6 +20574,12 @@ export interface MigrationsGetStatusForAuthenticatedUserParams { export type MigrationsGetStatusForOrgData = Migration; +export interface MigrationsGetStatusForOrgParams { + /** migration_id parameter */ + migrationId: number; + org: string; +} + export type MigrationsListForAuthenticatedUserData = Migration[]; export interface MigrationsListForAuthenticatedUserParams { @@ -18956,6 +20648,12 @@ export interface MigrationsListReposForUserParams { export type MigrationsMapCommitAuthorData = PorterAuthor; +export interface MigrationsMapCommitAuthorParams { + authorId: number; + owner: string; + repo: string; +} + export interface MigrationsMapCommitAuthorPayload { /** The new Git author email. */ email?: string; @@ -18967,6 +20665,11 @@ export interface MigrationsMapCommitAuthorPayload { export type MigrationsSetLfsPreferenceData = Import; +export interface MigrationsSetLfsPreferenceParams { + owner: string; + repo: string; +} + export interface MigrationsSetLfsPreferencePayload { /** Can be one of \`opt_in\` (large files will be stored using Git LFS) or \`opt_out\` (large files will be removed during the import). */ use_lfs: MigrationsSetLfsPreferenceUseLfsEnum; @@ -19009,6 +20712,10 @@ export interface MigrationsStartForAuthenticatedUserPayload { export type MigrationsStartForOrgData = Migration; +export interface MigrationsStartForOrgParams { + org: string; +} + export interface MigrationsStartForOrgPayload { exclude?: string[]; /** @@ -19027,6 +20734,11 @@ export interface MigrationsStartForOrgPayload { export type MigrationsStartImportData = Import; +export interface MigrationsStartImportParams { + owner: string; + repo: string; +} + export interface MigrationsStartImportPayload { /** For a tfvc import, the name of the project that is being imported. */ tfvc_project?: string; @@ -19050,10 +20762,30 @@ export enum MigrationsStartImportVcsEnum { export type MigrationsUnlockRepoForAuthenticatedUserData = any; +export interface MigrationsUnlockRepoForAuthenticatedUserParams { + /** migration_id parameter */ + migrationId: number; + /** repo_name parameter */ + repoName: string; +} + export type MigrationsUnlockRepoForOrgData = any; +export interface MigrationsUnlockRepoForOrgParams { + /** migration_id parameter */ + migrationId: number; + org: string; + /** repo_name parameter */ + repoName: string; +} + export type MigrationsUpdateImportData = Import; +export interface MigrationsUpdateImportParams { + owner: string; + repo: string; +} + export interface MigrationsUpdateImportPayload { /** @example ""project1"" */ tfvc_project?: string; @@ -19386,14 +21118,40 @@ export interface OauthAuthorizationsCreateAuthorizationPayload { export type OauthAuthorizationsDeleteAuthorizationData = any; +export interface OauthAuthorizationsDeleteAuthorizationParams { + /** authorization_id parameter */ + authorizationId: number; +} + export type OauthAuthorizationsDeleteGrantData = any; +export interface OauthAuthorizationsDeleteGrantParams { + /** grant_id parameter */ + grantId: number; +} + export type OauthAuthorizationsGetAuthorizationData = Authorization; +export interface OauthAuthorizationsGetAuthorizationParams { + /** authorization_id parameter */ + authorizationId: number; +} + export type OauthAuthorizationsGetGrantData = ApplicationGrant; +export interface OauthAuthorizationsGetGrantParams { + /** grant_id parameter */ + grantId: number; +} + export type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintData = Authorization; +export interface OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams { + /** The client ID of your GitHub app. */ + clientId: string; + fingerprint: string; +} + export interface OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintPayload { /** * The OAuth app client secret for which to create the token. @@ -19416,6 +21174,11 @@ export interface OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprint export type OauthAuthorizationsGetOrCreateAuthorizationForAppData = Authorization; +export interface OauthAuthorizationsGetOrCreateAuthorizationForAppParams { + /** The client ID of your GitHub app. */ + clientId: string; +} + export interface OauthAuthorizationsGetOrCreateAuthorizationForAppPayload { /** * The OAuth app client secret for which to create the token. @@ -19470,6 +21233,11 @@ export interface OauthAuthorizationsListGrantsParams { export type OauthAuthorizationsUpdateAuthorizationData = Authorization; +export interface OauthAuthorizationsUpdateAuthorizationParams { + /** authorization_id parameter */ + authorizationId: number; +} + export interface OauthAuthorizationsUpdateAuthorizationPayload { /** A list of scopes to add to this authorization. */ add_scopes?: string[]; @@ -19855,16 +21623,42 @@ export interface OrganizationSimple { export type OrgsBlockUserData = any; +export interface OrgsBlockUserParams { + org: string; + username: string; +} + export type OrgsCancelInvitationData = any; +export interface OrgsCancelInvitationParams { + /** invitation_id parameter */ + invitationId: number; + org: string; +} + export type OrgsCheckBlockedUserData = any; export type OrgsCheckBlockedUserError = BasicError; +export interface OrgsCheckBlockedUserParams { + org: string; + username: string; +} + export type OrgsCheckMembershipForUserData = any; +export interface OrgsCheckMembershipForUserParams { + org: string; + username: string; +} + export type OrgsCheckPublicMembershipForUserData = any; +export interface OrgsCheckPublicMembershipForUserParams { + org: string; + username: string; +} + export type OrgsConvertMemberToOutsideCollaboratorData = any; export type OrgsConvertMemberToOutsideCollaboratorError = { @@ -19872,8 +21666,17 @@ export type OrgsConvertMemberToOutsideCollaboratorError = { message?: string; }; +export interface OrgsConvertMemberToOutsideCollaboratorParams { + org: string; + username: string; +} + export type OrgsCreateInvitationData = OrganizationInvitation; +export interface OrgsCreateInvitationParams { + org: string; +} + export interface OrgsCreateInvitationPayload { /** **Required unless you provide \`invitee_id\`**. Email address of the person you are inviting, which can be an existing GitHub user. */ email?: string; @@ -19906,6 +21709,10 @@ export enum OrgsCreateInvitationRoleEnum { export type OrgsCreateWebhookData = OrgHook; +export interface OrgsCreateWebhookParams { + org: string; +} + export interface OrgsCreateWebhookPayload { /** * Determines if notifications are sent when the webhook is triggered. Set to \`true\` to send notifications. @@ -19938,6 +21745,11 @@ export interface OrgsCreateWebhookPayload { export type OrgsDeleteWebhookData = any; +export interface OrgsDeleteWebhookParams { + hookId: number; + org: string; +} + export type OrgsGetAuditLogData = AuditLogEvent[]; export interface OrgsGetAuditLogParams { @@ -20000,12 +21812,35 @@ export type OrgsGetData = OrganizationFull; export type OrgsGetMembershipForAuthenticatedUserData = OrgMembership; +export interface OrgsGetMembershipForAuthenticatedUserParams { + org: string; +} + export type OrgsGetMembershipForUserData = OrgMembership; +export interface OrgsGetMembershipForUserParams { + org: string; + username: string; +} + +export interface OrgsGetParams { + org: string; +} + export type OrgsGetWebhookConfigForOrgData = WebhookConfig; +export interface OrgsGetWebhookConfigForOrgParams { + hookId: number; + org: string; +} + export type OrgsGetWebhookData = OrgHook; +export interface OrgsGetWebhookParams { + hookId: number; + org: string; +} + export interface OrgsListAppInstallationsData { installations: Installation[]; total_count: number; @@ -20027,6 +21862,10 @@ export interface OrgsListAppInstallationsParams { export type OrgsListBlockedUsersData = SimpleUser[]; +export interface OrgsListBlockedUsersParams { + org: string; +} + export type OrgsListData = OrganizationSimple[]; export type OrgsListFailedInvitationsData = OrganizationInvitation[]; @@ -20250,6 +22089,10 @@ export interface OrgsListPublicMembersParams { export type OrgsListSamlSsoAuthorizationsData = CredentialAuthorization[]; +export interface OrgsListSamlSsoAuthorizationsParams { + org: string; +} + export type OrgsListWebhooksData = OrgHook[]; export interface OrgsListWebhooksParams { @@ -20268,10 +22111,25 @@ export interface OrgsListWebhooksParams { export type OrgsPingWebhookData = any; +export interface OrgsPingWebhookParams { + hookId: number; + org: string; +} + export type OrgsRemoveMemberData = any; +export interface OrgsRemoveMemberParams { + org: string; + username: string; +} + export type OrgsRemoveMembershipForUserData = any; +export interface OrgsRemoveMembershipForUserParams { + org: string; + username: string; +} + export type OrgsRemoveOutsideCollaboratorData = any; export type OrgsRemoveOutsideCollaboratorError = { @@ -20279,12 +22137,32 @@ export type OrgsRemoveOutsideCollaboratorError = { message?: string; }; +export interface OrgsRemoveOutsideCollaboratorParams { + org: string; + username: string; +} + export type OrgsRemovePublicMembershipForAuthenticatedUserData = any; +export interface OrgsRemovePublicMembershipForAuthenticatedUserParams { + org: string; + username: string; +} + export type OrgsRemoveSamlSsoAuthorizationData = any; +export interface OrgsRemoveSamlSsoAuthorizationParams { + credentialId: number; + org: string; +} + export type OrgsSetMembershipForUserData = OrgMembership; +export interface OrgsSetMembershipForUserParams { + org: string; + username: string; +} + export interface OrgsSetMembershipForUserPayload { /** * The role to give the user in the organization. Can be one of: @@ -20308,8 +22186,18 @@ export enum OrgsSetMembershipForUserRoleEnum { export type OrgsSetPublicMembershipForAuthenticatedUserData = any; +export interface OrgsSetPublicMembershipForAuthenticatedUserParams { + org: string; + username: string; +} + export type OrgsUnblockUserData = any; +export interface OrgsUnblockUserParams { + org: string; + username: string; +} + export type OrgsUpdateData = OrganizationFull; /** @@ -20344,6 +22232,10 @@ export enum OrgsUpdateMembersAllowedRepositoryCreationTypeEnum { export type OrgsUpdateMembershipForAuthenticatedUserData = OrgMembership; +export interface OrgsUpdateMembershipForAuthenticatedUserParams { + org: string; +} + export interface OrgsUpdateMembershipForAuthenticatedUserPayload { /** The state that the membership should be in. Only \`"active"\` will be accepted. */ state: OrgsUpdateMembershipForAuthenticatedUserStateEnum; @@ -20354,6 +22246,10 @@ export enum OrgsUpdateMembershipForAuthenticatedUserStateEnum { Active = "active", } +export interface OrgsUpdateParams { + org: string; +} + export interface OrgsUpdatePayload { /** Billing email address. This address is not publicized. */ billing_email?: string; @@ -20447,6 +22343,11 @@ export interface OrgsUpdatePayload { export type OrgsUpdateWebhookConfigForOrgData = WebhookConfig; +export interface OrgsUpdateWebhookConfigForOrgParams { + hookId: number; + org: string; +} + /** @example {"content_type":"json","insecure_ssl":"0","secret":"********","url":"https://example.com/webhook"} */ export interface OrgsUpdateWebhookConfigForOrgPayload { /** The media type used to serialize the payloads. Supported values include \`json\` and \`form\`. The default is \`form\`. */ @@ -20461,6 +22362,11 @@ export interface OrgsUpdateWebhookConfigForOrgPayload { export type OrgsUpdateWebhookData = OrgHook; +export interface OrgsUpdateWebhookParams { + hookId: number; + org: string; +} + export interface OrgsUpdateWebhookPayload { /** * Determines if notifications are sent when the webhook is triggered. Set to \`true\` to send notifications. @@ -20937,6 +22843,11 @@ export enum ProjectOrganizationPermissionEnum { export type ProjectsAddCollaboratorData = any; +export interface ProjectsAddCollaboratorParams { + projectId: number; + username: string; +} + export interface ProjectsAddCollaboratorPayload { /** * The permission to grant the collaborator. @@ -20971,6 +22882,11 @@ export type ProjectsCreateCardError = message?: string; }; +export interface ProjectsCreateCardParams { + /** column_id parameter */ + columnId: number; +} + export type ProjectsCreateCardPayload = | { /** @@ -20994,6 +22910,10 @@ export type ProjectsCreateCardPayload = export type ProjectsCreateColumnData = ProjectColumn; +export interface ProjectsCreateColumnParams { + projectId: number; +} + export interface ProjectsCreateColumnPayload { /** * Name of the project column @@ -21019,6 +22939,10 @@ export interface ProjectsCreateForAuthenticatedUserPayload { export type ProjectsCreateForOrgData = Project; +export interface ProjectsCreateForOrgParams { + org: string; +} + export interface ProjectsCreateForOrgPayload { /** The description of the project. */ body?: string; @@ -21028,6 +22952,11 @@ export interface ProjectsCreateForOrgPayload { export type ProjectsCreateForRepoData = Project; +export interface ProjectsCreateForRepoParams { + owner: string; + repo: string; +} + export interface ProjectsCreateForRepoPayload { /** The description of the project. */ body?: string; @@ -21043,8 +22972,18 @@ export type ProjectsDeleteCardError = { message?: string; }; +export interface ProjectsDeleteCardParams { + /** card_id parameter */ + cardId: number; +} + export type ProjectsDeleteColumnData = any; +export interface ProjectsDeleteColumnParams { + /** column_id parameter */ + columnId: number; +} + export type ProjectsDeleteData = any; export type ProjectsDeleteError = { @@ -21053,14 +22992,37 @@ export type ProjectsDeleteError = { message?: string; }; +export interface ProjectsDeleteParams { + projectId: number; +} + export type ProjectsGetCardData = ProjectCard; +export interface ProjectsGetCardParams { + /** card_id parameter */ + cardId: number; +} + export type ProjectsGetColumnData = ProjectColumn; +export interface ProjectsGetColumnParams { + /** column_id parameter */ + columnId: number; +} + export type ProjectsGetData = Project; +export interface ProjectsGetParams { + projectId: number; +} + export type ProjectsGetPermissionForUserData = RepositoryCollaboratorPermission; +export interface ProjectsGetPermissionForUserParams { + projectId: number; + username: string; +} + export type ProjectsListCardsData = ProjectCard[]; export interface ProjectsListCardsParams { @@ -21263,6 +23225,11 @@ export type ProjectsMoveCardError = message?: string; }; +export interface ProjectsMoveCardParams { + /** card_id parameter */ + cardId: number; +} + export interface ProjectsMoveCardPayload { /** * The unique identifier of the column the card should be moved to @@ -21279,6 +23246,11 @@ export interface ProjectsMoveCardPayload { export type ProjectsMoveColumnData = object; +export interface ProjectsMoveColumnParams { + /** column_id parameter */ + columnId: number; +} + export interface ProjectsMoveColumnPayload { /** * The position of the column in a project @@ -21290,8 +23262,18 @@ export interface ProjectsMoveColumnPayload { export type ProjectsRemoveCollaboratorData = any; +export interface ProjectsRemoveCollaboratorParams { + projectId: number; + username: string; +} + export type ProjectsUpdateCardData = ProjectCard; +export interface ProjectsUpdateCardParams { + /** card_id parameter */ + cardId: number; +} + export interface ProjectsUpdateCardPayload { /** * Whether or not the card is archived @@ -21307,6 +23289,11 @@ export interface ProjectsUpdateCardPayload { export type ProjectsUpdateColumnData = ProjectColumn; +export interface ProjectsUpdateColumnParams { + /** column_id parameter */ + columnId: number; +} + export interface ProjectsUpdateColumnPayload { /** * Name of the project column @@ -21331,6 +23318,10 @@ export enum ProjectsUpdateOrganizationPermissionEnum { None = "none", } +export interface ProjectsUpdateParams { + projectId: number; +} + export interface ProjectsUpdatePayload { /** * Body of the project @@ -22456,8 +24447,19 @@ export enum PullRequestStateEnum { export type PullsCheckIfMergedData = any; +export interface PullsCheckIfMergedParams { + owner: string; + pullNumber: number; + repo: string; +} + export type PullsCreateData = PullRequest; +export interface PullsCreateParams { + owner: string; + repo: string; +} + export interface PullsCreatePayload { /** The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. */ base: string; @@ -22477,6 +24479,14 @@ export interface PullsCreatePayload { export type PullsCreateReplyForReviewCommentData = PullRequestReviewComment; +export interface PullsCreateReplyForReviewCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + pullNumber: number; + repo: string; +} + export interface PullsCreateReplyForReviewCommentPayload { /** The text of the review comment. */ body: string; @@ -22484,6 +24494,12 @@ export interface PullsCreateReplyForReviewCommentPayload { export type PullsCreateReviewCommentData = PullRequestReviewComment; +export interface PullsCreateReviewCommentParams { + owner: string; + pullNumber: number; + repo: string; +} + export interface PullsCreateReviewCommentPayload { /** The text of the review comment. */ body: string; @@ -22527,6 +24543,12 @@ export enum PullsCreateReviewEventEnum { COMMENT = "COMMENT", } +export interface PullsCreateReviewParams { + owner: string; + pullNumber: number; + repo: string; +} + export interface PullsCreateReviewPayload { /** **Required** when using \`REQUEST_CHANGES\` or \`COMMENT\` for the \`event\` parameter. The body text of the pull request review. */ body?: string; @@ -22555,10 +24577,33 @@ export interface PullsCreateReviewPayload { export type PullsDeletePendingReviewData = PullRequestReview; +export interface PullsDeletePendingReviewParams { + owner: string; + pullNumber: number; + repo: string; + /** review_id parameter */ + reviewId: number; +} + export type PullsDeleteReviewCommentData = any; +export interface PullsDeleteReviewCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export type PullsDismissReviewData = PullRequestReview; +export interface PullsDismissReviewParams { + owner: string; + pullNumber: number; + repo: string; + /** review_id parameter */ + reviewId: number; +} + export interface PullsDismissReviewPayload { /** @example ""APPROVE"" */ event?: string; @@ -22568,10 +24613,31 @@ export interface PullsDismissReviewPayload { export type PullsGetData = PullRequest; +export interface PullsGetParams { + owner: string; + pullNumber: number; + repo: string; +} + export type PullsGetReviewCommentData = PullRequestReviewComment; +export interface PullsGetReviewCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export type PullsGetReviewData = PullRequestReview; +export interface PullsGetReviewParams { + owner: string; + pullNumber: number; + repo: string; + /** review_id parameter */ + reviewId: number; +} + export type PullsListCommentsForReviewData = ReviewComment[]; export interface PullsListCommentsForReviewParams { @@ -22821,6 +24887,12 @@ export enum PullsMergeMergeMethodEnum { Rebase = "rebase", } +export interface PullsMergeParams { + owner: string; + pullNumber: number; + repo: string; +} + export type PullsMergePayload = { /** Extra detail to append to automatic commit message. */ commit_message?: string; @@ -22834,6 +24906,12 @@ export type PullsMergePayload = { export type PullsRemoveRequestedReviewersData = any; +export interface PullsRemoveRequestedReviewersParams { + owner: string; + pullNumber: number; + repo: string; +} + export interface PullsRemoveRequestedReviewersPayload { /** An array of user \`login\`s that will be removed. */ reviewers?: string[]; @@ -22843,6 +24921,12 @@ export interface PullsRemoveRequestedReviewersPayload { export type PullsRequestReviewersData = PullRequestSimple; +export interface PullsRequestReviewersParams { + owner: string; + pullNumber: number; + repo: string; +} + export interface PullsRequestReviewersPayload { /** An array of user \`login\`s that will be requested. */ reviewers?: string[]; @@ -22859,6 +24943,14 @@ export enum PullsSubmitReviewEventEnum { COMMENT = "COMMENT", } +export interface PullsSubmitReviewParams { + owner: string; + pullNumber: number; + repo: string; + /** review_id parameter */ + reviewId: number; +} + export interface PullsSubmitReviewPayload { /** The body text of the pull request review */ body?: string; @@ -22871,6 +24963,12 @@ export interface PullsUpdateBranchData { url?: string; } +export interface PullsUpdateBranchParams { + owner: string; + pullNumber: number; + repo: string; +} + export type PullsUpdateBranchPayload = { /** The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a \`422 Unprocessable Entity\` status. You can use the "[List commits](https://docs.github.com/rest/reference/repos#list-commits)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. */ expected_head_sha?: string; @@ -22878,6 +24976,12 @@ export type PullsUpdateBranchPayload = { export type PullsUpdateData = PullRequest; +export interface PullsUpdateParams { + owner: string; + pullNumber: number; + repo: string; +} + export interface PullsUpdatePayload { /** The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository. */ base?: string; @@ -22893,6 +24997,13 @@ export interface PullsUpdatePayload { export type PullsUpdateReviewCommentData = PullRequestReviewComment; +export interface PullsUpdateReviewCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export interface PullsUpdateReviewCommentPayload { /** The text of the reply to the review comment. */ body: string; @@ -22900,6 +25011,14 @@ export interface PullsUpdateReviewCommentPayload { export type PullsUpdateReviewData = PullRequestReview; +export interface PullsUpdateReviewParams { + owner: string; + pullNumber: number; + repo: string; + /** review_id parameter */ + reviewId: number; +} + export interface PullsUpdateReviewPayload { /** The body text of the pull request review. */ body: string; @@ -23002,6 +25121,13 @@ export enum ReactionsCreateForCommitCommentContentEnum { export type ReactionsCreateForCommitCommentData = Reaction; +export interface ReactionsCreateForCommitCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export interface ReactionsCreateForCommitCommentPayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the commit comment. */ content: ReactionsCreateForCommitCommentContentEnum; @@ -23021,6 +25147,13 @@ export enum ReactionsCreateForIssueCommentContentEnum { export type ReactionsCreateForIssueCommentData = Reaction; +export interface ReactionsCreateForIssueCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export interface ReactionsCreateForIssueCommentPayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue comment. */ content: ReactionsCreateForIssueCommentContentEnum; @@ -23040,6 +25173,13 @@ export enum ReactionsCreateForIssueContentEnum { export type ReactionsCreateForIssueData = Reaction; +export interface ReactionsCreateForIssueParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + repo: string; +} + export interface ReactionsCreateForIssuePayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue. */ content: ReactionsCreateForIssueContentEnum; @@ -23059,6 +25199,13 @@ export enum ReactionsCreateForPullRequestReviewCommentContentEnum { export type ReactionsCreateForPullRequestReviewCommentData = Reaction; +export interface ReactionsCreateForPullRequestReviewCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export interface ReactionsCreateForPullRequestReviewCommentPayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the pull request review comment. */ content: ReactionsCreateForPullRequestReviewCommentContentEnum; @@ -23078,6 +25225,14 @@ export enum ReactionsCreateForTeamDiscussionCommentInOrgContentEnum { export type ReactionsCreateForTeamDiscussionCommentInOrgData = Reaction; +export interface ReactionsCreateForTeamDiscussionCommentInOrgParams { + commentNumber: number; + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface ReactionsCreateForTeamDiscussionCommentInOrgPayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment. */ content: ReactionsCreateForTeamDiscussionCommentInOrgContentEnum; @@ -23097,6 +25252,12 @@ export enum ReactionsCreateForTeamDiscussionCommentLegacyContentEnum { export type ReactionsCreateForTeamDiscussionCommentLegacyData = Reaction; +export interface ReactionsCreateForTeamDiscussionCommentLegacyParams { + commentNumber: number; + discussionNumber: number; + teamId: number; +} + export interface ReactionsCreateForTeamDiscussionCommentLegacyPayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment. */ content: ReactionsCreateForTeamDiscussionCommentLegacyContentEnum; @@ -23116,6 +25277,13 @@ export enum ReactionsCreateForTeamDiscussionInOrgContentEnum { export type ReactionsCreateForTeamDiscussionInOrgData = Reaction; +export interface ReactionsCreateForTeamDiscussionInOrgParams { + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface ReactionsCreateForTeamDiscussionInOrgPayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion. */ content: ReactionsCreateForTeamDiscussionInOrgContentEnum; @@ -23135,6 +25303,11 @@ export enum ReactionsCreateForTeamDiscussionLegacyContentEnum { export type ReactionsCreateForTeamDiscussionLegacyData = Reaction; +export interface ReactionsCreateForTeamDiscussionLegacyParams { + discussionNumber: number; + teamId: number; +} + export interface ReactionsCreateForTeamDiscussionLegacyPayload { /** The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion. */ content: ReactionsCreateForTeamDiscussionLegacyContentEnum; @@ -23142,18 +25315,71 @@ export interface ReactionsCreateForTeamDiscussionLegacyPayload { export type ReactionsDeleteForCommitCommentData = any; +export interface ReactionsDeleteForCommitCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + reactionId: number; + repo: string; +} + export type ReactionsDeleteForIssueCommentData = any; +export interface ReactionsDeleteForIssueCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + reactionId: number; + repo: string; +} + export type ReactionsDeleteForIssueData = any; +export interface ReactionsDeleteForIssueParams { + /** issue_number parameter */ + issueNumber: number; + owner: string; + reactionId: number; + repo: string; +} + export type ReactionsDeleteForPullRequestCommentData = any; +export interface ReactionsDeleteForPullRequestCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + reactionId: number; + repo: string; +} + export type ReactionsDeleteForTeamDiscussionCommentData = any; +export interface ReactionsDeleteForTeamDiscussionCommentParams { + commentNumber: number; + discussionNumber: number; + org: string; + reactionId: number; + /** team_slug parameter */ + teamSlug: string; +} + export type ReactionsDeleteForTeamDiscussionData = any; +export interface ReactionsDeleteForTeamDiscussionParams { + discussionNumber: number; + org: string; + reactionId: number; + /** team_slug parameter */ + teamSlug: string; +} + export type ReactionsDeleteLegacyData = any; +export interface ReactionsDeleteLegacyParams { + reactionId: number; +} + export type ReactionsListForCommitCommentData = Reaction[]; export interface ReactionsListForCommitCommentParams { @@ -23633,8 +25859,20 @@ export interface RepoSearchResultItem { export type ReposAcceptInvitationData = any; +export interface ReposAcceptInvitationParams { + /** invitation_id parameter */ + invitationId: number; +} + export type ReposAddAppAccessRestrictionsData = Integration[]; +export interface ReposAddAppAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"apps":["my-app"]} */ export interface ReposAddAppAccessRestrictionsPayload { /** apps parameter */ @@ -23643,6 +25881,12 @@ export interface ReposAddAppAccessRestrictionsPayload { export type ReposAddCollaboratorData = RepositoryInvitation; +export interface ReposAddCollaboratorParams { + owner: string; + repo: string; + username: string; +} + export interface ReposAddCollaboratorPayload { /** * The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: @@ -23677,6 +25921,13 @@ export enum ReposAddCollaboratorPermissionEnum { export type ReposAddStatusCheckContextsData = string[]; +export interface ReposAddStatusCheckContextsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"contexts":["contexts"]} */ export interface ReposAddStatusCheckContextsPayload { /** contexts parameter */ @@ -23685,6 +25936,13 @@ export interface ReposAddStatusCheckContextsPayload { export type ReposAddTeamAccessRestrictionsData = Team[]; +export interface ReposAddTeamAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"teams":["my-team"]} */ export interface ReposAddTeamAccessRestrictionsPayload { /** teams parameter */ @@ -23693,6 +25951,13 @@ export interface ReposAddTeamAccessRestrictionsPayload { export type ReposAddUserAccessRestrictionsData = SimpleUser[]; +export interface ReposAddUserAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"users":["mona"]} */ export interface ReposAddUserAccessRestrictionsPayload { /** users parameter */ @@ -23701,12 +25966,37 @@ export interface ReposAddUserAccessRestrictionsPayload { export type ReposCheckCollaboratorData = any; +export interface ReposCheckCollaboratorParams { + owner: string; + repo: string; + username: string; +} + export type ReposCheckVulnerabilityAlertsData = any; +export interface ReposCheckVulnerabilityAlertsParams { + owner: string; + repo: string; +} + export type ReposCompareCommitsData = CommitComparison; +export interface ReposCompareCommitsParams { + base: string; + head: string; + owner: string; + repo: string; +} + export type ReposCreateCommitCommentData = CommitComment; +export interface ReposCreateCommitCommentParams { + /** commit_sha parameter */ + commitSha: string; + owner: string; + repo: string; +} + export interface ReposCreateCommitCommentPayload { /** The contents of the comment. */ body: string; @@ -23720,8 +26010,21 @@ export interface ReposCreateCommitCommentPayload { export type ReposCreateCommitSignatureProtectionData = ProtectedBranchAdminEnforced; +export interface ReposCreateCommitSignatureProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposCreateCommitStatusData = Status; +export interface ReposCreateCommitStatusParams { + owner: string; + repo: string; + sha: string; +} + export interface ReposCreateCommitStatusPayload { /** * A string label to differentiate this status from the status of other systems. This field is case-insensitive. @@ -23750,6 +26053,11 @@ export enum ReposCreateCommitStatusStateEnum { export type ReposCreateDeployKeyData = DeployKey; +export interface ReposCreateDeployKeyParams { + owner: string; + repo: string; +} + export interface ReposCreateDeployKeyPayload { /** The contents of the key. */ key: string; @@ -23771,6 +26079,11 @@ export type ReposCreateDeploymentError = { message?: string; }; +export interface ReposCreateDeploymentParams { + owner: string; + repo: string; +} + export interface ReposCreateDeploymentPayload { /** * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. @@ -23822,6 +26135,13 @@ export enum ReposCreateDeploymentStatusEnvironmentEnum { Qa = "qa", } +export interface ReposCreateDeploymentStatusParams { + /** deployment_id parameter */ + deploymentId: number; + owner: string; + repo: string; +} + export interface ReposCreateDeploymentStatusPayload { /** * Adds a new \`inactive\` status to all prior non-transient, non-production environment deployments with the same repository and \`environment\` name as the created status's deployment. An \`inactive\` status is only added to deployments that had a \`success\` state. Default: \`true\` @@ -23870,6 +26190,11 @@ export enum ReposCreateDeploymentStatusStateEnum { export type ReposCreateDispatchEventData = any; +export interface ReposCreateDispatchEventParams { + owner: string; + repo: string; +} + export interface ReposCreateDispatchEventPayload { /** JSON payload with extra information about the webhook event that your action or worklow may use. */ client_payload?: Record; @@ -23969,6 +26294,11 @@ export interface ReposCreateForAuthenticatedUserPayload { export type ReposCreateForkData = Repository; +export interface ReposCreateForkParams { + owner: string; + repo: string; +} + export interface ReposCreateForkPayload { /** Optional parameter to specify the organization name if forking into an organization. */ organization?: string; @@ -23976,6 +26306,10 @@ export interface ReposCreateForkPayload { export type ReposCreateInOrgData = Repository; +export interface ReposCreateInOrgParams { + org: string; +} + export interface ReposCreateInOrgPayload { /** * Either \`true\` to allow merging pull requests with a merge commit, or \`false\` to prevent merging pull requests with merge commits. @@ -24059,6 +26393,13 @@ export enum ReposCreateInOrgVisibilityEnum { export type ReposCreateOrUpdateFileContentsData = FileCommit; +export interface ReposCreateOrUpdateFileContentsParams { + owner: string; + /** path+ parameter */ + path: string; + repo: string; +} + export interface ReposCreateOrUpdateFileContentsPayload { /** The author of the file. Default: The \`committer\` or the authenticated user if you omit \`committer\`. */ author?: { @@ -24090,6 +26431,11 @@ export interface ReposCreateOrUpdateFileContentsPayload { export type ReposCreatePagesSiteData = Page; +export interface ReposCreatePagesSiteParams { + owner: string; + repo: string; +} + /** * The repository directory that includes the source files for the Pages site. Allowed paths are \`/\` or \`/docs\`. Default: \`/\` * @default "/" @@ -24115,6 +26461,11 @@ export interface ReposCreatePagesSitePayload { export type ReposCreateReleaseData = Release; +export interface ReposCreateReleaseParams { + owner: string; + repo: string; +} + export interface ReposCreateReleasePayload { /** Text describing the contents of the tag. */ body?: string; @@ -24138,6 +26489,11 @@ export interface ReposCreateReleasePayload { export type ReposCreateUsingTemplateData = Repository; +export interface ReposCreateUsingTemplateParams { + templateOwner: string; + templateRepo: string; +} + export interface ReposCreateUsingTemplatePayload { /** A short description of the new repository. */ description?: string; @@ -24159,6 +26515,11 @@ export interface ReposCreateUsingTemplatePayload { export type ReposCreateWebhookData = Hook; +export interface ReposCreateWebhookParams { + owner: string; + repo: string; +} + export interface ReposCreateWebhookPayload { /** * Determines if notifications are sent when the webhook is triggered. Set to \`true\` to send notifications. @@ -24191,22 +26552,76 @@ export interface ReposCreateWebhookPayload { export type ReposDeclineInvitationData = any; +export interface ReposDeclineInvitationParams { + /** invitation_id parameter */ + invitationId: number; +} + export type ReposDeleteAccessRestrictionsData = any; +export interface ReposDeleteAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposDeleteAdminBranchProtectionData = any; +export interface ReposDeleteAdminBranchProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposDeleteBranchProtectionData = any; +export interface ReposDeleteBranchProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposDeleteCommitCommentData = any; +export interface ReposDeleteCommitCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export type ReposDeleteCommitSignatureProtectionData = any; +export interface ReposDeleteCommitSignatureProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposDeleteData = any; export type ReposDeleteDeployKeyData = any; +export interface ReposDeleteDeployKeyParams { + /** key_id parameter */ + keyId: number; + owner: string; + repo: string; +} + export type ReposDeleteDeploymentData = any; +export interface ReposDeleteDeploymentParams { + /** deployment_id parameter */ + deploymentId: number; + owner: string; + repo: string; +} + export type ReposDeleteError = { documentation_url?: string; message?: string; @@ -24214,6 +26629,13 @@ export type ReposDeleteError = { export type ReposDeleteFileData = FileCommit; +export interface ReposDeleteFileParams { + owner: string; + /** path+ parameter */ + path: string; + repo: string; +} + export interface ReposDeleteFilePayload { /** object containing information about the author. */ author?: { @@ -24239,38 +26661,161 @@ export interface ReposDeleteFilePayload { export type ReposDeleteInvitationData = any; +export interface ReposDeleteInvitationParams { + /** invitation_id parameter */ + invitationId: number; + owner: string; + repo: string; +} + export type ReposDeletePagesSiteData = any; +export interface ReposDeletePagesSiteParams { + owner: string; + repo: string; +} + +export interface ReposDeleteParams { + owner: string; + repo: string; +} + export type ReposDeletePullRequestReviewProtectionData = any; +export interface ReposDeletePullRequestReviewProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposDeleteReleaseAssetData = any; +export interface ReposDeleteReleaseAssetParams { + /** asset_id parameter */ + assetId: number; + owner: string; + repo: string; +} + export type ReposDeleteReleaseData = any; +export interface ReposDeleteReleaseParams { + owner: string; + /** release_id parameter */ + releaseId: number; + repo: string; +} + export type ReposDeleteWebhookData = any; +export interface ReposDeleteWebhookParams { + hookId: number; + owner: string; + repo: string; +} + export type ReposDisableAutomatedSecurityFixesData = any; +export interface ReposDisableAutomatedSecurityFixesParams { + owner: string; + repo: string; +} + export type ReposDisableVulnerabilityAlertsData = any; +export interface ReposDisableVulnerabilityAlertsParams { + owner: string; + repo: string; +} + +export interface ReposDownloadTarballArchiveParams { + owner: string; + ref: string; + repo: string; +} + +export interface ReposDownloadZipballArchiveParams { + owner: string; + ref: string; + repo: string; +} + export type ReposEnableAutomatedSecurityFixesData = any; +export interface ReposEnableAutomatedSecurityFixesParams { + owner: string; + repo: string; +} + export type ReposEnableVulnerabilityAlertsData = any; +export interface ReposEnableVulnerabilityAlertsParams { + owner: string; + repo: string; +} + export type ReposGetAccessRestrictionsData = BranchRestrictionPolicy; +export interface ReposGetAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetAdminBranchProtectionData = ProtectedBranchAdminEnforced; +export interface ReposGetAdminBranchProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetAllStatusCheckContextsData = string[]; +export interface ReposGetAllStatusCheckContextsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetAllTopicsData = Topic; +export interface ReposGetAllTopicsParams { + owner: string; + repo: string; +} + export type ReposGetAppsWithAccessToProtectedBranchData = Integration[]; +export interface ReposGetAppsWithAccessToProtectedBranchParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetBranchData = BranchWithProtection; +export interface ReposGetBranchParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetBranchProtectionData = BranchProtection; +export interface ReposGetBranchProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetClonesData = CloneTraffic; export interface ReposGetClonesParams { @@ -24294,20 +26839,69 @@ export enum ReposGetClonesParams1PerEnum { export type ReposGetCodeFrequencyStatsData = CodeFrequencyStat[]; +export interface ReposGetCodeFrequencyStatsParams { + owner: string; + repo: string; +} + export type ReposGetCollaboratorPermissionLevelData = RepositoryCollaboratorPermission; +export interface ReposGetCollaboratorPermissionLevelParams { + owner: string; + repo: string; + username: string; +} + export type ReposGetCombinedStatusForRefData = CombinedCommitStatus; +export interface ReposGetCombinedStatusForRefParams { + owner: string; + /** ref+ parameter */ + ref: string; + repo: string; +} + export type ReposGetCommitActivityStatsData = CommitActivity[]; +export interface ReposGetCommitActivityStatsParams { + owner: string; + repo: string; +} + export type ReposGetCommitCommentData = CommitComment; +export interface ReposGetCommitCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export type ReposGetCommitData = Commit; +export interface ReposGetCommitParams { + owner: string; + /** ref+ parameter */ + ref: string; + repo: string; +} + export type ReposGetCommitSignatureProtectionData = ProtectedBranchAdminEnforced; +export interface ReposGetCommitSignatureProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetCommunityProfileMetricsData = CommunityProfile; +export interface ReposGetCommunityProfileMetricsParams { + owner: string; + repo: string; +} + export type ReposGetContentData = ContentTree; export interface ReposGetContentParams { @@ -24321,28 +26915,98 @@ export interface ReposGetContentParams { export type ReposGetContributorsStatsData = ContributorActivity[]; +export interface ReposGetContributorsStatsParams { + owner: string; + repo: string; +} + export type ReposGetData = FullRepository; export type ReposGetDeployKeyData = DeployKey; +export interface ReposGetDeployKeyParams { + /** key_id parameter */ + keyId: number; + owner: string; + repo: string; +} + export type ReposGetDeploymentData = Deployment; +export interface ReposGetDeploymentParams { + /** deployment_id parameter */ + deploymentId: number; + owner: string; + repo: string; +} + export type ReposGetDeploymentStatusData = DeploymentStatus; +export interface ReposGetDeploymentStatusParams { + /** deployment_id parameter */ + deploymentId: number; + owner: string; + repo: string; + statusId: number; +} + export type ReposGetLatestPagesBuildData = PageBuild; +export interface ReposGetLatestPagesBuildParams { + owner: string; + repo: string; +} + export type ReposGetLatestReleaseData = Release; +export interface ReposGetLatestReleaseParams { + owner: string; + repo: string; +} + export type ReposGetPagesBuildData = PageBuild; +export interface ReposGetPagesBuildParams { + buildId: number; + owner: string; + repo: string; +} + export type ReposGetPagesData = Page; +export interface ReposGetPagesParams { + owner: string; + repo: string; +} + +export interface ReposGetParams { + owner: string; + repo: string; +} + export type ReposGetParticipationStatsData = ParticipationStats; +export interface ReposGetParticipationStatsParams { + owner: string; + repo: string; +} + export type ReposGetPullRequestReviewProtectionData = ProtectedBranchPullRequestReview; +export interface ReposGetPullRequestReviewProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetPunchCardStatsData = CodeFrequencyStat[]; +export interface ReposGetPunchCardStatsParams { + owner: string; + repo: string; +} + export type ReposGetReadmeData = ContentFile; export interface ReposGetReadmeParams { @@ -24354,20 +27018,72 @@ export interface ReposGetReadmeParams { export type ReposGetReleaseAssetData = ReleaseAsset; +export interface ReposGetReleaseAssetParams { + /** asset_id parameter */ + assetId: number; + owner: string; + repo: string; +} + export type ReposGetReleaseByTagData = Release; +export interface ReposGetReleaseByTagParams { + owner: string; + repo: string; + /** tag+ parameter */ + tag: string; +} + export type ReposGetReleaseData = Release; +export interface ReposGetReleaseParams { + owner: string; + /** release_id parameter */ + releaseId: number; + repo: string; +} + export type ReposGetStatusChecksProtectionData = StatusCheckPolicy; +export interface ReposGetStatusChecksProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetTeamsWithAccessToProtectedBranchData = Team[]; +export interface ReposGetTeamsWithAccessToProtectedBranchParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetTopPathsData = ContentTraffic[]; +export interface ReposGetTopPathsParams { + owner: string; + repo: string; +} + export type ReposGetTopReferrersData = ReferrerTraffic[]; +export interface ReposGetTopReferrersParams { + owner: string; + repo: string; +} + export type ReposGetUsersWithAccessToProtectedBranchData = SimpleUser[]; +export interface ReposGetUsersWithAccessToProtectedBranchParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposGetViewsData = ViewTraffic; export interface ReposGetViewsParams { @@ -24391,12 +27107,31 @@ export enum ReposGetViewsParams1PerEnum { export type ReposGetWebhookConfigForRepoData = WebhookConfig; +export interface ReposGetWebhookConfigForRepoParams { + hookId: number; + owner: string; + repo: string; +} + export type ReposGetWebhookData = Hook; +export interface ReposGetWebhookParams { + hookId: number; + owner: string; + repo: string; +} + export type ReposListBranchesData = ShortBranch[]; export type ReposListBranchesForHeadCommitData = BranchShort[]; +export interface ReposListBranchesForHeadCommitParams { + /** commit_sha parameter */ + commitSha: string; + owner: string; + repo: string; +} + export interface ReposListBranchesParams { owner: string; /** @@ -24887,6 +27622,11 @@ export interface ReposListInvitationsParams { export type ReposListLanguagesData = Language; +export interface ReposListLanguagesParams { + owner: string; + repo: string; +} + export type ReposListPagesBuildsData = PageBuild[]; export interface ReposListPagesBuildsParams { @@ -25025,6 +27765,11 @@ export type ReposMergeError = { message?: string; }; +export interface ReposMergeParams { + owner: string; + repo: string; +} + export interface ReposMergePayload { /** The name of the base branch that the head will be merged into. */ base: string; @@ -25036,8 +27781,21 @@ export interface ReposMergePayload { export type ReposPingWebhookData = any; +export interface ReposPingWebhookParams { + hookId: number; + owner: string; + repo: string; +} + export type ReposRemoveAppAccessRestrictionsData = Integration[]; +export interface ReposRemoveAppAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"apps":["my-app"]} */ export interface ReposRemoveAppAccessRestrictionsPayload { /** apps parameter */ @@ -25046,8 +27804,21 @@ export interface ReposRemoveAppAccessRestrictionsPayload { export type ReposRemoveCollaboratorData = any; +export interface ReposRemoveCollaboratorParams { + owner: string; + repo: string; + username: string; +} + export type ReposRemoveStatusCheckContextsData = string[]; +export interface ReposRemoveStatusCheckContextsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"contexts":["contexts"]} */ export interface ReposRemoveStatusCheckContextsPayload { /** contexts parameter */ @@ -25056,8 +27827,22 @@ export interface ReposRemoveStatusCheckContextsPayload { export type ReposRemoveStatusCheckProtectionData = any; +export interface ReposRemoveStatusCheckProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposRemoveTeamAccessRestrictionsData = Team[]; +export interface ReposRemoveTeamAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"teams":["my-team"]} */ export interface ReposRemoveTeamAccessRestrictionsPayload { /** teams parameter */ @@ -25066,6 +27851,13 @@ export interface ReposRemoveTeamAccessRestrictionsPayload { export type ReposRemoveUserAccessRestrictionsData = SimpleUser[]; +export interface ReposRemoveUserAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"users":["mona"]} */ export interface ReposRemoveUserAccessRestrictionsPayload { /** users parameter */ @@ -25074,6 +27866,13 @@ export interface ReposRemoveUserAccessRestrictionsPayload { export type ReposRenameBranchData = BranchWithProtection; +export interface ReposRenameBranchParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export interface ReposRenameBranchPayload { /** The new name of the branch. */ new_name: string; @@ -25081,6 +27880,11 @@ export interface ReposRenameBranchPayload { export type ReposReplaceAllTopicsData = Topic; +export interface ReposReplaceAllTopicsParams { + owner: string; + repo: string; +} + export interface ReposReplaceAllTopicsPayload { /** An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (\`[]\`) to clear all topics from the repository. **Note:** Topic \`names\` cannot contain uppercase letters. */ names: string[]; @@ -25088,10 +27892,29 @@ export interface ReposReplaceAllTopicsPayload { export type ReposRequestPagesBuildData = PageBuildStatus; +export interface ReposRequestPagesBuildParams { + owner: string; + repo: string; +} + export type ReposSetAdminBranchProtectionData = ProtectedBranchAdminEnforced; +export interface ReposSetAdminBranchProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export type ReposSetAppAccessRestrictionsData = Integration[]; +export interface ReposSetAppAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"apps":["my-app"]} */ export interface ReposSetAppAccessRestrictionsPayload { /** apps parameter */ @@ -25100,6 +27923,13 @@ export interface ReposSetAppAccessRestrictionsPayload { export type ReposSetStatusCheckContextsData = string[]; +export interface ReposSetStatusCheckContextsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"contexts":["contexts"]} */ export interface ReposSetStatusCheckContextsPayload { /** contexts parameter */ @@ -25108,6 +27938,13 @@ export interface ReposSetStatusCheckContextsPayload { export type ReposSetTeamAccessRestrictionsData = Team[]; +export interface ReposSetTeamAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"teams":["my-team"]} */ export interface ReposSetTeamAccessRestrictionsPayload { /** teams parameter */ @@ -25116,6 +27953,13 @@ export interface ReposSetTeamAccessRestrictionsPayload { export type ReposSetUserAccessRestrictionsData = SimpleUser[]; +export interface ReposSetUserAccessRestrictionsParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + /** @example {"users":["mona"]} */ export interface ReposSetUserAccessRestrictionsPayload { /** users parameter */ @@ -25124,8 +27968,19 @@ export interface ReposSetUserAccessRestrictionsPayload { export type ReposTestPushWebhookData = any; +export interface ReposTestPushWebhookParams { + hookId: number; + owner: string; + repo: string; +} + export type ReposTransferData = Repository; +export interface ReposTransferParams { + owner: string; + repo: string; +} + export interface ReposTransferPayload { /** The username or organization name the repository will be transferred to. */ new_owner: string; @@ -25135,6 +27990,13 @@ export interface ReposTransferPayload { export type ReposUpdateBranchProtectionData = ProtectedBranch; +export interface ReposUpdateBranchProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export interface ReposUpdateBranchProtectionPayload { /** Allows deletion of the protected branch by anyone with write access to the repository. Set to \`false\` to prevent deletion of the protected branch. Default: \`false\`. For more information, see "[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation. */ allow_deletions?: boolean; @@ -25180,6 +28042,13 @@ export interface ReposUpdateBranchProtectionPayload { export type ReposUpdateCommitCommentData = CommitComment; +export interface ReposUpdateCommitCommentParams { + /** comment_id parameter */ + commentId: number; + owner: string; + repo: string; +} + export interface ReposUpdateCommitCommentPayload { /** The contents of the comment */ body: string; @@ -25189,6 +28058,11 @@ export type ReposUpdateData = FullRepository; export type ReposUpdateInformationAboutPagesSiteData = any; +export interface ReposUpdateInformationAboutPagesSiteParams { + owner: string; + repo: string; +} + /** The repository directory that includes the source files for the Pages site. Allowed paths are \`/\` or \`/docs\`. */ export enum ReposUpdateInformationAboutPagesSitePathEnum { Value = "/", @@ -25220,6 +28094,13 @@ export enum ReposUpdateInformationAboutPagesSiteSourceEnum { export type ReposUpdateInvitationData = RepositoryInvitation; +export interface ReposUpdateInvitationParams { + /** invitation_id parameter */ + invitationId: number; + owner: string; + repo: string; +} + export interface ReposUpdateInvitationPayload { /** The permissions that the associated user will have on the repository. Valid values are \`read\`, \`write\`, \`maintain\`, \`triage\`, and \`admin\`. */ permissions?: ReposUpdateInvitationPermissionsEnum; @@ -25234,6 +28115,11 @@ export enum ReposUpdateInvitationPermissionsEnum { Admin = "admin", } +export interface ReposUpdateParams { + owner: string; + repo: string; +} + export interface ReposUpdatePayload { /** * Either \`true\` to allow merging pull requests with a merge commit, or \`false\` to prevent merging pull requests with merge commits. @@ -25300,6 +28186,13 @@ export interface ReposUpdatePayload { export type ReposUpdatePullRequestReviewProtectionData = ProtectedBranchPullRequestReview; +export interface ReposUpdatePullRequestReviewProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export interface ReposUpdatePullRequestReviewProtectionPayload { /** Set to \`true\` if you want to automatically dismiss approving reviews when someone pushes a new commit. */ dismiss_stale_reviews?: boolean; @@ -25318,6 +28211,13 @@ export interface ReposUpdatePullRequestReviewProtectionPayload { export type ReposUpdateReleaseAssetData = ReleaseAsset; +export interface ReposUpdateReleaseAssetParams { + /** asset_id parameter */ + assetId: number; + owner: string; + repo: string; +} + export interface ReposUpdateReleaseAssetPayload { /** An alternate short description of the asset. Used in place of the filename. */ label?: string; @@ -25329,6 +28229,13 @@ export interface ReposUpdateReleaseAssetPayload { export type ReposUpdateReleaseData = Release; +export interface ReposUpdateReleaseParams { + owner: string; + /** release_id parameter */ + releaseId: number; + repo: string; +} + export interface ReposUpdateReleasePayload { /** Text describing the contents of the tag. */ body?: string; @@ -25346,6 +28253,13 @@ export interface ReposUpdateReleasePayload { export type ReposUpdateStatusCheckProtectionData = StatusCheckPolicy; +export interface ReposUpdateStatusCheckProtectionParams { + /** The name of the branch. */ + branch: string; + owner: string; + repo: string; +} + export interface ReposUpdateStatusCheckProtectionPayload { /** The list of status checks to require in order to merge into this branch */ contexts?: string[]; @@ -25363,6 +28277,12 @@ export enum ReposUpdateVisibilityEnum { export type ReposUpdateWebhookConfigForRepoData = WebhookConfig; +export interface ReposUpdateWebhookConfigForRepoParams { + hookId: number; + owner: string; + repo: string; +} + /** @example {"content_type":"json","insecure_ssl":"0","secret":"********","url":"https://example.com/webhook"} */ export interface ReposUpdateWebhookConfigForRepoPayload { /** The media type used to serialize the payloads. Supported values include \`json\` and \`form\`. The default is \`form\`. */ @@ -25377,6 +28297,12 @@ export interface ReposUpdateWebhookConfigForRepoPayload { export type ReposUpdateWebhookData = Hook; +export interface ReposUpdateWebhookParams { + hookId: number; + owner: string; + repo: string; +} + export interface ReposUpdateWebhookPayload { /** * Determines if notifications are sent when the webhook is triggered. Set to \`true\` to send notifications. @@ -26142,6 +29068,12 @@ export type ScimConflict = ScimError; export type ScimDeleteUserFromOrgData = any; +export interface ScimDeleteUserFromOrgParams { + org: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export interface ScimEnterpriseGroup { displayName?: string; externalId?: string | null; @@ -26204,6 +29136,12 @@ export type ScimForbidden = ScimError; export type ScimGetProvisioningInformationForUserData = ScimUser; +export interface ScimGetProvisioningInformationForUserParams { + org: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export interface ScimGroupListEnterprise { Resources: { displayName?: string; @@ -26256,6 +29194,10 @@ export type ScimNotFound = ScimError; export type ScimProvisionAndInviteUserData = ScimUser; +export interface ScimProvisionAndInviteUserParams { + org: string; +} + export interface ScimProvisionAndInviteUserPayload { active?: boolean; /** @@ -26291,6 +29233,12 @@ export interface ScimProvisionAndInviteUserPayload { export type ScimSetInformationForProvisionedUserData = ScimUser; +export interface ScimSetInformationForProvisionedUserParams { + org: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export interface ScimSetInformationForProvisionedUserPayload { active?: boolean; /** @@ -26334,6 +29282,12 @@ export enum ScimUpdateAttributeForUserOpEnum { Replace = "replace", } +export interface ScimUpdateAttributeForUserParams { + org: string; + /** scim_user_id parameter */ + scimUserId: string; +} + export interface ScimUpdateAttributeForUserPayload { /** * Set of operations to be performed @@ -26860,6 +29814,13 @@ export enum SecretScanningAlertState { export type SecretScanningGetAlertData = SecretScanningAlert; +export interface SecretScanningGetAlertParams { + /** The security alert number, found at the end of the security alert's URL. */ + alertNumber: AlertNumber; + owner: string; + repo: string; +} + export type SecretScanningListAlertsForRepoData = SecretScanningAlert[]; export interface SecretScanningListAlertsForRepoParams { @@ -26887,6 +29848,13 @@ export enum SecretScanningListAlertsForRepoParams1StateEnum { export type SecretScanningUpdateAlertData = SecretScanningAlert; +export interface SecretScanningUpdateAlertParams { + /** The security alert number, found at the end of the security alert's URL. */ + alertNumber: AlertNumber; + owner: string; + repo: string; +} + export interface SecretScanningUpdateAlertPayload { /** **Required when the \`state\` is \`resolved\`.** The reason for resolving the alert. Can be one of \`false_positive\`, \`wont_fix\`, \`revoked\`, or \`used_in_tests\`. */ resolution?: SecretScanningAlertResolution; @@ -28139,6 +31107,11 @@ export type TeamsAddMemberLegacyError = { message?: string; }; +export interface TeamsAddMemberLegacyParams { + teamId: number; + username: string; +} + export type TeamsAddOrUpdateMembershipForUserInOrgData = TeamMembership; export type TeamsAddOrUpdateMembershipForUserInOrgError = { @@ -28150,6 +31123,13 @@ export type TeamsAddOrUpdateMembershipForUserInOrgError = { message?: string; }; +export interface TeamsAddOrUpdateMembershipForUserInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; + username: string; +} + export interface TeamsAddOrUpdateMembershipForUserInOrgPayload { /** * The role that this user should have in the team. Can be one of: @@ -28184,6 +31164,11 @@ export type TeamsAddOrUpdateMembershipForUserLegacyError = { message?: string; }; +export interface TeamsAddOrUpdateMembershipForUserLegacyParams { + teamId: number; + username: string; +} + export interface TeamsAddOrUpdateMembershipForUserLegacyPayload { /** * The role that this user should have in the team. Can be one of: @@ -28212,6 +31197,13 @@ export type TeamsAddOrUpdateProjectPermissionsInOrgError = { message?: string; }; +export interface TeamsAddOrUpdateProjectPermissionsInOrgParams { + org: string; + projectId: number; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsAddOrUpdateProjectPermissionsInOrgPayload { /** * The permission to grant to the team for this project. Can be one of: @@ -28243,6 +31235,11 @@ export type TeamsAddOrUpdateProjectPermissionsLegacyError = { message?: string; }; +export interface TeamsAddOrUpdateProjectPermissionsLegacyParams { + projectId: number; + teamId: number; +} + export interface TeamsAddOrUpdateProjectPermissionsLegacyPayload { /** * The permission to grant to the team for this project. Can be one of: @@ -28269,6 +31266,14 @@ export enum TeamsAddOrUpdateProjectPermissionsLegacyPermissionEnum { export type TeamsAddOrUpdateRepoPermissionsInOrgData = any; +export interface TeamsAddOrUpdateRepoPermissionsInOrgParams { + org: string; + owner: string; + repo: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsAddOrUpdateRepoPermissionsInOrgPayload { /** * The permission to grant the team on this repository. Can be one of: @@ -28303,6 +31308,12 @@ export enum TeamsAddOrUpdateRepoPermissionsInOrgPermissionEnum { export type TeamsAddOrUpdateRepoPermissionsLegacyData = any; +export interface TeamsAddOrUpdateRepoPermissionsLegacyParams { + owner: string; + repo: string; + teamId: number; +} + export interface TeamsAddOrUpdateRepoPermissionsLegacyPayload { /** * The permission to grant the team on this repository. Can be one of: @@ -28331,16 +31342,49 @@ export enum TeamsAddOrUpdateRepoPermissionsLegacyPermissionEnum { export type TeamsCheckPermissionsForProjectInOrgData = TeamProject; +export interface TeamsCheckPermissionsForProjectInOrgParams { + org: string; + projectId: number; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsCheckPermissionsForProjectLegacyData = TeamProject; +export interface TeamsCheckPermissionsForProjectLegacyParams { + projectId: number; + teamId: number; +} + export type TeamsCheckPermissionsForRepoInOrgData = TeamRepository; +export interface TeamsCheckPermissionsForRepoInOrgParams { + org: string; + owner: string; + repo: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsCheckPermissionsForRepoLegacyData = TeamRepository; +export interface TeamsCheckPermissionsForRepoLegacyParams { + owner: string; + repo: string; + teamId: number; +} + export type TeamsCreateData = TeamFull; export type TeamsCreateDiscussionCommentInOrgData = TeamDiscussionComment; +export interface TeamsCreateDiscussionCommentInOrgParams { + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsCreateDiscussionCommentInOrgPayload { /** The discussion comment's body text. */ body: string; @@ -28348,6 +31392,11 @@ export interface TeamsCreateDiscussionCommentInOrgPayload { export type TeamsCreateDiscussionCommentLegacyData = TeamDiscussionComment; +export interface TeamsCreateDiscussionCommentLegacyParams { + discussionNumber: number; + teamId: number; +} + export interface TeamsCreateDiscussionCommentLegacyPayload { /** The discussion comment's body text. */ body: string; @@ -28355,6 +31404,12 @@ export interface TeamsCreateDiscussionCommentLegacyPayload { export type TeamsCreateDiscussionInOrgData = TeamDiscussion; +export interface TeamsCreateDiscussionInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsCreateDiscussionInOrgPayload { /** The discussion post's body text. */ body: string; @@ -28369,6 +31424,10 @@ export interface TeamsCreateDiscussionInOrgPayload { export type TeamsCreateDiscussionLegacyData = TeamDiscussion; +export interface TeamsCreateDiscussionLegacyParams { + teamId: number; +} + export interface TeamsCreateDiscussionLegacyPayload { /** The discussion post's body text. */ body: string; @@ -28383,6 +31442,12 @@ export interface TeamsCreateDiscussionLegacyPayload { export type TeamsCreateOrUpdateIdpGroupConnectionsInOrgData = GroupMapping; +export interface TeamsCreateOrUpdateIdpGroupConnectionsInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsCreateOrUpdateIdpGroupConnectionsInOrgPayload { /** The IdP groups you want to connect to a GitHub team. When updating, the new \`groups\` object will replace the original one. You must include any existing groups that you don't want to remove. */ groups: { @@ -28397,6 +31462,10 @@ export interface TeamsCreateOrUpdateIdpGroupConnectionsInOrgPayload { export type TeamsCreateOrUpdateIdpGroupConnectionsLegacyData = GroupMapping; +export interface TeamsCreateOrUpdateIdpGroupConnectionsLegacyParams { + teamId: number; +} + export interface TeamsCreateOrUpdateIdpGroupConnectionsLegacyPayload { /** The IdP groups you want to connect to a GitHub team. When updating, the new \`groups\` object will replace the original one. You must include any existing groups that you don't want to remove. */ groups: { @@ -28417,6 +31486,10 @@ export interface TeamsCreateOrUpdateIdpGroupConnectionsLegacyPayload { synced_at?: string; } +export interface TeamsCreateParams { + org: string; +} + export interface TeamsCreatePayload { /** The description of the team. */ description?: string; @@ -28479,34 +31552,123 @@ export enum TeamsCreatePrivacyEnum { export type TeamsDeleteDiscussionCommentInOrgData = any; +export interface TeamsDeleteDiscussionCommentInOrgParams { + commentNumber: number; + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsDeleteDiscussionCommentLegacyData = any; +export interface TeamsDeleteDiscussionCommentLegacyParams { + commentNumber: number; + discussionNumber: number; + teamId: number; +} + export type TeamsDeleteDiscussionInOrgData = any; +export interface TeamsDeleteDiscussionInOrgParams { + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsDeleteDiscussionLegacyData = any; +export interface TeamsDeleteDiscussionLegacyParams { + discussionNumber: number; + teamId: number; +} + export type TeamsDeleteInOrgData = any; +export interface TeamsDeleteInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsDeleteLegacyData = any; +export interface TeamsDeleteLegacyParams { + teamId: number; +} + export type TeamsGetByNameData = TeamFull; +export interface TeamsGetByNameParams { + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsGetDiscussionCommentInOrgData = TeamDiscussionComment; +export interface TeamsGetDiscussionCommentInOrgParams { + commentNumber: number; + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsGetDiscussionCommentLegacyData = TeamDiscussionComment; +export interface TeamsGetDiscussionCommentLegacyParams { + commentNumber: number; + discussionNumber: number; + teamId: number; +} + export type TeamsGetDiscussionInOrgData = TeamDiscussion; +export interface TeamsGetDiscussionInOrgParams { + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsGetDiscussionLegacyData = TeamDiscussion; +export interface TeamsGetDiscussionLegacyParams { + discussionNumber: number; + teamId: number; +} + export type TeamsGetLegacyData = TeamFull; +export interface TeamsGetLegacyParams { + teamId: number; +} + export type TeamsGetMemberLegacyData = any; +export interface TeamsGetMemberLegacyParams { + teamId: number; + username: string; +} + export type TeamsGetMembershipForUserInOrgData = TeamMembership; +export interface TeamsGetMembershipForUserInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; + username: string; +} + export type TeamsGetMembershipForUserLegacyData = TeamMembership; +export interface TeamsGetMembershipForUserLegacyParams { + teamId: number; + username: string; +} + export type TeamsListChildInOrgData = Team[]; export interface TeamsListChildInOrgParams { @@ -28686,6 +31848,10 @@ export interface TeamsListForAuthenticatedUserParams { export type TeamsListIdpGroupsForLegacyData = GroupMapping; +export interface TeamsListIdpGroupsForLegacyParams { + teamId: number; +} + export type TeamsListIdpGroupsForOrgData = GroupMapping; export interface TeamsListIdpGroupsForOrgParams { @@ -28704,6 +31870,12 @@ export interface TeamsListIdpGroupsForOrgParams { export type TeamsListIdpGroupsInOrgData = GroupMapping; +export interface TeamsListIdpGroupsInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsListMembersInOrgData = SimpleUser[]; export interface TeamsListMembersInOrgParams { @@ -28898,20 +32070,71 @@ export interface TeamsListReposLegacyParams { export type TeamsRemoveMemberLegacyData = any; +export interface TeamsRemoveMemberLegacyParams { + teamId: number; + username: string; +} + export type TeamsRemoveMembershipForUserInOrgData = any; +export interface TeamsRemoveMembershipForUserInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; + username: string; +} + export type TeamsRemoveMembershipForUserLegacyData = any; +export interface TeamsRemoveMembershipForUserLegacyParams { + teamId: number; + username: string; +} + export type TeamsRemoveProjectInOrgData = any; +export interface TeamsRemoveProjectInOrgParams { + org: string; + projectId: number; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsRemoveProjectLegacyData = any; +export interface TeamsRemoveProjectLegacyParams { + projectId: number; + teamId: number; +} + export type TeamsRemoveRepoInOrgData = any; +export interface TeamsRemoveRepoInOrgParams { + org: string; + owner: string; + repo: string; + /** team_slug parameter */ + teamSlug: string; +} + export type TeamsRemoveRepoLegacyData = any; +export interface TeamsRemoveRepoLegacyParams { + owner: string; + repo: string; + teamId: number; +} + export type TeamsUpdateDiscussionCommentInOrgData = TeamDiscussionComment; +export interface TeamsUpdateDiscussionCommentInOrgParams { + commentNumber: number; + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsUpdateDiscussionCommentInOrgPayload { /** The discussion comment's body text. */ body: string; @@ -28919,6 +32142,12 @@ export interface TeamsUpdateDiscussionCommentInOrgPayload { export type TeamsUpdateDiscussionCommentLegacyData = TeamDiscussionComment; +export interface TeamsUpdateDiscussionCommentLegacyParams { + commentNumber: number; + discussionNumber: number; + teamId: number; +} + export interface TeamsUpdateDiscussionCommentLegacyPayload { /** The discussion comment's body text. */ body: string; @@ -28926,6 +32155,13 @@ export interface TeamsUpdateDiscussionCommentLegacyPayload { export type TeamsUpdateDiscussionInOrgData = TeamDiscussion; +export interface TeamsUpdateDiscussionInOrgParams { + discussionNumber: number; + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsUpdateDiscussionInOrgPayload { /** The discussion post's body text. */ body?: string; @@ -28935,6 +32171,11 @@ export interface TeamsUpdateDiscussionInOrgPayload { export type TeamsUpdateDiscussionLegacyData = TeamDiscussion; +export interface TeamsUpdateDiscussionLegacyParams { + discussionNumber: number; + teamId: number; +} + export interface TeamsUpdateDiscussionLegacyPayload { /** The discussion post's body text. */ body?: string; @@ -28944,6 +32185,12 @@ export interface TeamsUpdateDiscussionLegacyPayload { export type TeamsUpdateInOrgData = TeamFull; +export interface TeamsUpdateInOrgParams { + org: string; + /** team_slug parameter */ + teamSlug: string; +} + export interface TeamsUpdateInOrgPayload { /** The description of the team. */ description?: string; @@ -28998,6 +32245,10 @@ export enum TeamsUpdateInOrgPrivacyEnum { export type TeamsUpdateLegacyData = TeamFull; +export interface TeamsUpdateLegacyParams { + teamId: number; +} + export interface TeamsUpdateLegacyPayload { /** The description of the team. */ description?: string; @@ -29297,16 +32548,33 @@ export type UsersAddEmailForAuthenticatedPayload = export type UsersBlockData = any; +export interface UsersBlockParams { + username: string; +} + export type UsersCheckBlockedData = any; export type UsersCheckBlockedError = BasicError; +export interface UsersCheckBlockedParams { + username: string; +} + export type UsersCheckFollowingForUserData = any; +export interface UsersCheckFollowingForUserParams { + targetUser: string; + username: string; +} + export type UsersCheckPersonIsFollowedByAuthenticatedData = any; export type UsersCheckPersonIsFollowedByAuthenticatedError = BasicError; +export interface UsersCheckPersonIsFollowedByAuthenticatedParams { + username: string; +} + export type UsersCreateGpgKeyForAuthenticatedData = GpgKey; export interface UsersCreateGpgKeyForAuthenticatedPayload { @@ -29342,14 +32610,32 @@ export type UsersDeleteEmailForAuthenticatedPayload = export type UsersDeleteGpgKeyForAuthenticatedData = any; +export interface UsersDeleteGpgKeyForAuthenticatedParams { + /** gpg_key_id parameter */ + gpgKeyId: number; +} + export type UsersDeletePublicSshKeyForAuthenticatedData = any; +export interface UsersDeletePublicSshKeyForAuthenticatedParams { + /** key_id parameter */ + keyId: number; +} + export type UsersFollowData = any; +export interface UsersFollowParams { + username: string; +} + export type UsersGetAuthenticatedData = PrivateUser | PublicUser; export type UsersGetByUsernameData = PrivateUser | PublicUser; +export interface UsersGetByUsernameParams { + username: string; +} + export type UsersGetContextForUserData = Hovercard; export interface UsersGetContextForUserParams { @@ -29370,8 +32656,18 @@ export enum UsersGetContextForUserParams1SubjectTypeEnum { export type UsersGetGpgKeyForAuthenticatedData = GpgKey; +export interface UsersGetGpgKeyForAuthenticatedParams { + /** gpg_key_id parameter */ + gpgKeyId: number; +} + export type UsersGetPublicSshKeyForAuthenticatedData = Key; +export interface UsersGetPublicSshKeyForAuthenticatedParams { + /** key_id parameter */ + keyId: number; +} + export type UsersListBlockedByAuthenticatedData = SimpleUser[]; export type UsersListData = SimpleUser[]; @@ -29560,8 +32856,16 @@ export enum UsersSetPrimaryEmailVisibilityForAuthenticatedVisibilityEnum { export type UsersUnblockData = any; +export interface UsersUnblockParams { + username: string; +} + export type UsersUnfollowData = any; +export interface UsersUnfollowParams { + username: string; +} + export type UsersUpdateAuthenticatedData = PrivateUser; export interface UsersUpdateAuthenticatedPayload { @@ -45779,7 +49083,7 @@ export class Api extends HttpClient @@ -45808,7 +49112,7 @@ export class Api extends HttpClient + appsDeleteInstallation: ({ installationId }: AppsDeleteInstallationParams, params: RequestParams = {}) => this.request({ path: \`/app/installations/\${installationId}\`, method: "DELETE", @@ -45839,7 +49143,7 @@ export class Api extends HttpClient + appsGetInstallation: ({ installationId }: AppsGetInstallationParams, params: RequestParams = {}) => this.request< AppsGetInstallationData, | BasicError @@ -45878,7 +49182,7 @@ export class Api extends HttpClient + appsListInstallations: ({ ...query }: AppsListInstallationsParams, params: RequestParams = {}) => this.request({ path: \`/app/installations\`, method: "GET", @@ -45895,7 +49199,7 @@ export class Api extends HttpClient + appsSuspendInstallation: ({ installationId }: AppsSuspendInstallationParams, params: RequestParams = {}) => this.request({ path: \`/app/installations/\${installationId}/suspended\`, method: "PUT", @@ -45910,7 +49214,7 @@ export class Api extends HttpClient + appsUnsuspendInstallation: ({ installationId }: AppsUnsuspendInstallationParams, params: RequestParams = {}) => this.request({ path: \`/app/installations/\${installationId}/suspended\`, method: "DELETE", @@ -45944,7 +49248,7 @@ export class Api extends HttpClient + appsCreateFromManifest: ({ code }: AppsCreateFromManifestParams, params: RequestParams = {}) => this.request({ path: \`/app-manifests/\${code}/conversions\`, method: "POST", @@ -45962,7 +49266,7 @@ export class Api extends HttpClient + appsCheckAuthorization: ({ clientId, accessToken }: AppsCheckAuthorizationParams, params: RequestParams = {}) => this.request({ path: \`/applications/\${clientId}/tokens/\${accessToken}\`, method: "GET", @@ -45978,7 +49282,7 @@ export class Api extends HttpClient + appsCheckToken: ({ clientId }: AppsCheckTokenParams, data: AppsCheckTokenPayload, params: RequestParams = {}) => this.request({ path: \`/applications/\${clientId}/token\`, method: "POST", @@ -45996,7 +49300,11 @@ export class Api extends HttpClient + appsDeleteAuthorization: ( + { clientId }: AppsDeleteAuthorizationParams, + data: AppsDeleteAuthorizationPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/applications/\${clientId}/grant\`, method: "DELETE", @@ -46013,7 +49321,7 @@ export class Api extends HttpClient + appsDeleteToken: ({ clientId }: AppsDeleteTokenParams, data: AppsDeleteTokenPayload, params: RequestParams = {}) => this.request({ path: \`/applications/\${clientId}/token\`, method: "DELETE", @@ -46031,7 +49339,7 @@ export class Api extends HttpClient + appsResetAuthorization: ({ clientId, accessToken }: AppsResetAuthorizationParams, params: RequestParams = {}) => this.request({ path: \`/applications/\${clientId}/tokens/\${accessToken}\`, method: "POST", @@ -46047,7 +49355,7 @@ export class Api extends HttpClient + appsResetToken: ({ clientId }: AppsResetTokenParams, data: AppsResetTokenPayload, params: RequestParams = {}) => this.request({ path: \`/applications/\${clientId}/token\`, method: "PATCH", @@ -46066,7 +49374,10 @@ export class Api extends HttpClient + appsRevokeAuthorizationForApplication: ( + { clientId, accessToken }: AppsRevokeAuthorizationForApplicationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/applications/\${clientId}/tokens/\${accessToken}\`, method: "DELETE", @@ -46082,7 +49393,10 @@ export class Api extends HttpClient + appsRevokeGrantForApplication: ( + { clientId, accessToken }: AppsRevokeGrantForApplicationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/applications/\${clientId}/grants/\${accessToken}\`, method: "DELETE", @@ -46097,7 +49411,7 @@ export class Api extends HttpClient + appsScopeToken: ({ clientId }: AppsScopeTokenParams, data: AppsScopeTokenPayload, params: RequestParams = {}) => this.request({ path: \`/applications/\${clientId}/token/scoped\`, method: "POST", @@ -46116,7 +49430,7 @@ export class Api extends HttpClient + oauthAuthorizationsDeleteGrant: ({ grantId }: OauthAuthorizationsDeleteGrantParams, params: RequestParams = {}) => this.request({ path: \`/applications/grants/\${grantId}\`, method: "DELETE", @@ -46132,7 +49446,7 @@ export class Api extends HttpClient + oauthAuthorizationsGetGrant: ({ grantId }: OauthAuthorizationsGetGrantParams, params: RequestParams = {}) => this.request({ path: \`/applications/grants/\${grantId}\`, method: "GET", @@ -46149,7 +49463,7 @@ export class Api extends HttpClient + oauthAuthorizationsListGrants: ({ ...query }: OauthAuthorizationsListGrantsParams, params: RequestParams = {}) => this.request({ path: \`/applications/grants\`, method: "GET", @@ -46167,7 +49481,7 @@ export class Api extends HttpClient + appsGetBySlug: ({ appSlug }: AppsGetBySlugParams, params: RequestParams = {}) => this.request< AppsGetBySlugData, | BasicError @@ -46214,7 +49528,10 @@ export class Api extends HttpClient + oauthAuthorizationsDeleteAuthorization: ( + { authorizationId }: OauthAuthorizationsDeleteAuthorizationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/authorizations/\${authorizationId}\`, method: "DELETE", @@ -46230,7 +49547,10 @@ export class Api extends HttpClient + oauthAuthorizationsGetAuthorization: ( + { authorizationId }: OauthAuthorizationsGetAuthorizationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/authorizations/\${authorizationId}\`, method: "GET", @@ -46248,7 +49568,7 @@ export class Api extends HttpClient @@ -46271,8 +49591,7 @@ export class Api extends HttpClient @@ -46295,7 +49614,7 @@ export class Api extends HttpClient this.request({ @@ -46316,7 +49635,7 @@ export class Api extends HttpClient @@ -46360,7 +49679,7 @@ export class Api extends HttpClient + codesOfConductGetConductCode: ({ key }: CodesOfConductGetConductCodeParams, params: RequestParams = {}) => this.request< CodesOfConductGetConductCodeData, | BasicError @@ -46385,7 +49704,7 @@ export class Api extends HttpClient @@ -46449,7 +49768,10 @@ export class Api extends HttpClient + billingGetGithubActionsBillingGhe: ( + { enterprise }: BillingGetGithubActionsBillingGheParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/settings/billing/actions\`, method: "GET", @@ -46465,7 +49787,10 @@ export class Api extends HttpClient + billingGetGithubPackagesBillingGhe: ( + { enterprise }: BillingGetGithubPackagesBillingGheParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/settings/billing/packages\`, method: "GET", @@ -46481,7 +49806,10 @@ export class Api extends HttpClient + billingGetSharedStorageBillingGhe: ( + { enterprise }: BillingGetSharedStorageBillingGheParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/settings/billing/shared-storage\`, method: "GET", @@ -46498,9 +49826,7 @@ export class Api extends HttpClient this.request({ @@ -46518,9 +49844,7 @@ export class Api extends HttpClient this.request({ @@ -46537,7 +49861,10 @@ export class Api extends HttpClient + enterpriseAdminCreateRegistrationTokenForEnterprise: ( + { enterprise }: EnterpriseAdminCreateRegistrationTokenForEnterpriseParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/actions/runners/registration-token\`, method: "POST", @@ -46553,7 +49880,10 @@ export class Api extends HttpClient + enterpriseAdminCreateRemoveTokenForEnterprise: ( + { enterprise }: EnterpriseAdminCreateRemoveTokenForEnterpriseParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/actions/runners/remove-token\`, method: "POST", @@ -46570,7 +49900,7 @@ export class Api extends HttpClient @@ -46592,8 +49922,7 @@ export class Api extends HttpClient this.request({ @@ -46611,8 +49940,7 @@ export class Api extends HttpClient this.request({ @@ -46630,8 +49958,7 @@ export class Api extends HttpClient this.request({ @@ -46649,8 +49976,7 @@ export class Api extends HttpClient this.request({ @@ -46667,7 +49993,10 @@ export class Api extends HttpClient + enterpriseAdminGetAllowedActionsEnterprise: ( + { enterprise }: EnterpriseAdminGetAllowedActionsEnterpriseParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/actions/permissions/selected-actions\`, method: "GET", @@ -46683,7 +50012,10 @@ export class Api extends HttpClient + enterpriseAdminGetGithubActionsPermissionsEnterprise: ( + { enterprise }: EnterpriseAdminGetGithubActionsPermissionsEnterpriseParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/actions/permissions\`, method: "GET", @@ -46700,8 +50032,7 @@ export class Api extends HttpClient this.request({ @@ -46720,8 +50051,7 @@ export class Api extends HttpClient this.request({ @@ -46759,7 +50089,10 @@ export class Api extends HttpClient + enterpriseAdminListRunnerApplicationsForEnterprise: ( + { enterprise }: EnterpriseAdminListRunnerApplicationsForEnterpriseParams, + params: RequestParams = {}, + ) => this.request({ path: \`/enterprises/\${enterprise}/actions/runners/downloads\`, method: "GET", @@ -46856,9 +50189,7 @@ export class Api extends HttpClient this.request({ @@ -46876,9 +50207,7 @@ export class Api extends HttpClient this.request({ @@ -46896,7 +50225,7 @@ export class Api extends HttpClient @@ -46917,7 +50246,7 @@ export class Api extends HttpClient @@ -46938,8 +50267,7 @@ export class Api extends HttpClient @@ -46960,7 +50288,7 @@ export class Api extends HttpClient @@ -46981,8 +50309,7 @@ export class Api extends HttpClient @@ -47003,8 +50330,7 @@ export class Api extends HttpClient @@ -47026,7 +50352,7 @@ export class Api extends HttpClient + activityListPublicEvents: ({ ...query }: ActivityListPublicEventsParams, params: RequestParams = {}) => this.request< ActivityListPublicEventsData, | BasicError @@ -47069,7 +50395,7 @@ export class Api extends HttpClient + gistsCheckIsStarred: ({ gistId }: GistsCheckIsStarredParams, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}/star\`, method: "GET", @@ -47102,7 +50428,11 @@ export class Api extends HttpClient + gistsCreateComment: ( + { gistId }: GistsCreateCommentParams, + data: GistsCreateCommentPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/gists/\${gistId}/comments\`, method: "POST", @@ -47120,7 +50450,7 @@ export class Api extends HttpClient + gistsDelete: ({ gistId }: GistsDeleteParams, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}\`, method: "DELETE", @@ -47135,7 +50465,7 @@ export class Api extends HttpClient + gistsDeleteComment: ({ gistId, commentId }: GistsDeleteCommentParams, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}/comments/\${commentId}\`, method: "DELETE", @@ -47150,7 +50480,7 @@ export class Api extends HttpClient + gistsFork: ({ gistId }: GistsForkParams, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}/forks\`, method: "POST", @@ -47166,7 +50496,7 @@ export class Api extends HttpClient + gistsGet: ({ gistId }: GistsGetParams, params: RequestParams = {}) => this.request< GistsGetData, | { @@ -47194,7 +50524,7 @@ export class Api extends HttpClient + gistsGetComment: ({ gistId, commentId }: GistsGetCommentParams, params: RequestParams = {}) => this.request< GistsGetCommentData, | { @@ -47222,7 +50552,7 @@ export class Api extends HttpClient + gistsGetRevision: ({ gistId, sha }: GistsGetRevisionParams, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}/\${sha}\`, method: "GET", @@ -47238,7 +50568,7 @@ export class Api extends HttpClient + gistsList: ({ ...query }: GistsListParams, params: RequestParams = {}) => this.request({ path: \`/gists\`, method: "GET", @@ -47306,7 +50636,7 @@ export class Api extends HttpClient + gistsListPublic: ({ ...query }: GistsListPublicParams, params: RequestParams = {}) => this.request({ path: \`/gists/public\`, method: "GET", @@ -47323,7 +50653,7 @@ export class Api extends HttpClient + gistsListStarred: ({ ...query }: GistsListStarredParams, params: RequestParams = {}) => this.request({ path: \`/gists/starred\`, method: "GET", @@ -47340,7 +50670,7 @@ export class Api extends HttpClient + gistsStar: ({ gistId }: GistsStarParams, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}/star\`, method: "PUT", @@ -47355,7 +50685,7 @@ export class Api extends HttpClient + gistsUnstar: ({ gistId }: GistsUnstarParams, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}/star\`, method: "DELETE", @@ -47370,7 +50700,7 @@ export class Api extends HttpClient + gistsUpdate: ({ gistId }: GistsUpdateParams, data: GistsUpdatePayload, params: RequestParams = {}) => this.request({ path: \`/gists/\${gistId}\`, method: "PATCH", @@ -47389,8 +50719,7 @@ export class Api extends HttpClient @@ -47428,7 +50757,7 @@ export class Api extends HttpClient + gitignoreGetTemplate: ({ name }: GitignoreGetTemplateParams, params: RequestParams = {}) => this.request({ path: \`/gitignore/templates/\${name}\`, method: "GET", @@ -47446,7 +50775,7 @@ export class Api extends HttpClient this.request({ @@ -47481,7 +50810,7 @@ export class Api extends HttpClient + issuesList: ({ ...query }: IssuesListParams, params: RequestParams = {}) => this.request({ path: \`/issues\`, method: "GET", @@ -47499,7 +50828,7 @@ export class Api extends HttpClient + licensesGet: ({ license }: LicensesGetParams, params: RequestParams = {}) => this.request({ path: \`/licenses/\${license}\`, method: "GET", @@ -47515,7 +50844,7 @@ export class Api extends HttpClient + licensesGetAllCommonlyUsed: ({ ...query }: LicensesGetAllCommonlyUsedParams, params: RequestParams = {}) => this.request({ path: \`/licenses\`, method: "GET", @@ -47568,7 +50897,10 @@ export class Api extends HttpClient + appsGetSubscriptionPlanForAccount: ( + { accountId }: AppsGetSubscriptionPlanForAccountParams, + params: RequestParams = {}, + ) => this.request({ path: \`/marketplace_listing/accounts/\${accountId}\`, method: "GET", @@ -47584,7 +50916,10 @@ export class Api extends HttpClient + appsGetSubscriptionPlanForAccountStubbed: ( + { accountId }: AppsGetSubscriptionPlanForAccountStubbedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/marketplace_listing/stubbed/accounts/\${accountId}\`, method: "GET", @@ -47637,7 +50972,7 @@ export class Api extends HttpClient + appsListPlans: ({ ...query }: AppsListPlansParams, params: RequestParams = {}) => this.request({ path: \`/marketplace_listing/plans\`, method: "GET", @@ -47654,7 +50989,7 @@ export class Api extends HttpClient + appsListPlansStubbed: ({ ...query }: AppsListPlansStubbedParams, params: RequestParams = {}) => this.request({ path: \`/marketplace_listing/stubbed/plans\`, method: "GET", @@ -47710,7 +51045,10 @@ export class Api extends HttpClient + activityDeleteThreadSubscription: ( + { threadId }: ActivityDeleteThreadSubscriptionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/notifications/threads/\${threadId}/subscription\`, method: "DELETE", @@ -47725,7 +51063,7 @@ export class Api extends HttpClient + activityGetThread: ({ threadId }: ActivityGetThreadParams, params: RequestParams = {}) => this.request({ path: \`/notifications/threads/\${threadId}\`, method: "GET", @@ -47741,7 +51079,10 @@ export class Api extends HttpClient + activityGetThreadSubscriptionForAuthenticatedUser: ( + { threadId }: ActivityGetThreadSubscriptionForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/notifications/threads/\${threadId}/subscription\`, method: "GET", @@ -47758,7 +51099,7 @@ export class Api extends HttpClient this.request({ @@ -47795,7 +51136,7 @@ export class Api extends HttpClient + activityMarkThreadAsRead: ({ threadId }: ActivityMarkThreadAsReadParams, params: RequestParams = {}) => this.request({ path: \`/notifications/threads/\${threadId}\`, method: "PATCH", @@ -47811,7 +51152,7 @@ export class Api extends HttpClient @@ -47833,7 +51174,7 @@ export class Api extends HttpClient + metaGetOctocat: ({ ...query }: MetaGetOctocatParams, params: RequestParams = {}) => this.request({ path: \`/octocat\`, method: "GET", @@ -47850,7 +51191,7 @@ export class Api extends HttpClient + orgsList: ({ ...query }: OrgsListParams, params: RequestParams = {}) => this.request({ path: \`/organizations\`, method: "GET", @@ -47869,9 +51210,7 @@ export class Api extends HttpClient this.request({ @@ -47889,9 +51228,7 @@ export class Api extends HttpClient this.request({ @@ -47909,9 +51246,7 @@ export class Api extends HttpClient this.request({ @@ -47929,8 +51264,7 @@ export class Api extends HttpClient @@ -47950,7 +51284,10 @@ export class Api extends HttpClient + actionsCreateRegistrationTokenForOrg: ( + { org }: ActionsCreateRegistrationTokenForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/runners/registration-token\`, method: "POST", @@ -47966,7 +51303,7 @@ export class Api extends HttpClient + actionsCreateRemoveTokenForOrg: ({ org }: ActionsCreateRemoveTokenForOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/actions/runners/remove-token\`, method: "POST", @@ -47983,7 +51320,7 @@ export class Api extends HttpClient @@ -48004,7 +51341,7 @@ export class Api extends HttpClient + actionsDeleteOrgSecret: ({ org, secretName }: ActionsDeleteOrgSecretParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/actions/secrets/\${secretName}\`, method: "DELETE", @@ -48019,7 +51356,10 @@ export class Api extends HttpClient + actionsDeleteSelfHostedRunnerFromOrg: ( + { org, runnerId }: ActionsDeleteSelfHostedRunnerFromOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/runners/\${runnerId}\`, method: "DELETE", @@ -48034,7 +51374,10 @@ export class Api extends HttpClient + actionsDeleteSelfHostedRunnerGroupFromOrg: ( + { org, runnerGroupId }: ActionsDeleteSelfHostedRunnerGroupFromOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/runner-groups/\${runnerGroupId}\`, method: "DELETE", @@ -48050,8 +51393,7 @@ export class Api extends HttpClient this.request({ @@ -48069,8 +51411,7 @@ export class Api extends HttpClient this.request({ @@ -48087,7 +51428,10 @@ export class Api extends HttpClient + actionsGetAllowedActionsOrganization: ( + { org }: ActionsGetAllowedActionsOrganizationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/permissions/selected-actions\`, method: "GET", @@ -48103,7 +51447,10 @@ export class Api extends HttpClient + actionsGetGithubActionsPermissionsOrganization: ( + { org }: ActionsGetGithubActionsPermissionsOrganizationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/permissions\`, method: "GET", @@ -48119,7 +51466,7 @@ export class Api extends HttpClient + actionsGetOrgPublicKey: ({ org }: ActionsGetOrgPublicKeyParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/actions/secrets/public-key\`, method: "GET", @@ -48135,7 +51482,7 @@ export class Api extends HttpClient + actionsGetOrgSecret: ({ org, secretName }: ActionsGetOrgSecretParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/actions/secrets/\${secretName}\`, method: "GET", @@ -48151,7 +51498,10 @@ export class Api extends HttpClient + actionsGetSelfHostedRunnerForOrg: ( + { org, runnerId }: ActionsGetSelfHostedRunnerForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/runners/\${runnerId}\`, method: "GET", @@ -48167,7 +51517,10 @@ export class Api extends HttpClient + actionsGetSelfHostedRunnerGroupForOrg: ( + { org, runnerGroupId }: ActionsGetSelfHostedRunnerGroupForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/runner-groups/\${runnerGroupId}\`, method: "GET", @@ -48201,8 +51554,7 @@ export class Api extends HttpClient this.request({ @@ -48220,7 +51572,10 @@ export class Api extends HttpClient + actionsListRunnerApplicationsForOrg: ( + { org }: ActionsListRunnerApplicationsForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/runners/downloads\`, method: "GET", @@ -48236,7 +51591,10 @@ export class Api extends HttpClient + actionsListSelectedReposForOrgSecret: ( + { org, secretName }: ActionsListSelectedReposForOrgSecretParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/secrets/\${secretName}/repositories\`, method: "GET", @@ -48333,9 +51691,7 @@ export class Api extends HttpClient this.request({ @@ -48353,9 +51709,7 @@ export class Api extends HttpClient this.request({ @@ -48373,9 +51727,7 @@ export class Api extends HttpClient this.request({ @@ -48392,7 +51744,11 @@ export class Api extends HttpClient + actionsSetAllowedActionsOrganization: ( + { org }: ActionsSetAllowedActionsOrganizationParams, + data: SelectedActions, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/actions/permissions/selected-actions\`, method: "PUT", @@ -48410,7 +51766,7 @@ export class Api extends HttpClient @@ -48431,8 +51787,7 @@ export class Api extends HttpClient @@ -48453,8 +51808,7 @@ export class Api extends HttpClient @@ -48475,7 +51829,7 @@ export class Api extends HttpClient @@ -48496,8 +51850,7 @@ export class Api extends HttpClient @@ -48518,8 +51871,7 @@ export class Api extends HttpClient @@ -48557,7 +51909,7 @@ export class Api extends HttpClient + appsGetOrgInstallation: ({ org }: AppsGetOrgInstallationParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/installation\`, method: "GET", @@ -48573,7 +51925,7 @@ export class Api extends HttpClient + billingGetGithubActionsBillingOrg: ({ org }: BillingGetGithubActionsBillingOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/settings/billing/actions\`, method: "GET", @@ -48589,7 +51941,10 @@ export class Api extends HttpClient + billingGetGithubPackagesBillingOrg: ( + { org }: BillingGetGithubPackagesBillingOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/settings/billing/packages\`, method: "GET", @@ -48605,7 +51960,7 @@ export class Api extends HttpClient + billingGetSharedStorageBillingOrg: ({ org }: BillingGetSharedStorageBillingOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/settings/billing/shared-storage\`, method: "GET", @@ -48621,7 +51976,7 @@ export class Api extends HttpClient + interactionsGetRestrictionsForOrg: ({ org }: InteractionsGetRestrictionsForOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/interaction-limits\`, method: "GET", @@ -48637,7 +51992,10 @@ export class Api extends HttpClient + interactionsRemoveRestrictionsForOrg: ( + { org }: InteractionsRemoveRestrictionsForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/interaction-limits\`, method: "DELETE", @@ -48652,7 +52010,11 @@ export class Api extends HttpClient + interactionsSetRestrictionsForOrg: ( + { org }: InteractionsSetRestrictionsForOrgParams, + data: InteractionLimit, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/interaction-limits\`, method: "PUT", @@ -48687,7 +52049,10 @@ export class Api extends HttpClient + migrationsDeleteArchiveForOrg: ( + { org, migrationId }: MigrationsDeleteArchiveForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/migrations/\${migrationId}/archive\`, method: "DELETE", @@ -48702,7 +52067,10 @@ export class Api extends HttpClient + migrationsDownloadArchiveForOrg: ( + { org, migrationId }: MigrationsDownloadArchiveForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/migrations/\${migrationId}/archive\`, method: "GET", @@ -48717,7 +52085,7 @@ export class Api extends HttpClient + migrationsGetStatusForOrg: ({ org, migrationId }: MigrationsGetStatusForOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/migrations/\${migrationId}\`, method: "GET", @@ -48770,7 +52138,11 @@ export class Api extends HttpClient + migrationsStartForOrg: ( + { org }: MigrationsStartForOrgParams, + data: MigrationsStartForOrgPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/migrations\`, method: "POST", @@ -48788,7 +52160,10 @@ export class Api extends HttpClient + migrationsUnlockRepoForOrg: ( + { org, migrationId, repoName }: MigrationsUnlockRepoForOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/migrations/\${migrationId}/repos/\${repoName}/lock\`, method: "DELETE", @@ -48803,7 +52178,7 @@ export class Api extends HttpClient + orgsBlockUser: ({ org, username }: OrgsBlockUserParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/blocks/\${username}\`, method: "PUT", @@ -48818,7 +52193,7 @@ export class Api extends HttpClient + orgsCancelInvitation: ({ org, invitationId }: OrgsCancelInvitationParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/invitations/\${invitationId}\`, method: "DELETE", @@ -48833,7 +52208,7 @@ export class Api extends HttpClient + orgsCheckBlockedUser: ({ org, username }: OrgsCheckBlockedUserParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/blocks/\${username}\`, method: "GET", @@ -48848,7 +52223,7 @@ export class Api extends HttpClient + orgsCheckMembershipForUser: ({ org, username }: OrgsCheckMembershipForUserParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/members/\${username}\`, method: "GET", @@ -48863,7 +52238,10 @@ export class Api extends HttpClient + orgsCheckPublicMembershipForUser: ( + { org, username }: OrgsCheckPublicMembershipForUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/public_members/\${username}\`, method: "GET", @@ -48878,7 +52256,10 @@ export class Api extends HttpClient + orgsConvertMemberToOutsideCollaborator: ( + { org, username }: OrgsConvertMemberToOutsideCollaboratorParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/outside_collaborators/\${username}\`, method: "PUT", @@ -48893,7 +52274,11 @@ export class Api extends HttpClient + orgsCreateInvitation: ( + { org }: OrgsCreateInvitationParams, + data: OrgsCreateInvitationPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/invitations\`, method: "POST", @@ -48911,7 +52296,7 @@ export class Api extends HttpClient + orgsCreateWebhook: ({ org }: OrgsCreateWebhookParams, data: OrgsCreateWebhookPayload, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/hooks\`, method: "POST", @@ -48929,7 +52314,7 @@ export class Api extends HttpClient + orgsDeleteWebhook: ({ org, hookId }: OrgsDeleteWebhookParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/hooks/\${hookId}\`, method: "DELETE", @@ -48944,7 +52329,7 @@ export class Api extends HttpClient + orgsGet: ({ org }: OrgsGetParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}\`, method: "GET", @@ -48977,7 +52362,7 @@ export class Api extends HttpClient + orgsGetMembershipForUser: ({ org, username }: OrgsGetMembershipForUserParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/memberships/\${username}\`, method: "GET", @@ -48993,7 +52378,7 @@ export class Api extends HttpClient + orgsGetWebhook: ({ org, hookId }: OrgsGetWebhookParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/hooks/\${hookId}\`, method: "GET", @@ -49009,7 +52394,7 @@ export class Api extends HttpClient + orgsGetWebhookConfigForOrg: ({ org, hookId }: OrgsGetWebhookConfigForOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/hooks/\${hookId}/config\`, method: "GET", @@ -49042,7 +52427,7 @@ export class Api extends HttpClient + orgsListBlockedUsers: ({ org }: OrgsListBlockedUsersParams, params: RequestParams = {}) => this.request< OrgsListBlockedUsersData, { @@ -49169,7 +52554,7 @@ export class Api extends HttpClient + orgsListSamlSsoAuthorizations: ({ org }: OrgsListSamlSsoAuthorizationsParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/credential-authorizations\`, method: "GET", @@ -49202,7 +52587,7 @@ export class Api extends HttpClient + orgsPingWebhook: ({ org, hookId }: OrgsPingWebhookParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/hooks/\${hookId}/pings\`, method: "POST", @@ -49217,7 +52602,7 @@ export class Api extends HttpClient + orgsRemoveMember: ({ org, username }: OrgsRemoveMemberParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/members/\${username}\`, method: "DELETE", @@ -49232,7 +52617,7 @@ export class Api extends HttpClient + orgsRemoveMembershipForUser: ({ org, username }: OrgsRemoveMembershipForUserParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/memberships/\${username}\`, method: "DELETE", @@ -49247,7 +52632,10 @@ export class Api extends HttpClient + orgsRemoveOutsideCollaborator: ( + { org, username }: OrgsRemoveOutsideCollaboratorParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/outside_collaborators/\${username}\`, method: "DELETE", @@ -49262,7 +52650,10 @@ export class Api extends HttpClient + orgsRemovePublicMembershipForAuthenticatedUser: ( + { org, username }: OrgsRemovePublicMembershipForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/public_members/\${username}\`, method: "DELETE", @@ -49277,7 +52668,10 @@ export class Api extends HttpClient + orgsRemoveSamlSsoAuthorization: ( + { org, credentialId }: OrgsRemoveSamlSsoAuthorizationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/credential-authorizations/\${credentialId}\`, method: "DELETE", @@ -49293,8 +52687,7 @@ export class Api extends HttpClient @@ -49315,7 +52708,10 @@ export class Api extends HttpClient + orgsSetPublicMembershipForAuthenticatedUser: ( + { org, username }: OrgsSetPublicMembershipForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/public_members/\${username}\`, method: "PUT", @@ -49330,7 +52726,7 @@ export class Api extends HttpClient + orgsUnblockUser: ({ org, username }: OrgsUnblockUserParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/blocks/\${username}\`, method: "DELETE", @@ -49345,7 +52741,7 @@ export class Api extends HttpClient + orgsUpdate: ({ org }: OrgsUpdateParams, data: OrgsUpdatePayload, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}\`, method: "PATCH", @@ -49363,7 +52759,11 @@ export class Api extends HttpClient + orgsUpdateWebhook: ( + { org, hookId }: OrgsUpdateWebhookParams, + data: OrgsUpdateWebhookPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/hooks/\${hookId}\`, method: "PATCH", @@ -49382,8 +52782,7 @@ export class Api extends HttpClient @@ -49404,7 +52803,11 @@ export class Api extends HttpClient + projectsCreateForOrg: ( + { org }: ProjectsCreateForOrgParams, + data: ProjectsCreateForOrgPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/projects\`, method: "POST", @@ -49440,10 +52843,7 @@ export class Api extends HttpClient @@ -49465,9 +52865,7 @@ export class Api extends HttpClient @@ -49489,10 +52887,7 @@ export class Api extends HttpClient this.request({ @@ -49510,11 +52905,7 @@ export class Api extends HttpClient this.request({ @@ -49571,7 +52962,7 @@ export class Api extends HttpClient + reposCreateInOrg: ({ org }: ReposCreateInOrgParams, data: ReposCreateInOrgPayload, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/repos\`, method: "POST", @@ -49607,9 +52998,7 @@ export class Api extends HttpClient @@ -49631,9 +53020,7 @@ export class Api extends HttpClient @@ -49654,10 +53041,7 @@ export class Api extends HttpClient @@ -49678,9 +53062,7 @@ export class Api extends HttpClient this.request({ @@ -49699,10 +53081,7 @@ export class Api extends HttpClient this.request({ @@ -49720,7 +53099,7 @@ export class Api extends HttpClient + teamsCreate: ({ org }: TeamsCreateParams, data: TeamsCreatePayload, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/teams\`, method: "POST", @@ -49739,9 +53118,7 @@ export class Api extends HttpClient @@ -49763,8 +53140,7 @@ export class Api extends HttpClient @@ -49786,8 +53162,7 @@ export class Api extends HttpClient @@ -49809,10 +53184,7 @@ export class Api extends HttpClient this.request({ @@ -49829,7 +53201,10 @@ export class Api extends HttpClient + teamsDeleteDiscussionInOrg: ( + { org, teamSlug, discussionNumber }: TeamsDeleteDiscussionInOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}/discussions/\${discussionNumber}\`, method: "DELETE", @@ -49844,7 +53219,7 @@ export class Api extends HttpClient + teamsDeleteInOrg: ({ org, teamSlug }: TeamsDeleteInOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}\`, method: "DELETE", @@ -49859,7 +53234,7 @@ export class Api extends HttpClient + teamsGetByName: ({ org, teamSlug }: TeamsGetByNameParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}\`, method: "GET", @@ -49876,10 +53251,7 @@ export class Api extends HttpClient this.request({ @@ -49897,7 +53269,10 @@ export class Api extends HttpClient + teamsGetDiscussionInOrg: ( + { org, teamSlug, discussionNumber }: TeamsGetDiscussionInOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}/discussions/\${discussionNumber}\`, method: "GET", @@ -49913,7 +53288,10 @@ export class Api extends HttpClient + teamsGetMembershipForUserInOrg: ( + { org, teamSlug, username }: TeamsGetMembershipForUserInOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}/memberships/\${username}\`, method: "GET", @@ -50020,7 +53398,7 @@ export class Api extends HttpClient + teamsListIdpGroupsInOrg: ({ org, teamSlug }: TeamsListIdpGroupsInOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}/team-sync/group-mappings\`, method: "GET", @@ -50107,7 +53485,10 @@ export class Api extends HttpClient + teamsRemoveMembershipForUserInOrg: ( + { org, teamSlug, username }: TeamsRemoveMembershipForUserInOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}/memberships/\${username}\`, method: "DELETE", @@ -50122,7 +53503,10 @@ export class Api extends HttpClient + teamsRemoveProjectInOrg: ( + { org, teamSlug, projectId }: TeamsRemoveProjectInOrgParams, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}/projects/\${projectId}\`, method: "DELETE", @@ -50137,7 +53521,7 @@ export class Api extends HttpClient + teamsRemoveRepoInOrg: ({ org, teamSlug, owner, repo }: TeamsRemoveRepoInOrgParams, params: RequestParams = {}) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}/repos/\${owner}/\${repo}\`, method: "DELETE", @@ -50153,10 +53537,7 @@ export class Api extends HttpClient @@ -50178,9 +53559,7 @@ export class Api extends HttpClient @@ -50201,7 +53580,11 @@ export class Api extends HttpClient + teamsUpdateInOrg: ( + { org, teamSlug }: TeamsUpdateInOrgParams, + data: TeamsUpdateInOrgPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/orgs/\${org}/teams/\${teamSlug}\`, method: "PATCH", @@ -50221,8 +53604,7 @@ export class Api extends HttpClient @@ -50250,7 +53632,11 @@ export class Api extends HttpClient + projectsCreateCard: ( + { columnId }: ProjectsCreateCardParams, + data: ProjectsCreateCardPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/projects/columns/\${columnId}/cards\`, method: "POST", @@ -50268,7 +53654,11 @@ export class Api extends HttpClient + projectsCreateColumn: ( + { projectId }: ProjectsCreateColumnParams, + data: ProjectsCreateColumnPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/projects/\${projectId}/columns\`, method: "POST", @@ -50286,7 +53676,7 @@ export class Api extends HttpClient + projectsDelete: ({ projectId }: ProjectsDeleteParams, params: RequestParams = {}) => this.request({ path: \`/projects/\${projectId}\`, method: "DELETE", @@ -50301,7 +53691,7 @@ export class Api extends HttpClient + projectsDeleteCard: ({ cardId }: ProjectsDeleteCardParams, params: RequestParams = {}) => this.request({ path: \`/projects/columns/cards/\${cardId}\`, method: "DELETE", @@ -50316,7 +53706,7 @@ export class Api extends HttpClient + projectsDeleteColumn: ({ columnId }: ProjectsDeleteColumnParams, params: RequestParams = {}) => this.request({ path: \`/projects/columns/\${columnId}\`, method: "DELETE", @@ -50331,7 +53721,7 @@ export class Api extends HttpClient + projectsGet: ({ projectId }: ProjectsGetParams, params: RequestParams = {}) => this.request({ path: \`/projects/\${projectId}\`, method: "GET", @@ -50347,7 +53737,7 @@ export class Api extends HttpClient + projectsGetCard: ({ cardId }: ProjectsGetCardParams, params: RequestParams = {}) => this.request({ path: \`/projects/columns/cards/\${cardId}\`, method: "GET", @@ -50363,7 +53753,7 @@ export class Api extends HttpClient + projectsGetColumn: ({ columnId }: ProjectsGetColumnParams, params: RequestParams = {}) => this.request({ path: \`/projects/columns/\${columnId}\`, method: "GET", @@ -50379,7 +53769,10 @@ export class Api extends HttpClient + projectsGetPermissionForUser: ( + { projectId, username }: ProjectsGetPermissionForUserParams, + params: RequestParams = {}, + ) => this.request< ProjectsGetPermissionForUserData, | BasicError @@ -50462,7 +53855,7 @@ export class Api extends HttpClient + projectsMoveCard: ({ cardId }: ProjectsMoveCardParams, data: ProjectsMoveCardPayload, params: RequestParams = {}) => this.request({ path: \`/projects/columns/cards/\${cardId}/moves\`, method: "POST", @@ -50480,7 +53873,11 @@ export class Api extends HttpClient + projectsMoveColumn: ( + { columnId }: ProjectsMoveColumnParams, + data: ProjectsMoveColumnPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/projects/columns/\${columnId}/moves\`, method: "POST", @@ -50498,7 +53895,10 @@ export class Api extends HttpClient + projectsRemoveCollaborator: ( + { projectId, username }: ProjectsRemoveCollaboratorParams, + params: RequestParams = {}, + ) => this.request< ProjectsRemoveCollaboratorData, | BasicError @@ -50521,7 +53921,7 @@ export class Api extends HttpClient + projectsUpdate: ({ projectId }: ProjectsUpdateParams, data: ProjectsUpdatePayload, params: RequestParams = {}) => this.request({ path: \`/projects/\${projectId}\`, method: "PATCH", @@ -50539,7 +53939,11 @@ export class Api extends HttpClient + projectsUpdateCard: ( + { cardId }: ProjectsUpdateCardParams, + data: ProjectsUpdateCardPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/projects/columns/cards/\${cardId}\`, method: "PATCH", @@ -50557,7 +53961,11 @@ export class Api extends HttpClient + projectsUpdateColumn: ( + { columnId }: ProjectsUpdateColumnParams, + data: ProjectsUpdateColumnPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/projects/columns/\${columnId}\`, method: "PATCH", @@ -50594,7 +54002,7 @@ export class Api extends HttpClient + reactionsDeleteLegacy: ({ reactionId }: ReactionsDeleteLegacyParams, params: RequestParams = {}) => this.request< ReactionsDeleteLegacyData, | BasicError @@ -50617,7 +54025,7 @@ export class Api extends HttpClient + actionsCancelWorkflowRun: ({ owner, repo, runId }: ActionsCancelWorkflowRunParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runs/\${runId}/cancel\`, method: "POST", @@ -50633,9 +54041,7 @@ export class Api extends HttpClient @@ -50655,7 +54061,10 @@ export class Api extends HttpClient + actionsCreateRegistrationTokenForRepo: ( + { owner, repo }: ActionsCreateRegistrationTokenForRepoParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runners/registration-token\`, method: "POST", @@ -50671,7 +54080,10 @@ export class Api extends HttpClient + actionsCreateRemoveTokenForRepo: ( + { owner, repo }: ActionsCreateRemoveTokenForRepoParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runners/remove-token\`, method: "POST", @@ -50688,9 +54100,7 @@ export class Api extends HttpClient @@ -50710,7 +54120,7 @@ export class Api extends HttpClient + actionsDeleteArtifact: ({ owner, repo, artifactId }: ActionsDeleteArtifactParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/artifacts/\${artifactId}\`, method: "DELETE", @@ -50725,7 +54135,7 @@ export class Api extends HttpClient + actionsDeleteRepoSecret: ({ owner, repo, secretName }: ActionsDeleteRepoSecretParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/secrets/\${secretName}\`, method: "DELETE", @@ -50741,9 +54151,7 @@ export class Api extends HttpClient this.request({ @@ -50760,7 +54168,7 @@ export class Api extends HttpClient + actionsDeleteWorkflowRun: ({ owner, repo, runId }: ActionsDeleteWorkflowRunParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runs/\${runId}\`, method: "DELETE", @@ -50775,7 +54183,10 @@ export class Api extends HttpClient + actionsDeleteWorkflowRunLogs: ( + { owner, repo, runId }: ActionsDeleteWorkflowRunLogsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runs/\${runId}/logs\`, method: "DELETE", @@ -50790,7 +54201,7 @@ export class Api extends HttpClient + actionsDisableWorkflow: ({ owner, repo, workflowId }: ActionsDisableWorkflowParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/workflows/\${workflowId}/disable\`, method: "PUT", @@ -50806,10 +54217,7 @@ export class Api extends HttpClient this.request({ @@ -50826,7 +54234,10 @@ export class Api extends HttpClient + actionsDownloadJobLogsForWorkflowRun: ( + { owner, repo, jobId }: ActionsDownloadJobLogsForWorkflowRunParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/jobs/\${jobId}/logs\`, method: "GET", @@ -50841,7 +54252,10 @@ export class Api extends HttpClient + actionsDownloadWorkflowRunLogs: ( + { owner, repo, runId }: ActionsDownloadWorkflowRunLogsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runs/\${runId}/logs\`, method: "GET", @@ -50856,7 +54270,7 @@ export class Api extends HttpClient + actionsEnableWorkflow: ({ owner, repo, workflowId }: ActionsEnableWorkflowParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/workflows/\${workflowId}/enable\`, method: "PUT", @@ -50871,7 +54285,10 @@ export class Api extends HttpClient + actionsGetAllowedActionsRepository: ( + { owner, repo }: ActionsGetAllowedActionsRepositoryParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/permissions/selected-actions\`, method: "GET", @@ -50887,7 +54304,7 @@ export class Api extends HttpClient + actionsGetArtifact: ({ owner, repo, artifactId }: ActionsGetArtifactParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/artifacts/\${artifactId}\`, method: "GET", @@ -50903,7 +54320,10 @@ export class Api extends HttpClient + actionsGetGithubActionsPermissionsRepository: ( + { owner, repo }: ActionsGetGithubActionsPermissionsRepositoryParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/permissions\`, method: "GET", @@ -50919,7 +54339,10 @@ export class Api extends HttpClient + actionsGetJobForWorkflowRun: ( + { owner, repo, jobId }: ActionsGetJobForWorkflowRunParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/jobs/\${jobId}\`, method: "GET", @@ -50935,7 +54358,7 @@ export class Api extends HttpClient + actionsGetRepoPublicKey: ({ owner, repo }: ActionsGetRepoPublicKeyParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/secrets/public-key\`, method: "GET", @@ -50951,7 +54374,7 @@ export class Api extends HttpClient + actionsGetRepoSecret: ({ owner, repo, secretName }: ActionsGetRepoSecretParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/secrets/\${secretName}\`, method: "GET", @@ -50967,7 +54390,10 @@ export class Api extends HttpClient + actionsGetSelfHostedRunnerForRepo: ( + { owner, repo, runnerId }: ActionsGetSelfHostedRunnerForRepoParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runners/\${runnerId}\`, method: "GET", @@ -50983,7 +54409,7 @@ export class Api extends HttpClient + actionsGetWorkflow: ({ owner, repo, workflowId }: ActionsGetWorkflowParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/workflows/\${workflowId}\`, method: "GET", @@ -50999,7 +54425,7 @@ export class Api extends HttpClient + actionsGetWorkflowRun: ({ owner, repo, runId }: ActionsGetWorkflowRunParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runs/\${runId}\`, method: "GET", @@ -51015,7 +54441,10 @@ export class Api extends HttpClient + actionsGetWorkflowRunUsage: ( + { owner, repo, runId }: ActionsGetWorkflowRunUsageParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runs/\${runId}/timing\`, method: "GET", @@ -51031,7 +54460,7 @@ export class Api extends HttpClient + actionsGetWorkflowUsage: ({ owner, repo, workflowId }: ActionsGetWorkflowUsageParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/workflows/\${workflowId}/timing\`, method: "GET", @@ -51121,7 +54550,10 @@ export class Api extends HttpClient + actionsListRunnerApplicationsForRepo: ( + { owner, repo }: ActionsListRunnerApplicationsForRepoParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runners/downloads\`, method: "GET", @@ -51217,7 +54649,7 @@ export class Api extends HttpClient + actionsReRunWorkflow: ({ owner, repo, runId }: ActionsReRunWorkflowParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/actions/runs/\${runId}/rerun\`, method: "POST", @@ -51233,8 +54665,7 @@ export class Api extends HttpClient @@ -51255,8 +54686,7 @@ export class Api extends HttpClient @@ -51276,7 +54706,10 @@ export class Api extends HttpClient + activityDeleteRepoSubscription: ( + { owner, repo }: ActivityDeleteRepoSubscriptionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/subscription\`, method: "DELETE", @@ -51291,7 +54724,7 @@ export class Api extends HttpClient + activityGetRepoSubscription: ({ owner, repo }: ActivityGetRepoSubscriptionParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/subscription\`, method: "GET", @@ -51385,8 +54818,7 @@ export class Api extends HttpClient @@ -51407,8 +54839,7 @@ export class Api extends HttpClient @@ -51429,7 +54860,7 @@ export class Api extends HttpClient + appsGetRepoInstallation: ({ owner, repo }: AppsGetRepoInstallationParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/installation\`, method: "GET", @@ -51445,7 +54876,7 @@ export class Api extends HttpClient + checksCreate: ({ owner, repo }: ChecksCreateParams, data: ChecksCreatePayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/check-runs\`, method: "POST", @@ -51463,7 +54894,11 @@ export class Api extends HttpClient + checksCreateSuite: ( + { owner, repo }: ChecksCreateSuiteParams, + data: ChecksCreateSuitePayload, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/check-suites\`, method: "POST", @@ -51481,7 +54916,7 @@ export class Api extends HttpClient + checksGet: ({ owner, repo, checkRunId }: ChecksGetParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/check-runs/\${checkRunId}\`, method: "GET", @@ -51497,7 +54932,7 @@ export class Api extends HttpClient + checksGetSuite: ({ owner, repo, checkSuiteId }: ChecksGetSuiteParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/check-suites/\${checkSuiteId}\`, method: "GET", @@ -51590,7 +55025,7 @@ export class Api extends HttpClient + checksRerequestSuite: ({ owner, repo, checkSuiteId }: ChecksRerequestSuiteParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/check-suites/\${checkSuiteId}/rerequest\`, method: "POST", @@ -51606,8 +55041,7 @@ export class Api extends HttpClient @@ -51629,9 +55063,7 @@ export class Api extends HttpClient @@ -51652,7 +55084,7 @@ export class Api extends HttpClient + codeScanningGetAlert: ({ owner, repo, alertNumber }: CodeScanningGetAlertParams, params: RequestParams = {}) => this.request< CodeScanningGetAlertData, | void @@ -51725,9 +55157,7 @@ export class Api extends HttpClient @@ -51749,8 +55179,7 @@ export class Api extends HttpClient @@ -51770,7 +55199,7 @@ export class Api extends HttpClient + codesOfConductGetForRepo: ({ owner, repo }: CodesOfConductGetForRepoParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/community/code_of_conduct\`, method: "GET", @@ -51786,7 +55215,7 @@ export class Api extends HttpClient + gitCreateBlob: ({ owner, repo }: GitCreateBlobParams, data: GitCreateBlobPayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/blobs\`, method: "POST", @@ -51804,7 +55233,11 @@ export class Api extends HttpClient + gitCreateCommit: ( + { owner, repo }: GitCreateCommitParams, + data: GitCreateCommitPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/git/commits\`, method: "POST", @@ -51822,7 +55255,7 @@ export class Api extends HttpClient + gitCreateRef: ({ owner, repo }: GitCreateRefParams, data: GitCreateRefPayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/refs\`, method: "POST", @@ -51840,7 +55273,7 @@ export class Api extends HttpClient + gitCreateTag: ({ owner, repo }: GitCreateTagParams, data: GitCreateTagPayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/tags\`, method: "POST", @@ -51858,7 +55291,7 @@ export class Api extends HttpClient + gitCreateTree: ({ owner, repo }: GitCreateTreeParams, data: GitCreateTreePayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/trees\`, method: "POST", @@ -51876,7 +55309,7 @@ export class Api extends HttpClient + gitDeleteRef: ({ owner, repo, ref }: GitDeleteRefParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, method: "DELETE", @@ -51891,7 +55324,7 @@ export class Api extends HttpClient + gitGetBlob: ({ owner, repo, fileSha }: GitGetBlobParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/blobs/\${fileSha}\`, method: "GET", @@ -51907,7 +55340,7 @@ export class Api extends HttpClient + gitGetCommit: ({ owner, repo, commitSha }: GitGetCommitParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/commits/\${commitSha}\`, method: "GET", @@ -51923,7 +55356,7 @@ export class Api extends HttpClient + gitGetRef: ({ owner, repo, ref }: GitGetRefParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/ref/\${ref}\`, method: "GET", @@ -51939,7 +55372,7 @@ export class Api extends HttpClient + gitGetTag: ({ owner, repo, tagSha }: GitGetTagParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/tags/\${tagSha}\`, method: "GET", @@ -51989,7 +55422,7 @@ export class Api extends HttpClient + gitUpdateRef: ({ owner, repo, ref }: GitUpdateRefParams, data: GitUpdateRefPayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, method: "PATCH", @@ -52007,7 +55440,10 @@ export class Api extends HttpClient + interactionsGetRestrictionsForRepo: ( + { owner, repo }: InteractionsGetRestrictionsForRepoParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/interaction-limits\`, method: "GET", @@ -52023,7 +55459,10 @@ export class Api extends HttpClient + interactionsRemoveRestrictionsForRepo: ( + { owner, repo }: InteractionsRemoveRestrictionsForRepoParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/interaction-limits\`, method: "DELETE", @@ -52039,8 +55478,7 @@ export class Api extends HttpClient @@ -52062,9 +55500,7 @@ export class Api extends HttpClient @@ -52086,9 +55522,7 @@ export class Api extends HttpClient @@ -52109,7 +55543,10 @@ export class Api extends HttpClient + issuesCheckUserCanBeAssigned: ( + { owner, repo, assignee }: IssuesCheckUserCanBeAssignedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/assignees/\${assignee}\`, method: "GET", @@ -52124,7 +55561,7 @@ export class Api extends HttpClient + issuesCreate: ({ owner, repo }: IssuesCreateParams, data: IssuesCreatePayload, params: RequestParams = {}) => this.request< IssuesCreateData, | BasicError @@ -52152,9 +55589,7 @@ export class Api extends HttpClient @@ -52175,7 +55610,11 @@ export class Api extends HttpClient + issuesCreateLabel: ( + { owner, repo }: IssuesCreateLabelParams, + data: IssuesCreateLabelPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/labels\`, method: "POST", @@ -52194,8 +55633,7 @@ export class Api extends HttpClient @@ -52216,7 +55654,7 @@ export class Api extends HttpClient + issuesDeleteComment: ({ owner, repo, commentId }: IssuesDeleteCommentParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, method: "DELETE", @@ -52231,7 +55669,7 @@ export class Api extends HttpClient + issuesDeleteLabel: ({ owner, repo, name }: IssuesDeleteLabelParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, method: "DELETE", @@ -52246,7 +55684,10 @@ export class Api extends HttpClient + issuesDeleteMilestone: ( + { owner, repo, milestoneNumber }: IssuesDeleteMilestoneParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/milestones/\${milestoneNumber}\`, method: "DELETE", @@ -52261,7 +55702,7 @@ export class Api extends HttpClient + issuesGet: ({ owner, repo, issueNumber }: IssuesGetParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/\${issueNumber}\`, method: "GET", @@ -52277,7 +55718,7 @@ export class Api extends HttpClient + issuesGetComment: ({ owner, repo, commentId }: IssuesGetCommentParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, method: "GET", @@ -52293,7 +55734,7 @@ export class Api extends HttpClient + issuesGetEvent: ({ owner, repo, eventId }: IssuesGetEventParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/events/\${eventId}\`, method: "GET", @@ -52309,7 +55750,7 @@ export class Api extends HttpClient + issuesGetLabel: ({ owner, repo, name }: IssuesGetLabelParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, method: "GET", @@ -52325,7 +55766,7 @@ export class Api extends HttpClient + issuesGetMilestone: ({ owner, repo, milestoneNumber }: IssuesGetMilestoneParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/milestones/\${milestoneNumber}\`, method: "GET", @@ -52550,13 +55991,7 @@ export class Api extends HttpClient + issuesLock: ({ owner, repo, issueNumber }: IssuesLockParams, data: IssuesLockPayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/\${issueNumber}/lock\`, method: "PUT", @@ -52573,7 +56008,7 @@ export class Api extends HttpClient + issuesRemoveAllLabels: ({ owner, repo, issueNumber }: IssuesRemoveAllLabelsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/\${issueNumber}/labels\`, method: "DELETE", @@ -52589,9 +56024,7 @@ export class Api extends HttpClient @@ -52612,7 +56045,7 @@ export class Api extends HttpClient + issuesRemoveLabel: ({ owner, repo, issueNumber, name }: IssuesRemoveLabelParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/\${issueNumber}/labels/\${name}\`, method: "DELETE", @@ -52629,9 +56062,7 @@ export class Api extends HttpClient @@ -52652,7 +56083,7 @@ export class Api extends HttpClient + issuesUnlock: ({ owner, repo, issueNumber }: IssuesUnlockParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/issues/\${issueNumber}/lock\`, method: "DELETE", @@ -52668,9 +56099,7 @@ export class Api extends HttpClient @@ -52701,9 +56130,7 @@ export class Api extends HttpClient @@ -52725,9 +56152,7 @@ export class Api extends HttpClient @@ -52749,9 +56174,7 @@ export class Api extends HttpClient @@ -52772,7 +56195,7 @@ export class Api extends HttpClient + licensesGetForRepo: ({ owner, repo }: LicensesGetForRepoParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/license\`, method: "GET", @@ -52788,7 +56211,7 @@ export class Api extends HttpClient + migrationsCancelImport: ({ owner, repo }: MigrationsCancelImportParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/import\`, method: "DELETE", @@ -52823,7 +56246,7 @@ export class Api extends HttpClient + migrationsGetImportStatus: ({ owner, repo }: MigrationsGetImportStatusParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/import\`, method: "GET", @@ -52839,7 +56262,7 @@ export class Api extends HttpClient + migrationsGetLargeFiles: ({ owner, repo }: MigrationsGetLargeFilesParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/import/large_files\`, method: "GET", @@ -52856,9 +56279,7 @@ export class Api extends HttpClient @@ -52880,8 +56301,7 @@ export class Api extends HttpClient @@ -52903,8 +56323,7 @@ export class Api extends HttpClient @@ -52926,8 +56345,7 @@ export class Api extends HttpClient @@ -52949,8 +56367,7 @@ export class Api extends HttpClient @@ -52988,7 +56405,7 @@ export class Api extends HttpClient + pullsCheckIfMerged: ({ owner, repo, pullNumber }: PullsCheckIfMergedParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pulls/\${pullNumber}/merge\`, method: "GET", @@ -53003,7 +56420,7 @@ export class Api extends HttpClient + pullsCreate: ({ owner, repo }: PullsCreateParams, data: PullsCreatePayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pulls\`, method: "POST", @@ -53022,10 +56439,7 @@ export class Api extends HttpClient @@ -53047,9 +56461,7 @@ export class Api extends HttpClient @@ -53071,9 +56483,7 @@ export class Api extends HttpClient @@ -53095,10 +56505,7 @@ export class Api extends HttpClient this.request({ @@ -53116,7 +56523,10 @@ export class Api extends HttpClient + pullsDeleteReviewComment: ( + { owner, repo, commentId }: PullsDeleteReviewCommentParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, method: "DELETE", @@ -53132,10 +56542,7 @@ export class Api extends HttpClient @@ -53156,7 +56563,7 @@ export class Api extends HttpClient + pullsGet: ({ owner, repo, pullNumber }: PullsGetParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pulls/\${pullNumber}\`, method: "GET", @@ -53172,7 +56579,7 @@ export class Api extends HttpClient + pullsGetReview: ({ owner, repo, pullNumber, reviewId }: PullsGetReviewParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pulls/\${pullNumber}/reviews/\${reviewId}\`, method: "GET", @@ -53188,7 +56595,7 @@ export class Api extends HttpClient + pullsGetReviewComment: ({ owner, repo, commentId }: PullsGetReviewCommentParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, method: "GET", @@ -53352,13 +56759,7 @@ export class Api extends HttpClient + pullsMerge: ({ owner, repo, pullNumber }: PullsMergeParams, data: PullsMergePayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pulls/\${pullNumber}/merge\`, method: "PUT", @@ -53377,9 +56778,7 @@ export class Api extends HttpClient @@ -53400,9 +56799,7 @@ export class Api extends HttpClient @@ -53424,10 +56821,7 @@ export class Api extends HttpClient @@ -53449,9 +56843,7 @@ export class Api extends HttpClient @@ -53473,9 +56865,7 @@ export class Api extends HttpClient @@ -53505,10 +56895,7 @@ export class Api extends HttpClient @@ -53530,9 +56917,7 @@ export class Api extends HttpClient @@ -53554,9 +56939,7 @@ export class Api extends HttpClient @@ -53585,9 +56968,7 @@ export class Api extends HttpClient @@ -53616,9 +56997,7 @@ export class Api extends HttpClient @@ -53647,9 +57026,7 @@ export class Api extends HttpClient @@ -53678,10 +57055,7 @@ export class Api extends HttpClient this.request({ @@ -53699,10 +57073,7 @@ export class Api extends HttpClient this.request({ @@ -53720,10 +57091,7 @@ export class Api extends HttpClient this.request({ @@ -53741,10 +57109,7 @@ export class Api extends HttpClient this.request({ @@ -53870,9 +57235,7 @@ export class Api extends HttpClient @@ -53894,9 +57257,7 @@ export class Api extends HttpClient @@ -53918,9 +57279,7 @@ export class Api extends HttpClient @@ -53942,9 +57301,7 @@ export class Api extends HttpClient @@ -53966,9 +57323,7 @@ export class Api extends HttpClient @@ -53989,7 +57344,7 @@ export class Api extends HttpClient + reposCheckCollaborator: ({ owner, repo, username }: ReposCheckCollaboratorParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/collaborators/\${username}\`, method: "GET", @@ -54004,7 +57359,7 @@ export class Api extends HttpClient + reposCheckVulnerabilityAlerts: ({ owner, repo }: ReposCheckVulnerabilityAlertsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/vulnerability-alerts\`, method: "GET", @@ -54019,7 +57374,7 @@ export class Api extends HttpClient + reposCompareCommits: ({ owner, repo, base, head }: ReposCompareCommitsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/compare/\${base}...\${head}\`, method: "GET", @@ -54036,9 +57391,7 @@ export class Api extends HttpClient @@ -54059,7 +57412,10 @@ export class Api extends HttpClient + reposCreateCommitSignatureProtection: ( + { owner, repo, branch }: ReposCreateCommitSignatureProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_signatures\`, method: "POST", @@ -54076,9 +57432,7 @@ export class Api extends HttpClient @@ -54100,8 +57454,7 @@ export class Api extends HttpClient @@ -54123,8 +57476,7 @@ export class Api extends HttpClient @@ -54146,9 +57498,7 @@ export class Api extends HttpClient @@ -54170,8 +57520,7 @@ export class Api extends HttpClient @@ -54191,7 +57540,11 @@ export class Api extends HttpClient + reposCreateFork: ( + { owner, repo }: ReposCreateForkParams, + data: ReposCreateForkPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/forks\`, method: "POST", @@ -54210,9 +57563,7 @@ export class Api extends HttpClient @@ -54234,8 +57585,7 @@ export class Api extends HttpClient @@ -54264,7 +57614,11 @@ export class Api extends HttpClient + reposCreateRelease: ( + { owner, repo }: ReposCreateReleaseParams, + data: ReposCreateReleasePayload, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/releases\`, method: "POST", @@ -54283,8 +57637,7 @@ export class Api extends HttpClient @@ -54305,7 +57658,11 @@ export class Api extends HttpClient + reposCreateWebhook: ( + { owner, repo }: ReposCreateWebhookParams, + data: ReposCreateWebhookPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/hooks\`, method: "POST", @@ -54323,7 +57680,7 @@ export class Api extends HttpClient + reposDelete: ({ owner, repo }: ReposDeleteParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}\`, method: "DELETE", @@ -54338,7 +57695,10 @@ export class Api extends HttpClient + reposDeleteAccessRestrictions: ( + { owner, repo, branch }: ReposDeleteAccessRestrictionsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/restrictions\`, method: "DELETE", @@ -54353,7 +57713,10 @@ export class Api extends HttpClient + reposDeleteAdminBranchProtection: ( + { owner, repo, branch }: ReposDeleteAdminBranchProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/enforce_admins\`, method: "DELETE", @@ -54368,7 +57731,10 @@ export class Api extends HttpClient + reposDeleteBranchProtection: ( + { owner, repo, branch }: ReposDeleteBranchProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection\`, method: "DELETE", @@ -54383,7 +57749,10 @@ export class Api extends HttpClient + reposDeleteCommitComment: ( + { owner, repo, commentId }: ReposDeleteCommitCommentParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, method: "DELETE", @@ -54398,7 +57767,10 @@ export class Api extends HttpClient + reposDeleteCommitSignatureProtection: ( + { owner, repo, branch }: ReposDeleteCommitSignatureProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_signatures\`, method: "DELETE", @@ -54413,7 +57785,7 @@ export class Api extends HttpClient + reposDeleteDeployKey: ({ owner, repo, keyId }: ReposDeleteDeployKeyParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/keys/\${keyId}\`, method: "DELETE", @@ -54428,7 +57800,7 @@ export class Api extends HttpClient + reposDeleteDeployment: ({ owner, repo, deploymentId }: ReposDeleteDeploymentParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/deployments/\${deploymentId}\`, method: "DELETE", @@ -54444,9 +57816,7 @@ export class Api extends HttpClient @@ -54476,7 +57846,7 @@ export class Api extends HttpClient + reposDeleteInvitation: ({ owner, repo, invitationId }: ReposDeleteInvitationParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/invitations/\${invitationId}\`, method: "DELETE", @@ -54491,7 +57861,7 @@ export class Api extends HttpClient + reposDeletePagesSite: ({ owner, repo }: ReposDeletePagesSiteParams, params: RequestParams = {}) => this.request< ReposDeletePagesSiteData, | BasicError @@ -54514,7 +57884,10 @@ export class Api extends HttpClient + reposDeletePullRequestReviewProtection: ( + { owner, repo, branch }: ReposDeletePullRequestReviewProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_pull_request_reviews\`, method: "DELETE", @@ -54529,7 +57902,7 @@ export class Api extends HttpClient + reposDeleteRelease: ({ owner, repo, releaseId }: ReposDeleteReleaseParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/releases/\${releaseId}\`, method: "DELETE", @@ -54544,7 +57917,7 @@ export class Api extends HttpClient + reposDeleteReleaseAsset: ({ owner, repo, assetId }: ReposDeleteReleaseAssetParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/releases/assets/\${assetId}\`, method: "DELETE", @@ -54559,7 +57932,7 @@ export class Api extends HttpClient + reposDeleteWebhook: ({ owner, repo, hookId }: ReposDeleteWebhookParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, method: "DELETE", @@ -54574,7 +57947,10 @@ export class Api extends HttpClient + reposDisableAutomatedSecurityFixes: ( + { owner, repo }: ReposDisableAutomatedSecurityFixesParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/automated-security-fixes\`, method: "DELETE", @@ -54589,7 +57965,10 @@ export class Api extends HttpClient + reposDisableVulnerabilityAlerts: ( + { owner, repo }: ReposDisableVulnerabilityAlertsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/vulnerability-alerts\`, method: "DELETE", @@ -54604,7 +57983,10 @@ export class Api extends HttpClient + reposDownloadTarballArchive: ( + { owner, repo, ref }: ReposDownloadTarballArchiveParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/tarball/\${ref}\`, method: "GET", @@ -54619,7 +58001,10 @@ export class Api extends HttpClient + reposDownloadZipballArchive: ( + { owner, repo, ref }: ReposDownloadZipballArchiveParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/zipball/\${ref}\`, method: "GET", @@ -54634,7 +58019,10 @@ export class Api extends HttpClient + reposEnableAutomatedSecurityFixes: ( + { owner, repo }: ReposEnableAutomatedSecurityFixesParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/automated-security-fixes\`, method: "PUT", @@ -54649,7 +58037,10 @@ export class Api extends HttpClient + reposEnableVulnerabilityAlerts: ( + { owner, repo }: ReposEnableVulnerabilityAlertsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/vulnerability-alerts\`, method: "PUT", @@ -54664,7 +58055,7 @@ export class Api extends HttpClient + reposGet: ({ owner, repo }: ReposGetParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}\`, method: "GET", @@ -54680,7 +58071,10 @@ export class Api extends HttpClient + reposGetAccessRestrictions: ( + { owner, repo, branch }: ReposGetAccessRestrictionsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/restrictions\`, method: "GET", @@ -54696,7 +58090,10 @@ export class Api extends HttpClient + reposGetAdminBranchProtection: ( + { owner, repo, branch }: ReposGetAdminBranchProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/enforce_admins\`, method: "GET", @@ -54712,7 +58109,10 @@ export class Api extends HttpClient + reposGetAllStatusCheckContexts: ( + { owner, repo, branch }: ReposGetAllStatusCheckContextsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_status_checks/contexts\`, method: "GET", @@ -54728,7 +58128,7 @@ export class Api extends HttpClient + reposGetAllTopics: ({ owner, repo }: ReposGetAllTopicsParams, params: RequestParams = {}) => this.request< ReposGetAllTopicsData, | BasicError @@ -54752,9 +58152,7 @@ export class Api extends HttpClient this.request({ @@ -54772,7 +58170,7 @@ export class Api extends HttpClient + reposGetBranch: ({ owner, repo, branch }: ReposGetBranchParams, params: RequestParams = {}) => this.request< ReposGetBranchData, | BasicError @@ -54795,7 +58193,7 @@ export class Api extends HttpClient + reposGetBranchProtection: ({ owner, repo, branch }: ReposGetBranchProtectionParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection\`, method: "GET", @@ -54828,7 +58226,7 @@ export class Api extends HttpClient + reposGetCodeFrequencyStats: ({ owner, repo }: ReposGetCodeFrequencyStatsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/stats/code_frequency\`, method: "GET", @@ -54844,7 +58242,10 @@ export class Api extends HttpClient + reposGetCollaboratorPermissionLevel: ( + { owner, repo, username }: ReposGetCollaboratorPermissionLevelParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/collaborators/\${username}/permission\`, method: "GET", @@ -54860,7 +58261,10 @@ export class Api extends HttpClient + reposGetCombinedStatusForRef: ( + { owner, repo, ref }: ReposGetCombinedStatusForRefParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/commits/\${ref}/status\`, method: "GET", @@ -54876,7 +58280,7 @@ export class Api extends HttpClient + reposGetCommit: ({ owner, repo, ref }: ReposGetCommitParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/commits/\${ref}\`, method: "GET", @@ -54892,7 +58296,7 @@ export class Api extends HttpClient + reposGetCommitActivityStats: ({ owner, repo }: ReposGetCommitActivityStatsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/stats/commit_activity\`, method: "GET", @@ -54908,7 +58312,7 @@ export class Api extends HttpClient + reposGetCommitComment: ({ owner, repo, commentId }: ReposGetCommitCommentParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, method: "GET", @@ -54924,7 +58328,10 @@ export class Api extends HttpClient + reposGetCommitSignatureProtection: ( + { owner, repo, branch }: ReposGetCommitSignatureProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_signatures\`, method: "GET", @@ -54940,7 +58347,10 @@ export class Api extends HttpClient + reposGetCommunityProfileMetrics: ( + { owner, repo }: ReposGetCommunityProfileMetricsParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/community/profile\`, method: "GET", @@ -54973,7 +58383,7 @@ export class Api extends HttpClient + reposGetContributorsStats: ({ owner, repo }: ReposGetContributorsStatsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/stats/contributors\`, method: "GET", @@ -54989,7 +58399,7 @@ export class Api extends HttpClient + reposGetDeployKey: ({ owner, repo, keyId }: ReposGetDeployKeyParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/keys/\${keyId}\`, method: "GET", @@ -55005,7 +58415,7 @@ export class Api extends HttpClient + reposGetDeployment: ({ owner, repo, deploymentId }: ReposGetDeploymentParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/deployments/\${deploymentId}\`, method: "GET", @@ -55022,10 +58432,7 @@ export class Api extends HttpClient this.request< @@ -55050,7 +58457,7 @@ export class Api extends HttpClient + reposGetLatestPagesBuild: ({ owner, repo }: ReposGetLatestPagesBuildParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pages/builds/latest\`, method: "GET", @@ -55066,7 +58473,7 @@ export class Api extends HttpClient + reposGetLatestRelease: ({ owner, repo }: ReposGetLatestReleaseParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/releases/latest\`, method: "GET", @@ -55082,7 +58489,7 @@ export class Api extends HttpClient + reposGetPages: ({ owner, repo }: ReposGetPagesParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pages\`, method: "GET", @@ -55098,7 +58505,7 @@ export class Api extends HttpClient + reposGetPagesBuild: ({ owner, repo, buildId }: ReposGetPagesBuildParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pages/builds/\${buildId}\`, method: "GET", @@ -55114,7 +58521,7 @@ export class Api extends HttpClient + reposGetParticipationStats: ({ owner, repo }: ReposGetParticipationStatsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/stats/participation\`, method: "GET", @@ -55130,7 +58537,10 @@ export class Api extends HttpClient + reposGetPullRequestReviewProtection: ( + { owner, repo, branch }: ReposGetPullRequestReviewProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_pull_request_reviews\`, method: "GET", @@ -55146,7 +58556,7 @@ export class Api extends HttpClient + reposGetPunchCardStats: ({ owner, repo }: ReposGetPunchCardStatsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/stats/punch_card\`, method: "GET", @@ -55179,7 +58589,7 @@ export class Api extends HttpClient + reposGetRelease: ({ owner, repo, releaseId }: ReposGetReleaseParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/releases/\${releaseId}\`, method: "GET", @@ -55195,7 +58605,7 @@ export class Api extends HttpClient + reposGetReleaseAsset: ({ owner, repo, assetId }: ReposGetReleaseAssetParams, params: RequestParams = {}) => this.request< ReposGetReleaseAssetData, | BasicError @@ -55218,7 +58628,7 @@ export class Api extends HttpClient + reposGetReleaseByTag: ({ owner, repo, tag }: ReposGetReleaseByTagParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/releases/tags/\${tag}\`, method: "GET", @@ -55234,7 +58644,10 @@ export class Api extends HttpClient + reposGetStatusChecksProtection: ( + { owner, repo, branch }: ReposGetStatusChecksProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_status_checks\`, method: "GET", @@ -55251,9 +58664,7 @@ export class Api extends HttpClient this.request({ @@ -55271,7 +58682,7 @@ export class Api extends HttpClient + reposGetTopPaths: ({ owner, repo }: ReposGetTopPathsParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/traffic/popular/paths\`, method: "GET", @@ -55287,7 +58698,7 @@ export class Api extends HttpClient + reposGetTopReferrers: ({ owner, repo }: ReposGetTopReferrersParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/traffic/popular/referrers\`, method: "GET", @@ -55304,9 +58715,7 @@ export class Api extends HttpClient this.request({ @@ -55341,7 +58750,7 @@ export class Api extends HttpClient + reposGetWebhook: ({ owner, repo, hookId }: ReposGetWebhookParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, method: "GET", @@ -55357,7 +58766,10 @@ export class Api extends HttpClient + reposGetWebhookConfigForRepo: ( + { owner, repo, hookId }: ReposGetWebhookConfigForRepoParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}/config\`, method: "GET", @@ -55390,7 +58802,10 @@ export class Api extends HttpClient + reposListBranchesForHeadCommit: ( + { owner, repo, commitSha }: ReposListBranchesForHeadCommitParams, + params: RequestParams = {}, + ) => this.request< ReposListBranchesForHeadCommitData, | { @@ -55612,7 +59027,7 @@ export class Api extends HttpClient + reposListLanguages: ({ owner, repo }: ReposListLanguagesParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/languages\`, method: "GET", @@ -55759,7 +59174,7 @@ export class Api extends HttpClient + reposMerge: ({ owner, repo }: ReposMergeParams, data: ReposMergePayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/merges\`, method: "POST", @@ -55777,7 +59192,7 @@ export class Api extends HttpClient + reposPingWebhook: ({ owner, repo, hookId }: ReposPingWebhookParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}/pings\`, method: "POST", @@ -55793,9 +59208,7 @@ export class Api extends HttpClient @@ -55816,7 +59229,7 @@ export class Api extends HttpClient + reposRemoveCollaborator: ({ owner, repo, username }: ReposRemoveCollaboratorParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/collaborators/\${username}\`, method: "DELETE", @@ -55832,9 +59245,7 @@ export class Api extends HttpClient @@ -55855,7 +59266,10 @@ export class Api extends HttpClient + reposRemoveStatusCheckProtection: ( + { owner, repo, branch }: ReposRemoveStatusCheckProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/required_status_checks\`, method: "DELETE", @@ -55871,9 +59285,7 @@ export class Api extends HttpClient @@ -55895,9 +59307,7 @@ export class Api extends HttpClient @@ -55919,9 +59329,7 @@ export class Api extends HttpClient @@ -55943,8 +59351,7 @@ export class Api extends HttpClient @@ -55973,7 +59380,7 @@ export class Api extends HttpClient + reposRequestPagesBuild: ({ owner, repo }: ReposRequestPagesBuildParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/pages/builds\`, method: "POST", @@ -55989,7 +59396,10 @@ export class Api extends HttpClient + reposSetAdminBranchProtection: ( + { owner, repo, branch }: ReposSetAdminBranchProtectionParams, + params: RequestParams = {}, + ) => this.request({ path: \`/repos/\${owner}/\${repo}/branches/\${branch}/protection/enforce_admins\`, method: "POST", @@ -56006,9 +59416,7 @@ export class Api extends HttpClient @@ -56030,9 +59438,7 @@ export class Api extends HttpClient @@ -56054,9 +59460,7 @@ export class Api extends HttpClient @@ -56078,9 +59482,7 @@ export class Api extends HttpClient @@ -56101,7 +59503,7 @@ export class Api extends HttpClient + reposTestPushWebhook: ({ owner, repo, hookId }: ReposTestPushWebhookParams, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}/tests\`, method: "POST", @@ -56116,7 +59518,7 @@ export class Api extends HttpClient + reposTransfer: ({ owner, repo }: ReposTransferParams, data: ReposTransferPayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}/transfer\`, method: "POST", @@ -56134,7 +59536,7 @@ export class Api extends HttpClient + reposUpdate: ({ owner, repo }: ReposUpdateParams, data: ReposUpdatePayload, params: RequestParams = {}) => this.request({ path: \`/repos/\${owner}/\${repo}\`, method: "PATCH", @@ -56153,9 +59555,7 @@ export class Api extends HttpClient @@ -56185,9 +59585,7 @@ export class Api extends HttpClient @@ -56209,8 +59607,7 @@ export class Api extends HttpClient @@ -56231,9 +59628,7 @@ export class Api extends HttpClient @@ -56255,9 +59650,7 @@ export class Api extends HttpClient @@ -56279,9 +59672,7 @@ export class Api extends HttpClient @@ -56303,9 +59694,7 @@ export class Api extends HttpClient @@ -56327,9 +59716,7 @@ export class Api extends HttpClient @@ -56351,9 +59738,7 @@ export class Api extends HttpClient @@ -56375,9 +59760,7 @@ export class Api extends HttpClient @@ -56420,7 +59803,7 @@ export class Api extends HttpClient + secretScanningGetAlert: ({ owner, repo, alertNumber }: SecretScanningGetAlertParams, params: RequestParams = {}) => this.request< SecretScanningGetAlertData, void | { @@ -56471,9 +59854,7 @@ export class Api extends HttpClient @@ -56502,7 +59883,7 @@ export class Api extends HttpClient + reposListPublic: ({ ...query }: ReposListPublicParams, params: RequestParams = {}) => this.request({ path: \`/repositories\`, method: "GET", @@ -56521,8 +59902,7 @@ export class Api extends HttpClient this.request({ @@ -56539,7 +59919,10 @@ export class Api extends HttpClient + enterpriseAdminDeleteUserFromEnterprise: ( + { enterprise, scimUserId }: EnterpriseAdminDeleteUserFromEnterpriseParams, + params: RequestParams = {}, + ) => this.request({ path: \`/scim/v2/enterprises/\${enterprise}/Users/\${scimUserId}\`, method: "DELETE", @@ -56555,8 +59938,7 @@ export class Api extends HttpClient this.request({ @@ -56575,8 +59957,7 @@ export class Api extends HttpClient this.request({ @@ -56635,7 +60016,7 @@ export class Api extends HttpClient @@ -56657,7 +60038,7 @@ export class Api extends HttpClient @@ -56679,8 +60060,7 @@ export class Api extends HttpClient @@ -56702,8 +60082,7 @@ export class Api extends HttpClient @@ -56725,8 +60104,7 @@ export class Api extends HttpClient @@ -56748,8 +60126,7 @@ export class Api extends HttpClient @@ -56770,7 +60147,7 @@ export class Api extends HttpClient + scimDeleteUserFromOrg: ({ org, scimUserId }: ScimDeleteUserFromOrgParams, params: RequestParams = {}) => this.request({ path: \`/scim/v2/organizations/\${org}/Users/\${scimUserId}\`, method: "DELETE", @@ -56785,7 +60162,10 @@ export class Api extends HttpClient + scimGetProvisioningInformationForUser: ( + { org, scimUserId }: ScimGetProvisioningInformationForUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/scim/v2/organizations/\${org}/Users/\${scimUserId}\`, method: "GET", @@ -56821,7 +60201,11 @@ export class Api extends HttpClient + scimProvisionAndInviteUser: ( + { org }: ScimProvisionAndInviteUserParams, + data: ScimProvisionAndInviteUserPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/scim/v2/organizations/\${org}/Users\`, method: "POST", @@ -56840,8 +60224,7 @@ export class Api extends HttpClient @@ -56863,8 +60246,7 @@ export class Api extends HttpClient @@ -56886,7 +60268,7 @@ export class Api extends HttpClient + searchCode: ({ ...query }: SearchCodeParams, params: RequestParams = {}) => this.request< SearchCodeData, | BasicError @@ -56912,7 +60294,7 @@ export class Api extends HttpClient + searchCommits: ({ ...query }: SearchCommitsParams, params: RequestParams = {}) => this.request< SearchCommitsData, { @@ -56935,7 +60317,7 @@ export class Api extends HttpClient + searchIssuesAndPullRequests: ({ ...query }: SearchIssuesAndPullRequestsParams, params: RequestParams = {}) => this.request< SearchIssuesAndPullRequestsData, | BasicError @@ -56961,7 +60343,7 @@ export class Api extends HttpClient + searchLabels: ({ ...query }: SearchLabelsParams, params: RequestParams = {}) => this.request({ path: \`/search/labels\`, method: "GET", @@ -56978,7 +60360,7 @@ export class Api extends HttpClient + searchRepos: ({ ...query }: SearchReposParams, params: RequestParams = {}) => this.request< SearchReposData, | ValidationError @@ -57003,7 +60385,7 @@ export class Api extends HttpClient + searchTopics: ({ ...query }: SearchTopicsParams, params: RequestParams = {}) => this.request< SearchTopicsData, { @@ -57026,7 +60408,7 @@ export class Api extends HttpClient + searchUsers: ({ ...query }: SearchUsersParams, params: RequestParams = {}) => this.request< SearchUsersData, | ValidationError @@ -57054,9 +60436,7 @@ export class Api extends HttpClient @@ -57079,8 +60459,7 @@ export class Api extends HttpClient @@ -57144,7 +60523,7 @@ export class Api extends HttpClient + teamsAddMemberLegacy: ({ teamId, username }: TeamsAddMemberLegacyParams, params: RequestParams = {}) => this.request({ path: \`/teams/\${teamId}/members/\${username}\`, method: "PUT", @@ -57161,8 +60540,7 @@ export class Api extends HttpClient @@ -57185,8 +60563,7 @@ export class Api extends HttpClient @@ -57208,9 +60585,7 @@ export class Api extends HttpClient @@ -57231,7 +60606,10 @@ export class Api extends HttpClient + teamsCheckPermissionsForProjectLegacy: ( + { teamId, projectId }: TeamsCheckPermissionsForProjectLegacyParams, + params: RequestParams = {}, + ) => this.request< TeamsCheckPermissionsForProjectLegacyData, void | { @@ -57254,7 +60632,10 @@ export class Api extends HttpClient + teamsCheckPermissionsForRepoLegacy: ( + { teamId, owner, repo }: TeamsCheckPermissionsForRepoLegacyParams, + params: RequestParams = {}, + ) => this.request({ path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, method: "GET", @@ -57272,8 +60653,7 @@ export class Api extends HttpClient @@ -57296,7 +60676,7 @@ export class Api extends HttpClient @@ -57319,7 +60699,7 @@ export class Api extends HttpClient @@ -57342,9 +60722,7 @@ export class Api extends HttpClient this.request({ @@ -57362,7 +60740,10 @@ export class Api extends HttpClient + teamsDeleteDiscussionLegacy: ( + { teamId, discussionNumber }: TeamsDeleteDiscussionLegacyParams, + params: RequestParams = {}, + ) => this.request({ path: \`/teams/\${teamId}/discussions/\${discussionNumber}\`, method: "DELETE", @@ -57378,7 +60759,7 @@ export class Api extends HttpClient + teamsDeleteLegacy: ({ teamId }: TeamsDeleteLegacyParams, params: RequestParams = {}) => this.request({ path: \`/teams/\${teamId}\`, method: "DELETE", @@ -57395,9 +60776,7 @@ export class Api extends HttpClient this.request({ @@ -57416,7 +60795,10 @@ export class Api extends HttpClient + teamsGetDiscussionLegacy: ( + { teamId, discussionNumber }: TeamsGetDiscussionLegacyParams, + params: RequestParams = {}, + ) => this.request({ path: \`/teams/\${teamId}/discussions/\${discussionNumber}\`, method: "GET", @@ -57433,7 +60815,7 @@ export class Api extends HttpClient + teamsGetLegacy: ({ teamId }: TeamsGetLegacyParams, params: RequestParams = {}) => this.request({ path: \`/teams/\${teamId}\`, method: "GET", @@ -57450,7 +60832,7 @@ export class Api extends HttpClient + teamsGetMemberLegacy: ({ teamId, username }: TeamsGetMemberLegacyParams, params: RequestParams = {}) => this.request({ path: \`/teams/\${teamId}/members/\${username}\`, method: "GET", @@ -57466,7 +60848,10 @@ export class Api extends HttpClient + teamsGetMembershipForUserLegacy: ( + { teamId, username }: TeamsGetMembershipForUserLegacyParams, + params: RequestParams = {}, + ) => this.request({ path: \`/teams/\${teamId}/memberships/\${username}\`, method: "GET", @@ -57540,7 +60925,7 @@ export class Api extends HttpClient + teamsListIdpGroupsForLegacy: ({ teamId }: TeamsListIdpGroupsForLegacyParams, params: RequestParams = {}) => this.request({ path: \`/teams/\${teamId}/team-sync/group-mappings\`, method: "GET", @@ -57639,7 +61024,7 @@ export class Api extends HttpClient + teamsRemoveMemberLegacy: ({ teamId, username }: TeamsRemoveMemberLegacyParams, params: RequestParams = {}) => this.request({ path: \`/teams/\${teamId}/members/\${username}\`, method: "DELETE", @@ -57655,7 +61040,10 @@ export class Api extends HttpClient + teamsRemoveMembershipForUserLegacy: ( + { teamId, username }: TeamsRemoveMembershipForUserLegacyParams, + params: RequestParams = {}, + ) => this.request({ path: \`/teams/\${teamId}/memberships/\${username}\`, method: "DELETE", @@ -57671,7 +61059,7 @@ export class Api extends HttpClient + teamsRemoveProjectLegacy: ({ teamId, projectId }: TeamsRemoveProjectLegacyParams, params: RequestParams = {}) => this.request< TeamsRemoveProjectLegacyData, | BasicError @@ -57695,7 +61083,7 @@ export class Api extends HttpClient + teamsRemoveRepoLegacy: ({ teamId, owner, repo }: TeamsRemoveRepoLegacyParams, params: RequestParams = {}) => this.request({ path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, method: "DELETE", @@ -57712,9 +61100,7 @@ export class Api extends HttpClient @@ -57737,8 +61123,7 @@ export class Api extends HttpClient @@ -57760,7 +61145,11 @@ export class Api extends HttpClient + teamsUpdateLegacy: ( + { teamId }: TeamsUpdateLegacyParams, + data: TeamsUpdateLegacyPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/teams/\${teamId}\`, method: "PATCH", @@ -57779,7 +61168,10 @@ export class Api extends HttpClient + activityCheckRepoIsStarredByAuthenticatedUser: ( + { owner, repo }: ActivityCheckRepoIsStarredByAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request< ActivityCheckRepoIsStarredByAuthenticatedUserData, ActivityCheckRepoIsStarredByAuthenticatedUserError @@ -57798,7 +61190,7 @@ export class Api extends HttpClient this.request({ @@ -57818,7 +61210,7 @@ export class Api extends HttpClient this.request({ @@ -57837,7 +61229,10 @@ export class Api extends HttpClient + activityStarRepoForAuthenticatedUser: ( + { owner, repo }: ActivityStarRepoForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/starred/\${owner}/\${repo}\`, method: "PUT", @@ -57852,7 +61247,10 @@ export class Api extends HttpClient + activityUnstarRepoForAuthenticatedUser: ( + { owner, repo }: ActivityUnstarRepoForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/starred/\${owner}/\${repo}\`, method: "DELETE", @@ -57867,7 +61265,10 @@ export class Api extends HttpClient + appsAddRepoToInstallation: ( + { installationId, repositoryId }: AppsAddRepoToInstallationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/installations/\${installationId}/repositories/\${repositoryId}\`, method: "PUT", @@ -57903,7 +61304,7 @@ export class Api extends HttpClient this.request< @@ -57930,7 +61331,7 @@ export class Api extends HttpClient this.request({ @@ -57950,7 +61351,7 @@ export class Api extends HttpClient this.request({ @@ -57969,7 +61370,10 @@ export class Api extends HttpClient + appsRemoveRepoFromInstallation: ( + { installationId, repositoryId }: AppsRemoveRepoFromInstallationParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/installations/\${installationId}/repositories/\${repositoryId}\`, method: "DELETE", @@ -58033,7 +61437,7 @@ export class Api extends HttpClient + issuesListForAuthenticatedUser: ({ ...query }: IssuesListForAuthenticatedUserParams, params: RequestParams = {}) => this.request({ path: \`/user/issues\`, method: "GET", @@ -58050,7 +61454,10 @@ export class Api extends HttpClient + migrationsDeleteArchiveForAuthenticatedUser: ( + { migrationId }: MigrationsDeleteArchiveForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/migrations/\${migrationId}/archive\`, method: "DELETE", @@ -58065,7 +61472,10 @@ export class Api extends HttpClient + migrationsGetArchiveForAuthenticatedUser: ( + { migrationId }: MigrationsGetArchiveForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/migrations/\${migrationId}/archive\`, method: "GET", @@ -58100,7 +61510,10 @@ export class Api extends HttpClient + migrationsListForAuthenticatedUser: ( + { ...query }: MigrationsListForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/migrations\`, method: "GET", @@ -58158,7 +61571,10 @@ export class Api extends HttpClient + migrationsUnlockRepoForAuthenticatedUser: ( + { migrationId, repoName }: MigrationsUnlockRepoForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/migrations/\${migrationId}/repos/\${repoName}/lock\`, method: "DELETE", @@ -58173,7 +61589,10 @@ export class Api extends HttpClient + orgsGetMembershipForAuthenticatedUser: ( + { org }: OrgsGetMembershipForAuthenticatedUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/memberships/orgs/\${org}\`, method: "GET", @@ -58189,7 +61608,7 @@ export class Api extends HttpClient + orgsListForAuthenticatedUser: ({ ...query }: OrgsListForAuthenticatedUserParams, params: RequestParams = {}) => this.request({ path: \`/user/orgs\`, method: "GET", @@ -58207,7 +61626,7 @@ export class Api extends HttpClient this.request({ @@ -58227,7 +61646,7 @@ export class Api extends HttpClient @@ -58274,7 +61693,7 @@ export class Api extends HttpClient + reposAcceptInvitation: ({ invitationId }: ReposAcceptInvitationParams, params: RequestParams = {}) => this.request({ path: \`/user/repository_invitations/\${invitationId}\`, method: "PATCH", @@ -58307,7 +61726,7 @@ export class Api extends HttpClient + reposDeclineInvitation: ({ invitationId }: ReposDeclineInvitationParams, params: RequestParams = {}) => this.request({ path: \`/user/repository_invitations/\${invitationId}\`, method: "DELETE", @@ -58322,7 +61741,7 @@ export class Api extends HttpClient + reposListForAuthenticatedUser: ({ ...query }: ReposListForAuthenticatedUserParams, params: RequestParams = {}) => this.request({ path: \`/user/repos\`, method: "GET", @@ -58340,7 +61759,7 @@ export class Api extends HttpClient this.request({ @@ -58359,7 +61778,7 @@ export class Api extends HttpClient + teamsListForAuthenticatedUser: ({ ...query }: TeamsListForAuthenticatedUserParams, params: RequestParams = {}) => this.request({ path: \`/user/teams\`, method: "GET", @@ -58394,7 +61813,7 @@ export class Api extends HttpClient + usersBlock: ({ username }: UsersBlockParams, params: RequestParams = {}) => this.request({ path: \`/user/blocks/\${username}\`, method: "PUT", @@ -58409,7 +61828,7 @@ export class Api extends HttpClient + usersCheckBlocked: ({ username }: UsersCheckBlockedParams, params: RequestParams = {}) => this.request({ path: \`/user/blocks/\${username}\`, method: "GET", @@ -58424,7 +61843,10 @@ export class Api extends HttpClient + usersCheckPersonIsFollowedByAuthenticated: ( + { username }: UsersCheckPersonIsFollowedByAuthenticatedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/following/\${username}\`, method: "GET", @@ -58495,7 +61917,10 @@ export class Api extends HttpClient + usersDeleteGpgKeyForAuthenticated: ( + { gpgKeyId }: UsersDeleteGpgKeyForAuthenticatedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/gpg_keys/\${gpgKeyId}\`, method: "DELETE", @@ -58510,7 +61935,10 @@ export class Api extends HttpClient + usersDeletePublicSshKeyForAuthenticated: ( + { keyId }: UsersDeletePublicSshKeyForAuthenticatedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/keys/\${keyId}\`, method: "DELETE", @@ -58525,7 +61953,7 @@ export class Api extends HttpClient + usersFollow: ({ username }: UsersFollowParams, params: RequestParams = {}) => this.request({ path: \`/user/following/\${username}\`, method: "PUT", @@ -58556,7 +61984,7 @@ export class Api extends HttpClient + usersGetGpgKeyForAuthenticated: ({ gpgKeyId }: UsersGetGpgKeyForAuthenticatedParams, params: RequestParams = {}) => this.request({ path: \`/user/gpg_keys/\${gpgKeyId}\`, method: "GET", @@ -58572,7 +62000,10 @@ export class Api extends HttpClient + usersGetPublicSshKeyForAuthenticated: ( + { keyId }: UsersGetPublicSshKeyForAuthenticatedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/keys/\${keyId}\`, method: "GET", @@ -58611,7 +62042,10 @@ export class Api extends HttpClient + usersListEmailsForAuthenticated: ( + { ...query }: UsersListEmailsForAuthenticatedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/emails\`, method: "GET", @@ -58628,7 +62062,10 @@ export class Api extends HttpClient + usersListFollowedByAuthenticated: ( + { ...query }: UsersListFollowedByAuthenticatedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/following\`, method: "GET", @@ -58646,7 +62083,7 @@ export class Api extends HttpClient this.request({ @@ -58665,7 +62102,10 @@ export class Api extends HttpClient + usersListGpgKeysForAuthenticated: ( + { ...query }: UsersListGpgKeysForAuthenticatedParams, + params: RequestParams = {}, + ) => this.request({ path: \`/user/gpg_keys\`, method: "GET", @@ -58683,7 +62123,7 @@ export class Api extends HttpClient this.request({ @@ -58703,7 +62143,7 @@ export class Api extends HttpClient this.request({ @@ -58743,7 +62183,7 @@ export class Api extends HttpClient + usersUnblock: ({ username }: UsersUnblockParams, params: RequestParams = {}) => this.request({ path: \`/user/blocks/\${username}\`, method: "DELETE", @@ -58758,7 +62198,7 @@ export class Api extends HttpClient + usersUnfollow: ({ username }: UsersUnfollowParams, params: RequestParams = {}) => this.request({ path: \`/user/following/\${username}\`, method: "DELETE", @@ -58932,7 +62372,7 @@ export class Api extends HttpClient + appsGetUserInstallation: ({ username }: AppsGetUserInstallationParams, params: RequestParams = {}) => this.request({ path: \`/users/\${username}/installation\`, method: "GET", @@ -58948,7 +62388,10 @@ export class Api extends HttpClient + billingGetGithubActionsBillingUser: ( + { username }: BillingGetGithubActionsBillingUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/users/\${username}/settings/billing/actions\`, method: "GET", @@ -58964,7 +62407,10 @@ export class Api extends HttpClient + billingGetGithubPackagesBillingUser: ( + { username }: BillingGetGithubPackagesBillingUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/users/\${username}/settings/billing/packages\`, method: "GET", @@ -58980,7 +62426,10 @@ export class Api extends HttpClient + billingGetSharedStorageBillingUser: ( + { username }: BillingGetSharedStorageBillingUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/users/\${username}/settings/billing/shared-storage\`, method: "GET", @@ -59071,7 +62520,10 @@ export class Api extends HttpClient + usersCheckFollowingForUser: ( + { username, targetUser }: UsersCheckFollowingForUserParams, + params: RequestParams = {}, + ) => this.request({ path: \`/users/\${username}/following/\${targetUser}\`, method: "GET", @@ -59086,7 +62538,7 @@ export class Api extends HttpClient + usersGetByUsername: ({ username }: UsersGetByUsernameParams, params: RequestParams = {}) => this.request({ path: \`/users/\${username}\`, method: "GET", @@ -59119,7 +62571,7 @@ export class Api extends HttpClient + usersList: ({ ...query }: UsersListParams, params: RequestParams = {}) => this.request({ path: \`/users\`, method: "GET", @@ -59297,6 +62749,11 @@ export enum StepModeEnum { export type StopListData = Step[]; +export interface StopListParams { + /** id of the trip */ + tripId: string; +} + export interface Trip { /** * begin of the trip in its local timezone as YYYY-MM-DDThh:mm @@ -59581,7 +63038,7 @@ export class Api extends HttpClient + stopList: ({ tripId }: StopListParams, params: RequestParams = {}) => this.request({ path: \`/trip/\${tripId}/stop\`, method: "GET", @@ -59635,6 +63092,14 @@ export interface GetGifByIdData { meta?: Meta; } +export interface GetGifByIdParams { + /** + * Filters results by specified GIF ID. + * @format int32 + */ + gifId: number; +} + export interface GetGifsByIdData { data?: Gif[]; /** The Meta Object contains basic information regarding the request, whether it was successful, and the response given by the API. Check \`responses\` to see a description of types of response codes the API might give you under different cirumstances. */ @@ -60563,7 +64028,7 @@ export class Api extends HttpClient + getGifById: ({ gifId }: GetGifByIdParams, params: RequestParams = {}) => this.request({ path: \`/gifs/\${gifId}\`, method: "GET", @@ -60581,7 +64046,7 @@ export class Api extends HttpClient + getGifsById: ({ ...query }: GetGifsByIdParams, params: RequestParams = {}) => this.request({ path: \`/gifs\`, method: "GET", @@ -60600,7 +64065,7 @@ export class Api extends HttpClient + randomGif: ({ ...query }: RandomGifParams, params: RequestParams = {}) => this.request({ path: \`/gifs/random\`, method: "GET", @@ -60619,7 +64084,7 @@ export class Api extends HttpClient + searchGifs: ({ ...query }: SearchGifsParams, params: RequestParams = {}) => this.request({ path: \`/gifs/search\`, method: "GET", @@ -60638,7 +64103,7 @@ export class Api extends HttpClient + translateGif: ({ ...query }: TranslateGifParams, params: RequestParams = {}) => this.request({ path: \`/gifs/translate\`, method: "GET", @@ -60657,7 +64122,7 @@ export class Api extends HttpClient + trendingGifs: ({ ...query }: TrendingGifsParams, params: RequestParams = {}) => this.request({ path: \`/gifs/trending\`, method: "GET", @@ -60677,7 +64142,7 @@ export class Api extends HttpClient + randomSticker: ({ ...query }: RandomStickerParams, params: RequestParams = {}) => this.request({ path: \`/stickers/random\`, method: "GET", @@ -60696,7 +64161,7 @@ export class Api extends HttpClient + searchStickers: ({ ...query }: SearchStickersParams, params: RequestParams = {}) => this.request({ path: \`/stickers/search\`, method: "GET", @@ -60715,7 +64180,7 @@ export class Api extends HttpClient + translateSticker: ({ ...query }: TranslateStickerParams, params: RequestParams = {}) => this.request({ path: \`/stickers/translate\`, method: "GET", @@ -60734,7 +64199,7 @@ export class Api extends HttpClient + trendingStickers: ({ ...query }: TrendingStickersParams, params: RequestParams = {}) => this.request({ path: \`/stickers/trending\`, method: "GET", @@ -60763,6 +64228,12 @@ exports[`extended > 'link-example' 1`] = ` export type GetPullRequestsByIdData = Pullrequest; +export interface GetPullRequestsByIdParams { + pid: string; + slug: string; + username: string; +} + export type GetPullRequestsByRepositoryData = Pullrequest[]; export interface GetPullRequestsByRepositoryParams { @@ -60779,12 +64250,31 @@ export enum GetPullRequestsByRepositoryParams1StateEnum { export type GetRepositoriesByOwnerData = Repository[]; +export interface GetRepositoriesByOwnerParams { + username: string; +} + export type GetRepositoryData = Repository; +export interface GetRepositoryParams { + slug: string; + username: string; +} + export type GetUserByNameData = User; +export interface GetUserByNameParams { + username: string; +} + export type MergePullRequestData = any; +export interface MergePullRequestParams { + pid: string; + slug: string; + username: string; +} + export interface Pullrequest { author?: User; id?: number; @@ -61130,7 +64620,7 @@ export class Api extends HttpClient + getPullRequestsById: ({ username, slug, pid }: GetPullRequestsByIdParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}/\${slug}/pullrequests/\${pid}\`, method: "GET", @@ -61162,7 +64652,7 @@ export class Api extends HttpClient + getRepositoriesByOwner: ({ username }: GetRepositoriesByOwnerParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}\`, method: "GET", @@ -61176,7 +64666,7 @@ export class Api extends HttpClient + getRepository: ({ username, slug }: GetRepositoryParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}/\${slug}\`, method: "GET", @@ -61190,7 +64680,7 @@ export class Api extends HttpClient + getUserByName: ({ username }: GetUserByNameParams, params: RequestParams = {}) => this.request({ path: \`/2.0/users/\${username}\`, method: "GET", @@ -61204,7 +64694,7 @@ export class Api extends HttpClient + mergePullRequest: ({ username, slug, pid }: MergePullRequestParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}/\${slug}/pullrequests/\${pid}/merge\`, method: "POST", @@ -62081,8 +65571,16 @@ export type AuthUserType = OmitIdUserType; export type DeleteJobData = any; +export interface DeleteJobParams { + id: string; +} + export type DeleteProjectData = any; +export interface DeleteProjectParams { + id: string; +} + export type ExtractedProjectType = OmitProjectTypeJob & { /** Information about job */ job: JobType; @@ -62110,6 +65608,10 @@ export interface FooBaz { export type GetJobData = JobType; +export interface GetJobParams { + id: string; +} + export type GetJobsData = JobType[]; export type GetProjectsData = ExtractedProjectType[]; @@ -62283,8 +65785,16 @@ export type TestOneOfDc = (FooBarBaz | FooBar) & { export type UpdateJobData = JobType; +export interface UpdateJobParams { + id: string; +} + export type UpdateProjectData = ProjectType; +export interface UpdateProjectParams { + id: string; +} + export namespace Auth { /** * No description @@ -62743,7 +66253,7 @@ export class Api extends HttpClient + deleteJob: ({ id }: DeleteJobParams, params: RequestParams = {}) => this.request({ path: \`/jobs/\${id}\`, method: "DELETE", @@ -62760,7 +66270,7 @@ export class Api extends HttpClient + getJob: ({ id }: GetJobParams, params: RequestParams = {}) => this.request({ path: \`/jobs/\${id}\`, method: "GET", @@ -62794,7 +66304,7 @@ export class Api extends HttpClient + updateJob: ({ id }: UpdateJobParams, params: JobUpdateType, requestParams: RequestParams = {}) => this.request({ path: \`/jobs/\${id}\`, method: "PATCH", @@ -62832,7 +66342,7 @@ export class Api extends HttpClient + deleteProject: ({ id }: DeleteProjectParams, params: RequestParams = {}) => this.request({ path: \`/projects/\${id}\`, method: "DELETE", @@ -62863,7 +66373,7 @@ export class Api extends HttpClient + updateProject: ({ id }: UpdateProjectParams, data: ProjectUpdateType, params: RequestParams = {}) => this.request({ path: \`/projects/\${id}\`, method: "PATCH", @@ -62926,6 +66436,11 @@ export type ShowPetByIdData = Pet; export type ShowPetByIdError = Error; +export interface ShowPetByIdParams { + /** The id of the pet to retrieve */ + petId: string; +} + export type StringNullable = string | null; export namespace Pets { @@ -63225,7 +66740,7 @@ export class Api extends HttpClient + listPets: ({ ...query }: ListPetsParams, params: RequestParams = {}) => this.request({ path: \`/pets\`, method: "GET", @@ -63242,7 +66757,7 @@ export class Api extends HttpClient + showPetById: ({ petId }: ShowPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${petId}\`, method: "GET", @@ -63302,6 +66817,11 @@ export type ShowPetByIdData = Pets; export type ShowPetByIdError = Error; +export interface ShowPetByIdParams { + /** The id of the pet to retrieve */ + petId: string; +} + export namespace Pets { /** * No description @@ -63599,7 +67119,7 @@ export class Api extends HttpClient + listPets: ({ ...query }: ListPetsParams, params: RequestParams = {}) => this.request({ path: \`/pets\`, method: "GET", @@ -63616,7 +67136,7 @@ export class Api extends HttpClient + showPetById: ({ petId }: ShowPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${petId}\`, method: "GET", @@ -63649,6 +67169,14 @@ export type DeletePetData = any; export type DeletePetError = Error; +export interface DeletePetParams { + /** + * ID of pet to delete + * @format int64 + */ + id: number; +} + export interface Error { /** @format int32 */ code: number; @@ -63659,6 +67187,14 @@ export type FindPetByIdData = Pet; export type FindPetByIdError = Error; +export interface FindPetByIdParams { + /** + * ID of pet to fetch + * @format int64 + */ + id: number; +} + export type FindPetsData = Pet[]; export type FindPetsError = Error; @@ -64001,7 +67537,7 @@ export class Api extends HttpClient + deletePet: ({ id }: DeletePetParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "DELETE", @@ -64014,7 +67550,7 @@ export class Api extends HttpClient + findPetById: ({ id }: FindPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "GET", @@ -64028,7 +67564,7 @@ export class Api extends HttpClient + findPets: ({ ...query }: FindPetsParams, params: RequestParams = {}) => this.request({ path: \`/pets\`, method: "GET", @@ -64062,6 +67598,14 @@ export type DeletePetData = any; export type DeletePetError = Error; +export interface DeletePetParams { + /** + * ID of pet to delete + * @format int64 + */ + id: number; +} + export interface Error { /** @format int32 */ code: number; @@ -64072,6 +67616,14 @@ export type FindPetByIdData = Pet; export type FindPetByIdError = Error; +export interface FindPetByIdParams { + /** + * ID of pet to fetch + * @format int64 + */ + id: number; +} + export type FindPetsData = Pet[]; export type FindPetsError = Error; @@ -64111,6 +67663,13 @@ export interface PageTemplateResponseDto { totalPages?: number; } +export interface PathParamFooBarBazListParams { + /** foo bar baz */ + fooBarBaz: string; + /** path-param */ + pathParam: string; +} + export type Pet = NewPet & { /** @format int64 */ id: number; @@ -64438,7 +67997,7 @@ export class Api extends HttpClient + pathParamFooBarBazList: ({ pathParam, fooBarBaz }: PathParamFooBarBazListParams, params: RequestParams = {}) => this.request({ path: \`/path-params/\${pathParam}/\${fooBarBaz}\`, method: "GET", @@ -64468,7 +68027,7 @@ export class Api extends HttpClient + deletePet: ({ id }: DeletePetParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "DELETE", @@ -64481,7 +68040,7 @@ export class Api extends HttpClient + findPetById: ({ id }: FindPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "GET", @@ -64495,7 +68054,7 @@ export class Api extends HttpClient + findPets: ({ ...query }: FindPetsParams, params: RequestParams = {}) => this.request({ path: \`/pets\`, method: "GET", @@ -64807,6 +68366,14 @@ export type DeletePetData = any; export type DeletePetError = ErrorModel; +export interface DeletePetParams { + /** + * ID of pet to delete + * @format int64 + */ + id: number; +} + export interface ErrorModel { /** @format int32 */ code: number; @@ -64817,6 +68384,14 @@ export type FindPetByIdData = Pet; export type FindPetByIdError = ErrorModel; +export interface FindPetByIdParams { + /** + * ID of pet to fetch + * @format int64 + */ + id: number; +} + export type FindPetsData = Pet[]; export type FindPetsError = ErrorModel; @@ -65167,7 +68742,7 @@ export class Api extends HttpClient + deletePet: ({ id }: DeletePetParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "DELETE", @@ -65180,7 +68755,7 @@ export class Api extends HttpClient + findPetById: ({ id }: FindPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "GET", @@ -65194,7 +68769,7 @@ export class Api extends HttpClient + findPets: ({ ...query }: FindPetsParams, params: RequestParams = {}) => this.request({ path: \`/pets\`, method: "GET", @@ -65233,6 +68808,28 @@ export interface Category { name?: string; } +export interface DeleteOrderParams { + /** + * ID of the order that needs to be deleted + * @format int64 + * @min 1 + */ + orderId: number; +} + +export interface DeletePetParams { + /** + * Pet id to delete + * @format int64 + */ + petId: number; +} + +export interface DeleteUserParams { + /** The name that needs to be deleted */ + username: string; +} + export type FindPetsByStatusData = Pet[]; export interface FindPetsByStatusParams { @@ -65258,10 +68855,33 @@ export type GetInventoryData = Record; export type GetOrderByIdData = Order; +export interface GetOrderByIdParams { + /** + * ID of pet that needs to be fetched + * @format int64 + * @min 1 + * @max 10 + */ + orderId: number; +} + export type GetPetByIdData = Pet; +export interface GetPetByIdParams { + /** + * ID of pet to return + * @format int64 + */ + petId: number; +} + export type GetUserByNameData = User; +export interface GetUserByNameParams { + /** The name that needs to be fetched. Use user1 for testing. */ + username: string; +} + export type LoginUserData = string; export interface LoginUserParams { @@ -65326,6 +68946,14 @@ export interface Tag { name?: string; } +export interface UpdatePetWithFormParams { + /** + * ID of pet that needs to be updated + * @format int64 + */ + petId: number; +} + export interface UpdatePetWithFormPayload { /** Updated name of the pet */ name?: string; @@ -65333,8 +68961,21 @@ export interface UpdatePetWithFormPayload { status?: string; } +export interface UpdateUserParams { + /** name that need to be updated */ + username: string; +} + export type UploadFileData = ApiResponse; +export interface UploadFileParams { + /** + * ID of pet to update + * @format int64 + */ + petId: number; +} + export interface UploadFilePayload { /** Additional data to pass to server */ additionalMetadata?: string; @@ -65986,7 +69627,7 @@ export class Api extends HttpClient + deletePet: ({ petId }: DeletePetParams, params: RequestParams = {}) => this.request({ path: \`/pet/\${petId}\`, method: "DELETE", @@ -66003,7 +69644,7 @@ export class Api extends HttpClient + findPetsByStatus: ({ ...query }: FindPetsByStatusParams, params: RequestParams = {}) => this.request({ path: \`/pet/findByStatus\`, method: "GET", @@ -66023,7 +69664,7 @@ export class Api extends HttpClient + findPetsByTags: ({ ...query }: FindPetsByTagsParams, params: RequestParams = {}) => this.request({ path: \`/pet/findByTags\`, method: "GET", @@ -66042,7 +69683,7 @@ export class Api extends HttpClient + getPetById: ({ petId }: GetPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pet/\${petId}\`, method: "GET", @@ -66079,7 +69720,11 @@ export class Api extends HttpClient + updatePetWithForm: ( + { petId }: UpdatePetWithFormParams, + data: UpdatePetWithFormPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/pet/\${petId}\`, method: "POST", @@ -66098,7 +69743,7 @@ export class Api extends HttpClient + uploadFile: ({ petId }: UploadFileParams, data: UploadFilePayload, params: RequestParams = {}) => this.request({ path: \`/pet/\${petId}/uploadImage\`, method: "POST", @@ -66118,7 +69763,7 @@ export class Api extends HttpClient + deleteOrder: ({ orderId }: DeleteOrderParams, params: RequestParams = {}) => this.request({ path: \`/store/order/\${orderId}\`, method: "DELETE", @@ -66151,7 +69796,7 @@ export class Api extends HttpClient + getOrderById: ({ orderId }: GetOrderByIdParams, params: RequestParams = {}) => this.request({ path: \`/store/order/\${orderId}\`, method: "GET", @@ -66237,7 +69882,7 @@ export class Api extends HttpClient + deleteUser: ({ username }: DeleteUserParams, params: RequestParams = {}) => this.request({ path: \`/user/\${username}\`, method: "DELETE", @@ -66252,7 +69897,7 @@ export class Api extends HttpClient + getUserByName: ({ username }: GetUserByNameParams, params: RequestParams = {}) => this.request({ path: \`/user/\${username}\`, method: "GET", @@ -66268,7 +69913,7 @@ export class Api extends HttpClient + loginUser: ({ ...query }: LoginUserParams, params: RequestParams = {}) => this.request({ path: \`/user/login\`, method: "GET", @@ -66300,7 +69945,7 @@ export class Api extends HttpClient + updateUser: ({ username }: UpdateUserParams, body: User, params: RequestParams = {}) => this.request({ path: \`/user/\${username}\`, method: "PUT", @@ -66334,6 +69979,14 @@ export type DeletePetData = any; export type DeletePetError = ErrorModel; +export interface DeletePetParams { + /** + * ID of pet to delete + * @format int64 + */ + id: number; +} + export interface ErrorModel { /** @format int32 */ code: number; @@ -66344,6 +69997,14 @@ export type FindPetByIdData = Pet; export type FindPetByIdError = ErrorModel; +export interface FindPetByIdParams { + /** + * ID of pet to fetch + * @format int64 + */ + id: number; +} + export type FindPetsData = Pet[]; export type FindPetsError = ErrorModel; @@ -66687,7 +70348,7 @@ export class Api extends HttpClient + deletePet: ({ id }: DeletePetParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "DELETE", @@ -66700,7 +70361,7 @@ export class Api extends HttpClient + findPetById: ({ id }: FindPetByIdParams, params: RequestParams = {}) => this.request({ path: \`/pets/\${id}\`, method: "GET", @@ -66714,7 +70375,7 @@ export class Api extends HttpClient + findPets: ({ ...query }: FindPetsParams, params: RequestParams = {}) => this.request({ path: \`/pets\`, method: "GET", @@ -67864,10 +71525,22 @@ export interface AuthUser { export type DeleteJobData = any; +export interface DeleteJobParams { + id: string; +} + export type DeleteUserData = any; +export interface DeleteUserParams { + id: string; +} + export type GetJobData = Job; +export interface GetJobParams { + id: string; +} + export type GetJobsData = Job[]; export type GetJobsResult = Job[]; @@ -67963,10 +71636,22 @@ export type RefreshData = string; export type UpdateJobData = UpdatedJob; +export interface UpdateJobParams { + id: string; +} + export type UpdateProjectData = UpdatedProject; +export interface UpdateProjectParams { + id: string; +} + export type UpdateUserData = User; +export interface UpdateUserParams { + id: string; +} + export type UpdatedJob = Job; export interface UpdatedProject { @@ -68532,7 +72217,7 @@ export class Api extends HttpClient + deleteJob: ({ id }: DeleteJobParams, params: RequestParams = {}) => this.request({ path: \`/jobs/\${id}\`, method: "DELETE", @@ -68549,7 +72234,7 @@ export class Api extends HttpClient + getJob: ({ id }: GetJobParams, params: RequestParams = {}) => this.request({ path: \`/jobs/\${id}\`, method: "GET", @@ -68583,7 +72268,7 @@ export class Api extends HttpClient + updateJob: ({ id }: UpdateJobParams, data: JobUpdate, params: RequestParams = {}) => this.request({ path: \`/jobs/\${id}\`, method: "PATCH", @@ -68674,7 +72359,7 @@ export class Api extends HttpClient + updateProject: ({ id }: UpdateProjectParams, data: ProjectUpdate, params: RequestParams = {}) => this.request({ path: \`/projects/\${id}\`, method: "PATCH", @@ -68713,7 +72398,7 @@ export class Api extends HttpClient + deleteUser: ({ id }: DeleteUserParams, params: RequestParams = {}) => this.request({ path: \`/users/\${id}\`, method: "DELETE", @@ -68747,7 +72432,7 @@ export class Api extends HttpClient + updateUser: ({ id }: UpdateUserParams, data: UserUpdate, params: RequestParams = {}) => this.request({ path: \`/users/\${id}\`, method: "PATCH", @@ -69316,7 +73001,7 @@ export class Api extends HttpClient + productsList: ({ ...query }: ProductsListParams, params: RequestParams = {}) => this.request({ path: \`/products\`, method: "GET", @@ -69335,7 +73020,7 @@ export class Api extends HttpClient + priceList: ({ ...query }: PriceListParams, params: RequestParams = {}) => this.request({ path: \`/estimates/price\`, method: "GET", @@ -69352,7 +73037,7 @@ export class Api extends HttpClient + timeList: ({ ...query }: TimeListParams, params: RequestParams = {}) => this.request({ path: \`/estimates/time\`, method: "GET", @@ -69387,7 +73072,7 @@ export class Api extends HttpClient + historyList: ({ ...query }: HistoryListParams, params: RequestParams = {}) => this.request({ path: \`/history\`, method: "GET", @@ -69460,6 +73145,14 @@ export enum AccountTypeEnum { export type AccountsDetailData = GetAccountResponse; +export interface AccountsDetailParams { + /** + * The unique identifier for the account. + * @example "9842e43e-a1f9-4460-a252-364c86df2d3e" + */ + id: string; +} + export type AccountsListData = ListAccountsResponse; export interface AccountsListParams { @@ -69483,6 +73176,14 @@ export interface CashbackObject { export type CategoriesDetailData = GetCategoryResponse; +export interface CategoriesDetailParams { + /** + * The unique identifier for the category. + * @example "restaurants-and-cafes" + */ + id: string; +} + export type CategoriesListData = ListCategoriesResponse; export interface CategoriesListParams { @@ -69796,6 +73497,14 @@ export interface MoneyObject { export type PingCreateData = WebhookEventCallback; +export interface PingCreateParams { + /** + * The unique identifier for the webhook. + * @example "6ef4bb23-53f1-4a3d-aa5c-a6e9121c5da3" + */ + webhookId: string; +} + export type PingListData = PingResponse; export type PingListError = ErrorResponse; @@ -69812,8 +73521,24 @@ export interface PingResponse { export type RelationshipsTagsCreateData = any; +export interface RelationshipsTagsCreateParams { + /** + * The unique identifier for the transaction. + * @example "d024c1b8-bc6a-4785-afc6-cd332d2a2efb" + */ + transactionId: string; +} + export type RelationshipsTagsDeleteData = any; +export interface RelationshipsTagsDeleteParams { + /** + * The unique identifier for the transaction. + * @example "d8c190d6-be35-4d64-b2c4-e1aa0c09a0e0" + */ + transactionId: string; +} + /** * Provides information about how a Round Up was applied, such as whether or * not a boost was included in the Round Up. @@ -70016,6 +73741,14 @@ export enum TransactionStatusEnum { export type TransactionsDetailData = GetTransactionResponse; +export interface TransactionsDetailParams { + /** + * The unique identifier for the transaction. + * @example "8e1da97e-6490-42eb-9c18-d8fdd94cfddc" + */ + id: string; +} + export type TransactionsListData = ListTransactionsResponse; export interface TransactionsListParams { @@ -70325,8 +74058,24 @@ export type WebhooksCreateData = CreateWebhookResponse; export type WebhooksDeleteData = any; +export interface WebhooksDeleteParams { + /** + * The unique identifier for the webhook. + * @example "81f485ae-0e10-493d-95f3-a9c1dd4b6b6a" + */ + id: string; +} + export type WebhooksDetailData = GetWebhookResponse; +export interface WebhooksDetailParams { + /** + * The unique identifier for the webhook. + * @example "bc11e3ed-362e-43ab-b141-ef4f6251faa5" + */ + id: string; +} + export type WebhooksListData = ListWebhooksResponse; export interface WebhooksListParams { @@ -71035,7 +74784,7 @@ export class Api extends HttpClient + accountsDetail: ({ id }: AccountsDetailParams, params: RequestParams = {}) => this.request({ path: \`/accounts/\${id}\`, method: "GET", @@ -71053,7 +74802,7 @@ export class Api extends HttpClient + accountsList: ({ ...query }: AccountsListParams, params: RequestParams = {}) => this.request({ path: \`/accounts\`, method: "GET", @@ -71092,7 +74841,7 @@ export class Api extends HttpClient + categoriesDetail: ({ id }: CategoriesDetailParams, params: RequestParams = {}) => this.request({ path: \`/categories/\${id}\`, method: "GET", @@ -71110,7 +74859,7 @@ export class Api extends HttpClient + categoriesList: ({ ...query }: CategoriesListParams, params: RequestParams = {}) => this.request({ path: \`/categories\`, method: "GET", @@ -71149,7 +74898,7 @@ export class Api extends HttpClient + tagsList: ({ ...query }: TagsListParams, params: RequestParams = {}) => this.request({ path: \`/tags\`, method: "GET", @@ -71169,7 +74918,11 @@ export class Api extends HttpClient + relationshipsTagsCreate: ( + { transactionId }: RelationshipsTagsCreateParams, + data: UpdateTransactionTagsRequest, + params: RequestParams = {}, + ) => this.request({ path: \`/transactions/\${transactionId}/relationships/tags\`, method: "POST", @@ -71188,7 +74941,11 @@ export class Api extends HttpClient + relationshipsTagsDelete: ( + { transactionId }: RelationshipsTagsDeleteParams, + data: UpdateTransactionTagsRequest, + params: RequestParams = {}, + ) => this.request({ path: \`/transactions/\${transactionId}/relationships/tags\`, method: "DELETE", @@ -71207,7 +74964,7 @@ export class Api extends HttpClient + transactionsDetail: ({ id }: TransactionsDetailParams, params: RequestParams = {}) => this.request({ path: \`/transactions/\${id}\`, method: "GET", @@ -71225,7 +74982,7 @@ export class Api extends HttpClient + transactionsList: ({ ...query }: TransactionsListParams, params: RequestParams = {}) => this.request({ path: \`/transactions\`, method: "GET", @@ -71264,7 +75021,7 @@ export class Api extends HttpClient + pingCreate: ({ webhookId }: PingCreateParams, params: RequestParams = {}) => this.request({ path: \`/webhooks/\${webhookId}/ping\`, method: "POST", @@ -71302,7 +75059,7 @@ export class Api extends HttpClient + webhooksDelete: ({ id }: WebhooksDeleteParams, params: RequestParams = {}) => this.request({ path: \`/webhooks/\${id}\`, method: "DELETE", @@ -71319,7 +75076,7 @@ export class Api extends HttpClient + webhooksDetail: ({ id }: WebhooksDetailParams, params: RequestParams = {}) => this.request({ path: \`/webhooks/\${id}\`, method: "GET", @@ -71337,7 +75094,7 @@ export class Api extends HttpClient + webhooksList: ({ ...query }: WebhooksListParams, params: RequestParams = {}) => this.request({ path: \`/webhooks\`, method: "GET", @@ -71390,8 +75147,34 @@ export type ListSearchableFieldsData = string; export type ListSearchableFieldsError = string; +export interface ListSearchableFieldsParams { + /** + * Name of the dataset. + * @example "oa_citations" + */ + dataset: string; + /** + * Version of the dataset. + * @example "v1" + */ + version: string; +} + export type PerformSearchData = Record[]; +export interface PerformSearchParams { + /** + * Name of the dataset. In this case, the default value is oa_citations + * @default "oa_citations" + */ + dataset: string; + /** + * Version of the dataset. + * @default "v1" + */ + version: string; +} + export interface PerformSearchPayload { /** * Uses Lucene Query Syntax in the format of propertyName:value, propertyName:[num1 TO num2] and date range format: propertyName:[yyyyMMdd TO yyyyMMdd]. In the response please see the 'docs' element which has the list of record objects. Each record structure would consist of all the fields and their corresponding values. @@ -71720,7 +75503,7 @@ export class Api extends HttpClient + listSearchableFields: ({ dataset, version }: ListSearchableFieldsParams, params: RequestParams = {}) => this.request({ path: \`/\${dataset}/\${version}/fields\`, method: "GET", @@ -71736,7 +75519,11 @@ export class Api extends HttpClient + performSearch: ( + { version, dataset }: PerformSearchParams, + data: PerformSearchPayload, + params: RequestParams = {}, + ) => this.request({ path: \`/\${dataset}/\${version}/records\`, method: "POST", @@ -72012,6 +75799,12 @@ export type DF = string; export type GetPullRequestsByIdData = Type404; +export interface GetPullRequestsByIdParams { + pid: string; + slug: string; + username: string; +} + export type GetPullRequestsByRepositoryData = any[]; export interface GetPullRequestsByRepositoryParams { @@ -72028,12 +75821,31 @@ export enum GetPullRequestsByRepositoryParams1StateEnum { export type GetRepositoriesByOwnerData = any[]; +export interface GetRepositoriesByOwnerParams { + username: string; +} + export type GetRepositoryData = any; +export interface GetRepositoryParams { + slug: string; + username: string; +} + export type GetUserByNameData = any; +export interface GetUserByNameParams { + username: string; +} + export type MergePullRequestData = any; +export interface MergePullRequestParams { + pid: string; + slug: string; + username: string; +} + export enum StateEnum { Open = "open", Merged = "merged", @@ -72380,7 +76192,7 @@ export class Api extends HttpClient + getPullRequestsById: ({ username, slug, pid }: GetPullRequestsByIdParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}/\${slug}/pullrequests/\${pid}\`, method: "GET", @@ -72412,7 +76224,7 @@ export class Api extends HttpClient + getRepositoriesByOwner: ({ username }: GetRepositoriesByOwnerParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}\`, method: "GET", @@ -72426,7 +76238,7 @@ export class Api extends HttpClient + getRepository: ({ username, slug }: GetRepositoryParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}/\${slug}\`, method: "GET", @@ -72440,7 +76252,7 @@ export class Api extends HttpClient + getUserByName: ({ username }: GetUserByNameParams, params: RequestParams = {}) => this.request({ path: \`/2.0/users/\${username}\`, method: "GET", @@ -72454,7 +76266,7 @@ export class Api extends HttpClient + mergePullRequest: ({ username, slug, pid }: MergePullRequestParams, params: RequestParams = {}) => this.request({ path: \`/2.0/repositories/\${username}/\${slug}/pullrequests/\${pid}/merge\`, method: "POST", diff --git a/tests/spec/extractRequestParams/__snapshots__/basic.test.ts.snap b/tests/spec/extractRequestParams/__snapshots__/basic.test.ts.snap index c1eb78d7..7a8d8cad 100644 --- a/tests/spec/extractRequestParams/__snapshots__/basic.test.ts.snap +++ b/tests/spec/extractRequestParams/__snapshots__/basic.test.ts.snap @@ -78,6 +78,26 @@ export interface KeyRevoke2Params { pk: string; } +export interface GetKeyParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + +export interface HeadKeyParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + +export interface KeyUpdateParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + +export interface KeyBindParams { + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; +} + export interface PushLoginRequestParams { /** URI App will connect to */ callback: string; @@ -88,6 +108,31 @@ export interface SignRequestParams { test?: number; } +export interface SignDeleteParams { + /** Job ID (20 chars) */ + job: string; +} + +export interface SignRetrieveParams { + /** Job ID (20 chars) */ + job: string; +} + +export interface SignRetrieveHeadParams { + /** Job ID (20 chars) */ + job: string; +} + +export interface SignConfirmParams { + /** Job ID (20 chars) */ + job: string; +} + +export interface SignUpdateParams { + /** Job ID (20 chars) */ + job: string; +} + export type QueryParamsType = Record; export type ResponseFormat = keyof Omit; @@ -317,7 +362,7 @@ export class Api extends HttpClient + keyRevokeNosecret: ({ ...query }: KeyRevokeNosecretParams, params: RequestParams = {}) => this.request< { /** pending or done */ @@ -401,7 +446,7 @@ export class Api extends HttpClient + getKey: ({ pk }: GetKeyParams, params: RequestParams = {}) => this.request< { /** @format date-time */ @@ -425,7 +470,7 @@ export class Api extends HttpClient + headKey: ({ pk }: HeadKeyParams, params: RequestParams = {}) => this.request({ path: \`/key/\${pk}\`, method: "HEAD", @@ -439,7 +484,7 @@ export class Api extends HttpClient + keyUpdate: ({ pk }: KeyUpdateParams, body: AuthentiqID, params: RequestParams = {}) => this.request< { /** confirmed */ @@ -461,7 +506,7 @@ export class Api extends HttpClient + keyBind: ({ pk }: KeyBindParams, body: AuthentiqID, params: RequestParams = {}) => this.request< { /** confirmed */ @@ -484,7 +529,7 @@ export class Api extends HttpClient + pushLoginRequest: ({ ...query }: PushLoginRequestParams, body: PushToken, params: RequestParams = {}) => this.request< { /** sent */ @@ -508,7 +553,7 @@ export class Api extends HttpClient + signRequest: ({ ...query }: SignRequestParams, body: Claims, params: RequestParams = {}) => this.request< { /** 20-character ID */ @@ -533,7 +578,7 @@ export class Api extends HttpClient + signDelete: ({ job }: SignDeleteParams, params: RequestParams = {}) => this.request< { /** done */ @@ -554,7 +599,7 @@ export class Api extends HttpClient + signRetrieve: ({ job }: SignRetrieveParams, params: RequestParams = {}) => this.request< { exp?: number; @@ -577,7 +622,7 @@ export class Api extends HttpClient + signRetrieveHead: ({ job }: SignRetrieveHeadParams, params: RequestParams = {}) => this.request({ path: \`/scope/\${job}\`, method: "HEAD", @@ -591,7 +636,7 @@ export class Api extends HttpClient + signConfirm: ({ job }: SignConfirmParams, params: RequestParams = {}) => this.request< { /** confirmed */ @@ -613,7 +658,7 @@ export class Api extends HttpClient + signUpdate: ({ job }: SignUpdateParams, params: RequestParams = {}) => this.request< { /** result is JWT or JSON?? */